Energy storage battery fault detection method and system

By combining acoustic wave detection technology and intelligent signal processing algorithms, high-precision detection of the internal structure of energy storage batteries is achieved, solving the problems of low detection accuracy and efficiency in the existing technology, improving the accuracy and safety of fault diagnosis, and enabling Predict battery health in real time.

CN118425332BActive Publication Date: 2024-09-13内蒙古中电储能技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410878735.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-13
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

Existing energy storage battery fault detection methods are difficult to reflect the performance degradation of the battery in working conditions in real time, especially in complex structures and subtle changes in electrolyte distribution. Moreover, the detection accuracy and efficiency of acoustic wave detection technology are affected by fixed frequency pulse generation. The limitations of the detector and simple signal acquisition and processing technology lead to low accuracy and reliability of the detection results.

Method used

It uses acoustic wave detection technology and intelligent signal processing algorithms to generate dynamic frequency acoustic wave pulses through direct digital frequency synthesis technology. It combines the adaptive power adjustment algorithm controlled by fuzzy logic and the annular + radial layout piezoelectric ceramic sensor array to achieve accurate acoustic wave processing. Focus and three-dimensional imaging, and use U-Net model and convolutional neural network for image segmentation and feature extraction to form a comprehensive battery feature vector for health status prediction.

Benefits of technology

It achieves high-precision non-destructive testing of the internal structure of the energy storage battery, improves the accuracy and safety of fault diagnosis, can accurately predict the health status of the battery and different levels of damage, and provides a scientific basis for maintenance decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118425332B
    Figure CN118425332B
Patent Text Reader

Abstract

The present invention provides a method and system for detecting faults in energy storage batteries, and belongs to the technical field of energy storage batteries. First, a direct digital frequency synthesis chip is used to generate frequency-adjustable acoustic wave pulses, and an adaptive power regulation algorithm controlled by fuzzy logic is combined to protect the battery from damage by excessive acoustic energy. The acoustic wave signal forms a focused acoustic wave beam through phase adjustment to achieve accurate imaging inside the battery. The imaging data is preprocessed, divided into regions, and spectral features are extracted, and then combined with the structural information obtained by image segmentation assisted by the U‑Net model to extract spectral feature vectors and image feature vectors, respectively. The feature vector is integrated into a battery feature vector through a deep learning model, which is input into a prediction model, and finally the softmax function is used to output the fault prediction probability to achieve accurate classification of the battery health status. The present invention effectively improves the detection accuracy and efficiency, and provides a strong guarantee for the healthy management and safe use of energy storage batteries.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of energy storage batteries, and in particular relates to a method and system for detecting faults of energy storage batteries. Background Art

[0002] In the field of energy storage batteries, with the rapid development and widespread application of new energy technologies, the health status monitoring of energy storage batteries has become particularly important. Traditional detection methods, such as open circuit voltage testing and internal resistance measurement, often provide a rough assessment of the macroscopic state of the battery, and it is difficult to detect microscopic damage or aging inside the battery, especially for complex structures and subtle changes in the distribution state of the electrolyte. In addition, static testing methods cannot reflect the performance degradation of the battery in real time under working conditions, resulting in the inability to timely warn of potential faults, affecting the safety and service life of the battery.

[0003] Although the existing acoustic wave detection technology can penetrate the battery shell to a certain extent and detect changes in the internal structure, its detection accuracy and efficiency are limited due to the fixed frequency acoustic wave pulse generator and simple signal acquisition and processing technology. In particular, when processing acoustic wave signals, due to the lack of effective noise suppression and image enhancement means, as well as the fine control of the synergistic effect between acoustic wave frequency and power, the accuracy and reliability of the detection results are not high. Therefore, a new energy storage battery fault detection method is urgently needed. Summary of the invention

[0004] Based on the above technical problems, the present invention provides a method and system for detecting faults in energy storage batteries, which realize high-precision non-destructive detection of the internal structure of energy storage batteries through acoustic wave detection technology and intelligent signal processing algorithms, and thus accurately predict the health status of the battery.

[0005] The present invention provides a method for detecting a fault in an energy storage battery, the method comprising:

[0006] Step S1: collecting the acoustic wave signal of the energy storage battery and constructing an acoustic image;

[0007] Step S2: preprocessing, region division and spectrum feature extraction of the acoustic image to obtain a spectrum feature vector;

[0008] Step S3: Input the segmented image into the feature model for feature extraction to obtain an image feature vector;

[0009] Step S4: input the battery feature vector into the prediction model of the battery health state to perform prediction and obtain a prediction result.

[0010] Optionally, the acquisition of the acoustic wave signal of the energy storage battery and the construction of the acoustic image specifically include: designing an acoustic wave pulse generator, specifically including: using a direct digital frequency synthesis chip DDFS as a core component, DDFS generates a sine wave of a required frequency by accumulating phases, and the specific steps are as follows: Phase accumulator, the formula is expressed as:

[0011] In the formula, For the At the end of each cycle, the accumulated phase value of the phase accumulator; is the previous clock cycle (i.e. The accumulated phase value of the phase accumulator at the end of a cycle); is the frequency control word; is the bit width of the phase accumulator;

[0012] The output of the phase accumulator is mapped into the sine waveform table WLUT to obtain the sine value corresponding to the current phase, thereby generating an analog signal;

[0013] Convert the digital signal taken out from WLUT into analog voltage to form the final sinusoidal waveform output;

[0014] An adaptive power regulation algorithm based on fuzzy logic control is used to analyze the reflection intensity and spectrum characteristics of the previous pulses and use a fuzzy rule base to determine the optimal power level of the next pulse, including:

[0015] Input variable definition, set the input variable to reflection intensity Matching degree with spectrum characteristics , they reflect the detection effect of the previous pulses; the detection effect is the effect of the interaction between the sine waveform pulse and the battery;

[0016] Fuzzy, and The actual value of is converted into a linguistic variable through a membership function to form a fuzzy set;

[0017] Rule base construction, establishing a fuzzy rule base based on expert knowledge;

[0018] Reasoning and defuzzification, apply fuzzy logic reasoning to calculate the fuzzy output, that is, the power level of the next pulse, and convert the fuzzy output into a specific power value through the defuzzification process;

[0019] Construct an array of acoustic wave receiving sensors, use the phase difference of the signals received by each sensor, adjust the phase of each signal through a digital signal processing algorithm, form a virtual acoustic wave beam with enhanced directivity, and achieve focusing and imaging of a specific area. The adjustment formula is expressed as: In the formula, is the output beam signal; For the The raw signal of each sensor; is the number of sensors; is the weight factor; For time delay; is the time step; is the wave number; is the distance from the sensor to the focus point; is the angular frequency; by adjusting and , to achieve control of beam direction and shape;

[0020] The imaging process steps are as follows:

[0021] Beamforming, which calculates the phase adjustment of each sensor signal at each time step to form an acoustic beam focused on different areas based on the expected location and characteristics of the battery's internal structure;

[0022] Image reconstruction, through continuous scanning and multiple beamforming, collects information at different angles and depths, and reconstructs the acoustic image inside the battery using echo imaging or inverse scattering technology.

[0023] Optionally, the preprocessing, region division and spectrum feature extraction of the acoustic image to obtain the spectrum feature vector specifically includes:

[0024] Adaptive threshold denoising algorithm is used, and the formula is expressed as: In the formula, After processing, the position The new value of the pixel; is the normalization factor; Pixel The neighborhood set of ; is the weight function; and The center pixel and pixels in the neighborhood The original brightness value of

[0025] After denoising, Converted to grayscale value representation, each pixel Corresponding to a gray value ; Based on gray value Mapped to new enhanced grayscale values ​​through cumulative distribution function , expressed as: In the formula, is the pixel value after enhancement; is the cumulative distribution function of the original histogram; is the level of histogram equalization; is the contrast limiting function; are the upper and lower bounds of the output pixel value;

[0026] Use dilation and erosion to initially clean and enhance the image, and apply the Canny method to accurately locate the edges of key structures;

[0027] The U-Net model is trained on a labeled dataset and then applied to unlabeled images to output accurate structural segmentation masks, including:

[0028] Input and output, input the enhanced image into the U-Net model, output is a segmentation mask; The probability that each pixel value belongs to the positive electrode, negative electrode, and diaphragm in the original image; It is a U-Net network model, which consists of convolutional layers, pooling layers, and upsampling layers, and extracts multi-scale features through learning; It is the network parameter optimized through the training process;

[0029] During the training process, a labeled data set is used for training. Each image has a corresponding "label" image. The model adjusts parameters through back propagation and optimization algorithms. , to minimize the difference between the predicted mask and the actual label;

[0030] Apply the segmentation mask. The trained U-Net model is applied to the test image. The output segmentation mask Able to accurately cover all key areas of the battery;

