Method for predicting corrosion rate of key part of equipment based on data-mechanism fusion

By employing a data-mechanism fusion approach, combining multi-source data and generative adversarial networks, and optimizing hyperparameters, a corrosion rate prediction model is established. This addresses the accuracy and extensional limitations of traditional models, enabling efficient assessment and management of corrosion status in critical equipment components.

CN121415893AActive Publication Date: 2026-01-27榆林市特种设备检验检测院 +2
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511988871.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-26
Publication Date
2026-01-27
Estimated Expiration
2045-12-26

AI Technical Summary

Technical Problem

Existing technologies for corrosion rate prediction suffer from low prediction accuracy of traditional mechanistic models and poor extrapolation of data-driven models, making it difficult to effectively assess the corrosion status and safety of equipment.

Method used

A data-mechanism fusion approach is adopted to acquire multi-source data, construct a semi-empirical model and a chemical kinetic model, perform data preprocessing and extension, utilize generative adversarial networks for data augmentation, and combine RF algorithm and symbiotic organism search algorithm to optimize hyperparameters and establish a corrosion rate prediction model.

Benefits of technology

It improves the accuracy of corrosion rate prediction and the generalization ability of the model, effectively identifies the corrosion status of key parts of equipment, and supports the safety assessment and management of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121415893A_ABST
    Figure CN121415893A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment key part corrosion rate prediction method based on data-mechanism fusion, and relates to the technical field of corrosion prediction. The method comprises the following steps: firstly, acquiring multi-source data such as equipment operation parameters, environmental medium parameters and corrosion state parameters, constructing a data set, preprocessing the data set, and removing abnormal values; constructing a semi-empirical model and a chemical kinetic model, and performing epitaxy and interpolation completion on the data to form an epitaxy data set; the two data sets are fused, and a fused data set is obtained through generative adversarial network enhancement; based on the fused data set, an initial prediction model is constructed by using an RF algorithm, and hyper-parameters are optimized by using a symbiotic organism search algorithm; and finally, processing to-be-measured working condition data by using the model to obtain a corrosion rate prediction result. The method can provide support for equipment corrosion management and make up the inherent defects of a traditional prediction model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of corrosion prediction technology, and in particular to a method for predicting the corrosion rate of critical parts of equipment based on data-mechanism fusion. Background Technology

[0002] Corrosion is the most significant problem affecting the safe and stable operation of oil refining systems. In recent years, accidents such as fires and explosions caused by equipment corrosion defects have occurred frequently. For oil refining systems, equipment corrosion often leads to serious accidents, including equipment failure, leaks of toxic and hazardous substances, fires, and explosions, posing a serious threat to life and property. Therefore, research on corrosion protection for refining equipment and systematic corrosion rate prediction is of great significance to the development of the oil and gas industry and the safe and stable operation of process equipment. Corrosion rate prediction lays the foundation for engineering safety assessment, economic cost optimization, and intelligent operation and maintenance. Identifying the corrosion status of equipment through corrosion rate prediction is an important basis for assessing equipment integrity and safety.

[0003] Currently, in the field of corrosion prediction, researchers mainly focus on empirical models, semi-empirical models, mechanistic models, and data-driven models. Empirical models rely entirely on laboratory and field data to adjust parameters of predefined formulas, such as the Norsok and Jepson models for predicting CO2 corrosion rates. Semi-empirical models consider both physical mechanisms and data to adjust parameters of predefined formulas, such as the De Waard model. Mechanistic models primarily study corrosion influencing factors based on corrosion thermodynamics, corrosion kinetics, and electrochemical principles, establishing a mathematical expression to map corrosion rate to influencing factors and thus predicting the corrosion rate. In recent years, due to the rapid development of artificial intelligence, data-driven models based on machine learning algorithms have been widely applied in corrosion prediction. Researchers have constructed various machine learning models, such as Random Forest (RF), Artificial Neural Network (ANN), and Support Vector Regression (SVR), based on material parameters, environmental medium parameters, operating parameters, and corrosion result parameters, to predict corrosion rates. However, the aforementioned traditional mechanistic models suffer from drawbacks such as difficulty in construction and low prediction accuracy, as well as the poor extension and uninterpretability of data-driven models. Summary of the Invention

[0004] The purpose of this invention is to provide a method for predicting the corrosion rate of key parts of equipment based on data-mechanism fusion, aiming to solve or improve at least one of the above-mentioned technical problems.

[0005] To achieve the above objectives, the present invention provides the following solution: A method for predicting corrosion rates of key components of equipment based on data-mechanism fusion includes: Acquire multi-source data and construct a dataset for predicting equipment corrosion rates; the multi-source data includes equipment operating parameters, environmental medium parameters, and corrosion state parameters; wherein, the equipment operating parameters include temperature, pressure, and flow rate; the environmental medium parameters include pH, etc. concentration, concentration, Concentration and Concentration; the corrosion state parameter is the corrosion rate calculated by reducing the wall thickness; The equipment corrosion rate prediction dataset is preprocessed to obtain a dataset after outlier removal; the data preprocessing includes unifying the sampling frequency and outlier handling. A semi-empirical model and a chemical kinetic model were constructed. The semi-empirical model was constructed based on two main influencing factors identified by data correlation analysis. The chemical kinetic model was used to reveal the corrosion reaction mechanism and key influencing factors. Based on semi-empirical models and chemical kinetic models, the maximum and minimum values ​​of flow rate and temperature are each extended by 10% of the data range. Then, the other data in the dataset after removing outliers are interpolated and supplemented using the K-nearest neighbor algorithm to obtain an extended dataset with complete variables. The dataset after removing outliers and the extended dataset with complete variables are merged to form a modeling dataset. Then, the modeling dataset is augmented with a generative adversarial network to generate data with a distribution similar to the modeling data, resulting in a fused dataset. Based on the fused dataset, an initial prediction model was constructed using the RF algorithm, and the hyperparameters of the model were optimized using the symbiotic organism search algorithm to obtain a corrosion rate prediction model for key corrosion areas of the equipment. The corrosion rate prediction model is used to process the operating data of the environment under test to obtain the corrosion rate prediction results of key parts of the equipment.

[0006] Optionally, the method for acquiring the multi-source data is as follows: Distributed control systems, laboratory information management systems, and ultrasonic thickness measuring equipment are used to acquire equipment operating parameters, environmental media parameters, and corrosion status parameters.

[0007] Optionally, the equipment corrosion rate prediction dataset undergoes data preprocessing, specifically including: The sampling frequency of the distributed control system is set to once per minute, the sampling frequency of the laboratory information management system is set to once per day, and the sampling frequency of the ultrasonic thickness measuring device is set to once every set number of days or once per month. The average value of the data measured by the distributed control system is taken, and the average value is made to be the same as the data sampling frequency of the laboratory information management system. The corrosion rate data is calculated based on the maximum thinning amount measured by the ultrasonic thickness measuring device, and linear interpolation is performed to complete the unified sampling frequency. An isolated forest outlier removal process was applied to the dataset after the sampling frequency was uniform to obtain the dataset after outlier removal.

[0008] Optionally, outlier isolation forest processing can be applied to the dataset after unifying the sampling frequency, specifically including: Constructing isolated subtrees: Randomly sample training samples {d1, d2, …, ds} from all samples, and randomly select a feature D. Obtain a cutoff value randomly between the maximum and minimum values ​​of feature D; for each training sample… Divide the data into two parts: assign data smaller than the cut value to the left branch and data greater than or equal to the cut value to the right branch. Then, repeat the processing steps in the left and right branches until the data is no longer indivisible or the binary tree reaches the limit height. Anomaly scoring: Based on the number of edges traversed from the root node to the leaf node containing the data point, the average path length h(x) of the data point on the isolated subtree is determined. The anomaly scoring formula is as follows: , in, This represents the average path length across all isolated trees. Indicates size is The dataset The average value is calculated by the following formula: .

[0009] Optionally, the semi-empirical model is specifically: , in, This represents a comprehensive constant that incorporates both material and environmental properties. This indicates the degree to which flow rate affects the corrosion rate. Indicates activation energy. Represents the gas constant. This indicates absolute temperature.

[0010] Optionally, the chemical kinetic model is specifically as follows: , in, This represents the baseline corrosion rate level of the system under specific environmental conditions. This indicates the degree of influence of the concentration of each medium on the corrosion rate, where i represents the i-th medium. Indicates pressure, Indicates flow rate. Indicates activation energy. Represents the gas constant. This indicates absolute temperature.

[0011] Optionally, the remaining data in the dataset after outlier removal is interpolated and padded based on the K-nearest neighbor algorithm, specifically including: Constructing a KNN reference library: Using the dataset after outlier removal as the database of the original data, represented as: ;in, m Indicates the ID of all database samples; Finding k-nearest neighbors in low-dimensional space: for incomplete samples Find the K nearest samples in the original data; Estimating missing features: Extracting from the K nearest neighbors The following distance-weighted average was used for interpolation to complete the result: , , in, Indicates the first Estimates of the missing features, Indicates the first The weight of each neighbor reflects the magnitude of that neighbor's contribution to the estimation of missing values. Indicates the neighbor's number 1 eigenvalue, x Indicates a sample, Indicates the first The nearest neighbor samples.

[0012] Optionally, the loss function construction method in the generative adversarial network is as follows: a feature importance loss function is added to the original loss function, and the specific steps include: The original loss function for constructing the generator : , in, Indicates noise All possible values, and according to the probability distribution Calculate the expected value. This indicates the output of the discriminator for samples generated by the generator; Constructing a feature importance loss function : , in, It is a feature The weight, and Representing the first and second parts of the real data and generated data respectively The importance of each feature; Generate gradient conjugate directions: , Spearman Correlation is the correlation between the importance ranking of features in real and generated data; Based on the results generated from the aforementioned gradient conjugate directions, a feature importance loss function is added to the original loss function: , in, The feature importance loss weights are dynamically adjusted based on the epoch during training. For the total loss function, The feature importance loss function is... This represents the relevance weight.

[0013] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects: This invention discloses a method for predicting corrosion rates of key components of equipment based on data-mechanism fusion. The method includes first acquiring multi-source data such as equipment operating parameters, environmental medium parameters, and corrosion state parameters, constructing a dataset and preprocessing it to remove outliers; then constructing a semi-empirical model and a chemical kinetic model, extending and interpolating the data to form an extended dataset; then fusing the two datasets and enhancing them with a generative adversarial network to obtain a fused dataset; then, based on the fused dataset, using the RF algorithm to construct an initial prediction model, and using a symbiotic search algorithm to optimize the hyperparameters; finally, using this model to process the test condition data to obtain the corrosion rate prediction result.

[0014] This invention proposes to establish a corrosion rate prediction model using a data-mechanism fusion modeling approach. Based on collected operating parameters of oil refining equipment, environmental media parameters, and corrosion state parameters, data augmentation is performed using Generative Adversarial Networks (GANs) to enhance the diversity of data samples. Finally, a corrosion rate prediction model for key parts of the equipment is established based on the SOS-RF model, providing support for equipment corrosion management and overcoming the inherent defects of traditional prediction models. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 A flowchart is established for the SOS-RF model in this embodiment; Figure 2 This is a comparison chart of the original data after anomaly detection in this embodiment; where (a) is a schematic diagram of the original data; and (b) is a schematic diagram of iForest. Figure 3 This is a comparison diagram of the density distribution based on the iF algorithm in this embodiment; where (a) is a schematic diagram of the original data; and (b) is a schematic diagram of the iF algorithm. Figure 4 This is a schematic diagram of the correlation analysis in this embodiment; Figure 5 This is a comparison chart of the distribution of generated data and extended data in this embodiment; Figure 6 This is a comparison chart of importance before and after data augmentation in this embodiment; Figure 7 This is a comparison chart of accuracy before and after data augmentation in this embodiment; Figure 8 This is a comparison chart of model performance before and after optimization in this embodiment; where (a) is a schematic diagram without optimization; (b) is a schematic diagram with SOS optimization; (c) is a schematic diagram with GA optimization; and (d) is a schematic diagram with PSO optimization. Figure 9 For performance comparison of different models in this embodiment (average R0), 2 Figure 1; where (a) is a schematic diagram of RF; (b) is a schematic diagram of ANN; (c) is a schematic diagram of SVR; (d) is a schematic diagram of GBDT; (e) is a schematic diagram of DT; and (f) is a schematic diagram of AdaBoost. Figure 10 This is a schematic diagram comparing the accuracy of the six models in this embodiment; Figure 11 This is a schematic diagram comparing the generalization capabilities of the models in this embodiment. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] The purpose of this invention is to provide a method for predicting the corrosion rate of key parts of equipment based on data-mechanism fusion, aiming to solve or improve at least one of the above-mentioned technical problems.

[0019] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0020] like Figure 1 As shown, based on historical multi-source parameter data of key corrosion sites in equipment, a corrosion prediction method based on data-mechanism fusion is established by combining corrosion mechanism analysis and data prediction models for key corrosion sites in oil refining equipment. The corrosion rate prediction method for key equipment components based on data-mechanism fusion provided by this invention includes: S1: Multi-source data acquisition. Equipment operating parameters, environmental media parameters, and corrosion status parameters are acquired through a distributed control system (DCS), a laboratory information management system (LIMS), and ultrasonic thickness gauges. Equipment operating parameters include temperature, pressure, and flow rate; environmental media parameters include pH, etc. concentration, concentration, Concentration and Concentration; corrosion state parameters are the corrosion rates calculated through wall thickness reduction. A dataset for predicting equipment corrosion rates is established to provide data support for subsequent modeling and prediction.

[0021] S2: Data preprocessing. This step mainly includes two aspects: standardizing the sampling frequency and handling outliers.

[0022] (1) Unified sampling frequency: The sampling frequency of the LIMS system is once a day, the sampling frequency of the DCS system is once a minute, and the sampling frequency of the wall thickness reduction data is once every few days or once a month. The average value of the DCS data per day is taken to make it the same as the sampling frequency of the LIMS. The corrosion rate data calculated based on the maximum wall thickness reduction is linearly interpolated to make its sampling frequency the same as the parameter data sampling frequency, which is once a day.

[0023] (2) Outlier handling: Outlier handling is performed on the dataset after uniform sampling frequency using Isolation Forest (IF). The specific process is as follows: ① Constructing an isolated subtree: Randomly sample training samples {d1, d2, …, ds} from all samples, and randomly select a feature D. Then, randomly obtain a cutoff value between the maximum and minimum values ​​of feature D. Finally, for each training sample… The data is divided into two branches: data smaller than the cutoff value is assigned to the left branch, and data greater than or equal to the cutoff value is assigned to the right branch. This process is repeated in both branches until the data is no longer indivisible or the binary tree reaches its maximum height.

[0024] ② Anomaly scoring: The average path length (denoted by h(x)) of a data point on the isolated subtree is the number of edges traversed from the root node to its leaf node. The anomaly scoring is shown in equation (1): (1) in, This represents the average path length across all isolated trees. It is the size of The dataset The average value can be calculated by the following formula (2): (2) S3: Construction of Semi-Empirical and Chemical Kinetic Models. Correlation analysis of the data identified the two most significant influencing factors, and a semi-empirical model was constructed to support subsequent data extrapolation. The chemical kinetic model was used to quantitatively analyze the effects of temperature, flow rate, pressure, and reactant concentration on the reaction rate, revealing the corrosion reaction mechanism and key influencing factors.

[0025] (1) Semi-empirical model: This technique selects temperature and flow rate as two influencing factors through correlation analysis to construct a semi-empirical model. The Arrhenius equation is used to reflect the relationship between temperature and corrosion rate, and the exponential relationship is used to reflect the relationship between flow rate and corrosion rate. In corrosion kinetics research, this formula is often used to quantify the influence of temperature on corrosion rate, as shown in the following equation (3): (3) in, It is a comprehensive constant that incorporates both material and environmental properties.

[0026] The quantitative relationship between flow rate and corrosion rate is shown in equation (4) below: (4) The final semi-empirical model is shown in equation (5) below: (5) (2) Chemical kinetic model: This technique uses a chemical kinetic model to quantitatively analyze the effects of factors such as temperature, flow rate, pressure, and reactant concentration on the reaction rate. The specific model constructed is shown in equation (6) below: (6) S4: Data Extension. This technique considers the influence of the on-site environment and abnormal operating conditions, and extends the maximum and minimum values ​​of flow rate and temperature by 10% of the data range. The extension rules are shown in the following formulas (7) and (8): (7) (8) After data extrapolation, the K-Nearest Neighbors (KNN) algorithm is used to interpolate and pad other feature parameters, thereby obtaining a dataset with complete variables to achieve the purpose of data extrapolation. The specific steps are as follows: (1) Constructing the KNN reference library: original data samples This is used as a database of complete features. m This indicates the ID of all database samples.

[0027] (2) Finding k-nearest neighbors in low-dimensional space: for incomplete samples The principle of finding the K nearest samples in the original data is shown in equation (9) below: (9) (3) Estimate missing features: extract from the K nearest neighbors The following distance-weighted average was used for interpolation to complete the result: (10) (11) Where k is a subset of m, representing the neighbor number in the KNN algorithm. The complete sample of the k nearest neighbors is represented by a vector (containing all features); This represents the j-th feature value of the k-th nearest neighbor sample, which is the scalar derived from the complete vector; The weights of the k nearest neighbors.

[0028] S5: Data Augmentation. The dataset after removing outliers and the extended dataset are merged to form the modeling dataset. The modeling dataset is augmented using a Generative Adversarial Network (GAN) to generate data with a distribution similar to the modeling data, thereby improving the diversity and extension of the data samples. The GAN generates data similar to the original data through an adversarial game between the generator and the discriminator, as shown in Equation (12). This technique adds a feature importance loss function to its basic cross-entropy loss function to generate data that is more similar to the original data and of higher quality, as shown in Equations (13) to (17).

[0029] (12) in, Minimize the loss function for the generator. To maximize the loss function of the discriminator, The value function of the entire confrontation process. To determine the distribution of real data Take the expected value. For the sample The probability derived from the actual data distribution, with values ​​between [0,1].

[0030] (13) in, This indicates that the sample generated by the generator is passed through the output of the discriminator, with the goal of making the output as close to 1 as possible.

[0031] (14) in, It is a feature The weights are normalized based on the feature importance of the random forest model. and Representing the first and second parts of the real data and generated data respectively n The importance of each feature.

[0032] (15) Spearman Correlation measures the correlation between the importance ranking of features in real and generated data.

[0033] (16) (17) in, It is the original loss of the generator, while The feature importance loss weights are dynamically adjusted based on the epoch during training. This is the total loss function.

[0034] S6: Dataset Partitioning and Data Modeling. After obtaining the dataset resulting from the fusion of data and mechanisms, the augmented dataset is partitioned and a model is built.

[0035] (1) Data set division: 20% of the data in the augmentation dataset is randomly selected as the test set for the final validation of the model according to the ratio of 8:2, and the remaining 80% of the data is used as the training set for subsequent model optimization training.

[0036] (2) Data Modeling: Based on the above dataset partitioning, a corrosion rate prediction model for key corrosion areas of the equipment is constructed using the RF algorithm. The Symbiotic Organisms Search (SOS) algorithm is then used to optimize the model's hyperparameters, further improving the model's prediction accuracy. Therefore, this step includes both hyperparameter optimization and SOS-RF model establishment.

[0037] 1. Model Hyperparameter Optimization. The SOS algorithm is applied to the partitioned training set data to optimize three key parameters in the RF prediction model: n_estimators, max_depth, and max_features. The SOS algorithm primarily finds the optimal solution in the solution space by simulating cooperation and competition among organisms. By simulating these interactions in nature, the SOS algorithm can adaptively explore the solution space of the problem. The SOS algorithm simulates biological behavior based on the following three symbiotic relationships: ① Initialization phase: Randomly generated n An organism is randomly generated. n An organism { X 1, X 2,..., X n A population is formed, initialized according to the objective function, and the current best individual is determined. .

[0038] ② Mutually beneficial symbiotic stage: For individuals Randomly select another organism from the population The fitness of both is calculated according to formulas (18) to (20), and the new fitness is... and If the organism's fitness is better than before, update the organism.

[0039] (18) (19) (20) in, and It is a trend factor, that is, a trend factor that symbiotically tends towards the best individual and the mutually beneficial individual.

[0040] ③ Coexistence stage: One individual benefits from the advantages of another individual and adjusts its own solution according to those advantages, thereby improving its fitness. The fitness calculation formula is as follows (21): (twenty one) ④ Parasitic stage: Individual A parasite PV is created, which replicates and modifies itself using random vectors to generate mutation vectors. The fitness of the PV and the host is compared. When the fitness of the PV is superior to that of the host, the mutation vector is selected. When the corresponding fitness is specified, PV is used instead. .

[0041] ⑤ Update individual position: Update the individual's position (i.e., its position in the solution space) based on the symbiotic relationship, fitness evaluation results, and specific rules of the algorithm.

[0042] ⑥ Termination condition judgment: Determine whether the stopping condition is met (e.g., maximum number of iterations or accuracy requirement). If it is met, output the result; otherwise, return to ②.

[0043] 2. Construct the SOS-RF model. Substitute the optimized parameters into the original RF model and input them into the test set for verification. The final SOS-RF model flow is as follows: Figure 1 As shown.

[0044] S7: Extreme Condition Data Prediction. The SOS-RF model, trained using an augmented dataset, predicts data under extreme conditions to simulate extreme situations encountered in actual chemical production environments. By introducing diverse input data, including various possible extreme environmental factors, the model effectively captures complex nonlinear relationships, simulating extreme conditions that may be encountered in actual production processes, ensuring the safety and stability of the production process.

[0045] As a specific implementation, taking the top of a typical atmospheric and vacuum distillation unit in the oil refining process as the object, multi-source parameter data of key corrosion parts of the equipment were collected. A modeling dataset was constructed by using methods such as unified sampling frequency and outlier processing, and applied research was conducted to predict corrosion rates.

[0046] Three metrics were primarily selected to evaluate the corrosion rate prediction results of the model: Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and Coefficient of Determination (R-Squared, R²). RMSE measures the magnitude of the error between the model's predicted and actual values. MAE measures the average absolute difference between the model's predicted and actual values, indicating the overall degree to which the model's predictions deviate from the actual values. R² reflects the correlation between the model's predicted and actual values, measuring the model's ability to explain data variability; a value closer to 1 indicates that the model fits the data better and can explain more variability.

[0047] After standardizing the sampling frequency, the iF algorithm was used to detect outliers on the original dataset, reducing the number of original data sets from 249 to 217. Using this data... For example, the detected abnormal data and its sample distribution can be visualized. Figure 2 and Figure 3 As shown.

[0048] After outlier handling, the model's prediction accuracy and R-value... 2 All showed some improvement, as shown in Table 1.

[0049] Table 1. Comparison of model accuracy before and after outlier handling

[0050] Correlation analysis of the data yielded the following results: Figure 4 As shown, temperature and flow rate were identified as the most influential factors. Furthermore, considering the influence of the on-site environment and abnormal operating conditions, the maximum and minimum values ​​of flow rate and temperature were each extended by 10% of the data range, with the extension rules shown in equations (7) and (8) above. Then, the KNN algorithm was used to interpolate and complete the data, and the extended data is shown in Table 2. The prediction accuracy of the complete variable dataset after KNN interpolation was verified using the chemical kinetic model constructed above. Verification showed that when using the extended data after KNN interpolation, the evaluation metrics RMSE was 0.0033, MAE was 0.028, and R² was 0.96. Finally, the accuracy of the original dataset, the dataset processed by iF, and the extended dataset were compared, and the results are shown in Table 3.

[0051] Table 2. Data after KNN interpolation

[0052] Table 3 Comparison of Dataset Accuracy

[0053] By using GANs to augment the extended dataset, sample diversity is improved, and the distribution of the generated data is compared with that of the extended data. Figure 5 As shown, the importance did not shift significantly before and after data augmentation, preserving the original data characteristics, such as... Figure 6 As shown.

[0054] Compare the prediction accuracy of the datasets before and after data augmentation using the RF model, such as... Figure 7 As shown, the accuracy of both the training and test sets has been improved to some extent.

[0055] To further improve the prediction accuracy of the model, this technique employs the SOS algorithm to optimize three important hyperparameters of the RF algorithm: n_estimators, max_depth, and max_features. A horizontal comparison is then made between the model and SOS using Particle Swarm Optimization (PSO), Genetic Algorithm (GA), and other algorithms. The comparison results are shown in Table 4. Figure 8 It can be seen that most of the models after parameter tuning by the optimization algorithm are concentrated within 5% of the actual values, and the SOS-RF model has the highest accuracy.

[0056] Table 4. Comparison of different optimization algorithms

[0057] To evaluate the accuracy and generalization ability of the proposed data augmentation method and prediction model, this paper will conduct a cross-sectional comparison using six machine learning algorithms: RF, ANN, SVR, DT, GBDT, and AdaBoost. Simultaneously, SOS will be used to optimize the hyperparameters of these six models, and the dataset partitioning method described above will be continued. The performance of the models will be evaluated using a test set. The evaluation results (…) Figure 9 and Figure 10 This indicates that the RF model has the highest R2 and the fewest samples outside the 5% error threshold among the six models.

[0058] To demonstrate the effectiveness and generalization ability of the proposed data-enhanced data-mechanism fusion modeling method, the trained SOS-RF model was used to predict outliers in the original dataset to simulate extreme situations encountered in actual chemical plant environments. The results are as follows: Figure 11 As shown.

[0059] In summary, this technology, based on the RF algorithm, applies the GAN algorithm to enhance the data and improve sample diversity, and uses the SOS intelligent optimization algorithm to tune parameters. The established SOS-RF model shows a certain generalization ability and adaptability to extreme operating conditions in actual processes, providing some technical support for equipment corrosion protection.

[0060] As another specific implementation method, the data augmentation method proposed in this technology is mainly for situations where there are insufficient samples. When there are sufficient samples, data augmentation processing can be omitted, and the corresponding algorithm can be used directly to predict the corrosion rate.

[0061] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0062] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for predicting corrosion rates of key components of equipment based on data-mechanism fusion, characterized in that, include: Acquire multi-source data and construct a dataset for predicting equipment corrosion rates; the multi-source data includes equipment operating parameters, environmental medium parameters, and corrosion state parameters; wherein, the equipment operating parameters include temperature, pressure, and flow rate; the environmental medium parameters include pH, etc. concentration, concentration, Concentration and Concentration; the corrosion state parameter is the corrosion rate calculated by reducing the wall thickness; The equipment corrosion rate prediction dataset is preprocessed to obtain a dataset after outlier removal; the data preprocessing includes unifying the sampling frequency and outlier handling. A semi-empirical model and a chemical kinetic model were constructed. The semi-empirical model was constructed based on two main influencing factors identified by data correlation analysis. The chemical kinetic model was used to reveal the corrosion reaction mechanism and key influencing factors. Based on semi-empirical models and chemical kinetic models, the maximum and minimum values ​​of flow rate and temperature are each extended by 10% of the data range. Then, the other data in the dataset after removing outliers are interpolated and supplemented using the K-nearest neighbor algorithm to obtain an extended dataset with complete variables. The dataset after removing outliers and the extended dataset with complete variables are merged to form a modeling dataset. Then, the modeling dataset is augmented with a generative adversarial network to generate data with a distribution similar to the modeling data, resulting in a fused dataset. Based on the fused dataset, an initial prediction model was constructed using the RF algorithm, and the hyperparameters of the model were optimized using the symbiotic organism search algorithm to obtain a corrosion rate prediction model for key corrosion areas of the equipment. The corrosion rate prediction model is used to process the operating data of the environment under test to obtain the corrosion rate prediction results of key parts of the equipment.

2. The corrosion rate prediction method for key components of equipment based on data-mechanism fusion according to claim 1, characterized in that, The method for acquiring the multi-source data is as follows: Distributed control systems, laboratory information management systems, and ultrasonic thickness measuring equipment are used to acquire equipment operating parameters, environmental media parameters, and corrosion status parameters.

3. The corrosion rate prediction method for key components of equipment based on data-mechanism fusion according to claim 1, characterized in that, The data preprocessing of the equipment corrosion rate prediction dataset specifically includes: The sampling frequency of the distributed control system is set to once per minute, the sampling frequency of the laboratory information management system is set to once per day, and the sampling frequency of the ultrasonic thickness measuring device is set to once every set number of days or once per month. The average value of the data measured by the distributed control system is taken, and the average value is made to be the same as the data sampling frequency of the laboratory information management system. The corrosion rate data is calculated based on the maximum thinning amount measured by the ultrasonic thickness measuring device, and linear interpolation is performed to complete the unified sampling frequency. An isolated forest outlier removal process was applied to the dataset after the sampling frequency was uniform to obtain the dataset after outlier removal.

4. The corrosion rate prediction method for key components of equipment based on data-mechanism fusion according to claim 3, characterized in that, Outlier handling using isolated forests is applied to datasets with uniform sampling frequencies, specifically including: Constructing isolated subtrees: Randomly sample training samples {d1, d2, …, ds} from all samples, and randomly select a feature D. Obtain a cutoff value randomly between the maximum and minimum values ​​of feature D; for each training sample… Divide the data into two parts: assign data smaller than the cut value to the left branch and data greater than or equal to the cut value to the right branch. Then, repeat the processing steps in the left and right branches until the data is no longer indivisible or the binary tree reaches the limit height. Anomaly scoring: Based on the number of edges traversed from the root node to the leaf node containing the data point, the average path length h(x) of the data point on the isolated subtree is determined. The anomaly scoring formula is as follows: , in, This represents the average path length across all isolated trees. Indicates size is The dataset The average value is calculated by the following formula: 。 5. The corrosion rate prediction method for key components of equipment based on data-mechanism fusion according to claim 1, characterized in that, The semi-empirical model is specifically as follows: , in, This represents a comprehensive constant that incorporates both material and environmental properties. This indicates the degree to which flow rate affects the corrosion rate. Indicates activation energy. Represents the gas constant. This indicates absolute temperature.

6. The corrosion rate prediction method for key components of equipment based on data-mechanism fusion according to claim 1, characterized in that, The chemical kinetic model is specifically as follows: , in, This represents the baseline corrosion rate level of the system under specific environmental conditions. This indicates the degree of influence of the concentration of each medium on the corrosion rate, where i represents the i-th medium. Indicates pressure, Indicates flow rate. Indicates activation energy. Represents the gas constant. This indicates absolute temperature.

7. The corrosion rate prediction method for key components of equipment based on data-mechanism fusion according to claim 1, characterized in that, The K-nearest neighbor algorithm is used to interpolate and complete the remaining data in the dataset after removing outliers, specifically including: Constructing a KNN reference library: Using the dataset after outlier removal as the database of the original data, represented as: ;in, m Indicates the ID of all database samples; Finding k-nearest neighbors in low-dimensional space: for incomplete samples Find the K nearest samples in the original data; Estimating missing features: Extracting from the K nearest neighbors The following distance-weighted average was used for interpolation to complete the result: , , in, Indicates the first Estimates of the missing features, Indicates the first The weight of each neighbor reflects the magnitude of that neighbor's contribution to the estimation of missing values. Indicates the neighbor's number 1 eigenvalue, x Indicates a sample, Indicates the first The nearest neighbor samples.

8. The corrosion rate prediction method for key components of equipment based on data-mechanism fusion according to claim 1, characterized in that, The loss function construction method in the generative adversarial network is as follows: a feature importance loss function is added to the original loss function, and the specific steps include: The original loss function for constructing the generator : , in, Indicates noise All possible values, and according to the probability distribution Calculate the expected value. This indicates that the samples generated by the generator are passed through the discriminator's output; Constructing a feature importance loss function : , in, It is a feature The weight, and Representing the first and second parts of the real data and generated data respectively The importance of each feature; Generate gradient conjugate directions: , Spearman Correlation is the correlation between the importance ranking of features in real and generated data; Based on the results generated from the aforementioned gradient conjugate directions, a feature importance loss function is added to the original loss function: , in, The feature importance loss weights are dynamically adjusted based on the epoch during training. For the total loss function, The feature importance loss function is... This represents the relevance weight.

Citation Information

Patent Citations

  • Corrosion rate prediction system based on multi-source data

    CN114565185A

  • Cable defect detection method and system based on artificial intelligence

    CN120279341A

  • Modeling data forming method of corrosion velocity estimation system and device

    JP2004252781A