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

An optimized informer model design for electric vehicle SOC prediction

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)

기본 정보

저자
  1. Xie Xin — Electrical and Information Engineering College, Hunan Institute of Engineering, Xiangtan, Hunan Province, China
  2. Feng Huang — Electrical and Information Engineering College, Hunan Institute of Engineering, Xiangtan, Hunan Province, China
  3. Yong Long — Electrical and Information Engineering College, Hunan Institute of Engineering, Xiangtan, Hunan Province, China
  4. Youyuan Peng — Electrical and Information Engineering College, Hunan Institute of Engineering, Xiangtan, Hunan Province, China
  5. Wenjuan Zhou — Electrical and Information Engineering College, Hunan Institute of Engineering, Xiangtan, Hunan Province, China
DOI
10.1371/journal.pone.0314255
저널
PLoS ONE
발행년도
2025
발행기관
Public Library of Science
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0314255
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4408306660

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
SOC prediction, electric vehicle, Informer model, Fuel Cell Electric Vehicles, health assessment
판단 근거
본 논문은 전기차 배터리의 충전 상태(SOC)를 예측하기 위한 딥러닝 모델(Informer) 최적화 연구를 다루고 있으며, 이는 수소연료전지(PEMFC) 및 관련 전기차 시스템의 상태 진단 알고리즘 연구에 응용될 수 있습니다.
R&D 활용 포인트
전기차 및 연료전지 시스템의 배터리/에너지 저장 장치 상태 진단 및 잔존 수명 예측 알고리즘 고도화에 활용 가능합니다.
평가 입력
본문 92,813자 중 30,032자 발췌

초록

SOC prediction is of great value to electric vehicle status assessment. Informer model is better than other models in SOC prediction, but there is still a gap in practical application. Therefore, based on the health assessment algorithm, a new optimized Informer model is proposed to predict SOC. Firstly, the health assessment is carried out through the historical running data of the electric vehicle to obtain the health matrix. Then, the health matrix is used to improve Encoder and Decoder modules and improve the prediction accuracy and speed of Informer model. Subsequently, the health matrix is utilized to optimize the prediction logic, reduce the influence of truncation error, and further improve the SOC prediction accuracy. Finally, using the Informer model before and after optimization, SOC prediction is performed using four different datasets. The results indicate that after optimizing the En-De module of Informer, prediction accuracy improved by approximately 15%, with prediction speed increasing by about 100%. Furthermore, optimizing the prediction logic to reduce truncation error further enhanced Informer's prediction accuracy by around 20%.

본문 92,813자