[0031] The probability mask of the structural category to which each pixel belongs is obtained, and the final segmentation result is determined by thresholding, that is, pixels with higher probabilities are assigned to the corresponding categories to obtain a segmented image; based on the segmentation result, different analysis areas are defined, and the spectral features extracted from each area are integrated into a sound spectrum feature vector.

[0032] Optionally, the step of inputting the segmented image into a feature model for feature extraction to obtain an image feature vector specifically includes:

[0033] The number of convolution kernels used A convolution operation is performed with a convolutional layer of size 64, a kernel size of 7×7, and a stride of 2, followed by batch normalization, ReLU activation, and a max pooling layer to further reduce the spatial dimension. The convolutional kernel size of the max pooling layer is 3×3 and the stride is 2;

[0034] Apply four residual blocks to gradually increase the depth of features. The number of filters in the four residual blocks is 64, 128, 256, and 512 respectively, and obtain the residual block output;

[0035] Send the residual block output to the hierarchical fusion block to obtain the hierarchical fusion block output;

[0036] The output of the hierarchical fusion block is used as the input of the multi-scale feature block, and is input into the multi-scale feature block for upsampling and downsampling fusion of features to obtain the multi-scale feature block output;

[0037] The multi-scale feature block output is compressed through the global average pooling layer to obtain the image feature vector;

[0038] The image feature vector and the sound spectrum feature vector are concatenated into a battery feature vector.

[0039] Optionally, the step of inputting the battery feature vector into a prediction model of the battery health state to perform prediction to obtain a prediction result specifically includes:

[0040] A fully connected layer is added for feature extraction to obtain a feature vector. The number of neurons in the fully connected layer is 256, and L2 regularization is applied to avoid overfitting. Then, a Dropout layer is used to randomly discard input units with a probability of 0.5 to reduce the risk of overfitting.

[0041] Pass the feature vector into the self-attention module to obtain the self-attention output;

[0042] Create two branches. Each branch is implemented by calling the residual neuron function. The residual neuron function returns the output of a residual neuron module. The parameter 256 specifies the output dimension of each residual neuron module. The outputs of the two branches are merged through the merging layer to obtain the merged output.

[0043] Use the global average pooling layer to reduce the dimension of the combined output to obtain a one-dimensional vector;

[0044] A fully connected layer is added to the one-dimensional vector as the output layer. The number of neurons is equal to the predicted result category of the battery health status. The activation function uses softmax, and each output value represents the probability of belonging to the corresponding category.

[0045] The present invention also provides a storage battery fault detection system, the system comprising:

[0046] Battery signal acquisition module, used to collect the acoustic wave signals of the energy storage battery and construct an acoustic image;

[0047] The sound feature extraction module is used to pre-process the acoustic image, divide the area and extract the spectrum feature to obtain the spectrum feature vector;

[0048] An image feature extraction module is used to input the segmented image into a feature model for feature extraction to obtain an image feature vector;

[0049] The health state prediction module is used to input the battery feature vector into the battery health state prediction model for prediction to obtain the prediction result.

[0050] Optionally, the battery signal acquisition module specifically includes:

[0051] Design an acoustic pulse generator, including:

[0052] The direct digital frequency synthesis chip DDFS is used as the core component. DDFS generates a sine wave of the required frequency by accumulating phases. The specific steps are as follows:

[0053] Phase accumulator, the formula is: In the formula, For the At the end of each cycle, the accumulated phase value of the phase accumulator; is the previous clock cycle (i.e. The accumulated phase value of the phase accumulator at the end of a cycle); is the frequency control word; is the bit width of the phase accumulator;

[0054] The output of the phase accumulator is mapped into the sine waveform table WLUT to obtain the sine value corresponding to the current phase, thereby generating an analog signal;

[0055] Convert the digital signal taken out from WLUT into analog voltage to form the final sinusoidal waveform output;

[0056] An adaptive power regulation algorithm based on fuzzy logic control is used to analyze the reflection intensity and spectrum characteristics of the previous pulses and use a fuzzy rule base to determine the optimal power level of the next pulse, including:

[0057] Input variable definition, set the input variable to reflection intensity Matching degree with spectrum characteristics , they reflect the detection effect of the previous pulses; the detection effect is the effect of the interaction between the sine waveform pulse and the battery;

[0058] Fuzzy, and The actual value of is converted into a linguistic variable through a membership function to form a fuzzy set;

[0059] Rule base construction, establishing a fuzzy rule base based on expert knowledge;

[0060] Reasoning and defuzzification, apply fuzzy logic reasoning to calculate the fuzzy output, that is, the power level of the next pulse, and convert the fuzzy output into a specific power value through the defuzzification process;

[0061] Construct an array of acoustic wave receiving sensors, use the phase difference of the signals received by each sensor, adjust the phase of each signal through a digital signal processing algorithm, form a virtual acoustic wave beam with enhanced directivity, and achieve focusing and imaging of a specific area. The adjustment formula is expressed as: In the formula, is the output beam signal; For the The raw signal of each sensor; is the number of sensors; is the weight factor; For time delay; is the time step; is the wave number; is the distance from the sensor to the focus point; is the angular frequency; by adjusting and , to achieve control of beam direction and shape;

[0062] The imaging process steps are as follows:

[0063] Beamforming, which calculates the phase adjustment of each sensor signal at each time step to form an acoustic beam focused on different areas based on the expected location and characteristics of the battery's internal structure;

[0064] Image reconstruction, through continuous scanning and multiple beamforming, collects information at different angles and depths, and reconstructs the acoustic image inside the battery using echo imaging or inverse scattering technology.

[0065] Optionally, the sound feature extraction module specifically includes:

[0066] Adaptive threshold denoising algorithm is used, and the formula is expressed as: In the formula, After processing, the position The new value of the pixel; is the normalization factor; Pixel The neighborhood set of ; is the weight function; and The center pixel and pixels in the neighborhood The original brightness value of

[0067] After denoising, Converted to grayscale value representation, each pixel Corresponding to a gray value ; Based on gray value Mapped to new enhanced grayscale values ​​through cumulative distribution function , expressed as: In the formula, is the pixel value after enhancement; is the cumulative distribution function of the original histogram; is the level of histogram equalization; is the contrast limiting function; are the upper and lower bounds of the output pixel value;

[0068] Use dilation and erosion to initially clean and enhance the image, and apply the Canny method to accurately locate the edges of key structures;

[0069] The U-Net model is trained on a labeled dataset and then applied to unlabeled images to output accurate structural segmentation masks, including:

[0070] Input and output, input the enhanced image into the U-Net model, output is a segmentation mask; The probability that each pixel value belongs to the positive electrode, negative electrode, and diaphragm in the original image; It is a U-Net network model, which consists of convolutional layers, pooling layers, and upsampling layers, and extracts multi-scale features through learning; It is the network parameter optimized through the training process;

[0071] During the training process, a labeled data set is used for training. Each image has a corresponding "label" image. The model adjusts parameters through back propagation and optimization algorithms. , to minimize the difference between the predicted mask and the actual label;

[0072] Apply the segmentation mask. The trained U-Net model is applied to the test image. The output segmentation mask Able to accurately cover all key areas of the battery;

[0073] The probability mask of the structural category to which each pixel belongs is obtained, and the final segmentation result is determined by thresholding, that is, pixels with higher probabilities are assigned to the corresponding categories to obtain a segmented image; based on the segmentation result, different analysis areas are defined, and the spectral features extracted from each area are integrated into a sound spectrum feature vector.

[0074] Optionally, the image feature extraction module specifically includes:

[0075] A convolution operation is performed with 64 convolution kernels, 7×7 convolution kernels, and a stride of 2. Batch normalization, ReLU activation, and a max pooling layer are then used to further reduce the spatial dimension. The convolution kernel size of the max pooling layer is 3×3 and the stride is 2.

[0076] Apply four residual blocks to gradually increase the depth of features. The number of filters in the four residual blocks is 64, 128, 256, and 512 respectively, and obtain the residual block output;

[0077] Send the residual block output to the hierarchical fusion block to obtain the hierarchical fusion block output;

[0078] The output of the hierarchical fusion block is used as the input of the multi-scale feature block, and is input into the multi-scale feature block for upsampling and downsampling fusion of features to obtain the multi-scale feature block output;

[0079] The multi-scale feature block output is compressed through the global average pooling layer to obtain the image feature vector;

[0080] The image feature vector and the sound spectrum feature vector are concatenated into a battery feature vector.

[0081] Optionally, the health status prediction module specifically includes:

[0082] A fully connected layer is added for feature extraction to obtain a feature vector. The number of neurons in the fully connected layer is 256, and L2 regularization is applied to avoid overfitting. Then, a Dropout layer is used to randomly discard input units with a probability of 0.5 to reduce the risk of overfitting.

