A management method for energy storage batteries in railway machine rooms

By constructing a voltage time series model and a neural network prediction model, combined with ARIMA and Bayesian algorithms, and integrating the battery health status and voltage time series models, the problem of low accuracy of battery monitoring in the railway machine room is solved, and the battery health status and lifespan are realized. Accurate predictions and extended battery life.

CN118604637BActive Publication Date: 2024-10-18BEIJING CHINA RAILWAY CONSTR ELECTRIFICATION DESIGN & RES INST CO LTD +3
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411078041.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-18
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

The railway engine room battery monitoring system has low accuracy, cannot accurately predict battery health status and remaining life, and fails to fully consider complex environmental factors such as temperature fluctuations and load changes.

Method used

By constructing a voltage time series model and a battery health state prediction model based on neural networks, combined with the ARIMA time series analysis method and Bayesian algorithm, the battery health state prediction model and voltage time series model are integrated for real-time monitoring and prediction.

Benefits of technology

It improves the accuracy of operating status monitoring of energy storage batteries in railway machine rooms, detects battery problems in advance, optimizes use and maintenance strategies, extends battery life, and enhances system reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118604637B_ABST
    Figure CN118604637B_ABST
Patent Text Reader

Abstract

The present application discloses a management method for energy storage batteries in a railway machine room, which relates to the technical field of energy storage batteries, including: collecting the voltage, current and state SOC of the battery as battery state parameters; preprocessing the collected battery state parameters; constructing a battery health state feature vector including voltage, current and state SOC; obtaining a battery health state prediction model by training a multi-layer perceptron neural network based on the constructed battery health state feature vector; modeling the voltage time series data using the ARIMA time series analysis method to obtain a voltage time series model; optimizing the hyperparameters of the battery health state prediction model based on the Bayesian algorithm; integrating the hyperparameter-optimized battery health state prediction model and the voltage time series model to obtain the final battery management model. In view of the problem of low accuracy of battery monitoring in railway machine rooms in the prior art, the present application improves the accuracy of monitoring the operating status of energy storage batteries in railway machine rooms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of energy storage batteries, and in particular to a management method for energy storage batteries in a railway machine room. Background Art

[0002] In the railway transportation system, battery packs, as key energy storage units, play a vital role in ensuring power supply for signal systems, communication systems and emergency situations. With the rapid development of railway transportation and the increasing requirements for reliability, energy storage batteries in railway machine rooms require more accurate and reliable monitoring systems to ensure their performance and safety. Traditional battery monitoring technologies often rely on simple voltage, current and temperature measurements. Although these methods have certain diagnostic value for immediate status, they are obviously insufficient in accurately predicting battery health status and remaining life.

[0003] The accuracy of battery monitoring in railway machine rooms directly affects the reliability and safety of the entire railway system. In existing technologies, battery monitoring systems mainly rely on traditional electrochemical models and data acquisition technologies. These methods are insufficient to capture the subtle changes and long-term decline trends of batteries, resulting in inaccurate predictions and increased false alarm rates. In addition, existing monitoring systems often do not fully consider the changes of batteries in complex environments, such as temperature fluctuations, load fluctuations, and battery aging, and thus cannot provide a comprehensive and accurate battery health status.

[0004] In the related art, for example, Chinese patent document CN114547849A provides a method and system for predicting the working health status of batteries in energy storage power stations. The prediction method of the present invention includes: obtaining the historical operating data of the batteries in the energy storage power station and preprocessing the original data; according to the characteristics of the battery, intercepting the platform voltage interval of the battery, using this as a reference to obtain the battery charging platform interval voltage and current data for a period of time from the charging segment of the historical operating data, and obtaining the charging capacity value of each time through the ampere-hour integration to obtain the original battery health status change sequence; using the empirical mode decomposition algorithm to separate the battery cycle change segment and the linear decay segment from the original battery health status change sequence; establishing data-driven models for the cycle change segment and the linear decay segment respectively, and realizing the change trend prediction of the battery linear decay segment and the seasonal cycle segment. However, this scheme is mainly based on the battery charging data for modeling, so the accuracy of this scheme for battery monitoring needs to be further improved. Summary of the invention

[0005] In response to the problem of low accuracy in railway machine room battery monitoring in the prior art, the present application provides a management method for energy storage batteries in railway machine rooms. By constructing a voltage timing model and a battery health status prediction model based on a neural network, the accuracy of operating status monitoring of energy storage batteries in railway machine rooms is improved.

[0006] The purpose of this application is achieved through the following technical solutions.

[0007] The embodiment of the present specification provides a management method for energy storage batteries in a railway machine room, including: collecting the voltage, current and state SOC of the battery as battery state parameters; preprocessing the collected battery state parameters; constructing a battery health state feature vector including voltage, current and state SOC according to the preprocessed battery state parameters; obtaining a battery health state prediction model by training a multi-layer perceptron neural network according to the constructed battery health state feature vector; modeling voltage time series data using an ARIMA time series analysis method to obtain a voltage time series model; performing hyperparameter optimization on the battery health state prediction model based on a Bayesian algorithm; integrating the hyperparameter-optimized battery health state prediction model and the voltage time series model to obtain a final battery management model; and using the obtained battery management model to monitor and predict the energy storage batteries in the railway machine room.

[0008] Among them, the battery is monitored in real time through sensors or measuring devices, and the battery state parameters such as voltage, current and state of charge (SOC) are collected. These parameters are important indicators for evaluating the operating status and health of the battery. The collected battery state parameters are preprocessed. The purpose of preprocessing is to clean the data, process outliers, smooth the data, and make the data more suitable for modeling and analysis. Possible preprocessing steps include noise removal, interpolation processing, outlier repair, etc. Based on the preprocessed battery state parameters, a battery health state feature vector containing voltage, current and state of charge (SOC) is constructed. This feature vector is a vector containing multiple eigenvalues, each of which represents an important attribute of the battery. For example, the feature vector can contain the average value of voltage, the variance of current, the rate of change of state of charge (SOC), etc. Through collection, preprocessing and feature vector construction, the system can obtain more comprehensive and accurate battery state information. These feature vectors can be used for further analysis, modeling and prediction to help determine the health and performance status of the battery. Accurate monitoring of battery health status helps to detect problems in advance, optimize battery use and maintenance strategies, thereby extending battery life and improving system reliability.

[0009] Among them, the constructed feature vector is used as input data, and a prediction model for the battery health state is established by training a multi-layer perceptron neural network. The training process of the neural network involves weight adjustment so that the model can accurately predict the health state of the battery. The time series data of the battery voltage is collected by means of sensors and other means to form a series of voltage values ​​at time points. The ARIMA (Auto Regressive Integrated Moving Average) time series analysis method is applied to model the voltage time series data. The ARIMA model includes components such as autoregression (AR), difference (I), and moving average (MA). By determining these parameters, a mathematical model that can describe the trend and seasonality of voltage changes is established. Both models are established to better understand and predict the state of the battery. By learning complex nonlinear relationships, the neural network model can more comprehensively consider the mutual influence between various features and improve the accuracy of prediction. The ARIMA time series model focuses on capturing the trend and seasonal changes of the voltage time series data, providing a more traditional time series analysis method. The two models can work together to provide more comprehensive information for battery monitoring and management, including immediate status and future trends, which helps to optimize battery use and maintenance strategies.

[0010] Among them, when training the multi-layer perceptron neural network, the Bayesian algorithm is used for hyperparameter optimization. This may include the adjustment of hyperparameters such as the number of layers of the neural network, the number of nodes per layer, and the learning rate. Bayesian optimization is an optimization method based on a probabilistic model that can more effectively search for the optimal solution in the hyperparameter space. The battery health status prediction model optimized by Bayesian hyperparameters is integrated with the ARIMA time series model. This can be achieved by combining the outputs of the two models or by fusing their features. Integration can provide a more comprehensive and robust battery management model, giving full play to the advantages of each model. The obtained battery management model is used to monitor and predict the energy storage battery in the railway machine room. The real-time collected battery status parameters and voltage time series data are input, and the model will output the predicted battery health status and future voltage trend. Based on the output of the model, the battery maintenance and use strategy can be optimized. For example, when it is predicted that the battery is about to fail, the system can take maintenance measures in advance to extend the battery life and system reliability.

[0011] Specifically, SOC is the abbreviation of State of Charge, and its Chinese name is battery state of charge. It is a physical quantity that represents the percentage of the battery's currently remaining available capacity. In this application, SOC can quantitatively reflect the current charge storage state of the battery, and is one of the important indicators for evaluating the battery's health status. When constructing the battery feature vector later, SOC is used as a feature dimension to comprehensively describe the battery state together with voltage and current. SOC changes reflect the battery power supply and charging process. Combined with voltage and current data, the dynamic change behavior of the battery under different charging and discharging conditions can be observed. SOC is used together with voltage and current to train a battery health status prediction model to improve the accuracy of the model in predicting battery attenuation trends. Real-time monitoring of SOC changes can reflect the charging and discharging conditions of the battery, and provide data support for subsequent status assessment and fault warning.

