1 Introduction

Electric vehicles rely on electric traction motors for propulsion, and the motors rely on energy storage power sources such as power batteries or ultracapacitors for power supply [1]. With the popularity of electric vehicles, single-power electric vehicles have some defects, such as weak endurance, insufficient acceleration power, and short battery life. The appearance of a battery/ ultracapacitor hybrid power supply provides a good idea to solve the above problems. Ultracapacitor can protect the battery well and extend the service life of the battery [2]. Then the performance of HEV is closely related to its energy management strategy. The primary function of the energy management strategy is to coordinate the distribution of load power demand of power battery and ultracapacitor, to meet the electrochemical characteristics of power battery and ultracapacitor, which is the key to system energy management [3].

The state estimation of power battery, especially the state-of-charge and remaining discharge time, is the core problem of battery management system [4], which directly affects the reliability, safety, and service life of the battery. However, due to the influence of charging and discharging current, temperature, cycle life, and other factors, the SOC of the battery cannot be measured directly. Still, it can only be estimated indirectly by specific algorithm [5]. Currently, the popular SOC estimation methods are discharging experiment, Ampere-Hour integral method, open-circuit voltage (OCV), Extended Kalman filter, and neural network algorithm [6, 7]. Among these methods, the discharge experiment is not suitable for online use. The accuracy of Ampere-Hour integration depends on SOC initial value calculation, measuring instrument error, current and temperature, and other factors [8, 9], the sensor error and the initial error will lead to greater error of SOC [10]. OCV takes a long time to stabilize the voltage state, which is not suitable for real-time dynamic estimation of SOC [11, 12]. Neural network requires a large amount of data for training, so that the calculation amount is large, and the error is affected by the training data and methods [13]. Extended Kalman filter is easy to realize because of the calculation amount is relatively small, but the white noise with known statistical characteristics is difficult to recognize for electric vehicles, which affects the SOC estimation accuracy [14]. Compared with these SOC estimation methods, the particle filter (PF) is suitable for all nonlinear and non-Gaussian distribution random systems represented by state space models. It has no restrictions on the measurement noise and process noise of the system, and its accuracy can be close to the optimal estimation. It has specific applicability for power battery SOC estimation [15].

Energy management strategies of hybrid power supply can be divided into rule-based and optimization-based [16]. The rule-based control strategy is based on the mathematical model and expert experience, and pre-set rules are applied to allocate various energy sources in the multi-energy scenario [17]. The rule control strategy has been developed from a simple deterministic logic threshold control to an intelligent control strategy based on fuzzy rules, which has high robustness and reliability. However, due to excessive reliance on human experience, the flexibility and adaptability to periodic changes are relatively poor [18]. Optimization-based energy management strategy uses optimal control theory and optimization principle to control the parameters or real-time operation data, such as the Equivalent Consumption Minimization Strategy (ECMS) [19], Dynamic programming (DP) [20], Pontryagin’s minimum principle(PMP) [21, 22], et al. However, most of the real-time optimal control strategies cannot be implemented in real vehicles due to a large amount of calculation or the limitation of microprocessor chips, which needs further research.

A fuzzy control strategy does not rely on accurate mathematical models. It has the advantages of good adaptability, robustness, and practicability, which is very suitable for the hybrid power system with time-varying, nonlinear, delayed, and uncertain models [23]. To solve the problem that the determination of logic rules and membership functions in fuzzy control strategy relies too much on expert experience, intelligent algorithms are used to optimize it [24, 25]. Pei et al. [26] applied quantum chaotic pigeon-inspired optimization (QCPIO) algorithm to the optimization of membership function of the fuzzy logic controller, compared it with particle swarm optimization fuzzy algorithm and original fuzzy algorithm on the SOC of power supply and emissions under different working conditions. Chen et al. [27] used particle swarm to optimize the threshold of the rule-based strategy and took the minimum total energy cost of the vehicle as the optimization objective. Then the driving cycle was taken as an example to verify the online control performance of this method.