[0083] Pass the feature vector into the self-attention module to obtain the self-attention output;

[0084] Create two branches, each of which is implemented by calling the residual neuron function. The residual neuron function returns the output of a residual neuron module. The parameter 256 specifies the output dimension of each residual neuron module. The outputs of the two branches are merged through the merging layer to obtain the merged output.

[0085] Use the global average pooling layer to reduce the dimension of the combined output to obtain a one-dimensional vector;

[0086] A fully connected layer is added to the one-dimensional vector as the output layer. The number of neurons is equal to the predicted result category of the battery health status. The activation function uses softmax, and each output value represents the probability of belonging to the corresponding category.

[0087] Compared with the prior art, the present invention has the following beneficial effects:

[0088] The present invention realizes the dynamic frequency generation of the acoustic pulse generator through direct digital frequency synthesis technology, covers the entire frequency band that may cause resonance inside the battery, and improves the pertinence and sensitivity of the detection. The adaptive power adjustment algorithm combined with fuzzy logic control can intelligently adjust the transmission power according to the previous detection results, which not only ensures the penetration of the acoustic wave, but also avoids physical damage to the battery, and improves the safety of the detection; the piezoelectric ceramic sensor array with a circular + radial layout is combined with phased array signal processing technology to achieve precise focusing and three-dimensional imaging of the acoustic wave, greatly improving the spatial resolution and signal quality; the U-Net model is used for image segmentation to accurately distinguish the internal structure of the battery, and deep learning technologies such as convolutional neural network (CNN) and residual neural network are combined to extract spectrum and image features, and the feature representation is further enhanced through the self-attention mechanism. Finally, the health status is predicted through a multi-layer neural network, which improves the accuracy of fault diagnosis; the sound spectrum features and image feature vectors are combined to form a comprehensive battery feature vector. Through a carefully designed prediction model, the accurate prediction of the battery health status is achieved, and the degree of battery damage at different levels can be distinguished, providing a scientific basis for maintenance decisions. BRIEF DESCRIPTION OF THE DRAWINGS

[0089] Figure 1 A flow chart of a method for detecting a fault of an energy storage battery according to the present invention;

[0090] Figure 2 This is a structural diagram of an energy storage battery fault detection system of the present invention. DETAILED DESCRIPTION

[0091] The present invention is further described below in conjunction with specific implementation cases and drawings, but the present invention is not limited to these embodiments. Example

[0092] like Figure 1 As shown, the present invention discloses a method for detecting a fault of an energy storage battery, the method comprising:

[0093] Step S1: Collect the acoustic wave signal of the energy storage battery and construct an acoustic image.

[0094] Step S2: preprocessing, region division and spectrum feature extraction of the acoustic image to obtain a spectrum feature vector.

[0095] Step S3: Input the segmented image into the feature model for feature extraction to obtain an image feature vector.

[0096] Step S4: input the battery feature vector into the prediction model of the battery health state to perform prediction and obtain a prediction result.

[0097] The following is a detailed discussion of each step:

[0098] Step S1: Collect the acoustic wave signal of the energy storage battery and construct an acoustic image.

[0099] Step S1 specifically includes:

[0100] Design an acoustic pulse generator, including:

[0101] Traditional sound wave generators are often fixed to several preset frequencies. By using a direct digital frequency synthesis (DDFS) chip as the core component, it allows for dynamic and accurate generation of sound wave pulses over a wide spectrum. Through a high-speed digital signal processor (DSP), it generates a high-precision, high-stability sinusoidal wave signal, whose frequency can be directly set by a digital control word, achieving continuous, rapid and precise adjustment of the frequency. The frequency can be adjusted in real time to cover the entire frequency band that may cause resonance inside the battery, thereby optimizing for different types of battery structures and electrolyte characteristics.

[0102] DDFS generates a sine wave of the required frequency by accumulating phases. The specific steps are as follows:

[0103] The core of the phase accumulator is a counter. Every time a clock pulse is received, the value of the phase accumulator increases by a digital control word (frequency control word, FCW). The formula is:

[0104] In the formula, For the At the end of each cycle, the accumulated phase value of the phase accumulator; is the previous clock cycle (i.e. The accumulated phase value of the phase accumulator at the end of a cycle); The frequency control word is an unsigned integer used to control the frequency of the output signal and determines the amplitude of the phase accumulation in each clock cycle. The bit width of the phase accumulator is measured in bits, which directly affects the minimum frequency step that the phase accumulator can resolve, i.e., the frequency resolution. The modulo operation ensures that the output of the phase accumulator is always within the range it can represent and avoids overflow.

[0105] The output of the phase accumulator is mapped to a pre-calculated sine waveform table (Waveform Look-Up Table, WLUT) to obtain the sine value corresponding to the current phase, thereby generating an analog signal. The size and accuracy of the WLUT directly affect the quality of the DDS output signal.

[0106] The digital signal taken out from WLUT is converted into an analog voltage to form the final sinusoidal waveform output.

[0107] If the sound wave energy is too high, it may cause unnecessary stress to the battery. An adaptive power regulation algorithm based on fuzzy logic control is developed. The algorithm analyzes the reflection intensity and spectrum characteristics of the previous pulses and uses a fuzzy rule base to determine the optimal power level of the next pulse to ensure that the sound wave is strong enough to penetrate the battery shell and induce effective resonance, but does not cause physical damage to the battery. The specific steps of the fuzzy logic control algorithm are as follows:

[0108] Input variable definition, let the input variable be reflection intensity ( ) and spectral feature matching degree ( ), which reflect the detection effect of the previous pulses; the detection effect is the effect of the interaction between the sine waveform pulse and the battery (such as reflection intensity and spectrum characteristics); among them, A measure of the strength of the reflected signal, Determined by comparing the expected healthy battery spectrum with the actual measured spectrum.

[0109] Fuzzy, and The actual value of is converted into a linguistic variable, such as "weak", "medium", "strong", etc., through a membership function to form a fuzzy set; for example, the membership function of reflection intensity may be defined as: if R<50, it is "weak"; 50≤R<100 is "medium"; R≥100 is "strong".

[0110] Rule base construction, establishes a fuzzy rule base based on expert knowledge.

[0111] Reasoning and defuzzification, apply fuzzy logic reasoning, integrate all applicable rules, calculate the fuzzy output (the power level of the next pulse), and then convert the fuzzy output into a specific power value through the defuzzification process.

[0112] In this embodiment, the reflection intensity For example, assuming a linear membership function, we have:

[0113]

[0114] like , the spectral feature matching is ‘poor’, and the rule is: “If the reflection intensity is ‘weak’ and the spectral feature matching is ‘poor’, the next pulse power should be set to ‘high’, then the fuzzy output of power adjustment is ‘high’.

[0115] The defuzzification adopts the maximum membership method. If the membership of the "high" power is the highest, the power of the next pulse is directly set to the predefined "high" level value.

[0116] In this embodiment, combined with the flexibility of DDS, fuzzy logic control enables the system to adjust the transmission power in real time and work in conjunction with the frequency synthesizer to achieve efficient and non-destructive detection of the internal state of the battery.

[0117] The synergistic effect of frequency and power. In acoustic wave detection, the frequency of the sine wave directly affects the propagation characteristics of the acoustic wave in the medium and the efficiency of interaction with the target (i.e., the energy storage battery). Different frequencies may cause different resonance modes in the internal structure of the battery, which is related to the sensitivity and accuracy of the detection.

[0118] Adaptive regulation is based on the data collected after the sinusoidal waveform pulses of different frequencies generated by the DDS interact with the battery. For example, if the reflected signal received at a specific frequency is weak, it may indicate insufficient energy penetration or poor resonance at that frequency. At this time, the fuzzy logic control algorithm may decide to increase the power to enhance the signal, or adjust to a better frequency to continue trying.

[0119] In system integration, the sine wave output is used as a "probe" input into the battery environment, and its effect (feedback obtained through measurement) is the basis for the adaptive power regulation algorithm to make decisions. Therefore, the frequency and quality of the sine wave (guaranteed by DDS) are closely related to the efficiency and effect of the power regulation algorithm, and work together to improve the detection performance and safety of the entire system.

[0120] Construct an acoustic wave receiving sensor array, including:

[0121] Highly sensitive piezoelectric ceramic sensors are selected because they can convert mechanical vibrations into electrical signals and have the advantages of wide bandwidth and fast response. Due to their working principle, piezoelectric ceramic sensors will generate charges on their surfaces when subjected to mechanical vibrations (such as sound waves). This phenomenon is called the piezoelectric effect. Highly sensitive piezoelectric ceramic sensors are selected because they can effectively convert sound wave vibrations into electrical signals and have a wide-band response (usually covering the range from kHz to MHz), which is particularly suitable for capturing sound wave signals of different frequencies, which is crucial for identifying subtle changes in the complex structure inside the battery.