[0012] Specifically, the battery health state feature vector refers to a multidimensional feature vector that reflects the battery health state and is constructed using the battery monitoring parameters. In this application, the pre-processed voltage, current and SOC are used as three feature dimensions to construct the feature vector . The feature vector comprehensively integrates multiple state parameters of the battery and can describe the operating state of the battery from multiple angles. Compared with a single feature, the feature vector provides more informative input and can more accurately characterize the health state of the battery. The feature vector reflects the parameter association of the battery state, and the health state can be evaluated through the intrinsic connection between the features. The battery health state prediction model is trained using feature vectors to improve the model's fitting effect on the actual battery state. The dynamic changes of the feature vector are monitored in real time to track the evolution of the battery health state.

[0013] Specifically, the multilayer perceptron neural network is a feedforward neural network comprising an input layer, a hidden layer, and an output layer. In this application, the input layer receives the battery health status feature vector . The hidden layer performs nonlinear transformation on the feature vector and automatically extracts the complex correlations between the features. The output layer gives the prediction result of the battery health state. Through model training, the connection weights are adjusted to establish a mapping relationship between the feature vector and the battery state. The multi-layer network structure fits the complex nonlinear state mapping to achieve accurate prediction of the evolution of the battery health state. The network has strong self-learning and generalization capabilities and can process battery data under different conditions. Finally, a neural network model that accurately predicts the battery health state is obtained. Specifically, ARIMA is a time series analysis method used to study the linear relationship between the current observation value and the past observation value and random disturbance terms in the time series. In this application,

[0014] ARIMA modeling and analysis are performed on the collected battery voltage time series data. The influence of past observations in the voltage series is captured through the autoregressive term. The influence of random disturbances is considered through the moving average term. A suitable The model is used to dynamically fit the voltage time series. The model outputs the time series law of voltage change, and accurately describes the battery voltage evolution process. Compared with static analysis, the time series model can detect the weak characteristics of voltage change in advance. It is conducive to the identification and prediction of early battery failure status.

[0015] Specifically, hyperparameter optimization refers to optimizing the performance of a model by adjusting the hyperparameters of the model. In this application, hyperparameters include the number of layers, number of nodes, and other structural nodes of the battery health status prediction model. The Bayesian optimization algorithm is used to search for the optimal configuration of hyperparameters. The Bayesian algorithm is used to evaluate the impact of different hyperparameters on the model prediction effect. Iterative calculations enable the hyperparameter combination that maximizes the prediction accuracy to be obtained. The final determined hyperparameter combination can generate a battery health status prediction model with the best performance.

[0016] Preferably, calculate the power requirements of all load equipment in the railway machine room and determine the required backup power capacity. Select lead-acid batteries or lithium batteries with sufficient capacity, and configure power equipment such as chargers and inverters. Develop battery charging and discharging strategies, optimize parameters such as charging rate and charging and discharging depth, and maximize battery life. Deploy a monitoring system to collect voltage, current, SOC and other data in real time to monitor battery status. Use a battery health status prediction model to evaluate the current status and remaining service life of the battery for timely maintenance. Develop a comprehensive emergency plan to quickly start the backup battery power supply when the power grid is out. Use intelligent load control technology to give priority to powering important equipment. Regularly test the backup power supply to simulate power outages in the power grid and verify the reliability of the backup power system. The backup power system runs at full load for 3 hours to ensure that important equipment can operate uninterruptedly during power grid failures. Equip with sufficient spare parts and maintenance personnel to ensure that the backup battery is always available.

[0017] Furthermore, a voltage time series model is obtained, including: performing a stationarity test on the collected voltage time series data to determine whether the time series is stationary; if the time series is not stationary, performing differential processing on the voltage time series data to obtain stationary voltage time series data; calculating the autocorrelation coefficient and partial correlation coefficient of the voltage time series data; calculating the order p of the ARIMA model according to the obtained autocorrelation coefficient; calculating the order q of the ARIMA model according to the obtained partial correlation coefficient; constructing Model, where d is the number of differences performed; AIC criteria are used to compare different orders of Model, choose the best Model; optimal for selection The model performs a white noise test on the residual sequence to determine whether the residual sequence is white noise; if the residual sequence is white noise, the optimal Model, model the voltage time series data to obtain the voltage time series model.

[0018] Among them, the collected voltage time series data is tested for stationarity. Stationarity is an important concept in time series analysis, which requires that the time series is stable in statistical characteristics. If the voltage time series is not stationary, differential processing is required. If the voltage time series is not stationary, perform differential processing on it until stable voltage time series data is obtained. The differential processing aims to eliminate the trend and seasonality in the time series to make it more suitable for modeling. The autocorrelation coefficient and partial correlation coefficient of the differential voltage time series data are calculated. These coefficients are the basis for selecting the order of the ARIMA model and reflect the correlation between the time series data. The order p of the ARIMA model is calculated based on the obtained autocorrelation coefficient, and the order q of the ARIMA model is calculated based on the obtained partial correlation coefficient. These orders will be used to construct Model. Build Model, where p is the order of the autoregressive part, d is the number of differences, and q is the order of the moving average part. ARIMA is a time series analysis method used to describe the linear relationship between the current value of a time series and past values ​​and random disturbances. The Akaike Information Criterion (AIC) is used to compare the different orders of The model with the smallest AIC value is selected. AIC is an indicator for evaluating the goodness of fit of a statistical model, taking into account the goodness of fit and the complexity of the model. The model performs a white noise test on the residual sequence. White noise means that there is no obvious pattern in the residual sequence, which is a good model fit indicator. If the residual sequence is judged to be white noise, the optimal The model models the voltage time series data. This means that the model can better describe the characteristics of the original data, thus providing a reliable voltage time series model. The resulting voltage time series model can more accurately reflect the voltage change trend of the railway engine room battery and provide more reliable data support for the overall battery management system. This helps to improve the accurate monitoring of the battery operating status and enhance the stability and reliability of the system.

[0019] Specifically, in this application, the autoregressive order p of the ARIMA model is determined according to the autocorrelation of the voltage time series to reflect the influence of past observations. The moving average order q of the ARIMA model is determined according to the partial correlation of the voltage time series to reflect the influence of random disturbances. The appropriate parameters are constructed as The ARIMA model is used to model the voltage time series. The ARIMA model dynamically approximates the voltage time series to describe the battery voltage evolution process.

[0020] Specifically, in this application, when constructing When building a model, you need to determine the order of autoregressive and moving average terms such as p and q. For multiple ARIMA models built with different order combinations, use AIC to evaluate their fitting effects. AIC takes into account both model error and the number of parameters to achieve a balance in model selection. Select the model with the smallest AIC value. Model, as the model that best fits the time series. The AIC criterion achieves the goal of selecting the best ARIMA model among multiple candidate models.

[0021] Specifically, the white noise test is a statistical test method for checking whether the residual of a time series is white noise. In this application, a residual test is performed on the constructed optimal ARIMA model, and the residual being white noise is one of the important assumptions of the time series model. The white noise test determines whether it is white noise by analyzing the autocorrelation of the residual. If the test is passed, it means that the model has extracted the information of the time series and the fitting effect is good. If it does not pass, the model needs to be adjusted to improve the fit and eliminate the residual correlation. The white noise test ensures the effectiveness of the ARIMA model in fitting the time series.

[0022] Further, judging whether the time series is stable includes: obtaining voltage time series data , is the time series length; calculate the voltage time series data The average ; traverse different lag orders k, the value range of k is 1 to , is the maximum lag order; the lag order represents the time distance between sample values ​​when calculating the autocorrelation coefficient; the autocorrelation coefficient at each order is calculated according to the following formula : , calculate the autocorrelation coefficient when the lag order is M , where M is the length of the time series data ; Indicates the ratio of the lag order used to calculate the attenuation coefficient to the total length of the time series; calculates the average of the first N autocorrelation coefficients , N is taken as U; U represents the number of the first N autocorrelation coefficients used when calculating the average autocorrelation coefficient; the attenuation coefficient is calculated according to the following formula : , determine the calculated attenuation coefficient Is it less than or equal to the threshold? , if yes, the time series is considered to be a stationary series, otherwise it is a non-stationary series; The value range is 0.1 to 0.3.

[0023] Among them, the method of judging whether the time series is stable is mainly to evaluate the stability of the voltage time series data by calculating the autocorrelation coefficient. ,in is the time step, from arrive , is the length of the time series. Calculate the average value of the voltage time series data : Calculate the average value of voltage time series data ,Right now . Iterate over different lag orders : Ergodic lag order ,in The value range is 1 to , is the maximum lag order. The lag order indicates the time distance between sample values ​​when calculating the autocorrelation coefficient. Specifically, the lag order (lag) refers to the time distance between sample values ​​when calculating the autocorrelation coefficient of the time series. In this application, when calculating the autocorrelation coefficient of time series data, it is necessary to traverse different lag orders. . The value range is from 1 to the maximum lag order , Generally, it is taken as about 20% of the length of the time series. Indicates the calculation of the autocorrelation between two adjacent points. The increase reflects the different distances of temporal correlation. , which can fully reveal the relevant characteristics of the time series at each time scale. These autocorrelation coefficients are used to determine the stationarity of the time series and also to determine the p-order of the ARIMA model.

