Large energy storage system safety early warning method and system based on state monitoring data
By constructing a multi-layer hash index tree and an dilated causal convolutional network, the problem of quickly locating similar fault cases in large-scale energy storage systems was solved, achieving efficient real-time safety early warning.
Patent Information
- Application Number
- CN202611102933.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-23
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot quickly locate similar fault cases that match the current abnormal characteristics in large-scale energy storage systems, which makes it impossible to meet the timeliness requirements of real-time safety monitoring. In particular, traditional retrieval methods are extremely inefficient in urgent scenarios such as battery thermal runaway.
A multi-layer hash index tree is constructed, and time-frequency domain latent features are extracted through dilated causal convolutional networks. High-dimensional state feature vectors are mapped to low-dimensional binary feature fingerprints. Kernel function locality-sensitive hashing algorithm is used to quickly compare historical failure cases, predict current risks, and trigger graded early warnings.
It significantly reduces the time complexity of retrieving massive amounts of high-dimensional data, improves the system's response speed, and meets the real-time early warning requirements of large-scale energy storage systems.
Smart Images

Figure CN123178191A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of data monitoring technology, specifically a safety early warning method and system for large-scale energy storage systems based on condition monitoring data. Background Technology
[0002] The statements in this section merely refer to the background art related to this invention and do not necessarily constitute prior art.
[0003] Large-scale energy storage power stations widely employ Battery Management Systems (BMS) in conjunction with station-level monitoring platforms to achieve daily operation and maintenance management of battery clusters. By deploying high-precision voltage, current, and temperature sensor networks, existing technologies can synchronously collect multi-dimensional status data of individual battery cells and modules in real time, and construct a digital monitoring interface, allowing maintenance personnel to intuitively view the real-time operating parameters of the energy storage system. This monitoring data provides necessary data support for assessing the battery's state of charge (SOC), state of health (SOH), and executing basic threshold exceeding alarms. Existing data storage and retrieval technologies mainly employ linear indexes or general database query logic based on timestamps to meet the needs of routine historical data playback and report statistics.
[0004] However, safety early warning for large-scale energy storage systems requires not only current status data but also long-term trend analysis and fault mode comparison using massive historical data to effectively identify hidden and gradual potential evolution patterns (such as precursors to thermal runaway). As system operating time accumulates, the historical database expands exponentially. Traditional retrieval methods based on linear indexes or keywords are extremely inefficient for similarity searches when dealing with unstructured, high-dimensional time-series data. Especially in urgent scenarios requiring millisecond-level responses, such as battery thermal runaway, existing technical architectures cannot quickly locate similar fault cases matching current anomalies from the vast historical database. This fails to meet the stringent timeliness requirements of real-time safety monitoring, severely limiting the practical application of proactive safety early warning technologies. Summary of the Invention
[0005] This invention provides a safety early warning method and system for large-scale energy storage systems based on condition monitoring data. It transforms real-time monitoring data into "feature fingerprints" representing battery status, and constructs a multi-layer hash index tree to structurally store historical fault fingerprints. During real-time early warning, fingerprints are quickly compared to locate the most similar historical faults, and their evolution trajectory is used to predict current risks and trigger graded early warnings.
[0006] The first aspect of this invention discloses a safety early warning method for large-scale energy storage systems based on condition monitoring data, comprising the following steps: Collect voltage, current and temperature monitoring data sequences of battery clusters in large-scale energy storage systems and divide them into fixed-length time slices using a sliding window; Time slice data is input into a trained dilated causal convolutional network to extract time-frequency domain latent features to generate a high-dimensional state feature vector. The locality-sensitive hashing algorithm of kernel function is used to map high-dimensional state feature vectors into low-dimensional binary feature fingerprints that maintain spatial similarity; A multi-layer hash index tree is constructed based on the binary feature fingerprints of massive historical data, and historical failure cases are stored in the corresponding index leaf nodes; Calculate the query feature fingerprint of the current monitoring data, and quickly locate the similar historical fault cases with the closest Hamming distance through a multi-level hash index tree; Based on the failure evolution trajectory of similar historical failure cases, predict the subsequent development trend of the current state and trigger corresponding graded safety warning signals.
[0007] As a further step in this scheme: the process of collecting voltage, current, and temperature monitoring data sequences of large-scale energy storage system battery clusters and dividing them into fixed-length time slices using a sliding window is as follows: The analog signals of voltage, current and temperature are synchronously collected by sensors deployed in the battery clusters of large energy storage systems, and the analog signals are converted into discrete digital monitoring data sequences by analog-to-digital converters at a uniform sampling frequency. The digital monitoring data sequence is written sequentially into the first-in-first-out circular buffer, and all data in the current buffer is locked when the number of data points in the buffer reaches the preset fixed window length value. Extract data within the locked area to generate a fixed-length time slice of data for the current moment, and control the buffer to remove the earliest sample point from the header and write the latest sample point to achieve window sliding.
[0008] As a further step in this scheme, the process of inputting time-slice data into a trained dilated causal convolutional network to extract time-frequency domain latent features to generate high-dimensional state feature vectors is as follows: Channel normalization is performed on fixed-length time-slice data, and the data is reshaped into a three-dimensional tensor sequence adapted to the network input port; A three-dimensional tensor sequence is input into a dilated causal convolutional layer and an asymmetric zero-padding technique is used to forcibly block the input path of data from future time moments. Controlling the convolution kernel to perform skip convolutions on the padded sequence at an exponentially increasing inflation rate to capture long-span temporal correlation features; Extract time step data from the end of the network output sequence and generate a high-dimensional state feature vector representing the system's operating state through mapping using a fully connected layer.
[0009] As a further step in this scheme, the process of mapping high-dimensional state feature vectors to low-dimensional binary feature fingerprints that maintain spatial similarity using the locality-sensitive hashing algorithm with kernel functions is as follows: Call the preset radial basis kernel function and read the fixed set of reference anchors from the historical database to construct the mapping basis for kernel space approximation; Calculate the kernel similarity value between the input high-dimensional state feature vector and each anchor point in the baseline anchor point set to form the kernel space projection vector; Perform matrix multiplication on the kernel space projection vector and a random weighted matrix that follows a standard normal distribution to obtain a dimension-reduced real-valued hash vector; The sign function is used to determine the positive or negative sign of each element in the real-valued hash vector and convert it into a low-dimensional binary feature fingerprint composed of zeros and ones.
[0010] As a further step in this solution: the process of constructing a multi-layered hash index tree based on the binary feature fingerprints of massive historical data and storing historical failure cases in the corresponding index leaf nodes is as follows: Read the binary feature fingerprints corresponding to all historical failure cases to form a full index dataset, and inject the full index dataset into the root node of a multi-level hash index tree to start the hierarchical construction process of the tree structure; Calculate the variance of the binary feature fingerprint contained in the current node in each dimension, and lock the most discriminative position as the best split index position of the current node according to the variance maximization principle; Based on whether the value at the optimal split index is zero or one, the binary feature fingerprint and associated cases in the current node are distributed to the left or right child node of the next level to form an extension branch of the tree. When the number of fingerprints within a node is detected to be lower than the preset bucket capacity threshold, the branch splitting action is terminated, the node is fixed as an index leaf node, and the corresponding historical fault case storage address is written to the data area of the leaf node.
[0011] As a further step in this scheme: the specific method for calculating the variance of the binary feature fingerprint contained in the current node in each dimension, and locking the most discriminative position as the optimal split index position of the current node based on the principle of maximizing variance, is as follows: Iterate through all the binary feature fingerprints temporarily stored in the current node, accumulate the number of fingerprints with a value of one in each bit dimension, and divide the accumulated result by the total number of fingerprints in the current node to calculate the frequency of occurrence of a value of one in that bit dimension. Based on the variance calculation rule of Bernoulli distribution, the frequency of occurrence calculated for each bit dimension is multiplied by one and the difference of that frequency of occurrence is subtracted, thereby obtaining the numerical variance that characterizes the dispersion of the data distribution in each bit dimension. Perform a numerical comparison on the calculated variances of all bit dimensions, select the position number corresponding to the bit dimension with the largest numerical variance, and uniquely lock that position number as the best split index bit for the current node.
[0012] As a further step in this solution: the process of calculating the query feature fingerprint of the current monitoring data and quickly locating the closest similar historical fault case using a multi-level hash index tree is as follows: The monitoring time slice data at the current moment is sequentially input into the trained dilated causal convolutional network and kernel function locality-sensitive hashing module for computation, and a query feature fingerprint representing the current state is generated according to the same parameters when the historical data database was built. Input the query feature fingerprint into the root node of the multi-level hash index tree, and read the binary value corresponding to the split index bit recorded by the current node in the query feature fingerprint layer by layer. Based on this value, traverse down the tree path until the bottom index leaf node is reached. Retrieve all historical binary feature fingerprints stored in the leaf node of the target index to form a candidate set, and use XOR logic operation to calculate the Hamming distance between the query feature fingerprint and each historical fingerprint in the candidate set. The historical fault cases in the candidate set are sorted in ascending order based on the Hamming distance value, and the historical fault cases at the front of the list with the smallest distance value are selected as the final matching similar historical fault cases.
[0013] As a further aspect of this solution: the process of predicting the subsequent development trend of the current state based on the failure evolution trajectory of similar historical failure cases and triggering corresponding graded safety early warning signals is as follows: Retrieve the subsequent status monitoring data sequences of all similar historical fault cases after the matching time from the historical database, and define these data sequences as a set of historical fault evolution trajectories used to describe the fault development trend; Using the reciprocal of the sum of the previously calculated Hamming distance and the preset smoothing constant as a weighting coefficient, a weighted average calculation is performed on the set of historical fault evolution trajectories to generate a predicted evolution curve that characterizes the future operating state of the current large-scale energy storage system through mathematical fitting. The predicted evolution curve is compared with the system's preset graded safety threshold. Based on the severity of the curve value reaching the threshold and the remaining time window, the risk level is locked and the corresponding graded safety warning signal is output.
[0014] As a further aspect of this solution, the number of layers L and the dilation rate of the dilated causal convolutional network are set according to the size of the historical time window required for system security early warning, so as to ensure that the network's receptive field can fully cover the length of the time slice data.
[0015] A second aspect of the present invention discloses a safety early warning system for large-scale energy storage systems based on condition monitoring data, comprising: The data acquisition and preprocessing module is configured to: acquire voltage, current and temperature monitoring data sequences of battery clusters in large energy storage systems and divide them into fixed-length time slices using a sliding window; The deep feature extraction module is configured to input time slice data into a trained dilated causal convolutional network to extract time-frequency domain latent features to generate a high-dimensional state feature vector. The feature fingerprint mapping module is configured to: use the locality-sensitive hashing algorithm of kernel function to map high-dimensional state feature vectors into low-dimensional binary feature fingerprints that maintain spatial similarity; The index building and storage module is configured to: build a multi-level hash index tree based on the binary feature fingerprints of massive historical data, and store historical failure cases in the corresponding index leaf nodes; The similar fault retrieval module is configured to: calculate the query feature fingerprint of the current monitoring data, and quickly locate the similar historical fault cases with the closest Hamming distance through a multi-level hash index tree; The trend prediction and early warning module is configured to predict the subsequent development trend of the current state based on the failure evolution trajectory of similar historical failure cases and trigger corresponding graded safety early warning signals.
[0016] Compared with existing technologies, one or more of the above technical solutions have the following beneficial effects: This paper addresses the problem of low retrieval efficiency for massive historical operational data by constructing a multi-layered index structure based on kernel-based locality-sensitive hashing. Deep time-frequency features are extracted using dilated causal convolutional networks, and high-dimensional continuous features are mapped to compact low-dimensional binary fingerprints using kernel functions. Dimensionality reduction transforms the complex Euclidean distance calculation into extremely fast Hamming distance bitwise operations. Combined with the branching and pruning capabilities of the multi-layered hash index tree, this allows the target to be located with minimal node access without traversing the entire database. This significantly reduces retrieval time, effectively lowers the time complexity of retrieving massive amounts of high-dimensional data, and improves the system's response speed, thus meeting the real-time early warning requirements of large-scale energy storage systems. Attached Figure Description
[0017] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.
[0018] Figure 1 This is a flowchart illustrating a safety early warning method for large-scale energy storage systems based on condition monitoring data, provided in one or more embodiments of the present invention. Detailed Implementation
[0019] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0020] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0021] Example 1: like Figure 1 As shown, the safety early warning method for large-scale energy storage systems based on condition monitoring data includes the following steps: S1. Collect voltage, current and temperature monitoring data sequences of battery clusters in large energy storage systems and divide them into fixed-length time slices using a sliding window. S2. Input the time slice data into the trained dilated causal convolutional network to extract the time-frequency domain latent features to generate a high-dimensional state feature vector. S3. Use the locality-sensitive hashing algorithm of kernel function to map the high-dimensional state feature vector into a low-dimensional binary feature fingerprint that maintains spatial similarity; S4. Construct a multi-layer hash index tree based on the binary feature fingerprint of massive historical data, and store historical failure cases in the corresponding index leaf nodes; S5. Calculate the query feature fingerprint of the current monitoring data, and quickly locate the similar historical fault cases with the closest Hamming distance through a multi-level hash index tree; S6. Based on the failure evolution trajectory of similar historical failure cases, predict the subsequent development trend of the current state and trigger the corresponding graded safety early warning signal.
[0022] In one embodiment of the present invention, step S1, which involves collecting voltage, current, and temperature monitoring data sequences of a large-scale energy storage system battery cluster and dividing them into fixed-length time slices using a sliding window, is as follows: Analog electrical signals of voltage, current, and temperature are synchronously acquired by high-precision sensing elements such as Hall current sensors, voltage divider resistors, and thermistors arranged within the battery clusters of the energy storage device. These sensing elements are physically connected to the busbars and key points on the surface of the battery module to capture real-time fluctuations in physical quantities. The analog signals are then transmitted to a multi-channel analog-to-digital converter, which is triggered by a unified clock source to perform synchronous sampling operations, thereby ensuring that the three physical quantities acquired at the same time are strictly aligned on the time axis. The sampling process uses an anti-aliasing filter to filter out high-frequency noise interference and quantizes the continuously changing analog waveforms into discrete values according to a preset sampling resolution. This process accurately maps the continuously changing electrothermal characteristics in the physical world into a time-sequential sequence of digital monitoring data in the digital domain, providing a standardized input basis for data storage and processing.
[0023] The generated digital monitoring data sequence is strictly written sequentially into a pre-allocated first-in-first-out circular buffer. This buffer adopts a circular memory address structure, and the write pointer automatically jumps back to the starting address when it reaches the end of the memory block, thereby realizing the circular use of storage space and avoiding frequent memory allocation and release operations. As sampling points are continuously input, the data in the buffer gradually accumulates. The control logic monitors the count value of valid data points in the buffer in real time. When the count value grows to be exactly equal to the preset fixed window length, it means that the current buffer has contained enough data for a sufficient duration to form a complete analysis unit. At this time, the control logic triggers a data locking mechanism, marking the start and end indices of the current window, logically fixing this continuous data segment to prevent data inconsistency or overwriting errors caused by the writing of new data during the reading process.
[0024] Based on the locked index range, the processing unit performs a memory copy operation to extract all data within the locked area, thereby generating fixed-length time slice data for the current moment. This time slice data contains all historical sampled values of voltage, current, and temperature within this fixed time window, forming an independent and complete time-series feature sample. After completing the data extraction operation, the control logic performs a window sliding operation by moving the pointer. Specifically, logically, the earliest sampled point entering the buffer head is removed, that is, the starting position of the window is moved one unit step in the positive direction of the time axis. At the same time, the latest sampled point that has just been collected and converted by the sensor is written to the end of the window, and the ending position of the window is also moved one unit step. Through this rolling update method of removing old data and incorporating new data, the monitoring window is continuously advanced on the time axis, ensuring a high degree of data overlap between adjacent time slices, thereby enabling the capture of dynamic change features that cross time segmentation boundaries.
[0025] In one embodiment of the present invention, step S2, which involves inputting time-slice data into a trained dilated causal convolutional network to extract time-frequency domain latent features to generate a high-dimensional state feature vector, is as follows: Channel normalization is performed on fixed-length time-slice data, and the data is reshaped into a three-dimensional tensor sequence adapted to the network input port. Specifically, the processing module first reads the original physical quantity values of the three channels (voltage, current, and temperature) contained in the time slice. For each independent channel, all sampling points within the time slice are traversed to calculate the arithmetic mean and standard deviation of the channel data. Then, the calculated average value is used to perform a subtraction operation on each original sampling point in the channel to eliminate the DC bias component of the data, and the result is divided by the standard deviation to complete the normalization and scaling of the data, thereby eliminating the huge differences in the order of magnitude of different physical quantities. After the normalization of the three channels is completed, the processing module constructs a multi-dimensional array structure, stacking the normalized data sequences of voltage, current, and temperature as parallel feature channels. At the same time, an index axis is added to identify the sample batch dimension, thereby reconstructing the original independent two-dimensional data matrix into a three-dimensional tensor structure containing batch dimension, time step dimension, and feature channel dimension. This structured reshaping process ensures that the data dimension arrangement is completely matched with the interface definition of the deep learning network input layer, enabling the network to process the temporal variation information of multiple physical quantities in parallel.
[0026] A three-dimensional tensor sequence is input into a dilated causal convolutional layer, and an asymmetric zero-padding technique is used to forcibly block the input path of future time-series data. Specifically, the processing module sends the constructed three-dimensional tensor sequence into the convolutional layer of the neural network. Before performing the convolution operation, the processing module calculates the number of zero values to be padded based on the size of the convolutional kernel and the dilation rate parameter set for the current layer. These zero values are strictly restricted to being added only before the beginning of the time series dimension, i.e., unilateral padding on the left side of the time axis, while no data is added at the end of the time series. This asymmetric padding method ensures that when the convolutional kernel slides along the time axis and performs dot product operations, the center point or right edge of its operation window is always aligned with the currently processed time step, while the left side of the window is covered with historical data or padded zero values. Through this forced constraint of spatial position, it is ensured that when the convolutional kernel calculates the output feature at any time point, its receptive field can only cover the data information before that time point, physically cutting off the possibility of using the right side of the time axis, i.e., future data, for current inference, thus strictly following the causal logic of time development.
[0027] The convolutional kernel is controlled to perform skip convolutions on the padded sequence at an exponentially increasing inflation rate to capture long-span temporal correlation features. Specifically, in a stacked convolutional layer structure, the processing module sets the sampling interval parameter of the convolutional kernel layer by layer. The sampling interval of the first layer is set to 1, i.e., processing adjacent data points; as the number of layers increases, the sampling interval of the second layer is set to 2, the third layer to 4, and so on, increasing exponentially according to the power of 2 rule; when the convolutional kernel slides on the input sequence, it does not perform multiplication operations with consecutive adjacent elements in the input sequence, but... It skips several intermediate data points based on the current layer's expansion rate, selecting only data points spaced at specific intervals and summing them with the convolution kernel weights. This skipping sampling mechanism allows the convolution kernels of deep networks to cover a very wide time range in the input sequence without increasing the number of convolution kernel parameters or reducing the output sequence resolution. In this way, the network can effectively capture the evolution patterns of voltage or temperature data over a long historical period and the potential dependencies between two distant time points, thereby establishing long-term temporal context associations.
[0028] The process extracts time-step data from the end of the network output sequence and maps it through a fully connected layer to generate a high-dimensional state feature vector representing the overall architecture's operating state. Specifically, after the data flows through the last dilated causal convolutional layer, the output is a feature map sequence with the same length as the input time series. Due to the causal convolutional structure, the feature data of the last time step in the sequence actually aggregates the effective information of all historical data within the entire input time window, representing the culmination of the entire time slice's information. Therefore, the processing module performs a slicing operation, directly extracting the last time-step vector from the output sequence while discarding all previous time-step data. This extracted vector is then input into the fully connected layer structure, where a matrix multiplication operation is performed between the vector and the pre-trained weight matrix within the fully connected layer, and a bias vector is superimposed. This linear transformation maps the feature space output by the convolutional layer to a new high-dimensional semantic space. Through dimensional compression or expansion, a high-dimensional state feature vector that accurately summarizes the device's health status and operating mode within the current time window is ultimately generated.
[0029] The overall architecture of the dilated causal convolutional network includes an input layer, several stacked residual blocks, and an output layer. Each residual block contains two dilated causal convolutional layers, supplemented by weight normalization and the ReLU activation function. Hyperparameters such as the number of channels in the hidden layers are determined through hyperparameter optimization algorithms such as grid search or cross-validation, based on the complexity of multi-dimensional monitoring data of large-scale energy storage systems and the computing power limitations of edge computing devices at the station (in a preferred embodiment, the number of hidden layer channels is set to 64 or 128), to achieve the best balance between feature representation capability and early warning computation latency.
[0030] Furthermore, the number of layers L and the expansion rate of the network are determined based on the size of the historical time window required for system security early warning. To exponentially expand the receptive field without losing temporal feature resolution, the expansion rate of each layer in the network is set to d = 2i (where i is the network layer index, i = 0, 1, ..., L). 1) Increment the number of layers exponentially. The total number of layers L is calculated based on the maximum time series length required for coverage. Let the size of the one-dimensional convolutional kernel be K, then the total receptive field of the network is RF = 1 + 2 × (K). 1)×2L 1. In practical applications, the processing logic sets the target receptive field RF based on the time slice length of the sliding window in step S1, and then reverse-engineers and rigorously determines the required number of network layers L and the convolutional kernel size K, thereby ensuring that the network architecture can fully capture the long-range dependencies of the battery state evolution in the energy storage system. Based on the above network architecture and parameters, the specific feature extraction process for this step is as follows: In one embodiment of the present invention, step S3, which involves mapping a high-dimensional state feature vector to a low-dimensional binary feature fingerprint that maintains spatial similarity using a kernel function locality-sensitive hashing algorithm, is as follows: The processing module first calls the pre-set radial basis function parameters in memory and reads a fixed set of reference anchor points from the historical database to construct a mapping basis for kernel space approximation. These reference anchor points are not randomly selected, but are highly representative central sample points selected from accumulated operational data using a clustering algorithm. They serve as reference coordinates for spatial positioning on the high-dimensional geometric manifold of the data distribution. The processing module loads these anchor points into the cache memory to form a constant reference set. In a preferred embodiment, the radial basis function uses a Gaussian kernel function, whose mathematical expression is as follows: In the formula, and These represent any two high-dimensional state feature vectors. This represents the square of the Euclidean distance between two vectors. This is a bandwidth parameter used to control the radial range of the kernel function.
[0031] Regarding the bandwidth parameters of the aforementioned kernel function The selection criterion is that this parameter directly determines the degree of local similarity preservation after feature mapping. In the actual monitoring scenario of large-scale energy storage systems, in order to prevent the kernel function values of all samples from approaching zero due to the parameter being too small (causing hash collision failure), or from losing local discernibility due to the parameter being too large, this invention preferably uses the median heuristic algorithm to determine the parameter. Specifically, before constructing the hash function cluster, the processing module first randomly samples a portion of the historical high-dimensional state feature vector set, calculates the pairwise Euclidean distance between all sample pairs, and extracts the median of these distance values as the bandwidth parameter. The set value is determined based on the ability to adapt to the scale changes in data distribution under different operating conditions of the energy storage system without additional manual parameter tuning, thereby ensuring the retrieval accuracy of locality-sensitive hashing. By determining the specific kernel function bandwidth parameters and a fixed set of anchor points, the processing module actually constructs an implicit transformation architecture that can map the original input data to an infinite-dimensional feature space. This provides a mathematical basis for solving the problem of linear inseparability in the original space, making the originally complex and entangled data relationships clear and separable in the new mapping space.
[0032] After receiving the input current state feature vector, the processing module begins intensive numerical computation, calculating the kernel similarity value between the vector and each anchor point in the reference anchor point set to form a kernel space projection vector. Specifically, the computation unit first calculates the Euclidean distance between the input vector and a currently traversed anchor point, which reflects the geometric interval between the two in the original feature space. Then, this distance value is squared, divided by a preset bandwidth parameter, and then negative and exponentially calculated to obtain a similarity score between zero and one. This process is repeated for each anchor point in the set. Assuming there is a specific number of anchor points in the set, the same number of similarity scores will be generated in the end. The processing module combines these scores strictly according to the order of the anchor points in the set to form a new vector, namely the kernel space projection vector. Each element in this vector represents the similarity of the current input state with respect to a specific historical reference point, thereby transforming the original abstract features into an instance-based relative position description.
[0033] After obtaining the kernel space projection vector, the processing module reads a pre-generated random weighted matrix that follows a standard normal distribution and performs matrix multiplication with the projection vector to obtain a dimensionality-reduced real-valued hash vector. This random weighted matrix is generated during the initialization phase, and each element is a random number independently sampled from a Gaussian distribution with a mean of zero and a variance of one. The number of columns in the matrix directly determines the number of bits in the final generated hash fingerprint. During matrix multiplication, the kernel space projection vector is used as a row vector to perform a dot product operation with each column of the random matrix. This process is geometrically equivalent to projecting the high-dimensional kernel space features onto multiple random directions defined by the random vector. According to the mathematical principle of locality-sensitive hashing, this random projection based on a stable distribution can maintain the cosine similarity in the original space with a very high probability. That is, two vectors with a small angle in the original space will still maintain a close distance in the projected low-dimensional space. The final output is a vector containing several real numbers. Although its dimension is greatly compressed, it still retains the key topological information.
[0034] The final processing module uses a sign function to determine the sign of each element in the real-valued hash vector and rigorously converts it into a low-dimensional binary feature fingerprint composed of zeros and ones. The processing logic traverses each component in the real-valued hash vector and compares it with a zero threshold. If the value of the current component is greater than or equal to zero, the result of that bit is determined to be one; if the value of the current component is less than zero, the result of that bit is determined to be zero. This binarization operation is geometrically equivalent to detecting whether the projected point is above or below a random hyperplane. By performing this simple threshold determination on all components in the vector, the originally continuous real-valued vector is quantized into a string of compact binary code. This string of code is the final feature fingerprint, which greatly compresses the data storage space. At the same time, because it is composed of simple bits, it can be rapidly calculated using the XOR instruction at the computer's underlying level when performing similarity comparison. This conversion process significantly reduces computational complexity while effectively locking the regional location information of the data in the feature space, laying a solid foundation for rapid retrieval.
[0035] In one embodiment of the present invention, step S4, which involves constructing a multi-layer hash index tree based on the binary feature fingerprints of massive historical data and storing historical failure cases in the corresponding index leaf nodes, is as follows: The construction module first sends a read command to the underlying database to obtain the binary feature fingerprint data corresponding to all historical failure cases accumulated in the past. This data is loaded into high-speed memory in batches to form a complete full index dataset. The construction module then initializes the root node structure of the multi-level hash index tree and injects this huge dataset containing tens of thousands of fingerprints into the root node as the sole starting point of the tree structure. This injection process logically treats all historical data as an initial cluster to be processed, laying the foundation for the subsequent recursive segmentation. At this time, the construction module starts the hierarchical construction program, which is set as a recursive call logic flow. It will process the data layer by layer from the root node down, with the aim of transforming this messy linear data set into a tree topology structure with clear hierarchical relationships, thereby achieving ordered reorganization of data at the physical storage level.
[0036] Calculate the variance of the binary feature fingerprint contained in the current node in each dimension, and determine the most discriminative position as the optimal split index for the current node based on the variance maximization principle; the specific method is as follows: The traversal process is initiated to perform a full scan of all binary feature fingerprint data temporarily stored in the memory region of the current node. This scan is performed independently for each bit dimension of the feature fingerprint. The processing module first initializes a counter array in the register with a length equal to the number of bits of the feature fingerprint, and sets the initial value of all counters to zero. Then, the processing module reads each binary feature fingerprint line by line, and uses a bitwise AND operation instruction to check the numerical state of the fingerprint in each feature dimension. If a value of one is detected in a certain bit dimension, the corresponding counter for that dimension is immediately incremented by one. This accumulation process continues until all fingerprints in the current node have been traversed. At this point, the counter array stores the absolute number of values of one in each dimension. The processing module then reads the total number of fingerprints stored in the current node and calls the floating-point division unit to divide the accumulated value in each counter by the total number of fingerprints. This mathematical operation converts the absolute count value into a relative probability value, thereby strictly calculating the frequency of occurrence of a value of one in each bit dimension. This frequency value accurately reflects the distribution density of the current dataset in each feature dimension, providing a basic statistical measure for the next step of dispersion analysis.
[0037] After obtaining the frequency values of each bit dimension, the processing module performs further mathematical transformations according to the variance calculation rules of the Bernoulli distribution in statistics. Since the feature fingerprint consists of only two discrete values, zero and one, its distribution characteristics conform to the definition of the Bernoulli trial, so its variance can be obtained through simple probability calculation. The processing module first loads the frequency values calculated for each bit dimension into the arithmetic logic unit and performs a subtraction operation, that is, subtracting the frequency from the value one, to obtain the complementary probability of the value zero in that dimension. Then, the processing module performs a multiplication operation on the frequency and the complementary probability, and the product result is the numerical variance of that bit dimension. This calculation process is performed in parallel or serially for all bit dimensions, thereby obtaining the numerical variance that characterizes the dispersion of the data distribution in each bit dimension. In a physical sense, the variance value represents the information entropy or discriminative ability of the feature bit. The larger the variance, the closer the distribution of the values zero and one in that bit is to the equilibrium state, the higher the degree of data mixing, and the easier it is to form a balanced subset when segmented.
[0038] Finally, the processing module performs a rigorous numerical comparison procedure on the variances calculated for all bit dimensions to lock in the optimal split point. The module initializes a maximum value register to record the currently traversed maximum variance value, and an index register to record the corresponding position number. The module sequentially reads the variance value of each bit dimension and compares it with the current value in the maximum value register. If the currently read variance value is found to be greater than the value in the register, the maximum value register is immediately updated to the current variance, and the index register is updated to the current bit dimension number. After this comparison process traverses all dimensions, the number retained in the index register corresponds to the bit dimension with the largest variance. The processing module uniquely locks this position number as the optimal split index for the current node and uses it as a key instruction parameter for constructing the next level of the tree structure. Selecting the maximum variance bit as the splitting criterion ensures that the data volume of the two child nodes is kept as balanced as possible when dividing the data into child nodes, thereby avoiding problems such as tree structure skewness or excessive depth, effectively improving the final retrieval efficiency.
[0039] After determining the optimal split index, the program performs substantive data distribution operations to form extended branches of the tree. The program creates two new child node structures, defined as the left and right child nodes respectively, and physically connects them to the current node. Then, the program reads each binary feature fingerprint within the current node, checking its specific value at the optimal split index. If the value at that bit is strictly zero, the program routes the fingerprint and its associated case information to the data buffer of the left child node; if the value at that bit is strictly one, it routes it to the data buffer of the right child node. Through this binary decision mechanism based on a specific bit value, the originally mixed dataset is precisely split into two subsets, and these two subsets have distinctly different attributes in specific feature dimensions, thus logically completing the hierarchical split and spatial partitioning from parent node to child node.
[0040] Before each node split attempt, the program first checks the total number of fingerprints temporarily stored in the current node. The program reads a pre-set bucket capacity threshold parameter, which defines the maximum number of samples each node can hold. If the number of fingerprints in the current node is still higher than the threshold, the program continues to execute the variance calculation and splitting process described above. Once the number of fingerprints is detected to have decreased to below or equal to the preset bucket capacity threshold, the program immediately terminates further splitting actions for that branch. At this point, the program changes the status flag of the current node to a fixed state, defining it as the final index leaf node. Then, the program performs a write operation, directly writing the physical storage addresses or database pointers of all the remaining fingerprints in the node to the data area of the leaf node. This process ensures that a group of highly similar cases are ultimately archived in the same leaf node bucket, providing a direct access point for the final match during retrieval.
[0041] In one embodiment of the present invention, step S5, which involves calculating the query feature fingerprint of the current monitoring data and quickly locating the closest similar historical fault case using a multi-level hash index tree, is as follows: First, the newly generated monitoring time slice data is received and used as the query input source. To ensure the accuracy and comparability of the query results, the processing module strictly calls the parameter configuration that is completely consistent with the historical database construction stage. This includes loading the fixed weight matrix and bias vector in the pre-trained dilated causal convolutional network, as well as the preset set of benchmark anchor points and random weighting matrix in the kernel function locality-sensitive hash mapping module. The data stream first goes through layers of operations in the convolutional network, converting the original time-series waveform into an abstract high-dimensional state feature vector. Then, this vector enters the hash mapping module, and after kernel space projection and random binarization projection operations, a series of query feature fingerprints representing the current running state are finally generated. This process must ensure that all transformation logic and mathematical parameters are exactly the same as those during database construction, because any slight deviation in parameters will cause the generated fingerprint to shift in the feature space, thus failing to correctly match truly similar historical cases.
[0042] After obtaining the query feature fingerprint, the processing module transmits it to the retrieval entry point, i.e., the root node, of the multi-level hash index tree via the data bus. The retrieval program reads the split index bit information stored in the root node header, which indicates which bit dimension of the fingerprint should be checked at the current level. The processing module locates the corresponding position in the query feature fingerprint and reads whether the binary value of that bit is zero or one. If the read value is zero, the retrieval program's pointer points to the address of the left child node of the current node; if the read value is one, the pointer points to the address of the right child node. This process is repeated at each level of the tree structure. The processing module quickly traverses downwards in the vast index tree along the unique path determined by a series of split bit values, narrowing the search range layer by layer until the pointer finally stops at an index leaf node that no longer contains child nodes. This leaf node is the storage bucket that is spatially closest to the current query fingerprint.
[0043] The processing module then sends an instruction to the storage controller to retrieve all historical binary feature fingerprints stored in the target index leaf node data area, and loads these fingerprints into the cache at once to form a candidate set. For each historical fingerprint in the set, the processing module performs an XOR operation using a hardware accelerator. Specifically, the query feature fingerprint is compared bit by bit with the historical fingerprint. When the values of the corresponding bits are different, the XOR result is one; when they are the same, the result is zero. After the operation is completed, the processing module counts the total number of one's in the XOR result. This count is mathematically known as the Hamming distance. This distance value intuitively quantifies the degree of difference between the current state and the historical state in the feature space. The smaller the value, the more similar the waveform characteristics and fault modes of the two states are. The processing module repeats this process for each sample in the candidate set to obtain a list of calculation results containing case identifiers and corresponding distance values.
[0044] Based on the calculated Hamming distance values, the processing module initiates a sorting algorithm to arrange the historical fault cases in the candidate set in ascending order. The sorting logic places the case with the smallest distance value at the top of the list, and cases with larger distance values are placed at the bottom. After the sorting operation is completed, the processing module selects several historical fault cases at the top of the list according to a pre-set matching threshold. These cases are considered to be the most representative reference samples of the current equipment's possible situation because they have the smallest Hamming distance. The processing module reads the detailed index information of these selected cases, marks them as the final matched similar historical fault cases, and retrieves the detailed fault descriptions, causes, and evolution records associated with these cases from the main database as the basic data support for subsequent predictive analysis and risk assessment.
[0045] In one embodiment of the present invention, step S6, which involves predicting the subsequent development trend of the current state based on the failure evolution trajectory of similar historical failure cases and triggering the corresponding graded safety early warning signal, is as follows: The processing module uses the storage addresses of similar historical fault cases previously located in the leaf nodes of the index tree as retrieval keys to initiate a targeted retrieval command to the historical time series database. Instead of reading historical records prior to these cases, the module precisely locates the voltage, current, and temperature monitoring data recorded for each matching case within the time period immediately following that point in time. These data sequences represent the actual physical changes in the battery state within the energy storage device under similar operating conditions in the past. The processing module aggregates these data fragments extracted from different historical moments, but highly similar in fault mode, into a set containing multiple time curves. This set is logically defined as a set of historical fault evolution trajectories. Each trajectory in the set is equivalent to an experience-based simulation of the future state of the current device. Together, they constitute the basic sample space for predictive analysis, covering multiple evolution paths that may occur under specific fault characteristics, thus providing rich and realistic reference data for subsequent trend fitting.
[0046] To extract the curve that best represents the current development trend from numerous historical evolution trajectories, the computing unit performs a weighted average calculation. The core of this calculation process lies in the allocation of weights, which are based on the previously calculated Hamming distance values. Since a smaller Hamming distance indicates a higher similarity, the computing unit uses the reciprocal of the distance value as the basic weight to ensure that the historical trajectory most similar to the current state dominates the prediction. To prevent overflow in the division operation due to a zero distance value and to smooth the weight differences between different cases, the computing unit adds a preset small positive number, i.e., a smoothing constant, to the Hamming distance value, and then performs a reciprocal operation to generate the final normalized weight coefficients. Using these coefficients, the computing unit performs a weighted summation of the values of all curves in the trajectory set at the same relative time step and divides by the total weight. This mathematical fitting method effectively integrates the information of multiple historical trajectories, suppresses random noise interference in individual cases, and finally generates a smooth and statistically significant predicted evolution curve. This curve intuitively represents the voltage or temperature change trend of the current large-scale energy storage device in the future.
[0047] The monitoring terminal imports the generated predicted evolution curve into the safety assessment module, comparing it point-by-point with preset graded safety thresholds. These thresholds define the physical limits of the battery module under extreme conditions such as excessively high or low voltage, or excessively high temperature. The assessment module scans the entire predicted curve to detect whether its value crosses the safety boundary at some point in the future. Once a boundary violation is detected, the module not only records the magnitude of the boundary violation to assess the severity of the potential fault, but also calculates the time difference from the current moment to the boundary point to determine the remaining emergency response window. Based on the two dimensions of severity and remaining time, the module performs a lookup operation in a preset risk matrix to strictly lock the risk level corresponding to the current operating condition, such as general risk, severe risk, or emergency risk. Finally, the module generates a digital coded signal containing the fault type, predicted occurrence time, and severity based on the locked level, and outputs it as a graded safety warning signal to the central controller to trigger active protection actions such as cooling fan acceleration, power derating, or relay disconnection.
[0048] This solution significantly addresses the technical challenge of low retrieval efficiency for massive historical operational data by constructing a multi-layered index structure based on kernel-based locality-sensitive hashing. Traditional methods often fall into the trap of full-database scanning or inefficient linear index matching when faced with exponentially expanding data. This solution utilizes dilated causal convolutional networks to extract deep time-frequency features and combines kernel functions to map high-dimensional continuous features into compact low-dimensional binary fingerprints. This dimensionality reduction transforms the originally complex Euclidean distance calculation into extremely fast Hamming distance bitwise operations. Combined with the branching and pruning capabilities of the multi-layered hash index tree, the system can locate the target with only a minimal number of node accesses without traversing the entire database. This drastically reduces retrieval time, effectively lowers the time complexity of retrieving massive high-dimensional data, and significantly improves the system's response speed, thus meeting the real-time early warning requirements of large-scale energy storage systems.
[0049] This solution leverages similar historical fault evolution trajectories to achieve predictive, tiered early warning of the current state, overcoming the limitations of relying solely on current thresholds. It captures long-span temporal dependencies through dilated convolution and utilizes hash mapping that preserves spatial structural similarity to ensure that retrieved historical cases are highly consistent with the current state in terms of fault modes and evolution patterns. By weighted fitting of the subsequent trajectories of these high-confidence historical cases, the system can accurately predict the future development trend of the current battery state, thereby keenly identifying hidden faults that have not yet reached the hard alarm threshold but are showing a tendency to deteriorate. This mechanism not only reduces the false alarm rate but also provides maintenance personnel with a forward-looking, tiered handling window, effectively preventing serious safety accidents such as battery thermal runaway.
[0050] This solution significantly addresses the technical challenge of low retrieval efficiency for massive historical operational data by constructing a multi-layered index structure based on kernel-based locality-sensitive hashing. Traditional methods often fall into the trap of full-database scanning or inefficient linear index matching when faced with exponentially expanding data. This solution utilizes dilated causal convolutional networks to extract deep time-frequency features and combines kernel functions to map high-dimensional continuous features into compact low-dimensional binary fingerprints. This dimensionality reduction transforms the originally complex Euclidean distance calculation into extremely fast Hamming distance bitwise operations. Combined with the branching and pruning capabilities of the multi-layered hash index tree, the system can locate the target with only a minimal number of node accesses without traversing the entire database. This drastically reduces retrieval time, effectively lowers the time complexity of retrieving massive high-dimensional data, and significantly improves the system's response speed, thus meeting the real-time early warning requirements of large-scale energy storage systems.
[0051] This solution leverages similar historical fault evolution trajectories to achieve predictive, tiered early warning of the current state, overcoming the limitations of relying solely on current thresholds. It captures long-span temporal dependencies through dilated convolution and utilizes hash mapping that preserves spatial structural similarity to ensure that retrieved historical cases are highly consistent with the current state in terms of fault modes and evolution patterns. By weighted fitting of the subsequent trajectories of these high-confidence historical cases, the system can accurately predict the future development trend of the current battery state, thereby keenly identifying hidden faults that have not yet reached the hard alarm threshold but are showing a tendency to deteriorate. This mechanism not only reduces the false alarm rate but also provides maintenance personnel with a forward-looking, tiered handling window, effectively preventing serious safety accidents such as battery thermal runaway.
[0052] Example 2: A safety early warning system for large-scale energy storage systems based on condition monitoring data, characterized in that it includes: The data acquisition and preprocessing module is configured to: acquire voltage, current and temperature monitoring data sequences of battery clusters in large energy storage systems and divide them into fixed-length time slices using a sliding window; The deep feature extraction module is configured to input time-slice data into a trained dilated causal convolutional network to extract time-frequency domain latent features to generate a high-dimensional state feature vector. The feature fingerprint mapping module is configured to: use the locality-sensitive hashing algorithm of kernel function to map high-dimensional state feature vectors into low-dimensional binary feature fingerprints that maintain spatial similarity; The index building and storage module is configured to: build a multi-level hash index tree based on the binary feature fingerprints of massive historical data, and store historical failure cases in the corresponding index leaf nodes; The similar fault retrieval module is configured to: calculate the query feature fingerprint of the current monitoring data, and quickly locate the similar historical fault cases with the closest Hamming distance through a multi-level hash index tree; The trend prediction and early warning module is configured to predict the subsequent development trend of the current state based on the failure evolution trajectory of similar historical failure cases and trigger corresponding graded safety early warning signals.
[0053] By constructing a multi-layered index structure based on kernel-function locality-sensitive hashing, the technical challenge of low retrieval efficiency for massive historical operational data is significantly solved. Traditional methods often fall into the trap of full-database scanning or inefficient linear index matching when faced with exponentially expanding data. This solution utilizes dilated causal convolutional networks to extract deep time-frequency features and combines kernel functions to map high-dimensional continuous features into compact low-dimensional binary fingerprints. This dimensionality reduction transforms the originally complex Euclidean distance calculation into extremely fast Hamming distance bitwise operations. Combined with the branching and pruning capabilities of the multi-layered hash index tree, the system can locate the target with only a minimal number of node accesses without traversing the entire database. This significantly compresses retrieval time, effectively reduces the time complexity of retrieving massive high-dimensional data, and significantly improves the system's response speed, thus meeting the real-time early warning requirements of large-scale energy storage systems.
[0054] The above are merely preferred embodiments of this solution and are not intended to limit the solution. Various modifications and variations can be made to this solution by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this solution should be included within the scope of protection of this solution.
Claims
1. A safety early warning method for large-scale energy storage systems based on condition monitoring data, characterized in that, Includes the following steps: Collect voltage, current and temperature monitoring data sequences of battery clusters in large-scale energy storage systems and divide them into fixed-length time slices using a sliding window; Time slice data is input into a trained dilated causal convolutional network to extract time-frequency domain latent features to generate a high-dimensional state feature vector. The locality-sensitive hashing algorithm of kernel function is used to map high-dimensional state feature vectors into low-dimensional binary feature fingerprints that maintain spatial similarity; A multi-layer hash index tree is constructed based on the binary feature fingerprints of massive historical data, and historical failure cases are stored in the corresponding index leaf nodes; Calculate the query feature fingerprint of the current monitoring data, and quickly locate the similar historical fault cases with the closest Hamming distance through a multi-level hash index tree; Based on the failure evolution trajectory of similar historical failure cases, predict the subsequent development trend of the current state and trigger corresponding graded safety warning signals.
2. The safety early warning method for large-scale energy storage systems based on condition monitoring data as described in claim 1, characterized in that, The system collects voltage, current, and temperature monitoring data sequences from battery clusters in a large-scale energy storage system and divides them into fixed-length time slices using a sliding window; specifically: The analog signals of voltage, current and temperature are synchronously collected by sensors deployed in the battery clusters of large energy storage systems, and the analog signals are converted into discrete digital monitoring data sequences by analog-to-digital converters at a uniform sampling frequency. The digital monitoring data sequence is written sequentially into the first-in-first-out circular buffer, and all data in the current buffer is locked when the number of data points in the buffer reaches the preset fixed window length value. Extract data within the locked area to generate a fixed-length time slice of data for the current moment, and control the buffer to remove the earliest sample point from the header and write the latest sample point to achieve window sliding.
3. The safety early warning method for large-scale energy storage systems based on condition monitoring data as described in claim 1, characterized in that, Time-slice data is input into a trained dilated causal convolutional network to extract time-frequency domain latent features to generate a high-dimensional state feature vector; specifically: Channel normalization is performed on fixed-length time-slice data, and the data is reshaped into a three-dimensional tensor sequence adapted to the network input port; A three-dimensional tensor sequence is input into a dilated causal convolutional layer and an asymmetric zero-padding technique is used to forcibly block the input path of data from future time moments. Controlling the convolution kernel to perform skip convolutions on the padded sequence at an exponentially increasing inflation rate to capture long-span temporal correlation features; Extract time step data from the end of the network output sequence and generate a high-dimensional state feature vector representing the system's operating state through mapping using a fully connected layer.
4. The safety early warning method for large-scale energy storage systems based on condition monitoring data as described in claim 1, characterized in that, The locality-sensitive hashing algorithm using kernel functions is used to map high-dimensional state feature vectors into low-dimensional binary feature fingerprints that preserve spatial similarity; specifically: Call the preset radial basis kernel function and read the fixed set of reference anchors from the historical database to construct the mapping basis for kernel space approximation; Calculate the kernel similarity value between the input high-dimensional state feature vector and each anchor point in the baseline anchor point set to form the kernel space projection vector; Perform matrix multiplication on the kernel space projection vector and a random weighted matrix that follows a standard normal distribution to obtain a dimension-reduced real-valued hash vector; The sign function is used to determine the positive or negative sign of each element in the real-valued hash vector and convert it into a low-dimensional binary feature fingerprint composed of zeros and ones.
5. The safety early warning method for large-scale energy storage systems based on condition monitoring data as described in claim 1, characterized in that, A multi-layered hash index tree is constructed based on the binary feature fingerprints of massive historical data, and historical failure cases are stored in the corresponding index leaf nodes; specifically: Read the binary feature fingerprints corresponding to all historical failure cases to form a full index dataset, and inject the full index dataset into the root node of a multi-level hash index tree to start the hierarchical construction process of the tree structure; Calculate the variance of the binary feature fingerprint contained in the current node in each dimension, and lock the most discriminative position as the best split index position of the current node according to the variance maximization principle; Based on whether the value at the optimal split index is zero or one, the binary feature fingerprint and associated cases in the current node are distributed to the left or right child node of the next level to form an extension branch of the tree. When the number of fingerprints within a node is detected to be lower than the preset bucket capacity threshold, the branch splitting action is terminated, the node is fixed as an index leaf node, and the corresponding historical fault case storage address is written to the data area of the leaf node.
6. The safety early warning method for large-scale energy storage systems based on condition monitoring data as described in claim 5, characterized in that, Calculate the variance of the binary feature fingerprint contained in the current node in each dimension, and determine the most discriminative position as the optimal split index for the current node based on the variance maximization principle; specifically: Iterate through all the binary feature fingerprints temporarily stored in the current node, accumulate the number of fingerprints with a value of one in each bit dimension, and divide the accumulated result by the total number of fingerprints in the current node to calculate the frequency of occurrence of a value of one in that bit dimension. Based on the variance calculation rule of Bernoulli distribution, the frequency of occurrence calculated for each bit dimension is multiplied by one and the difference of that frequency of occurrence is subtracted, thereby obtaining the numerical variance that characterizes the dispersion of the data distribution in each bit dimension. Perform a numerical comparison on the calculated variances of all bit dimensions, select the position number corresponding to the bit dimension with the largest numerical variance, and uniquely lock that position number as the best split index bit for the current node.
7. The safety early warning method for large-scale energy storage systems based on condition monitoring data as described in claim 1, characterized in that, Calculate the query feature fingerprint of the current monitoring data, and quickly locate the closest similar historical fault cases with the Hamming distance using a multi-level hash index tree; specifically: The monitoring time slice data at the current moment is sequentially input into the trained dilated causal convolutional network and kernel function locality-sensitive hashing module for computation, and a query feature fingerprint representing the current state is generated according to the same parameters when the historical data database was built. Input the query feature fingerprint into the root node of the multi-level hash index tree, and read the binary value corresponding to the split index bit recorded by the current node in the query feature fingerprint layer by layer. Based on this value, traverse down the tree path until the bottom index leaf node is reached. Retrieve all historical binary feature fingerprints stored in the leaf node of the target index to form a candidate set, and use XOR logic operation to calculate the Hamming distance between the query feature fingerprint and each historical fingerprint in the candidate set. The historical fault cases in the candidate set are sorted in ascending order based on the Hamming distance value, and the first few historical fault cases with the smallest distance value are selected as the final matching similar historical fault cases.
8. The safety early warning method for large-scale energy storage systems based on condition monitoring data as described in claim 1, characterized in that, Based on the failure evolution trajectory of similar historical failure cases, predict the subsequent development trend of the current state and trigger corresponding graded safety warning signals; specifically: Retrieve the subsequent status monitoring data sequences of all similar historical fault cases after the matching time from the historical database, and define these data sequences as a set of historical fault evolution trajectories used to describe the fault development trend; Using the reciprocal of the sum of the previously calculated Hamming distance and the preset smoothing constant as a weighting coefficient, a weighted average calculation is performed on the set of historical fault evolution trajectories to generate a predicted evolution curve that characterizes the future operating state of the current large-scale energy storage system through mathematical fitting. The predicted evolution curve is compared with the system's preset graded safety threshold. Based on the severity of the curve value reaching the threshold and the remaining time window, the risk level is locked and the corresponding graded safety warning signal is output.
9. The safety early warning method for large-scale energy storage systems based on condition monitoring data as described in claim 1, characterized in that, The number of layers L and the dilation rate of the dilated causal convolutional network are set according to the size of the historical time window required for system security early warning, so as to ensure that the network receptive field can fully cover the length of the time slice data.
10. A safety early warning system for large-scale energy storage systems based on condition monitoring data, characterized in that: include; The data acquisition and preprocessing module is configured to: acquire voltage, current and temperature monitoring data sequences of battery clusters in large energy storage systems and divide them into fixed-length time slices using a sliding window; The deep feature extraction module is configured to input time slice data into a trained dilated causal convolutional network to extract time-frequency domain latent features to generate a high-dimensional state feature vector. The feature fingerprint mapping module is configured to: use the locality-sensitive hashing algorithm of kernel function to map high-dimensional state feature vectors into low-dimensional binary feature fingerprints that maintain spatial similarity; The index building and storage module is configured to: build a multi-level hash index tree based on the binary feature fingerprints of massive historical data, and store historical failure cases in the corresponding index leaf nodes; The similar fault retrieval module is configured to: calculate the query feature fingerprint of the current monitoring data, and quickly locate the similar historical fault cases with the closest Hamming distance through a multi-level hash index tree; The trend prediction and early warning module is configured to predict the subsequent development trend of the current state based on the failure evolution trajectory of similar historical failure cases and trigger corresponding graded safety early warning signals.
