Next Article in Journal
Second-Life Assessment of Commercial LiFePO4 Batteries Retired from EVs
Previous Article in Journal
Improving Lithium-Ion Battery Performance: Nano Al2O3 Coatings on High-Mass Loading LiFePO4 Cathodes via Atomic Layer Deposition
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Resource-Constrained Polynomial Regression Approach for Voltage Measurement Compression in Electric Vehicle Battery Packs

Electrical Engineering and Technical Informatics Department, University of the Bundeswehr Munich, 85577 Neubiberg, Germany
*
Author to whom correspondence should be addressed.
Batteries 2024, 10(9), 305; https://doi.org/10.3390/batteries10090305
Submission received: 5 August 2024 / Revised: 26 August 2024 / Accepted: 27 August 2024 / Published: 29 August 2024
(This article belongs to the Section Battery Modelling, Simulation, Management and Application)

Abstract

:
Technologies like data-driven methods for battery state estimation, fleet monitoring and cloud-based BMSs are emerging. However, challenges in data compression and storage hinder their widespread adoption. This paper addresses these issues by proposing a novel, efficient lossy voltage data compression method for measurements in electric vehicles. The method is grounded in polynomial regression and enables the use of the adaptive method without the need for parameters or training of the model which, representing an improvement over existing techniques. At a compression rate of 99.75% in an ambient temperature of 25 °C on average across all drive cycles compared, the root mean square error (RMSE) was 5.62 mV. Impressively, at a compression rate of 99%, the RMSE decreased to 3.12 mV. Furthermore, an implementation on a low-power STM32 microcontroller can compress 600 data points in just 35 milliseconds, demonstrating its suitability for real-time applications. These results highlight the potential of our approach to significantly improve the efficiency and accuracy of voltage measurement compression in electric vehicles, paving the way for advancements in electric vehicle technology.

1. Introduction

In the research field of batteries for electric vehicles, data-driven methods for estimating states, such as the state of charge (SOC), State of Health (SOH), or core temperature, are becoming increasingly relevant [1,2,3]. Furthermore, technologies such as monitoring, digital twins, and cloud-based battery management systems (BMSs) are raising interest from researchers and the industry [4,5,6]. A battery pack contains a large number of battery cells connected in a series and in parallel to meet the requirements of high-energy storage [7]. Each of these cells has to be monitored and controlled. Many problems must be solved before these data-driven technologies can be applied to electric vehicles (EVs). A primary focus is currently on the development of high-accuracy estimation models. However, efficient data compression is needed to transfer and store data in the field of the Internet of Things (IoT) with increasing data amounts [8]. Data compression also decreases the requirements of resources such as storage, bandwidth, and energy consumption in data storage and transfer [9].
Khalid Sayood [10] describes compression as the science of representing data in a packed condition. Data compression consists of two parts: compression, which encodes the data, and decompression, which decodes the data. The different compression techniques can be classified as lossless and lossy methods.
Figure 1 illustrates the difference between both methods. With lossless techniques, compressed data can be exactly reconstructed to match the original data. These methods are usually used for data that cannot be changed due to compression, such as documents or database entries. This kind of compression is limited by the maximum amount of data that can be compressed without loss. Within the figure, the loss of information is depicted by an underscore in the text, a variation in font style, and a schematic representation of the file icon. Chiarot and Silvestri [11] show additional categories to describe compression algorithms:
  • Non-adoptive and adaptive algorithms: A model’s training is required to compress the data efficiently or not. Non-adoptive algorithms are dependent on model training.
  • Symmetric and non-symmetric: The algorithm is symmetric if the decoder performs the same operations, such as the encoder, but in reverse order.
Figure 1. The process of compression and decompression of lossless and lossy compression methods; data loss illustrated by font change and underscores in the data text.
Figure 1. The process of compression and decompression of lossless and lossy compression methods; data loss illustrated by font change and underscores in the data text.
Batteries 10 00305 g001
One main attribute used to evaluate and compare different compression methods is the Compression Ratio ( C R ) and Rate of Compression ( R o C ). This attribute quotes the ratio between the original amount of data and the compressed amount [12]:
C R = Compressed Size Original Size ,
R o C = 1 C R
The lossy compression’s archive achieves a much higher CR than the lossless compression’s, but a the cost of a loss in accuracy of the reconstructed data [13]. Alternatively, as described in the literature [9], the decompressed data of lossy compression methods approximate the original data. In addition to CR, the precision after decompression is an attribute of these methods. Accuracy can be described in metrics such as Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) [14].
The domain of various lossy compression techniques is extensive. Correa [9] identifies several lossy compression techniques, facilitating differentiation among them:
  • Transform: changing the domain of the signal, such as from the time to the frequency domain by Fourier Transform.
  • Artificial Intelligence (AI): one use case of AI is the use of neuronal networks as encoders and decoders to compress and decompress data.
  • Interpolation: creating new data points using a range of known points is the definition of interpolation. With this method, data can be reconstructed on the basis of approximate or representative values.
  • Hybrid: The combination of lossy and lossless algorithms.