본문 펼치기
OPEN ACCESS Citation: Xie X, Huang F, Long Y, Peng Y, Zhou W (2025) An optimized informer model design for electric vehicle SOC prediction. PLoS ONE 20(3): e0314255. <u>[https://doi.org/10.1371/](https://doi.org/10.1371/journal.pone.0314255)</u> <u>[journal.pone.0314255](https://doi.org/10.1371/journal.pone.0314255)</u> Editor: Dhasarathan Chandramohan, Thap ar Institute of Engineering and Technology: Thapar Institute of Engineering and Technology (Deemed to be University), INDIA Received: October 7, 2024 Accepted: November 7, 2024 Published: March 11, 2025 Copyright: © 2025 Xie et al. This is an open access article distributed under the terms of the <u>[Creative Commons Attribution License,](http://creativecommons.org/licenses/by/4.0/)</u> which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Data availability statement: "All dataset files are available from the Data Review URL: <u>[https://aistudio.baidu.com/](https://aistudio.baidu.com/datasetdetail/304079)</u> <u>[datasetdetail/304079"](https://aistudio.baidu.com/datasetdetail/304079)</u> Funding: The author(s) received no specific funding for this work. RESEARCH ARTICLE # An optimized informer model design for electric vehicle SOC prediction Xin Xie - , Feng Huang, Yefeng Long, Youyuan Peng, Wenjuan Zhou Electrical and Information Engineering College, Hunan Institute of Engineering, Xiangtan, Hunan Province, China - <u>[598460233@qq.com](mailto:598460233@qq.com)</u> ### Abstract SOC prediction is of great value to electric vehicle status assessment. Informer model is better than other models in SOC prediction, but there is still a gap in practical application. Therefore, based on the health assessment algorithm, a new optimized Informer model is proposed to predict SOC. Firstly, the health assessment is carried out through the historical running data of the electric vehicle to obtain the health matrix. Then, the health matrix is used to improve Encoder and Decoder modules and improve the prediction accuracy and speed of Informer model. Subsequently, the health matrix is utilized to optimize the prediction logic, reduce the influence of truncation error, and further improve the SOC prediction accuracy. Finally, using the Informer model before and after optimization, SOC prediction is performed using four different datasets. The results indicate that after optimizing the En-De module of Informer, prediction accuracy improved by approximately 15%, with prediction speed increasing by about 100%. Furthermore, optimizing the prediction logic to reduce truncation error further enhanced Informer’s prediction accuracy by around 20%. 1 Introduction State of Charge(SOC) prediction is of great significance to the assessment of electric vehicle status. Because of the influence of SOC on power output, energy management and operation of electric vehicles [1], SOC predictions have become a hot topic in electric vehicle research. At present, SOC predictions of electric vehicle can be roughly divided into three research directions: SOC prediction through battery working condition; SOC prediction based on the running state change of the electric vehicle; and SOC prediction by combining the historical data of the same type of vehicle on the basis of the two. Silva et al. [2] analyzed the relationship between the operation of lithium batteries and emissions gases, predicting the remaining SOC percentage based on CO2, NOx, and other gas concentrations in the circulating air inside electric vehicles, but the method needs the support of high-accuracy air data. If the research of Alarrouqi RA et al. [3] is referred to and the low-accuracy air data is used for battery state analysis and SOC prediction, the model prediction accuracy is reduced due to the influence of truncation error; Tekin M et al. [4] estimates the operating parameters of the electric vehicle and predicts SOC through the physical structure change of battery interlayer under different charging voltages. Due to the assumption in this law that transmission delays are fixed, when communication blocks occur PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 1 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction Competing interests: The authors have declared that no competing interests exist. and transmission speeds decrease, causing additional latency in data transmission, predictive results will exhibit noise; Kang H C et al. [5] starts with the parameter change of the battery and trains the SOC prediction model through the change of battery parameter by using the phenomenon of thermal expansion and cold contraction of the battery, but the method requires that the temperature of the battery is raised to 400°C and then slowly decreased, and the initial data is difficult to collect in actual situation, causing difficulty in prediction; Mustaffa Z et al. [6] uses the temperature difference of the surface layer of the battery to require a prediction model of surface temperature-SOC from a thermodynamic point of view. However, it is difficult to collect the surface temperature data of a single battery because electric vehicles adopt an integrated battery cluster as a power supply. Jiang N et al. [7] obtains a prediction model of charging voltage, charging current, total voltage, ambient temperature and the remaining percentage of SOC under different operating conditions under different environmental temperatures. The model exhibits significant prediction errors near the transition between charging and discharging states; Yao Z et al. <u>[8] divided the whole operation interval into several sub-intervals according to the changes</u> of vehicle speed such as acceleration, deceleration and uniform speed, and each sub-interval adopts different SOC prediction strategies to improve the prediction accuracy. When integrating all sub-interval strategies to predict SOC for a new complete operational interval, the prediction accuracy is adversely affected by noise induced by marginal effects and the impact of multi-value predictions, resulting in suboptimal forecasting performance; Sarmokadam S et al. [9] analyzes influence of AC module on SOC and gave the prediction model of SOC according to characteristic data of AC module under different operation conditions. Because the reaction of the mechanical part of the electric vehicle to the AC module is not taken into account, the SOC prediction error of the model is large in the operating range characterized by alternating acceleration and deceleration; Gong et al. [10] analyzed the relationship between electric motor shaft rotation under different operating conditions, vehicle driving speed, and energy consumption of the energy storage module. They proposed a torque-speedSOC predictive model based on their findings. The model has fewer prediction steps and lower complexity of prediction calculation. The disadvantage of the model is that the prediction accuracy of the model is poor when the running state changes frequently and the torque of the motor changes sharply. Shao et al. [11] utilized historical data of the same vehicle model at different speeds to derive predictive models for the rate of change of SOC under various operating conditions, indirectly predicting SOC. Although the probability of multi-value prediction is reduced, the influence of SOC characteristic curve deviation is ignored, resulting in the increase of system error; Wang R et al. [12] carry out classified training on the historical data of the same vehicle type and different roads to obtain a speed-SOC prediction model. However, this method assumes that the SOC characteristic curve remains fixed and does not change with varying operational states, leading to poor prediction accuracy of the resulting model; Zhu C et al. [13] using environmental temperature variations, classified historical data for training and obtained predictive models for SOC depletion rates at different temperatures, and based on the model and the SOC margin, the total amount of the SOC at the next moment is predicted. On this basis, Li Q et al. [14] estimate the amount of change in SOC by a weighted average of the rate of change, taking into account the part aging probability of the mechanical part. Both methods refer to the standard SOC characteristic curve to train predictive models, without considering the system errors caused by SOC characteristic curve shifts, resulting in poor prediction accuracy of the model; Lim H et al [15] train the SOC prediction model through the historical data of uniform speed driving at different altitudes, and directly predict the SOC; Guo N et al. [16] train the traction power prediction model by using the historical data of climbing driving under different gravity constants, and indirectly PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 2 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction predict the SOC through relevant calculation of mechanics. Due to only considering gravity’s impact on driving speed and not its effect on mechanical components, both methods struggle to handle system errors caused by SOC characteristic curve shifts. As a result, the predictive models obtained exhibit poor robustness against disturbances. The existing optimization algorithms have addressed some deficiencies in the neural network model but have not significantly enhanced the SOC prediction performance of the model. Selvaraj V et al. [17] combined Bayesian decision mode with Support Vector Regression (SVR), Gaussian Process Regression (GPR) and Linear Regression to improve the SOC multivalue prediction problem of state boundary, but increased the complexity of calculation, and the prediction error of the model was not significantly reduced; Kim D M et al. [18] proposed an improved Deep Neural Network (DNN) for SOC prediction of Fuel Cell Electric Vehicles (FCEVs) based on the changing characteristics of the operating state of FCEVs. The method has fewer prediction steps and higher prediction accuracy, but the prediction calculation is complex, the single prediction time is long, and the hardware requirement is high, which is difficult to be applied in practice; Singla P et al. [19] introduces AND, OR and NOT logic judgment on the original Perturb & Observe (P&O) model to replace the conventional threshold judgment to carry out SOC prediction, although the multi-value prediction frequency is reduced, but the truncation error is not processed in time, and the obtained P&O model exhibits prolonged fixed-value prediction issues when predicting SOC during steady-state operation ranges; Altun Y E et al. [20] applies multi-mode prediction to the existing Artificial Neural Network (ANN). The prediction accuracy of the ANN is temporarily improved, however, when the significant digits after the decimal point of the SOC data are 1-2 bits lower than those of other characteristic data, the prediction accuracy of the ANN is significantly reduced. As a new prediction model, Informer model has attracted the attention of researchers because of its excellent performance. However, the current Informer model is difficult to meet the high requirements of accuracy and speed for SOC prediction of electric vehicles. Through the health assessment algorithm, the model structure can be improved, the prediction process can be optimized, and the prediction performance of Informer can be improved. Based on this, a new optimized Informer model for electric vehicle SOC prediction is proposed. Compared to existing SOC prediction models and other Informer models, it features the following characteristics: 1. Structural optimization: Through health assessment, improving the En-De module, optimizing the model structure, and without increasing data costs, enhancing the predictive performance of Informer. 2. Logical Optimization: Addition of fundamental state variables allows for indirect SOC prediction through equivalent conversion, reducing the adverse effects of truncation errors. This further enhances the predictive performance of Informer while retaining the benefits of structural optimization. This paper is divided into 5 parts: Part 1 focuses on health assessment and optimization analysis, Part 2 analyzes the Informer model and the En-De optimization scheme, Part 3 examines truncation error and proposes prediction logic optimization, Part 4 involves model testing and result analysis, and Part 5 presents the conclusions. 2 Health assessment Health assessment is a weight optimization algorithm proposed by Beatrice Greaves, Lars Landberg et al. 2011 [21]. It transforms the correlation weights between features into a health matrix based on the statistical probability distribution characteristics of model outputs. PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 3 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction The health assessment process is shown in <u>Fig 1:</u> (1) Data Acquisition: The operational data of total voltage, total current, ambient tempera ture, vehicle speed, motor temperature, and similar parameters is acquired through the data acquisition module [22]; (2) Data Cleaning: Eliminate null value, abnormal value and noise fluctuation of operation data to improve data reliability [23]; (3) Feature Screening: Feature data is screened out from the cleaned operation data according to the strength of SOC Correlation [24]; (4) Matrix Computation: Using feature data, after determining matrix elements and dimen sion division schemes, matrix calculations are conducted. This includes computing the weights of each feature’s impact on SOC under different operating conditions, as well as assessing the dimensions of interactions among different features. [25]; The brief calculation formula for Matrix Computation is as follows: <u>Fig 1. Health assessment process diagram.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g001](https://doi.org/10.1371/journal.pone.0314255.g001)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 4 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>1</u> 1 _T_ _exp_ ( _x_ - _µ_ ) Σ 1( _x_ - _µ_ ) (1) <u>1</u> 1 _T_ ; _µ_,Σ) = _<u>i</u>_ <u>1</u> _exp_ ( _x_ - _µ_ )  <u>1</u> 1 _T_ ( _x_ ; _µ_,Σ) = _<u>i</u>_ <u>1</u> _exp_ ( _x_ - _µ_ ) Σ  _f_ ( _x_ ; _µ_,Σ) = <u>1</u> _<u>i</u>_ <u>1</u> _exp_ <u>1(</u> _x_ - _µ_ ) _T_ Σ−1( _x_ 2 Σ) = _<u>i</u>_ <u>1</u> _exp_ ( _x_ - _µ_ ) _T_ Σ−1( _x_ - _µ_     (2 _π_ ~~)~~ 1( _x_ - _µ_ ) _T_ Σ−1( _x_ - _µ_ ) 2 _π_ <u>1</u> 1 _<u>i</u>_ <u>1</u> _exp_ 2 Σ 2 2 Σ   where _i_ is the feature number from 1 to _N_, _μ_ is the mean vector, and _Σ_ is the covariance matrix. (5) Matrix Generation: The calculation results of matrix are arranged sequentially to obtain the weight matrix _QN_ ×1 . Each element of _Q_, representing a different operating state, specifies a weight factor for the feature [26]. Factor analysis was then used on the running data to generate the correlation matrix _R_ 1× _N_ <sup>. Finally,</sup> <sup>_Q_</sup> <sup>is multiplied by</sup> <sup>_R_</sup> <sup>to obtain the health</sup> matrix _A_, namely: _AN_ × _N_ = _QN_ ×1 _R_ 1× _N_ (2) where _N_ is the dimension of the matrix, usually 4-12. When _N_ is greater than 12, dimension reduction of operation data is required. The optimization analysis of health assessment is as follows Let the first layer input of the prediction model _z_ (0) Let the first layer input of the prediction model _z_ (0), with a principal diagonal element of 1, and a coefficient matrix of _DN_ 0 × _N_ between (0,1) of the remaining elements. Sort _D_ <sup>0</sup> so that the order of _D_ <sup>0</sup> row and column labels is consistent. During the prediction process, the coefficient matrix _D_ <sup>_i_</sup> for the _i_ - th layer input _z_ ( _i_ −1) can be viewed as the _i_ - th power operation of _D_ <sup>0</sup> : During the prediction process, the coefficient matrix _D_ <sup>_i_</sup> for the _i_ - th layer input _z_ _Di_ = <sup></sup>  _D_ 0 = _i_ _D_ 0 × _D_ 0 ×�× _D_ 0 (3) The health assessment optimization can be regarded as multiplying the input _z_ (0) with the health matrix A to obtain _z_ 1(0), that is, _z_ 1(0) = _z_ (0) × _A_, then the coefficient matrix of _z_ 1(0) is The health assessment optimization can be regarded as multiplying the input _z_ 1(0), that is, _z_ 1(0) = _z_ (0) × _A_, then the coefficient matrix of _z_ 1( health matrix A to obtain _z_ 1(0), that is, _z_ 1(0) = _z_ (0) × _A_, then the coefficient matrix of _z_ 1(0) is _D_ 10, which is calculated as follows: _D_ 10 = _D_ 0 × _A_ (4) In <u>Equation (4),</u> _A_ reduces the weakly correlated weight of _D_ <sup>0</sup>, that is, on the basis of maintaining the dominance and symmetry of the dominant diagonal, the weakly correlated principal element of _D_ <sup>0</sup> is adjusted to between (0,1). After optimization, all _D_ <sup>0</sup> in <u>Equation (3) is</u> replaced by _D_ 10, and the weight of weak correlation decreases every time the forward calcula replaced by _D_ 10, and the weight of weak correlation decreases every time the forward calcula tion of the model is performed, so as to reduce the influence of weak correlation features and improve the prediction performance of the model. The effects of input _z_ and coefficient matrix _D_ are different due to different prediction processes, and the prediction performance of the model is improved differently after optimization. The health assessment algorithm, when applied to the SOC prediction of electric vehicles, has two main drawbacks: 1. High Data Costs: High dimensionality of operation data required by the algorithm leads to large workload of data collection, data cleaning and feature screening, and increases data costs [27]; 2. High Complexity: In order to select the main features, a high-order selection module is introduced, which increases the algorithm complexity [28]; PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 5 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction In order to solve the above problems, reduce the algorithm complexity and reduce the data costs, the following measures can be taken: Firstly, the principal component analysis method is used to simplify the high-order selection module and reduce the complexity of the algorithm. Then, the data costs are reduced by dimensionality reduction and decoupling of the running data. 3 Informer prediction model 3.1 Model principle Informer is a self-attention prediction model proposed by Zhou Haoyi et al. in 2021 [29]. Different from other prediction models, Informer adopts the structure of encoder-decoder separation. In the prediction process, there is no other connection between encoder and decoder except the transmission of coding output, and there is no feedback mechanism in all prediction steps. The principle diagram of Informer model is shown in <u>Fig 2.</u> In Informer, there are three key structures: (1) Self-Attention Distilling Operation: The encoder is composed of a plurality of encod ing layers, each encoding layer uses sparse sampling, reduces the sequence length, and outputs strong correlation features in the last layer, and then obtains the encoded output through the feature connection layer. (2) Generative Style Decoder: Decoder’s decoding operation is carried out based on masking multi-head attention, and decoding output with a specified length can be obtained only <u>Fig 2. Principle diagram of the informer model.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g002](https://doi.org/10.1371/journal.pone.0314255.g002)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 6 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction by forward calculation, so that the occurrence probability of multi-value prediction is reduced while cumulative error diffusion is prevented. (3) Prob Sparse Self-Attention Mechanism: Based on the conclusion that a small part of dot product focuses on contribution, Informer improves the attention degree of strong correlation features, and improves the self-attention mechanism by increasing the weight of strong correlation features in the prediction process. The existing Informer model has the following shortcomings: 1. Frequent Calculation: In order to improve the attention of strong correlation features, the Encoder module needs to perform two dot product calculations, which reduces the prediction speed of Informer [30–31]; 2. Decoding Defect: Decoding input, consisting of 0 placeholder and encoded output. The weight of the placeholder is too high, which affects the decoding reliability of the Decoder module and reduces the prediction accuracy of Informer [32–33]. 3. High Complexity: Sparse sampling query of self-attention mechanism increases model complexity and reduces the lightweight advantage of Informer [34–35]. In order to make up for the above shortcomings and improve the prediction performance of Informer, it is planned to obtain the health matrix through health assessment, and optimize the model structure of Informer from two aspects of encoder and decoder. 3.2 Encoder optimization Encoder has multiple encoding layers, each with a self-attention sublayer and a convolutional sublayer. Let the input of the _i_ - th encoding layer be _X_ ( _i_ −1) and the output be _X_ ( ) _i_ . In each sublayer. Let the input of the _i_ - th encoding layer be _X_ ( _i_ −1) and the output be _X_ ( ) _i_ . In each encoding layer, _X_ ( _i_ −1) is advanced forward by multi-head self-attention, and then convolu encoding layer, _X_ ( _i_ −1) is advanced forward by multi-head self-attention, and then convolu tional calculations are used to reduce the sequence length to obtain _X_ ( ) _i_, i.e.,: ( ) _i_, i.e.,: ### X ( ) i = Conv ( Attention ( X ( i −1))) (5) In <u>Equation (5),</u> _Conv_ represents convolutional calculation, _Attention_ represents probabilistic #### sparse self-attention, and after the Attention ( X ( i −1)) operation, the output p of the self attention sublayer can be obtained, that is:   _T_  _V_  (6)  _p_ = _softmax_  <sup>_<u>QK</u>_</sup> = _softmax_  <sup>_<u>QK</u>_</sup> _dk_ _dk_ In <u>Equation (6),</u> _softmax_ is the normalization function, _<u>Q</u>_ is the probability sparse matrix obtained after sampling _X_ ( _i_ −1), _dk_ is the variance, _K_, _K_ <sup>_T_</sup>, _V_ is the adjustment matrix of the obtained after sampling _X_ ( _i_ −1), _dk_ is the variance, _K_, _K_ <sup>_T_</sup>, _V_ is the adjustment matrix of the sampling key value, and _p_ is the output of the self-attention sublayer. In _X_ ( _i_ −1), the weights of all features are equal, and the weights of the strongly correlated features in _X_ ( _i_ −1) are increased through the health matrix _A_, that is: In _X_ ( _i_ −1) are increased through the health matrix _A_, that is: _X_ 1( _i_ −1) = _X_ ( _i_ −1) × _A_ (7) In <u>Equation (5),</u> _X_ 1( _i_ −1) is used instead of _X_ ( _i_ −1), which can accelerate the generation of sparse sampling and _<u>Q</u>_, and improve the encoding speed of Encoder and the prediction speed of Informer. 1( _i_ −1) is used instead of _X_ In <u>Equation (5),</u> _X_ The optimization analysis of Encoder is as follows PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 7 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction In <u>Equation (6), the</u> _i_ - th query element of _<u>Q</u>_, which is obtained by the following operation: _p_ ( _qi_, _K_, _V_ ) _i_, _K_, _V_ ) = ∑ _j_ ∑ _l_ _k_ <u>(</u> _<u>iqi</u>_, _<u>jkl</u>_ <u>)</u> <sup>_v_</sup> _j_ = _Expp_ ( _k_ _j_ | _qi_ )  _v_ _j_ _<u>k</u>_ <u>(</u> _<u>qi</u>_ <u>,</u> _<u>k</u>_ _<u>j</u>_ <u>)</u> = ∑ _j_ ∑ _l_ _k_ <u>(</u> _qi_, _kl_ ∑ _l_ _k_ <u>(</u> _qi_, _kl_ <u>)</u> _<u>k</u>_ <u>(</u> _<u>qi</u>_ <u>,</u> _<u>k</u>_ _<u>j</u>_ _<u>i</u>_ <u>,</u> _<u>i</u>_ _<u>j</u>_ ( _qi_, _K_, _V_ ) = ∑ _j_ ∑ _k_ <u>(</u> _<u>iq</u>_, _<u>jk</u>_ <u>)</u> <sup>_v_</sup> _j_ = _Expp_ ( _k_ _j_ | _qi_ )  _v_ _j_ = _Expp_ ( _k_ _j_ | _qi_ )  _v_ _j_  (8) _l_ _i_ _l_ where _qi_, _ki_, _vi_ represent the _i_ - th line in _<u>Q</u>_, _K, V_, _p_ ( _k_ _j_ | _qi_ ) <sup>=</sup> _k_ ( _qi_, _k_ _j_ ) / <sup>∑</sup> _l_ _k_ ( _qi_, _kl_ ), _k_ ( _qi_, _k_ _j_ ) represents the asymmetric exponential kernel Exp ( _q ki_ _Tj_ / _d_ ), and _d_ represents the variance. In <u>Equation (6) and</u> <u>Equation (8), the</u> _Top-u_ query with a sparse metric _M_ ( _qi_, _K_ ) is used, i.e.,:     <sup></sup>  <u>1</u> _LK_ ## L ∑ j = _<u>q ki</u>_ _Tj_ _<u>q ki</u>_ _Tj_   _<u>q ki</u>_ _<u>j</u>_   <u>1</u> _LK_ ## ( qi, K ) = max − ∑ j = _M_ ( _qi_, _K_     <sup></sup>  _<u>q ki</u>_ _<u>q ki</u>_ _Tj_ _d_  <sup></sup>  _L_ _i_ _j_  <sup></sup>  _d_  <sup></sup>  _LK_ _j_ =1 _d_ 1 _<u>i</u>_ _dj_ (9) _K_ _j_ where _LK_ denotes the sequence length of matrix _K_ . In sparse self-attention, the length of the query and the key are equal, i.e., _LQ_ = _LK_ = _L_, and the computational complexity is _O_ ( _L_ - _ln L_ ). Since all features of _X_ ( _i_ −1) have equal weights, and the computational complexity is _O_ ( _L_ - _ln L_ ). Since all features of _X_ ( _i_ −1) have equal weights, in order to increase the weights of strongly correlated features, _Top-u_ queries need to perform two dot product calculations, which affects the encoding speed of Encoder. By replacing _X_ 1( _i_ −1) with _X_ ( _i_ −1) as the input of each encoding layer, the weight of strongly correlated features can be increased, and the _Top-u_ query only needs to perform one dot product calculation, and the computational complexity of sparse self-attention is reduced from 1( _i_ −1) with _X_ By replacing _X_ O(L · ln L) to O( <sup>_<u>L</u>_</sup> 2 <sup>_<u>L</u>_</sup> 2 <sup>· ln L), which improves the encoding speed and accelerates theprediction</sup> speed of the Informer model. 3.3 Decoder optimization Let the Decoder be composed of _L_ decoding sublayers overlapping. In the decoding process, initial input _c_ 0 and feature data _y_ need to undergo _L_ decoding operations to obtain the decoding output _cL_, that is: _cL_ = _Decoder_ ( _y_, _cL_ −1) = _DecoderL_ ( _DecoderL_ −1 ( ··· _Decoder_ 1( _y_, _c_ 0 ) ···)) (10) where _Decoderi_ ( ). represents the decoding computation of the _i_ - th decoding sublayer, and 0 ≤≤ _i_ _L_ . _c_ 0 is the input of the first decoding sublayer, _ci_ −1 is the input of the _i_ - th decoding sublayer, and _y_ represents the characteristic data at the prediction time. In _ci_ −1, all features are weighted equally. The weight of the strongly correlated features in the _ci_ −1 can be increased through the health assessment, namely: #### cL = Decoder ( y, cL −1) = DecoderL ( DecoderL −1(··· ( Decoder 1( y, c 0 )· h ) ···)) (11) where _h_ is the health factor, which is obtained by the health matrix _AN_ × _N_ <sup>compression trans-</sup> formation. In each decoding sublayer, the decoding output _xi_ obtained by ( _Decoderi_ ( _y_, _c_ 0 )) is multiplied by the health factor _h_ and used as the input of the next decoding sublayer, which can improve the weight of strongly correlated features, and the decoding accuracy of Decoder and the prediction accuracy of Informer model can be increased. The optimization analysis of Decoder is as follows The input _c_ 0 of the first decoding sublayer can be expressed as a sequence of _Xdet_ _det_, i.e.,: = _Concat_ ( _Xtokent_, _X_ 0 _t_ ) <sup>∈</sup> _R_ ( _Ltoken_ + _Ly_ ) <sup>×</sup> _dmodel_ _Xdet_ = _Concat_ ( _Xtokent_, _X_ 0 _t_ ) <sup>∈</sup> _R_ _token_ , _X_ 0 _t_ ) <sup>∈</sup> _R_ ( _Ltoken_ + _Ly_ ) <sup>×</sup> _dmodel_ (12) PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 8 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction where _Xtokent_ ∈ _RLtoken_ × _dmodel_ is the encoded output in <u>Fig 2,</u> _X_ 0 _t_ <sup>∈</sup> _RLy_ × _dmodel_ is the sequence place holder with a scalar of 0 (corresponding to all 0s of the _Xde_ in <u>Fig 2),</u> _Ltoken_ represents the sequence length of the encoded output, _Ly_ represents the sequence length of the placeholder, _tokent_ ∈ _RLtoken_ × _dmodel_ where _Xtokent_ ∈ _R_ _dmodel_ represents the feature dimension, and _Concat_ represents the vector connection. By setting the 0 placeholder and −∞ masking dot product, masked multi-head probabilistic sparse self-attention can be applied to the decoding process of Decoder. Although the masking dot product can be set to prevent the autoregressive phenomenon of each feature focusing on its own next moment in _Xdet_, the weight of the coded output _Xtokent_ _det_, the weight of the coded output _Xtokent_ each feature focusing on its own next moment in _Xdet_, the weight of the coded output _X_ _t_ and the placeholder _X_ 0 <sup>_t_</sup> <sup>is equal, and the cumulative error caused by</sup> <sup>_X_</sup> 0 <sup>_t_</sup> <sup>spreads every time</sup> and the placeholder _X_ 0 <sup>_t_</sup> <sup>is equal, and the cumulative error caused by</sup> <sup>_X_</sup> 0 <sup>_t_</sup> <sup>spreads every time</sup> the forward computation of the decoded sublayer is performed. The diffusion of accumulated errors reduces the decoding accuracy of the Decoder. The optimization scheme of <u>Equation (11) is equivalent to increasing the weight of</u> _X_ _t_ and decreasing the weight of _X_ 0 <sup>_t_</sup> <sup>, and it is known from</sup> <sup><u>Equation (3) and</u></sup> <sup><u>Equation (4)</u></sup> The optimization scheme of <u>Equation (11) is equivalent to increasing the weight of</u> _Xtokent_ and decreasing the weight of _X_ 0 <sup>_t_</sup> <sup>, and it is known from</sup> <sup><u>Equation (3) and</u></sup> <sup><u>Equation (4) that the</u></sup> cumulative error caused by _X_ 0 <sup>_t_</sup> <sup>is reduced once every time the forward decoding is carried</sup> cumulative error caused by _X_ 0 <sup>_t_</sup> <sup>is reduced once every time the forward decoding is carried</sup> out, which improves the decoding reliability of Decoder and thus improves the prediction accuracy of Informer. 3.4 En-De optimization Based on Section 2.1, Informer adopts a structure with separated Encoder and Decoder, and there are no feedback mechanisms. According to Section 2.2 and Section 2.3, optimizing the Encoder module can improve the Informer prediction speed, and optimizing the Decoder module can improve the Informer prediction accuracy, and the two optimization effects do not conflict. En-De combination optimization can simultaneously improve the prediction speed and accuracy of Informer. 4 Prediction logic optimization 4.1 Truncation error In Literatures [3], [19] and [20], there is a problem that truncation errors cause a decrease in prediction accuracy, which frequently occurs in certain cases. In fact, all prediction models have truncation errors. The reason is that, due to the accuracy limitation of the acquisition module, the significant digit of SOC is only 0 or 1 digit after the decimal point in most cases, which is much lower than the significant digit of 3-4 digits after the decimal point of other characteristics. During prediction, the model standardizes data precision by aligning the significant figures of predicted values with the feature in the training data that has the highest number of significant figures. The larger the significant bit difference between the predicted value and the true value, the greater the SOC truncation error. Assuming that the predicted value of SOC is 28.5273 for a certain time, when the true value is recorded as 28.5, the truncation error is {(28.5273-28.5)/ 28.5273} × 100% = 0.096%, and when the true value is recorded as 28, the truncation error is {(28.5273-28)/ 28.5273} × 100% = 1.848%, the truncation error is increased by about 20 times. From the analysis in Sections 1 and 2.3, the truncation error will accumulate with the forward calculation. When the truncation error accumulates to a certain extent, the prediction accuracy of the model will decrease significantly. In addition to the limitation of acquisition accuracy, the state change of the power supply module leads to the virtual electricity phenomenon that the actual value of SOC is lower than the measured value [36–37], and the long-term low-speed operation of electric vehicles, with minimal state changes, leads to the phenomenon of fixed SOC measurement [38–39], which will result in the truncation error. PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 9 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction In order to reduce the negative influence of truncation error, the basic health matrix can be obtained through health assessment, basic state variables are added, equivalent conversion is carried out, SOC indirect prediction is used instead of SOC direct prediction, and the prediction logic of Informer is optimized. 4.2 Prediction logic optimization scheme Informer’s prediction logic optimization scheme is based on the following four assumptions: 1. Each motor temperature corresponds to a unique SOC characteristic curve. Within the normal operating range, this curve is a smooth and continuous single-value curve. Moreover, the characteristic curves for the same vehicle model at the same temperature are completely consistent. [40–41]; 2. All characteristics are smooth and continuous in the normal operation interval and are affected by SOC, motor temperature and other characteristics. Furthermore, when any one feature changes independently while all other characteristics remain unchanged, the rate of change of SOC will correspondingly alter [42–43]; 3. In the normal operation range, the SOC characteristic curve of the same vehicle type and different temperature has the same curve trend, and there is only horizontal and vertical translation, resulting in a numerical difference [44–45]; 4. The influence of a single feature on SOC is calculated by approximate simplification, i.e., _k_ = _m_ - ∆ _x_ + _n_ - ∆ _x_ + _l_ . Among them, _k_ is the characteristic influence multiplier and _m_ is the influence coefficient of the motor temperature, which is determined by the mechanical structure of the electric vehicle; _n_ is the influence coefficient of other features, which is determined by the physical structure of the energy storage module; _∆ x_ is the amount of change for the selected feature, and _l_ is a constant. Within the normal operating interval, _m_, _n_, and _l_ have a corresponding fixed value for each feature, and this value does not change due to the deviation of the SOC characteristic curve [46–47]. The prediction logic optimization scheme based on the above assumptions is as follows: 1. Set the temperature of a certain motor and the corresponding characteristic parameters of the electric vehicle to the basic state by referring to the equipment manual or rated parameters; 2. Using the Informer model optimized with historical data and structural adjustments for prediction, and obtaining the baseline health matrix of the system. Through the matrix elements of this baseline health matrix, we calculate the basic rate of change _v_ 0 of SOC, as well as the values _m_, _n_, and _l_ corresponding to each feature assumed in hypothesis 4. 3. According to the temperature of the motor, the complete normal operating range is divided into several sub-intervals. For the boundary temperatures of the entire range and the intermediate temperatures at the intersections of the sub-intervals, predictions are made using the dataset from step 2 and the optimized Informer model to obtain the characteristic parameters corresponding to each motor temperature when the SOC change rate is _v_ 0 . These characteristic parameters, along with the SOC basic change rate and the corresponding motor temperatures, are labeled as sub-basic states; 4. When predicting, first, we should obtain a predicted value of the motor temperature through an Informer model, find a corresponding basic state or a sub-basic state according to the predicted temperature and then carry out equivalent conversion to obtain a corresponding SOC change rate at the predicted time; PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 10 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction If there are _p_ features, the influence rate of the features is calculated to be _k_ 1, _k_ 2,···, _kp_ . Relative to the basic rate _v_ 0, the multiple of the prediction rate _v_ 1 is _k_ 0, and the relevant calculation equation is as follows: _k_ 0 = _k_ 1 - _k_ 2 - ··· - _kp_ (13) When it is to be predicted, the corresponding calculation equation for the SOC prediction rate _v_ 1 is: _v_ 1 = _v_ 0 - _k_ 0 (14) where _v_ 0 is the basic rate of change of the SOC, which is obtained in step 2. 5. Combined with the historical value of SOC and the sampling interval, the predicted value of SOC is calculated through the _v_ 1 of the change rate. <u>Fig 3. Prediction logic optimization diagram.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g003](https://doi.org/10.1371/journal.pone.0314255.g003)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 11 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction The predicted logic optimization diagram is shown in <u>Fig 3. Due to the fundamental health matrix,</u> which is independent of the Informer model and specifically used for the variable matrix of SOC basic states, to avoid misunderstanding, <u>Fig 3</u> directly labels the SOC basic change rates and the parameters for change rate. The basic health matrix involved in both is not separately labeled. 5 Model test 5.1 Evaluation indicator R <sup>2</sup> (Coefficient of Determination), MSE (Mean Squared Error) and MAE (Mean Absolute Error) are adopted as three evaluation indicators, and the calculation of each indicator is shown in <u>Equation (15)–(17):</u> 2 _i_ =1 2 =1− - 2 #### yi − yi ) 2 (15) _i_ _i_ _R_ _i_ =1 _i_ _i_ =1− 2 _n_ 2 _n_ #### ∑ i =1( yi − yi ) 2 #### ∑ ni =1( yi − yi ) _n_ _i_ _i_ =1 _n_ _i_ 1 _yi_ - _yi_ _<u>yi</u>_ - _yi_ _i_ _i_ _i_ =1 <u>1</u> _n_ #### = n i ∑=1( yi − yi ) _n_ <u>1</u> _MSE_ = _n_ _i_ ∑=1( _yi_ - _yi_ 1 - 2 #### yi − yi ) (16) <u>1</u> _n_ = ∑ _<u>yi</u>_ - _yi_ _n_ _i_ =1 _n_ _<u>yi</u>_ - _yi_ (17) 1 <u>1</u> _MAE_ = ∑ _<u>yi</u>_ - _yi_ _n_ _i_ =1 where _yi_ is the true value, <sup>�</sup> _yi_ is the predicted value and _<u>yi</u>_ is the true average value. R <sup>2</sup> indicates the degree of fit, and the closer the value is to 1, the better the fitting effect of the model. MSE, MAE represents the degree of dispersion, and the closer the value is to 0, the smaller the prediction fluctuation of the model. The prediction accuracy is improved, and the judgment is performed by R <sup>2</sup> promotion. When MSE and MAE are unchanged or decreased, R <sup>2</sup> is increased from 0.8 to 0.85 and prediction accuracy is improved by 25%. R <sup>2</sup> improved from 0.9 to 0.95 with a 50% improvement in prediction accuracy. The improvement in prediction speed is assessed by reducing the predicted time required. When MSE, MAE and R <sup>2</sup> remain unchanged or decrease, for single prediction, it takes 30s before optimization and 20s after optimization, and the prediction speed increases by 50%; it takes 30s before optimization and takes 10s after optimization, and the prediction speed increases by 200%. If the optimization is effective, MSE and MAE will also decrease while R <sup>2</sup> increases. However, due to the different calculation methods of the model, there is a difference in the degree of predicted fluctuation[48] and in order to increase the overall fit, the decrease of the fit of specific points will increase the cost of accident treatment[49]. Therefore, when two indicators improve by more than 10%, and the remaining one decreases by no more than 2%, it is also considered effective optimization. 5.2 Simulation environment The SOC prediction test was performed using 4 different published data sets, each of which is outlined below: 1. Data set of Charging of Chinese Urban Electric Vehicle: This dataset is sourced from the public dataset provided by the 4th Jiangsu Big Data Development and Application Competition—New Energy Track of “SEED” in 2023, including current, voltage, SOC and energy recorded in electric vehicle charging piles in Beijing, Shanghai and Shenzhen, totally 4 characteristics. Beijing data set with No. 1 and Shanghai data set with No. 2 are selected for simulation test; PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 12 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction 2. Data set of Battery Module Charging and Discharging of 20 New Energy Vehicles: This data set is sourced from the public data set provided in Literature [50], including the charging and discharging data of 20 electric vehicles, and the data of each electric vehicle includes 9 characteristics including voltage, current, temperature, energy, SOC, etc. Select the running data of No. 2 vehicle and No. 17 vehicle for simulation test; 3. Data set of Power Battery Health of New Energy Vehicles: This data set is sourced from the public data set provided by the 2nd session of Pazhou Algorithm Competition in Guangzhou, including the charging and discharging data of two electric vehicles, and the operation data of each electric vehicle, including such characteristics as speed, voltage, current and SOC. The operation data of two electric vehicles were simulated and tested respectively. 4. Data set of Health Degree of New Energy Vehicles in Guangdong-Hong Kong-Macao Bay Area: This data set is sourced from the public data set provided in the 2022 New Energy Smart Vehicle Big Data Innovation Competition in Guangdong-Hong Kong-Macao Bay Area, including the operation data of five new energy vehicles of each type. The operation conditions of the data set are complex, including not only the charging and discharging conditions, but also the high-low speed operation, sudden braking, continuous acceleration or deceleration, turning and turning and other operation conditions. The operational data of each electric vehicle includes multiple features such as SOC, speed, voltage, current, and temperature. This study selects 12 features, including SOC, for simulation testing. In the phase of structural optimization, four models including before optimization, Encoder optimization, Decoder optimization and En-De optimization were selected for simulation test. In the logic optimization stage, 4 sets of models are optimized for prediction logic in turn, and 8 sets of models before and after logic optimization are used for simulation test respectively. From datasets 1 to 4, several subsets of data are partitioned for simulation testing. Each subset contains approximately 20,000 operational records, with the first 80% of the data serving as the training set and the remaining 20% as the test set. All data in datasets 1 to 4 are sourced from real-time data collected by the remote monitoring module of electric vehicles. In the prediction effect charts, V1 represents non optimization, V2 represents Encoder optimization, V3 represents Decoder optimization, V4 represents En-De optimization, true represents true value. The horizontal axis represents the sequence number of the data; the vertical axis represents the standardized predicted values, with the vertical axis labels capable of taking any real number. Each prediction effect chart is accompanied by a corresponding table that records relevant prediction results. The simulation test platform is Intel Core i7-7700HQ CPU, 8GB DDR4 RAM, 1TB WDC HDD, and the operating system is Windows 10. To reduce the impact of dimensional differences, all predictions were normalized as follows: <u>1</u> _z_ 1 = _zs_ ( _z_ 0 - _~~z~~_ ) (18) where _z_ 0 represents the unnormalized prediction; _z_ 1 represents the normalized forecast; _zs_ represents the variance of the forecast and _~~z~~_ represents the average value of all forecasts. See <u>Table 1 for Informer Model Parameters.</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 13 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Table 1. Informer model parameters.</u> <u>Encoder Modules</u> Input <u>1x3 Convolution Layer (Step 1, Kernel Width 3)</u> <u>Embedded Vector (Dimension</u> _<u>d</u>_ <u>= 512)</u> Probabilistic Sparse Self- Attention Block Multi-Head Probabilistic Sparse Self-Attention (Number of Heads _h_ = 16, Dimen<u>sion</u> _<u>d</u>_ <u>= 32), Rejection Rate</u> _<u>p</u>_ <u>= 0.1</u> Probabilistic Sparse Network (Dimension _d_ = 2048), Activation Function is GELU <u>Function, Rejection Rate</u> _<u>p</u>_ <u>= 0.1</u> Distillation 1 × 3 Convolution Layer (Step 1, Kernel Width 3), Activation Function is ELU <u>Function</u> <u>Max Pooling (Stride = 2)</u> Input <u>Decoder Modules</u> <u>1x3 Convolution Layer (Step 1, Kernel Width 3)</u> <u>Initial Input (Dimension</u> _<u>d</u>_ <u>= 512)</u> <u>Reasonable Cover-Up</u> <u>Mask Attention Block</u> Self-Attention Block Multi-Head Self-Attention (Number of Heads _h_ = 8, Dimension _d_ = 64), Rejection <u>Rate</u> _<u>p</u>_ <u>= 0.1</u> Probabilistic Sparse network (Dimension _d_ = 2048), Activation Function is GELU <u>Function, Rejection Rate</u> _<u>p</u>_ <u>= 0.1</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t001](https://doi.org/10.1371/journal.pone.0314255.t001)</u> 5.3 Model optimization verification The prediction results using dataset 1 are shown in <u>Figs 4 and</u> <u>5.</u> The prediction results using dataset 2 are depicted in <u>Figs 6 and</u> <u>7.</u> The prediction results using dataset 3 are shown in <u>Figs 8 and</u> <u>9.</u> The prediction results using dataset 4 are depicted in <u>Figs 10 and</u> <u>11.</u> The prediction results of each simulation test are presented in <u>Tables 2–9.</u> As can be seen from <u>Figs 4 to</u> <u>11, after the En-De optimization, the prediction fitting degree</u> of the Informer model has improved. From <u>Tables 2–9, it can be observed that after the En-De</u> optimization, the R <sup>2</sup> indicator has improved by 15%, both MSE and MAE have decreased, and the prediction time has also been reduced by 50%. From the discussion in Section 4.2, it is known that after the En-De optimization, the prediction accuracy of the Informer model has improved by 15%, and the prediction speed has increased by 100%. Based on health assessment, optimizing the En-De module can enhance the prediction performance of the Informer model. 5.4 Logic optimization verification Comparing <u>Fig 10</u> and <u>11</u> with <u>Fig 4–7, Table 8 and</u> <u>9 with</u> <u>Table 2–7, it is easy to see that</u> when the operation condition of the electric vehicle is changed from a single charge/discharge state to a complex operation state with multi-state switching, the prediction performance of the Informer is obviously degraded. According to Section 3.1, the prediction performance degradation is caused by the truncation error of SOC. In order to reduce the adverse effect of truncation error, it is necessary to optimize the prediction logic of Informer. A prediction logic optimization scheme is given in Section 3.2. In order to verify whether the proposed scheme can reduce the influence of truncation error and improve the SOC prediction performance of Informer, the operation data of No. 3 Type A vehicle and No. 2 Type B vehicle in data set 4 are selected for simulation test from July to October respectively. The monthly simulation test of each vehicle includes not only the SOC prediction effect charts before and after logic optimization, but also the prediction effect charts of motor PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 14 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 4. SOC prediction chart for Beijing dataset.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g004](https://doi.org/10.1371/journal.pone.0314255.g004)</u> <u>Fig 5. SOC prediction chart for Shanghai dataset.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g005](https://doi.org/10.1371/journal.pone.0314255.g005)</u> <u>Fig 6. SOC prediction chart for No. 2 vehicle.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g006](https://doi.org/10.1371/journal.pone.0314255.g006)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 15 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 7. SOC prediction chart for No. 17 vehicle.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g007](https://doi.org/10.1371/journal.pone.0314255.g007)</u> temperature after logic optimization and the corresponding prediction result table. Prediction 1 represents the prediction effect charts before logic optimization, and Prediction 2 represents the prediction effect charts after logic optimization. <u>Fig 8. SOC prediction chart for Type A vehicle.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g008](https://doi.org/10.1371/journal.pone.0314255.g008)</u> <u>Fig 9. SOC prediction chart for Type B vehicle.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g009](https://doi.org/10.1371/journal.pone.0314255.g009)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 16 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 10. SOC prediction chart for No. 2 Type A vehicle.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g010](https://doi.org/10.1371/journal.pone.0314255.g010)</u> <u>Fig 11. SOC prediction chart for No. 17 Type A vehicle.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g011](https://doi.org/10.1371/journal.pone.0314255.g011)</u> <u>Table 2. SOC prediction results for Beijing dataset.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0689</u> <u>0.1080</u> <u>0.9537</u> <u>235.2762</u> <u>En Optimized</u> <u>0.0696</u> <u>0.1093</u> <u>0.9525</u> <u>112.8759</u> <u>De Optimized</u> <u>0.0547</u> <u>0.0812</u> <u>0.9630</u> <u>236.5538</u> <u>E-D Optimized</u> <u>0.0563</u> <u>0.0835</u> <u>0.9615</u> <u>112.0329</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t002](https://doi.org/10.1371/journal.pone.0314255.t002)</u> <u>Table 3. SOC prediction results for shanghai dataset.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0235</u> <u>0.0402</u> <u>0.9604</u> <u>238.1326</u> <u>En Optimized</u> <u>0.0238</u> <u>0.0404</u> <u>0.9599</u> <u>118.4991</u> <u>De Optimized</u> <u>0.0206</u> <u>0.0297</u> <u>0.9666</u> <u>238.7069</u> <u>E-D Optimized</u> <u>0.0210</u> <u>0.0304</u> <u>0.9662</u> <u>118.7696</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t003](https://doi.org/10.1371/journal.pone.0314255.t003)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 17 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Table 4. SOC prediction results for No. 2 vehicle.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0352</u> <u>0.0457</u> <u>0.9589</u> <u>239.0797</u> <u>En Optimized</u> <u>0.0357</u> <u>0.0464</u> <u>0.9567</u> <u>117.0568</u> <u>De Optimized</u> <u>0.0302</u> <u>0.0311</u> <u>0.9672</u> <u>238.9248</u> <u>E-D Optimized</u> <u>0.0308</u> <u>0.0315</u> <u>0.9666</u> <u>117.6935</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t004](https://doi.org/10.1371/journal.pone.0314255.t004)</u> <u>Table 5. SOC prediction results for No. 17 vehicle.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0379</u> <u>0.0451</u> <u>0.9629</u> <u>237.7536</u> <u>En Optimized</u> <u>0.0384</u> <u>0.0454</u> <u>0.9621</u> <u>118.5959</u> <u>De Optimized</u> <u>0.0334</u> <u>0.0366</u> <u>0.9686</u> <u>237.7129</u> <u>E-D Optimized</u> <u>0.0337</u> <u>0.0371</u> <u>0.9684</u> <u>118.2294</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t005](https://doi.org/10.1371/journal.pone.0314255.t005)</u> <u>Table 6. SOC prediction results for Type A vehicle.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0476</u> <u>0.0818</u> <u>0.9525</u> <u>238.0889</u> <u>En Optimized</u> <u>0.0484</u> <u>0.0837</u> <u>0.9522</u> <u>117.2799</u> <u>De Optimized</u> <u>0.0406</u> <u>0.0702</u> <u>0.9597</u> <u>238.0170</u> <u>E-D Optimized</u> <u>0.0411</u> <u>0.0714</u> <u>0.9594</u> <u>118.5864</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t006](https://doi.org/10.1371/journal.pone.0314255.t006)</u> <u>Table 7. SOC prediction results for Type B vehicle.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0534</u> <u>0.0941</u> <u>0.9474</u> <u>237.6652</u> <u>En Optimized</u> <u>0.0548</u> <u>0.0974</u> <u>0.9431</u> <u>116.7638</u> <u>De Optimized</u> <u>0.0412</u> <u>0.0822</u> <u>0.9582</u> <u>237.9108</u> <u>E-D Optimized</u> <u>0.0415</u> <u>0.0835</u> <u>0.9579</u> <u>117.8201</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t007](https://doi.org/10.1371/journal.pone.0314255.t007)</u> <u>Table 8. SOC prediction results for No. 2 Type A vehicle.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0805</u> <u>0.1768</u> <u>0.9361</u> <u>232.3846</u> <u>En Optimized</u> <u>0.0808</u> <u>0.1772</u> <u>0.9356</u> <u>114.4002</u> <u>De Optimized</u> <u>0.0701</u> <u>0.1664</u> <u>0.9458</u> <u>232.2894</u> <u>E-D Optimized</u> <u>0.0704</u> <u>0.1685</u> <u>0.9454</u> <u>115.3439</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t008](https://doi.org/10.1371/journal.pone.0314255.t008)</u> <u>Table 9. SOC prediction results for No. 4 Type B vehicle.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0807</u> <u>0.1722</u> <u>0.9375</u> <u>237.5623</u> <u>En Optimized</u> <u>0.0823</u> <u>0.1741</u> <u>0.9372</u> <u>115.8042</u> <u>De Optimized</u> <u>0.0681</u> <u>0.1464</u> <u>0.9471</u> <u>237.7444</u> <u>E-D Optimized</u> <u>0.0684</u> <u>0.1483</u> <u>0.9468</u> <u>116.9470</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t009](https://doi.org/10.1371/journal.pone.0314255.t009)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 18 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction In order to avoid the over-fitting phenomenon caused by repeated training on the same data, for the same model before and after the logic optimization, the data of the same vehicle in the same month and in different time periods are selected for simulation verification. Taking <u>Fig 3</u> as an example, parameter prediction involves pre-computation and is not performed during formal predictions. On the other hand, SOC calculation is a simple arithmetic operation that does not involve the Informer model, taking less than 0.1% of the time required for temperature prediction. Therefore, after optimizing the logic, the time required for motor temperature prediction is added to that for SOC prediction. Only the SOC prediction result table includes a column for prediction time, while the motor temperature prediction table removes the prediction time column. The prediction results using the July data from No. 3, Type A Vehicle are shown in <u>Figs</u> <u>12–14.</u> The prediction results for No. 3, Type A Vehicle for the month of July are presented in <u>Tables 10–12.</u> The prediction results using the August data from No. 3, Type A Vehicle are shown in <u>Figs</u> <u>15–17.</u> <u>Fig 12. SOC prediction chart before logic optimization for 3 A-7.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g012](https://doi.org/10.1371/journal.pone.0314255.g012)</u> <u>Fig 13. SOC prediction chart after logic optimization for 3 A-7.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g013](https://doi.org/10.1371/journal.pone.0314255.g013)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 19 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 14. Motor temperature prediction chart for 3 A-7.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g014](https://doi.org/10.1371/journal.pone.0314255.g014)</u> <u>Table 10. SOC prediction results before logic optimization for 3 A-7.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0491</u> <u>0.1846</u> <u>0.9431</u> <u>235.9716</u> <u>En Optimized</u> <u>0.0495</u> <u>0.1877</u> <u>0.9426</u> <u>114.5034</u> <u>De Optimized</u> <u>0.0388</u> <u>0.1442</u> <u>0.9515</u> <u>235.7452</u> <u>E-D Optimized</u> <u>0.0391</u> <u>0.1458</u> <u>0.9512</u> <u>114.7039</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t010](https://doi.org/10.1371/journal.pone.0314255.t010)</u> <u>Table 11. SOC prediction results after logic optimization for 3 A-7.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0338</u> <u>0.1338</u> <u>0.9554</u> <u>237.2037</u> <u>En Optimized</u> <u>0.0342</u> <u>0.1352</u> <u>0.9551</u> <u>117.0267</u> <u>De Optimized</u> <u>0.0276</u> <u>0.1204</u> <u>0.9627</u> <u>237.1915</u> <u>E-D Optimized</u> <u>0.0279</u> <u>0.1223</u> <u>0.9624</u> <u>117.1969</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t011](https://doi.org/10.1371/journal.pone.0314255.t011)</u> <u>Table 12. Motor temperature prediction results for 3 A-7.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Unoptimized</u> <u>0.0422</u> <u>0.1518</u> <u>0.9491</u> <u>En Optimized</u> <u>0.0426</u> <u>0.1536</u> <u>0.9489</u> <u>De Optimized</u> <u>0.0339</u> <u>0.1284</u> <u>0.9576</u> <u>E-D Optimized</u> <u>0.0342</u> <u>0.1298</u> <u>0.9573</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t012](https://doi.org/10.1371/journal.pone.0314255.t012)</u> The prediction results for No. 3, Type A Vehicle for the month of August are presented in <u>Tables 13–15.</u> The prediction results using the September data from No. 3, Type A Vehicle are shown in <u>Figs 18–20.</u> The prediction results for No. 3, Type A Vehicle for the month of September are presented in <u>Tables 16–18.</u> The prediction results using the October data from No. 3, Type A Vehicle are shown in <u>Figs</u> <u>21–23.</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 20 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 15. SOC prediction chart before logic optimization for 3 A-8.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g015](https://doi.org/10.1371/journal.pone.0314255.g015)</u> <u>Fig 16. SOC prediction chart after logic optimization for 3 A-8.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g016](https://doi.org/10.1371/journal.pone.0314255.g016)</u> <u>Fig 17. Motor temperature prediction chart for 3 A-8.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g017](https://doi.org/10.1371/journal.pone.0314255.g017)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 21 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Table 13. SOC prediction results before logic optimization for 3 A-8.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0458</u> <u>0.1776</u> <u>0.9462</u> <u>234.6638</u> <u>En Optimized</u> <u>0.0461</u> <u>0.1793</u> <u>0.9458</u> <u>114.9243</u> <u>De Optimized</u> <u>0.0354</u> <u>0.1373</u> <u>0.9545</u> <u>235.503</u> <u>E-D Optimized</u> <u>0.0358</u> <u>0.1387</u> <u>0.9542</u> <u>114.911</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t013](https://doi.org/10.1371/journal.pone.0314255.t013)</u> <u>Table 14. SOC prediction results after logic optimization for 3 A-8.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0317</u> <u>0.1268</u> <u>0.9574</u> <u>236.4098</u> <u>En Optimized</u> <u>0.0320</u> <u>0.1283</u> <u>0.9572</u> <u>116.1468</u> <u>De Optimized</u> <u>0.0261</u> <u>0.1172</u> <u>0.9641</u> <u>236.3545</u> <u>E-D Optimized</u> <u>0.0264</u> <u>0.1188</u> <u>0.9639</u> <u>116.8570</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t014](https://doi.org/10.1371/journal.pone.0314255.t014)</u> <u>Table 15. Motor temperature prediction results for 3 A-8.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Unoptimized</u> <u>0.0344</u> <u>0.1354</u> <u>0.9498</u> <u>En Optimized</u> <u>0.0347</u> <u>0.1378</u> <u>0.9496</u> <u>De Optimized</u> <u>0.0266</u> <u>0.1142</u> <u>0.9579</u> <u>E-D Optimized</u> <u>0.0268</u> <u>0.1153</u> <u>0.9576</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t015](https://doi.org/10.1371/journal.pone.0314255.t015)</u> <u>Fig 18. SOC prediction chart before logic optimization for 3 A-9.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g018](https://doi.org/10.1371/journal.pone.0314255.g018)</u> The prediction results for No. 3, Type A Vehicle for the month of October are presented in <u>Tables 19–21.</u> The prediction results using the July data from No. 2, Type B Vehicle are shown in <u>Figs</u> <u>24–26.</u> The prediction results for No. 2, Type B Vehicle for the month of July are presented in <u>Tables 22–24.</u> The prediction results using the August data from No. 2, Type B Vehicle are shown in <u>Figs</u> <u>27–29.</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 22 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 19. SOC prediction chart after logic optimization for 3 A-9.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g019](https://doi.org/10.1371/journal.pone.0314255.g019)</u> <u>Fig 20. Motor temperature prediction chart for 3 A-9.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g020](https://doi.org/10.1371/journal.pone.0314255.g020)</u> <u>Table 16. SOC prediction results before logic optimization for 3 A-9.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0524</u> <u>0.1903</u> <u>0.9405</u> <u>234.3122</u> <u>En Optimized</u> <u>0.0528</u> <u>0.1926</u> <u>0.9401</u> <u>116.6624</u> <u>De Optimized</u> <u>0.0412</u> <u>0.1516</u> <u>0.9498</u> <u>236.4583</u> <u>E-D Optimized</u> <u>0.0415</u> <u>0.1535</u> <u>0.9495</u> <u>116.3426</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t016](https://doi.org/10.1371/journal.pone.0314255.t016)</u> <u>Table 17. SOC prediction results after logic optimization for 3 A-9.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0348</u> <u>0.1322</u> <u>0.9536</u> <u>236.5355</u> <u>En Optimized</u> <u>0.0351</u> <u>0.1347</u> <u>0.9533</u> <u>116.6276</u> <u>De Optimized</u> <u>0.0274</u> <u>0.1175</u> <u>0.9608</u> <u>236.8728</u> <u>E-D Optimized</u> <u>0.0278</u> <u>0.1192</u> <u>0.9604</u> <u>116.1632</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t017](https://doi.org/10.1371/journal.pone.0314255.t017)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 23 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Table 18. Motor temperature prediction results for 3 A-9.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Unoptimized</u> <u>0.0392</u> <u>0.1442</u> <u>0.9357</u> <u>En Optimized</u> <u>0.0405</u> <u>0.1466</u> <u>0.9354</u> <u>De Optimized</u> <u>0.0348</u> <u>0.1332</u> <u>0.9468</u> <u>E-D Optimized</u> <u>0.0352</u> <u>0.1356</u> <u>0.9465</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t018](https://doi.org/10.1371/journal.pone.0314255.t018)</u> <u>Fig 21. SOC prediction chart before logic optimization for 3 A-10.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g021](https://doi.org/10.1371/journal.pone.0314255.g021)</u> <u>Fig 22. SOC prediction chart after logic optimization for 3 A-10.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g022](https://doi.org/10.1371/journal.pone.0314255.g022)</u> The prediction results for No. 2, Type B Vehicle for the month of August are presented in <u>Tables 25–27.</u> The prediction results using the September data from No. 2, Type B Vehicle are shown in <u>Figs 30–32.</u> The predicted results for No. 2, Type B Vehicle in September are shown in <u>Tables 28–30.</u> The prediction effects using the October data for No. 2, Type B Vehicle are shown in <u>Figs</u> <u>33</u> to <u>35.</u> The prediction results for No. 2, Type B Vehicle in October are shown in <u>Tables 31–33.</u> From <u>Figs 13,</u> <u>16, 19, 22, 25, 28, 31, and</u> <u>34, it can be seen that the prediction logic optimization</u> does not conflict with the En-De optimization. From <u>Tables 11,</u> <u>14, 17, 20, 23, 26, 29, and 32, it can</u> be observed that after optimizing the prediction logic, the En-De optimization effect mentioned in PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 24 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 23. Motor temperature prediction chart for 3 A-10.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g023](https://doi.org/10.1371/journal.pone.0314255.g023)</u> <u>Table 19. SOC prediction results before logic optimization for 3 A-10.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0409</u> <u>0.1542</u> <u>0.9506</u> <u>237.1664</u> <u>En Optimized</u> <u>0.0412</u> <u>0.1573</u> <u>0.9503</u> <u>117.4308</u> <u>De Optimized</u> <u>0.0311</u> <u>0.1302</u> <u>0.9584</u> <u>237.6843</u> <u>E-D Optimized</u> <u>0.0313</u> <u>0.1317</u> <u>0.9582</u> <u>117.4185</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t019](https://doi.org/10.1371/journal.pone.0314255.t019)</u> <u>Table 20. SOC prediction results after logic optimization for 3 A-10.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0283</u> <u>0.1254</u> <u>0.9613</u> <u>236.7541</u> <u>En Optimized</u> <u>0.0286</u> <u>0.1274</u> <u>0.9611</u> <u>117.1525</u> <u>De Optimized</u> <u>0.0214</u> <u>0.1103</u> <u>0.9674</u> <u>237.2971</u> <u>E-D Optimized</u> <u>0.0217</u> <u>0.1116</u> <u>0.9671</u> <u>117.1877</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t020](https://doi.org/10.1371/journal.pone.0314255.t020)</u> <u>Table 21. Motor temperature prediction results for 3 A-10.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Unoptimized</u> <u>0.0179</u> <u>0.1006</u> <u>0.9697</u> <u>En Optimized</u> <u>0.0182</u> <u>0.1034</u> <u>0.9692</u> <u>De Optimized</u> <u>0.0154</u> <u>0.0894</u> <u>0.9746</u> <u>E-D Optimized</u> <u>0.0156</u> <u>0.0904</u> <u>0.9742</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t021](https://doi.org/10.1371/journal.pone.0314255.t021)</u> Section 4.3, which improved prediction accuracy by 15% and prediction speed by 100%, has been retained. Furthermore, as indicated by <u>Figs 12–35</u> and <u>Tables 10–33, after optimizing the prediction</u> logic, R <sup>2</sup> metric improved by around 20%. As discussed in Section 4.2, after optimizing the prediction logic, Informer’s prediction accuracy improved by around 20%, and the precision improvement from the logic optimization coexists with the precision improvement from the En-De optimization mentioned in Section 4.3. By conducting health assessments, optimizing the prediction logic can mitigate truncation error effects and enhance the predictive performance of the Informer model. PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 25 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 24. SOC prediction chart before logic optimization for 2B-7.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g024](https://doi.org/10.1371/journal.pone.0314255.g024)</u> <u>Fig 25. SOC prediction chart after logic optimization for 2B-7.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g025](https://doi.org/10.1371/journal.pone.0314255.g025)</u> <u>Fig 26. Motor temperature prediction chart for 2B-7.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g026](https://doi.org/10.1371/journal.pone.0314255.g026)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 26 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Table 22. SOC prediction results before logic optimization for 2B-7.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0563</u> <u>0.1969</u> <u>0.9469</u> <u>236.1494</u> <u>En Optimized</u> <u>0.0575</u> <u>0.2003</u> <u>0.9459</u> <u>114.7602</u> <u>De Optimized</u> <u>0.0461</u> <u>0.1736</u> <u>0.9556</u> <u>236.8764</u> <u>E-D Optimized</u> <u>0.0468</u> <u>0.1764</u> <u>0.9551</u> <u>114.5483</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t022](https://doi.org/10.1371/journal.pone.0314255.t022)</u> <u>Table 23. SOC prediction results after logic optimization for 2B-7.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0439</u> <u>0.1698</u> <u>0.9588</u> <u>237.1540</u> <u>En Optimized</u> <u>0.0448</u> <u>0.1713</u> <u>0.9582</u> <u>116.9603</u> <u>De Optimized</u> <u>0.0374</u> <u>0.1472</u> <u>0.9651</u> <u>237.2668</u> <u>E-D Optimized</u> <u>0.0381</u> <u>0.1494</u> <u>0.9645</u> <u>116.2838</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t023](https://doi.org/10.1371/journal.pone.0314255.t023)</u> <u>Table 24. Motor temperature prediction results for 2B-7.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Unoptimized</u> <u>0.0374</u> <u>0.1357</u> <u>0.9634</u> <u>En Optimized</u> <u>0.0378</u> <u>0.1371</u> <u>0.9631</u> <u>De Optimized</u> <u>0.0309</u> <u>0.1266</u> <u>0.9697</u> <u>E-D Optimized</u> <u>0.0316</u> <u>0.1278</u> <u>0.9693</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t024](https://doi.org/10.1371/journal.pone.0314255.t024)</u> <u>Fig 27. SOC prediction chart before logic optimization for 2B-8.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g027](https://doi.org/10.1371/journal.pone.0314255.g027)</u> 6 Conclusion Through health assessment, this study derived a health matrix. Simultaneously, improving the encoder and decoder optimizes the model structure, thereby synchronously enhancing the Informer’s prediction accuracy and speed. Building on this basis, the study indirectly predicts SOC by conducting health assessments, optimizing prediction logic, introducing basic state variables, and employing equivalent conversion to mitigate truncation error effects. This approach further enhances the Informer prediction accuracy. Through simulation test, PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 27 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 28. SOC prediction chart after logic optimization for 2B-8.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g028](https://doi.org/10.1371/journal.pone.0314255.g028)</u> <u>Fig 29. Motor temperature prediction chart for 2B-8.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g029](https://doi.org/10.1371/journal.pone.0314255.g029)</u> <u>Table 25. SOC prediction results before logic optimization for 2B-8.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0628</u> <u>0.2213</u> <u>0.9402</u> <u>235.0011</u> <u>En Optimized</u> <u>0.0632</u> <u>0.2234</u> <u>0.9398</u> <u>116.8813</u> <u>De Optimized</u> <u>0.0533</u> <u>0.1861</u> <u>0.9506</u> <u>235.6224</u> <u>E-D Optimized</u> <u>0.0538</u> <u>0.1875</u> <u>0.9502</u> <u>116.0227</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t025](https://doi.org/10.1371/journal.pone.0314255.t025)</u> <u>Table 26. SOC prediction results after logic optimization for 2B-8.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0489</u> <u>0.1791</u> <u>0.9544</u> <u>237.5720</u> <u>En Optimized</u> <u>0.0496</u> <u>0.1798</u> <u>0.9541</u> <u>116.7867</u> <u>De Optimized</u> <u>0.0406</u> <u>0.1542</u> <u>0.9616</u> <u>236.4508</u> <u>E-D Optimized</u> <u>0.0411</u> <u>0.1556</u> <u>0.9612</u> <u>116.7750</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t026](https://doi.org/10.1371/journal.pone.0314255.t026)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 28 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Table 27. Motor temperature prediction results for 2B-8.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Unoptimized</u> <u>0.0365</u> <u>0.1277</u> <u>0.9459</u> <u>En Optimized</u> <u>0.0369</u> <u>0.1284</u> <u>0.9455</u> <u>De Optimized</u> <u>0.0317</u> <u>0.1204</u> <u>0.9541</u> <u>E-D Optimized</u> <u>0.0321</u> <u>0.1213</u> <u>0.9538</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t027](https://doi.org/10.1371/journal.pone.0314255.t027)</u> <u>Fig 30. SOC prediction chart before logic optimization for 2B-9.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g030](https://doi.org/10.1371/journal.pone.0314255.g030)</u> <u>Fig 31. SOC prediction chart after logic optimization for 2B-9.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g031](https://doi.org/10.1371/journal.pone.0314255.g031)</u> the study validated the En-De optimization Informer model, achieving approximately a 15% increase in prediction accuracy and a 100% increase in prediction speed. After optimizing the prediction logic, the Informer model, built on the foundation of En-De optimization, reduces the impact of truncation errors, thereby further enhancing prediction accuracy by around 20%. Compared to the unoptimized Informer model, the Informer optimization based on health assessment incurs lower prediction costs and delivers superior prediction performance in SOC prediction for electric vehicles. PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 29 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 32. Motor temperature prediction chart for 2B-9.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g032](https://doi.org/10.1371/journal.pone.0314255.g032)</u> <u>Table 28. SOC prediction results for 2B-9 before logic optimization.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0581</u> <u>0.1932</u> <u>0.9485</u> <u>235.6866</u> <u>En Optimized</u> <u>0.0586</u> <u>0.1954</u> <u>0.9479</u> <u>116.3640</u> <u>De Optimized</u> <u>0.0445</u> <u>0.1706</u> <u>0.9573</u> <u>236.1334</u> <u>E-D Optimized</u> <u>0.0452</u> <u>0.1726</u> <u>0.9569</u> <u>116.4136</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t028](https://doi.org/10.1371/journal.pone.0314255.t028)</u> <u>Table 29. SOC prediction results for 2B-9 after logic optimization.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0426</u> <u>0.1671</u> <u>0.9591</u> <u>236.1355</u> <u>En Optimized</u> <u>0.0431</u> <u>0.1682</u> <u>0.9587</u> <u>117.5051</u> <u>De Optimized</u> <u>0.0363</u> <u>0.1487</u> <u>0.9653</u> <u>236.8813</u> <u>E-D Optimized</u> <u>0.0367</u> <u>0.1498</u> <u>0.9647</u> <u>118.1003</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t029](https://doi.org/10.1371/journal.pone.0314255.t029)</u> <u>Table 30. Motor temperature prediction results for 2B-9.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Unoptimized</u> <u>0.0703</u> <u>0.1775</u> <u>0.9594</u> <u>En Optimized</u> <u>0.0711</u> <u>0.1798</u> <u>0.9591</u> <u>De Optimized</u> <u>0.0633</u> <u>0.1564</u> <u>0.9664</u> <u>E-D Optimized</u> <u>0.0638</u> <u>0.1572</u> <u>0.9662</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t030](https://doi.org/10.1371/journal.pone.0314255.t030)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 30 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Fig 33. SOC prediction chart for 2B-10 before logic optimization.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g033](https://doi.org/10.1371/journal.pone.0314255.g033)</u> <u>Fig 34. SOC prediction chart for 2B-10 after logic optimization.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g034](https://doi.org/10.1371/journal.pone.0314255.g034)</u> <u>Fig 35. Motor temperature prediction chart for 2B-10.</u> <u>[https://doi.org/10.1371/journal.pone.0314255.g035](https://doi.org/10.1371/journal.pone.0314255.g035)</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 31 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction <u>Table 31. SOC prediction results for 2B-10 before logic optimization.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0565</u> <u>0.1981</u> <u>0.9472</u> <u>235.2969</u> <u>En Optimized</u> <u>0.0568</u> <u>0.1994</u> <u>0.9469</u> <u>115.5625</u> <u>De Optimized</u> <u>0.0465</u> <u>0.1744</u> <u>0.9554</u> <u>235.1836</u> <u>E-D Optimized</u> <u>0.0471</u> <u>0.1772</u> <u>0.9548</u> <u>115.1359</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t031](https://doi.org/10.1371/journal.pone.0314255.t031)</u> <u>Table 32. SOC prediction results for 2B-10 after logic optimization.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Time/ s</u> <u>Unoptimized</u> <u>0.0436</u> <u>0.1684</u> <u>0.9590</u> <u>236.5082</u> <u>En Optimized</u> <u>0.0441</u> <u>0.1702</u> <u>0.9586</u> <u>117.2097</u> <u>De Optimized</u> <u>0.0369</u> <u>0.1454</u> <u>0.9654</u> <u>237.0620</u> <u>E-D Optimized</u> <u>0.0376</u> <u>0.1474</u> <u>0.9651</u> <u>116.9355</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t032](https://doi.org/10.1371/journal.pone.0314255.t032)</u> <u>Table 33. Motor temperature prediction results for 2B-10.</u> <u>MSE</u> <u>MAE</u> <u>R</u> <sup>2</sup> <u>Unoptimized</u> <u>0.0294</u> <u>0.1102</u> <u>0.9686</u> <u>En Optimized</u> <u>0.0298</u> <u>0.1121</u> <u>0.9681</u> <u>De Optimized</u> <u>0.0221</u> <u>0.0986</u> <u>0.9736</u> <u>E-D Optimized</u> <u>0.0224</u> <u>0.1013</u> <u>0.9732</u> <u>[https://doi.org/10.1371/journal.pone.0314255.t033](https://doi.org/10.1371/journal.pone.0314255.t033)</u> <u>Nomenclature</u> _<u>Q</u>_ <u>Weight Matrix</u> _<u>R</u>_ <u>Correlation Matrix</u> _<u>A</u>_ <u>Health Matrix</u> _<u>N</u>_ <u>Matrix Dimension</u> _<u>D</u>_ <u>Coefficient Matrix</u> _<u>X</u>_ _<u>X</u>_ ( _i_ −1) <u>Input of</u> _<u>i</u>_ <u>- th encoding layer</u> ( ) _i_ <u>Output of</u> _<u>i</u>_ <u>- th encoding layer</u> _<u>Conv</u>_ <u>Convolutional Calculation</u> _<u>Attention</u>_ <u>Probabilistic Sparse Self-Attention</u> _<u>p</u>_ <u>Output of Self-attention sublayer</u> _<u>Q</u>_ <u>Probability Sparse Matrix</u> _<u>softmax</u>_ <u>Normalization Function</u> _<u>X</u>_ <u>1(</u> _i_ −1) <u>Optimized input of</u> _<u>i</u>_ <u>- th encoding layer</u> _<u>c</u>_ <u>0</u> <u>Decoding initial input</u> _<u>cL</u>_ <u>Decoding output</u> _<u>ci</u>_ <u>−1</u> <u>Input of</u> _<u>i</u>_ <u>- th decoding sublayer</u> _<u>Decoderi</u>_ <u>( )•</u> <u>Decoding computation of</u> _<u>i</u>_ <u>- th decoding sublayer</u> PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 32 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction _<u>y</u>_ <u>Characteristic data at the prediction time</u> _<u>h</u>_ <u>Health Factor</u> _<u>xi</u>_ <u>Decoding output obtained by</u> _<u>Decoderi</u>_ <u>( )•</u> _<u>Xdet</u>_ <u>Sequence form of</u> _<u>c</u>_ <u>0</u> _<u>Xtokent</u>_ <u>Encoded Output</u> _<u>X</u>_ <u>0</u> <sup>_t_</sup> <u>0</u> <sup>_t_</sup> <sup><u>Sequence Placeholder with a Scalar of 0</u></sup> _<u>L</u>_ <u>Sequence Length</u> _<u>k</u>_ <u>Characteristic Influence Multiplier</u> _<u>m</u>_ <u>Influence Coefficient of Motor Temperature</u> _<u>n</u>_ <u>Influence Coefficient of Other Features</u> <u>∆</u> _<u>x</u>_ <u>Amount of Change for Selected Feature</u> _<u>l</u>_ <u>Constants Related to</u> _<u>k</u>_ _<u>v</u>_ <u>0</u> <u>Basic Rate of Change of SOC</u> _<u>v</u>_ <u>1</u> <u>SOC Prediction Rate</u> <u>R</u> <sup>2</sup> <u>Coefficient of Determination</u> <u>MSE Mean Squared Error</u> <u>MAE Mean Absolute Error</u> <u>SOC State of Charge</u> <u>SVR Support Vector Regression</u> <u>GPR Gaussian Process Regression</u> <u>DNN Deep Neural Network</u> <u>FCEVs Fuel Cell Electric Vehicles</u> <u>P&O Perturb & Observe</u> <u>ANN Artificial Neural Network</u> <u>En-De Encoder-Decoder</u> Author contributions Conceptualization: Xin Xie. Data curation: Xin Xie. Formal analysis: Xin Xie. Funding acquisition: Xin Xie. Investigation: Xin Xie. Methodology: Xin Xie. Project administration: Xin Xie, Feng Huang. Resources: Xin Xie. Software: Xin Xie. Supervision: Xin Xie, Youyuan Peng, Wenjuan Zhou. Validation: Xin Xie. Visualization: Xin Xie. Writing – original draft: Xin Xie. Writing – review & editing: Xin Xie, Yefeng Long. PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 33 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction References 1. Hong J, Liang F, Zhang H, et al. Data-driven multi-dimension driving safety evaluation for real-world electric vehicles[J]. IEEE Trans Vehicular Tech. 2024. 2. Silva G, Dutra TA, Nunes-Pereira J, et al. Coupled and decoupled structural batteries: a comparative analysis[J]. J Power Sources. 2024;604:234392. 3. Alarrouqi RA, Bayhan S, Al-Fagih L. An assessment of the energy performance of battery-electric buses in hot environments[J]. Sustain Energy Grids Networks.2024;38:101352. 4. Tekin M, Karamangil MI. Development of dual polarization battery model with high accuracy for a lithium-ion battery cell under dynamic driving cycle conditions[J]. Heliyon. 2024;10(7):e28454. <u>[https://](https://doi.org/10.1016/j.heliyon.2024.e28454)</u> <u>[doi.org/10.1016/j.heliyon.2024.e28454](https://doi.org/10.1016/j.heliyon.2024.e28454)</u> PMID: <u>[38571645](http://www.ncbi.nlm.nih.gov/pubmed/38571645)</u> 5. Kang HC. Experiment on extinguishing thermal runaway in a scaled-down model of an electric vehicle battery[J]. Int J Automot Technol. 2024:1–10. 6. Mustaffa Z, Al-Qadami EHH, Topa A, et al. Numerical assessment of the side impacts on lithium-ion battery module integrated with honeycomb reinforcement[J]. Eng Fail Anal. 2024;161:108290. 7. Jiang N, Zhang J, Jiang W. Driving behavior-guided battery health monitoring for electric vehicles using extreme learning machine[j]. Appl Energy. 2024;364:123122. 8. Yao Z, Shao R, Zhan S, et al. Energy management strategy for fuel cell hybrid electric vehicles using Pontryagin’s minimum principle and dynamic SOC planning[J]. Energy Source Part A Recovery Util Environ Eff. 2024;46(1):5112–32. 9. Sarmokadam S, Mathew R. Novel architectures for power management in AC ring main system connected to electric vehicle charging station[J]. Energy Rep. 2024;11:3876–88. 10. Gong C, Xu J, Lin Y. Plug - in hybrid electric vehicle energy management with clutch engagement control via continuous - discrete reinforcement learning[J]. Energy Technol. 2024:2301512. 11. Shao Y, Zheng Y, Zhang J, et al. A cloud capacity estimation method for electric vehicle lithium-ion battery independent of cloud SOC[J]. J Energy Storage. 2024;85:110998. 12. Wang R, Shi X, Su Y, et al. A predictive energy management strategy for plug-in hybrid electric vehicles using real-time traffic based reference SOC planning[J]. Proc Inst Mech Eng Part D J Automob Eng. 2024:09544070241239996. 13. Zhu C, Wang S, Yu C. An improved Cauchy robust correction-Sage Husa extended Kalman filtering algorithm for high-precision SOC estimation of lithium-ion batteries in new energy vehicles[J]. J Energy Storage. 2024;88:111552. 14. Li Q, Zhong J, Du J, et al. Probabilistic neural network-based flexible estimation of lithium-ion battery capacity considering multidimensional charging habits[J]. Energy. 2024:130881. 15. Lim H. Online ecological energy management for plug-in HEVs using optimal SOC prediction and stochastic optimization[J]. IEEE Trans Intell Transp Syst. 2024. 16. Guo N, Zhang W, Li J, et al. Predictive energy management of fuel cell plug-in hybrid electric vehicles: a co-state boundaries-oriented PMP optimization approach[J]. Appl Energy. 2024;362:122882. 17. Selvaraj V, Vairavasundaram I. A Bayesian optimized machine learning approach for accurate state of charge estimation of lithium ion batteries used for electric vehicle application[J]. J Energy Storage. 2024;86:111321. 18. Kim D, Kwon K, Cha K. Deep neural network-based modeling and optimization methodology of fuel cell electric vehicles considering power sources and electric motors[J]. J Power Sources. 2024;603:234401. 19. Singla P, Boora S, Singhal P. Design and simulation of 4 kW solar power-based hybrid EV charging station[J]. Sci Rep. 2024;14(1):7336. 20. Altun Y, Kutlar OA. Energy management systems’ modeling and optimization in hybrid electric vehicles[J]. Energies. 2024;17(7):1696. 21. Greaves B, Collins J, Parkes J, Landberg L. Increasing certainty-combination methods for reliable probabilistic wind production forecasts [J]. Europe’s Premier Wind Energy Event-EWEA; 2011. p. 3–10. 22. Takyi-Aninakwa P, Wang S, Liu G. Enhanced extended-input LSTM with an adaptive singular value decomposition UKF for LIB SOC estimation using full-cycle current rate and temperature data[J]. Appl Energy. 2024;363:123056. 23. Manivannan R. Research on IOT-based hybrid electrical vehicles energy management systems using machine learning-based algorithm[J]. Sustain Comput: Inform Syst. 2024;41:100943. 24. Yasin A, Dhaouadi R, Mukhopadhyay S. A novel supercapacitor model parameters identification method using metaheuristic gradient-based optimization algorithms[J]. Energies. 2024;17(6):1500. PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 34 / 35 PLOS ONE An optimized informer model design for electric vehicle SOC prediction 25. Sun B, Zhang Q, Mao H, et al. Validation of a statistical-dynamic framework for predicting energy consumption: a study on vehicle energy conservation equation[J]. Energy Convers Manag. 2024;307:118330. 26. Li X, Li W, Deng D, et al. Reliability evaluation of electric vehicle sharing considering charging load transfer in a distribution network containing microgrids[J]. IEEE Access. 2024. 27. Chen Z, Wu S, Shen S, et al. Co-optimization of velocity planning and energy management for autonomous plug-in hybrid electric vehicles in urban driving scenarios[J]. Energy. 2023;263:126060. 28. Mekkaoui DE, Midoun MA, Shen Y. LA-RCNN: Luong attention-recurrent-convolutional neural network for EV charging load prediction[J]. Appl Intell. 2024;54(5):4352–69. 29. Zhou H, Zhang S, Peng J. Informer: beyond efficient transformer for long sequence time-series forecasting[C]. Proc AAAI Conf Artif Intell. 2021;35(12):11106–15. 30. Hu Y, Fan Z, Liu W, et al. An integrated navigation algorithm assisted by CNN-informer during shorttime GNSS outages[J]. Meas Sci Technol. 2024;35(9):096309. 31. Xu W, Li D, Dai W. Informer short-term PV power prediction based on sparrow search algorithm optimised variational mode decomposition[J]. Energies. 2024;17(12):2984. 32. Qiu R, Dai W, Wang G, et al. Evaluation of different deep learning methods for meteorological element forecasting[J]. IEEE Access. 2024. 33. Wang Z, Li W, Wang S, et al. Enhancing load forecasting for large industrial users through feature preference and error correction[J]. IEEE Access. 2024. 34. Bommidi BS, Teeparthi K, Dulla Mallesham VK. ICEEMDAN-Informer-GWO: a hybrid model for accurate wind speed prediction[J]. Environ Sci Pollut Res Int. 2024;31(23):34056–81. <u>[https://doi.](https://doi.org/10.1007/s11356-024-33383-x)</u> <u>[org/10.1007/s11356-024-33383-x PMID:](https://doi.org/10.1007/s11356-024-33383-x)</u> <u>[38696015](http://www.ncbi.nlm.nih.gov/pubmed/38696015)</u> 35. Wang Y, Lou Y, Lin Y, et al. ROP prediction method based on PCA–informer modeling[J]. ACS omega. 2024. 36. Liao L, Yang D, Li X, et al. Fault diagnosis of lithium-ion batteries based on wavelet packet decomposition and manhattan average distance[J]. Int J Green Energy. 2024:1–15. 37. Lee K, Sakamoto J. Li stripping behavior of anode - free solid - state batteries under intermittent - current discharge conditions[J]. Adv Energy Mater. 2024;14(17):2303571. 38. Zhang C, Luo L, Yang Z, et al. Flexible method for estimating the state of health of lithium [ion batteries using partial charging segments[J]. Energy. 2024;295:131009. https://doi.org/](https://doi.org/Notprovided) <u>[Notprovided](https://doi.org/Notprovided)</u> 39. Zhou J, Wang S, Cao W, et al. State of health prediction of lithium-ion batteries based on SSA optimized hybrid neural network model[J]. Electrochimica Acta. 2024;487:144146. 40. Ma Z, Luan YX, Zhang FQ, et al. A data-driven energy management strategy for plug-in hybrid electric buses considering vehicle mass uncertainty[J]. J Energy Storage. 2024;77:109963. 41. Ş en M, Özcan M, Eker YR. Fuzzy logic-based energy management system for regenerative braking of electric vehicles with hybrid energy storage system [J]. Appl Sci. 2024;14(7):3077. 42. Shuai Q, Wang Y, Jiang Z, et al. Reinforcement learning-based energy management for fuel cell electrical vehicles considering fuel cell degradation[J]. Energies. 2024;17(7):1586. 43. Larijani MR, Kia SH, Zolghadri M, et al. Linear parameter-varying model predictive control for intelligent energy management in battery/supercapacitor electric vehicles[J]. IEEE Access. 2024. 44. He L, Tong B, Zhang Y, et al. Temperature rise characteristics research of integrated electric drive system for vehicles[J]. JEET. 2024:1–13. 45. Tekin M, Karamangil M İ . Comparative analysis of equivalent circuit battery models for electric vehicle battery management systems[J]. J Energy Storage. 2024;86:111327. 46. Abideen FZ, Khalid HA, Khan MS, et al. Direct model predictive control of fuel cell and ultra-capacitor based hybrid electric vehicle[J]. IEEE Access. 2024. 47. Nie J, Chen C, Wei C. Adaptive fuzzy energy management strategy for range - extended electric vehicles integrated with deep learning[J]. Energy Sci Eng. 2024;12(5):2164–79. 48. Sayed MA, Ghafouri M, Atallah R, et al. Grid chaos: an uncertainty-conscious robust dynamic EV load-altering attack strategy on power grid stability[J]. Appl Energy. 2024;363:122972. 49. Wang J, Zhang Z, Guo D. Torque vectoring and multi-mode driving of electric vehicles with a novel dual-motor coupling electric drive system[J]. Automot Innov. 2024;7(2):236–47. 50. Deng Z, Xu L, Liu H. Prognostics of battery capacity based on charging data and data-driven methods for on-road vehicles[J]. Appl Energy. 2023;339:120954. PLOS ONE | <u>https://doi org/10 1371/journal pone 0314255</u> March 11 2025 35 / 35

섹션 본문 151문단 · 41,969자

(제목 없음)

1SOC prediction is of great value to electric vehicle status assessment.Informer model is better than other models in SOC prediction, but there is still a gap in practical application.Therefore, based on the health assessment algorithm, a new optimized Informer model is proposed to predict SOC.Firstly, the health assessment is carried out through the historical running data of the electric vehicle to obtain the health matrix.Then, the health matrix is used to improve Encoder and Decoder modules and improve the prediction accuracy and speed of Informer model.Subsequently, the health matrix is utilized to optimize the prediction logic, reduce the influence of truncation error, and further improve the SOC prediction accuracy.Finally, using the Informer model before and after optimization, SOC prediction is performed using four different datasets.The results indicate that after optimizing the En-De module of Informer, prediction accuracy improved by approximately 15%, with prediction speed increasing by about 100%.Furthermore, optimizing the prediction logic to reduce truncation error further enhanced Informer's prediction accuracy by around 20%.PLOS ONEAn optimized informer model design for electric vehicle SOC prediction and transmission speeds decrease, causing additional latency in data transmission, predictive results will exhibit noise; Kang H C et al. [5] starts with the parameter change of the battery and trains the SOC prediction model through the change of battery parameter by using the phenomenon of thermal expansion and cold contraction of the battery, but the method requires that the temperature of the battery is raised to 400°C and then slowly decreased, and the initial data is difficult to collect in actual situation, causing difficulty in prediction; Mustaffa Z et al. [6] uses the temperature difference of the surface layer of the battery to require a prediction model of surface temperature-SOC from a thermodynamic point of view.However, it is difficult to collect the surface temperature data of a single battery because electric vehicles adopt an integrated battery cluster as a power supply.Jiang N et al.[7] obtains a prediction model of charging voltage, charging current, total voltage, ambient temperature and the remaining percentage of SOC under different operating conditions under different environmental temperatures.The model exhibits significant prediction errors near the transition between charging and discharging states; Yao Z et al.[8] divided the whole operation interval into several sub-intervals according to the changes of vehicle speed such as acceleration, deceleration and uniform speed, and each sub-interval adopts different SOC prediction strategies to improve the prediction accuracy.When integrating all sub-interval strategies to predict SOC for a new complete operational interval, the prediction accuracy is adversely affected by noise induced by marginal effects and the impact of multi-value predictions, resulting in suboptimal forecasting performance; Sarmokadam S et al.[9]analyzes influence of AC module on SOC and gave the prediction model of SOC according to characteristic data of AC module under different operation conditions.Because the reaction of the mechanical part of the electric vehicle to the AC module is not taken into account, the SOC prediction error of the model is large in the operating range characterized by alternating acceleration and deceleration; Gong et al.[10]analyzed the relationship between electric motor shaft rotation under different operating conditions, vehicle driving speed, and energy consumption of the energy storage module.They proposed a torque-speed-SOC predictive model based on their findings.The model has fewer prediction steps and lower complexity of prediction calculation.The disadvantage of the model is that the prediction accuracy of the model is poor when the running state changes frequently and the torque of the motor changes sharply.Shao et al. [11] utilized historical data of the same vehicle model at different speeds to derive predictive models for the rate of change of SOC under various operating conditions, indirectly predicting SOC.Although the probability of multi-value prediction is reduced, the influence of SOC characteristic curve deviation is ignored, resulting in the increase of system error; Wang R et al.[12]carry out classified training on the historical data of the same vehicle type and different roads to obtain a speed-SOC prediction model.However, this method assumes that the SOC characteristic curve remains fixed and does not change with varying operational states, leading to poor prediction accuracy of the resulting model; Zhu C et al. [13] using environmental temperature variations, classified historical data for training and obtained predictive models for SOC depletion rates at different temperatures, and based on the model and the SOC margin, the total amount of the SOC at the next moment is predicted.On this basis, Li Q et al.[14]estimate the amount of change in SOC by a weighted average of the rate of change, taking into account the part aging probability of the mechanical part.Both methods refer to the standard SOC characteristic curve to train predictive models, without considering the system errors caused by SOC characteristic curve shifts, resulting in poor prediction accuracy of the model; Lim H et al [15] train the SOC prediction model through the historical data of uniform speed driving at different altitudes, and directly predict the SOC; Guo N et al. [16] train the traction power prediction model by using the historical data of climbing driving under different gravity constants, and indirectlyPLOS ONEAn optimized informer model design for electric vehicle SOC predictionThe health assessment process is shown in Fig 1:(1) Data Acquisition: The operational data of total voltage, total current, ambient temperature, vehicle speed, motor temperature, and similar parameters is acquired through the data acquisition module [22];(2) Data Cleaning: Eliminate null value, abnormal value and noise fluctuation of operation data to improve data reliability [23];(3) Feature Screening: Feature data is screened out from the cleaned operation data according to the strength of SOC Correlation [24];(4) Matrix Computation: Using feature data, after determining matrix elements and dimension division schemes, matrix calculations are conducted.This includes computing the weights of each feature's impact on SOC under different operating conditions, as well as assessing the dimensions of interactions among different features.[25];The brief calculation formula for Matrix Computation is as follows:

Introduction

2State of Charge(SOC) prediction is of great significance to the assessment of electric vehicle status.Because of the influence of SOC on power output, energy management and operation of electric vehicles [1], SOC predictions have become a hot topic in electric vehicle research.

3At present, SOC predictions of electric vehicle can be roughly divided into three research directions: SOC prediction through battery working condition; SOC prediction based on the running state change of the electric vehicle; and SOC prediction by combining the historical data of the same type of vehicle on the basis of the two.

4Silva et al. [2] analyzed the relationship between the operation of lithium batteries and emissions gases, predicting the remaining SOC percentage based on CO2, NOx, and other gas concentrations in the circulating air inside electric vehicles, but the method needs the support of high-accuracy air data.If the research of Alarrouqi RA et al. [3] is referred to and the low-accuracy air data is used for battery state analysis and SOC prediction, the model prediction accuracy is reduced due to the influence of truncation error; Tekin M et al. [4] estimates the operating parameters of the electric vehicle and predicts SOC through the physical structure change of battery interlayer under different charging voltages.Due to the assumption in this law that transmission delays are fixed, when communication blocks occur predict the SOC through relevant calculation of mechanics.Due to only considering gravity's impact on driving speed and not its effect on mechanical components, both methods struggle to handle system errors caused by SOC characteristic curve shifts.As a result, the predictive models obtained exhibit poor robustness against disturbances.

5The existing optimization algorithms have addressed some deficiencies in the neural network model but have not significantly enhanced the SOC prediction performance of the model.Selvaraj V et al. [17] combined Bayesian decision mode with Support Vector Regression (SVR), Gaussian Process Regression (GPR) and Linear Regression to improve the SOC multivalue prediction problem of state boundary, but increased the complexity of calculation, and the prediction error of the model was not significantly reduced; Kim D M et al. [18] proposed an improved Deep Neural Network (DNN) for SOC prediction of Fuel Cell Electric Vehicles (FCEVs) based on the changing characteristics of the operating state of FCEVs.The method has fewer prediction steps and higher prediction accuracy, but the prediction calculation is complex, the single prediction time is long, and the hardware requirement is high, which is difficult to be applied in practice; Singla P et al. [19] introduces AND, OR and NOT logic judgment on the original Perturb & Observe (P&O) model to replace the conventional threshold judgment to carry out SOC prediction, although the multi-value prediction frequency is reduced, but the truncation error is not processed in time, and the obtained P&O model exhibits prolonged fixed-value prediction issues when predicting SOC during steady-state operation ranges; Altun Y E et al. [20] applies multi-mode prediction to the existing Artificial Neural Network (ANN).The prediction accuracy of the ANN is temporarily improved, however, when the significant digits after the decimal point of the SOC data are 1-2 bits lower than those of other characteristic data, the prediction accuracy of the ANN is significantly reduced.

6As a new prediction model, Informer model has attracted the attention of researchers because of its excellent performance.However, the current Informer model is difficult to meet the high requirements of accuracy and speed for SOC prediction of electric vehicles.Through the health assessment algorithm, the model structure can be improved, the prediction process can be optimized, and the prediction performance of Informer can be improved.

7Based on this, a new optimized Informer model for electric vehicle SOC prediction is proposed.Compared to existing SOC prediction models and other Informer models, it features the following characteristics:

81. Structural optimization: Through health assessment, improving the En-De module, optimizing the model structure, and without increasing data costs, enhancing the predictive performance of Informer.

Health assessment

9Health assessment is a weight optimization algorithm proposed by Beatrice Greaves, Lars Landberg et al. 2011 [21].It transforms the correlation weights between features into a health matrix based on the statistical probability distribution characteristics of model outputs.

PLOS ONE

10An optimized informer model design for electric vehicle SOC prediction

11where i is the feature number from 1 to N, μ is the mean vector, and Σ is the covariance matrix.

12(5) Matrix Generation: The calculation results of matrix are arranged sequentially to obtain the weight matrix Q N×1 .Each element of Q, representing a different operating state, specifies a weight factor for the feature [26].Factor analysis was then used on the running data to generate the correlation matrix R N 1× .Finally, Q is multiplied by R to obtain the health matrix A, namely:

13where N is the dimension of the matrix, usually 4-12.When N is greater than 12, dimension reduction of operation data is required.

14The optimization analysis of health assessment is as follows Let the first layer input of the prediction model z 0 ( ) , with a principal diagonal element of 1, and a coefficient matrix of D N N × 0 between (0,1) of the remaining elements.Sort D 0 so that the order of D 0 row and column labels is consistent.

15During the prediction process, the coefficient matrix D i for the i -th layer input z i− ( )

16be viewed as the i -th power operation of D 0 :

17The health assessment optimization can be regarded as multiplying the input z 0 ( ) with the health matrix A to obtain z 1 0 ( ) , that is, z z A

18= × , then the coefficient matrix of z 1 0 ( ) is D 1 0 , which is calculated as follows:

19In Equation (4), A reduces the weakly correlated weight of D 0 , that is, on the basis of maintaining the dominance and symmetry of the dominant diagonal, the weakly correlated principal element of D 0 is adjusted to between (0,1).After optimization, all D 0 in Equation ( 3) is replaced by D 1 0 , and the weight of weak correlation decreases every time the forward calculation of the model is performed, so as to reduce the influence of weak correlation features and improve the prediction performance of the model.

20The effects of input z and coefficient matrix D are different due to different prediction processes, and the prediction performance of the model is improved differently after optimization.

21The health assessment algorithm, when applied to the SOC prediction of electric vehicles, has two main drawbacks:

221. High Data Costs: High dimensionality of operation data required by the algorithm leads to large workload of data collection, data cleaning and feature screening, and increases data costs [27];

232. High Complexity: In order to select the main features, a high-order selection module is introduced, which increases the algorithm complexity [28];

24An optimized informer model design for electric vehicle SOC prediction

25In order to solve the above problems, reduce the algorithm complexity and reduce the data costs, the following measures can be taken: Firstly, the principal component analysis method is used to simplify the high-order selection module and reduce the complexity of the algorithm.

26Then, the data costs are reduced by dimensionality reduction and decoupling of the running data.

273 Informer prediction model

Model principle

28Informer is a self-attention prediction model proposed by Zhou Haoyi et al. in 2021 [29].Different from other prediction models, Informer adopts the structure of encoder-decoder separation.

29In the prediction process, there is no other connection between encoder and decoder except the transmission of coding output, and there is no feedback mechanism in all prediction steps.The principle diagram of Informer model is shown in Fig 2.

30In Informer, there are three key structures:

31(1) Self-Attention Distilling Operation: The encoder is composed of a plurality of encoding layers, each encoding layer uses sparse sampling, reduces the sequence length, and outputs strong correlation features in the last layer, and then obtains the encoded output through the feature connection layer.

32(2) Generative Style Decoder: Decoder's decoding operation is carried out based on masking multi-head attention, and decoding output with a specified length can be obtained only

PLOS ONE

33An optimized informer model design for electric vehicle SOC prediction by forward calculation, so that the occurrence probability of multi-value prediction is reduced while cumulative error diffusion is prevented.

34(3) Prob Sparse Self-Attention Mechanism: Based on the conclusion that a small part of dot product focuses on contribution, Informer improves the attention degree of strong correlation features, and improves the self-attention mechanism by increasing the weight of strong correlation features in the prediction process.

35The existing Informer model has the following shortcomings:

361. Frequent Calculation: In order to improve the attention of strong correlation features, the Encoder module needs to perform two dot product calculations, which reduces the prediction speed of Informer [30][31];

372. Decoding Defect: Decoding input, consisting of 0 placeholder and encoded output.The weight of the placeholder is too high, which affects the decoding reliability of the Decoder module and reduces the prediction accuracy of Informer [32][33].

383. High Complexity: Sparse sampling query of self-attention mechanism increases model complexity and reduces the lightweight advantage of Informer [34][35].

39In order to make up for the above shortcomings and improve the prediction performance of Informer, it is planned to obtain the health matrix through health assessment, and optimize the model structure of Informer from two aspects of encoder and decoder.

Encoder optimization

40Encoder has multiple encoding layers, each with a self-attention sublayer and a convolutional sublayer.Let the input of the i -th encoding layer be X i− ( )

411 and the output be X i ( ) .In each encoding layer,

421 is advanced forward by multi-head self-attention, and then convolutional calculations are used to reduce the sequence length to obtain X i ( ) , i.e.,:

43In Equation (5), Conv represents convolutional calculation, Attention represents probabilistic sparse self-attention, and after the Attention

44operation, the output p of the selfattention sublayer can be obtained, that is:

45In Equation (6), softmax is the normalization function, Q is the probability sparse matrix obtained after sampling

461 , d k is the variance, K, K T ,V is the adjustment matrix of the sampling key value, and p is the output of the self-attention sublayer.

47In

481 , the weights of all features are equal, and the weights of the strongly correlated features in X i− ( )

491 are increased through the health matrix A, that is:

50In Equation (5),

511 , which can accelerate the generation of sparse sampling and Q , and improve the encoding speed of Encoder and the prediction speed of Informer.

52The optimization analysis of Encoder is as follows

PLOS ONE

53An optimized informer model design for electric vehicle SOC prediction

54In Equation ( 6), the i -th query element of Q , which is obtained by the following operation:

55where

56represents the asymmetric exponential kernel Exp (q k i j T / d ), and d represents the variance.

57In Equation ( 6) and Equation ( 8), the Top-u query with a sparse metric M( q i ,K) is used, i.e.,:

58where L K denotes the sequence length of matrix K.

59In sparse self-attention, the length of the query and the key are equal, i.e., L Q = L K = L, and the computational complexity is O(L • ln L).Since all features of X i− ( )

601 have equal weights, in order to increase the weights of strongly correlated features, Top-u queries need to perform two dot product calculations, which affects the encoding speed of Encoder.

61By replacing

621 as the input of each encoding layer, the weight of strongly correlated features can be increased, and the Top-u query only needs to perform one dot product calculation, and the computational complexity of sparse self-attention is reduced from

63• ln L), which improves the encoding speed and accelerates theprediction speed of the Informer model.