[0024] Calculate the autocorrelation coefficient : ; It represents the autocorrelation coefficient of the time series when the lag order is k; represents the original observations of the time series, represents the sample mean of the time series; The sample observations and their The sum of the deviation products of the observations after the step reflects Step correlation; represents the sum of squares of the deviations from the original observations; so Reflects the degree of autocorrelation of the time series under lagk; calculates the autocorrelation coefficient when the lag order is M , which can reflect the correlation with a longer lag; M is taken as a certain proportion P% of the length of the time series to reveal the long-range correlation characteristics of the time series; Used to calculate the attenuation coefficient and determine the stationarity of the time series.

[0025] Calculate the autocorrelation coefficient when the lag order is M :Select a specific lag order M, where M is P% of the length of the time series data. P% represents the proportion of the lag order used to calculate the decay coefficient to the total length of the time series. Calculate the autocorrelation coefficient when the lag order is M , that is, using the above formula ,in The value is M. By calculating the autocorrelation coefficient when the lag order is M , the stationarity of voltage time series data can be evaluated. If If it approaches zero, it indicates that the time series is stationary. Otherwise, it may be necessary to adopt stationarity processing methods, such as difference operation, to ensure the stationarity of the time series.

[0026] Here, a parameter N is selected, which represents the number of the first N autocorrelation coefficients used when calculating the average autocorrelation coefficient. The value of this parameter is represented by U. Calculate the average of the first N autocorrelation coefficients , calculate the attenuation coefficient :According to the autocorrelation coefficient when the lag order is M mentioned above ; Calculate the attenuation coefficient , ; Determine the stationarity of the time series: set a threshold , The value range is 0.1 to 0.3. Determine the calculated attenuation coefficient Is it less than or equal to the threshold? If yes, the time series is considered to be a stationary series, otherwise it is a non-stationary series. Through this method, the stationarity of the time series can be judged according to the size of the decay coefficient. The decay coefficient reflects the changing trend of the autocorrelation coefficient. It represents the ratio of the two, reflecting the attenuation degree of the autocorrelation coefficient. is small, indicating that the autocorrelation coefficient decays slowly when the lag order increases, and the time series has long-term correlation. It is larger, indicating that the autocorrelation coefficient decays faster when the lag order increases, and the time series correlation is weaker.

[0027] Furthermore, if the time series is not stable, the voltage time series data is differentially processed to obtain stable voltage time series data, including: Greater than threshold When obtaining the adjacent serial number data of the voltage time series data ; Get adjacent sequence number data The corresponding sampling times are t and t-1; the differential time series is calculated according to the following formula ; ; Represents the voltage change per unit time; repeat the above steps until the differential time series is obtained The attenuation coefficient Less than or equal to threshold ; Count the number of differential operations d; The final stable differential sequence is used as the stable voltage time series ;

[0028] Among them, when judging whether the time series is not stable , perform differential processing. Get the data of two adjacent points in the time series and its corresponding time point , According to the formula Calculates the incremental change between two points . Reflects the change in the time series per unit time. Repeat the difference until the time series reaches a stationary state. The number of statistical differences d reflects the non-stationary degree of the original sequence. Finally, the stationary difference sequence is obtained. , providing a stationary series for subsequent modeling and analysis. Through this difference processing, the non-stationary time series can be effectively converted into a stationary series, providing a more stable basis for subsequent analysis and modeling. The key to this method is to dynamically adjust the number of difference operations according to the attenuation coefficient to meet the requirements of stationarity.

[0029] Furthermore, the order p of the ARIMA model is calculated based on the obtained autocorrelation coefficient, including: calculating the stable voltage time series The autocorrelation coefficient ; Autocorrelation coefficient of steady voltage time series Perform unit root test and obtain the significance level ; Traverse all autocorrelation coefficients ,if Greater than or equal to , then the corresponding autocorrelation coefficient Labeled as candidate values ​​of AR model order p ; For each candidate value , respectively construct Model; Calculate each The AICc value of the model, select the one with the smallest AICc value Model corresponding to The value is used as the order p of the ARIMA model, which reflects the linear relationship between the time series data and the corresponding past observations;

[0030] Among them, the calculation of the steady voltage time series The autocorrelation coefficients of each order .right Perform unit root test and obtain the significance level . Traverse all ,like , then it is recorded as the AR order candidate For each Build Model. Calculate each The AIC value of the model. Select the model with the smallest AIC value, and its corresponding The value is the AR order p of the ARIMA model. p reflects the order of the relationship between the time series and the past itself. Construct different orders respectively of Model. For each The model is selected and its AICc value is calculated. AICc takes into account the model error and complexity. Among all the models, the model with the smallest AICc is selected. The corresponding The value is used as the final AR order p of the ARIMA model. p reflects the linear correlation between the time series and past observations. The larger the p value, the more historical data the model considers. The AIC criterion achieves the goal of selecting the optimal model among multiple alternative AR models.

[0031] Specifically, the unit root test is a statistical method to determine the stationarity of a time series. Its assumption is that the time series has a unit root, that is, the time series is non-stationary. In this scheme, the autocorrelation coefficient Perform a unit root test. The null hypothesis of the test is There is a unit root, that is If the null hypothesis is rejected, it means The unit root test was passed, that is, Significant. The significance level . Greater than or equal to It can be used as a candidate value for the AR model order p. The unit root test determines the significance of the autocorrelation coefficient. It helps determine the autoregressive order p of the ARIMA model.

[0032] Furthermore, the order q of the ARIMA model is calculated based on the obtained partial correlation coefficient, including: obtaining the stable voltage time series ; Calculate the steady voltage time series The partial correlation coefficient , is the lag order, ranging from 1 to ; The calculated partial correlation coefficient Perform ADF unit root test and get the corresponding significance level ; Traverse all partial correlation coefficients , the partial correlation coefficient Greater than or equal to the corresponding significance level In the case of k, as a candidate MA order ; For each candidate , build Model; Calculate each The AICc value of the model, select the one with the smallest AICc value Model corresponding to The value is used as the order q of the ARIMA model, which reflects the linear relationship between the time series data and the corresponding past random disturbance terms;

[0033] Among them, the voltage time series after stabilization is obtained . Calculate time series At each lag order The partial correlation coefficient under . Lag order The value range is 1 to , It is generally about 20% of the length of the time series. The partial correlation coefficient reflects the pure The calculation formula is: ;in represents the deviation product of the relevant terms, It represents the squared deviation of the stationary series. By traversing different k, the partial correlation characteristics of the time series at each lag order can be obtained. The partial correlation coefficient reflects the short-term correlation structure of the time series. It can be used to determine the order q of the moving average MA part of the ARIMA model.

[0034] Among them, the partial correlation coefficient of the steady voltage time series at each lag order k is calculated For each Perform ADF unit root test and get the corresponding significance level The ADF unit root test determines The significance of . Iterate through all ,turn up Greater than or equal to the corresponding The lag order is , as a candidate value for the MA model order q . Reflects the correlation of short-term random disturbances in the time series. Generate different Model. Calculate each The AIC value of the model. Select the model with the smallest AIC.

[0035] Among them, according to the partial correlation coefficient analysis, the candidate value of MA order is obtained For each , build Model. The model reflects the time series and the past For each The AICc value of the model is calculated. AICc takes into account the error and complexity of the model. Among the models, select the model with the smallest AICc. The corresponding model The value is used as the final MA order q of the ARIMA model. q reflects the linear correlation between the time series and past random disturbances. The larger the q value, the more past disturbance terms are considered. The AICc criterion realizes the selection of the optimal model among multiple MA models.

[0036] Furthermore, the significance level is calculated by the following steps: :Calculated partial correlation coefficient The sequence is processed by difference to obtain the difference sequence ; Calculate the difference sequence through the ADF test algorithm The ADF statistic ; Through the Bootstrap method, according to the difference sequence Generate random samples and construct distribution; at a given significance level Next, according to the constructed Distribution Calculation Statistics The critical value ; Iterate through different significance levels , repeat the above steps to get the corresponding critical value ; Comparative statistics and the corresponding critical value ; Select statistics The first time it is less than the corresponding critical value When the critical value The corresponding significance level α is used as the significance level of the ADF test ;

[0037] Among them, the partial correlation coefficient of the time series at each lag order k is calculated .right The sequence is processed by difference to obtain the difference sequence . Differential processing can remove The non-stationary components in . For each differenced partial correlation coefficient , perform ADF unit root test. ADF test calculates The corresponding ADF statistic . Reflects the difference after removal The unit root property of . If If it is greater than the threshold, it means Passed the ADF test and is a stationary series. Corresponding , as a candidate value for the MA model order q. The difference and ADF tests are combined to determine To check the stability of , we need to select an appropriate q. Specifically, we establish a regression model for the ADF test:

[0038] ;in, express The first-order difference of , t is the time trend term, is the regression coefficient, is the residual term. The least squares estimation is used to estimate the parameters of the above regression model, and we get Estimator of . Construct the hypothesis: ,Right now There is a unit root and the difference series is non-stationary.

[0039] , ,Right now There is no unit root and the difference series is stationary. Calculate the ADF statistic: ,in, yes The standard error of the estimate. At a given significance level Next, confirm The critical value .if , then reject the null hypothesis , indicating that Rejection at the level There is a unit root, that is, the difference series is stationary.