See [15]’s remarks on the estimation of battery cell state as one of the key functionalities of BMSs. Therefore, measured data, such as current and voltage, must be processed and stored. Especially for the usage in second-life applications, historical data are necessary. Computational and storage resources are highly limited regarding BMS applications. This necessitates the implementation of both efficacious and robust data compression methodologies. In addition to lossless compression methods, the required amount of data storage can be reduced by variable recording frequency depending on the dynamics of the battery pack [16]. Therefore, the authors propose an algorithm to reduce the recording frequency depending on the dynamics of the battery cell. According to the results of the paper, the accuracy highly depends on the frequency. A recording frequency of 2 Hz is required to enable accurate estimations during high dynamic processes. Based on this work, Zhou [17] suggests a data storage approach that utilizes the frequency division model of a battery pack to reconstruct the voltage data that has been logged with a lower frequency. A recording frequency of 0.2   Hz enabled compression to 28% of the original required space with a mean RMSE of 9.7   m V on eight tested battery cells.
To address the compression of voltage data, Tang et al. [18] propose a method that blends a battery model, a neuronal network-based migration model, and interpolation. A RoC of 90%, 95%, and 99% ends in a reconstructed RMSE of 2.9   m V , 4.16   m V , and 10.01   m V .
It turns out that the compression methods presented so far are dependent on battery parameters being estimated or ML models being trained beforehand. Cell aging, temperature changes, and the state of charge strongly influence the behavior of batteries and influence the accuracy of battery models and their parameters [19]. This suggests that an adaptive method, which is independent of environmental variables, is better suited for use in real-work applications.
Polynomial coding has been established as a lossy compression method in the field of image and speech compression for a long time [20,21,22]. This paper introduces a method to compress and reconstruct voltage measurements using a lossy polynomial coding algorithm. The algorithm’s focus is on accuracy and lightweight computation. Therefore, the current of series-connected battery cells can be utilized to reconstruct the voltage using the polynomial regression parameters of each individual cell. This work introduces and evaluates this method. Resource-saving decompression is particularly important when it comes to an application in the BMS. Here, bandwidths and computing power are highly limited. Massive resource savings can also be achieved for the storage of measurements in cloud infrastructures on a fleet scale.
To the best of our knowledge, this paper presents the first adaptive approach to compress voltage data. To compress voltage data, a polynomial coding method is proposed. The characteristics of our proposed method are as follows:
  • Adaptive method: the method is able to adjust to changing battery conditions.
  • No battery-specific parameters required for compression: the method does not require prior knowledge of battery characteristics.
  • No machine learning training: the method does not need to be trained on specific datasets.
  • Computational efficiency: the method is computationally efficient, making it suitable for real-time applications for implementation on standard BMSs.

2. Compression Method

The proposed method contains four phases: measurement, compression, transfer and storage, and reconstruction. The phases are illustrated in Figure 2.
An overview of the individual steps is provided before the method is explained in detail:
  • Measurement: the voltage and current measurement of the battery cell.
  • Compression: the compression of the measured values consists of two sub-phases:
    • Time window slicing: slicing the measurement values into time frames. The fixed length of the time frames is named the window size.
    • Model fitting: fitting the polynomial regression. It is the regression of the current and voltage measurements.
  • Storage/Transfer: to transfer and store the compressed measurements, only the regression coefficients and the values of the current measurement must be stored.
  • Reconstruction: the voltage values are reconstructed based on the regression coefficients and the time-dependent current values.
The proposed method primarily focuses on compression and reconstruction, with the additional, albeit essential, steps of measuring and storing/transferring. In the context of the work presented here, the measurement method used is not relevant; the accuracy and efficiency of the method are independent of it. Furthermore, the procedure is also independent of the storage method used. Effective compression is necessary if the data are stored exclusively on the vehicle or transferred, processed, and stored in the cloud. The installed bandwidth within the vehicle and storage capacity can be utilized more effectively. If the measurement data are to be transferred to the cloud, bandwidth can be utilized effectively, and costs can be reduced.

2.1. Compression

Multiple studies have shown that the fitting of a voltage relaxation curve can be used to estimate the SOH or capacity of a battery cell [23,24,25]. An equivalent circuit model (ECM) characterizes the behavior of a battery throughout its charging and discharging processes. This model encompasses multiple RC connections. Figure 3 shows an ECM containing n RC components. The internal resistance of the cell is described by R 0 . Furthermore, C k and R k represent the capacitance and resistance of the RC component k, which describes the diffusion process of the battery cell.
Liu [26] defines the battery cell voltage u B as follows:
u B = V o c ( S O C ) i R 0 i R 1 1 exp T τ 1 i R 2 1 exp T τ 2 i R n 1 exp T τ n ,
where V o c v ( S O C ) is the open-circuit voltage as a function of the SOC, i the current, τ k the time constant C k × R k , and T the discharge/charge time.
Within a short measurement time window, the change of V o c and the changes of T, R, and C can be ignored and seen as fixed values of the function. Due to this, the voltage can be articulated as a function of the current in the following manner:
u B β 0 + β 1 i B + + β n i B ,
where β k represents the parameter R k 1 exp T τ k of the RC component k. The parameters of this function can be identified by applying regression analysis.
Thus, regression has to be introduced. Regression is a statistical method to describe the relation between variables [27]. The main goal of regression is to summarize the data as usefully and elegantly as possible [28]. The definition of the simple linear regression model is
y = β 0 + β 1 x + ϵ ,
where β 0 is the intercept, β 1 the slope, and ϵ the random component. Figure 4 visualizes, in the top left, an example of linear regression. This figure shows ten data points. The intercept β 0 and the slope β 1 characterize the linear regression.
As the estimation method for the parameters β 0 and β 1 , the ordinary least squares method is used, described in [29]. A linear function cannot accurately characterize the relationship between current and voltage over a brief interval. Furthermore, a curved function has to be used to determine the behavior between these two characteristics. To do so, a higher-order polynomial regression model in the ( k + 1 ) th order is described by Seber [30] as follows:
y = β 0 + β 1 x + β 2 x 2 + + β k x k + ϵ .
In Figure 4, a second-order (top right), third-order (bottom left), and fourth-order (bottom right) polynomial regression are represented. Polynomial regression allows for describing non-linear processes in a battery over a defined period. As illustrated in Figure 4, higher-order models enable better representation of the relation between current and voltage over a given time. Thus, voltage measurements can be lossy-compressed as a polynomial regression model. For instance, a quartic polynomial model spanning a dataset comprising 100 paired observations of voltage and current facilitates a CR of 95% for the voltage data. This efficiency is achieved as the model is succinctly represented by five coefficients: β 1 , β 2 , β 3 , β 4 , and ( β 0 + ϵ ) , rather than the complete set of 100 voltage measurements.
The least squares method is applied to estimate the regression parameters. Several detailed descriptions of the parameter estimation of the polynomial regression have been given [31,32].