In this paper, the results of PF estimation of power battery SOC are applied to the fuzzy logic controller as the energy management strategy of HEV hybrid power supply, and the effectiveness of the strategy is verified by joint simulation. The rest of this paper are arranged as follows: Sect. 2 describes the structure and working mode of the vehicle hybrid power supply, which is the basis of the design of the energy management strategy of the hybrid power supply. Section 3 introduces the design of the battery SOC estimation algorithm, first is the establishment of the battery SOC estimation model, then introduces the PF algorithm and the algorithm flow of the filter algorithm to estimate the power battery SOC. Section 4 is the design of the fuzzy controller of the hybrid power supply energy management, including the discharge and charge fuzzy controller. In Sect. 5, according to the relevant parameters of electric vehicle and power supply, the simulation results under different working conditions are obtained and analyzed in ADVISOR environment. Finally, the conclusion is given in Sect. 6.

2 Structure and working modes of hybrid power supply

2.1 Hybrid power supply structure of the electric vehicle

The topology design of vehicle hybrid power supply plays an essential role in the power distribution and dynamic performance of the whole hybrid power supply system [28]. According to the number of bidirectional DC/DC power converters and their connection positions, the topology of a hybrid power supply can be divided into passive, semi-active, and active structures. In the passive structure, the battery and the ultracapacitor are connected in parallel directly. The voltage of the ultracapacitor is limited by the battery voltage, the usage of ultracapacitor decreases. In the active structure, the ultracapacitor and battery are connected in series with DC/DC converters and then connected in parallel, which has a high cost and complex control strategy. The semi-active structure has only one DC/DC converter, which is connected in series with the ultracapacitor and then connected in parallel with the battery to protect the battery from the impact of peak current. The voltage fluctuation of the DC bus is slight, and the energy utilization efficiency is improved. In this paper, we use the ultracapacitor semi-active structure as the research object, and the topological structure is shown in Fig. 1.

Fig. 1
figure 1

Topological structure of hybrid power supply system

The ultracapacitor is connected to the bidirectional DC/DC power converter, then connected to the DC bus in parallel with the power battery to supply power to the load. Among them, the power battery provides the main power to meet the basic requirements of the whole vehicle for driving range. The ultracapacitor is used as the auxiliary power supply to meet the demand of short-term high power such as frequent starting, acceleration or climbing, and realize the energy recovery when the vehicle is braking. The bidirectional DC/DC power converter realizes the voltage balance between the power and load and undertakes the energy distribution and management of the power system.

2.2 Hybrid power supply working modes of electric vehicle

During the driving process of electric vehicles, the hybrid power supply presents different working modes, the analysis of its power flow can be summarized into four working modes:

  1. (1)

    Power battery alone working mode. In this case, the vehicle is working at a constant speed or under acceleration driving conditions with small power demand, so the power demand of the vehicle is not high, provided by the power battery alone. And the vehicle driving for a long time in this condition, the energy demand is enormous, the battery can give full play to the advantages of the energy density.

  2. (2)

    Ultracapacitor single working mode. When the vehicle starts, the power supply is required to provide a significant power output in a short time and does not require much energy. At this time, the power is supplied by the ultracapacitor alone, which can give full play to the advantage of the high-power density of the ultracapacitor.

  3. (3)

    Power battery and ultracapacitor working mode. When the vehicle is driving under rapid acceleration, climbing, or at high speed, the maximum power threshold of the power battery may not meet the power demand of the vehicle, while the ultracapacitor alone is not enough to drive the vehicle. At this time, the power battery and ultracapacitor should work together to meet the power demand of the vehicle, and the output power ratio of the two should be reasonably distributed.

  4. (4)

    Regenerative braking mode. When the vehicle works in the deceleration or downhill driving state, the motor is regeneratively braked, and working in the power generation state. The generated electric energy is returned to the hybrid power supply. At this time, the recovered power is distributed according to the SOC state of the power battery and the ultracapacitor. Still, to avoid the impact of high current on the power battery, the ultracapacitor is charged preferentially.

3 Battery SOC estimation algorithm design

PF algorithm can solve the nonlinear filtering problem, and the estimation accuracy is close to the optimal estimation. Therefore, this paper uses the PF algorithm to estimate power battery SOC and applies the estimation results to the design of a fuzzy controller.