[0040] Among them, the obtained partial correlation coefficient difference sequence , use the Bootstrap sampling method to randomly generate a large number of samples. Calculate the ADF statistic for each sample and obtain a Bootstrap sample Repeat the above steps several times until a sufficient value is obtained. The values ​​constitute its sampling distribution. The distribution is sorted and the significance level is determined The critical value below For example, at a 90% confidence level, The 95th percentile of the corresponding distribution Finally, the actual observed and Compare and determine whether the null hypothesis is rejected. The Bootstrap method constructs distribution, avoiding the distribution form of hypothesis testing.

[0041] Specifically, Bootstrap is a computational method that uses repeated random sampling and replacement to estimate the sampling distribution of a statistic. In this application, it is used to estimate the ADF statistic. The distribution of . From the obtained partial correlation coefficient difference sequence In the random sample calculation Repeat multiple times to form Bootstrap sampling distribution of . Parametric assumptions of distribution form. Simulated directly from the sample The distribution characteristics of Next, determine from the Bootstrap distribution The critical value .

[0042] Among them, traversing to set different significance levels , such as 0.01, 0.05, 0.1, etc. For each , built using the Bootstrap method The critical value The actual observed With each Compare. Record First time less than corresponding The corresponding significance level is , was selected as the final significance level of the ADF test . Traverse different Can be found Select the appropriate critical area. The stability judgment can be performed correctly. It reflects the minimum significance level for the difference sequence to pass the ADF test.

[0043] Furthermore, the hyperparameter optimization of the battery health state prediction model is performed based on the Bayesian algorithm, including the following steps: setting the value range of each hyperparameter, the hyperparameter includes the number of layers and the number of nodes of the battery health state prediction model; based on the set value range of the hyperparameter, obtaining the candidate combination of the hyperparameter through the sampling algorithm as the hyperparameter search space; inputting the candidate combination, training the battery health state prediction model, and outputting the prediction accuracy of the candidate combination on the validation set as the training set of the battery health state prediction model; using the Gaussian process regression method, calculating the regression function between the candidate combination and the prediction accuracy of the candidate combination on the validation set; using the regression function as the prior distribution in the Gaussian process, traversing the hyperparameter search space, and obtaining the regression function with the highest accuracy as the objective function; inputting the objective function, iteratively solving it through the Bayesian algorithm, and outputting the corresponding hyperparameter combination with the highest prediction accuracy as the optimal hyperparameter combination; setting the battery health state prediction model according to the obtained optimal hyperparameter combination.

[0044] Among them, a value range is set for the hyperparameters of the battery health state prediction model, such as the number of layers and the number of nodes. This can be a discrete or continuous range, for example, the number of layers can be an integer and the number of nodes can be a positive integer. Based on the set hyperparameter value range, a sampling algorithm (such as Gaussian process, random search, Bayesian optimization, etc.) is used to obtain candidate combinations from the hyperparameter search space. These candidate combinations will be used to train and evaluate the model. The candidate combinations are input and the battery health state prediction model is trained for each combination. The prediction accuracy of each candidate combination is evaluated using the validation set. This can be done by calculating the performance indicators of the model on the validation set (such as accuracy, precision, recall, etc.). For each candidate combination, its prediction accuracy on the validation set is recorded. This will form a mapping between hyperparameters and performance indicators. Based on the above recorded mapping of hyperparameters and performance indicators, a Bayesian optimization algorithm (such as Gaussian process optimization) is used to infer the hyperparameter combination with the best performance. The Bayesian algorithm selects the next hyperparameter combination to be evaluated by continuously updating the probability distribution of the hyperparameters to search for the best hyperparameters more efficiently. The optimal hyperparameter combination inferred by the Bayesian algorithm is used to retrain the battery health status prediction model. Through this Bayesian optimization, the hyperparameter space can be searched more effectively to find the best hyperparameter combination, thereby improving the performance of the battery health status prediction model. This method helps to avoid the blindness of random search, improve model performance and reduce the waste of computing resources.

[0045] Among them, for the candidate combination and its prediction accuracy on the validation set, the Gaussian process regression method is used to calculate the regression function between them. Gaussian process regression is a probability-based regression method that can estimate the uncertainty between variables. The calculated regression function is used as the prior distribution of the Gaussian process. In this way, we have a probability distribution between hyperparameters and prediction accuracy. Under the prior distribution of the Gaussian process, the hyperparameter search space is traversed to obtain the regression function that maximizes the prediction accuracy. This can be achieved through sampling algorithms and continuous optimization of the objective function. The regression function with the maximum prediction accuracy is used as the objective function and iteratively solved through the Bayesian algorithm. This includes steps such as selecting the next hyperparameter combination to be evaluated in the search space and updating the distribution of the objective function. Through the iterative process of the Bayesian algorithm, the combination of corresponding hyperparameters with the maximum prediction accuracy is output. This combination is the optimal hyperparameter combination. Use the obtained optimal hyperparameter combination to set the battery health status prediction model. This may include specific values ​​of hyperparameters such as the number of layers and nodes of the neural network. Through this Gaussian process regression and Bayesian algorithm, the hyperparameter space can be searched more intelligently to find the hyperparameter combination with the maximum prediction accuracy on the validation set. This method takes uncertainty into account and can converge to the optimal solution more efficiently.

[0046] Specifically, hyperparameters are the model structure and learning parameters that are pre-set in building a machine learning model. Hyperparameters are not obtained through model training and learning, but are manually specified. In this scheme, hyperparameters specifically refer to the number of layers and the number of nodes per layer of the neural network model. This determines the network scale and structure of the neural network. It is necessary to pre-specify the value range of the hyperparameters, such as the range of the number of layers and the range of the number of nodes per layer. Then, by traversing and searching different values, find the optimal hyperparameter combination. Hyperparameters directly affect the performance upper limit of the model. A method for determining the network structure is provided for building a neural network for predicting the health status of batteries. Through hyperparameter optimization, a relatively ideal neural network model is obtained.

[0047] Specifically, all battery health status data are divided into training set, validation set and test set in chronological order. The validation set starts from the end point of the training set in order, preferably accounting for 20% of the total sample. The validation set covers different battery brands and environmental conditions to ensure representativeness. Check the consistency of the validation set in terms of battery type, data distribution, etc. It is also possible to consider dividing the validation set from the training set by 5-fold or 10-fold cross-validation. Take a different validation set for each training and average the results at the end.

[0048] Specifically, training data is constructed: the independent variable is the hyperparameter combination, and the target variable is its prediction accuracy on the validation set. It is assumed that the hyperparameter combination and the prediction accuracy conform to the Gaussian process, that is, any sampling point obeys the joint Gaussian distribution. The prior mean function and kernel function of the Gaussian process are set to represent the assumed regression trend. The kernel function between the hyperparameter combinations is calculated to obtain the kernel matrix K. The training data is substituted into the prior mean and the kernel matrix, and the parameters of the posterior distribution are obtained by Bayesian estimation. According to the parameters of the posterior distribution, the posterior mean function of the Gaussian process regression is obtained as the regression function between the hyperparameter combination and the prediction accuracy. The regression function represents the predicted response value at any point in the hyperparameter space. A regression model that guides the search is provided for hyperparameter optimization. The performance trend model in the hyperparameter space is established through the regression function obtained by Gaussian process regression.

[0049] Specifically, a Gaussian process regression function between the hyperparameter combination and the validation set accuracy has been constructed as a prior distribution. The predefined search space of the hyperparameters is traversed by sampling or grid search. Each candidate hyperparameter combination is substituted into the prior regression distribution function to calculate its predicted validation set accuracy. The prediction accuracy of all candidate combinations is compared to find the maximum value max_acc. The hyperparameter combination x_best that makes the prediction accuracy equal to max_acc is determined. The prediction accuracy expression corresponding to the independent variable x_best in the prior regression function is used as the objective function. The objective function reflects the maximum validation set accuracy that can be achieved by the optimal hyperparameter combination in the current search space. The objective function expression is fixed, and the prior regression process is adjusted to improve the target accuracy max_acc as the optimization target, and the next round of iterative optimization is performed. The above process is repeated, and the objective function is updated each time to gradually improve the upper limit of the model prediction performance. When the optimization converges, the final objective function obtained is the condition for maximizing the validation set prediction accuracy.

[0050] Specifically, the determined objective function is input, which represents the validation set prediction accuracy that is expected to be maximized. The Bayesian optimization algorithm is initialized to define the prior distribution of the variables in the hyperparameter search space. Sample candidate hyperparameter combinations in the search space. Substitute the candidate combinations into the objective function to calculate the prediction accuracy. Update the posterior distribution of the hyperparameter variables according to the accuracy. Sample a new round of candidate combinations based on the updated posterior distribution. Repeat the iterative sampling, evaluation, and updating process. Each iteration adjusts the sampling distribution in the direction that maximizes the output of the objective function. After traversing the hyperparameter space, the combination at the peak of the output distribution is taken as the optimal solution. The final output hyperparameter combination maximizes the objective function, that is, the validation set accuracy. This set of hyperparameters is determined as the optimal hyperparameters for the battery health status prediction model.