Decoder optimization

64Let the Decoder be composed of L decoding sublayers overlapping.In the decoding process, initial input c 0 and feature data y need to undergo L decoding operations to obtain the decoding output c L , that is:

65where Decoder i .

66( ) represents the decoding computation of the i -th decoding sublayer, and 0 ≤ ≤ i L. c 0 is the input of the first decoding sublayer, c i−1 is the input of the i -th decoding sublayer, and y represents the characteristic data at the prediction time.

67In c i−1 , all features are weighted equally.The weight of the strongly correlated features in the c i−1 can be increased through the health assessment, namely:

68where h is the health factor, which is obtained by the health matrix A N N × compression transformation.In each decoding sublayer, the decoding output x i obtained by Decoder y c

69is multiplied by the health factor h and used as the input of the next decoding sublayer, which can improve the weight of strongly correlated features, and the decoding accuracy of Decoder and the prediction accuracy of Informer model can be increased.

The optimization analysis of Decoder is as follows

70The input c 0 of the first decoding sublayer can be expressed as a sequence of X de t , i.e.,:

PLOS ONE

71An optimized informer model design for electric vehicle SOC prediction where X R

72is the sequence placeholder with a scalar of 0 (corresponding to all 0s of the X de in Fig 2 ), L token represents the sequence length of the encoded output, L y represents the sequence length of the placeholder, d model represents the feature dimension, and Concat represents the vector connection.By setting the 0 placeholder and −∞ masking dot product, masked multi-head probabilistic sparse self-attention can be applied to the decoding process of Decoder.

