New energy vehicle endurance prediction method based on working condition identification and prediction
By combining operating condition identification and prediction methods with rolling capacity estimation and the TCN-BiLSTM model, the accuracy and stability issues of new energy vehicle range estimation under dynamic operating conditions are solved, achieving high-precision and dynamic range prediction.
Patent Information
- Application Number
- CN202511921590.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-18
- Publication Date
- 2026-05-01
AI Technical Summary
Existing technologies for estimating the driving range of new energy vehicles are not sensitive to changes in dynamic operating conditions. They cannot respond in real time to energy consumption fluctuations caused by changes in road speed limits, traffic conditions, and driving styles. The modeling of battery health status and temperature dependence is insufficient, resulting in large cumulative errors and a lack of interpretability.
Typical operating conditions are identified by sliding window statistical and classification algorithms, a rolling capacity estimation model is constructed, and the driving range consumption rate is predicted by combining the TCN-BiLSTM model. Furthermore, a multi-model collaborative framework integrating operating condition prediction, capacity estimation, and time-series features is integrated to achieve dynamic updates of energy consumption priors and reduce cumulative errors.
It achieves high-precision and robust range prediction under complex operating conditions, environmental fluctuations, and battery aging, dynamically adapts to changes in traffic environment and driving behavior, reduces accumulated errors, and improves the stability and interpretability of predictions.
Smart Images