[0051] Specifically, based on the hyperparameter optimization results, obtain the hyperparameter combination with the best prediction performance, including the number of model layers and the number of nodes per layer. Build an empty neural network model structure based on the number of layers and nodes. Determine the activation function used for each layer, generally ReLU or its variant. Set parameters related to model training, such as loss function, optimizer, learning rate, etc. Connect the model input layer and the first fully connected layer to form the input terminal. Stack hidden layers in sequence according to the number of layers and nodes. Connect the last hidden layer and the output layer to form the output terminal. Compile the model, load the training data, and train the model. Verify on the validation set, and terminate the training early when the error no longer decreases.

[0052] Furthermore, a hyperparameter search space is generated, including the following steps: according to the battery type and the neural network structure of the battery health status prediction model, the upper and lower limits of the number of layers and nodes of the battery health status prediction model are set; the upper and lower limits of the set number of layers and nodes are divided into multiple discrete intervals of equal length at equal intervals; in each discrete interval, a uniformly distributed probability density function is used for random sampling to obtain multiple candidate values; the candidate values ​​obtained in all discrete intervals constitute a combined discrete distribution of the number of layers and the number of nodes; according to the probability density function of the combined discrete distribution, the discrete values ​​of the number of layers and the number of nodes are obtained by integral sampling; within the upper and lower limits of the set number of layers and the number of nodes, multiple random values ​​of the number of layers and the number of nodes are generated according to the normal distribution probability density function; through the Cartesian product algorithm, the discrete values ​​and the random values ​​are combined to generate each hyperparameter candidate value combination consisting of the number of layers and the number of nodes as the hyperparameter search space.

[0053] Among them, according to the battery type and the needs of the specific problem, the neural network structure of the battery health state prediction model, including the number of layers and the number of nodes, is set. This can be based on domain knowledge, previous experience or experimental results. The upper and lower limits of the set number of layers and nodes are equally spaced into multiple discrete intervals. This helps to search the hyperparameter space more accurately. For each discrete interval, a uniformly distributed probability density function is used for random sampling to obtain multiple candidate values. Uniform distribution means that the possible values ​​in each interval have equal probability. For each discrete interval, multiple candidate combinations of the number of layers and the number of nodes are obtained by uniformly distributed random sampling. This ensures that the entire search space is covered, including different possible model structures. In general, the present application realizes a random search for the hyperparameters of the neural network structure by setting the upper and lower limit ranges, dividing the discrete intervals at equal intervals, and randomly sampling in each interval by a uniformly distributed probability density function. Such a method helps to explore uniformly in the search space to find the best possible combination.

[0054] Among them, the candidate values ​​obtained in all discrete intervals constitute a combined discrete distribution of the number of layers and the number of nodes. The probability of each combination is determined by the frequency of its occurrence in the sampling. Using the probability density function of the combined discrete distribution, the discrete values ​​of the number of layers and the number of nodes are obtained by integral sampling. This can ensure effective random sampling according to the probability distribution generated by the sampling frequency. Within the upper and lower limits of the set number of layers and the number of nodes, multiple random values ​​of the number of layers and the number of nodes are generated according to the normal distribution probability density function. The mean and standard deviation of the normal distribution can be set according to practical problems and prior knowledge. The discrete values ​​obtained by integral sampling and the random values ​​generated by the normal distribution are subjected to a Cartesian product operation to generate each hyperparameter candidate value combination consisting of the number of layers and the number of nodes. The generated hyperparameter candidate value combinations constitute the hyperparameter search space. This space contains combinations of different numbers of layers and nodes, while taking into account the diversity of discrete values ​​and random values. Through this application, the hyperparameter space can be explored more comprehensively, covering values ​​from discrete intervals and random values ​​generated according to normal distribution. This helps to fully account for diversity during the search process and improves the probability of finding the best hyperparameter combination.

[0055] Specifically, according to the complexity of the battery health status prediction problem, the reasonable range of the number of layers is estimated. In this application, the number of layers is set to a range of 3 to 6 layers; according to the input feature dimension, the range of the number of nodes in each hidden layer is set, which is generally 2-10 times the input dimension. It can be carried out in stages, first with a large-scale coarse-grained search, and then a narrowed search based on the results. Adjust the dependencies between the range settings of different hyperparameters, such as reducing the number of nodes when the number of layers increases. Preferably, an adaptive optimization algorithm is used to allow the search process to automatically adjust the range.

[0056] Specifically, the continuous range of the number of layers and nodes has been discretized into multiple integer intervals at equal intervals. In each discrete interval, the number of layers and nodes are assumed to follow a uniform distribution. The random number between is used as the uniformly distributed random sampling value. , the generated random numbers are mapped to the set of integers For the node number interval , the generated random numbers are mapped to the set of integers In each interval, multiple integer candidate values ​​can be sampled. The candidate values ​​in the layer number interval and the node number interval are combined to form a candidate hyperparameter combination. Repeated sampling generates more combinations and traverses the hyperparameter space. Uniform distribution ensures that the probability of each integer value in the interval being sampled is equal. It not only covers the entire interval, but also increases randomness and combination diversity.

[0057] Specifically, the continuous ranges of the number of layers and the number of nodes have been discretized into multiple integer intervals at equal intervals. In each discrete interval, multiple candidate integer values ​​are obtained by random sampling using uniform distribution. The candidate values ​​sampled in all intervals of the number of layers are combined to form a discrete distribution of the number of layers. Similarly, the candidate values ​​in each interval of the number of nodes are combined to form a discrete distribution of the number of nodes. The number of times each candidate value is sampled can be counted as the probability weight of the value. It can also be assumed that the probability of each discrete value in the interval is the same. During the training iteration process, a value is randomly sampled from the distribution of the number of layers and the distribution of the number of nodes each time. A hyperparameter pair is combined as the number of layers and the number of nodes of the model. By sampling from the constructed discrete distribution, the combination space of hyperparameters can be searched. A candidate combination set covering the range of hyperparameters and with rich combinations is obtained.

[0058] Specifically, the combined discrete distribution of the number of layers l and the number of nodes n has been constructed, and its probability mass function is defined as . Generate 2 Uniformly distributed random numbers in the interval , As a random starting value for the integral sampling required. Calculate the integral , the range of l and n is the domain of their respective distributions. , find the corresponding minimum discrete point ,satisfy . Then the point That is, a set of values ​​of the number of layers and nodes obtained by sampling according to the distribution P. Repeatedly generate random numbers and integrate sampling to obtain more discrete points. Finally, multiple sets of layer numbers and node arrays are obtained as hyperparameter selections. Integral sampling ensures that according to Correctness of sampling results. Effective use of the constructed hyperparameter discrete distribution for comprehensive and systematic sampling and searching.

[0059] Specifically, the discrete candidate value set LD and the random candidate value set LN of the number of layers have been obtained. The discrete candidate value set ND and the random candidate value set NN of the number of nodes have been obtained. The combined value set of the number of layers is generated using the Cartesian product: . Similarly, generate a set of combined values ​​for the number of nodes: . Traverse each element l in the layer number combination value set LC. Traverse each element n in the node number combination value set NC. Combine each pair of l and n to generate a hyperparameter combination . All possible combinations Aggregation forms a hyperparameter search space. It includes a combination of discrete and random values ​​of the number of layers and nodes. It expands the scope and diversity of hyperparameter selection. The Cartesian product ensures a comprehensive and systematic traversal of the combination possibilities. Finally, a hyperparameter candidate search space with extensive coverage is formed.

[0060] Furthermore, a regression function with the highest accuracy is obtained as the objective function, including the following steps: taking the regression function as the prior distribution in the Gaussian process; generating multiple sampling points in the hyperparameter search space through a sampling algorithm; calculating the posterior probability of each sampling point according to the prior distribution as the prediction accuracy of the corresponding sampling point; selecting the point with the largest posterior probability as the hyperparameter, iteratively executing the above steps, and traversing the hyperparameter search space; after the iteration, selecting the regression function corresponding to the point with the largest posterior probability as the objective function.

[0061] Among them, the calculated regression function is used as the prior distribution of Gaussian process regression. This prior distribution contains the relationship between hyperparameters and prediction accuracy. A sampling algorithm is used to generate multiple sampling points in the hyperparameter search space. This can be an algorithm such as random sampling, Bayesian optimization, etc., in order to obtain different hyperparameter combinations in the search space. For each sampling point, its posterior probability is calculated according to the prior distribution as the prediction accuracy of the corresponding sampling point. The posterior probability reflects the prediction accuracy of a given hyperparameter combination. From the multiple generated sampling points, the point with the maximum posterior probability is selected as the current hyperparameter. This represents the hyperparameter combination with the maximum prediction accuracy in the current iteration. By iteratively executing the above steps, the prior distribution is continuously updated, the posterior probability is calculated, and the hyperparameter with the maximum posterior probability is selected. This process will traverse the hyperparameter search space and gradually find the regression function with the highest accuracy. When the iteration is completed, the regression function corresponding to the point with the maximum posterior probability is selected as the final objective function. This regression function should have the best prediction performance in the search space. Through this application, a regression function with the maximum prediction accuracy can be found as the objective function in the hyperparameter search space through Gaussian process regression and sampling algorithms. Such a method fully considers uncertainty and selects the most promising hyperparameters through iteration to improve search efficiency and accuracy.