3.1 Battery SOC estimation model

The battery SOC is the state variable of the model, and the state equation is derived from Eq. 1:

$$SOC\left( t \right) = SOC_{0} - \int_{0}^{t} {\frac{i\left( \tau \right)}{{C_{n} }}} d\tau$$
(1)

where SOC(t) is the SOC value of the battery at t. SOC0 is the initial SOC value of the battery. Cn is the rated capacity of the battery pack. i(t) is the instantaneous charging and discharging current of the battery, which is positive when discharging and negative when charging. Equation 1 is discretized as:

$$SOC_{k} = SOC_{k - 1} - \frac{\Delta t}{{C_{n} }}i_{k - 1}$$
(2)

where SOCk is the SOC value of the battery at k. ik-1 is the battery’s current at k-1. △t is the time interval.

Considering the accuracy of the battery model, a comprehensive model combining Shepherd model, Unnewehr universal model, and Nernst model is used as the observation equation [28, 29], as shown in Eq. 3:

$$\begin{gathered} U_{k} = U_{{0}} - Ri_{k} - \frac{{k_{1} }}{{SOC_{k} }} - k_{2} SOC_{k} \hfill \\ \begin{array}{*{20}c} {} & {} \\ \end{array} \quad+ k_{3} \ln \left( {SOC_{k} } \right) + k_{4} \ln \left( {{1 - }SOC_{k} } \right) \hfill \\ \end{gathered}$$
(3)

where Uk is the output voltage of the battery at k; R is the internal resistance of the battery; k1 is the polarization resistance; k2, k3 and k4 are unknown models matching parameters that are determined by the battery.

In conclusion, the battery model is as follows:

State equation:

$$SOC_{k} = SOC_{k - 1} - \frac{\Delta t}{{C_{n} }}i_{k - 1} + w_{k}$$
(4)

Observation equation:

$$\begin{gathered} U_{k} = U_{{0}} { - }Ri_{k} - \frac{{k_{1} }}{{SOC_{k} }} - k_{2} SOC_{k} \hfill \\ \begin{array}{*{20}c} {} & {} \\ \end{array} \quad+ k_{3} \ln \left( {SOC_{k} } \right) + k_{4} \ln \left( {{1 - }SOC_{k} } \right) + v_{k} \hfill \\ \end{gathered}$$
(5)

where wk is the state noise of corresponding SOC, and vk is the observation noise of corresponding SOC. They are independent random noises.

3.2 Estimation of battery SOC by PF

Particle filter is a statistical method based on recursive Bayesian estimation and Monte Carlo method. It uses random samples in the state space to approximate the posterior probability density function and estimates the state value according to Monte Carlo method [30].

Particle filter algorithm is applied to estimate the SOC of battery, and a group of random samples with relevant weights are used to approximate the posterior probability density function:

$$P\left( {\overrightarrow {X}_{k} \left| {U_{k} } \right.} \right) \approx \sum\nolimits_{i = 1}^{{N_{s} }} {\omega_{k}^{i} \cdot } \delta \left( {\overrightarrow {X}_{k} - \overrightarrow {X}_{k}^{i} } \right)$$
(6)

where \(\overrightarrow {X}_{k}^{{}} = \left[ {SOC_{k}^{{}} ,U_{k}^{{}} } \right]^{T}\) is a column vector composed of the SOC and the output voltage of the battery at any k time, which represents the state set.\(\overrightarrow {X}_{k}^{i} = \left[ {SOC_{k}^{i} ,U_{k}^{i} } \right]^{T}\) is the i(i = 1-Ns)random particle set generated by the corresponding weight of \(\omega_{k}^{i}\) at k time. \(\delta \left( \cdot \right)\) is Dirac delta function.

The weight at k is updated by Gaussian distribution probability density function based on the weight of k-1. Gaussian distribution is used to approximate the importance density function to generate the importance distribution of particle filter, the formula of renewal law as:

$$\omega_{k}^{i} = \omega_{k - 1}^{i} P\left( {U_{k} \left| {\overrightarrow {X}_{k}^{i} } \right.} \right) = \omega_{k - 1}^{i} \frac{1}{{\sqrt {2\pi \sigma^{2} } }}\exp \left( { - \frac{1}{2}\frac{{\left( {U_{k} - \hat{U}_{k} } \right)^{{2}} }}{{\sigma^{2} }}} \right)$$
(7)

where \(U_{k}\) and \(\hat{U}_{k}\) are the measured value of the battery output voltage and the average value of the model output voltage at k, \(\sigma\) is their standard deviations.

Normalize the weights of particles:

$$\overline{\omega }_{k}^{i} = {{\omega_{k}^{i} } \mathord{\left/ {\vphantom {{\omega_{k}^{i} } {\sum\nolimits_{j = 1}^{{N_{s} }} {\omega_{k}^{j} } }}} \right. \kern-\nulldelimiterspace} {\sum\nolimits_{j = 1}^{{N_{s} }} {\omega_{k}^{j} } }}$$
(8)

After considering the total weight of all particles, the prediction result can be expressed:

$$\overrightarrow {X}_{k} = \sum\nolimits_{i = 1}^{{N_{s} }} {\overrightarrow {X} }_{k}^{i} \cdot \overline{\omega }_{k}^{i}$$
(9)

The steps of using the PF algorithm to predict battery SOC are as follows:

  1. Step 1

    Initialization: the particle set \(\left\{ {x_{0}^{i} } \right\}_{i = 1}^{{N_{s} }}\) is generated from the initial probability distribution p(x0), and the particle weights are initialized to \(\omega_{{0}}^{i} = {1 \mathord{\left/ {\vphantom {1 {N_{s} }}} \right. \kern-\nulldelimiterspace} {N_{s} }}\);

  2. Step 2

    Calculation of state value: calculate the state value and corresponding observation value of particles at k according to space states Eqs. 4 and 5;

  3. Step 3

    Calculation of weight: calculate the particle weight according to Eq. 7, and normalize the weight according to Eq. 8;

  4. Step 4

    Resampling: calculate the number of effective particles according to Eq. 10:

    $$N_{eff} = \frac{1}{{\sum\limits_{i = 1}^{{N_{s} }} {\left( {\omega_{k}^{i} } \right)^{2} } }}$$
    (10)

    Set a valid number of samples Nthres as the threshold, if \(N_{eff} \le N_{thres}\), then resample can be done.

  5. Step 5

    Update SOC value: calculate state estimation value according to Eq. 9 and update SOC value:

    $$SOC_{k} = \overline{X}_{k}$$
    (11)
  6. Step 6

    Judgment and loop: if the number of iterations is reached, the algorithm ends, otherwise, k = k + 1, and return to Step 2.

The SOC value estimated by the PF algorithm is used as the input variable of the fuzzy controller to verify the estimation accuracy of SOC.

3.3 Battery SOC estimation results

To more objectively reflect the advantages of particle filter algorithm in SOC estimation, the initial SOC values of power battery are set to 1 and 0.8, respectively. The estimated values of PF algorithm, Ampere-Hour integral method (AHI), and Extended Kalman filter (EKF) method are compared with the actual values, and the results shown in Figs. 2 and 3 are obtained.

Fig. 2
figure 2

Comparison of estimated values with initial SOC value of 1

Fig. 3
figure 3

Comparison of estimated values with initial SOC value of 0.8

The comparison results show that the particle filter algorithm is closer to the actual value in SOC estimation. To measure the accuracy of SOC estimation, the maximum error, average error, and root mean square error (RMSE) are selected for statistical analysis. The estimation errors of the three methods when the initial SOC values are 1 and 0.8 are shown in Tables 1 and 2.

Table1 Estimation error of SOC with initial value of 1
Table2 Estimation error of SOC with initial value of 0.8

According to the error statistical results in Tables 1 and 2, the estimation result of power battery SOC by PF algorithm is closer to the actual value. This lays a foundation for applying the result of PF estimating of power battery SOC to the fuzzy controller in the next step.

4 Fuzzy control management strategy of hybrid power system

