Electrochemical noise corrosion state identification and early warning method and system
By fusing multidimensional features of electrochemical noise signals and using deep learning models, the problems of insufficient signal denoising and feature extraction in existing electrochemical noise analysis technologies have been solved, enabling accurate identification and graded early warning of corrosion status, and improving the accuracy of corrosion monitoring and operation and maintenance efficiency.
Patent Information
- Application Number
- CN202610617055.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-07
- Publication Date
- 2026-07-10
AI Technical Summary
Existing electrochemical noise analysis methods have shortcomings in signal denoising and feature extraction, making it difficult to accurately identify corrosion states and lacking a graded early warning mechanism, resulting in inaccurate corrosion monitoring and high operation and maintenance costs.
Electrochemical workstations are used to collect potential noise and current noise signals. Multidimensional features are fused through wavelet analysis and deep learning models to construct a corrosion state recognition model with a time-series feature extraction layer and an attention weight allocation layer, thereby achieving signal denoising, feature extraction, and hierarchical early warning.
It significantly improves the accuracy of corrosion status identification and the practicality of early warning, and realizes the fully automated processing from signal acquisition to graded early warning, reducing operation and maintenance costs and equipment failure risks.
Smart Images

Figure CN122361265A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of corrosion monitoring and early warning technology, and in particular to an electrochemical noise corrosion state identification and early warning method and system. Background Technology
[0002] In industrial production and infrastructure operation and maintenance, corrosion failure of metal components is one of the core causes of equipment failure and safety accidents, directly affecting production efficiency and operational safety. Electrochemical noise signals contain weak electrical signals from electrode reactions during corrosion, which can reflect the corrosion dynamics of the metal surface in real time and are an important data source for corrosion status monitoring. Traditional electrochemical noise analysis methods mainly rely on single parameters such as noise resistance for corrosion assessment. However, due to the complex on-site environment, electrochemical noise signals are often affected by various factors such as electromagnetic interference and temperature fluctuations, resulting in a large amount of noise mixed in the signal, making it difficult to accurately extract corrosion characteristics.
[0003] Existing electrochemical noise processing techniques suffer from insufficient specificity in signal denoising. Commonly used filtering methods tend to over-smooth the signal, losing corrosion-sensitive information and affecting the accuracy of subsequent feature extraction. Regarding feature extraction, existing methods often employ single time-domain or frequency-domain features, failing to fully integrate multi-dimensional information from potential and current noise, resulting in an incomplete characterization of the corrosion state. In corrosion identification, traditional methods primarily rely on threshold judgments or simple classification models, lacking a grasp of the temporal evolution of the corrosion process, thus requiring improvement in identification accuracy.
[0004] A more prominent problem is that existing technologies often only provide a binary judgment of "corroded" or "not corroded" in their early warning mechanisms, failing to provide graded warnings based on the severity of corrosion. This lack of granularity makes it difficult for maintenance personnel to make accurate decisions and guide maintenance timing. This coarse-grained early warning approach is insufficient to meet the needs of refined corrosion management in real-world industrial scenarios, easily leading to untimely or excessive preventative maintenance, increasing maintenance costs and safety risks.
[0005] Therefore, there is an urgent need for a technical solution that can effectively remove electrochemical noise signal interference, fully integrate multi-dimensional feature information, accurately identify corrosion status, and achieve graded early warning, so as to improve the accuracy of corrosion monitoring of metal components and the practicality of early warning. Summary of the Invention
[0006] The purpose of this invention is to overcome the shortcomings of the prior art and provide an electrochemical noise corrosion state identification and early warning method and system. By performing special noise reduction processing on the collected signals, integrating multi-dimensional feature information, and using a deep learning model to capture the temporal evolution law of the corrosion process, the invention achieves accurate identification and graded early warning of corrosion state, providing timely and reliable technical support for corrosion protection and preventive maintenance of industrial components.
[0007] To achieve the above objectives, in a first aspect, the present invention provides an electrochemical noise corrosion state identification and early warning method, comprising the following steps:
[0008] Step S1: Use an electrochemical workstation to collect the potential noise signal and current noise signal of the target component, calculate the ratio of the potential noise signal to the current noise signal to obtain the noise resistance, preprocess the potential noise signal, the current noise signal and the noise resistance to construct an electrochemical noise dataset;
[0009] Step S2: Wavelet analysis is used to decompose the potential noise signal and the current noise signal in the electrochemical noise dataset to obtain decomposed components. The decomposed components are denoised and reconstructed to obtain denoised potential noise signal and current noise signal. Statistical features of the denoised potential noise signal and current noise signal are extracted. Features of the decomposed components are extracted. The statistical features, features of the decomposed components and noise resistance are combined to form a multidimensional feature matrix. Feature filtering is performed on the multidimensional feature matrix to obtain a corrosion state identification and early warning dataset.
[0010] Step S3: Construct a fusion model including a temporal feature extraction layer and an attention weight allocation layer, and train and validate the fusion model using the corrosion state recognition and early warning dataset to obtain a corrosion state recognition model;
[0011] Step S4: Input the characteristic parameters obtained after processing the real-time collected potential noise signal, current noise signal and noise resistance of the target component in step S2 into the corrosion state recognition model to obtain the corrosion state recognition result, count the proportion of specific corrosion states within a preset time period, trigger the corresponding level of early warning signal according to the proportion and output the early warning information.
[0012] Further, in step S1, a three-electrode system is used to acquire the potential noise signal and the current noise signal. The three-electrode system includes two working electrodes and a reference electrode made of the same material. The noise resistance is calculated using the formula:
[0013] ;
[0014] in, The noise resistor, The effective value of the potential noise signal is... The effective value of the current noise signal;
[0015] The preprocessing includes segmenting the potential noise signal and the current noise signal, removing outlier data points, and standardizing the signal. The standardization process uses the following formula:
[0016] ;
[0017] in, For standardized signal data, The original signal data, The mean of the data segment. This represents the standard deviation of the data segment.
[0018] Further, in step S2, the wavelet analysis selects the db4 wavelet as the wavelet basis function, and the wavelet decomposition is performed into a 4-level wavelet decomposition to obtain low-frequency approximate components and high-frequency detail components. The denoising process performs soft-threshold denoising on the high-frequency detail components, and the soft threshold is calculated using the formula:
[0019] ;
[0020] in, For the threshold, The standard deviation of noise. The signal length is given; the statistical features include kurtosis and skewness, and the kurtosis feature is expressed by the formula:
[0021] ;
[0022] in, Kurtosis is a characteristic feature. For the reconstructed signal data, The mean of the reconstructed signal data. The expectation operator is used; the skewness characteristic is expressed by the formula:
[0023] ;
[0024] in As a skewness feature, For the reconstructed signal data, The mean value of the reconstructed signal data.
[0025] Furthermore, in step S2, the features of the decomposed components include the energy features, standard deviation features, maximum value features, and minimum value features of the low-frequency approximation components and the high-frequency detail components. The feature selection uses the Pearson correlation coefficient to calculate the correlation between each feature and the corrosion state label, and removes redundant features whose correlation coefficient exceeds a preset threshold.
[0026] Further, in step S3, the temporal feature extraction layer is an LSTM network layer, the attention weight allocation layer is an Attention mechanism layer, and the training and verification include dividing the corrosion state recognition and early warning dataset into a training set and a test set, using the training set for parameter training, and using the test set for performance verification; in step S4, the preset time period is 1 hour, the specific corrosion state includes metastable corrosion and steady-state corrosion, the corrosion state recognition result includes slight corrosion, moderate corrosion, and severe corrosion, and triggering a blue warning, orange warning, or red warning according to different numerical ranges of the proportion.
[0027] Secondly, the present invention provides an electrochemical noise corrosion state identification and early warning system, comprising:
[0028] The data acquisition module is used to acquire the potential noise signal and current noise signal of the target component using an electrochemical workstation, calculate the ratio of the potential noise signal to the current noise signal to obtain the noise resistance, and preprocess the potential noise signal, the current noise signal and the noise resistance to construct an electrochemical noise dataset.
[0029] The feature extraction module is used to perform wavelet analysis on the potential noise signal and the current noise signal in the electrochemical noise dataset to obtain decomposed components, perform denoising processing on the decomposed components and reconstruct the denoised potential noise signal and current noise signal, extract statistical features of the denoised potential noise signal and current noise signal, extract features of the decomposed components, combine the statistical features, the features of the decomposed components and the noise resistance to form a multidimensional feature matrix, and perform feature filtering on the multidimensional feature matrix to obtain a corrosion state identification and early warning dataset. The feature extraction module receives the output of the data acquisition module.
[0030] The model training module is used to construct a fusion model including a temporal feature extraction layer and an attention weight allocation layer. The fusion model is trained and validated using the corrosion state recognition and early warning dataset to obtain a corrosion state recognition model. The model training module receives the output of the feature extraction module.
[0031] The identification and early warning module is used to input the feature parameters obtained by the feature extraction module after processing the real-time collected potential noise signal, current noise signal and noise resistance of the target component into the corrosion state identification model to obtain the corrosion state identification result, count the proportion of specific corrosion states within a preset time period, trigger the corresponding level of early warning signal according to the proportion and output the early warning information. The identification and early warning module receives the corrosion state identification model output by the model training module and the real-time feature parameters output by the feature extraction module.
[0032] Furthermore, in the data acquisition module, a three-electrode system is used to acquire the potential noise signal and the current noise signal. The three-electrode system includes two working electrodes and a reference electrode made of the same material. The noise resistance is calculated using the following formula:
[0033] ;
[0034] in, The noise resistor, The effective value of the potential noise signal is... The effective value of the current noise signal is given; the preprocessing includes segmenting the potential noise signal and the current noise signal, removing outlier data points, and standardizing the signal. The standardization process uses the following formula:
[0035] ;
[0036] in, For standardized signal data, The original signal data, The mean of the data segment. This represents the standard deviation of the data segment.
[0037] Furthermore, in the feature extraction module, the wavelet analysis selects the db4 wavelet as the wavelet basis function, and the wavelet decomposition is divided into 4 levels of wavelet decomposition to obtain low-frequency approximate components and high-frequency detail components. The denoising process performs soft-threshold denoising on the high-frequency detail components, and the soft threshold is calculated using the following formula:
[0038] ;
[0039] in, For the threshold, The standard deviation of noise. The signal length is given; the statistical features include kurtosis and skewness, and the kurtosis feature is expressed by the formula:
[0040] ;
[0041] in, Kurtosis is a characteristic feature. For the reconstructed signal data, The mean of the reconstructed signal data. The expectation operator is used; the skewness characteristic is expressed by the formula:
[0042] ;
[0043] in, As a skewness feature, For the reconstructed signal data, The mean value of the reconstructed signal data.
[0044] Furthermore, in the feature extraction module, the features of the decomposed components include the energy features, standard deviation features, maximum value features, and minimum value features of the low-frequency approximation components and the high-frequency detail components. The feature selection uses the Pearson correlation coefficient to calculate the correlation between each feature and the corrosion state label, and removes redundant features with correlation coefficients exceeding a preset threshold.
[0045] Furthermore, in the model training module, the temporal feature extraction layer is an LSTM network layer, the attention weight allocation layer is an Attention mechanism layer, and the training and validation include dividing the corrosion state recognition and early warning dataset into a training set and a test set, using the training set for parameter training, and using the test set for performance validation; in the recognition and early warning module, the preset time period is 1 hour, the specific corrosion state includes metastable corrosion and steady-state corrosion, the corrosion state recognition result includes slight corrosion, moderate corrosion, and severe corrosion, and triggers a blue warning, an orange warning, or a red warning according to different numerical ranges of the proportion.
[0046] Compared with the prior art, the present invention has the following beneficial effects:
[0047] (1) This invention uses an electrochemical workstation to collect potential noise signals and current noise signals of the target component and calculates the noise resistance. Wavelet analysis is used to perform multi-layer wavelet decomposition on the signal and threshold denoising of high-frequency detail components before reconstruction, effectively eliminating environmental electromagnetic interference and random noise, thus improving signal purity. By extracting the kurtosis and skewness features of the denoised signal, and combining them with the energy, standard deviation, maximum, and minimum features of the wavelet decomposition components, a multi-dimensional feature matrix is formed with the noise resistance, comprehensively characterizing the signal characteristics of the corrosion process. Feature filtering is used to remove redundant features to obtain a corrosion state identification and early warning dataset, avoiding model overfitting caused by feature redundancy. A fusion model including a temporal feature extraction layer and an attention weight allocation layer is constructed. The temporal feature extraction layer captures the temporal evolution of the corrosion process, while the attention weight allocation layer strengthens the weights of corrosion-sensitive features, improving the model's focus on key corrosion features. By inputting processed real-time feature parameters into a trained corrosion state recognition model, the system obtains recognition results, statistically analyzes the proportion of specific corrosion states within a preset time period, and triggers corresponding warning signals. This achieves a complete technical solution encompassing signal acquisition, noise reduction, feature extraction, model recognition, and tiered warning. Compared to existing technologies' single-parameter evaluation and binary judgment methods, this invention achieves a recognition accuracy rate of over 85%, significantly improving the accuracy of corrosion monitoring and the practicality of warnings.
[0048] (2) This invention employs a three-electrode system to acquire potential noise and current noise signals. A stable electrochemical measurement system is constructed using two identical working electrodes and a reference electrode, ensuring the consistency and reliability of signal acquisition. The noise resistance is obtained by calculating the ratio of the effective value of the potential noise signal to the effective value of the current noise signal. This parameter comprehensively reflects the coupling relationship between potential noise and current noise, providing an important characteristic parameter for corrosion status assessment. By segmenting the signal and removing outlier data points, the impact of transient interference on the overall data quality is effectively avoided. Standardization processing, by subtracting the mean of the data segments from the original signal data and dividing by the standard deviation of the data segments, eliminates the influence of signal amplitude differences across different time periods, making the data acquired under different operating conditions comparable and laying a high-quality data foundation for subsequent feature extraction and model training.
[0049] (3) This invention selects the db4 wavelet as the wavelet basis function for four-level wavelet decomposition to obtain low-frequency approximate components and high-frequency detail components. The db4 wavelet has good time-frequency localization characteristics and the ability to capture abrupt signals, and can effectively separate corrosion signals and noise signals. By performing soft thresholding denoising on the high-frequency detail components, the threshold is adaptively calculated based on the noise standard deviation and signal length, so as to retain the useful information of the corrosion signal to the maximum extent while removing noise. By extracting kurtosis features to reflect the sharpness of the signal distribution, it is sensitive to abrupt signals in the corrosion process. By extracting skewness features to reflect the symmetry of the signal distribution, it has a high degree of discrimination for changes in the corrosion state. By extracting energy features, standard deviation features, maximum value features and minimum value features of the low-frequency approximate components and high-frequency detail components, the energy distribution and fluctuation characteristics of the signal are characterized at multiple scales in the wavelet domain. By screening features and eliminating redundant features through Pearson correlation coefficient, the effectiveness and compactness of the feature matrix are ensured. Compared with the single feature extraction method of the prior art, the multi-dimensional feature fusion strategy of this invention makes the characterization of the corrosion state more comprehensive and accurate.
[0050] (4) This invention sets the temporal feature extraction layer as an LSTM network layer, utilizing long short-term memory to capture the temporal evolution of electrochemical noise signals, effectively memorizing historical information of the corrosion process and establishing time dependencies. By setting the attention weight allocation layer as an Attention mechanism layer, different weights are assigned to features at different time steps, enabling the model to automatically focus on the most important moments and features for corrosion state discrimination, thus strengthening the role of corrosion-sensitive features. By dividing the dataset into training and testing sets for parameter training and performance verification respectively, the generalization ability of the model is guaranteed. By statistically analyzing the proportion of specific corrosion states such as metastable and steady-state corrosion within one hour, the corrosion identification results are refined into three levels: slight corrosion, moderate corrosion, and severe corrosion. Blue, orange, or red warnings are triggered based on different numerical ranges of the proportion, achieving a leap from coarse-grained identification to refined hierarchical warnings, providing clear guidance on maintenance timing for maintenance personnel. Compared with the binary judgment method of existing technologies, the hierarchical warning mechanism of this invention can formulate differentiated maintenance strategies based on the severity of corrosion, effectively reducing the risk of equipment failure and maintenance costs.
[0051] (5) This invention achieves electrochemical noise corrosion state identification and early warning function through a systematic approach. The data acquisition module is responsible for acquiring signals, calculating noise resistance, and preprocessing, providing high-quality raw data for the entire system. The feature extraction module is responsible for wavelet analysis denoising, statistical feature extraction, wavelet coefficient feature extraction, and feature screening, transforming the raw signal into a multi-dimensional feature vector that can characterize the corrosion state. The model training module is responsible for constructing a fusion model and training and validating it, generating a corrosion state identification model with high-precision identification capabilities. The identification and early warning module is responsible for receiving real-time feature parameters and inputting them into the model for identification, statistically analyzing the proportion of corrosion states, and triggering graded early warnings, thus realizing the real-time and automated nature of corrosion monitoring. The modules form a complete identification and early warning system through clear data transmission relationships, realizing fully automated processing from data acquisition to early warning output. Compared with the existing technology that requires manual analysis and judgment, the systematic implementation scheme of this invention significantly improves the efficiency and real-time performance of corrosion monitoring, reduces the dependence on manual experience, and has good engineering application value. Attached Figure Description
[0052] Figure 1 This is a flowchart of the electrochemical noise signal processing and feature extraction of the present invention;
[0053] Figure 2 This is a confusion matrix diagram of the eigenvalue Pearson correlation coefficient of the present invention;
[0054] Figure 3 This is a diagram illustrating the corrosion state identification effect of the test set in this invention.
[0055] Figure 4 This is the corrosion state classification and early warning output diagram of the present invention. Detailed Implementation
[0056] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the present invention or its application or use. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0057] Unless otherwise specifically stated, the relative arrangement, expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the invention. Techniques, methods, and apparatus known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and apparatus should be considered part of the specification. In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0058] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist, for example... and / or , can represent existence alone Simultaneously exist and Existing alone These are the three cases. Additionally, the character " / " in this article generally indicates that the objects before and after it have an "or" relationship.
[0059] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0060] Example 1
[0061] This embodiment aims to overcome the shortcomings of existing electrochemical noise corrosion identification methods, such as weak anti-interference capabilities, insufficient feature utilization, and lack of hierarchical early warning. It achieves accurate denoising of potential noise and current noise through wavelet analysis, integrates kurtosis and skewness statistical features with noise resistance parameters, and combines the time-series signal processing capabilities of the LSTM-Attention model to construct a fusion model that enables accurate identification and hierarchical early warning of corrosion status. This provides timely information for the safe operation and maintenance of industrial components and is of great significance for ensuring production safety and reducing operation and maintenance costs.
[0062] like Figure 1 As shown, the electrochemical noise corrosion state identification and early warning method disclosed in this embodiment includes steps such as electrochemical noise signal acquisition, wavelet denoising processing, feature extraction, model training, and early warning output. The technical solution of this embodiment will be explained in detail below. Step S1: Acquire electrochemical noise signals of the target component and construct an electrochemical noise dataset. In this embodiment, the surface of the hydraulic support column is selected as the target component, and its electrochemical noise signals under mine water conditions are acquired. The electrochemical noise signals include potential noise and current noise. The noise resistance is calculated using both, and the voltage and current kurtosis and skewness, as well as the wavelet coefficients and their statistical characteristics obtained by wavelet decomposition, are extracted. All the obtained data specifically includes three aspects. First, the potential noise and current noise signals are acquired through an electrochemical workstation, with a sampling frequency set to 5Hz and a continuous acquisition time. Second, the noise resistance is calculated using formulas, and the wavelet coefficients and their statistical characteristics are obtained through wavelet decomposition. Third, the corrosion state labels are determined by comparing voltage and current trends in the later stages, classifying them into three states: steady-state corrosion, metastable corrosion, and passive corrosion.
[0063] Step S1 specifically includes the following sub-steps.
[0064] Step S11: The data acquisition system is deployed using a DH7006 electrochemical workstation equipped with a dedicated three-electrode probe. Two working electrodes are standard samples of the same material as the target component, and the reference electrode is a saturated calomel electrode. The probe is fixed to the surface of the target component, ensuring good contact. A data processing terminal is deployed to establish the acquisition-preprocessing link.
[0065] Step S12: Data Acquisition and Preliminary Preprocessing. The online electrochemical workstation is started, and potential noise and current noise signals are continuously acquired at a sampling frequency of 5Hz and transmitted to the data processing terminal. The terminal segments the signals, dividing them into 6-second segments. Outlier data points are removed using the 3σ criterion, and data format standardization is achieved using the Z-score standardization method. The Z-score standardization formula is: ,in For standardized signal data, The original signal data, The mean of the data segment. This represents the standard deviation of the data segment.
[0066] Step S13: Noise Resistance Calculation. Calculate the effective value of the potential noise and current noise signals for each data segment. , According to the formula Calculate the noise resistance, where The noise resistor, This represents the effective value of the potential noise signal. This represents the effective value of the current noise signal.
[0067] Step S14: Dataset Integration. The standardized potential noise, current noise signals, noise resistance, and corrosion state labels are integrated to obtain a complete electrochemical noise dataset.
[0068] Step S2: Perform wavelet denoising and feature extraction on potential noise and current noise to obtain a corrosion state identification and early warning dataset.
[0069] Step S21: Wavelet Decomposition. Using the Matlab wavelet analysis toolbox, the standardized potential noise and current noise signal segments are decomposed into 4-level db4 wavelet decompositions. The db4 wavelet is selected as the wavelet basis function, and the potential noise and current noise signal segments are decomposed into 4-level wavelet decompositions respectively. This decomposition yields a low-frequency approximation component cA4 and high-frequency detail components cD1, cD2, cD3, and cD4, resulting in one low-frequency approximation component and four high-frequency detail components.
[0070] Step S22: High-frequency component denoising uses an improved soft-threshold denoising method to denoise the four high-frequency detail components. The noise standard deviation of each high-frequency detail component is calculated. According to the threshold formula Determine the threshold values for each layer, where For the threshold, Given the signal length, wavelet denoising based on Donoho soft thresholding is performed on the high-frequency detail components to correct the denoised high-frequency detail components.
[0071] Step S23: Signal Reconstruction and Statistical Feature Extraction. The denoised high-frequency detail components and low-frequency approximation components are reconstructed using inverse wavelet transform to obtain the denoised potential noise and current noise signals. The kurtosis and skewness characteristics of the reconstructed potential noise and current noise are calculated respectively. The kurtosis calculation formula is as follows: ,in Kurtosis is a characteristic feature. For the reconstructed signal data, The mean of the reconstructed signal data. This is the expectation operator. The skewness calculation formula is: ,in As a skewness feature, For the reconstructed signal data, The mean of the reconstructed signal data is given. Through the above calculations, four characteristic parameters are formed: potential noise kurtosis Kv, potential noise skewness Sv, current noise kurtosis Ki, and current noise skewness Si.
[0072] Statistical features were extracted hourly from the denoised low-frequency approximation component cA4 and high-frequency detail components cD1 to cD4. These statistical features included mean, standard deviation, maximum value, minimum value, and energy characteristics, forming a set of wavelet domain feature parameters. Literature review was conducted to select the five wavelet coefficients whose statistical features contributed most to distinguishing corrosion states. Specifically, these included the energy characteristics of the current 2-layer detail wavelet coefficient cD2, the standard deviation characteristics of the current 2-layer detail wavelet coefficient cD2, the energy characteristics of the current 1-layer detail wavelet coefficient cD1, the maximum value characteristics of the 4-layer approximation wavelet coefficient cA4, and the minimum value characteristics of the voltage 2-layer detail wavelet coefficient cD2.
[0073] Step S24: Feature Matrix Construction and Filtering: This involves constructing and filtering the feature matrix based on the following parameters: potential noise kurtosis, potential noise skewness, current noise kurtosis, current noise skewness, and noise resistance. Combined with the above five statistical features of wavelet coefficients, a multidimensional feature matrix is formed.
[0074] like Figure 2 As shown, Pearson correlation coefficients are used to filter features in the multidimensional feature matrix. The Pearson correlation coefficients between each feature and the corrosion state label are calculated, and redundant features with excessively high correlation coefficients are filtered out. The correlation coefficient heatmap shows that the current detail energy 2 energy, detail energy 2 standard deviation, current detail coefficient 1 energy, and the maximum value of the current approximation coefficient have excessively high correlation coefficients. To avoid feature redundancy, only current detail energy 2 energy is retained as the core feature. The remaining features form the core feature matrix, which corresponds to the corrosion state label, ultimately yielding the corrosion state identification and early warning dataset.
[0075] Step S3: Build an LSTM-Attention fusion model and train and optimize it to obtain an erosion state recognition model. The construction of the LSTM-Attention fusion model is mainly divided into two parts: model training and performance testing.
[0076] Step S31: Model Architecture Construction. The model includes a wavelet analysis preprocessing layer, an LSTM temporal feature extraction layer, an Attention weight allocation layer, and an early warning decision layer. The wavelet analysis preprocessing layer is used to quickly denoise the input potential noise and current noise signals. The LSTM temporal feature extraction layer is used to capture the temporal variation patterns of core features. The Attention mechanism adopts a custom single-head attention, which strengthens important time steps. The corrosion state recognition early warning dataset is divided into a training set and a test set in a 7:3 ratio. The training set contains five days of data, and the test set contains two days of data. The training set is used for model parameter training, and the test set is used for model performance verification. The model training uses 30 time steps and a time window of 6 seconds to learn temporal features.
[0077] Step S32: Hyperparameter Optimization. Hyperparameters were optimized using the controlled variable method, testing different candidate values for the learning rate (0.0005, 0.001, 0.002), the number of iterations (200, 300, 500), the dropout probability (0.2, 0.25, 0.3), and the number of LSTM hidden layer units (16, 32, 64), etc., to obtain the optimal hyperparameter combination. The final optimal model parameters were determined to be a learning rate of 0.001, 500 iterations, 32 LSTM hidden layer units, and a dropout probability of 0.25. The LSTM temporal feature extraction layer consisted of two LSTM layers, each with 32 hidden layer units.
[0078] Step S33: Model training uses the cross-entropy loss function as the optimization objective. To address the imbalance in sample sizes among the three erosion states (passive, metastable, and steady-state), class weights are assigned to the loss function to ensure the model pays sufficient attention to the less sampled metastable and steady-state pitting erosions. The Adam optimizer is used with an initial learning rate of 0.001. Weight decay is introduced to enhance the model's generalization ability, and the number of training iterations is set to 500. An early stopping mechanism is employed to prevent overfitting; training automatically stops when the model's performance on the validation set fails to improve for 12 consecutive rounds. Step S34: Model validation uses 70% of the model's data for training. After training, the remaining 30% of untrained test set data is input. The model's performance is validated using the test set, employing a temporal granularity adaptation mechanism of 30 time-step learning followed by 1-hour validation. Validation and evaluation are completed in 1-hour increments, and hyperparameters are adjusted accordingly.
[0079] like Figure 3As shown, by comparing with manually labeled real corrosion states, the accuracy rates for identifying metastable and steady-state corrosion are both ≥80%, with an overall accuracy rate of 85%. This verification mechanism is adapted to the 1-hour time granularity of manual identification, making the verification results more consistent with actual operation and maintenance decision-making scenarios. The optimal LSTM-Attention fusion model is obtained as the corrosion state identification model. Step S4: Based on the trained model, corrosion state warning is performed, and the warning results are output.
[0080] Step S41: Identify the proportion of corrosion states. The characteristic parameters obtained after processing the real-time collected potential noise signal, current noise signal, and noise resistance of the target component in step S2 are input into the corrosion state identification model to achieve fine-grained identification of the corrosion state. The model outputs the corrosion state identification results, classifying corrosion states into three categories: slight corrosion, moderate corrosion, and severe corrosion. Severe corrosion includes metastable and steady-state corrosion. The proportion P of steady-state and metastable corrosion states within each hour is calculated.
[0081] Step S42: Triggering of graded early warnings. Early warnings are triggered according to the percentage P. Slight corrosion (P < 20%) corresponds to a blue warning; moderate corrosion (20% ≤ P < 50%) corresponds to an orange warning; and severe corrosion (P ≥ 50%) corresponds to a red warning.
[0082] Step S43: Output early warning information.
[0083] like Figure 4 As shown, the early warning information is output in the form of a continuous early warning chart, which presents the corrosion state evolution trend and early warning level on an hourly basis. The output early warning information includes the corrosion state level, early warning time, key feature parameter values and trend charts, and is stored in the database to provide a basis for operation and maintenance decisions. A time-series granularity adaptation mechanism of 30 time steps learning and 1 hour verification is adopted to complete model verification and early warning result output on an hourly basis, balancing the time-series accuracy of model recognition with the adaptability to actual operation and maintenance decisions. The corresponding level of early warning is triggered based on the proportion of dangerous corrosion states within 1 hour.
[0084]
Example 2
[0085] This embodiment discloses an electrochemical noise corrosion state identification and early warning system. The system includes a data acquisition module, a feature extraction module, a model training module, and an identification and early warning module.
[0086] The data acquisition module uses an online electrochemical workstation and a dedicated probe for a three-electrode system to acquire the potential noise and current noise signals of the target component, calculate the noise resistance, and perform preliminary signal preprocessing to obtain an electrochemical noise dataset. This module implements the function corresponding to step S1 in Example 1.
[0087] The feature extraction module uses db4 wavelet to denoise the potential noise and current noise signals, extracting the kurtosis, kurtosis, and skewness features of the potential noise. These features are then combined with noise resistance and wavelet coefficients to form a multidimensional feature matrix. Redundant features are removed by filtering using the Pearson correlation coefficient, resulting in a corrosion state identification and early warning dataset. This module implements the function corresponding to step S2 in Example 1.
[0088] The model training module trains, validates, and optimizes the LSTM-Attention fusion model based on the corrosion state recognition and early warning dataset to obtain the optimal recognition and early warning model. This module implements the function corresponding to step S3 in Example 1.
[0089] The identification and early warning module receives and processes the collected feature parameters and noise resistance, completes fine-grained corrosion state identification over 30 time steps using an optimal model, and completes verification using a time-series granularity adaptation mechanism of 30 time steps learning followed by 1 hour verification. Based on the proportion of dangerous corrosion states within 1 hour, it triggers corresponding level early warnings and outputs warning information. This module implements the function corresponding to step S4 in Example 1.
[0090] The modules form a complete identification and early warning system through clear data transmission relationships. The feature extraction module receives the output of the data acquisition module, the model training module receives the output of the feature extraction module, and the identification and early warning module receives the corrosion state identification model output by the model training module and the real-time feature parameters output by the feature extraction module, realizing fully automated processing from data acquisition to early warning output.
[0091]
Example 3
[0092] This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the electrochemical noise corrosion state identification and early warning method as described in Embodiment 1.
[0093] The term "computer-readable storage medium" should be understood as a single medium or multiple media comprising one or more instruction sets. It should also be understood to include any medium capable of storing, encoding, or carrying an instruction set for execution by a processor and enabling the processor to perform any of the methods described in this invention.
[0094]
Example 4
[0095] This embodiment provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps in the electrochemical noise corrosion state identification and early warning method as described in Embodiment 1.
[0096] The steps and methods involved in the apparatus of the above embodiments two, three and four correspond to those in embodiment one. For specific implementation methods, please refer to the relevant description section of embodiment one.
[0097] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computer devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computer device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. The present invention is not limited to any particular combination of hardware and software.
[0098] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for identifying and warning of electrochemical noise corrosion status, characterized in that, Includes the following steps: Step S1: Use an electrochemical workstation to collect the potential noise signal and current noise signal of the target component, calculate the ratio of the potential noise signal to the current noise signal to obtain the noise resistance, preprocess the potential noise signal, the current noise signal and the noise resistance to construct an electrochemical noise dataset; Step S2: Wavelet analysis is used to decompose the potential noise signal and the current noise signal in the electrochemical noise dataset to obtain decomposed components. The decomposed components are denoised and reconstructed to obtain denoised potential noise signal and current noise signal. Statistical features of the denoised potential noise signal and current noise signal are extracted. Features of the decomposed components are extracted. The statistical features, features of the decomposed components and noise resistance are combined to form a multidimensional feature matrix. Feature filtering is performed on the multidimensional feature matrix to obtain a corrosion state identification and early warning dataset. Step S3: Construct a fusion model including a temporal feature extraction layer and an attention weight allocation layer, and train and validate the fusion model using the corrosion state recognition and early warning dataset to obtain a corrosion state recognition model; Step S4: Input the characteristic parameters obtained after processing the real-time collected potential noise signal, current noise signal and noise resistance of the target component in step S2 into the corrosion state recognition model to obtain the corrosion state recognition result, count the proportion of specific corrosion states within a preset time period, trigger the corresponding level of early warning signal according to the proportion and output the early warning information.
2. The electrochemical noise corrosion state identification and early warning method according to claim 1, characterized in that, In step S1, a three-electrode system is used to collect the potential noise signal and the current noise signal. The three-electrode system includes two working electrodes and a reference electrode made of the same material. The noise resistance is calculated using the following formula: ; in, The noise resistor, The effective value of the potential noise signal is... The effective value of the current noise signal; The preprocessing includes segmenting the potential noise signal and the current noise signal, removing outlier data points, and standardizing the signal. The standardization process uses the following formula: ; in, For standardized signal data, The original signal data, The mean of the data segment. This represents the standard deviation of the data segment.
3. The electrochemical noise corrosion state identification and early warning method according to claim 1, characterized in that, In step S2, the wavelet analysis selects the db4 wavelet as the wavelet basis function, and the wavelet decomposition is performed in four layers to obtain low-frequency approximate components and high-frequency detail components. The denoising process performs soft-threshold denoising on the high-frequency detail components, and the soft threshold is calculated using the formula... ; in, For the threshold, The standard deviation of noise. The signal length is given; the statistical features include kurtosis and skewness, with the kurtosis feature expressed using the formula... ; in, Kurtosis is a characteristic feature. For the reconstructed signal data, The mean of the reconstructed signal data. The expectation operator is used; the skewness feature is expressed by the formula. ; in, As a skewness feature, For the reconstructed signal data, The mean value of the reconstructed signal data.
4. The electrochemical noise corrosion state identification and early warning method according to claim 3, characterized in that, In step S2, the features of the decomposed components include the energy features, standard deviation features, maximum value features, and minimum value features of the low-frequency approximation components and the high-frequency detail components. The feature screening uses the Pearson correlation coefficient to calculate the correlation between each feature and the corrosion state label, and removes redundant features with correlation coefficients exceeding a preset threshold.
5. The electrochemical noise corrosion state identification and early warning method according to claim 1, characterized in that, In step S3, the temporal feature extraction layer is an LSTM network layer, the attention weight allocation layer is an Attention mechanism layer, and the training and validation include dividing the corrosion state recognition and early warning dataset into a training set and a test set, using the training set for parameter training, and using the test set for performance validation. In step S4, the preset time period is 1 hour, the specific corrosion state includes metastable corrosion and steady-state corrosion, the corrosion state recognition result includes slight corrosion, moderate corrosion, and severe corrosion, and triggering a blue warning, orange warning, or red warning based on different numerical ranges of the percentage.
6. An electrochemical noise corrosion state identification and early warning system, applied to the electrochemical noise corrosion state identification and early warning method according to any one of claims 1-5, characterized in that, include: The data acquisition module is used to acquire the potential noise signal and current noise signal of the target component using an electrochemical workstation, calculate the ratio of the potential noise signal to the current noise signal to obtain the noise resistance, and preprocess the potential noise signal, the current noise signal and the noise resistance to construct an electrochemical noise dataset. The feature extraction module is used to perform wavelet analysis on the potential noise signal and the current noise signal in the electrochemical noise dataset to obtain decomposed components, perform denoising processing on the decomposed components and reconstruct the denoised potential noise signal and current noise signal, extract statistical features of the denoised potential noise signal and current noise signal, extract features of the decomposed components, combine the statistical features, the features of the decomposed components and the noise resistance to form a multidimensional feature matrix, and perform feature filtering on the multidimensional feature matrix to obtain a corrosion state identification and early warning dataset. The feature extraction module receives the output of the data acquisition module. The model training module is used to construct a fusion model including a temporal feature extraction layer and an attention weight allocation layer. The fusion model is trained and validated using the corrosion state recognition and early warning dataset to obtain a corrosion state recognition model. The model training module receives the output of the feature extraction module. The identification and early warning module is used to input the feature parameters obtained by the feature extraction module after processing the real-time collected potential noise signal, current noise signal and noise resistance of the target component into the corrosion state identification model to obtain the corrosion state identification result, count the proportion of specific corrosion states within a preset time period, trigger the corresponding level of early warning signal according to the proportion and output the early warning information. The identification and early warning module receives the corrosion state identification model output by the model training module and the real-time feature parameters output by the feature extraction module.
7. The electrochemical noise corrosion state identification and early warning system according to claim 6, characterized in that, In the data acquisition module, a three-electrode system is used to acquire the potential noise signal and the current noise signal. The three-electrode system includes two working electrodes and a reference electrode made of the same material. The noise resistance is calculated using the formula... ; in, The noise resistor, The effective value of the potential noise signal is... The effective value of the current noise signal is given; the preprocessing includes segmenting the potential noise signal and the current noise signal, removing outlier data points, and standardizing the signal. The standardization process uses the formula... ; in, For standardized signal data, The original signal data, The mean of the data segment. This represents the standard deviation of the data segment.
8. The electrochemical noise corrosion state identification and early warning system according to claim 6, characterized in that, In the feature extraction module, the wavelet analysis selects the db4 wavelet as the wavelet basis function, and the wavelet decomposition is performed in four layers to obtain low-frequency approximate components and high-frequency detail components. The denoising process performs soft-threshold denoising on the high-frequency detail components, and the soft threshold is calculated using the formula... ; in, For the threshold, The standard deviation of noise. The signal length is given; the statistical features include kurtosis and skewness, with the kurtosis feature expressed using the formula... ; in, Kurtosis is a characteristic feature. For the reconstructed signal data, The mean of the reconstructed signal data. The expectation operator is used; the skewness feature is expressed by the formula. ; in, As a skewness feature, For the reconstructed signal data, The mean value of the reconstructed signal data.
9. The electrochemical noise corrosion state identification and early warning system according to claim 8, characterized in that, In the feature extraction module, the features of the decomposed components include the energy features, standard deviation features, maximum value features, and minimum value features of the low-frequency approximation components and the high-frequency detail components. The feature selection uses the Pearson correlation coefficient to calculate the correlation between each feature and the corrosion state label, and removes redundant features with correlation coefficients exceeding a preset threshold.
10. The electrochemical noise corrosion state identification and early warning system according to claim 6, characterized in that, In the model training module, the temporal feature extraction layer is an LSTM network layer, the attention weight allocation layer is an Attention mechanism layer, and the training and validation include dividing the corrosion state recognition and early warning dataset into a training set and a test set, using the training set for parameter training, and using the test set for performance validation. In the recognition and early warning module, the preset time period is 1 hour, the specific corrosion state includes metastable corrosion and steady-state corrosion, the corrosion state recognition result includes slight corrosion, moderate corrosion, and severe corrosion, and triggers a blue warning, an orange warning, or a red warning based on different numerical ranges of the percentage.