[0062] Compared with the prior art, the advantages of this application are:

[0063] This technical solution uses the ARIMA time series analysis method to model voltage data. In the modeling process, the ARIMA model is used to fit the voltage time series data to calculate the characteristic parameters of the voltage data, such as the autocorrelation coefficient and partial correlation coefficient. Based on these characteristic parameters, the hyperparameters of the ARIMA model, such as p, q, and d, are determined to construct the best Model; trained and optimized The model can fully obtain the time series information of battery voltage and depict the dynamic curve of voltage changing over time. Compared with the traditional method of judging the battery status based on static single-point voltage data, the ARIMA model can capture the tiny characteristic fluctuations in the voltage curve by dynamically depicting the evolution of voltage over the entire time period. Even if the voltage data remains at a normal level, the time series model can detect the signs of battery performance degradation in advance by analyzing subtle changes in the dynamic curve, thereby realizing early warning and evaluation of changes in battery health status. This improves the accuracy of monitoring and judging the operating status of energy storage batteries in railway machine rooms.

[0064] By defining the range of values ​​for hyperparameters, such as the number of layers, nodes, and learning rates, the boundaries of model exploration can be determined. This range is based on an understanding of the battery type and model structure, ensuring that the search space is both representative and covers high-performance configurations. Bayesian optimization uses a probabilistic model to model the objective function, where the objective function is a model performance indicator, such as prediction accuracy. As an efficient global optimization algorithm, Bayesian optimization guides the search by considering the results of previous evaluations. This iterative process reduces the number of searches and increases the probability of finding an optimal hyperparameter combination. Gaussian process regression can quantify uncertainty and effectively explore and exploit the parameter space. In the process of hyperparameter optimization, the Bayesian algorithm considers both the performance of the model under known parameters (exploitation) and the potential improvements brought by unknown parameters (exploration). This balance enables the algorithm to effectively find the best hyperparameter settings in high-dimensional space. Through the Bayesian optimization algorithm, the model can automatically adapt to different data sets and scenarios because it adjusts the search strategy based on model performance feedback. This means that for a specific battery health status prediction problem, the model can find a more suitable hyperparameter configuration, thereby improving the accuracy and reliability of the prediction.

[0065] The battery health state prediction model focuses on the long-term decay trend of the battery, while the voltage time series model focuses on capturing short-term voltage fluctuations. Combining the two can take into account both long-term and short-term factors affecting battery performance. The battery health state prediction model may use macro features such as battery cycle life and charge and discharge characteristics, while the voltage time series model utilizes fine-grained time series data. The complementarity of these models in feature representation can improve the ability to capture subtle changes in battery status. This application integrates the battery health state prediction model with the voltage time series model. By combining the analysis of long-term decay trends and short-term voltage fluctuations, this integrated approach enhances the model's sensitivity to battery health status, enabling it to more accurately predict the battery's future performance and life. In addition, the scheme improves the generalization ability of the model by optimizing the model structure and parameters, making it more suitable for batteries of different types and usage conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:

[0067] Figure 1 It is a schematic diagram of a management method of a railway machine room energy storage battery according to some embodiments of this specification;

[0068] Figure 2 is a schematic diagram of establishing a voltage timing sequence model according to some embodiments of this specification;

[0069] Figure 3 It is a schematic diagram of establishing a search space according to some embodiments of this specification. DETAILED DESCRIPTION

[0070] The method and system provided in the embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0071] This application involves collecting parameters such as battery voltage, current and state SOC, preprocessing them, and constructing a battery health state feature vector. Then, by training a multi-layer perceptron neural network and an ARIMA time series analysis method, a battery health state prediction model and a voltage time series model are obtained respectively. Next, the Bayesian algorithm is used to optimize the hyperparameters of the prediction model, and the optimized prediction model is integrated with the voltage time series model to form the final battery management model. This model can be used to monitor and predict the status of energy storage batteries in railway machine rooms.

[0072] Example 1

[0073] Collect the real-time operating data of #1 battery in the railway machine room, including voltage, current and SOC. Perform preprocessing such as denoising and normalization on the collected data to obtain cleaned data. Use the preprocessed data to construct a battery state feature vector containing voltage, current and SOC Collect the voltage time series data of battery No. 1 for the past year .right Performing a Stationarity Test: Calculating Time Series Data The average ; Calculate the autocorrelation coefficient of order 1-20 , k = 1 to 20; take M = 250 to calculate , take N=150 to calculate the average autocorrelation coefficient ; Calculate the attenuation coefficient ; , then the series is not stationary. Perform differential processing: obtain adjacent data , calculate the difference sequence ; Repeat the difference until , and obtain a stationary series .right Calculate its autocorrelation coefficient , perform unit root test and obtain the AR model order p.

[0074] For the obtained steady voltage time series Calculate partial correlation coefficients of order 1 to 20 .right Perform ADF unit root test: Perform the difference and get the difference sequence ;calculate The ADF statistic ; Through the Bootstrap method, according to Build The distribution of; at the significance level α = 0.01, 0.05, 0.1, calculate The critical value ;Compare and , when α=0.05, First time less than .Pick As the significance level of the ADF test. , take the significant k=7, 11, 13 as the candidate order of MA model . MA (7), MA (11), and MA (13) models were constructed respectively. The AICc values ​​of each model were calculated, and MA (11) had the smallest AICc. q = 11 was taken as the MA order of the ARIMA model.

[0075] Construct a neural network battery health status prediction model with 3 fully connected layers. Set the hyperparameter search space: Set the number of layers to search within , the node number search range is The total length of the calculated layer range is 8-3=5. Divide the layer range into 5 integer intervals of equal length: The total length of the node number range is 256-32=224. Divide the node number range into 10 integer intervals of the same length: . Treat each integer interval of the number of layers and nodes as an optional hyperparameter value. Traverse and combine each interval of the number of layers and each interval of the number of nodes to form a candidate hyperparameter combination. For example, the combination Layer and The number of nodes indicates 3 or 4 layers and 64 or 96 nodes. By discretizing at equal intervals, the entire continuous search space of the number of layers and nodes is covered. Converting the continuous space into a limited discrete combination facilitates the systematic search of hyperparameters.

[0076] The hyperparameter values ​​are randomly generated according to the normal distribution within the range of the number of layers and the number of nodes. The search range of the number of layers is set to [3, 8], and the search range of the number of nodes is set to Assume that the number of layers l is subject to is the mean, Assume that the number of nodes n follows the normal distribution with standard deviation is the mean, is a normal distribution with a standard deviation of A random number z from a standard normal distribution. Convert z to a random number under the target normal distribution: , similarly, generate the number of nodes: , repeatedly generate z, calculate l and n, and obtain multiple candidate hyperparameter values. Set the mean and standard deviation as adjustable parameters to control the shape of the sampling distribution. When sampling, limit the results to values ​​within the definition domain. Combine the candidate number of layers and nodes to form multiple hyperparameter combinations. Normal distribution sampling increases the randomness of hyperparameter selection. By controlling the distribution parameters, the search direction can be guided.

[0077] Sample candidate values ​​in each interval to form a discrete distribution of the number of layers and nodes. Sample the values ​​of the number of layers and nodes based on the normal distribution in the entire range. Through the Cartesian product, the candidate combination of hyperparameters is obtained. The range of layers [3, 8] is equally divided into 5 intervals: ; Sample the candidate layers in each interval: 3, 4, 5, 6, 7, 8; Node number range Divide into 10 intervals equally, and sample to obtain the number of candidate nodes in the same way; the number of layers is discretely distributed: ; Discrete distribution of the number of nodes: ;Number of layers normal distribution: mean=5, std=1 sampling , ; Normal distribution of node number: mean=128, std=32 samples , ; Discrete layer candidate set LD = {3, 4, 5, 6, 7, 8}; Random layer candidate set ; Cartesian product generates a set of layer combinations ; Similarly, generate a node number combination set NC; traverse the Cartesian product of LC and NC to obtain the final candidate hyperparameter combination.

[0078] Randomly select 100 combinations from the constructed candidate hyperparameter combinations ; Train the model for each combination and get its accuracy on the validation set ; Take 100 combinations and their corresponding accuracy as observation data, assuming that the relationship between the combination and the accuracy conforms to the Gaussian process , fit the Gaussian process regression model and obtain the mean function of the posterior distribution , For combination The regression function between and accuracy is As a prior distribution, sample hyperparameter combinations ,calculate , compare different The size of the largest The corresponding combination is ,fixed As the objective function, Bayesian optimization is performed iteratively to obtain The optimal combination of maximization ,according to Combine and set up the model to complete hyperparameter optimization.