2.2. Reconstruction

The reconstruction of the adaptive, non-symmetrically lossy-compressed voltage data u B ( t ) was executed utilizing the current values i ( t ) and the polynomial coefficients. The function described in Equation (6) was employed for this purpose. Figure 5 depicts the temporal evolution of the reconstructed voltage. The input values are the regression coefficients and the current measurements.

3. Method Analysis and Discussion

The evaluation consists of two parts: accuracy and runtime. Two main factors decide if the method can be utilized, whether the reconstructed data are accurate and whether the method is employable within BMS hardware. Through several datasets, the accuracy of the method was evaluated. The method’s runtime was evaluated with an STM32L432 microcontroller (STMicroelectronics NV, Plan-les-Ouates, Switzerland) as the device under test (DUT). Accuracy and runtime were evaluated independently.

3.1. Accuracy of Lossly Data Compression

Three distinct datasets, two previously published datasets, and an unpublished dataset, were utilized for this to assess the proposed methodological framework’s effectiveness.
  • Temperature-dependent constant current (CC)–constant voltage (CV) charging–discharging data:
    for this work, constant current–constant voltage (CC-CV) charging and discharging cycles were performed at various C-rates and ambient temperatures, with a measurement frequency of 1 Hz . As the DUT, eight Li-Ion Molicel P42A battery cells (Molicel, Taipei, Taiwan) were used.
  • Aging data:
    Jöst et al. [33] published aging data of 28 18650 high-energy NCA/C+Si round cells measured with a 0.1   Hz frequency. Drive cycles were applied to age the cells at an ambient temperature of 25 °C.
  • Drive cycle data:
    Kollmeyer [34] published a dataset that includes data from different tests performed as described in the data description. As the DUT, the graphene lithium polymer (LiPo) battery Turnigy Graphene 5000 mAh 65C (HobbyKing, Hong Kong, China) was employed during the tests. The data were measured with a 10 Hz frequency. To evaluate the proposed lossy data compression method, driving cycle data of the dataset were used. These drive cycles include the Urban Dynamometer Driving Schedule (UDDS), Highway Fuel Economy Test (HWFET), LA92, US06, and random mixes of these drive cycles specified as Mixed1–8. In addition to different drive cycles, six different ambient temperatures were under test.
The accuracy of the presented method depends on the selected order of the polynomial compression, as well as the length of the time window that is compressed. It is imperative to determine the optimal polynomial order necessary to most accurately characterize the correlation between voltage and current. Therefore, in the first step, the effect of the chosen polynomial order on accuracy was evaluated. The Kollmeyer dataset [34] was used with several window sizes and third-, fourth-, fifth-, and sixth-order polynomials for regression. Table 1 shows the mean MAE and RMSE depending on the window size and polynomial order. Furthermore, it shows the resulting RoC.
Due to the high accuracy and RoC shown in Table 1, the following experiments were performed with a fourth-order polynomial regression for compression.

3.1.1. Temperature-Dependent CC-CV Charging–Discharging Data