73Although the masking dot product can be set to prevent the autoregressive phenomenon of each feature focusing on its own next moment in X de t , the weight of the coded output X token t and the placeholder X t 0 is equal, and the cumulative error caused by X t 0 spreads every time the forward computation of the decoded sublayer is performed.The diffusion of accumulated errors reduces the decoding accuracy of the Decoder.

74The optimization scheme of Equation ( 11) is equivalent to increasing the weight of X token t and decreasing the weight of X t 0 , and it is known from Equation (3) and Equation ( 4) that the cumulative error caused by X t 0 is reduced once every time the forward decoding is carried out, which improves the decoding reliability of Decoder and thus improves the prediction accuracy of Informer.

En-De optimization

75Based on Section 2.1, Informer adopts a structure with separated Encoder and Decoder, and there are no feedback mechanisms.According to Section 2.2 and Section 2.3, optimizing the Encoder module can improve the Informer prediction speed, and optimizing the Decoder module can improve the Informer prediction accuracy, and the two optimization effects do not conflict.En-De combination optimization can simultaneously improve the prediction speed and accuracy of Informer.

Truncation error

76In Literatures [3], [19] and [20], there is a problem that truncation errors cause a decrease in prediction accuracy, which frequently occurs in certain cases.In fact, all prediction models have truncation errors.The reason is that, due to the accuracy limitation of the acquisition module, the significant digit of SOC is only 0 or 1 digit after the decimal point in most cases, which is much lower than the significant digit of 3-4 digits after the decimal point of other characteristics.During prediction, the model standardizes data precision by aligning the significant figures of predicted values with the feature in the training data that has the highest number of significant figures.The larger the significant bit difference between the predicted value and the true value, the greater the SOC truncation error.