According to the different working states of hybrid power supply in driving mode and braking mode of the electric vehicle, two parallel fuzzy controllers of discharging and charging are designed. The structure is shown in Fig. 4.

Fig. 4
figure 4

Structure of fuzzy controller for vehicle hybrid power supply

Under different operating conditions of the vehicle, the required power Preq, the state-of-charge of the power battery SOCbat and the state-of-charge of the ultracapacitor SOCuc are taken as the input variables of the fuzzy controller. The distribution parameter Kuc.1 and Kuc.2 of ultracapacitor are taken as the output variables of the two fuzzy controllers. The internal logic structure of a fuzzy controller includes fuzzification, fuzzy inference, and defuzzification. The process of fuzzy inferences depends on the knowledge base, as shown in Fig. 5.

Fig. 5
figure 5

Structure diagram of fuzzy controller

The input and output variables of the fuzzy controller need to be fuzzed before logic operation and optimization. Firstly, set the domain of membership function. For the convenience of analysis, the domain of membership function of motor demand power Preq and power distribution parameter Kuc of the ultracapacitor is converted to continuous interval [0,1]. The domain of membership function of power battery state-of-charge SOCbat and ultracapacitor state-of-charge SOCuc are set to [0.2,0.9] and [0.2,1] respectively according to the working conditions. The corresponding fuzzy subsets are shown in Table 3, where TS is a little small, S is small, M is middle, B is big, TB is a little big, L is low, and H is high.

Table 3 Fuzzy domain and fuzzy subset of variables

It is essential to set the membership function and control rules of the fuzzy logic controller. The smoother the membership function curve is, the smoother the output curve follows the input, the better the system stability is. Whereas the sharper the curve shape is, the higher the resolution is. In this paper, the membership function is designed by the combination of Gaussian (gaussmf) and triangle (trimf). Figures 6 and 7 show the setting result of membership function curves of input and output variables.

Fig. 6
figure 6

Input and output membership function of charging fuzzy controller

Fig. 7
figure 7

Input and output membership function of discharge fuzzy controller

The fuzzy rules are the core of fuzzy controllers. After determining the fuzzy subsets and membership functions of input and output variables, the fuzzy rules are selected as follows:

Ri: If x1 is \(X_{1}^{i}\) and x2 is \(X_{2}^{i}\),…, and xi is \(X_{n}^{i}\), Then y is Yi, i = 1, 2, …, n

where Ri is the rule i, xi is the input, and y is the output.

Fuzzy rules map language input variables (Preq, SOCuc, SOCbat) to output variables (Kuc) through IF–THEN statements. Under charging and discharging mode, 57 rules are formulated in fuzzy controller FIS, and each rule is based on expert experience or knowledge base, as shown in Tables 4 and 5.

Table 4 Fuzzy rule table in charging mode(Preq < 0)
Table 5 Fuzzy rule table in discharging mode(Preq > 0)

Furthermore, the fuzzy regular 3D surface is shown in Fig. 8, which reflects the mapping relationship between input and output variables.

Fig. 8
figure 8

Regular surface graph of fuzzy controller: (a)Input and output mapping surfaces in charging mode; (b)Input (Preq and SOCbat) and output mapping surfaces in discharging mode;(c)Input (Preq and SOCuc) and output mapping surfaces in discharging mode

Based on the fuzzy rules, the inference method of the Mamdani model is used for fuzzy inference. The results are defuzzified by the barycenter method, and finally transformed into the actual control quantity.

5 Simulation and result analysis

To verify the effectiveness of the designed fuzzy energy management strategy based on SOC estimation, a simulation model of the hybrid electric vehicle is built in the ADVISOR, and the basic simulation parameters are shown in Table 6.

Table 6 Basic parameters of the hybrid electric vehicle

The PF algorithm is compiled to.m file in MATLAB environment, encapsulated and embedded into the power battery model of the hybrid power supply to achieve the estimation of power battery SOC. In ADVISOR, the vehicle operating conditions of the New European Driving Cycle (NEDC) and Urban Dynamometer Driving Schedule (UDDS) are selected for simulation test. The SOC results of power battery are obtained by the single power electric vehicle (EV), hybrid electric vehicle (HEV) of battery SOC estimation by the original and PF algorithm. The comparison graphs are shown in Figs. 9 and 10.