[0122] The layout strategy implements a circular + radial layout mode. The circular layout surrounds the periphery of the battery to capture circumferentially propagating sound waves; the radial sensor points to the center of the battery to detect axial reflections. This layout ensures all-round sound wave coverage and improves signal quality through multi-point data fusion.

[0123] In this embodiment, in order to capture the subtle differences in the reflected or transmitted sound waves inside the battery, a sensor array with a circular + radial layout is designed. This layout can not only improve the spatial resolution, but also enhance the signal and reduce the impact of environmental noise through data fusion of multiple receiving points. The sensor is made of piezoelectric ceramic material because of its high sensitivity and wide-band response characteristics, and can effectively receive sound wave signals from low frequency to high frequency; combined with a pulse generator with adaptive power regulation, the frequency and power of the emitted sound waves are precisely controlled, so that the sound waves can better interact with the internal structure of the battery and produce clearer reflected signals; these signals are captured by the sensor array to provide high-quality raw data for subsequent signal processing.

[0124] By using the phase difference of the signals received by each sensor, the phase of each signal is adjusted through the digital signal processing algorithm to form a virtual sound beam with enhanced directivity, so as to achieve focusing and imaging of a specific area. The adjustment formula can be expressed as: In the formula, is the output beam signal; For the The raw signal of each sensor; is the number of sensors; is the weight factor; For time delay; is the time step; is the wave number; is the distance from the sensor to the focus point; is the angular frequency; by adjusting and , achieving control of beam direction and shape.

[0125] The imaging process steps are as follows:

[0126] Beamforming, which calculates the phase adjustment of each sensor signal within each time step to form acoustic beams focused on different areas based on the expected location and characteristics of the battery's internal structure.

[0127] Image reconstruction collects information at different angles and depths through continuous scanning and multiple beamforming, and reconstructs the acoustic image inside the battery using echo imaging or inverse scattering technology to intuitively display the structural integrity and electrolyte distribution.

[0128] In this embodiment, phased array signal processing technology is introduced to achieve directional focusing and three-dimensional imaging of sound waves by applying time delay processing to the signals received by each sensor. This not only helps to accurately locate abnormal areas inside the battery, but also enhances the ability to detect tiny defects, such as microcracks or uneven distribution of local electrolytes; based on the original data collected by the sensor array, phased array technology not only improves the concentration of sound wave energy, making the sound wave resonance effect in specific areas more obvious, but also provides a powerful tool for visual analysis of the internal structure and abnormalities of the battery through imaging technology, further enhancing the diagnostic ability of the battery status.

[0129] Step S2: preprocessing, region division and spectrum feature extraction of the acoustic image to obtain a spectrum feature vector.

[0130] Step S2 specifically includes: using an adaptive threshold denoising algorithm to effectively remove background noise while retaining image details, and the formula is expressed as:

[0131] In the formula, After processing, the position The new value of the pixel (that is, the pixel value after noise reduction); is the normalization factor, ensuring The result of the calculation is a valid average, especially when the neighborhood When there is a large brightness difference between the pixels within, ensure that the denominator after summation is not zero and can correctly reflect the sum of weights; Pixel The neighborhood set of A set of adjacent pixels for pixel value calculation, usually defined as a rectangular window, including The surrounding pixels; is the weight function, which is based on the pixel and The similarity (brightness difference) between them and their spatial position Pixel Pair The influence of pixels; this formula also takes into account the spatial proximity (pixel distance distance) and intensity similarity ( and to balance detail preservation and noise removal; and The center pixel and pixels in the neighborhood The original brightness value.

[0132] In this embodiment, the formula comprehensively considers the denoising process of spatial proximity and pixel similarity, assigns a weight to each pixel in the neighborhood, and then calculates a weighted average based on these weights to replace the original pixel value, thereby achieving the purpose of removing image noise while maintaining image details.

[0133] After denoising, Converted to grayscale value representation, each pixel Corresponding to a gray value .

[0134] Based on gray value Mapped to new enhanced grayscale values ​​through cumulative distribution function , expressed as:

[0135] In the formula, is the pixel value after enhancement; is the cumulative distribution function of the original histogram; is the level of histogram equalization (for example, if it is an 8-bit grayscale image, ); is the contrast limiting function; The upper and lower bounds of the output pixel value are to avoid the appearance of extreme values, prevent over-saturation, and maintain the naturalness of the result.

[0136] In this embodiment, the above content means converting the denoised image into a grayscale space, adjusting the grayscale value distribution by a local cumulative distribution function, and finally applying a contrast-limited histogram equalization strategy to improve the local contrast of the image.

[0137] After completing the image enhancement step and obtaining the enhanced image, the next step is to perform image segmentation to accurately distinguish the key structures inside the battery, such as the positive electrode, negative electrode, and separator. This process is crucial for the subsequent frequency feature analysis. Different areas of the battery are analyzed independently to obtain more detailed health status information. The segmentation operation specifically includes:

[0138] Use dilation and erosion to initially clean and enhance the image and highlight the edges of the structure, including:

[0139] In battery image processing, by first corroding to reduce small interfering structures and then dilating to restore the connectivity of important areas, the main structural boundaries inside the battery can be initially highlighted; for example, for the distribution of electrolyte, small noise can be removed through morphological opening operations while maintaining the integrity of larger areas; these operations help to optimize the results of edge detection and make them more consistent with the real structure.

[0140] The Canny method is applied to accurately locate the edges of key structures, including: in battery images, Canny edge detection identifies the electrode edges in the image by calculating the gradient amplitude and direction; especially when the grayscale contrast between the electrode material and the surrounding medium (such as electrolyte or separator) is obvious; it balances the ratio of false detection and missed detection, and is suitable for finding clear boundaries of battery structures.

[0141] The U-Net model is trained on a labeled dataset and then applied to unlabeled images to output accurate structural segmentation masks, including:

[0142] Input and output, input the enhanced image into the U-Net model, output is a segmentation mask; The probability that each pixel value corresponds to a specific structure (such as positive electrode, negative electrode, diaphragm) at that location in the original image; It is a U-Net network model, which consists of a series of convolutional layers, pooling layers, and upsampling layers, and extracts multi-scale features through learning; It is the network parameter optimized through the training process, which determines how the model learns from the input image. Extract and interpret features.

[0143] Training process: In order for U-Net to recognize the internal structure of the battery, a labeled dataset is required for training, which means that each image has a corresponding "label" image showing the exact location of the positive electrode, negative electrode, and separator; the model adjusts parameters through back propagation and optimization algorithms (such as Adam) , to minimize the difference between the predicted mask and the actual label.

[0144] Apply the segmentation mask. The trained U-Net model is applied to the test image. The output segmentation mask It can accurately cover all key areas of the battery, facilitating subsequent independent analysis of each area.

[0145] The probability mask of the structural category to which each pixel belongs is obtained, and the final segmentation result is determined by thresholding, that is, pixels with higher probabilities are assigned to the corresponding categories to obtain a segmented image.

[0146] Based on the segmentation results, define different analysis areas, such as the positive electrode area , Negative region and electrolyte-dense areas Each area represents a concentrated area of ​​different materials or media inside the battery. They each play a different role in the operation of the battery, so their acoustic characteristics are also different. Based on these areas, targeted frequency characteristic analysis is carried out.

[0147] Positive region Analysis, using high-frequency spectrum analysis, pay attention to the changes in resonance peaks related to the characteristics of the positive electrode material, and use fast Fourier transform (FFT) to look for abnormal peaks or changes in spectral line intensity; the degradation and dendrite growth of the positive electrode material may cause changes in acoustic impedance, which in turn affects the propagation speed and reflection characteristics of the sound wave. Analyze the attenuation and spectral characteristics of the high-frequency band, because these changes may indicate aging or damage of the positive electrode material.

[0148] Negative region Analysis, select the mid- and low-frequency bands for spectrum analysis, and focus on identifying the spectrum features associated with the negative electrode, such as phase delay or frequency shift, to reflect changes in lithium deposition or SEI film; lithium dendrite growth and SEI film thickening at the negative electrode may change the elastic modulus of the electrode and affect sound wave propagation. Pay attention to phase changes in the mid- and low-frequency bands, which may be related to the deterioration of the negative electrode state.

[0149] Electrolyte-dense area Analysis, in-depth analysis is performed in the low-frequency band to find spectral features related to the state of the electrolyte, such as spectral shift or overall attenuation rate increase caused by changes in sound velocity, so as to evaluate the fullness and fluidity of the electrolyte; changes in sound velocity caused by drying and uneven distribution of the electrolyte, and increased sound wave attenuation. The spectral features of the low-frequency band are particularly important in this area, reflecting the state of the electrolyte.

[0150] The spectral features extracted from each region (such as power spectral density, peak frequency, phase shift, frequency band energy ratio, etc. at a specific frequency) are integrated into a sound spectral feature vector.

[0151] In this embodiment, integrating the spectrum features of different regions into a unified high-dimensional feature matrix can treat all regions of each battery sample as a whole, making it easier for subsequent models to understand the global health status. Each column represents a feature dimension, covering key indicators of spectrum analysis (such as power spectrum density, peak frequency, band energy ratio, etc.), and each row corresponds to a different battery sample. This organization method facilitates the standardized processing of features and the input format requirements of the model.

[0152] Step S3: Input the segmented image into the feature model for feature extraction to obtain an image feature vector.

[0153] Step S3 specifically includes:

[0154] Import the libraries and modules required to build the neural network model, including Keras, the high-level API of TensorFlow, expressed as import tensorflow as tf; from tensorflow.keras.layers import Conv2D,BatchNormalization, ReLU, Add, GlobalAveragePooling2D, Dense, Input; from tensorflow.keras.models import Model.

[0155] Define the residual block, including:

[0156] Define the residual block function residual_block, which receives three parameters: the input tensor inputs, the number of filters of the convolutional layer filters and the convolution step strides, which defaults to 1, expressed as def residual_block(inputs,filters,strides=1):.

[0157] Applies a convolutional layer to the input tensor inputs with a kernel size of 3×3, strides of strides, and padding of 'same', which means that the output has the same size as the input (if the stride is 1) because the edges are padded with zeros to keep the dimensions consistent, expressed as x=Conv2D(filters,(3,3),strides=strides, padding='same')(inputs).

[0158] Apply batch normalization to the convolutional output x, which helps speed up the training process and improve the stability and generalization ability of the model, expressed as x=BatchNormalization()(x).

[0159] Use the ReLU (Rectified Linear Unit) activation function to process x, set negative values ​​to zero, retain positive values, and increase the nonlinear expression ability of the network, expressed as x=ReLU()(x).

[0160] Apply another convolutional layer to x, with the same kernel size of 3×3, but this time the stride defaults to 1 (because it is not specified and usually the second convolution does not change size in the residual block), and still use 'same' padding to keep the size unchanged, expressed as x=Conv2D(filters,(3,3),padding='same')(x) Similarly, batch normalization is applied to the output of the second convolutional layer again, expressed as x=BatchNormalization()(x).

[0161] When the convolution stride>1, it means that the input feature map needs to be downsampled to match the size of the residual block output; this is achieved through a 1×1 convolution layer with a stride of strides and then batch normalization; this maintains dimensional consistency so that the original input inputs can be added to the output of the residual block, expressed as if strides>1:inputs=Conv2D(filters,(1,1),strides=strides,padding='same')(inputs); inputs=BatchNormalization()(inputs).

[0162] Add the original input (or the adjusted input if downsampling is performed) to x processed by two convolutional layers, two batch normalization layers, and one activation layer to form a residual connection, which ensures that the gradient can be directly passed even when the network is very deep, helping to solve the gradient disappearance problem, expressed as x=Add()([x,inputs]).

[0163] ReLU activation is applied again after the residual connection to introduce nonlinearity, expressed as x=ReLU()(x).

[0164] Finally, the output x after processing by the residual block is returned as the input of the next network layer or as the input of a higher-level residual block in the residual structure, expressed as return x.

[0165] In this embodiment, the residual block can help train deeper networks by receiving the input tensor, the number of filters, and an optional step size as parameters, performing two convolution operations internally, and adding the input to the output of the convolution operation through a shortcut connection, which helps gradient propagation.

[0166] Define the hierarchical fusion block, including:

[0167] Define the hierarchical fusion block function c2f_module, which receives three parameters: input tensor inputs, number of filters filters, and number of loops n, which defaults to 3, expressed as def c2f_odconv_module(inputs, filters,n=3):.

[0168] Apply a 3×3 convolutional layer to the input inputs with padding 'same' to keep the size unchanged, followed by batch normalization and ReLU activation, represented as x=Conv2D(filters,(3,3),padding='same')(inputs);x=BatchNormalization()(x);x=ReLU()(x).

[0169] Divide x into two equal parts along the channel dimension, split calculates half the number of filters, branch_1 and branch_2 represent the feature maps of the first and second half respectively, expressed as split=filters / / 2; branch_1=x[:,:,:,:split]; branch_2=x[:,:,:,split:].

[0170] Create a list named branches and set the variable branch_1 as the first element of the list. Here branch_1 is obtained by splitting the input feature map x before, expressed as branches=[branch_1].

[0171] Apply the residual block to branch_2 for n cycles, and add the updated branch_2 to the branches list in each cycle. This step enhances the feature expression ability of branch_2, which is expressed as for_in range(n):branch_2=residual_block(branch_2,split);branches.append(branch_2).

[0172] In this embodiment, this part of the loop is executed n times, and each loop processes branch_2 through the custom residual_block function; before the first loop starts, branch_2 has been initialized to another part of the segmented feature map (that is, the remaining channels except branch_1); after each loop calls the residual block, the updated branch_2 is appended to the branches list.

[0173] Therefore, the branches list will eventually contain different versions of the original branch_1 and branch_2 after n residual blocks; this process can be seen as a gradual construction of feature hierarchy, where branch_2 undergoes deeper feature extraction in each iteration, and then all these different levels of features are merged (via tf.concat) in subsequent steps to integrate information at different levels of abstraction. This design helps the model capture richer feature representations, thereby improving the performance of the model.

[0174] Merge all feature maps in the branches list along the last axis (i.e., channel axis) to recombine feature information from different levels, expressed as x=tf.concat(branches,axis=-1).

[0175] Another 3×3 convolutional layer is applied to the merged feature maps for feature fusion, followed by batch normalization and ReLU activation to integrate and further refine the features.

[0176] Expressed as x=Conv2D(filters,(3,3),padding='same')(x);x=BatchNormalization()(x);x=ReLU()(x).

[0177] Returns the processed feature map x as the output of the module.

[0178] In this embodiment, the hierarchical fusion block first applies a convolution to the input, and then divides the features into two halves, one half directly enters the branch, and the other half is further processed by n residual blocks, and then all branch features are spliced ​​together, and finally integrated through the convolution layer; by first splitting the input features, performing multiple residual block processing on a part of the features to enhance the expression ability, and then re-merging these features, the depth and breadth of the features are enhanced, which embodies the concept of feature decomposition and recombination, and helps to improve the recognition and expression capabilities of the model.

[0179] Define multi-scale feature blocks, including:

[0180] Define the multi-scale feature block function bifpn_block, which receives two parameters: the input feature map list flist, and the number of filters used for the convolutional layer filters, expressed as def bifpn_block(flist,filters):.

[0181] Iterate over the input feature map list flist and apply a 3×3 convolution operation to each feature map; then, apply batch normalization and ReLU activation to each convolved feature map and store them in the downsampled list, represented as downsampled=[Conv2D(filters,(3,3),padding='same')(flist[i]) for i in range(len(flist))]; downsampled=[BatchNormalization(x) for x in downsampled]; downsampled=[ReLU()(x) for x in downsampled].

[0182] Traverse the downsampled list in reverse order (starting from the second-to-last layer to the first layer), expressed as for i inrange(len(inputs)-2,-1,-1):, and perform the following operations:

[0183] Adjust the feature map downsampled[i+1] of the next layer (higher resolution) to the size of the current layer (lower resolution) to achieve upsampling, add the resized feature map to the feature map downsampled[i] of the current layer, and use the residual fusion feature, expressed as downsampled[i]=Add([down sampled[i],tf.image.resize(downsampled[i+1],tf.shape(downsampled[i])[1:3])]).

[0184] 3×3 convolution, batch normalization and ReLU activation are applied to the fused feature map again to further refine the features, expressed as downsampled[i]=Conv2D(filters,(3,3),padding='same')(downsampled[i]); downsampled[i]=BatchNormalization()(downsampled[i]); downsampled[i]=ReLU()(downsampled[i]).

[0185] Returns the first feature map downsampled[0] after processing, that is, the lowest-level feature map after multi-layer feature fusion and enhancement. This output can be regarded as an enhanced feature representation after processing by multi-scale feature blocks, represented as return downsampled[0].

[0186] Define the feature model, including:

[0187] Create an input layer and define the input dimension of the model according to the given input_shape (for example, (224, 224, 3)), expressed as inputs = Input(shape = input_shape = (224, 224, 3)).

[0188] The number of convolution kernel filters used is 64, the convolution kernel is 7×7, the stride is 2, and the boundary size is kept unchanged (padding='same'), followed by batch normalization and ReLU activation; the maximum pooling layer is used to further reduce the spatial dimension. The convolution kernel size of the maximum pooling layer is 3×3, and the stride is 2, expressed as x= Conv2D(64,(7,7),strides=2,padding='same')(inputs);x=BatchNormalization()(x);x=ReLU()(x);x=MaxPooling2D((3,3),strides=2,padding='same')(x).

[0189] Apply a series of residual blocks to gradually increase the depth of the features (the number of filters is 64, 128, 256, and 512, respectively), where the last three blocks are downsampled using a stride of 2, expressed as x = residual_block(x, 64); x = residual_block(x, 128, strides=2); x = residual_block(x, 256, strides=2); x = residual_block(x, 512, strides=2);

[0190] The output of the previous residual block is fed into the hierarchical fusion block to further refine the feature representation, expressed as x = c2f_module(x,256).

[0191] The output of the hierarchical fusion block is used as the input of the multi-scale feature block. The multi-scale expression ability of the features is further enhanced by upsampling and downsampling fusion of the features, which is expressed as features=[x]; x=bifpn_block(features,256).

[0192] The output of the multi-scale feature block is compressed through the global average pooling layer. The global average pooling layer compresses the spatial dimension into a point, retains the channel information of the feature, and obtains the image feature vector, which is expressed as x=GlobalAveragePooling2D()(x).

[0193] The image feature vector and the sound spectrum feature vector are directly concatenated into a new feature matrix by column to obtain the battery feature vector, where each row represents a sample and the number of columns is the image feature dimension plus the sound spectrum feature dimension.

[0194] Step S4: input the battery feature vector into the prediction model of the battery health state to perform prediction and obtain a prediction result.

[0195] Step S4 specifically includes:

[0196] Import the libraries and modules of TensorFlow and Keras, expressed as from tensorflow.keras.layers import Input,Dense,Dropout,BatchNormalization,ReLU,Concatenate,LayerNormalization,Add,GlobalAveragePooling1D,Attention; from tensorflow.keras.models import Model; from tensorflow.keras.regularizersimport l2.

[0197] Define the residual neuron module, including:

[0198] Define the residual neuron function residual_units, which receives two parameters: the input tensor inputs and the number of neurons units, expressed as def residual_block(inputs, units):.

[0199] A fully connected layer Dense is used to create a layer with units neurons to learn the features of the input tensor inputs. L2 regularization is applied to the weight matrix to reduce the risk of overfitting. The regularization factor is set to 0.01, expressed as x=Dense(units,kernel_regularizer=l2(0.01))(inputs).

[0200] A random dropout layer, Dropout, is applied with a ratio of 0.5. Half of the neurons are randomly turned off during training to prevent the model from over-relying on certain features and further enhance the generalization ability, which is expressed as x=Dropout(0.5)(x).

[0201] Then use the second Dense, which also has units neurons, to further process and learn the previous features, and apply L2 regularization, expressed as x=Dense(units,kernel_regularizer=l2(0.01))(x).

[0202] Determine whether the last dimension of the input tensor inputs (usually the number of channels) matches the dimension units of the residual neuron output. If it does not match, adjust the input dimension to units through a fully connected layer to ensure the consistency of the dimension during residual connection, expressed as if inputs.shape[-1]!=units:; inputs=Dense(units,kernel_regularizer=l2(0.01))(inputs).

[0203] Add the original input inputs to the transformed x. The purpose of this is to allow the network to learn the residual (i.e., the amount of change) from input to output, making it easier for the network to train deeper network structures, expressed as x=Add()([inputs,x]).

[0204] The ReLU activation function is applied to introduce nonlinearity and further enhance the expressiveness of the model, expressed as x=ReLU()(x).

[0205] Returns the output x after residual connection and activation processing as the output of the residual neuron module, which can be connected to the next layer of the network, represented by return x.

[0206] Define the self-attention module, including:

[0207] Define the self-attention module function self_attention_module, the parameter inputs represents the input tensor, usually a feature sequence or feature map, expressed as def self_attention_module(inputs):.

[0208] Layer Normalization is applied to the inputs to alleviate the internal covariance shift problem and improve the stability of model training. Epsilon=1e-6 is used to prevent division by zero, expressed as x=LayerNormalization(epsilon=1e-6)(inputs).

[0209] Use Keras' built-in Attention layer to calculate self-attention. The input of the Attention() layer is two identical tensors x, which means calculating self-attention in the input sequence, that is, the features of each position take into account the information of all other positions in the sequence. The self-attention mechanism calculates the similarity between the query, key, and value to weight the sum of the input values, thereby improving the model's ability to capture long-distance dependencies, expressed as attn_output=Attention()([x,x]).

[0210] Add the original input inputs to the output attn_output of the self-attention layer to obtain the residual connection output, which ensures the direct flow of information, helps the gradient to propagate better in the deep network, alleviates the gradient disappearance problem, and helps to learn more complex representations, expressed as x=Add()([inputs,attn_output]).

[0211] Layer normalization is applied again, this time to normalize the output after the residual connection, to further stabilize the training process and improve the model performance, expressed as x=LayerNormalization(epsilon=1e-6)(x).

[0212] The function returns the tensor x processed by the self-attention mechanism and normalized twice as the output of the module, denoted as return x.

[0213] Define the prediction model, including:

[0214] Create the input layer of the model with a shape of (input_dim,) which means that the model accepts one-dimensional data as input, and its length is determined by the dimension input_dim of the input data, i.e., the battery feature vector.

[0215] A fully connected layer (Dense layer) is added for feature extraction, with 256 neurons. L2 regularization is applied to avoid overfitting, followed by a Dropout layer, which randomly drops input units with a probability of 0.5 to reduce the risk of overfitting, expressed as x=Dense(256,kernel_regularizer=l2(0.01))(inputs);x=Dropout(0.5)(x).

[0216] The feature vector x is passed into the custom self_attention_module function, which enhances the feature representation through the self-attention mechanism, enabling the model to focus on the important parts of the input sequence, expressed as x = self_attention_module(x).

[0217] Create two branches, each of which is implemented by calling the residual_units function, which returns the output of a residual neuron module. The parameter 256 specifies the output dimension of each residual neuron module. The two branch outputs are merged through the merging layer Concatenate to achieve multi-scale fusion of features and enhance the expressiveness of the model, expressed as branch1=residual_block(x,256); branch2=residual_block(x,256); x=Concatenate()([branch1,branch2]).

[0218] Use the global average pooling layer to reduce the dimension and obtain a one-dimensional vector, represented as x =GlobalAveragePooling1D()(tf.expand_dims(x,axis=1)).

[0219] Add a fully connected layer as the output layer. The number of neurons is equal to num_classes. num_classes represents the predicted result category of the battery health status. The activation function uses softmax to convert the output into a probability distribution. Each output value represents the probability of belonging to the corresponding category, expressed as outputs = Dense(num_classes, activation='softmax')(x).

[0220] The categories of health status prediction results include:

[0221] Normal, the battery is in good working order, the internal structure is intact, the electrolyte is in normal condition, and there are no obvious signs of aging or damage.

[0222] Minor damage: The battery has minor defects, such as minor diaphragm damage, electrode corrosion or electrolyte drying up, but it will not immediately affect the battery performance.

[0223] Moderate damage: The battery has obvious defects, such as major diaphragm damage, severe electrode corrosion or electrolyte drying up, which will affect the battery performance, but it may still have a certain service life.

[0224] Severely damaged. The battery has serious defects, such as ruptured diaphragm, severe corrosion of electrodes or complete drying of electrolyte, etc. It cannot work normally and needs to be replaced immediately.

[0225] Example 2

[0226] As shown in FIG. 2 , the present invention discloses a storage battery fault detection system, the system comprising:

[0227] The battery signal acquisition module 10 is used to collect the acoustic wave signal of the energy storage battery and construct an acoustic image.

[0228] The sound feature extraction module 20 is used to pre-process the acoustic image, divide the area and extract the spectrum feature to obtain the spectrum feature vector.

[0229] The image feature extraction module 30 is used to input the segmented image into the feature model for feature extraction to obtain an image feature vector.

[0230] The health state prediction module 40 is used to input the battery feature vector into the battery health state prediction model for prediction to obtain a prediction result.

[0231] As an optional implementation, the battery signal acquisition module 10 of the present invention specifically includes:

[0232] Design an acoustic pulse generator, including:

[0233] The direct digital frequency synthesis chip DDFS is used as the core component. DDFS generates a sine wave of the required frequency by accumulating phases. The specific steps are as follows:

[0234] Phase accumulator, the formula is: In the formula, For the At the end of each cycle, the accumulated phase value of the phase accumulator; is the previous clock cycle (i.e. The accumulated phase value of the phase accumulator at the end of a cycle); is the frequency control word; is the bit width of the phase accumulator.

[0235] The output of the phase accumulator is mapped into the sine waveform table WLUT to obtain the sine value corresponding to the current phase, thereby generating an analog signal.

[0236] The digital signal taken out from WLUT is converted into an analog voltage to form the final sinusoidal waveform output.

[0237] An adaptive power regulation algorithm based on fuzzy logic control is used to analyze the reflection intensity and spectrum characteristics of the previous pulses and use a fuzzy rule base to determine the optimal power level of the next pulse, including:

[0238] Input variable definition, set the input variable to reflection intensity Matching degree with spectrum characteristics , they reflect the detection effect of the previous pulses; the detection effect is the effect of the interaction between the sinusoidal waveform pulse and the battery.

[0239] Fuzzy, and The actual value of is converted into a linguistic variable through a membership function to form a fuzzy set.

[0240] Rule base construction, establishes a fuzzy rule base based on expert knowledge.

[0241] Reasoning and defuzzification,Apply fuzzy logic reasoning to calculate the fuzzy output, i.e., the power level of the next pulse, and convert the fuzzy output into a specific power value through the defuzzification process.

[0242] Construct an array of acoustic wave receiving sensors, use the phase difference of the signals received by each sensor, adjust the phase of each signal through a digital signal processing algorithm, form a virtual acoustic wave beam with enhanced directivity, and achieve focusing and imaging of a specific area. The adjustment formula is expressed as: In the formula, is the output beam signal; For the The raw signal of each sensor; is the number of sensors; is the weight factor; For time delay; is the time step; is the wave number; is the distance from the sensor to the focus point; is the angular frequency; by adjusting and , achieving control of beam direction and shape.

[0243] The imaging process steps are as follows:

[0244] Beamforming, which calculates the phase adjustment of each sensor signal within each time step to form acoustic beams focused on different areas based on the expected location and characteristics of the battery's internal structure.

[0245] Image reconstruction, through continuous scanning and multiple beamforming, collects information at different angles and depths, and reconstructs the acoustic image inside the battery using echo imaging or inverse scattering technology.

[0246] As an optional implementation, the sound feature extraction module 20 of the present invention specifically includes:

[0247] Adaptive threshold denoising algorithm is used, and the formula is expressed as: In the formula, After processing, the position The new value of the pixel; is the normalization factor; Pixel The neighborhood set of ; is the weight function; and The center pixel and pixels in the neighborhood The original brightness value.

[0248] After denoising, Converted to grayscale value representation, each pixel Corresponding to a gray value .

[0249] Based on gray value Mapped to new enhanced grayscale values ​​through cumulative distribution function It is expressed as:

[0250] In the formula, is the pixel value after enhancement; is the cumulative distribution function of the original histogram; is the level of histogram equalization; is the contrast limiting function; are the upper and lower bounds of the output pixel value.

[0251] Dilation and erosion are used to initially clean and enhance the image, and the Canny method is applied to accurately locate the edges of key structures.

[0252] The U-Net model is trained on a labeled dataset and then applied to unlabeled images to output accurate structural segmentation masks, including:

[0253] Input and output, input the enhanced image into the U-Net model, output is a segmentation mask; The probability that each pixel value belongs to the positive electrode, negative electrode, and diaphragm in the original image; It is a U-Net network model, which consists of convolutional layers, pooling layers, and upsampling layers, and extracts multi-scale features through learning; It is the network parameter optimized through the training process.

[0254] During the training process, a labeled data set is used for training. Each image has a corresponding "label" image. The model adjusts parameters through back propagation and optimization algorithms. , to minimize the difference between the predicted mask and the actual label.

[0255] Apply the segmentation mask. The trained U-Net model is applied to the test image. The output segmentation mask Capable of accurately covering each critical area of ​​the battery.

[0256] The probability mask of the structural category to which each pixel belongs is obtained, and the final segmentation result is determined by thresholding, that is, pixels with higher probability are assigned to the corresponding category to obtain a segmented image; based on the segmentation result, different analysis areas are defined, and the spectrum features extracted from each area are integrated into a sound spectrum feature vector. As an optional implementation, the image feature extraction module 30 of the present invention specifically includes:

[0257] A convolution operation is performed using a convolution layer with 64 filters, 7×7 convolution kernels, and a stride of 2. Batch normalization, ReLU activation, and a maximum pooling layer are then used to further reduce the spatial dimension. The convolution kernel size of the maximum pooling layer is 3×3 and the stride is 2.

[0258] Four residual blocks are applied to gradually increase the depth of the features. The number of filters in the four residual blocks are 64, 128, 256, and 512, respectively, and the residual block output is obtained.

[0259] The residual block output is fed into the hierarchical fusion block to obtain the hierarchical fusion block output.

[0260] The output of the hierarchical fusion block is used as the input of the multi-scale feature block, and is input into the multi-scale feature block for upsampling and downsampling fusion of features to obtain the multi-scale feature block output.

[0261] The multi-scale feature block output is compressed through the global average pooling layer to obtain the image feature vector.

[0262] The image feature vector and the sound spectrum feature vector are concatenated into a battery feature vector.

[0263] As an optional implementation, the health status prediction module 40 of the present invention specifically includes:

[0264] A fully connected layer is added for feature extraction to obtain a feature vector; the number of neurons in the fully connected layer is 256, and L2 regularization is applied to avoid overfitting. Then, a Dropout layer is used to randomly discard input units with a probability of 0.5 to reduce the risk of overfitting.

[0265] The feature vector is passed into the self-attention module to obtain the self-attention output.

[0266] Create two branches, each of which is implemented by calling the residual neuron function. The residual neuron function returns the output of a residual neuron module. The parameter 256 specifies the output dimension of each residual neuron module. The outputs of the two branches are merged through the merging layer to obtain the merged output.

[0267] The combined output is reduced in dimensionality using a global average pooling layer to obtain a one-dimensional vector.

[0268] A fully connected layer is added to the one-dimensional vector as the output layer. The number of neurons is equal to the predicted result category of the battery health status. The activation function uses softmax, and each output value represents the probability of belonging to the corresponding category.

[0269] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for detecting energy storage battery faults, It is characterized in that The method comprises: Step S1: collecting the acoustic wave signal of the energy storage battery and constructing an acoustic image, specifically comprising: designing an acoustic wave pulse generator, specifically comprising: using a direct digital frequency synthesis chip DDFS as a core component, DDFS generates a sine wave of a required frequency by accumulating phases, and the specific steps are as follows: Phase accumulator, the formula is expressed as: In the formula, For the At the end of each cycle, the accumulated phase value of the phase accumulator; It is the accumulated phase value of the phase accumulator at the end of the previous clock cycle; is the frequency control word; is the bit width of the phase accumulator; The output of the phase accumulator is mapped into the sine waveform table WLUT to obtain the sine value corresponding to the current phase, thereby generating an analog signal; The digital signal taken out from the WLUT is converted into an analog voltage to form the final sinusoidal waveform output; an array of acoustic wave receiving sensors is constructed, and the phase difference of the signals received by each sensor is used to adjust the phase of each signal through a digital signal processing algorithm to form a virtual acoustic wave beam with enhanced directivity, thereby achieving focusing and imaging of a specific area. The adjustment formula is expressed as: In the formula, is the output beam signal; For the The raw signal of each sensor; is the number of sensors; is the weight factor; For time delay; is the time step; is the wave number; is the distance from the sensor to the focus point; is the angular frequency; by adjusting and , to control the direction and shape of the beam; The imaging process steps are as follows: Beam forming, based on the expected position and characteristics of the battery's internal structure, calculates the phase adjustment of each sensor signal within each time step to form an acoustic beam focused on different areas; Image reconstruction, through continuous scanning and multiple beamforming, collects information at different angles and depths, and reconstructs the acoustic image inside the battery using echo imaging or inverse scattering technology; Step S2: Preprocess the acoustic image, divide the region, and extract the spectrum features to obtain the spectrum feature vector, specifically including: Adopting the adaptive threshold denoising algorithm, the formula is expressed as: In the formula, After processing, the position The new value of the pixel; is the normalization factor; Pixel The neighborhood set of ; is the weight function; and The center pixel and pixels in the neighborhood The original brightness value of After denoising, Converted to grayscale value representation, each pixel Corresponding to a gray value ; Based on gray value Mapped to new enhanced grayscale values ​​through cumulative distribution function , expressed as: In the formula, is the pixel value after enhancement; is the cumulative distribution function of the original histogram; is the level of histogram equalization; is the contrast limiting function; are the upper and lower bounds of the output pixel value; Use dilation and erosion to initially clean and enhance the image, and apply the Canny method to locate the edges of the structure; The U-Net model is trained on a labeled dataset and then applied to unlabeled images to output accurate structural segmentation masks, including: Input and output, input the enhanced image into the U-Net model, output is a segmentation mask; The probability that each pixel value belongs to the positive electrode, negative electrode, and diaphragm in the original image; It is a U-Net network model, which consists of convolutional layers, pooling layers, and upsampling layers, and extracts multi-scale features through learning; It is the network parameter optimized through the training process; During the training process, a labeled data set is used for training. Each image has a corresponding "label" image. The model adjusts parameters through back propagation and optimization algorithms. , to minimize the difference between the predicted mask and the actual label; Apply the segmentation mask. The trained U-Net model is applied to the test image. The output segmentation mask Able to accurately cover all key areas of the battery; Obtain the probability mask of the structural category to which each pixel belongs, and determine the final segmentation result through thresholding, that is, assign pixels with higher probability to the corresponding category to obtain a segmented image; based on the segmentation result, define different analysis areas, and integrate the spectrum features extracted from each area into a sound spectrum feature vector; Step S3: Input the segmented image into the feature model for feature extraction to obtain an image feature vector, which specifically includes: A convolution operation is performed using a convolution layer with 64 filters, a 7×7 kernel, and a stride of 2. Batch normalization, ReLU activation, and a maximum pooling layer are then used to further reduce the spatial dimension. The convolution kernel size of the maximum pooling layer is 3×3 and the stride is 2. Apply four residual blocks to gradually increase the depth of the features. The number of filters in the four residual blocks are 64, 128, 256, and 512 respectively, and the residual block output is obtained; The output of the residual block is sent to the hierarchical fusion block to obtain the output of the hierarchical fusion block; The output of the hierarchical fusion block is used as the input of the multi-scale feature block, and is input into the multi-scale feature block for upsampling and downsampling fusion of features to obtain the output of the multi-scale feature block; The multi-scale feature block output is compressed through the global average pooling layer to obtain an image feature vector; The image feature vector and the sound spectrum feature vector are spliced ​​into a battery feature vector; Step S4: The battery feature vector is input into the battery health status prediction model for prediction to obtain a prediction result; The battery feature vector includes a spectrum feature vector and an image feature vector, specifically including: Adding a fully connected layer for feature extraction to obtain a feature vector; The number of neurons in the fully connected layer is 256, and L2 regularization is applied to avoid overfitting, followed by a Dropout layer to randomly discard input units with a probability of 0.5 to reduce the risk of overfitting; Pass the feature vector into the self-attention module to obtain the self-attention output; Create two branches, each of which is implemented by calling the residual neuron function. The residual neuron function returns the output of a residual neuron module. The parameter 256 specifies the output dimension of each residual neuron module; The outputs of the two branches are merged through the merging layer to obtain the merged output; Use the global average pooling layer to reduce the dimension of the merged output to obtain a one-dimensional vector; Add a fully connected layer to the one-dimensional vector as the output layer. The number of neurons is equal to the predicted result category of the battery health status. The activation function uses softmax, and each output value represents the probability of belonging to the corresponding category.

2. A storage battery fault detection system, It is characterized in that The system includes: a battery signal acquisition module, which is used to collect the acoustic wave signal of the energy storage battery and construct an acoustic image, specifically including: Designing an acoustic pulse generator includes: Using a direct digital frequency synthesis chip DDFS as the core component. DDFS generates a sine wave of the required frequency by accumulating phases. The specific steps are as follows: Phase accumulator, the formula is: In the formula, For the At the end of each cycle, the accumulated phase value of the phase accumulator; It is the accumulated phase value of the phase accumulator at the end of the previous clock cycle; is the frequency control word; is the bit width of the phase accumulator; The output of the phase accumulator is mapped into the sine waveform table WLUT to obtain the sine value corresponding to the current phase, thereby generating an analog signal; Convert the digital signal taken out from WLUT into analog voltage to form the final sinusoidal waveform output; Construct an array of acoustic wave receiving sensors, use the phase difference of the signals received by each sensor, adjust the phase of each signal through a digital signal processing algorithm, form a virtual acoustic wave beam with enhanced directivity, and achieve focusing and imaging of a specific area. The adjustment formula is expressed as: In the formula, is the output beam signal; For the The raw signal of each sensor; is the number of sensors; is the weight factor; For time delay; is the time step; is the wave number; is the distance from the sensor to the focus point; is the angular frequency; by adjusting and , to achieve control of beam direction and shape; The imaging process steps are as follows: beam forming, which calculates the phase adjustment of each sensor signal in each time step to form an acoustic beam focused on different areas according to the expected location and characteristics of the battery's internal structure; Image reconstruction, through continuous scanning and multiple beamforming, collects information at different angles and depths, and reconstructs the acoustic image inside the battery using echo imaging or inverse scattering technology; Sound feature extraction module, used to pre-process the acoustic image, divide the area and extract the spectrum feature to obtain the spectrum feature vector, specifically including: Adopting the adaptive threshold denoising algorithm, the formula is expressed as: In the formula, After processing, the position The new value of the pixel; is the normalization factor; Pixel The neighborhood set of ; is the weight function; and The center pixel and pixels in the neighborhood The original brightness value of After denoising, Converted to grayscale value representation, each pixel Corresponding to a gray value ; Based on gray value Mapped to new enhanced grayscale values ​​through cumulative distribution function , expressed as: In the formula, is the pixel value after enhancement; is the cumulative distribution function of the original histogram; is the level of histogram equalization; is the contrast limiting function; are the upper and lower bounds of the output pixel value; Use dilation and erosion to initially clean and enhance the image, and apply the Canny method to locate the edges of the structure; train the U-Net model based on the labeled dataset, and then apply it to the unlabeled image to output an accurate structure segmentation mask, including: Input and output, input the enhanced image into the U-Net model, output is a segmentation mask; The probability that each pixel value belongs to the positive electrode, negative electrode, and diaphragm in the original image; It is a U-Net network model, which consists of convolutional layers, pooling layers, and upsampling layers, and extracts multi-scale features through learning; It is the network parameter optimized through the training process; During the training process, a labeled data set is used for training. Each image has a corresponding "label" image. The model adjusts parameters through back propagation and optimization algorithms. , to minimize the difference between the predicted mask and the actual label; Apply the segmentation mask. The trained U-Net model is applied to the test image. The output segmentation mask Able to accurately cover all key areas of the battery; Obtain the probability mask of the structural category to which each pixel belongs, and determine the final segmentation result by thresholding, that is, assigning pixels with higher probability to the corresponding category to obtain a segmented image; define different analysis areas based on the segmentation result, and integrate the spectrum features extracted from each area into a sound spectrum feature vector; the image feature extraction module is used to input the segmented image into the feature model for feature extraction to obtain the image feature vector, which specifically includes: A convolution operation is performed using a convolution layer with 64 filters, 7×7 kernels, and a stride of 2. Batch normalization, ReLU activation, and a max pooling layer are then used to further reduce the spatial dimension. The convolution kernel size of the max pooling layer is 3×3 and the stride is 2. Apply four residual blocks to gradually increase the depth of the features. The number of filters in the four residual blocks are 64, 128, 256, and 512 respectively, and the residual block output is obtained; The output of the residual block is sent to the hierarchical fusion block to obtain the output of the hierarchical fusion block; The output of the hierarchical fusion block is used as the input of the multi-scale feature block, and is input into the multi-scale feature block for upsampling and downsampling fusion of features to obtain the output of the multi-scale feature block; The output of the multi-scale feature block is compressed through the global average pooling layer to obtain an image feature vector; The image feature vector and the sound spectrum feature vector are concatenated into a battery feature vector; The health status prediction module is used to input the battery feature vector into the battery health status prediction model for prediction to obtain the prediction result; the battery feature vector includes a spectrum feature vector and an image feature vector, specifically including: A fully connected layer is added for feature extraction to obtain a feature vector. The number of neurons in the fully connected layer is 256, and L2 regularization is applied to avoid overfitting. Then, a Dropout layer is used to randomly discard input units with a probability of 0.5 to reduce the risk of overfitting. Pass the feature vector into the self-attention module to obtain the self-attention output; Create two branches, each of which is implemented by calling the residual neuron function. The residual neuron function returns the output of a residual neuron module. The parameter 256 specifies the output dimension of each residual neuron module; The outputs of the two branches are merged through the merging layer to obtain the merged output; Use the global average pooling layer to reduce the dimension of the merged output to obtain a one-dimensional vector; Add a fully connected layer to the one-dimensional vector as the output layer. The number of neurons is equal to the predicted result category of the battery health status. The activation function uses softmax, and each output value represents the probability of belonging to the corresponding category.