77Assuming that the predicted value of SOC is 28.5273 for a certain time, when the true value is recorded as 28.5, the truncation error is {(28.5273-28.5)/28.5273} × 100% = 0.096%, and when the true value is recorded as 28, the truncation error is {(28.5273-28)/28.5273} × 100% = 1.848%, the truncation error is increased by about 20 times.From the analysis in Sections 1 and 2.3, the truncation error will accumulate with the forward calculation.When the truncation error accumulates to a certain extent, the prediction accuracy of the model will decrease significantly.In addition to the limitation of acquisition accuracy, the state change of the power supply module leads to the virtual electricity phenomenon that the actual value of SOC is lower than the measured value [36][37], and the long-term low-speed operation of electric vehicles, with minimal state changes, leads to the phenomenon of fixed SOC measurement [38][39], which will result in the truncation error.

An optimized informer model design for electric vehicle SOC prediction

78In order to reduce the negative influence of truncation error, the basic health matrix can be obtained through health assessment, basic state variables are added, equivalent conversion is carried out, SOC indirect prediction is used instead of SOC direct prediction, and the prediction logic of Informer is optimized.

Prediction logic optimization scheme

79Informer's prediction logic optimization scheme is based on the following four assumptions:

801.Each motor temperature corresponds to a unique SOC characteristic curve.Within the normal operating range, this curve is a smooth and continuous single-value curve.Moreover, the characteristic curves for the same vehicle model at the same temperature are completely consistent.[40][41];