Figure CN121959502A_ABST
Abstract
Description
A method for predicting the driving range of new energy vehicles based on operating condition identification and prediction Technical Field
[0001] This invention relates to the field of new energy vehicle range estimation technology, and in particular to a method for predicting the range of new energy vehicles based on operating condition identification and prediction. Background Technology
[0002] With the rapid growth in the number of new energy vehicles, the accurate prediction and display of remaining driving range by onboard instruments has become a crucial technical aspect affecting driving experience and operational safety. Currently, common methods for estimating driving range mainly include rule-based models based on historical average energy consumption, end-to-end prediction models based on single time-series networks, and modified models based on battery health estimation. Rule-based methods based on average energy consumption typically estimate the remaining range using the average energy consumption per unit area within a fixed or sliding window. While computationally simple and cost-effective, they are insensitive to changes in operating conditions such as urban, suburban, and highway driving, and cannot reflect dynamic environmental factors such as traffic congestion, gradient, and temperature, easily leading to systematic biases. End-to-end prediction methods based on single time-series models (such as LSTM and GRU) can capture time dependencies to some extent, but because they do not explicitly incorporate operating condition characteristics and the influence of battery state of health (SOH), they are prone to prediction drift and error accumulation in long-term operation or frequent regenerative braking scenarios. While compensation methods based solely on battery health estimates (such as capacity and internal resistance) can correct static energy deviations, they are not combined with the transient energy consumption characteristics of driving behavior and operating conditions, making it difficult to reflect the energy consumption change patterns during dynamic operation.
[0003] In summary, current driving range estimation techniques generally suffer from the following problems: First, they are insensitive to dynamic operating conditions and cannot respond in real time to energy consumption fluctuations caused by changes in road speed limits, traffic conditions, and driving styles. Second, they lack sufficient modeling of battery health status and temperature dependence, failing to reflect the impact of SOH decline and temperature changes on available energy. Third, they have large cumulative errors and lack interpretability; direct regression of remaining range is easily affected by range reset, jumps, and integral errors. Therefore, there is an urgent need for a novel driving range prediction method that can simultaneously characterize energy consumption priors driven by driving conditions and battery health constraints, while also considering dynamic adaptability and physical consistency. Summary of the Invention
[0004] (I) Technical Problem to be Solved by the Invention To address the shortcomings of existing technologies, this invention proposes a method for predicting the range of new energy vehicles based on operating condition identification and prediction. This method uses a sliding window statistical and classification algorithm to identify typical operating conditions (urban, suburban, and highway) and predict the operating conditions for the next time window, thereby achieving dynamic updates of energy consumption priors. It utilizes historical charge and discharge data to construct a rolling capacity estimation model, reflecting the dynamic characteristics of battery SOH changes with time and temperature. Furthermore, it transforms the traditional remaining range prediction problem into a range consumption rate prediction problem, fundamentally reducing accumulated errors. Finally, it employs a multi-model collaborative framework that integrates operating condition prediction, capacity estimation, and time-series features to achieve high-precision and robust dynamic range prediction, maintaining stable and reliable estimation performance under complex operating conditions, environmental fluctuations, and battery aging.
[0005] (II) Technical Solution of the Invention To achieve the above objectives, the present invention provides the following technical solution: a method for predicting the range of new energy vehicles based on operating condition identification and prediction.
[0006] Specifically, the steps include: S1. Collect two months of real-vehicle operation dataset of pure electric vehicles through open-source datasets, preprocess the data and construct features, and output a set of operation segments with operating condition labels and a set of key features highly correlated with the remaining mileage; the real-vehicle operation dataset includes 142 fields including vehicle status, speed, charging status, driving mileage, state of charge, total voltage, total current, SOC, single-cell voltage, single-cell current, single-cell maximum temperature and single-cell minimum temperature.
[0007] The data preprocessing and feature construction operations include: data splitting and structuring, data cleaning and quality repair, segmentation of operating conditions and classification of operating conditions, construction of remaining mileage features, and feature correlation analysis and feature screening.
[0008] Specifically, the steps include: S1.1, collecting real-vehicle operation datasets of pure electric vehicles based on open-source datasets, and outputting structured time-series datasets after data splitting and structuring operations.
[0009] S1.2 Based on the structured time-series dataset, after data cleaning and quality repair operations, the cleaned vehicle time-series data is output.
[0010] S1.3. Based on the cleaned vehicle time series data, after dividing the operation segments and classifying them by typical working conditions, a set of operation segments with working condition labels is output; the operation segments include: discharge segments, charging segments and stationary segments; the typical working conditions include: urban, suburban and highway; the division of discharge, charging and stationary segments in this invention is specifically implemented by the following rules: (1) The discharge segment is defined as when the segmentType of the data point belongs to the predefined driving mode set (Q01 to Q06) and the speed value is greater than zero.
[0011] (2) A charging segment is defined as a segment when segmentType belongs to a specific charging-related mode set (Q01, Q02, X01, X02) and the speed value is zero while the current value is negative.
[0012] (3) Data points that do not meet any of the above conditions are classified as static.
[0013] The present invention classifies typical operating conditions by defining speeds less than 30 km / h as urban, speeds between 30-60 km / h as suburban, and speeds greater than 60 km / h as highways, thus accurately classifying driving states into three typical operating conditions: urban, suburban, and highway.
[0014] S1.4 Based on the set of operating segments with operating condition tags, a discharge sample set containing the remaining mileage features is constructed and output; the operating segments with operating condition tags include: discharge segments with operating condition tags, charging segments with operating condition tags, and stationary segments with operating condition tags.
[0015] The construction of the remaining mileage feature is specifically as follows: calculate the mileage difference for the set of discharge segments identified as having operating condition labels, define the difference between the mileage at the end of the segment and the mileage at the current time as the remaining mileage field, and combine the SOC surge feature to realize the multi-segment division of the discharge process, thereby establishing a discharge sample set containing the remaining mileage feature.
[0016] S1.5 Based on the cleaned vehicle time-series data, the set of operating segments with operating condition labels, and the discharge sample set containing remaining mileage characteristics, after feature correlation analysis and feature screening, a set of key features highly correlated with the remaining mileage is output.
[0017] S2. Constructing a range consumption rate model based on TCN-BiLSTM: Based on a key feature set that is highly correlated with the remaining range, after problem transformation and data processing, the output time-series feature matrix is obtained. The input is processed through the TCN layer to extract local dependencies and short-term dynamic features, and the output is a multi-scale time-domain feature sequence. Then, through the BiLSTM layer, the output time-series encoded features are obtained. Finally, after regression prediction and training, the range consumption rate model and the predicted range consumption rate value are obtained.
[0018] The specific steps are as follows: S2.1, Based on the key feature set highly correlated with the remaining mileage, after problem transformation and data processing operations, a time-series feature matrix is output; the problem transformation is to transform the problem of predicting the remaining mileage into the problem of predicting the remaining mileage consumption rate; the input features of the driving range consumption rate in this invention, the time-series feature matrix includes: discharge interval SOC, total voltage, maximum value of single cell voltage, minimum value of single cell voltage, and voltage imbalance; after time alignment and normalization, a time-series input matrix is formed, and the expression of the output time-series feature matrix is: Where L is the sequence length of 60 and F is the feature dimension of 5.
[0019] This invention transforms the problem of predicting remaining mileage into predicting the rate of mileage consumption based on the key feature set highly correlated with the remaining mileage output of S1. This enables the model to respond sensitively to short-term changes and suppress cumulative errors. The expression for the consumption rate model is as follows: In the above formula, The remaining distance at the current moment. The remaining distance at the next moment. The power consumption rate is calculated within a 1-minute sampling step. Non-negative values are used to ensure consistency in power consumption direction. After standardization, the power consumption rate sequence is obtained. It is used as the regression target of the model.
[0020] S2.2 Input the temporal feature matrix, extract local dependencies and short-term dynamic features through the TCN layer, and output a multi-scale temporal feature sequence; the TCN layer includes a one-dimensional causal convolution structure and four layers of dilated convolution, with dilation rates of 1, 2, 4 and 8 for the four layers of dilated convolution.
[0021] S2.3 Input a multi-scale temporal feature sequence, pass it through a BiLSTM layer, and output temporal encoded features; the BiLSTM contains two LSTM layers, each LSTM layer is set with 128 hidden units, specifically, one forward and one backward encoding is performed on the multi-scale temporal feature sequence output by the TCN layer.
[0022] S2.4. Input the temporal coding features, and after regression prediction and training, obtain the predicted range consumption rate, thus completing the construction of the range consumption rate model. The regression prediction and training include: fully connected layer, inverse standardization, Adam optimization, and MAE loss function. In this invention, after the temporal coding features are jointly encoded by the TCN layer and BiLSTM layer, the network output is regressed through the fully connected layer (Dense layer) to obtain the standardized range consumption rate prediction value. The formula is as follows: Then, the inverse normalization transformation is used to restore the physical quantity space. The expression for inverse normalization is: The final predicted remaining mileage can be obtained recursively using the following expression: This invention uses the Adam optimizer algorithm for gradient updates and introduces learning rate decay and early stopping mechanisms to prevent overfitting. The loss function is the mean absolute error (MAE).
[0023] S3. Rolling Capacity Estimation Modeling: Based on charging segments with operating condition tags, complete charging segments are identified by setting a judgment threshold to obtain a set of effective charging segments. Then, based on the current and voltage data in the effective charging segment set, capacity and energy are calculated and arranged in chronological order to form a continuous charging capacity sequence. Through sliding window statistics and exponential smoothing, the smoothed rolling capacity is output. The input is the smoothed rolling capacity. After defining the battery's State of Health (SOH), dynamically estimating the rated capacity, and linear normalization, the normalized SOH score is output, completing the rolling capacity estimation modeling. S3.1. Based on charging segments with operating condition tags, complete charging segments are identified by setting a judgment threshold to obtain a set of effective charging segments. The expression for obtaining the effective charging segments is: .
[0024] S3.2 Based on the current and voltage data in the effective charging segment set, after capacity calculation and energy calculation, they are arranged in time order to form a continuous charging capacity sequence.
[0025] S3.3 Input a continuous charging capacity sequence, perform sliding window statistics and exponential smoothing, and output the smoothed rolling capacity; This invention uses the sliding window method to statistically analyze continuous charging segments, which can obtain the trajectory of the battery's available capacity over time. The window width is set to W = 10 charging cycles, and the rolling capacity is... The calculation expression is: in, For continuous charging capacity sequence The capacity of the k-th charging segment contained therein, where W is the preset sliding window width. For time indexing.
[0026] This invention relates to rolling capacity Data application using exponential smoothing makes recent data have a greater impact on the results. The formula for calculating the smoothed rolling capacity is as follows: In the formula, This is the smoothing coefficient, with a value between 0 and 1, which controls the degree of smoothing. This represents the smoothed scrolling capacity from the previous moment.
[0027] S3.4 Input the smoothed rolling capacity. After defining the battery's SOH, dynamically estimating the rated capacity, and linearly normalizing, output the normalized SOH score to complete the rolling capacity estimation model. In this invention, after obtaining the rolling capacity, the battery's SOH is defined as the ratio of the rolling capacity to the rated capacity, expressed as: in, The rated capacity of a brand new battery. This represents the smoothed scrolling capacity.
[0028] Define the normalized SOH fraction as: In the formula, The initial SOH value at time t is obtained by the ratio of rolling capacity to rated capacity; To select the minimum value of the original SOH sequence within the analysis window, This is the maximum value of the original SOH sequence within the same analysis window, representing the best health status observed for the battery within the current data range. It is mapped to 1 during normalization.
[0029] S4. Operating Condition Identification and Predictive Modeling: Based on the cleaned vehicle time-series data, after outputting window statistical features through sliding window feature statistics, the median speed in the window is used as the basis for operating condition classification, and a preset speed threshold is used for judgment to output preliminary operating condition labels. Based on the preliminary operating condition labels as the supervision signal in the training stage of random forest, the window statistical features are input, and a pre-trained random forest classifier is used to output accurate operating condition labels. Then, smooth operating condition labels are generated by passing through a preset smoothing window. The operating condition probability distribution is output through a pre-trained random forest model. By defining the energy consumption prior parameters obtained from energy consumption rate prediction, the operating condition identification and predictive modeling are completed.
[0030] S4.1 Based on the cleaned vehicle time-series data, output window statistical features through sliding window feature statistics.
[0031] S4.2 Input Window Statistical Characteristics This invention uses the median speed within a window as the basis for classifying operating conditions and presets a speed threshold for determination, outputting preliminary operating condition labels. Based on traffic flow characteristics and empirical rules governing speed ranges, this invention uses the median speed within a window... As the basis for classifying working conditions, a threshold parameter is set. , Define the operating condition labels and output the initial operating condition labels. The expression is as follows: .
[0032] S4.3. Based on the preliminary working condition labels used as supervision signals in the training phase of the random forest, input window statistical features are used to output accurate working condition labels through a pre-trained random forest classifier; the expression for the accurate working condition labels of this invention is: In the formula, Let c be the voting probability for work condition category c. Window statistical characteristics.
[0033] In the formula, This is an indicator function used to identify a low-speed parking state. The set of operating conditions includes urban, suburban, and highway categories; Let M be the classification function of the m-th decision tree, and M be the number of decision trees in the forest.
[0034] S4.4 Input precise operating condition labels The system outputs labels for smooth operating conditions through a preset smoothing window; the expression for the smooth operating condition label is: In the formula, To accurately identify the working condition labels before smoothing, mode is used for mode calculation, which selects the working condition type that appears most frequently in the window.
[0035] S4.5, Input the current window feature set and smooth working condition label As training data, a pre-trained random forest model is used to output the probability distribution of working conditions; the probability distribution of the output working condition categories is as follows: In the formula, Statistical characteristics of the current window This will be the label for the actual working conditions in the next window.
[0036] S4.6. Based on the probability distribution of operating conditions and smoothed operating condition labels, the operating condition identification and prediction modeling are completed by defining the prior energy consumption parameters obtained from energy consumption rate prediction; the expression for energy consumption rate is defined in this invention as follows: In the formula, This represents the actual energy consumption of the i-th window. This corresponds to the distance traveled.
[0037] For each operating condition category and speed range, the expression for the corresponding prediction window set is: In the formula, Let c be the average speed of the i-th window, c be the operating condition category, and v be the speed range. For smooth operating conditions labeling.
[0038] The predicted prior energy consumption parameters (speed-energy rate relationship curve) under operating condition category c and speed range v are as follows: In the formula, Let be the energy consumption rate per unit mileage corresponding to the i-th window, and median be the function for calculating the median.
[0039] S5. Multi-model fusion prediction and evaluation: Based on the predicted range consumption rate, normalized SOH score, and energy consumption prior parameters, a recursive formula is constructed to obtain the remaining range prediction formula for the next time step. Through unified embedding and normalization processing of the input layer, the temporal feature extraction layer uses a multi-layer TCN + BiLSTM and a prediction correction layer to perform fully connected network regression mapping, a fusion prediction model is obtained and a composite loss function is constructed to complete the new energy vehicle range prediction method based on operating condition identification and prediction.
[0040] S5.1 Based on the predicted range consumption rate, normalized SOH score, and prior energy consumption parameters, a recursive formula is constructed to obtain the formula for predicting the remaining range at the next moment. The expression for the formula for predicting the remaining range at the next moment is as follows: in, The instantaneous mileage consumption rate is predicted by TCN-BiLSTM. The normalized SOH score output by S3, i.e., the rolling health status; The energy consumption prior parameters output by the S4 operating condition prediction module under operating condition category c and speed range v. A weighting function is used to adjust the impact of differences in health status and operating conditions on energy consumption rate; For preset learnable parameters, where The default value is 1. The default value is 0.
[0041] S5.2 Input dynamic time-series features, smoothed operating condition labels and energy consumption prior parameters, process them through unified embedding and normalization in the input layer, use multi-layer TCN + BiLSTM in the time-series feature extraction layer and fully connected network regression mapping in the prediction correction layer to obtain the fusion prediction model, and output the corrected consumption rate prediction value.
[0042] S5.3 Based on the fusion prediction model, a composite loss function is constructed, its value is calculated, and optimization is performed. The composite loss function expression designed in this invention is as follows: In the formula, To measure the accuracy of the consumption rate regression, To measure the mileage prediction error, This is a total variation regularization term used to maintain the smoothness of the prediction curve. This is the balance coefficient.
[0043] S5.4. Based on the calculation formulas of three statistical indicators, MAE, RMSE, and MAPE, output the model performance evaluation results.
[0044] The beneficial effects of this invention are as follows: By introducing key technologies such as operating condition identification and prediction, rolling capacity estimation, and multi-model fusion, this invention achieves high-precision, dynamic, and interpretable prediction of the driving range of new energy vehicles. This invention can identify and predict driving conditions in real time during vehicle operation, dynamically update energy consumption priors, and significantly improve the model's adaptability to complex traffic environments and changes in driving behavior. Through rolling capacity estimation, this invention continuously tracks the evolution of battery health state of energy (SOH), effectively reflecting the impact of battery aging and temperature changes on available energy. Simultaneously, it transforms the driving range prediction problem into mileage consumption rate modeling, reducing accumulated errors and improving prediction stability. The multi-model fusion structure based on operating conditions, SOH, and time-series characteristics further enhances the model's generalization ability and physical consistency, ensuring that the prediction results maintain high accuracy and robustness under different operating conditions, environments, and battery states. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 is a flowchart of a new energy vehicle range prediction method based on operating condition identification and prediction according to the present invention; Figure 2 is a structural diagram of the range prediction model of the present invention, wherein Figure (a) is a TCN module diagram and Figure (b) is a BiLSTM module diagram; Figure 3 is a rolling capacity estimation result diagram of the present invention; Figure 4 is an energy consumption-speed curve obtained by the present invention based on the operating condition model under different conditions; Figure 5 is a working condition prediction result diagram of the present invention; Figure 6 is a range prediction result diagram of the present invention, wherein Figure (a) is a prediction result diagram for high-range vehicles, Figure (b) is a prediction result diagram for medium-range vehicles, and Figure (c) is a prediction result diagram for low-range vehicles. Detailed Implementation
[0047] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0048] Please refer to Figure 1: A method for predicting the range of new energy vehicles based on operating condition identification and prediction, which specifically includes the following steps: S1, collect two months of real-vehicle operation dataset of pure electric vehicles through open source datasets, preprocess the data and construct features, and output a set of operating segments with operating condition labels and a set of key features highly correlated with the remaining mileage; the real-vehicle operation set includes 142 fields including vehicle status, speed, charging status, driving mileage, state of charge, total voltage, total current, single-cell voltage, single-cell current, single-cell maximum temperature and single-cell minimum temperature.
[0049] Specifically, the process includes the following steps: S1.1, collecting two months of real-world vehicle operation datasets of pure electric vehicles based on open-source datasets, and outputting a structured time-series dataset after data splitting and structuring operations; the data splitting and structuring operations of this invention specifically involve extracting vehicle identifiers and storing them separately for each vehicle from the original vehicle operation dataset, splitting the whole vehicle data containing 142-dimensional time-series features including speed, total current, total voltage, SOC, and individual unit temperature into 20 independent vehicle datasets, and flattening and timestamp standardizing the multi-value fields connected by symbols to construct a multi-dimensional vehicle operation sequence with a unified time base, and outputting a structured time-series dataset.
[0050] S1.2. Based on the structured time-series dataset, after data cleaning and quality repair operations, the cleaned vehicle time-series data is output. Specifically, the data cleaning and quality repair operations of this invention involve outlier detection and smoothing of the structured time-series dataset, including speed spike removal based on Hampel filtering, extreme value suppression based on quantiles (winsorize), SOC percentage system unification, current-voltage-time interpolation, temperature range constraints (-36℃—70℃), and min / max correction operations, to obtain high-quality input data with consistent physical constraints and continuous time, and output cleaned vehicle time-series data.
[0051] S1.3. Based on the cleaned vehicle time series data, after segmenting and classifying by typical working conditions, a set of operating segments with working condition labels is output; the operating segments include: discharge segments, charging segments and stationary segments; the typical working conditions include: urban, suburban and highway; the segmenting and working condition classification of the present invention specifically divides the cleaned vehicle time series data into discharge, charging and stationary segments according to the segmentType field, speed and current characteristics. The method is implemented by the following rules: (1) The discharge segment is defined when the segmentType of the data point belongs to the predefined driving mode set (Q01 to Q06) and the speed value is greater than zero; (2) The charging segment is defined when the segmentType belongs to the specific charging related mode set (Q01, Q02, X01, X02) and the speed value is zero and the current value is negative; (3) Data points that do not meet any of the above conditions are classified as stationary; the present invention further calculates the median speed, speed standard deviation and acceleration distribution characteristics. This embodiment precisely classifies driving conditions into three typical operating conditions: urban, suburban, and highway, by setting three key thresholds: 30 km / h, 30-60 km / h, and 60 km / h. These thresholds are set based on traffic engineering standards, road regulations (such as a standard speed limit of 30-50 km / h in urban areas and a minimum speed limit of 60 km / h on highways), and actual traffic flow statistics (such as average speeds below 30 km / h in congested urban areas and average speeds exceeding 80 km / h on highways). This ensures the rationality and robustness of the operating condition classification and outputs a set of driving segments labeled with the operating condition.
[0052] S1.4. Based on the set of operating segments with operating condition tags, a discharge sample set containing remaining mileage features is constructed and output through remaining mileage features. The operating segments with operating condition tags include: discharge segments with operating condition tags, charging segments with operating condition tags, and stationary segments with operating condition tags. The specific construction of remaining mileage features for the set of discharge segments with operating condition tags in this invention is as follows: mileage difference is calculated for the set of discharge segments identified as having operating condition tags, and the difference between the mileage at the end of the segment and the mileage at the current time is defined as the remaining mileage field. Combined with the SOC surge feature, the discharge process is divided into multiple segments. The number of segments varies for different vehicles. In this embodiment, a discharge sample set containing remaining mileage features is established, as shown in Table 1: Table 1 Number of Vehicle Discharge Segment Divisions S1.5. Based on the cleaned vehicle time-series data, the set of operating segments with operating condition labels, and the discharge sample set containing remaining mileage features, a set of key features highly correlated with the remaining mileage is output after feature correlation analysis and feature selection. The feature correlation analysis and feature selection of this invention are as follows: Based on the set of operating segments with operating condition labels and the discharge sample set containing remaining mileage features, feature variables such as speed, current, voltage, SOC, individual cell voltage range, highest / lowest temperature, and remaining mileage are selected. The Spearman rank correlation coefficient is used to calculate the nonlinear correlation between each feature and the remaining mileage, generating a correlation matrix and heat map, and selecting the set of key features highly correlated with the remaining mileage as input variables for subsequent range consumption rate modeling and mileage prediction.
[0053] S2. Construct a range consumption rate model based on TCN-BiLSTM; as shown in Figure 2, the specific steps are as follows: S2.1. Based on the key feature set highly correlated with the remaining range, after problem transformation and data processing operations, output a time-series feature matrix; the problem is transformed into predicting the remaining range consumption rate; the input features of the range consumption rate of this invention include: discharge range SOC, total voltage, maximum / minimum voltage of individual cells, and voltage imbalance; after time alignment and normalization, a time-series input matrix is formed, the expression of which is: Where L is the sequence length of 60 and F is the feature dimension of 5.
[0054] This invention transforms the problem of predicting remaining mileage into predicting the rate of mileage consumption based on the key feature set highly correlated with the remaining mileage output of S1. This enables the model to respond sensitively to short-term changes and suppress cumulative errors. The expression for the consumption rate model is as follows: In the above formula, The remaining distance at the current moment. The remaining distance at the next moment. The power consumption rate is calculated within a 1-minute sampling step. Non-negative values are used to ensure consistency in power consumption direction. After standardization, the power consumption rate sequence is obtained. It is used as the regression target of the model.
[0055] S2.2 Input time series feature matrix The TCN layer extracts local dependencies and short-term dynamic features, outputting a multi-scale temporal feature sequence. The TCN layer comprises a one-dimensional causal convolutional structure and four layers of dilated convolutions. It extracts local dependencies and short-term dynamic features from the input temporal feature matrix layer by layer. The expression for the convolution output is: in, This represents the convolution operation. and These are the weights and bias parameters of the l-th layer, respectively. This represents the hidden state of layer (l-1) at time step t. The output of each convolutional operation serves as the input to the next layer. Each dilated convolutional layer expands the receptive field of the kernel by gradually increasing the dilation rate, enabling the network to capture multi-scale temporal features from the short to medium term. The dilation rate is 1 for the first layer, 2 for the second, 4 for the third, and 8 for the fourth, thus improving the model's ability to capture long-term dependent features and outputting multi-scale temporal feature sequences. The output of each convolutional operation is added to the output of the previous layer through residual connections, ensuring effective information transfer between layers, avoiding the gradient vanishing problem, and promoting network training. The multi-layer dilated convolutions and residual connections of the TCN layer ensure that the model can capture both short-term and long-term dependent features while improving computational efficiency and training stability.
[0056] S2.3. Input a multi-scale temporal feature sequence, pass it through a BiLSTM layer, and output temporal encoded features; this invention then performs forward and backward encoding on the multi-scale temporal feature sequence output by the TCN layer to extract long-term time dependence and operating condition transition trends. The expression for its core recursive relationship is as follows: in, , , Forget gate, input gate, and output gate; The state of the memory unit; These are the transition weight matrices corresponding to the forget gate, input gate, output gate, and memory unit states, respectively. These correspond to the biases of the forget gate, input gate, output gate, and memory cell state, respectively. This represents the hidden state of the previous time step; For the current input features, is the Sigmoid activation function, used to limit the range of the gated output (between 0 and 1); tanh is the hyperbolic tangent activation function, used to limit the output of the memory cell state; The hidden state represents the final output of the LSTM, which contains the influence of the current time step on future time steps. BiLSTM consists of two LSTM layers, each with 128 hidden units. It can simultaneously learn the dynamic trend of energy consumption with SOC, temperature, and velocity changes from both forward and backward time directions. The output of each layer passes information through bidirectional connections (forward + backward) to enhance the model's temporal expressive ability.
[0057] S2.4. Inputting the temporal coding features, and after regression prediction and training, obtaining the predicted range consumption rate, thus completing the construction of the range consumption rate model; In this invention, after the temporal coding features are jointly encoded by the TCN layer and BiLSTM layer, the network output is regressed through a fully connected layer (Dense layer) to obtain the standardized range consumption rate prediction value. The formula is as follows: in, It is the output of the BLSTM layer.
[0058] Then, the inverse normalization transformation is used to restore the physical quantity space. The expression for inverse normalization is: The final predicted remaining mileage can be obtained recursively using the following expression: In the formula, This is the predicted value for the driving range consumption rate. This is the predicted remaining mileage at the current moment. The unit time step is 1 minute.
[0059] During model training, the input sequence length is 60 time steps, the resampling interval is 1 minute, 64 samples are processed per update, the number of training epochs is 10, the learning rate is 0.001, and the ratio of training set, test set, and validation set is 7:1.5:1.5. The Adam optimizer algorithm is used for gradient updates, and a learning rate decay and early stopping mechanism are introduced to prevent overfitting. The loss function is the mean absolute error (MAE), expressed as follows: In the formula, This is the predicted value for the remaining mileage. The remaining mileage is the true value, and N is the sample size. The index of N.
[0060] In addition, root mean square error (RMSE) and mean absolute percentage error (MAPE) are used for performance evaluation.
[0061] S3. Rolling capacity estimation modeling: The specific steps are as follows: S3.1. Based on charging segments with operating condition labels, identify complete charging segments by setting a judgment threshold to obtain a set of effective charging segments; First, extract continuous charging segments from the original operating data. For a charging segment, it is identified as a complete charging segment when the following conditions are met. The expression for the effective charging segment is: in, The preset judgment threshold is set to 5%. The 5% SOC change threshold can effectively filter out charging segments that are not meaningful, while ensuring that the selected segments have sufficient representativeness and data quality, thereby providing more accurate battery capacity estimation and health status analysis.
[0062] S3.2. Based on the current and voltage data in the effective charging segment set, after capacity and energy calculations, the data are arranged in chronological order to form a continuous charging capacity sequence; based on the ampere-hour integration method, the capacity of a single charging process is calculated. The calculation expression is: In the formula, Indicates start time End time Integral calculation, This refers to the current during the charging process.
[0063] If voltage changes are taken into account, the electrical energy corresponding to this charging can be further obtained. The calculation expression is: in, This is the charging terminal voltage. This is the charging current. The small increment of time represents the change in the time variable t during the integration process.
[0064] The capacity of each charging segment Arranged in chronological order, they form a continuous sequence of charging capacities: S3.3 Input a continuous charging capacity sequence, perform sliding window statistics and exponential smoothing, and output the smoothed rolling capacity; This invention uses the sliding window method to statistically analyze continuous charging segments, which can obtain the trajectory of the battery's available capacity over time. The window width is set to W = 10 charging cycles, and the rolling capacity is... The calculation expression is: in, For continuous charging capacity sequence The capacity of the k-th charging segment contained therein, where W is the width of the sliding window. For time indexing.
[0065] To reduce the impact of noise, the rolling capacity Data application using exponential smoothing makes recent data have a greater impact on the results. The formula for calculating the smoothed rolling capacity is as follows: In the formula, This is the smoothing coefficient, with a value between 0 and 1, which controls the degree of smoothing. This represents the smoothed scrolling capacity from the previous moment.
[0066] S3.4 Input the smoothed rolling capacity, and after defining the battery's SOH, dynamically estimating the rated capacity, and linearly normalizing, output the normalized SOH score to complete the rolling capacity estimation modeling; the battery's SOH is defined as the ratio of rolling capacity to rated capacity; after obtaining the rolling capacity, this invention defines the battery's SOH as the ratio of rolling capacity to rated capacity, expressed as: in, The rated capacity of a brand new battery. This represents the smoothed scrolling capacity.
[0067] The calculated rolling SOH result is linearly normalized, compressed, and shifted to a uniform [0,1] interval before being embedded into the range prediction feature to quantify the impact of battery degradation on driving energy consumption and remaining range. The normalized SOH score is defined as: In the formula, The initial SOH value at time t is obtained by the ratio of rolling capacity to rated capacity; The minimum value of the original SOH sequence within the selected analysis window represents the worst health state observed for the battery within the current data range. It is mapped to 0 during normalization. The maximum value of the original SOH sequence within the same analysis window represents the best health status observed for the battery within the current data range. It is mapped to 1 during normalization.
[0068] S4. Operating condition identification and predictive modeling; the specific steps are as follows: S4.1. Based on the cleaned vehicle time-series data, output window statistical features through sliding window feature statistics; This invention, based on the cleaned vehicle time-series data in step S1.2, selects five key variables: vehicle speed, acceleration, current, voltage, and power, and performs feature statistics using a fixed-length sliding time window. Let the sampling sequence be: In the formula, Let be the vehicle speed at the t-th sampling time; Let be the longitudinal acceleration at the t-th sampling time. Let be the battery current at the t-th sampling time. Let be the battery terminal voltage at the t-th sampling time. Let be the electrical power at the t-th sampling time, where t is the sampling time index and T is the total number of sampling points during the entire observation period.
[0069] Window length is =60, sliding step size is =30, then the set of time indices contained in the i-th window is: In the formula, i is the index of the sliding window. For window length, This is the sliding step size.
[0070] For each window The window statistical feature vector is constructed as follows: In the formula, i is the index of the sliding window, and I is the total number of sliding windows. The physical meaning and calculation method of each component are as follows: in, The length of the window; is the starting sampling index of the i-th sliding window; k is the index of the sampling point within the window; Let be the vehicle speed at the k-th sampling time. Let be the terminal voltage at the k-th sampling time. Let be the current at the k-th sampling time. This is an indicator function used to identify a low-speed parking state.
[0071] S4.2 Input Window Statistical Characteristics This invention uses the median speed within a window as the basis for classifying operating conditions and presets a speed threshold for determination, outputting preliminary operating condition labels. Based on traffic flow characteristics and empirical rules governing speed ranges, this invention uses the median speed within a window... As the basis for classifying working conditions, a threshold parameter is set. , Define the operating condition labels and output the initial operating condition labels. The expression is as follows: S4.3, Based on preliminary working condition labels Input window statistical features are used as supervision signals during the training phase of a random forest. A pre-trained random forest classifier outputs accurate operating condition labels. To achieve accurate operating condition identification under noisy conditions, an ensemble learning-based random forest (RF) classifier is employed. The random forest achieves non-linear feature space partitioning by combining multiple decision trees, and its prediction results are obtained through majority voting. Let the random forest consist of M decision trees. Composition, then for any window features The class prediction given by the m-th tree is The overall voting probability is: In the formula, This is an indicator function used to identify a low-speed parking state. The set of operating conditions includes urban, suburban, and highway categories. Let M be the classification function of the m-th decision tree, and M be the number of decision trees in the forest.
[0072] The final precise operating condition label is: In the formula, The voting probability for work condition category c; Let be the feature vector of the i-th window.
[0073] S4.4 Input precise operating condition labels The invention outputs labels for smooth operating conditions through a preset smoothing window; however, due to the possibility of transient fluctuations in vehicle speed causing label jitter, it provides more precise operating condition labels. Introducing a majority voting smoothing mechanism with a smoothing window size of 60, the expression for the smoothing condition label is: In the formula, To accurately identify the working condition labels before smoothing, mode is used for mode calculation, which selects the working condition type that appears most frequently in the window.
[0074] S4.5, Input the current window feature set and smooth working condition label As training data, a pre-trained random forest model is used to output the probability distribution of operating conditions. Based on the current operating condition identification results, in order to predict future energy consumption trends in advance, this invention further constructs a "next time window operating condition prediction model". The goal of the prediction model is: In the formula, The statistical characteristics of the current window (same as S4.1). Implemented by another pre-trained random forest; smoothed load condition labels are used during the model training phase. Provide oversight.
[0075] The model outputs the probability distribution of the next window belonging to each working condition category as follows: In the formula, Statistical characteristics of the current window The next window will display the actual working conditions label. Let be a probability function.
[0076] S4.6. Based on the probability distribution of operating conditions and smooth operating condition labels, the invention completes operating condition identification and prediction modeling by defining prior energy consumption parameters obtained from energy consumption rate prediction; this invention obtains smooth operating condition labels... and the probability of the next window condition Based on (providing prior weights), this invention statistically analyzes the energy consumption rate per unit mileage according to the operating condition category, constructs the speed-energy consumption rate (Wh / km) relationship curve, and provides energy consumption priors for range modeling.
[0077] Energy efficiency rate is defined as: In the formula, This represents the actual energy consumption of the i-th window. This corresponds to the distance traveled.
[0078] For each operating condition category and speed range, the corresponding prediction window set is as follows: In the formula, Let c be the average speed of the i-th window, c be the operating condition category, and v be the speed range. For smooth operating conditions labeling.
[0079] The predicted prior energy consumption parameters (speed-energy rate relationship curve) under operating condition category c and speed range v are as follows: In the formula, Let be the energy consumption rate per unit mileage corresponding to the i-th window, and median be the function for calculating the median.
[0080] S5. Multi-model fusion prediction; the specific steps are as follows: S5.1. Based on the predicted range consumption rate, normalized SOH score, and prior energy consumption parameters, a recursive formula is constructed to obtain the prediction formula for the remaining range at the next moment; under the condition of continuous time discretization, let the actual remaining range at the current moment be... Then the prediction result for the next time step satisfies the recursive formula: in, The instantaneous mileage consumption rate is predicted by TCN-BiLSTM. The normalized SOH score output by S3, i.e., the rolling health status; The energy consumption prior parameters output by the S4 operating condition prediction module under operating condition category c and speed range v. A weighting function is used to adjust the impact of differences in health status and operating conditions on energy consumption rate; For preset learnable parameters, where The default value is 1. The default value is 0.
[0081] S5.2 Input dynamic time-series features, smoothed operating condition labels, and energy consumption prior parameters. Through unified embedding and normalization processing in the input layer, and using a multi-layer TCN + BiLSTM and prediction correction layer for fully connected network regression mapping in the time-series feature extraction layer, a fusion prediction model is obtained, outputting the corrected energy consumption rate prediction value. The fusion prediction model of this invention adopts a deep neural network architecture consisting of three parts: an input layer, a time-series feature extraction layer, and a prediction correction layer. The input layer first performs unified embedding and normalization processing on features from different sources: dynamic time-series features... (Including current, voltage, SOC, instantaneous energy consumption rate, etc.) Local variation patterns are extracted through one-dimensional convolution and layer normalization operations to identify operating condition characteristics. (The urban, suburban, and highway labels and energy consumption priors output by the operating condition identification and prediction module) are mapped into dense vectors through an embedding layer to preserve the semantic distance between operating condition categories, SOH, and capacity features. (Health status data and capacity factor from the rolling capacity estimation module) are normalized by a fully connected layer. The above features are concatenated at the same time step to form a fused feature vector. As input for time series modeling.
[0082] The temporal feature extraction layer employs a multi-layer temporal convolutional network (TCN) to capture local energy consumption variations and short-term dependency features, and connects a bidirectional long short-term memory network (BiLSTM) at the output to capture long-term temporal dependencies. For the input sequence... The output features of the temporal feature extraction layer are represented as follows: This structure can model the non-stationary energy consumption characteristics under different operating conditions, and also maintain the ability to remember slowly changing states such as SOC and SOH.
[0083] The prediction and correction layers consist of fully connected networks and employ nonlinear activation functions to achieve regression mapping. Their output format is as follows: In the formula, The weight matrix of the first fully connected network maps the features from dimension H to the hidden dimension D; The weight matrix of the second fully connected network maps the hidden layer output from dimension D to the scalar consumption rate space. , They are respectively , The corresponding bias vector; The temporal encoded feature vector at time step t is output by the preceding TCN-BiLSTM layer; To correct the activation function of the linear unit, the above formula, combined with the aforementioned recursive formula, yields the remaining range prediction result for the next time step, thereby achieving a collaborative estimation of energy consumption dynamic characteristics and battery health status.
[0084] S5.3. Based on the fusion prediction model, a composite loss function is constructed, its value is calculated, and optimization is performed. To simultaneously ensure the accuracy of the consumption rate prediction and the continuity of the remaining mileage curve, this invention designs a composite loss function: In the formula, To measure the accuracy of the consumption rate regression, To measure the mileage prediction error, This is a total variation regularization term used to maintain the smoothness of the prediction curve. The balance coefficient is denoted as , where The default value is 1. The default value is 0.05.
[0085] The optimization process of this invention adopts the Adam algorithm and is combined with an adaptive learning rate adjustment strategy to achieve self-learning fusion of multi-source information through joint training.
[0086] S5.4. Based on the calculation formulas of three statistical indicators, MAE, RMSE, and MAPE, output the model performance evaluation results; To comprehensively evaluate the accuracy and stability of the multi-model fusion range prediction method based on driving condition identification and prediction proposed in this invention, three statistical indicators, namely, mean absolute error (MAE), root mean square error (RMSE), and mean relative percentage error (MAPE), are used to quantitatively evaluate the prediction results output by the model. These three indicators reflect the model performance from the aspects of average deviation, fluctuation sensitivity, and relative accuracy, respectively, and are defined as follows: 1) Mean Absolute Error (MAE): MAE represents the average absolute deviation between the predicted value and the true value. It is the main indicator for measuring the overall deviation level of the model, and its definition is: Where N is the number of test samples, Let be the actual remaining mileage at time i. The remaining mileage predicted by the model.
[0087] 2) Root Mean Square Error (RMSE): RMSE reflects the volatility and sensitivity to extreme value errors in prediction results. It is more sensitive to outliers (such as sudden changes in energy consumption or operating conditions) and is used to evaluate the robustness and stability of the model. Its definition is: RMSE assigns higher weights to samples with large deviations than MAE, and is therefore used to judge the smoothness and noise resistance of a model under complex dynamic conditions.
[0088] 3) Mean Absolute Percentage Error (MAPE): MAPE measures the relative accuracy of the prediction results at different range levels, that is, the percentage of the prediction error relative to the true value, defined as: in, To prevent the use of tiny constants with zero denominators, MAPE reflects the relative error balance of the model across different remaining mileage intervals.
[0089] S5.5. Using the current actual remaining mileage as the initial input, a prediction sequence is gradually generated through rolling time series prediction, and the comprehensive evaluation result of single-step and multi-step prediction accuracy is output. To ensure the comparability of the evaluation results, this invention adopts a rolling time series prediction mechanism in the model inference stage: using the current actual remaining mileage... As the initial input, the prediction sequence is generated step by step using the aforementioned recursive formula. and compared with the measured remaining mileage sequence By comparing each point, the MAE, RMSE, and MAPE indices are calculated to achieve a comprehensive quantitative evaluation of the accuracy of single-step and multi-step predictions.
[0090] S6. Perform generalization verification of the S5 model using different vehicle models.
[0091] Figure 3 shows the rolling capacity estimation results of this invention based on real-world vehicle operation data for a certain model. The scatter points in the figure represent the equivalent capacity values (in kWh) of each effective charging segment identified according to step S3. The dashed line represents the arithmetic mean of the capacities of all segments, approximately 48.36 kWh. The solid line represents the window width. The rolling median capacity curve is calculated to be 10. It can be seen that after removing a small number of outliers, the capacity of most charging segments is stably distributed within the 46–50 kWh range. The rolling capacity curve changes smoothly over time and fluctuates slowly around 48 kWh, reflecting the long-term slow degradation trend of the battery while effectively suppressing outliers caused by local operating condition fluctuations and some charging and metering errors. This demonstrates that the rolling capacity estimation method of this invention can stably extract the usable battery capacity information under complex real-world vehicle operating conditions, providing a reliable health status quantity for subsequent SOH normalization and range modeling.
[0092] Figure 4 shows the speed-energy consumption rate scatter plot obtained based on the working condition model of this invention. The horizontal axis is the median speed (km / h) within the window, and the vertical axis is the energy consumption per unit distance (Wh / km). Different colors correspond to three types of working conditions: highway, suburban, and urban. It can be seen that: 1) In urban low-speed working conditions (green scatter plot, speed <30 km / h), the energy consumption distribution is generally high, and in some working conditions, the energy consumption can exceed 400-500 Wh / km, reflecting the high energy consumption characteristics under frequent start-stop, braking, and congested working conditions.
[0093] 2) In suburban medium-speed driving conditions (orange scattered points, approximately 30–60 km / h), energy consumption decreased significantly, with most samples concentrated in the 200–350 Wh / km range, demonstrating the superior economy of medium-speed constant-speed driving.
[0094] 3) Under high-speed conditions (red dots, speed > 60 km / h), energy consumption rebounds slightly but is more concentrated, indicating that increased air resistance at high speeds leads to increased energy consumption per unit distance.
[0095] The boundaries of the three types of scatter points on the speed axis in the figure are basically consistent with the preset operating condition thresholds (such as 30 km / h and 60 km / h), and the energy consumption distribution within each operating condition is significantly different. This proves that the operating condition division and energy consumption modeling based on the median speed and window statistical characteristics proposed in this invention have good physical rationality and distinguishability, and provide experimental basis for the subsequent construction of speed-energy consumption a priori according to operating conditions.
[0096] Figure 5 shows the confusion matrix for next-window operating condition prediction based on the same vehicle data. The diagonal elements are close to 1, and the off-diagonal elements are close to 0. The overall prediction accuracy (ACC) is 0.98, and the macro-average F1 score (MacroF1) is 0.95. Specifically, the self-identification probability for highway operating conditions is approximately 0.98, for urban operating conditions approximately 0.99, and for suburban operating conditions approximately 0.90. A small number of errors mainly occur in the boundary region between suburban and highway driving conditions. These results demonstrate that by introducing sliding window smoothing and a random forest prediction model, this invention can predict the operating condition category for the next time window with high accuracy, providing reliable prior operating conditions and future energy consumption trend information for the driving range model.
[0097] Figure 6 shows the predicted driving range results of this invention. Figures 6(a), 6(b), and 6(c) respectively show the comparison between the actual remaining mileage trajectories (solid lines) of high-range vehicles, medium-range vehicles, and low-range vehicles during the test period and the predicted trajectories (dashed lines) of this invention's model.
[0098] 1) In high-range vehicles (Figure 6(a)), the vehicles experience long-distance driving from full charge to low charge multiple times. The prediction curve of this invention closely follows the actual remaining range in each charge and discharge cycle. The slope of the discharge segment is almost the same, and the range recovery node during charging can also be accurately captured. The RMSE is only 0.90 km, which shows that after integrating SOH and operating condition information, the model can maintain stable prediction accuracy and good error non-accumulation characteristics over a large range.
[0099] 2) In medium-range vehicles (Figure 6(b)), the vehicle usage scenario is mainly medium-distance commuting, and the range exhibits multiple medium-deep discharge-recharge cycles. The predicted curve in the figure also closely follows the actual curve, with an RMSE of only 0.29km, which can accurately track the changes in operating conditions and load differences between different travel days, indicating that the present invention also has good adaptability to vehicles with medium-range capabilities.
[0100] 3) In vehicles with low driving range (Figure 6(c)), the usage scenario is more inclined towards frequent short-distance trips, and the remaining mileage curve shows obvious sawtooth-shaped short-period fluctuations. Even in this scenario with frequent switching of operating conditions and large fluctuations in energy consumption, the predicted curve of this invention can still closely follow the changes of the actual curve, with an RMSE of only 0.90 km. Only slight deviations occur at a few locations of abrupt changes in operating conditions, demonstrating the robustness of the model to complex urban operating conditions and short-distance usage scenarios.
[0101] As can be seen from the comparison of the three typical vehicles in Figure 6, regardless of changes in battery capacity and usage scenarios, the driving range prediction framework of this invention, based on "rolling capacity + operating condition identification and prediction + TCN-BiLSTM multi-model fusion," can achieve high-precision fitting of the remaining mileage trajectory on real vehicle operating data. The predicted results and measured values basically overlap throughout the entire time period, significantly outperforming traditional methods that rely solely on a single SOC-mileage mapping or are based only on the current operating conditions. Combining the experimental results in Figures 3 to 5, this invention not only provides stable and reliable battery capacity and SOH estimates but also accurately characterizes the energy consumption differences under different operating conditions and the future operating condition transition trends, thereby effectively improving the accuracy and stability of electric vehicle driving range prediction in engineering applications.
[0102] Experimental results show that the method of the present invention has high accuracy in predicting the driving range on different vehicle models, and the prediction error remains at an extremely low level. Specifically, the RMSE is always less than 1 km and the MAPE is less than 2%, which fully verifies the generalization ability and high accuracy of the model.
[0103] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for predicting the range of new energy vehicles based on operating condition identification and prediction, characterized in that: Includes the following steps: S1. Collect real-vehicle operation datasets of pure electric vehicles through open-source datasets, preprocess and construct features of the data, and output a set of operation segments with working condition labels and a set of key features highly correlated with the remaining mileage. The data preprocessing and feature construction operations include: data splitting and structuring, data cleaning and quality repair, segment division and operating condition identification and classification, remaining mileage feature construction, and feature correlation analysis and feature selection; S2, Constructing a driving range consumption rate model based on TCN-BiLSTM: Based on a key feature set highly correlated with remaining mileage, after problem transformation and data processing, a time-series feature matrix is output. The input is then processed through a TCN layer to extract local dependencies and short-term dynamic features, outputting a multi-scale time-domain feature sequence. This is then processed through a BiLSTM layer to output time-series encoded features. Finally, after regression prediction and training, the driving range consumption rate model and predicted driving range consumption rate are obtained; S3, Rolling capacity estimation modeling: Based on charging segments with operating condition labels, complete charging segments are identified by setting a judgment threshold. After obtaining a set of effective charging segments, based on the current and voltage data in the effective charging segment set, capacity and energy calculations are performed, and the segments are arranged in chronological order to form a continuous charging capacity sequence. Through sliding window statistics and exponential smoothing, the smoothed rolling capacity is output. After smoothing, the rolling capacity is modeled by defining the battery's SOH, dynamically estimating the rated capacity, and linearly normalizing it, and then outputting a normalized SOH score. S4, Operating Condition Identification and Prediction Modeling: Based on cleaned vehicle time-series data, sliding window feature statistics are used to output window statistical features. The median speed within the window is used as the basis for operating condition classification, and a preset speed threshold is used for judgment, outputting preliminary operating condition labels. These preliminary labels are used as supervision signals in the random forest training phase. Input window statistical features are used, and a pre-trained random forest classifier is used to output accurate operating condition labels. Then, smoothed operating condition labels are generated through a preset smoothing window. A pre-trained random forest model outputs the operating condition probability distribution. Operating condition identification and prediction modeling are completed by defining the energy consumption prior parameters obtained from energy consumption rate prediction. S5, Multi-Model Fusion Prediction and Evaluation: Based on the predicted range consumption rate, normalized SOH score, and energy consumption prior parameters, a recursive formula is constructed to obtain the remaining range prediction formula for the next moment. This is achieved through unified embedding and normalization processing in the input layer and the use of a multi-layer TCN in the time-series feature extraction layer. + By performing a fully connected network regression mapping between BiLSTM and the prediction correction layer, a fusion prediction model is obtained and a composite loss function is constructed to complete the new energy vehicle range prediction method based on operating condition identification and prediction.
2. The method for predicting the range of new energy vehicles based on operating condition identification and prediction according to claim 1, characterized in that: S1 specifically includes the following steps: S1.1, collecting real-vehicle operation datasets of pure electric vehicles based on open-source datasets, and outputting structured time-series datasets after data splitting and structuring processing; S1.2, based on the structured time-series datasets, outputting cleaned vehicle time-series data after data cleaning and quality repair operations; S1.3, based on the cleaned vehicle time-series data, outputting a set of operation segments labeled with operating conditions after segmenting operation segments and classifying them according to typical operating conditions; the operation segments include: discharging segments, charging segments, and stationary segments; the typical operating conditions include: urban, suburban, and highway; S1.4, based on the set of operation segments labeled with operating conditions, and using the remaining mileage... Feature construction outputs a discharge sample set containing remaining mileage features; the operating segments with operating condition labels include: discharge segments with operating condition labels, charging segments with operating condition labels, and stationary segments with operating condition labels; the remaining mileage feature construction specifically involves: calculating the mileage difference for the set of discharge segments identified as having operating condition labels, defining the difference between the mileage at the end of the segment and the mileage at the current time as the remaining mileage field, and combining it with the SOC surge feature to realize the multi-segment division of the discharge process; S1.5, based on the cleaned vehicle time-series data, the set of operating segments with operating condition labels, and the discharge sample set containing remaining mileage features, after feature correlation analysis and feature screening, outputs a set of key features highly correlated with the remaining mileage.
3. The method for predicting the range of new energy vehicles based on operating condition identification and prediction according to claim 1, characterized in that: S2 specifically includes the following steps: S2.1, based on a key feature set highly correlated with the remaining mileage, after problem transformation and data processing operations, a time-series feature matrix is output; the problem transformation is to transform the problem of predicting the remaining mileage into the problem of predicting the remaining mileage consumption rate; the output time-series feature matrix includes: remaining charge SOC in the discharge interval, total voltage, maximum voltage of a single cell, minimum voltage of a single cell, and voltage imbalance, specifically expressed as: Where L is the preset sequence length and F is the feature dimension; the expression for the consumption rate model is as follows: In the formula, The remaining distance at the current moment. S2.1 Input the remaining mileage at the next moment; S2.2 Input the temporal feature matrix, extract local dependencies and short-term dynamic features through the TCN layer, and output a multi-scale temporal feature sequence; the TCN layer includes a one-dimensional causal convolution structure and four layers of dilated convolution, with dilation rates of 1, 2, 4 and 8 respectively; S2.3 Input the multi-scale temporal feature sequence, and output temporal encoded features through the BiLSTM layer; the BiLSTM contains two LSTM layers, each with 128 hidden units, specifically performing one forward and one backward encoding on the multi-scale temporal feature sequence output by the TCN layer; S2.4 Input the temporal encoded features, and obtain the predicted mileage consumption rate after regression prediction and training, completing the construction of the mileage consumption rate model; the regression prediction and training include: fully connected layers, inverse normalization, Adam optimization and MAE loss function.
4. The method for predicting the range of new energy vehicles based on operating condition identification and prediction according to claim 1, characterized in that: S3 specifically includes the following steps: S3.1, based on the charging segment with the operating condition tag, identify the complete charging segment by setting a judgment threshold to obtain the set of valid charging segments; the expression for obtaining the valid charging segment is: in, To preset the judgment threshold, End time, S3.
1. Starting time; S3.
2. Based on the current and voltage data in the effective charging segment set, after capacity calculation and energy calculation, arrange them in chronological order to form a continuous charging capacity sequence; S3.
3. Input the continuous charging capacity sequence, and output the smoothed rolling capacity through sliding window statistics and exponential smoothing; S3.
4. Input the smoothed rolling capacity, and output the normalized SOH score after defining the battery's SOH, dynamically estimating the rated capacity, and linear normalizing, thus completing the rolling capacity estimation modeling; The battery's SOH is defined as the ratio of rolling capacity to rated capacity; The expression for defining the battery's SOH as the ratio of rolling capacity to rated capacity is: in, The rated capacity of a brand new battery. The smoothed rolling capacity; the normalized SOH fraction is defined as: In the formula, The initial SOH value at time t is obtained by the ratio of rolling capacity to rated capacity; To select the minimum value of the original SOH sequence within the analysis window, This represents the maximum value of the original SOH sequence within the same analysis window.
5. The method for predicting the range of new energy vehicles based on operating condition identification and prediction according to claim 1, characterized in that: S4 specifically includes the following steps: S4.1, based on the cleaned vehicle time-series data, output window statistical features through sliding window feature statistics; S4.2, input the window statistical features, use the median speed in the window as the basis for dividing the working conditions, and determine the condition by setting a speed threshold, and output preliminary working condition labels; the expression for outputting preliminary working condition labels is as follows: In the formula, The median speed This is the first speed threshold parameter. This is the second speed threshold parameter; S4.3, based on the initial working condition label. The input window statistical features are used as supervision signals during the training phase of the random forest. Through a pre-trained random forest classifier, the output is an accurate working condition label. The expression for the accurate working condition label is: In the formula, Let c be the voting probability for work condition category c. Window statistical features For the set of operating conditions, i.e., urban, suburban, and highway; S4.4, input precise operating condition labels. The system outputs labels for smooth operating conditions through a preset smoothing window; the expression for the smooth operating condition label is: In the formula, To accurately identify the working condition labels before smoothing, `mode` is used for mode calculation, which selects the working condition type that appears most frequently within the window; S4.5, Input the current window feature set. and smooth working condition label As training data, a pre-trained random forest model is used to output the probability distribution of working conditions; the probability distribution of the output working condition categories is as follows: In the formula, Statistical characteristics of the current window The next window will be labeled with the actual operating condition; S4.6, based on the operating condition probability distribution and smoothed operating condition labels, the operating condition identification and prediction modeling will be completed by defining the energy consumption prior parameters obtained from the energy consumption rate prediction.
6. The method for predicting the range of new energy vehicles based on operating condition identification and prediction according to claim 1, characterized in that: S5 specifically includes the following steps: S5.1, based on the predicted range consumption rate, normalized SOH score, and prior energy consumption parameters, a recursive formula is constructed to obtain the remaining range prediction formula for the next time step; S5.2, inputting dynamic time-series features, smoothed operating condition labels, and prior energy consumption parameters, and performing unified embedding and normalization processing in the input layer, using a multi-layer TCN + BiLSTM in the time-series feature extraction layer, and performing fully connected network regression mapping in the prediction correction layer, a fused prediction model is obtained, and the corrected consumption rate prediction value is output; the expression for the remaining range prediction formula for the next time step is: in, The instantaneous mileage consumption rate is predicted by TCN-BiLSTM. The normalized SOH score output by S3 represents the rolling health status. The energy consumption prior parameters output by the S4 operating condition prediction module under operating condition category c and speed range v. To incorporate the weighting function, which is used to adjust the impact of differences in health status and operating conditions on energy consumption rate, The first, second, and third preset learnable parameters are respectively; S5.3, based on the fusion prediction model, the composite loss function is constructed, the composite loss function value is calculated, and optimization is performed; S5.4, based on the calculation formulas of three statistical indicators, MAE, RMSE, and MAPE, the model performance evaluation results are output.
7. The method for predicting the range of new energy vehicles based on operating condition identification and prediction according to claim 4, characterized in that: In step S3.2, after capacity and energy calculations, the data are arranged in chronological order to form a continuous charging capacity sequence: Capacity The expression for calculation is: In the formula, Indicates start time End time Integral calculation, The current during the charging process; electrical energy. The expression for calculation is: in, This is the charging terminal voltage. This is the charging current. Let be the minute increment of time representing the change in the time variable t during the integration process; the expression constituting the continuous charging capacity sequence is: Where n is the total number of charging segments.
8. The method for predicting the range of new energy vehicles based on operating condition identification and prediction according to claim 4, characterized in that: In S3.3, the expression for the output smoothed rolling capacity is: In the formula, For smoothing coefficients, This represents the smoothed rolling capacity from the previous moment. in, For continuous charging capacity sequence The capacity of the k-th charging segment contained therein, where W is the preset sliding window width. For time indexing.
9. The method for predicting the range of new energy vehicles based on operating condition identification and prediction according to claim 5, characterized in that: In S4.6, the expression for the energy consumption prior parameter is: In the formula, Energy consumption rate, To predict the corresponding window set; the expression for energy consumption rate is defined as: In the formula, This represents actual energy consumption. The corresponding distance traveled; the expression for the predicted corresponding window set is: In the formula, Let c be the average speed of the i-th window, c be the operating condition category, and v be the speed range. For smooth operating conditions labeling.
10. A method for predicting the range of new energy vehicles based on operating condition identification and prediction according to claim 6, characterized in that: In S5.3, the composite loss function is expressed as follows: In the formula, To measure the accuracy of the consumption rate regression, To measure the mileage prediction error, This is a total variation regularization term used to maintain the smoothness of the prediction curve. To preset the first balance coefficient, To preset the second balance coefficient, This is a preset third balance coefficient.
Citation Information
Cited By
Fusion hybrid neural network multi-working condition ship fuel consumption rate prediction method, system and device
CN122198258A
A method, system, and device for predicting ship hydrocarbon consumption rate under multiple operating conditions using hybrid neural networks.
CN122198258B
