An aluminum electrolysis cell cathode erosion intelligent diagnosis method based on time sequence feature coupling

By using the feature fusion model of BiLSTM-CNN-MHA-Prophet, the problem of inaccurate identification of cathode erosion status in aluminum electrolytic cells was solved, and accurate identification and prediction of cathode erosion in aluminum electrolytic cells were achieved, thereby improving production efficiency and safety.

CN123158073APending Publication Date: 2026-11-24CHONGQING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611036798.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-13
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively integrate long-cycle trend characteristics with short-cycle characteristics, resulting in inaccurate identification of cathode erosion status in aluminum electrolysis cells, a high misjudgment rate, and an inability to cope with dynamic changes caused by the coupling of multiple factors.

Method used

A bidirectional long short-term memory network (BiLSTM) and a convolutional neural network (CNN) are used to process global and local temporal features. By combining multi-head attention (MHA) and the Prophet algorithm, and fusing long and short temporal features through adaptive attention weighting (AAW), a smart diagnostic model for cathode corrosion of aluminum electrolytic cells (BCPA) is constructed.

Benefits of technology

This improved the efficiency of identifying the cathode erosion state of aluminum electrolysis cells, avoided cell shutdowns and production stoppages caused by malfunctions, and ensured the orderly and safe operation of aluminum electrolysis production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158073A_ABST
    Figure CN123158073A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of aluminum electrolysis cell cathode erosion intelligent diagnosis method based on time sequence feature coupling, the method includes after collecting processing data and making cathode erosion state and risk level division strategy, for the collected aluminum electrolysis cathode operation long trend index data value and structure characteristics, using the long trend feature modeling capability of BiLSTM and the local feature extraction capability of CNN, global long trend feature and local feature that respectively affect the generation of cathode erosion are grabbed, then using multi-head attention realizes BiLSTM-CNN to long time sequence feature Multi-part simultaneous attention modeling;Prophet is used to short cycle feature grabbing, different erosion features captured by long and short time sequence are fused using adaptive attention weighting algorithm, finally, BCPA model is constructed to participate in diagnosis and then grade output aluminum electrolysis cell cathode erosion state.The present application effectively fuses long trend feature and short cycle feature and responds to the dynamic change of multi-factor coupling, accurately identifies cathode erosion state, improves recognition efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cathode corrosion diagnosis in aluminum electrolytic cells, specifically to an intelligent diagnostic method for cathode corrosion in aluminum electrolytic cells based on temporal feature coupling. Background Technology

[0002] my country is the world's largest producer of electrolytic aluminum. In the aluminum electrolysis process, the cathode of the aluminum electrolysis cell is one of the most significant components posing safety hazards in industrial production, and cathode corrosion is a key factor limiting the lifespan of the electrolysis cell. The cathode operates in a high-temperature, complex electrochemical reaction environment, facing corrosion damage caused by the combined effects of electrolytes, molten aluminum, high temperature, and current, thus affecting the normal operation of the aluminum electrolysis cell and the orderly production of aluminum electrolysis.

[0003] Currently, online measurement of various operational indicators of the cathode faces numerous challenges. High cell temperatures, coupled with the high temperatures and compositional difficulties of the electrolyte and molten aluminum, make real-time monitoring of the cathode's condition difficult, hindering accurate diagnosis. Diagnosing the cathode corrosion status of aluminum electrolysis cells requires comprehensive modeling of the multi-source coupled factors of its operating environment as a criterion. Current prevention and control methods primarily rely on a few or single indicators, failing to effectively integrate long-term trends with short-term anomalies and address the dynamic changes caused by multiple coupled factors. This results in inaccurate identification of the cathode corrosion status of aluminum electrolysis cells and a high misjudgment rate. Summary of the Invention

[0004] To address the aforementioned shortcomings, this invention aims to provide an intelligent diagnostic method for cathode erosion in aluminum electrolytic cells based on temporal feature coupling. This method can effectively integrate long-cycle trend features and short-cycle features and cope with dynamic changes caused by the coupling of multiple factors, accurately identify the cathode erosion state, and improve identification efficiency.

[0005] The technical solution of the present invention to solve the above-mentioned technical problems is as follows:

[0006] A smart diagnostic method for cathode corrosion in aluminum electrolytic cells based on temporal feature coupling includes the following steps:

[0007] S1: Analyze and identify multi-source indicators that can characterize cathode corrosion in aluminum electrolytic cells, including long-term time-series data such as temperature and current density, and short-period data such as Fe and Si content and cathode steel rod temperature; collect raw data according to time sequence alignment and perform noise reduction and standardization preprocessing, divide the data into test set and validation set, and set different coupling thresholds according to the changes in data coupling to distinguish different corrosion states and risk levels;

[0008] S2: Based on the numerical and structural characteristics of the long-term trend index data of the collected aluminum electrolytic cathode, we selected to use a bidirectional long short-term memory network (BiLSTM) and a convolutional neural network (CNN) to process the global and local temporal features respectively; by using multi-head attention (MHA), we improved the simultaneous attention of BiLSTM-CNN to multiple parts of the captured sequence features, calculated the weights of multiple attention heads, and focused on different parts of the input sequence.

[0009] S3: Use the Prophet algorithm to capture the nonlinear features of short-period data for modeling;

[0010] S4: Adaptive attention weighting (AAW) is used to fuse the long-term features captured by BiLSTM-CNN and the short-period features modeled by Prophet to obtain the dynamic features of cathode erosion.

[0011] S5: Combine steps 2, 3, and 4 to construct the diagnostic model BCPA. Based on step 1, input the test set data into the diagnostic model BCPA, train the model, adjust and optimize the model parameters, and determine the optimal diagnostic parameters of the model.

[0012] S6: If the diagnostic error of the model on the test set is within the accuracy range, the final aluminum electrolytic cell cathode corrosion diagnostic model based on BiLSTM-CNN and Prophet is obtained; otherwise, continue to step 5 to continue adjusting the parameters of the model until the accuracy requirements are met.

[0013] S7: Input the validation set into the model to perform erosion diagnosis, and obtain the erosion status of the diagnostic object according to different erosion levels.

[0014] By employing the above scheme, the long-term trend feature modeling capability of Bidirectional Long Short-Term Memory (BiLSTM) and the feature extraction capability of Convolutional Neural Network (CNN) are leveraged to capture both global long-term trend features and local features influencing cathode erosion. Multi-head attention is used to achieve simultaneous modeling of multiple parts of long-term features using BiLSTM-CNN. Prophet is used to capture short-term features, and the Adaptive Attention Weighting (AAW) algorithm is used to fuse the different erosion features captured in long and short time series. Based on this, different erosion conditions and states of aluminum electrolytic cell cathodes can be diagnosed, effectively improving identification efficiency.

[0015] Preferably, step S1 includes:

[0016] S11: Based on the current safety management technology and research in aluminum electrolysis production, aluminum electrolysis temperature, cathode current density, electrolyte molecular ratio, electrolyte composition (including changes in elements such as Fe and Si), and cathode steel rod temperature are selected as characterization indicators. The use of these indicators should be adjusted according to the actual available conditions of the enterprise.

[0017] S12: The collected cathode operating index data of the aluminum electrolysis cell are preprocessed by denoising, interpolation, and standardization. The denoising method is single exponential smoothing.

[0018]

[0019] Among them, F t+1 This is the predicted value for the next period, X. t It is the current actual value, F t This is the predicted value from the previous period. α is the smoothing coefficient, which determines the weight of the current actual value and the predicted value from the previous period in the prediction. The smoothing coefficient α ranges from 0 to 1 and usually needs to be determined based on the specific application scenario and data characteristics.

[0020] Data interpolation is performed in the following way:

[0021]

[0022] Where Y is the value corresponding to the unknown data point to be estimated, X is the value of the unknown data point, Y1 and Y2 are the Y values ​​of two known data points, and X1 and X2 are the values ​​of two known data points.

[0023] Based on the normalization principle, the model identifies prominent hazards at the site according to the following rules:

[0024]

[0025]

[0026]

[0027] In the formula q i U represents the i-th sample value in the sample sequence. i This represents the data after Z-score standardization, where θ represents q1, q2, ..., q i ,...,q n The mean of q1, q2, ..., q, where δ represents the sum of q1, q2, i ,...,q n The standard deviation; after the original data is standardized, the variables are scaled to a distribution with a mean of 0 and a variance of 1;

[0028] S13: Divide the normalized data into a test set and a validation set;

[0029] S14: Based on the comprehensive characterization of multiple indicators, erosion is divided into different states and risk stages.

[0030] Preferably, step S14 includes:

[0031] S141: Initial stage of corrosion. During this stage, the electrolyte composition changes, with an increase in Al4C3 content, a slight increase in the molecular ratio, an increase in electrolysis temperature, and an increase in current density. Corresponding to the initial stage of cathode operation, there is no risk of corrosion or the risk of corrosion is relatively small.

[0032] S142: Erosion expansion stage. During this stage, the electrolyte composition fluctuates, with a significant increase in Al4C3 and fluctuating molecular ratios, showing an overall increasing trend. Electrolysis temperature and current density exhibit the same fluctuating trend. During erosion, the temperature of the cathode steel rod rises, and erosion continues until the cathode steel rod is eroded. Elements such as Fe and Si appear in the aluminum liquid, and their content gradually increases and accumulates as electrolysis progresses. There is a potential erosion risk, which can be classified as moderate or severe depending on the situation.

[0033] S143: Severe corrosion and damage stage, all indicators are abnormal, and the possibility of severe corrosion manifestations such as steel bar melting, side leakage and bottom leakage is maximized; there is a serious risk of corrosion.

[0034] Preferably, step S2 includes:

[0035] S21: Input the data into the BiLSTM. The hidden state of the forward LSTM contains information from all time steps before the current time step; the hidden state of the backward LSTM contains information from all time steps after the current time step. Concatenate or weighted average the hidden states of the forward and backward LSTMs at each time step to obtain a new hidden state sequence HBiLSTM={h1,h2,…h… T}, each h t This represents the hidden state at time step t. The merged hidden state contains the temporal information before and after the current time step, thus modeling the overall trend of the long trend.

[0036] S22: Within the BiLSTM model, the Reshape layer increases the dimensionality of the data, preparing it for integration into the CNN. Within the CNN algorithm, convolutional layers 1D-CNN, 2D-CNN, ..., nD-CNN (where n is the number of local features) capture different sequence local features. Subsequently, within the CNN, Dropout and pooling layers process these features, performing initial fusion through broadcasting and addition to capture the deep local features F in the long-term trend. CNN , where each feature vector ft represents a local feature captured within a time step;

[0037] S23: The multi-head attention algorithm (MHA) is used to enable BiLSTM-CNN to focus on different features in multiple subspaces.

[0038] Preferably, step S23 includes:

[0039] S231: The feature sequence H modeled by BiLSTM BiLSTM ={h1,h2,…h T} As a long-term trend feature, the feature map F of the CNN is used for input. CNN = H BiLSTM ={f1,f2,…f T} as local feature input;

[0040] S232: Within the MHA, a linear transformation is used to transform H... BiLSTM and F CNN Projecting onto the query, key, and value space of the attention head:

[0041]

[0042] in , , It is the linear transformation matrix of the k-th attention head;

[0043] S233: For each attention head, calculate the attention scores for long-term trends and local features separately:

[0044]

[0045]

[0046] Where dk is the vector dimension of the query and key, and softmax is used to scale the dot product result;

[0047] S234: Weight the corresponding value vectors using attention scores to obtain the fused features:

[0048]

[0049]

[0050] The long-term and local trend feature representations obtained from each attention head are fused together:

[0051]

[0052] Features are fused using weighted averaging and element-wise addition:

[0053]

[0054] Where α is the learning parameter, used to control the weights of long-term and local trends;

[0055] S235: Concatenate or linearly transform the outputs of all attention heads to obtain the final feature representation:

[0056]

[0057] or

[0058]

[0059] Among them, W O It is the linear transformation matrix of the output; finally, the fused feature representation is input into the subsequent fully connected layer or hybrid output layer for the final diagnostic task.

[0060] Preferably, the expression for the Prophet algorithm is:

[0061]

[0062] In the formula, L is the number of holidays or unusual periods, and β i It is the impact of these time periods on the observed object, D i (t) is an indicator function, where D is the value of holiday i when t belongs to holiday i. i (t) is 1, otherwise it is 0; abnormal fluctuations of g(t) can be used as processing characteristics.

[0063] Preferably, step S4 includes:

[0064] S41: The long trend O obtained by BiLSTM-CNN long Feature vector, assuming its dimension is d long The short-period eigenvector g obtained by Prophet short Assuming its dimension is d short Use the AAW model to align the feature dimensions of both; if O long and g short If the dimensions are different, fully connected layers or other linear transformations can be used to transform them to the same dimension d, i.e., O long Convert to O' long , will g short Convert to g' short , where d long and d short Convert to d:

[0065]

[0066]

[0067] In the formula W long and W short It is the weight matrix, b long and b short It is the bias vector;

[0068] S42: Transform the long-term trend characteristics O' long and short-period characteristics g' short Perform a connection to form a new feature vector h. concat Its expression is:

[0069]

[0070] Subsequently, an additive attention mechanism is used to calculate the attention weight for each feature:

[0071]

[0072]

[0073] In the formula, W concat and b concat The parameters for training the algorithm are given by v, which is the attention vector.

[0074] Calculate the soft attention score:

[0075]

[0076]

[0077] In the formula, the attention weight λ long and λ short Satisfying λ long +λ short =1.

[0078] S43: Weight and fuse the long-term trend features and short-term cycle features according to the calculated attention weights to obtain a feature vector h that integrates the long-term trend and short-term cycle features. fusion Its expression is:

[0079]

[0080] In summary, the intelligent diagnostic method for cathode corrosion of aluminum electrolytic cells based on temporal feature coupling of the present invention has at least the following beneficial effects:

[0081] 1. By using the BiLSTM algorithm to extract long-term trend features of aluminum electrolytic cell cathode corrosion, the CNN algorithm to extract deep local features from the long-term trend features, the multi-head attention mechanism algorithm to fuse the trend features of BiLSTM and CNN, the Prophet algorithm to extract short-term features, and the AAW algorithm to fuse long and short features, the corrosion status of aluminum electrolytic cell cathode in the current and short term can be comprehensively judged and output, providing a reference and guidance for safety management in aluminum electrolysis production.

[0082] 2. It avoids the passive response of on-site inspections due to cell shutdowns caused by malfunctions, and allows for advance detection of cathode erosion in aluminum electrolysis cells, ensuring orderly production of aluminum electrolysis and improving efficiency. Attached Figure Description

[0083] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art 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 any novel effort.

[0084] Figure 1 This is a flowchart of the present invention.

[0085] Figure 2 This is a schematic diagram of the BCPA model structure in this invention.

[0086] Figure 3 These are the ROC curves of BCPA in this invention on three datasets.

[0087] Figure 4 These are the PR curves of BCPA in this invention on three datasets.

[0088] Figure 5 This refers to the logarithmic loss of BCPA in different types of cathode erosion in aluminum electrolysis cells according to the present invention.

[0089] Figure 6 This invention compares the BCPA used in this invention with that of experts in erosion identification. Detailed Implementation

[0090] To enable those skilled in the art to better understand the technical solution of the present invention, the following description is provided in conjunction with the appendix. Figure 1-6 The present invention will be further described in detail below with reference to specific embodiments.

[0091] See appendix Figure 1-2 This embodiment provides an intelligent diagnostic method for cathode corrosion in aluminum electrolytic cells based on temporal feature coupling, including the following steps:

[0092] S1: Based on the current aluminum electrolysis production situation, data was collected from three companies in Shandong, Qinghai, and Chongqing. According to the companies' production and safety management, cathode temperature, cathode current density, electrolyte molecular ratio, electrolyte composition (including changes in elements such as Fe and Si), and cathode steel rod temperature were selected as characterization indicators. The indicator set was determined based on the feasibility of collecting data from each company, and the indicator data was collected. The data collection period was from November 2023 to December 2025. Because the various process indicators in aluminum electrolysis production are strongly coupled and mutually influential, most process variables have a certain linear or nonlinear relationship with cathode erosion. However, due to sensor malfunctions, noise signals, etc., the data collection of these process indicators resulted in missing or obviously erroneous data. Therefore, data preprocessing such as interpolation and noise reduction was required. The detailed steps are as follows:

[0093] S11: The collected cathode operating index data of the aluminum electrolysis cell are preprocessed by denoising, interpolation, and standardization. The denoising method is single exponential smoothing.

[0094]

[0095] Among them, F t+1 This is the predicted value for the next period, X. t It is the current actual value, F t This is the predicted value from the previous period, and α is the smoothing coefficient, which determines the weight of the current actual value and the previous period's predicted value in the forecast. The smoothing coefficient α ranges from 0 to 1 and usually needs to be determined based on the specific application scenario and data characteristics.

[0096] Data interpolation is performed in the following way:

[0097]

[0098] Where Y is the value corresponding to the unknown data point to be estimated, X is the value of the unknown data point, Y1 and Y2 are the Y values ​​of two known data points, and X1 and X2 are the values ​​of two known data points.

[0099] Based on the normalization principle, the model identifies prominent hazards at the site according to the following rules:

[0100]

[0101]

[0102]

[0103] In the formula q i U represents the i-th sample value in the sample sequence. iThis represents the data after Z-score standardization, where θ represents q1, q2, ..., q i ,...,q n The mean of q1, q2, ..., q, where δ represents the sum of q1, q2, i ,...,q n The standard deviation; after the original data is standardized, the variables are scaled to a distribution with a mean of 0 and a variance of 1;

[0104] S12: Divide the normalized data into test set Data-1 and validation sets Data-2 and Data-3;

[0105] S13: Summarize the different types of cathodic corrosion risk and their risk levels, resulting in a total of 17 corrosion types and four risk levels;

[0106] Non (risk-free): Initial stability with no wear, surface wear, surface erosion, localized pitting corrosion;

[0107] Non / High (No / High Risk): Surface cracks, transverse cracks, longitudinal cracks;

[0108] High risk: Ion mixture penetration, corner or localized erosion, bottom bulging fracture, erosion pit clusters;

[0109] High / Extreme: Deep pitting and stratified erosion;

[0110] Extreme (extremely high risk): steel rod corrosion, steel rod layered peeling, outer shell damage, cell leakage.

[0111] The risk levels above are derived by coupling different indicator thresholds in Table 1.

[0112]

[0113] Table 1. Different indicators of cathodic corrosion and supercritical characteristics of aluminum electrolytic cells

[0114] S2: Based on the numerical and structural characteristics of the long-term trend index data of the collected aluminum electrolytic cathode, we selected to use a bidirectional long short-term memory network (BiLSTM) and a convolutional neural network (CNN) to process the global and local temporal features respectively; by using multi-head attention (MHA), we improved the simultaneous attention of BiLSTM-CNN to multiple parts of the captured sequence features, calculated the weights of multiple attention heads, and focused on different parts of the input sequence.

[0115] S2 includes the following steps:

[0116] S21: Input the validation set Data-1 into the model for training. In BiLSTM, the hidden state of the forward LSTM contains information from all time steps before the current time step. The hidden state of the backward LSTM contains information from all time steps after the current time step. Concatenate or weightedly average the hidden states of the forward and backward LSTMs at each time step to obtain a new hidden state sequence H. BiLSTM ={h1,h2,…h T}, each h t This represents the hidden state at time step t. The merged hidden state contains the temporal information before and after the current time step, thus modeling the overall trend of the long trend.

[0117] S22: Within the BiLSTM model, the Reshape layer increases the dimensionality of the data, preparing it for integration into the CNN. Specifically, within the CNN algorithm, convolutional layers 1D-CNN, 2D-CNN, ..., nD-CNN (where n is the number of local features) capture different sequence local features. Subsequently, within the CNN, Dropout and pooling layers process these features, performing initial fusion through broadcasting and addition to capture the deep local features F in the long-term trend. CNN , where each feature vector f t Represents local features captured within a time step;

[0118] S23: Since the corrosion of the cathode in the aluminum electrolysis cell is a long-term and multi-factor combined effect, the multi-head attention algorithm (MHA) enables BiLSTM-CNN to focus on different features in multiple subspaces.

[0119] Specifically, S23 includes the following steps:

[0120] S231: The feature sequence H modeled by BiLSTM BiLSTM ={h1,h2,…h T} As a long-term trend feature, the feature map F of the CNN is used for input. CNN = H BiLSTM ={f1,f2,…f T} as local feature input;

[0121] S232: Linear Mapping. Within MHA, a linear transformation is used to map H... BiLSTM and F CNN Projecting onto the query, key, and value space of the attention head:

[0122]

[0123] in , , It is the linear transformation matrix of the k-th attention head.

[0124] S233: Calculate attention scores: For each attention head, calculate the attention scores for long-term and local trend features separately.

[0125]

[0126]

[0127] Where d k is the vector dimension of the query and key, and softmax is used to scale the dot product result.

[0128] S234: Summation generates weighted features. The corresponding value vectors are weighted using attention scores to obtain the fused features:

[0129]

[0130]

[0131] The long-term trend and local feature representations obtained from each attention head are fused:

[0132]

[0133] Alternatively, feature fusion can be achieved using weighted averaging or element-wise addition.

[0134]

[0135] Where α is the learning parameter, used to control the weights of long-term and local trends;

[0136] S235: Fused representation of feature outputs. The outputs of all attention heads are concatenated or linearly transformed to obtain the final feature representation:

[0137]

[0138] or,

[0139]

[0140] Among them, W O It is the linear transformation matrix of the output. The fused feature representation is then fed into subsequent fully connected layers or hybrid output layers for the final diagnostic task.

[0141] S3: Use the Prophet algorithm to capture the nonlinear features of short-period data for modeling.

[0142] Specifically, the short-term anomalous behavior characteristics of short-period index data such as Fe and Si in Data-1 are modeled using Prophet's holiday effect model for feature extraction:

[0143]

[0144] In the formula, L is the number of holidays or unusual periods, and β i It is the impact of these time periods on the observed object, D i (t) is an indicator function, where D is the value of holiday i when t belongs to holiday i. i (t) is 1 if it is not 0 otherwise. Abnormal fluctuations in g(t) can be used as a processing characteristic. This measure treats abnormal stages, process switching, maintenance, feeding, anode effects, etc. in aluminum electrolysis production as holiday events similar to those in Prophet.

[0145] S4: Adaptive Attention Weighting (AAW) is used to fuse the long-term features captured by BiLSTM-CNN and the short-period features modeled by Prophet to obtain the dynamic features of cathode erosion.

[0146] S4 includes the following steps:

[0147] S41: The long trend O obtained by BiLSTM-CNN long Feature vector, assuming its dimension is d long The short-period feature vector g obtained by Prophet short Assuming its dimension is d short The AAW model is used to align the feature dimensions of the two components. If O long and g short Since the dimensions are different, fully connected layers or other linear transformations can be used to transform them to the same dimension d, that is, to transform O... long Convert to O' long , will g short Convert to g' short , where d long and d short Convert to d:

[0148]

[0149]

[0150] In the formula W long and W short It is the weight matrix, b long and b short It is the bias vector.

[0151] When aligning features, the feature vectors need to be normalized to make the calculation of attention weights more stable.

[0152] S42: Transform the long-term trend characteristics O' long and short-period characteristics g' short Perform a connection to form a new feature vector h. concat :

[0153]

[0154] Subsequently, an additive attention mechanism is used to calculate the attention weight for each feature:

[0155]

[0156]

[0157] In the formula, W concat and b concat is the training parameter for the algorithm, and v is the attention vector.

[0158] Calculate the soft attention score:

[0159]

[0160]

[0161] In the formula, the attention weight λ long and λ short Satisfying λ long +λ short =1.

[0162] S43: For feature fusion, long-term trend features and short-cycle features are weighted and fused according to the calculated attention weights:

[0163]

[0164] The final result is an eigenvector h that integrates long-term trends and short-term cycle characteristics. fusion .

[0165] The BCPA model is trained using the above process to process multi-source data from graphitized cathodes in aluminum electrolytic cells, predicting the presence and risk level of erosion without distinguishing individual special cases, thus providing a basis for safety control of aluminum electrolytic cells. In this embodiment, after training BCPA from scratch using supervised learning, the model's performance on the test set and two validation sets was evaluated, as shown in Table 2 (erosion prediction performance without distinguishing special erosion cases). In the test set, the precision and recall of erosion detection reached 0.968 and 0.945, respectively, for common erosion types. In the validation set, the precision was 0.738-0.961, and the recall was 0.706-0.925. Furthermore, the confidence score exceeded 0.96 for common erosion cases on the test set and was 0.715-0.973 on the two validation sets. This highlights the high confidence and robust generalization ability of BCPA predictions. (See Appendix). Figure 3 The area under the curve (ROC-AUC) is a fairly high overall metric, exceeding 0.91 on the test set and 0.903 and 0.897 on the validation set. The Log loss score is close to 0.0 on all three datasets, with a maximum of no more than 0.5976 (see [reference]). Figure 5 (See appendix) Figure 4 The figure shows the precision and recall (PR) curves; due to the influence of class imbalance, the Data-1 internal test set shows a better PR-AUC area. All these combined metrics indicate that BCPA achieves good performance and robust generalization in cathodic corrosion detection. The corrosion diagnosis results of BCPA were compared with those of 10 senior aluminum electrolysis safety management experts with long-term experience in aluminum electrolysis, and the performance of each method was compared by calculating IDI (Integrated Discrimination Improvement). See Appendix. Figure 6 The dark green bar chart in the figure uses the diagnostic results of aluminum electrolysis safety management experts as the baseline. BCPA's IDI score is much greater than 0, indicating that it is superior to aluminum electrolysis safety management experts in diagnosing cathodic erosion status based on multi-source characteristic data.

[0166] Test set Data-1

[0167]

[0168] Validation set Data-2

[0169]

[0170] Validation set Data-3

[0171]

[0172] Table 2 shows the model's performance on the Data-1, Data-2, and Data-3 datasets.

[0173] S5: Combine steps 2, 3, and 4 to construct the diagnostic model BCPA. Based on step 1, input the test set data into the diagnostic model BCPA, train the model, adjust and optimize the model parameters, and determine the optimal diagnostic parameters of the model.

[0174] S6: If the diagnostic error of the model on the test set is within the accuracy range, the final diagnostic model for cathode erosion in aluminum electrolytic cells based on BiLSTM-CNN and Prophet is obtained. Otherwise, continue to step 5 to further tune the model parameters until the accuracy requirements are met.

[0175] S7: Input the validation set into the model to perform erosion diagnosis, and obtain the erosion status of the diagnostic object according to the erosion level classification.

[0176] Specifically, S7 includes inputting the detection set data into the model and obtaining h fusion The cathodic corrosion status of the aluminum electrolytic cell was classified according to the set grade values, and the results were output. The results are shown in Table 2. This verified whether BCPA can effectively detect the performance of the main corrosion types. In the two validation sets, 7 out of 17 types achieved high PR-AUC scores exceeding 0.9; in Data-2, 4 types had PR-AUC scores exceeding 0.9, and in Data-3, 5 types had PR-AUC scores exceeding 0.9. Clearly, BCPA is effective in detecting and diagnosing cathodic corrosion, and the proposed method is effective.

[0177] This invention proposes a method for diagnosing cathodic erosion in aluminum electrolytic cells based on an adaptive fusion of long-term deep local feature fusion and short-period feature extraction using deep learning algorithms. First, the main indicators affecting cathodic erosion during aluminum electrolysis production are analyzed and identified. Based on the available indicators for the enterprise, long-term indicator data are collected. Long-term and deep local features influencing cathodic erosion are extracted using BiLSTM-CNN, and the long-term features are fused to form a model. Simultaneously, short-period data on cathode steel rod temperature and Fe and Si element content are used for feature extraction via Prophet's holiday effect model. The long-term and short-period features are then weighted and fused using an adaptive attention-weighted feature fusion module to obtain the final deep features for predicting and diagnosing cathodic erosion. By comprehensively considering the influence and weights of each modality of data on cathodic erosion, the accuracy of the diagnostic prediction can be further improved.

[0178] This article 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. It should be noted that those skilled in the art can make several improvements and modifications to the present invention without departing from the principles of the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims

1. A smart diagnostic method for cathode corrosion in aluminum electrolytic cells based on temporal feature coupling, characterized in that, Includes the following steps: S1: Analyze and determine multi-source indicators that can characterize the cathode corrosion of aluminum electrolytic cells, including long-term time-series data such as temperature and current density, and short-period data such as Fe and Si content and cathode steel rod temperature. Raw data is collected in a time-series alignment and preprocessed with denoising and standardization. The data is divided into test and validation sets. Different coupling thresholds are set according to the changes in data coupling to distinguish different erosion states and risk levels. S2: Based on the numerical and structural characteristics of the long-term trend index data of the aluminum electrolytic cathode, we selected to use a bidirectional long short-term memory network (BiLSTM) and a convolutional neural network (CNN) to process the global and local temporal features respectively. By using multi-head attention (MHA), BiLSTM-CNN improves the simultaneous attention to multiple parts of the captured sequence features by calculating weights for multiple attention heads and focusing on different parts of the input sequence. S3: Use the Prophet algorithm to capture the nonlinear features of short-period data for modeling; S4: Adaptive attention weighting (AAW) is used to fuse the long-term features captured by BiLSTM-CNN and the short-period features modeled by Prophet to obtain the dynamic features of cathode erosion. S5: Combine steps 2, 3, and 4 to construct the diagnostic model BCPA. Based on step 1, input the test set data into the diagnostic model BCPA, train the model, adjust and optimize the model parameters, and determine the optimal diagnostic parameters of the model. S6: If the diagnostic error of the model on the test set is within the accuracy range, the final aluminum electrolytic cell cathode corrosion diagnostic model based on BiLSTM-CNN and Prophet is obtained; otherwise, continue to step 5 to continue adjusting the parameters of the model until the accuracy requirements are met. S7: Input the validation set into the model to perform erosion diagnosis, and obtain the erosion status of the diagnostic object according to different erosion levels.

2. The intelligent diagnostic method for cathode corrosion of aluminum electrolytic cells based on temporal feature coupling as described in claim 1, characterized in that, Step S1 includes: S11: Based on the current safety management technology and research in aluminum electrolysis production, aluminum electrolysis temperature, cathode current density, electrolyte molecular ratio, electrolyte composition (including changes in elements such as Fe and Si), and cathode steel rod temperature are selected as characterization indicators. The use of these indicators should be adjusted according to the actual available conditions of the enterprise. S12: The collected cathode operating index data of the aluminum electrolysis cell are preprocessed by denoising, interpolation, and standardization. The denoising method is single exponential smoothing. , Among them, F t+1 This is the predicted value for the next period, X. t It is the current actual value, F t This is the predicted value from the previous period. α is the smoothing coefficient, which determines the weight of the current actual value and the predicted value from the previous period in the prediction. The smoothing coefficient α ranges from 0 to 1 and usually needs to be determined based on the specific application scenario and data characteristics. Data interpolation is performed in the following way: , Where Y is the value corresponding to the unknown data point to be estimated, X is the value of the unknown data point, Y1 and Y2 are the Y values ​​of two known data points, and X1 and X2 are the values ​​of two known data points. Based on the normalization principle, the model identifies prominent hazards at the site according to the following rules: , , , In the formula q i U represents the i-th sample value in the sample sequence. i This represents the data after Z-score standardization, where θ represents q1, q2, ..., q i ,...,q n The mean of q1, q2, ..., q, where δ represents the sum of q1, q2, i ,...,q n The standard deviation; after the original data is standardized, the variables are scaled to a distribution with a mean of 0 and a variance of 1; S13: Divide the normalized data into a test set and a validation set; S14: Based on the comprehensive characterization of multiple indicators, erosion is divided into different states and risk stages.

3. The intelligent diagnostic method for cathode corrosion of aluminum electrolytic cells based on temporal feature coupling as described in claim 2, characterized in that, Step S14 includes: S141: Initial stage of corrosion. During this stage, the electrolyte composition changes, with an increase in Al4C3 content, a slight increase in the molecular ratio, an increase in electrolysis temperature, and an increase in current density. Corresponding to the initial stage of cathode operation, there is no risk of corrosion or the risk of corrosion is relatively small. S142: Erosion expansion stage. During this stage, the electrolyte composition fluctuates, with a significant increase in Al4C3 and fluctuating molecular ratios, showing an overall increasing trend. Electrolysis temperature and current density exhibit the same fluctuating trend. During erosion, the temperature of the cathode steel rod rises, and erosion continues until the cathode steel rod is eroded. Elements such as Fe and Si appear in the aluminum liquid, and their content gradually increases and accumulates as electrolysis progresses. There is a potential erosion risk, which can be classified as moderate or severe depending on the situation. S143: Severe corrosion and damage stage, all indicators are abnormal, and the possibility of severe corrosion manifestations such as steel bar melting, side leakage and bottom leakage is maximized; there is a serious risk of corrosion.

4. The intelligent diagnostic method for cathode corrosion of aluminum electrolytic cells based on temporal feature coupling as described in claim 1, characterized in that, Step S2 includes: S21: Input the data into the BiLSTM. The hidden state of the forward LSTM contains information from all time steps before the current time step, and the hidden state of the backward LSTM contains information from all time steps after the current time step. Concatenate or weighted average the hidden states of the forward and backward LSTMs at each time step to obtain a new hidden state sequence HBiLSTM={h1,h2,…h… T }, each h t This represents the hidden state at time step t. The merged hidden state contains the temporal information before and after the current time step, thus modeling the overall trend of the long trend. S22: Within the BiLSTM model, the Reshape layer increases the dimensionality of the data, preparing it for integration into the CNN. Within the CNN algorithm, convolutional layers 1D-CNN, 2D-CNN, ..., nD-CNN (where n is the number of local features) capture different sequence local features. Subsequently, within the CNN, Dropout and pooling layers process the data, performing initial fusion through broadcasting and addition to capture the deep local features F in the long-term trend. CNN , where each feature vector f t Represents local features captured within a time step; S23: The multi-head attention algorithm (MHA) is used to enable BiLSTM-CNN to focus on different features in multiple subspaces.

5. The intelligent diagnostic method for cathode corrosion of aluminum electrolytic cells based on temporal feature coupling as described in claim 4, characterized in that, Step S23 includes: S231: The feature sequence H modeled by BiLSTM BiLSTM ={h1,h2,…h T } As a long-term trend feature, the feature map F of the CNN is used for input. CNN =H BiLSTM ={f1,f2,…f T } as local feature input; S232: Within the MHA, a linear transformation is used to transform H... BiLSTM and F CNN Projecting onto the query, key, and value space of the attention head: , in , , It is the linear transformation matrix of the k-th attention head; S233: For each attention head, calculate the attention scores for long-term trends and local features separately: , Where d k The vector dimension is the query and key, and softmax is used to scale the dot product result; S234: Weight the corresponding value vectors using attention scores to obtain the fused features: , The long-term and local trend feature representations obtained from each attention head are fused together: , Features are fused using weighted averaging and element-wise addition: , Where α is the learning parameter, used to control the weights of long-term and local trends; S235: Concatenate or linearly transform the outputs of all attention heads to obtain the final feature representation: , or , Among them, W O It is the linear transformation matrix of the output; the fused feature representation is input into the subsequent fully connected layer or hybrid output layer for the final diagnostic task.

6. The intelligent diagnostic method for cathode corrosion of aluminum electrolytic cells based on temporal feature coupling as described in claim 1, characterized in that, The expression for the Prophet algorithm is: , In the formula, L is the number of holidays or unusual periods, and β i It is the impact of these time periods on the observed object, D i (t) is an indicator function, where D is the value of holiday i when t belongs to holiday i. i (t) is 1, otherwise it is 0; abnormal fluctuations of g(t) can be used as processing characteristics.

7. The intelligent diagnostic method for cathode corrosion of aluminum electrolytic cells based on temporal feature coupling as described in claim 1, characterized in that, Step S4 includes: S41: The long trend O obtained by BiLSTM-CNN long Feature vector, assuming its dimension is d long The short-period eigenvector g obtained by Prophet short Assuming its dimension is d short Use the AAW model to align the feature dimensions of both; if O long and g short If the dimensions are different, fully connected layers or other linear transformations can be used to transform them to the same dimension d, i.e., O long Convert to O' long , will g short Convert to g' short , where d long and d short Converted to d, its expression is: , , In the formula W long and W short It is the weight matrix, b long and b short It is the bias vector; S42: Transform the long-term trend characteristics O' long and short-period characteristics g' short Perform a connection to form a new feature vector h. concat Its expression is: , Subsequently, an additive attention mechanism is used to calculate the attention weight for each feature: , , In the formula, W concat and b concat The parameters for training the algorithm are given by v, which is the attention vector. Calculate the soft attention score: , , In the formula, the attention weight λ long and λ short Satisfying λ long +λ short =1; S43: Weight and fuse the long-term trend features and short-term cycle features according to the calculated attention weights to obtain a feature vector h that integrates the long-term trend and short-term cycle features. fusion Its expression is: 。