812. All characteristics are smooth and continuous in the normal operation interval and are affected by SOC, motor temperature and other characteristics.Furthermore, when any one feature changes independently while all other characteristics remain unchanged, the rate of change of SOC will correspondingly alter [42][43];

823. In the normal operation range, the SOC characteristic curve of the same vehicle type and different temperature has the same curve trend, and there is only horizontal and vertical translation, resulting in a numerical difference [44][45];

834. The influence of a single feature on SOC is calculated by approximate simplification, i.e., k m x n x l = + + * * ∆ ∆ .Among them, k is the characteristic influence multiplier and m is the influence coefficient of the motor temperature, which is determined by the mechanical structure of the electric vehicle; n is the influence coefficient of other features, which is determined by the physical structure of the energy storage module; ∆ x is the amount of change for the selected feature, and l is a constant.Within the normal operating interval, m, n, and l have a corresponding fixed value for each feature, and this value does not change due to the deviation of the SOC characteristic curve [46][47].

84The prediction logic optimization scheme based on the above assumptions is as follows:

851. Set the temperature of a certain motor and the corresponding characteristic parameters of the electric vehicle to the basic state by referring to the equipment manual or rated parameters;

862. Using the Informer model optimized with historical data and structural adjustments for prediction, and obtaining the baseline health matrix of the system.Through the matrix elements of this baseline health matrix, we calculate the basic rate of change v 0 of SOC, as well as the values m, n, and l corresponding to each feature assumed in hypothesis 4.

873. According to the temperature of the motor, the complete normal operating range is divided into several sub-intervals.For the boundary temperatures of the entire range and the intermediate temperatures at the intersections of the sub-intervals, predictions are made using the dataset from step 2 and the optimized Informer model to obtain the characteristic parameters corresponding to each motor temperature when the SOC change rate is v 0 .These characteristic parameters, along with the SOC basic change rate and the corresponding motor temperatures, are labeled as sub-basic states;

884. When predicting, first, we should obtain a predicted value of the motor temperature through an Informer model, find a corresponding basic state or a sub-basic state according to the predicted temperature and then carry out equivalent conversion to obtain a corresponding SOC change rate at the predicted time;

89If there are p features, the influence rate of the features is calculated to be k 1 , k 2 ,•••, k p .Relative to the basic rate v 0 , the multiple of the prediction rate v 1 is k 0 , and the relevant calculation equation is as follows:

90When it is to be predicted, the corresponding calculation equation for the SOC prediction rate v 1 is:

91where v 0 is the basic rate of change of the SOC, which is obtained in step 2.

925. Combined with the historical value of SOC and the sampling interval, the predicted value of SOC is calculated through the v 1 of the change rate.

93where y i is the true value, y i is the predicted value and y i is the true average value.R 2 indicates the degree of fit, and the closer the value is to 1, the better the fitting effect of the model.MSE, MAE represents the degree of dispersion, and the closer the value is to 0, the smaller the prediction fluctuation of the model.The prediction accuracy is improved, and the judgment is performed by R 2 promotion.When MSE and MAE are unchanged or decreased, R 2 is increased from 0.8 to 0.85 and prediction accuracy is improved by 25%.R 2 improved from 0.9 to 0.95 with a 50% improvement in prediction accuracy.The improvement in prediction speed is assessed by reducing the predicted time required.When MSE, MAE and R 2 remain unchanged or decrease, for single prediction, it takes 30s before optimization and 20s after optimization, and the prediction speed increases by 50%; it takes 30s before optimization and takes 10s after optimization, and the prediction speed increases by 200%.

94If the optimization is effective, MSE and MAE will also decrease while R 2 increases.However, due to the different calculation methods of the model, there is a difference in the degree of predicted fluctuation [48] and in order to increase the overall fit, the decrease of the fit of specific points will increase the cost of accident treatment [49].Therefore, when two indicators improve by more than 10%, and the remaining one decreases by no more than 2%, it is also considered effective optimization.

Simulation environment

95The SOC prediction test was performed using 4 different published data sets, each of which is outlined below: In the phase of structural optimization, four models including before optimization, Encoder optimization, Decoder optimization and En-De optimization were selected for simulation test.In the logic optimization stage, 4 sets of models are optimized for prediction logic in turn, and 8 sets of models before and after logic optimization are used for simulation test respectively.

96From datasets 1 to 4, several subsets of data are partitioned for simulation testing.Each subset contains approximately 20,000 operational records, with the first 80% of the data serving as the training set and the remaining 20% as the test set.All data in datasets 1 to 4 are sourced from real-time data collected by the remote monitoring module of electric vehicles.

97In the prediction effect charts, V1 represents non optimization, V2 represents Encoder optimization, V3 represents Decoder optimization, V4 represents En-De optimization, true represents true value.The horizontal axis represents the sequence number of the data; the vertical axis represents the standardized predicted values, with the vertical axis labels capable of taking any real number.Each prediction effect chart is accompanied by a corresponding table that records relevant prediction results.

98The simulation test platform is Intel Core i7-7700HQ CPU, 8GB DDR4 RAM, 1TB WDC HDD, and the operating system is Windows 10.

99To reduce the impact of dimensional differences, all predictions were normalized as follows:

100where z 0 represents the unnormalized prediction; z 1 represents the normalized forecast; z s represents the variance of the forecast and z represents the average value of all forecasts.See Table 1 for Informer Model Parameters.

PLOS ONE

101An optimized informer model design for electric vehicle SOC prediction

Model optimization verification

102The prediction results using dataset 1 are shown in Figs 4 and 5.

103The prediction results using dataset 2 are depicted in Figs 6 and 7.

104The prediction results using dataset 3 are shown in Figs 8 and 9.The prediction results using dataset 4 are depicted in Figs 10 and 11.

105The prediction results of each simulation test are presented in Tables 2-9.

106As can be seen from Figs 4 to 11, after the En-De optimization, the prediction fitting degree of the Informer model has improved.From Tables 2-9, it can be observed that after the En-De optimization, the R 2 indicator has improved by 15%, both MSE and MAE have decreased, and the prediction time has also been reduced by 50%.From the discussion in Section 4.2, it is known that after the En-De optimization, the prediction accuracy of the Informer model has improved by 15%, and the prediction speed has increased by 100%.Based on health assessment, optimizing the En-De module can enhance the prediction performance of the Informer model.8 and 9 with Table 2-7, it is easy to see that when the operation condition of the electric vehicle is changed from a single charge/discharge state to a complex operation state with multi-state switching, the prediction performance of the Informer is obviously degraded.According to Section 3.1, the prediction performance degradation is caused by the truncation error of SOC.In order to reduce the adverse effect of truncation error, it is necessary to optimize the prediction logic of Informer.

Logic optimization verification

107A prediction logic optimization scheme is given in Section 3.2.In order to verify whether the proposed scheme can reduce the influence of truncation error and improve the SOC prediction performance of Informer, the operation data of No. 3 Type A vehicle and No. 2 Type B vehicle in data set 4 are selected for simulation test from July to October respectively.

108The monthly simulation test of each vehicle includes not only the SOC prediction effect charts before and after logic optimization, but also the prediction effect charts of motor