[0079] The result of hyperparameter optimization is that the number of layers is l=5 and the number of nodes is n=128. Based on the number of layers 5, a model structure including an input layer, an output layer, and 3 fully connected hidden layers is constructed. The first layer is the input layer, and the number of input nodes is set to the dimension m of the input features. Each fully connected hidden layer is set to 128 nodes to match the number of nodes n obtained by optimization. The last layer is the output layer, and the number of nodes is set to the number of classification categories c. The model structure is: input layer (m nodes), hidden layer 1 (128 nodes), hidden layer 2 (128 nodes), hidden layer 3 (128 nodes), output layer (c nodes); set the activation function to ReLU, and the common DEFAULT uniform initialization parameters. Set cross entropy as the loss function and Adam Optimizer as the optimizer. Load the data, compile the model, and train it with a small learning rate for the number of training rounds. Monitor the performance on the validation set and get the best model. Evaluate the model on the test set and output indicators such as precision, recall, F1 score, etc.

[0080] Example 2

[0081] Figure 1It is a schematic diagram of a management method for a railway machine room energy storage battery shown in some embodiments of the present specification, a management method for a railway machine room energy storage battery, comprising: collecting the voltage, current and state SOC of the battery as battery state parameters; preprocessing the collected battery state parameters; constructing a battery health state feature vector including voltage, current and state SOC according to the preprocessed battery state parameters; obtaining a battery health state prediction model by training a multi-layer perceptron neural network according to the constructed battery health state feature vector; using an ARIMA time series analysis method to model the voltage time series data of the collected voltage parameters to obtain a voltage time series model; performing hyperparameter optimization on the battery health state prediction model based on a Bayesian algorithm; integrating the battery health state prediction model and the voltage time series model after hyperparameter optimization to obtain a final battery management model; and using the obtained battery management model to monitor and predict the railway machine room energy storage battery.

[0082] Install voltage, current and temperature sensors in the battery pack to ensure that they can monitor the key performance parameters of the battery in real time. Connect the sensors to a data acquisition unit such as a PLC (Programmable Logic Controller) or a dedicated data logger. Set a suitable sampling frequency according to the operating characteristics and monitoring requirements of the battery to ensure the real-time and accuracy of the data. Use appropriate filtering techniques, such as low-pass filters, to remove high-frequency noise and retain effective signals for battery performance monitoring. Clean the collected data to remove obvious outliers, which may be caused by sensor failure, data transmission errors, etc. If multiple sensors are used, the data of different sensors need to be synchronized to ensure that the readings of voltage, current and temperature are aligned on the time axis. Use verification algorithms, such as redundancy checks, to confirm the integrity and correctness of the data to ensure the accuracy of subsequent analysis. Establish a data cache locally to prevent packet loss during data transmission. Transmit the data to a central server through the network for further processing and analysis. On the server side, store the data in a database for easy management and retrieval, providing a basis for data analysis and historical backtracking. Perform time series analysis on data such as voltage, current and temperature to monitor the performance of the battery under different working conditions.

[0083] Figure 2It is a schematic diagram of establishing a voltage time series model according to some embodiments of this specification, and the pre-processed voltage data is arranged in chronological order, and each time point has a voltage value to form a voltage time series. ADF (Augmented Dickey-Fuller) test is selected as a method for stationarity detection. In statistical software or programming environment (such as R, Python, etc.), the ADF test function is called. The sorted voltage time series data is input into the ADF test function. Select the test type (such as including constant terms, trend terms, or neither). Determine the lag length, which can be automatically determined by information criteria (such as AIC or BIC), or manually set according to the sample size and time series properties. Analyze the output results of the ADF test, paying special attention to the value of the test statistic and the corresponding p-value. If the p-value is less than the significance level (usually set to 0.05 or 0.01), the null hypothesis is rejected and the time series is considered to be stationary. If the p-value is greater than the significance level, the null hypothesis cannot be rejected and the time series is considered to be non-stationary. If the ADF test result shows that the time series is non-stationary, the time series needs to be differentiated: perform first-order differentiation on the time series, that is, calculate the difference between two consecutive time points. Update the time series data to the result after differentiation. Perform the ADF test again on the differentiated time series. Confirm whether the time series has become stable. If so, you can continue with the subsequent analysis; if not, further differentiation may be required. If the series is still non-stationary after the first-order differentiation, you can try second-order differentiation or even higher-order differentiation. Perform an ADF test after each differentiation until the test results show that the time series is stable. Once the time series reaches stability through differentiation, it can be used to establish and train statistical models such as ARIMA, and to predict future voltage and evaluate battery health status.

[0084] Figure 3 is a schematic diagram of establishing a search space according to some embodiments of this specification, setting a decay coefficient threshold , which is a predefined criterion used to determine whether the time series is sufficiently stable. Perform the first-order difference on the voltage time series: ,in, is the voltage value at time t, is the differenced sequence. Calculate the decay coefficient after the first-order difference . Use the first-order difference sequence to perform an ADF test to determine whether the time series is stationary. If it is not stationary, calculate the attenuation coefficient , select the appropriate calculation method according to the actual situation, such as the decay rate of the autocorrelation function. , then the time series is considered to be sufficiently stable and the difference can be stopped. , then a second-order difference is required: Perform an ADF test on the second-order difference sequence and calculate the new decay coefficient If the time series is still not stationary after differencing, continue to perform higher-order differences: After each difference, an ADF test is performed and a new attenuation coefficient is calculated. This iterative process continues until the attenuation coefficient By this time, the time series should reach a stationary state.

[0085] Use functions in statistical software (such as R, Python, etc.) to calculate the ACF and PACF of the time series. Plot the ACF and PACF graphs to help determine the possible orders of the ARIMA model. On the ACF graph, the autocorrelation coefficient pk is the coefficient at lag k. On the PACF graph, the partial correlation coefficient qk is the coefficient at lag k. Based on the ACF and PACF graphs, a preliminary model identification can be made. If the ACF graph shows exponential decay or sinusoidal decay, and the PACF graph is truncated after a certain order, consider the AR(p) model. If the PACF graph shows exponential decay or sinusoidal decay, and the ACF graph is truncated after a certain order, consider the MA(q) model. If both the ACF and PACF graphs show exponential decay or sinusoidal decay, consider the ARMA(p, q) model. Use a loop or grid search method to fit ARIMA models of different orders (different combinations of p and q). For each model, calculate its AICc value. AICc is a modified version of the Akaike Information Criterion, suitable for small sample data, and is defined as: , where k is the number of model parameters and n is the number of observations. Compare the AICc values ​​of different models and select the model with the smallest AICc value. Make sure that the residuals of the selected model are white noise series (i.e., no autocorrelation).

[0086] For determining the parameters of the ARIMA model, unit root tests are often used to test whether the time series is stationary. If the time series is non-stationary, then the data needs to be differentiated until a stationary time series is obtained. Once the time series is considered to be stationary, we calculate the autocorrelation coefficient (ACF) and partial autocorrelation coefficient (PACF). Examples of unit root tests include Augmented Dickey-Fuller (ADF) test, Phillips-Perron (PP) test, etc. The null hypothesis of these tests is that the time series has a unit root, that is, it is non-stationary. If the test statistic is less than a certain critical value, or the p-value is less than the significance level α, we reject the null hypothesis and believe that the series is stationary. The significance level α is the probability of a type I error that we are willing to accept, that is, incorrectly rejecting a hypothesis that is truly null. Commonly used α values ​​are 0.01, 0.05, and 0.1.

[0087] After determining the model parameters, use historical data to train the ARIMA model. Import the required libraries. Load the historical voltage data. Divide the data into a training set and a test set. Fit the ARIMA model using the training data. Make predictions and compare with the test set. The following is a specific implementation using Python:

[0088] #Introduce necessary libraries

[0089] import pandas as pd

[0090] from statsmodels.tsa.arima.model import ARIMA

[0091] from matplotlib import pyplot as plt

[0092] from sklearn.metrics import mean_squared_error

[0093] # Load voltage time series data

[0094] data = pd.read_csv('path_to_voltage_data.csv')

[0095] voltage_series = data['voltage']

[0096] # Split the data into training and test sets

[0097] #Assume that we keep the last N data points as the test set

[0098] N = 10

[0099] train, test = voltage_series[:-N], voltage_series[-N:]

[0100] #Fitting the ARIMA model

[0101] #Assume that we have determined the parameters p, d, q

[0102] p, d, q = 1, 0, 1 #These parameters should be based on the results of the previous steps

[0103] model = ARIMA(train, order=(p, d, q))

[0104] model_fit = model.fit()

[0105] # Make predictions

[0106] predictions = model_fit.forecast(steps=N)

[0107] #Compare the prediction results with the actual test data

[0108] mse = mean_squared_error(test,predictions)

[0109] print(f'The Mean Squared Error of our forecasts is {mse}')

[0110] #Visualize the predicted results and actual results

[0111] plt.plot(test.index, test, label='Actual')

[0112] plt.plot(test.index, predictions, label='Predicted', color='red')

[0113] plt.legend()

[0114] plt.show()

[0115] Bayesian optimization is an efficient hyperparameter optimization method that uses Bayesian inference to guide the search process. In the context of ARIMA models, hyperparameters usually refer to the (p, d, q) parameters of the model. Bayesian optimization constructs a surrogate model (typically using a Gaussian process) to predict the probability distribution of model performance under given hyperparameters, and selects the next set of hyperparameters by sampling to maximize the expected improvement (EI). For ARIMA models, the search space for p, d, and q is usually a discrete bounded set of integers. The performance indicator can be a function of the prediction error, such as the mean squared error (MSE) or the root mean square error (RMSE).