Fig. 9
figure 9

SOC consumption of power battery under NEDC

Fig. 10
figure 10

SOC consumption of power battery under UDDS

Figures 9 and 10 show the change of electric vehicle power battery SOC under NEDC and UDDS by using single-power battery power supply, hybrid power with SOC original estimation and PF estimation. From the figures, we observed that the initial SOC value of the battery is 1. After one cycle of NEDC, the SOC becomes 0.932 under the action of single-power supply, and then the SOC under the fuzzy control strategy of the hybrid power supply becomes 0.95 (SOC original estimation) and 0.965(SOC PF estimation); after one cycle of UDDS, the SOC values of the three strategies are 0.929, 0.945 and 0.96 respectively.

Therefore, compared with single-supply electric vehicles, the SOC consumption value of the power battery of the hybrid electric vehicle is reduced under any cycle conditions. While, compared with the original fuzzy control strategy based on the Ampere-Hour integral method to get the SOC, the fuzzy control strategy based on PF algorithm to estimate the SOC of the power battery gets consistent overall trend of the SOC consumption curve of the power battery, and the error is small. The results show that for SOC of the power battery, the fuzzy control strategy of the hybrid power supply can reduce the SOC consumption of the power battery, and it is feasible to use the PF algorithm to estimate the battery SOC in the fuzzy control strategy of the hybrid power supply.

The PF estimation algorithm is applied to the hybrid power fuzzy supply controller of hybrid power supply for joint algorithm simulation, the discharge current of power battery under different conditions is simulated, and the comparison results as shown in Figs. 11 and 12.

Fig. 11
figure 11

Current curves of power battery under NEDC

Fig. 12
figure 12

Current curves of power battery under UDDS

Figure 11 is obtained under the NEDC cycle condition. From the trend of three curves, we can see that compared with hybrid electric vehicles, the current of the power battery of single-supply electric vehicles is significantly higher, with a maximum discharge current of 105.2A. With the assistance of the ultracapacitor, the power battery current of the electric vehicle is reduced, and the maximum discharge current of the fuzzy algorithm is 73.81A. After adding PF SOC estimation, the result of joint algorithm is 73.39A.

In the simulation results Fig. 12 of the UDDS cycle, we can see that the power battery current is 92.47A for single-supply EV. The power battery currents of the fuzzy algorithm and joint algorithm for HEV are 62.66A and 61.8A, respectively. It shows that the hybrid power supply composed of power battery and ultracapacitor can effectively reduce the charging and discharging current of the power battery and protect the power battery. Joint algorithm of HEV can reduce the charging and discharging current. It can verify the feasibility of estimating the battery SOC by PF algorithm to be applied to the fuzzy control strategy of hybrid power supply, which has specific reference value.

6 Conclusion

In this paper, the energy management strategy of power battery and ultracapacitor in HEV is studied, and a fuzzy logic control strategy on power battery SOC estimation by PF algorithm is designed. Power battery SOC estimation uses the PF algorithm to realize the accurate estimation of the power battery state-of-charge. The estimation results are applied to the fuzzy controller, which takes the power battery SOC, ultracapacitor SOC, and the required power under the vehicle operating conditions as input variables, and the distribution parameter of the ultracapacitor is obtained by fuzzy reasoning. Then the output power of the ultracapacitor and the power battery is obtained, to realize the effective power distribution of the HEV hybrid power supply.

Set the initial value of the power battery as 1 and 0.8. Comparing the results of SOC estimation algorithms such as AHI, EKF and PF, it is found that the SOC estimation result of the PF algorithm is closer to the actual value of power battery SOC. And the SOC estimation result of PF is embedded into the fuzzy controller for joint simulation. In ADVISOR environment, the two cycle conditions of NEDC and UDDS are simulated and verified. It is found that the charge and discharge current, and SOC consumption of the power battery are reduced, which shows the effectiveness of the algorithm. It also provides a specific reference value for the further study of the power supply control strategy of HEV.