PLOS ONE

109An optimized informer model design for electric vehicle SOC prediction temperature after logic optimization and the corresponding prediction result table.Prediction 1 represents the prediction effect charts before logic optimization, and Prediction 2 represents the prediction effect charts after logic optimization.

110An optimized informer model design for electric vehicle SOC prediction

111In order to avoid the over-fitting phenomenon caused by repeated training on the same data, for the same model before and after the logic optimization, the data of the same vehicle in the same month and in different time periods are selected for simulation verification.

112Taking Fig 3 as an example, parameter prediction involves pre-computation and is not performed during formal predictions.On the other hand, SOC calculation is a simple arithmetic operation that does not involve the Informer model, taking less than 0.1% of the time required for temperature prediction.Therefore, after optimizing the logic, the time required for motor temperature prediction is added to that for SOC prediction.Only the SOC prediction result table includes a column for prediction time, while the motor temperature prediction table removes the prediction time column.

113The prediction results using the July data from No. The prediction results for No. 3, Type A Vehicle for the month of August are presented in Tables 13-15.

114The prediction results using the September data from No. From Figs 13,16,19,22,25,28,31, and 34, it can be seen that the prediction logic optimization does not conflict with the En-De optimization.From Tables 11,14,17,20,23,26,29, and 32, it can be observed that after optimizing the prediction logic, the En-De optimization effect mentioned in

115An informer model design for electric vehicle SOC prediction

Conclusion

116Through health assessment, this study derived a health matrix.Simultaneously, improving the encoder and decoder optimizes the model structure, thereby synchronously enhancing the Informer's prediction accuracy and speed.Building on this basis, the study indirectly predicts SOC by conducting health assessments, optimizing prediction logic, introducing basic state variables, and employing equivalent conversion to mitigate truncation error effects.This approach further enhances the Informer prediction accuracy.Through simulation test,

2 .

117Logical Optimization: Addition of fundamental state variables allows for indirect SOC prediction through equivalent conversion, reducing the adverse effects of truncation errors.This further enhances the predictive performance of Informer while retaining the benefits of structural optimization.This paper is divided into 5 parts: Part 1 focuses on health assessment and optimization analysis, Part 2 analyzes the Informer model and the En-De optimization scheme, Part 3 examines truncation error and proposes prediction logic optimization, Part 4 involves model testing and result analysis, and Part 5 presents the conclusions.

Fig 1 .

118Fig 1. Health assessment process diagram.https://doi.org/10.1371/journal.pone.0314255.g001

Fig 2 .

119Fig 2. Principle diagram of the informer model.https://doi.org/10.1371/journal.pone.0314255.g002

Fig 3 .R 2 (

120Fig 3. Prediction logic optimization diagram.https://doi.org/10.1371/journal.pone.0314255.g003

Comparing

121Fig 10 and 11 with Fig 4-7, Table

Fig 4 .Fig 5 .Fig 6 .

122Fig 4. SOC prediction chart for Beijing dataset.https://doi.org/10.1371/journal.pone.0314255.g004

Fig 7 .Fig 8 .Fig 9 .Fig 10 .Fig 11 .

123Fig 7. SOC prediction chart for No. 17 vehicle.https://doi.org/10.1371/journal.pone.0314255.g007

3 ,

124Type A Vehicle are shown in Figs 12-14.The prediction results for No. 3, Type A Vehicle for the month of July are presented in Tables 10-12.The prediction results using the August data from No. 3, Type A Vehicle are shown in Figs 15-17.

Fig 12 .

125Fig 12. SOC prediction chart before logic optimization for 3 A-7.https://doi.org/10.1371/journal.pone.0314255.g012

3 ,

126Type A Vehicle are shown in Figs 18-20.The prediction results for No. 3, Type A Vehicle for the month of September are presented in Tables 16-18.The prediction results using the October data from No. 3, Type A Vehicle are shown in Figs 21-23.

Fig 14 .

127Fig 14.Motor temperature prediction chart for 3 A-7.https://doi.org/10.1371/journal.pone.0314255.g014

Fig 15 .Fig 16 .Fig 17 .

128Fig 15.SOC prediction chart before logic optimization for 3 A-8.https://doi.org/10.1371/journal.pone.0314255.g015

Fig 19 .Fig 20 .

129Fig 19.SOC prediction chart after logic optimization for 3 A-9.https://doi.org/10.1371/journal.pone.0314255.g019

The prediction results for No. 2 ,

130Type B Vehicle for the month of August are presented in Tables 25-27.The prediction results using the September data from No. 2, Type B Vehicle are shown in Figs 30-32.The predicted results for No. 2, Type B Vehicle in September are shown in Tables 28-30.The prediction effects using the October data for No. 2, Type B Vehicle are shown in Figs 33 to 35.The prediction results for No. 2, Type B Vehicle in October are shown in Tables 31-33.

Fig 21 .Fig 22 .

131Fig 21.SOC prediction chart before logic optimization for 3 A-10.https://doi.org/10.1371/journal.pone.0314255.g021

Fig 23 .

132Fig 23.Motor temperature prediction chart for 3 A-10.https://doi.org/10.1371/journal.pone.0314255.g023

Fig 24 .Fig 25 .

133Fig 24.SOC prediction chart before logic optimization for 2B-7.https://doi.org/10.1371/journal.pone.0314255.g024

Fig 28 .Fig 29 .

134Fig 28.SOC prediction chart after logic optimization for 2B-8.https://doi.org/10.1371/journal.pone.0314255.g028

Fig 30 .Fig 31 .

135Fig 30.SOC prediction chart before logic optimization for 2B-9.https://doi.org/10.1371/journal.pone.0314255.g030

Fig 33 .Fig 35 .Fig 34 .0 1

136Fig 33.SOC prediction chart for 2B-10 before logic optimization.https://doi.org/10.1371/journal.pone.0314255.g033

1371. Data set of Charging of Chinese Urban Electric Vehicle: This dataset is sourced from the public dataset provided by the 4th Jiangsu Big Data Development and Application Compe-Data set of Battery Module Charging and Discharging of 20 New Energy Vehicles: This data set is sourced from the public data set provided in Literature [50], including the charging and discharging data of 20 electric vehicles, and the data of each electric vehicle includes 9 characteristics including voltage, current, temperature, energy, SOC, etc. Select the running data of No. 2 vehicle and No. 17 vehicle for simulation test; 3. Data set of Power Battery Health of New Energy Vehicles: This data set is sourced from the public data set provided by the 2nd session of Pazhou Algorithm Competition in Guangzhou, including the charging and discharging data of two electric vehicles, and the operation data of each electric vehicle, including such characteristics as speed, voltage, current and SOC.The operation data of two electric vehicles were simulated and tested respectively.4. Data set of Health Degree of New Energy Vehicles in Guangdong-Hong Kong-Macao Bay Area: This data set is sourced from the public data set provided in the 2022 New Energy Smart Vehicle Big Data Innovation Competition in Guangdong-Hong Kong-Macao Bay Area, including the operation data of five new energy vehicles of each type.The operation conditions of the data set are complex, including not only the charging and discharging conditions, but also the high-low speed operation, sudden braking, continuous acceleration or deceleration, turning and turning and other operation conditions.The operational data of each electric vehicle includes multiple features such as SOC, speed, voltage, current, and temperature.This study selects 12 features, including SOC, for simulation testing.

138tition-New Energy Track of "SEED" in 2023, including current, voltage, SOC and energy recorded in electric vehicle charging piles in Beijing, Shanghai and Shenzhen, totally 4 characteristics.Beijing data set with No. 1 and Shanghai data set with No. 2 are selected for simulation test; 2.

Table 6 . SOC prediction results for Type A vehicle.

139https://doi.org/10.1371/journal.pone.0314255.t006

Table 9 . SOC prediction results for No. 4 Type B vehicle.

140https://doi.org/10.1371/journal.pone.0314255.t009

Table 15 . Motor temperature prediction results for 3 A-8.

141https://doi.org/10.1371/journal.pone.0314255.

t015 Fig 18. SOC prediction chart before logic optimization for 3 A-9. https

142://doi.org/10.1371/journal.pone.0314255.g018

Table 18 . Motor temperature prediction results for 3 A-9.

143tion logic, Informer's prediction accuracy improved by around 20%, and the precision improvement from the logic optimization coexists with the precision improvement from the En-De optimization mentioned in Section 4.3.By conducting health assessments, optimizing the prediction logic can mitigate error effects and enhance the predictive performance of the Informer model.

Table 20 . SOC prediction results after logic optimization for 3 A-10.

144https://doi.org/10.1371/journal.pone.0314255.t020Fig 26.Motor temperature prediction chart for 2B-7.https://doi.org/10.1371/journal.pone.0314255.g026

Table 24 . Motor temperature prediction results for 2B-7.

145https://doi.org/10.1371/journal.pone.0314255.t024Fig 27.

SOC prediction chart before logic optimization for 2B-8.

146https://doi.org/10.1371/journal.pone.0314255.g027

Table 26 . SOC prediction results after logic optimization for 2B-8.

147https://doi.org/10.1371/journal.pone.0314255.t026

Table 27 . Motor temperature prediction results for 2B-8.

148https://doi.org/10.1371/journal.pone.0314255.t027

Fig 32. Motor temperature prediction chart for 2B-9. https

149://doi.org/10.1371/journal.pone.0314255.g032

Table 28 . SOC prediction results for 2B-9 before logic optimization.

150https://doi.org/10.1371/journal.pone.0314255.t028

Table 29 . SOC prediction results for 2B-9 after logic optimization.

151https://doi.org/10.1371/journal.pone.0314255.t029

참고문헌 36건

  1. Co-optimization of velocity planning and energy management for autonomous plug-in hybrid electric vehicles in urban driving scenarios Energy · Elsevier BV · 2022 10.1016/j.energy.2022.126060
  2. Prognostics of battery capacity based on charging data and data-driven methods for on-road vehicles Applied Energy · Elsevier BV · 2023 10.1016/j.apenergy.2023.120954
  3. A data-driven energy management strategy for plug-in hybrid electric buses considering vehicle mass uncertainty Journal of Energy Storage · Elsevier BV · 2023 10.1016/j.est.2023.109963
  4. Probabilistic neural network-based flexible estimation of lithium-ion battery capacity considering multidimensional charging habits Energy · Elsevier BV · 2024 10.1016/j.energy.2024.130881
  5. A cloud capacity estimation method for electric vehicle lithium-ion battery independent of cloud SOC Journal of Energy Storage · Elsevier BV · 2024 10.1016/j.est.2024.110998
  6. State of health prediction of lithium-ion batteries based on SSA optimized hybrid neural network model Electrochimica Acta · Elsevier BV · 2024 10.1016/j.electacta.2024.144146
  7. Flexible method for estimating the state of health of lithium-ion batteries using partial charging segments Energy · Elsevier BV · 2024 10.1016/j.energy.2024.131009
  8. Predictive energy management of fuel cell plug-in hybrid electric vehicles: A co-state boundaries-oriented PMP optimization approach Applied Energy · Elsevier BV · 2024 10.1016/j.apenergy.2024.122882
  9. A Novel Supercapacitor Model Parameters Identification Method Using Metaheuristic Gradient-Based Optimization Algorithms Energies · Multidisciplinary Digital Publishing Institute · 2024 10.3390/en17061500
  10. Grid Chaos: An uncertainty-conscious robust dynamic EV load-altering attack strategy on power grid stability Applied Energy · Elsevier BV · 2024 10.1016/j.apenergy.2024.122972
  11. Plug‐In Hybrid Electric Vehicle Energy Management with Clutch Engagement Control via Continuous‐Discrete Reinforcement Learning Energy Technology · Wiley · 2024 10.1002/ente.202301512
  12. Comparative analysis of equivalent circuit battery models for electric vehicle battery management systems Journal of Energy Storage · Elsevier BV · 2024 10.1016/j.est.2024.111327
  13. Torque Vectoring and Multi-Mode Driving of Electric Vehicles with a Novel Dual-Motor Coupling Electric Drive System Automotive Innovation · Springer Nature · 2024 10.1007/s42154-023-00280-x
  14. Development of dual polarization battery model with high accuracy for a lithium-ion battery cell under dynamic driving cycle conditions Heliyon · Elsevier BV · 2024 10.1016/j.heliyon.2024.e28454
  15. Validation of a statistical-dynamic framework for predicting energy consumption: A study on vehicle energy conservation equation Energy Conversion and Management · Elsevier BV · 2024 10.1016/j.enconman.2024.118330
  16. A Bayesian optimized machine learning approach for accurate state of charge estimation of lithium ion batteries used for electric vehicle application Journal of Energy Storage · Elsevier BV · 2024 10.1016/j.est.2024.111321
  17. Enhanced extended-input LSTM with an adaptive singular value decomposition UKF for LIB SOC estimation using full-cycle current rate and temperature data Applied Energy · Elsevier BV · 2024 10.1016/j.apenergy.2024.123056
  18. LA-RCNN: Luong attention-recurrent- convolutional neural network for EV charging load prediction Applied Intelligence · Springer Science+Business Media · 2024 10.1007/s10489-024-05394-1
  19. Reinforcement Learning-Based Energy Management for Fuel Cell Electrical Vehicles Considering Fuel Cell Degradation Energies · Multidisciplinary Digital Publishing Institute · 2024 10.3390/en17071586
  20. Deep neural network-based modeling and optimization methodology of fuel cell electric vehicles considering power sources and electric motors Journal of Power Sources · Elsevier BV · 2024 10.1016/j.jpowsour.2024.234401
  21. Adaptive fuzzy energy management strategy for range‐extended electric vehicles integrated with deep learning Energy Science & Engineering · Wiley · 2024 10.1002/ese3.1744
  22. Design and simulation of 4 kW solar power-based hybrid EV charging station Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-56833-5
  23. An assessment of the energy performance of battery-electric buses in hot environments Sustainable Energy Grids and Networks · Elsevier BV · 2024 10.1016/j.segan.2024.101352
  24. Novel architectures for power management in AC ring main system connected to electric vehicle charging station Energy Reports · Elsevier BV · 2024 10.1016/j.egyr.2024.03.032
  25. Driving behavior-guided battery health monitoring for electric vehicles using extreme learning machine Applied Energy · Elsevier BV · 2024 10.1016/j.apenergy.2024.123122
  26. Energy Management Systems’ Modeling and Optimization in Hybrid Electric Vehicles Energies · Multidisciplinary Digital Publishing Institute · 2024 10.3390/en17071696
  27. Li Stripping Behavior of Anode‐Free Solid‐State Batteries Under Intermittent‐Current Discharge Conditions Advanced Energy Materials · Wiley · 2024 10.1002/aenm.202303571
  28. Numerical assessment of the side impacts on lithium-ion battery module integrated with honeycomb reinforcement Engineering Failure Analysis · Elsevier BV · 2024 10.1016/j.engfailanal.2024.108290
  29. An improved Cauchy robust correction-sage Husa extended Kalman filtering algorithm for high-precision SOC estimation of Lithium-ion batteries in new energy vehicles Journal of Energy Storage · Elsevier BV · 2024 10.1016/j.est.2024.111552
  30. Coupled and decoupled structural batteries: A comparative analysis Journal of Power Sources · Elsevier BV · 2024 10.1016/j.jpowsour.2024.234392
  31. A predictive energy management strategy for plug-in hybrid electric vehicles using real-time traffic based reference SOC planning Proceedings of the Institution of Mechanical Engineers Part D Journal of Automobile Engineering · SAGE Publishing · 2024 10.1177/09544070241239996
  32. Fuzzy Logic-Based Energy Management System for Regenerative Braking of Electric Vehicles with Hybrid Energy Storage System Applied Sciences · Multidisciplinary Digital Publishing Institute · 2024 10.3390/app14073077
  33. ICEEMDAN-Informer-GWO: a hybrid model for accurate wind speed prediction Environmental Science and Pollution Research · Springer Science+Business Media · 2024 10.1007/s11356-024-33383-x
  34. ROP Prediction Method Based on PCA–Informer Modeling ACS Omega · American Chemical Society · 2024 10.1021/acsomega.3c10339
  35. An integrated navigation algorithm assisted by CNN-Informer during short-time GNSS outages Measurement Science and Technology · IOP Publishing · 2024 10.1088/1361-6501/ad5615
  36. Informer Short-Term PV Power Prediction Based on Sparrow Search Algorithm Optimised Variational Mode Decomposition Energies · Multidisciplinary Digital Publishing Institute · 2024 10.3390/en17122984