[0116] First, the objective function objective is defined, which receives the parameters of the ARIMA model, fits the model, and then calculates the MSE on the test set. This function will be called by the fmin function of hyperopt, which applies the Bayesian optimization algorithm to the objective function to find the hyperparameter combination that minimizes the MSE. space defines the search space for the hyperparameters, and the trials object is used to record all the attempts.

[0117] After training and optimizing the ARIMA model, you can use this model to predict the future time series of battery voltage. These predictions can be further used to evaluate the health status of the battery, such as calculating the battery's SOH (State of Health). SOH is the ratio of the current capacity of the battery to its initial capacity, usually expressed as a percentage, and is an important indicator of battery aging and performance degradation. Predict the voltage curve for a certain period of time in the future based on historical voltage data. Build a model to calculate SOH based on voltage (and possible other parameters such as current, temperature, etc.). Input the predicted voltage data into the battery performance model to calculate and monitor SOH.

Claims

1. A management method for energy storage batteries in railway machine rooms, include: Collect the voltage, current and state SOC of the battery as battery state parameters; Preprocessing the collected battery status parameters; According to the preprocessed battery state parameters, a battery health state feature vector including voltage, current and state SOC is constructed; According to the constructed battery health state feature vector, a battery health state prediction model is obtained by training a multi-layer perceptron neural network; The ARIMA time series analysis method is used to model the voltage time series data of the collected voltage parameters to obtain a voltage time series model; Hyperparameter optimization of battery health status prediction model based on Bayesian algorithm; Integrate the hyperparameter-optimized battery health status prediction model and voltage time series model to obtain the final battery management model; The obtained battery management model is used to monitor and predict the energy storage batteries in the railway machine room; Obtain voltage time series models, including: Perform a stationarity test on the collected voltage time series data to determine whether the time series is stationary; If the time series is not stable, perform differential processing on the voltage time series data to obtain stable voltage time series data; Calculate the autocorrelation coefficient and partial correlation coefficient of voltage time series data; Calculate the autocorrelation coefficient based on the obtained The order of the model is p; calculated based on the partial correlation coefficient obtained The order of the model is q; Build Model, where d is the number of differences performed; Using the AIC criterion to compare different orders Model, choose the best Model; The best choice The model performs a white noise test on the residual sequence to determine whether the residual sequence is white noise; If the residual sequence is white noise, then the optimal Model, modeling the voltage time series data to obtain a voltage time series model; Determine whether the time series is stationary, including: Get voltage time series data , is the length of the time series; Calculate voltage time series data The average ; Iterate over different lag orders , The value range is 1 to , is the maximum lag order; the lag order represents the time distance between sample values ​​when calculating the autocorrelation coefficient; The autocorrelation coefficients of each order are calculated according to the following formula : , Calculate the autocorrelation coefficient when the lag order is M , where M is the length of the time series data ; It indicates the ratio of the lag order used to calculate the decay coefficient to the total length of the time series; Calculate the average of the first N autocorrelation coefficients , N is taken as U; U represents the number of the first N autocorrelation coefficients used in calculating the average autocorrelation coefficient; The attenuation coefficient is calculated according to the following formula : , Determine the calculated attenuation coefficient Is it less than or equal to the threshold? , if yes, the time series is considered to be a stationary series, otherwise it is a non-stationary series; The value range of is 0.1 to 0.3; If the time series is not stable, perform differential processing on the voltage time series data to obtain stable voltage time series data, including: when Greater than threshold When obtaining the adjacent serial number data of the voltage time series data ; Get adjacent sequence number data The corresponding sampling time and ; The difference time series is calculated according to the following formula ; , in, represents the sampling time interval, Indicates the voltage change per unit time; Repeat the above steps until the difference time series is obtained The attenuation coefficient Less than or equal to threshold ; Count the number of times d the differential operation is performed; The final stationary difference series is used as the stationary voltage time series .

2. The management method of the railway machine room energy storage battery according to claim 1, Features: Calculate the autocorrelation coefficient based on the obtained The order of the model, p, includes: Calculate the steady voltage time series The autocorrelation coefficient ; Autocorrelation coefficient of stationary voltage time series Perform a unit root test and obtain the first significance level ; Traverse all autocorrelation coefficients ,if Greater than or equal to the first significance level , then the corresponding autocorrelation coefficient Labeled as candidate values ​​of AR model order p ; Among them, AR model represents autoregressive model; For each candidate value , respectively construct Model; among them, The model representation order is The autoregressive model when Calculate each The AICc value of the model, select the one with the smallest AICc value Model corresponding to The value is used as the order p of the ARIMA model, which reflects the linear relationship between the time series data and the corresponding past observations.

3. The management method of the railway machine room energy storage battery according to claim 1, Features: Calculate the partial correlation coefficient based on the obtained The order q of the model includes: Get a steady voltage time series ; Calculate the steady voltage time series The partial correlation coefficient , is the lag order, ranging from 1 to ; The calculated partial correlation coefficient Perform ADF unit root test and obtain the corresponding second significance level ; Traverse all partial correlation coefficients , the partial correlation coefficient Greater than or equal to the corresponding second significance level In the case of k, the order of the candidate MA model is ; Among them, MA model represents moving average model; For each candidate , build Model; among them, The model representation order is Moving average model when Calculate each The AICc value of the model, select the one with the smallest AICc value Model corresponding to Value as The order of the model is q, which reflects the linear relationship between the time series data and the corresponding past random disturbance terms.

4. The management method of the railway machine room energy storage battery according to claim 3, Features: The second significance level is calculated as follows : The calculated partial correlation coefficient The sequence is processed by difference to obtain the difference sequence ; Calculate the difference sequence using the ADF test algorithm The ADF statistic ; Through the Bootstrap method, according to the difference sequence Generate random samples and construct distributed; At a given significance level Next, according to the constructed Distribution Calculation Statistics The critical value ; Iterate through different significance levels , repeat the above steps to get the corresponding critical value ; Comparison Statistics and the corresponding critical value ; Select Statistics The first time it is less than the corresponding critical value When the critical value The corresponding significance level , as the second significance level of the ADF test .

5. The method for managing energy storage batteries in a railway machine room according to any one of claims 1 to 4, Features: The hyperparameter optimization of the battery health status prediction model based on the Bayesian algorithm includes the following steps: Set the value range of each hyperparameter, which includes the number of layers and nodes of the battery health status prediction model; Based on the value range of the set hyperparameters, a sampling algorithm is used to obtain candidate combinations of hyperparameters as the hyperparameter search space; Input candidate combinations, train the battery health state prediction model, and output the prediction accuracy of the candidate combinations on the validation set as the training set of the battery health state prediction model; The Gaussian process regression method is used to calculate the regression function between the candidate combination and the prediction accuracy of the candidate combination on the validation set; The regression function is used as the prior distribution in the Gaussian process, and the hyperparameter search space is traversed to obtain the regression function with the highest accuracy as the objective function; Input the objective function, solve it iteratively through the Bayesian algorithm, and output the corresponding hyperparameter combination with the highest prediction accuracy as the optimal hyperparameter combination; The battery health status prediction model is set according to the obtained optimal hyperparameter combination.

6. The management method of the railway machine room energy storage battery according to claim 5, Features: Generate a hyperparameter search space, including the following steps: According to the battery type and the neural network structure of the battery health state prediction model, set the upper and lower limits of the number of layers and nodes of the battery health state prediction model; Divide the upper and lower limits of the number of layers and nodes into multiple discrete intervals of equal length; In each discrete interval, a uniformly distributed probability density function is used to randomly sample and obtain multiple candidate values; The candidate values ​​obtained in all discrete intervals form a combined discrete distribution of the number of layers and the number of nodes; According to the probability density function of the combined discrete distribution, the discrete values ​​of the number of layers and nodes are obtained by integral sampling; Within the upper and lower limits of the number of layers and nodes, multiple random values ​​of the number of layers and nodes are generated according to the normal distribution probability density function; Through the Cartesian product algorithm, discrete values ​​and random values ​​are combined to generate candidate value combinations of each hyperparameter consisting of the number of layers and the number of nodes as the hyperparameter search space.

7. The management method of the railway machine room energy storage battery according to claim 6, Features: Obtaining the regression function with the highest accuracy as the objective function includes the following steps: The regression function is used as the prior distribution in the Gaussian process; Generate multiple sampling points in the hyperparameter search space through the sampling algorithm; According to the prior distribution, the posterior probability of each sampling point is calculated as the prediction accuracy of the corresponding sampling point; Select the point with the largest posterior probability as the hyperparameter, iterate the above steps, and traverse the hyperparameter search space; After the iteration, the regression function corresponding to the point with the largest posterior probability is selected as the objective function.

Citation Information

Patent Citations

  • Energy storage power station battery working condition health state prediction method and system

    CN114547849A

  • Circuit life prediction method based on accelerated degradation path

    CN105182218A

  • Spacecraft lithium ion battery cycle life prediction method

    CN110221225A