Figure 6 shows the experimental setup to collect the data for accuracy evaluation of eight cells (green).
The battery testbench consisted of an Ivium (Eindhoven, Netherlands) (Model: OctoStat5000) battery cycler (blue), a Binder (Tuttlingen, Germany) environment control chamber (Model MKF 240) highlighted in red, and a Microsoft (Redmond, Washington, USA) Surface Pro 7 was used for the overall system control and centralized monitoring using the IviumSoft (Version: 4.1165) platform. A cyclindrical Li-Ion Molicel 4200 mAh 45 A INR-21700 was selected as a battery in this study. The battery specifications are as outlined in the manufacturer’s datasheet (https://www.molicel.com/wp-content/uploads/INR21700P42A-V4-80092.pdf, accessed on 2 Feburary 2024).
A series of battery cyclings were performed with a range of ambient temperatures and C-rates during the CC-CV charge/discharge cycles. The list below mentions the performed experiments in order:
  • Ambient temperatures: 20 °C 10 °C, 0 °C, 10 °C, 20 °C, 30 °C, and 40 °C;
  • Three× each: 0.3C; 0.5C; 0.8C; and 1C.
In Figure 7, the MAE (a) and RMSE (b) at ambient temperatures 20 °C up to 40 °C are illustrated. The RoCs 90%, 95%, 99%, 99.5%, and 99.75% are performed. The bar plots illustrate the mean accuracy and the standard deviation, illustrated as black error bars.
Across all temperatures, there is an increase in both evaluation metrics by a factor of three or more between the compression rate of 99% and 99.75%. Furthermore, there is a noticeable increase in the error at higher temperatures. For example, a MAE of 2 m V can be determined from 20 °C at a compression of 90%. At 40 °C, this is already 3.8   m V with identical compression.
A more detailed analysis, illustrated in Figure 8, shows the cause of the errors. The figure illustrates a 1C CC-CV charge and discharge cycle at an ambient temperature of 20 °C and a RoC of 95%. The graph distinctly elucidates both the advantages and limitations inherent in the methodology. As the voltage is compressed on the basis of the current, accurate compression is not possible at a constant current, as illustrated in the left zoom-in. At constant voltage, a high accurate compression can be seen, as shown in the right zoom-in of the figure. At constant current, the voltage is mainly influenced by increasing or decreasing the SOC, which causes a change in voltage. This factor can be included in the method if the voltage is described not only by current as a polynomial correlation, but also by time.

3.1.2. Aging Data

Table 2 shows the mean along with the standard deviation MAE and RMSE of compression and reconstruction in the aging test dataset [33]. Here, too, there is a clear increase in the error (MAE and RMSE) as the compression rate increases. A comparison of the results with those shown in Figure 7 reveals a lower standard deviation, a comparable increase when the RoC is increased, but a slightly lower error in general. This can be explained by the fact that the cell was aged by means of driving cycles and not by means of CC-CV charging/discharging. As a result, voltage can be better described by the current and, thus, compressed. Nevertheless, a critical limitation of this dataset is the low sampling frequency of 0.1   Hz . This means that the change in SOC between the individual measurement points plays a greater role than with a higher measurement frequency.

3.1.3. Drive Cycle Data

Figure 9 shows the Mean Absolute Error (MAE) (a) and Root Mean Square Error (RMSE) (b) over RoC at different ambient temperatures of the LA92 drive cycle. The RoC is between 90% and 99.75% of the current measurements. This comes from a time window of 50 up to 2000 time steps with a fourth-order polynomial regression. As seen in the figure, the MAE of all carried out experiments at a RoC of 90% is below 6 m V . Furthermore, the highest RMSE observed at a RoC of 90% is 10.75   m V . In addition, a correlation can be observed between accuracy and ambient temperature. As the ambient temperature rises, the accuracy of the reconstructed data increases. Figure 7 already shows a dependency between accuracy and temperature, but the relationship appears to be battery-specific and dependent on battery chemistry. Further investigation is required to determine whether accuracy increases or decreases with rising temperature within several kinds of batteries. A comparison with the results of the previously analyzed datasets suggests that a higher measurement frequency enables a significantly higher accuracy of reconstructed data. This also suggests that, when using the method, a compromise must be made as to whether a higher measurement frequency is necessary and, thus, compression is used, or whether a lower measurement frequency and, thus, a lower storage requirement for the uncompressed data leads to the identical informative value of the data.
To ensure that compression precision does not depend on a specific drive cycle, Figure 10 shows the MAE depending on the drive cycle and RoC. Additionally, the ambient temperatures 10 °C and 40 °C are compared in Figure 10a,b. It includes the drive cycles UDDS, US06, LA92, Mixed1, Mixed2, Mixed4–Mixed8. The selection of these drive cycles is based on the fact that the dataset contains measurements for both of the shown temperatures for only these drive cycles.
As already established based on the results shown in Figure 9, there is a significant difference in the MAE depending on the temperature. This significant correlation can be even more apparent by comparing the mean MAE and RMSE at all ambient temperatures, as seen in Table 3. At 10 °C, the drive cycles show an RMSE of 31.92   m V , which decreases to 1.98   m V at 40 °C.
A significant difference, regardless of the temperature, can be observed between the accuracy of the US06 drive cycle and the others. A 1.7 up to 2.1 times higher MAE can be observed in the case of the US06 compared to the mean errors of the other five evaluated drive cycles. The reason could be that, due to a higher mean speed during the US06 cycle, the discharge rate of the cell is significantly higher. During LA92, a cell is discharged from SOC 100% to 30% in 250 min . Concerning the US06, it took 87 min for the same discharge at the same ambient temperature of 40 °C. Therefore, the proposed compression method will have to be evaluated in future work, using different drive cycles with different mean speed levels.
After evaluating the mean accuracy of the proposed compression method, Figure 11 shows the absolute error of reconstruction at each measurement in m V . The decompression of the US06 driving cycle at an ambient temperature of 25 °C with a RoC of 95% is used in this figure. A MAE of 1.57   m V and an RMSE of 2.75   m V are established. The figure shows each absolute errors of reconstruction in green. In black, the rolling average with a window size of 60 s is illustrated to visualize general changes in accuracy. When the error of reconstruction of each measurement is observed, a rise over discharge time can be seen. The zoom illustrated as a scatter plot shows that only some outliers with an error above 24 m V can be observed. The zoom is chosen randomly. This observation can be punctuated by the rolling average with a window size of 60 s (black). A significant increase in the rolling average of the absolute reconstruction error can be seen after 6350 s .
As already observed, the mean error during reconstruction is small, but many reconstructed measurements are outliers in mean error. To evaluate this, Figure 12 shows the measured voltage (orange) and reconstructed voltage (black), as well as the measured current (pink) for the zoom-in of Figure 11. This enables the conclusion that voltage peaks and dips cause the main outliers. This evaluation shows that, if high accuracy is necessary at voltage peaks and dips, this method shows weaknesses in reconstruction error. The maximum measured MAE/RMSE, as seen in Figure 9 and Figure 10, is 40 m V /62 m V at a RoC of 99.75%, 14 m V /26 m V at 95%, and 9 m V /16 m V at 90% for the US06 drive cycle at an ambient temperature of 10 °C, which is significantly more accurate compared to the accuracy of the results proposed by Zhou et al. [17]. Zhou et al. specify an RMSE of 2.9   m V , 4.16   m V , and 10.01   m V at a RoC of 90%, 95%, and 99%. The highest precision could be measured with the HWFET drive cycle at an ambient temperature of 40 °C. For this drive cycle reconstruction, MAE and RMSE for 90%, 95%, and 99.75% can be observed at 0.01   m V , 0.03   m V , and 0.32   m V .

3.2. Compression Runtime

In addition to accuracy, runtime is critical when implementing in real-world scenarios. For evaluation, the compression algorithm was implemented on an STM32L432 microcontroller with an Arm Cortex-M4 core at 80 M Hz . The experimental evaluation used, as input data, 10 min from the LA92 drive cycle data at 25 °C.
In Figure 13, the execution time per compression (green) and the approximated computation time for 600 data points (black) are illustrated. The measured execution time to compress 50 data points is 4.5   m s . A linear increase in the execution time per time window of up to 35 m s for 600 data points can be seen. These measurements lead to approximated runtimes per 600 compressed data points. For a window size of 50, the runtime is 54 m s . For 600 window sizes, the runtime is 35 m s . When integrated with the findings delineated in the preceding Section 3.1, it can be deduced that there exists an inverse relationship between computational speed and precision: a diminished execution time correlates with reduced accuracy, whereas an extended duration of computation enhances accuracy.

4. Conclusions and Outlook

The measurement and storage of the main attributes of a battery are one of the first initial steps to enable monitoring, digital twinning, and data-driven estimation methods for electrical vehicles. Therefore, efficient data compression and accurate decompression of measurements are required. This manuscript delineates a computationally efficient methodology for the lossy compression of voltage measurements. The salient points of the study are summarized as follows:
  • Polynomial coding is used for voltage compression and reconstruction.
  • The compression method exhibits notable computational efficiency, as evidenced by the experimental evaluation, which demonstrated an execution duration of merely 35 m s to achieve a Rate of Compression (RoC) of 99.17%.
  • The method exhibited suboptimal performance during cycles involving constant current conditions, and exhibited high accuracy under constant voltage and dynamic drive cycle conditions.
  • The method established a MAE for a Rate of Compression of 99.75% between 16 m V (UDDS) and 40 m V (US06) with a measurement frequency of 10 Hz at the ambient temperature of 10 °C, 1.7   m V and 6.7   m V at 25 °C, and 1 m V and 5 m V at 40 °C.
The accuracy assessment of the CC-CV drive cycle has revealed the limitations of the proposed methodology when applied to compression data under constant current conditions. The experiments shown in Table 2 obtained a MAE of 2.4 ± 0.2 to 27.9 ± 1.0   m V . These results are comparable in accuracy with the results shown in Table 3 at an ambient temperature of 10 °C. It can, therefore, be concluded that, in addition to the temperature, the battery cells used also strongly influence the accuracy of the process. The results of the datasets discussed in Section 3.1.1 and Section 3.1.3 show this strong influence. However, the results indicate that the influence on the increase or decrease in accuracy depends on the battery and its chemistry. The reconstruction error correlates not only with RoC. It also depends significantly on the ambient temperature, as seen in Figure 10 and Table 3. Moreover, the accuracy in reconstruction shows that, for most of the used drive cycles, there is no significance in variation, and the drive cycles US06 and UDDS are outliers at this point.
To evaluate the model’s accuracy, it is also necessary to compare the results with the accuracy of the voltage sensors. In addition to the accuracy compared to the measurements from [33], the accuracy of BMSs and standards must also be considered. An accuracy of ± 2 m V at 25 °C and 3.6   V is specified for the Maximum Integrated Inc. MAX17843 Data-Acquisition Interface in the data sheet [35]. Texas Instruments lists 35 m V as voltage measurement error in the reference design of EV/HEV Automotive Battery Monitoring [36]. This means that the evaluated MAE is, in some scenarios, lower than the expected sensor error.
Under some conditions, the method presented shows higher accuracies than the methods presented in the literature [17,18]. However, the method presented in this paper stands out due to its adaptive application. System-dependent parameters, such as the internal battery resistance, are not necessary. This represents a significant advantage in practical implementation.
Effective and accurate data compression is critical to real-time cloud-based digital twinning of battery packs and BMSs. This is caused by the bandwidth and storage requirements to stream and store the data. Lossy compression with compression rates as proposed in this paper of 99.75% per voltage measurement, in combination with the observed mean absolute reconstruction errors of maximum 4.0   m V , can enable such technologies in research and science. Due to its low computational needs, this polynomial coding algorithm can be implemented in real-world BMS applications. The implementation in the STM32L432 microcontroller demonstrates this. A total execution time, ranging from 54 m s to 35 m s , has been demonstrated during the compression of 600 data points at various compression rates.
To fully validate the method’s potential in real-world applications, future studies should evaluate its accuracy using real-time battery pack measurements from actual EV BMSs. This will provide valuable insights into its performance under dynamic operating conditions. Furthermore, the proposed lossy compression method has to be compared with other lossy, adaptive compression methods. Furthermore, investigating the possibility of incorporating time as an additional variable in the polynomial regression alongside the current could potentially enhance the method’s precision.

Author Contributions

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

Funding

This research was funded by dtec.bw—Digitalization and Technology Research Center of the Bundeswehr, which we gratefully acknowledge. dtec.bw is funded by the European Union—NextGenerationEU. We acknowledge financial support by Universität der Bundeswehr München. Further, we acknowledge financial support by the University of the Bundeswehr Munich.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AIArtificial Intelligence
BMSBattery management system
CRCompression Ratio
DUTDevice under test
EVsElectric vehicles
ECMEquivalent circuit model
IoTInternet of Things
MAEMean Absolute Error
RoCRate of Compression
RMSERoot Mean Square Error
SoCState of charge
SoHState of Health

References

  1. How, D.N.; Hannan, M.; Lipu, M.H.; Ker, P.J. State of charge estimation for lithium-ion batteries using model-based and data-driven methods: A review. IEEE Access 2019, 7, 136116–136136. [Google Scholar] [CrossRef]
  2. Stock, S.; Pohlmann, S.; Günter, F.J.; Hille, L.; Hagemeister, J.; Reinhart, G. Early Quality Classification and Prediction of Battery Cycle Life in Production Using Machine Learning. J. Energy Storage 2022, 50, 104144. [Google Scholar] [CrossRef]
  3. Surya, S.; Samanta, A.; Marcis, V.; Williamson, S. Hybrid Electrical Circuit Model and Deep Learning-Based Core Temperature Estimation of Lithium-Ion Battery Cell. IEEE Trans. Transp. Electrif. 2022, 8, 3816–3824. [Google Scholar] [CrossRef]
  4. Crowter, R.M.; Saeed, N. Design and Implementation of a Simple Wireless Battery Monitoring System for Photovoltaic Applications. In Proceedings of the 2023 IEEE 9th World Forum on Internet of Things (WF-IoT), Aveiro, Portugal, 12–27 October 2023; pp. 1–6. [Google Scholar] [CrossRef]
  5. Karnehm, D.; Pohlmann, S.; Wiedenmann, A.; Kuder, M.; Neve, A. Introduction of a Cloud Computing Architecture for the Condition Monitoring of a Reconfigurable Battery System for Electric Vehicles. In Proceedings of the 2023 6th Conference on Cloud and Internet of Things (CIoT), Lisbon, Portugal, 20–22 March 2023; pp. 29–33. [Google Scholar] [CrossRef]
  6. Bhatti, G.; Mohan, H.; Raja Singh, R. Towards the future of smart electric vehicles: Digital twin technology. Renew. Sustain. Energy Rev. 2021, 141, 110801. [Google Scholar] [CrossRef]
  7. Löbberding, H.; Wessel, S.; Offermanns, C.; Kehrer, M.; Rother, J.; Heimes, H.; Kampker, A. From cell to battery system in BEVs: Analysis of system packing efficiency and cell types. World Electr. Veh. J. 2020, 11, 77. [Google Scholar] [CrossRef]
  8. Hamdan, S.; Awaian, A.; Almajali, S. Compression Techniques Used in Iot: A Comparitive Study. In Proceedings of the 2019 2nd International Conference on New Trends in Computing Sciences (ICTCS), Amman, Jordan, 9–11 October 2019; pp. 1–5. [Google Scholar] [CrossRef]
  9. Correa, J.D.A.; Pinto, A.S.R.; Montez, C. Lossy data compression for iot sensors: A review. Internet Things 2022, 19, 100516. [Google Scholar] [CrossRef]
  10. Sayood, K. Introduction to Data Compression; Morgan Kaufmann: Burlington, MA, USA, 2017. [Google Scholar] [CrossRef]
  11. Chiarot, G.; Silvestri, C. Time series compression survey. ACM Comput. Surv. 2023, 55, 1–32. [Google Scholar] [CrossRef]
  12. Azar, J.; Tayeh, G.B.; Makhoul, A.; Couturier, R. Efficient Lossy Compression for IoT Using SZ and Reconstruction with 1D U-Net. Mob. Netw. Appl. 2022, 27, 984–996. [Google Scholar] [CrossRef]
  13. Lu, S.; Xia, Q.; Tang, X.; Zhang, X.; Lu, Y.; She, J. A reliable data compression scheme in sensor-cloud systems based on edge computing. IEEE Access 2021, 9, 49007–49015. [Google Scholar] [CrossRef]
  14. Willmott, C.J.; Matsuura, K. Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance. Clim. Res. 2005, 30, 79–82. [Google Scholar] [CrossRef]
  15. See, K.; Wang, G.; Zhang, Y.; Wang, Y.; Meng, L.; Gu, X.; Zhang, N.; Lim, K.; Zhao, L.; Xie, B. Critical review and functional safety of a battery management system for large-scale lithium-ion battery pack technologies. Int. J. Coal Sci. Technol. 2022, 9, 36. [Google Scholar] [CrossRef]
  16. Zheng, Y.; Ouyang, M.; Li, X.; Lu, L.; Li, J.; Zhou, L.; Zhang, Z. Recording frequency optimization for massive battery data storage in battery management systems. Appl. Energy 2016, 183, 380–389. [Google Scholar] [CrossRef]
  17. Zhou, L.; He, L.; Zheng, Y.; Lai, X.; Ouyang, M.; Lu, L. Massive battery pack data compression and reconstruction using a frequency division model in battery management systems. J. Energy Storage 2020, 28, 101252. [Google Scholar] [CrossRef]
  18. Tang, X.; Gao, F.; Lai, X. Compressing and reconstructing the voltage data for lithium-ion batteries using model migration and un-equidistant sampling techniques. eTransportation 2022, 13, 100186. [Google Scholar] [CrossRef]
  19. Zou, C.; Zhang, L.; Hu, X.; Wang, Z.; Wik, T.; Pecht, M. A review of fractional-order techniques applied to lithium-ion batteries, lead-acid batteries, and supercapacitors. J. Power Sources 2018, 390, 286–296. [Google Scholar] [CrossRef]
  20. Al-Khafaji, G.; George, L.E. Fast lossless compression of medical images based on polynomial. Int. J. Comput. Appl. 2013, 70, 28–32. [Google Scholar] [CrossRef]
  21. Motta, G.; Weinberger, M.J. Compression of Polynomial Texture Maps; Technical report; Information Theory Research Group, HP Laboratories: Palo Alto, CA, USA, 2001. [Google Scholar]
  22. Dusan, S.; Flanagan, J.L.; Karve, A.; Balaraman, M. Speech compression by polynomial approximation. IEEE Trans. Audio Speech Lang. Process. 2007, 15, 387–395. [Google Scholar] [CrossRef]
  23. Jiang, B.; Zhu, Y.; Zhu, J.; Wei, X.; Dai, H. An adaptive capacity estimation approach for lithium-ion battery using 10-min relaxation voltage within high state of charge range. Energy 2023, 263, 125802. [Google Scholar] [CrossRef]
  24. Li, A.; Pelissier, S.; Venet, P.; Gyan, P. Fast characterization method for modeling battery relaxation voltage. Batteries 2016, 2, 7. [Google Scholar] [CrossRef]
  25. Zhu, J.; Wang, Y.; Huang, Y.; Bhushan Gopaluni, R.; Cao, Y.; Heere, M.; Mühlbauer, M.J.; Mereacre, L.; Dai, H.; Liu, X.; et al. Data-driven capacity estimation of commercial lithium-ion batteries from voltage relaxation. Nat. Commun. 2022, 13, 2261. [Google Scholar] [CrossRef]
  26. Liu, D.; Wang, X.; Zhang, M.; Gong, M. SOC estimation of lithium battery based on N-2RC model in electric vehicle. In Proceedings of the 2019 Chinese Control Furthermore, Decision Conference (CCDC), Nanchang, China, 3–5 June 2019; pp. 2916–2921. [Google Scholar] [CrossRef]
  27. Montgomery, D.C.; Peck, E.A.; Vining, G.G. Introduction to Linear Regression Analysis; John Wiley & Sons: Hoboken, NJ, USA, 2021. [Google Scholar] [CrossRef]
  28. Weisberg, S. Applied Linear Regression; John Wiley & Sons: Hoboken, NJ, USA, 2005; Volume 528. [Google Scholar]
  29. Groß, J. Linear Regression; Springer: Berlin/Heidelberg, Germany, 2003; Volume 175. [Google Scholar] [CrossRef]
  30. Seber, G.A.; Lee, A.J. Polynomial regression. In Linear Regression Analysis; John Wiley & Sons: Hoboken, NJ, USA, 2003; pp. 165–185. [Google Scholar]
  31. Ostertagová, E. Modelling using polynomial regression. Procedia Eng. 2012, 48, 500–506. [Google Scholar] [CrossRef]
  32. Peckov, A. A Machine Learning Approach to Polynomial Regression. Ph.D. Thesis, Jozef Stefan International Postgraduate School, Ljubljana, Slovenia, 2012. [Google Scholar]
  33. Jöst, D.; Blömeke, A.; Sauer, D.U.; Ringbeck, F. Timeseries Data of a Drive Cycle Aging Test of 28 High Energy NCA/C+ Si Round Cells of Type 18650; Technical report; Institut für Stromrichtertechnik und Elektrische Antriebe: Aachen, Germany, 2021. [Google Scholar] [CrossRef]
  34. Kollmeyer, P.; Skells, M. Turnigy graphene 5000mAh 65C li-ion battery data. Mendeley Data 2020, 1, 10–17632. [Google Scholar]
  35. Maxim Integrated Products, Inc. MAX17843 12-Channel, High-Voltage Smart Sensor Data-Acquisition Interface; Maxim Integrated Products, Inc.: San Jose, CA, USA, 2018. [Google Scholar]
  36. Li, D. Current Shunt & Voltage Measurement Reference Design for EV/HEV Automotive Battery Monitoring; Texas Instruments Inc.: Dallas, TX, USA, 2015. [Google Scholar]
Figure 2. Process of data measurement, compression, transfer and storage, and reconstruction, as proposed; Gray arrows illustrate relation between the steps of the method.
Figure 2. Process of data measurement, compression, transfer and storage, and reconstruction, as proposed; Gray arrows illustrate relation between the steps of the method.
Batteries 10 00305 g002
Figure 3. Equivalent circuit model (ECM) of a battery cell.
Figure 3. Equivalent circuit model (ECM) of a battery cell.
Batteries 10 00305 g003
Figure 4. Visualization of linear regression, and N-order polynomial regression; Within linear regression coefficients β 0 , β 1 included.
Figure 4. Visualization of linear regression, and N-order polynomial regression; Within linear regression coefficients β 0 , β 1 included.
Batteries 10 00305 g004
Figure 5. Reconstruction of voltage values after curve fitting.
Figure 5. Reconstruction of voltage values after curve fitting.
Batteries 10 00305 g005
Figure 6. Battery cycling setup with cycler (blue) and climate chamber (red) with cells for tests (green).
Figure 6. Battery cycling setup with cycler (blue) and climate chamber (red) with cells for tests (green).
Batteries 10 00305 g006
Figure 7. Compression accuracy illustrated as MAE (a) and RMSE (b) at 20 °C – 40 °C by CC-CV cycles.
Figure 7. Compression accuracy illustrated as MAE (a) and RMSE (b) at 20 °C – 40 °C by CC-CV cycles.
Batteries 10 00305 g007
Figure 8. Current (green), and measured and reconstructed voltage (pink and black) over cycle time at a CC-CV charge–discharge cycle with 1C.
Figure 8. Current (green), and measured and reconstructed voltage (pink and black) over cycle time at a CC-CV charge–discharge cycle with 1C.
Batteries 10 00305 g008
Figure 9. MAE (a) and RMSE (b) depending on the Rate of Compression (RoC) over LA92 drive cycle. Decreasing temperature leads to less accuracy.
Figure 9. MAE (a) and RMSE (b) depending on the Rate of Compression (RoC) over LA92 drive cycle. Decreasing temperature leads to less accuracy.
Batteries 10 00305 g009
Figure 10. Compression of accuracy at 10 °C (a) and 40 °C (b) by different driving cycles.
Figure 10. Compression of accuracy at 10 °C (a) and 40 °C (b) by different driving cycles.
Batteries 10 00305 g010
Figure 11. Absolute error of decompression of US06 driving cycle 25 °C at Rate of Compression (RoC) of 95%; absolute error per measurement (green), and rolling average window size of 60 s (black).
Figure 11. Absolute error of decompression of US06 driving cycle 25 °C at Rate of Compression (RoC) of 95%; absolute error per measurement (green), and rolling average window size of 60 s (black).
Batteries 10 00305 g011
Figure 12. Current (green), measured and reconstructed voltage (pink and black) over discharge time for decompression of the US06 driving cycle 25°C at a Rate of Compression (RoC) of 95%.
Figure 12. Current (green), measured and reconstructed voltage (pink and black) over discharge time for decompression of the US06 driving cycle 25°C at a Rate of Compression (RoC) of 95%.
Batteries 10 00305 g012
Figure 13. Compression performance analysis on STM32L432 microcontroller depending on RoC.
Figure 13. Compression performance analysis on STM32L432 microcontroller depending on RoC.
Batteries 10 00305 g013
Table 1. Mean MAE and RMSE depending on polynomial order and window size through full dataset of [34].
Table 1. Mean MAE and RMSE depending on polynomial order and window size through full dataset of [34].
Polynomial OrderWindow SizeRoC (%)MAE (mV)RMSE (mV)
350920.671.50
3100961.322.87
350099.23.937.59
3100099.65.5410.17
450900.350.77
4100950.942.04
4500993.236.44
4100099.54.929.20
550880.160.35
5100940.651.40
550098.82.745.58
5100099.44.428.36
650860.140.43
6100931.052.74
650098.63.338.41
6100099.34.618.44
Table 2. Mean MAE and RMSE, along with the standard deviation of reconstructed values across aging datasets [33].
Table 2. Mean MAE and RMSE, along with the standard deviation of reconstructed values across aging datasets [33].
Rate of Compression (RoC)MAE (mV)RMSE (mV)
90% 2.4 ± 0.2 6.2 ± 0.10
95% 4.3 ± 0.4 10.4 ± 0.22
99% 10.7 ± 0.5 21.5 ± 0.13
99.5% 16.2 ± 0.5 33.5 ± 0.14
99.75% 27.9 ± 1.0 62.8 ± 0.25
Table 3. Mean MAE and RMSE depending on ambient temperature and RoC through all drive cycles of [34].
Table 3. Mean MAE and RMSE depending on ambient temperature and RoC through all drive cycles of [34].
Temperature (°C)RoC (%)MAE (mV)RMSE (mV)
−1090.04.7510.00
−1095.08.3316.82
−1099.017.2731.92
090.02.335.29
095.03.928.56
099.07.9915.51
1090.01.293.06
1095.02.124.67
1099.04.227.85
2590.00.511.17
2595.00.831.68
2599.01.903.12
4090.00.260.57
4095.00.450.86
4099.01.221.98
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Karnehm, D.; Neve, A. A Resource-Constrained Polynomial Regression Approach for Voltage Measurement Compression in Electric Vehicle Battery Packs. Batteries 2024, 10, 305. https://doi.org/10.3390/batteries10090305

AMA Style

Karnehm D, Neve A. A Resource-Constrained Polynomial Regression Approach for Voltage Measurement Compression in Electric Vehicle Battery Packs. Batteries. 2024; 10(9):305. https://doi.org/10.3390/batteries10090305

Chicago/Turabian Style

Karnehm, Dominic, and Antje Neve. 2024. "A Resource-Constrained Polynomial Regression Approach for Voltage Measurement Compression in Electric Vehicle Battery Packs" Batteries 10, no. 9: 305. https://doi.org/10.3390/batteries10090305

APA Style

Karnehm, D., & Neve, A. (2024). A Resource-Constrained Polynomial Regression Approach for Voltage Measurement Compression in Electric Vehicle Battery Packs. Batteries, 10(9), 305. https://doi.org/10.3390/batteries10090305

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop