Anode current signal classification method, system and device based on spatiotemporal convolution layer
By using a method based on spatiotemporal convolution layers and combining time and space features to classify anode current signals, the problem of low efficiency and accuracy in the existing technology is solved, and a more efficient classification of anode current signals is achieved.
Patent Information
- Application Number
- CN202111146469.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-11-17
AI Technical Summary
The existing anode current signal classification methods have poor efficiency and accuracy, mainly due to the lack of combination of spatiotemporal features, high time complexity and single feature extraction, and fail to effectively utilize the spatiotemporal features of the anode current signal.
A method based on spatio-temporal convolution layer is used to construct the distance representation matrix and adjacency matrix by calculating the plan view of the anode in the aluminum electrolytic tank. The temporal and spatial convolution layers are combined to extract the temporal and spatial characteristics of the anode current signal, and then It is fed into a multi-layer classifier for classification.
The classification efficiency and accuracy of the anode current signal is improved, and the spatiotemporal characteristics of the signal can be captured more accurately, thereby improving the classification results.
Smart Images

Figure CN113850205B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular to a method, system and device for classifying anode current signals based on a spatiotemporal convolution layer. Background Art
[0002] At present, aluminum ranks third in the world in terms of reserves among all elements on earth, and my country is also the world's largest producer and consumer of primary aluminum. With the expansion of the capacity of aluminum electrolytic cells for refining aluminum, the control technology of existing aluminum electrolytic cells has been greatly challenged. The aluminum electrolytic cell is a complex and changeable industrial system with nonlinearity, multi-coupling and large time lag. The existing automatic process control equipment for aluminum electrolytic cells mainly adopts the standard configuration of modern production lines. The anode current signal is an important parameter containing spatiotemporal characteristics. The anode current is controlled by voltage, which can reflect the change of resistance component. Therefore, the anode current can reflect the local tank conditions around the anode. The study of anode current signals provides the possibility for the refinement and regionalization of aluminum electrolytic cells and the intelligent production of aluminum electrolysis. The anode current signal is an important parameter containing spatiotemporal characteristics, but the existing anode current signal classification method is through frequency domain analysis or machine learning. The problem faced by the method based on frequency domain features is that the extracted features are relatively simple and the distribution characteristics of the anode current signal are not considered. The main problem faced by the method based on machine learning is that the time complexity is large, only the time dimension features are represented, and the extraction of spatial dimension features is lacking. Most methods do not combine the temporal and spatial characteristics of the anode current signal, which is a type of data with obvious temporal and spatial characteristics, resulting in poor classification efficiency and accuracy.
[0003] It can be seen that there is an urgent need for an accurate and efficient anode current signal classification method based on spatiotemporal convolutional layers. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure provide a method, system and device for classifying anode current signals based on a spatiotemporal convolution layer, which at least partially solve the problem of poor anode current signal classification efficiency and classification accuracy in the prior art.
[0005] In a first aspect, an embodiment of the present disclosure provides an anode current signal classification method based on a spatiotemporal convolution layer, comprising:
[0006] Calculate the distance representation matrix based on the plan view of the anodes in the aluminum electrolysis cell;
[0007] Calculating an adjacency matrix and a data structure graph of all the anode current signals according to the distance representation matrix, wherein the nodes in the data structure graph correspond to the anodes in the aluminum electrolysis cell;
[0008] Input the adjacency matrix into the time convolution layer for convolution operation to extract the time features corresponding to all the anode current signals;
[0009] Inputting all the time features and the data structure graph into the spatial convolution layer to extract the spatial features corresponding to all the anode current signals;
[0010] The time feature and the space feature are input into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolysis cell.
[0011] According to a specific implementation of the embodiment of the present disclosure, the step of calculating the distance representation matrix according to the plan view of the anode in the aluminum electrolysis cell includes:
[0012] According to the plan view of the anodes, the anodes belonging to the same anode busbar are respectively regarded as anode sets;
[0013] The distances between different anodes are calculated according to different anode sets to obtain the distance representation matrix.
[0014] According to a specific implementation of the embodiment of the present disclosure, the step of calculating the adjacency matrix and the data structure diagram of all the anode current signals according to the distance representation matrix includes:
[0015] Filtering the values in the distance representation matrix to obtain the adjacency matrix;
[0016] The adjacency matrix is standardized according to the degree of each anode in the aluminum electrolysis cell to obtain the data structure graph.
[0017] According to a specific implementation of the embodiment of the present disclosure, the temporal convolution layer includes multiple one-dimensional convolution layers, a maximum pooling layer and an activation function corresponding to each of the one-dimensional convolution layers.
[0018] According to a specific implementation of the embodiment of the present disclosure, the step of inputting the adjacency matrix into the time convolution layer for convolution operation to extract the time features corresponding to all the anode current signals includes:
[0019] Inputting the value corresponding to each anode current signal in the adjacency matrix into the temporal convolution layer;
[0020] On a time series of preset length, the multiple convolution layers respectively convolve each of the anode current signals to obtain a time feature corresponding to each of the anode current signals.
[0021] According to a specific implementation of the embodiment of the present disclosure, the step of inputting all the time features and the data structure graph into the spatial convolution layer to extract the spatial features corresponding to all the anode current signals includes:
[0022] Input all the time features into the spatial convolution layer, and filter the corresponding nodes on the data structure graph;
[0023] The spatial features corresponding to each node are obtained through the first-order neighboring points.
[0024] According to a specific implementation of the embodiment of the present disclosure, before the step of inputting the time feature and the spatial feature into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolysis cell, the method further includes:
[0025] Using a preset number of sample features to input the multi-layer classifier, and calculating a loss function based on the output results of the multi-layer classifier and the true labels of the sample features;
[0026] The multi-layer classifier is updated according to the loss function.
[0027] In a second aspect, the embodiment of the present disclosure provides an anode current signal classification system based on a spatiotemporal convolution layer, comprising:
[0028] A first calculation module, used for calculating a distance representation matrix according to a plan view of anodes in an aluminum electrolytic cell;
[0029] A second calculation module, used for calculating the adjacency matrix and data structure graph of all the anode current signals according to the distance representation matrix, wherein the nodes in the data structure graph correspond to the anodes in the aluminum electrolysis cell;
[0030] A first convolution module, used for inputting the adjacency matrix into a time convolution layer for convolution operation, and extracting the time features corresponding to all the anode current signals;
[0031] A second convolution module is used to input all of the time features and the data structure graph into a spatial convolution layer to extract the spatial features corresponding to all of the anode current signals;
[0032] The classification module is used to input the time feature and the space feature into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolysis cell.
[0033] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0034] at least one processor; and,
[0035] a memory communicatively connected to the at least one processor; wherein,
[0036] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the anode current signal classification method based on the spatiotemporal convolution layer in the aforementioned first aspect or any implementation of the first aspect.
[0037] In a fourth aspect, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the anode current signal classification method based on the spatiotemporal convolution layer in the aforementioned first aspect or any implementation of the first aspect.
[0038] In the fifth aspect, the embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the anode current signal classification method based on the spatiotemporal convolution layer in the aforementioned first aspect or any implementation of the first aspect.
[0039] The anode current signal classification scheme based on the spatiotemporal convolution layer in the embodiment of the present disclosure includes: calculating a distance representation matrix based on a plan view of the anodes in the aluminum electrolytic cell; calculating an adjacency matrix and a data structure graph of all the anode current signals based on the distance representation matrix, wherein the nodes in the data structure graph correspond to the anodes in the aluminum electrolytic cell; inputting the adjacency matrix into the temporal convolution layer for convolution operation to extract the time features corresponding to all the anode current signals; inputting all the time features and the data structure graph into the spatial convolution layer to extract the spatial features corresponding to all the anode current signals; inputting the time features and the spatial features into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolytic cell.
[0040] The beneficial effects of the embodiments of the present disclosure are as follows: through the scheme of the present disclosure, the time dependency and the space dependency of the anode current signal are captured separately and combined for classification, thereby improving the classification efficiency and classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A schematic diagram of a flow chart of an anode current signal classification method based on a spatiotemporal convolution layer provided in an embodiment of the present disclosure;
[0043] Figure 2 A schematic diagram of an aluminum electrolysis cell involved in a method for classifying anode current signals based on a spatiotemporal convolution layer provided in an embodiment of the present disclosure;
[0044] Figure 3 A schematic diagram of the structure of an anode current signal classification system based on a spatiotemporal convolution layer provided in an embodiment of the present disclosure;
[0045] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0046] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0047] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0048] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0049] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0050] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0051] At present, aluminum ranks third in the world in terms of reserves among all elements on earth, and my country is also the world's largest producer and consumer of primary aluminum. With the expansion of the capacity of aluminum electrolytic cells for refining aluminum, the control technology of existing aluminum electrolytic cells has been greatly challenged. The aluminum electrolytic cell is a complex and changeable industrial system with nonlinearity, multi-coupling and large time lag. The existing automatic process control equipment for aluminum electrolytic cells mainly adopts the standard configuration of modern production lines. The anode current signal is an important parameter containing spatiotemporal characteristics. The anode current is controlled by voltage, which can reflect the change of resistance component. Therefore, the anode current can reflect the local tank conditions around the anode. The study of anode current signals provides the possibility of realizing the refined and regionalized control of aluminum electrolytic cells and the intelligent production of aluminum electrolysis. The anode current signal contains two abnormal states: anode effect and pole change. As the electrolysis reaction proceeds, the aluminum oxide in the electrolyte is gradually consumed and the aluminum oxide concentration gradually decreases. The low concentration of aluminum oxide reduces the wettability of the anode surface, making it difficult for bubbles attached to the surface to diffuse, which ultimately leads to the occurrence of the anode effect. The anode effect generally occurs on one or more anodes and quickly spreads to other anodes. The continuous consumption of carbon blocks on the anode surface leads to the periodic replacement of anodes. The replacement of anodes will cause a sharp disturbance in the anode current signal around the replaced anode.
[0052] The anode current signal is an important parameter that contains spatiotemporal characteristics. However, the existing anode current signal classification methods are based on frequency domain analysis or machine learning. The problem faced by the method based on frequency domain characteristics is that the extracted features are relatively simple and do not consider the distribution characteristics of the anode current signal. The main problems faced by the machine learning-based method are: high time complexity, only the representation of time dimension features, and lack of extraction of spatial dimension features. Most methods do not combine the spatiotemporal characteristics of the anode current signal, and the anode current signal is a type of data with obvious spatiotemporal characteristics, resulting in poor classification efficiency and accuracy.
[0053] The embodiment of the present disclosure provides an anode current signal classification method based on a spatiotemporal convolution layer, which can be applied to the anode current signal classification process in the diagnosis and prediction scenarios of aluminum electrolysis cell fault locations and fault signal trends.
[0054] See also Figure 1 , is a flow chart of a method for classifying anode current signals based on a spatiotemporal convolution layer provided by an embodiment of the present disclosure. Figure 1 As shown, the method mainly comprises the following steps:
[0055] S101, calculating a distance representation matrix according to a plan view of anodes in an aluminum electrolytic cell;
[0056] In a specific implementation, the electronic device may have a built-in image acquisition module or an external image acquisition device, and the image acquisition module or the external image acquisition device acquires a planar image of the aluminum electrolysis cell, such as Figure 2 As shown, the position of the anode in the aluminum electrolysis cell is identified based on the image, and then the distance representation matrix can be calculated based on the plan view of the anode in the aluminum electrolysis cell.
[0057] S102, calculating an adjacency matrix and a data structure graph of all the anode current signals according to the distance representation matrix, wherein the nodes in the data structure graph correspond to the anodes in the aluminum electrolysis cell;
[0058] Specifically, after obtaining the distance representation matrix, the adjacency matrix can be established according to the positional relationship between different anodes, and each anode in the aluminum electrolytic cell is taken as a node to establish the data structure graph.
[0059] S103, inputting the adjacency matrix into a time convolution layer for convolution operation to extract the time features corresponding to all the anode current signals;
[0060] In a specific implementation, the adjacency matrix is used as input data of the time convolution layer, and then the adjacency matrix is convolved through the time convolution layer to capture the time dependency of each anode current signal, thereby obtaining the time characteristics corresponding to all the anode current signals.
[0061] S104, inputting all the time features and the data structure graph into a spatial convolution layer to extract the spatial features corresponding to all the anode current signals;
[0062] In a specific implementation, after obtaining the time characteristics corresponding to all the anode current signals, all the time characteristics and the data structure diagram can be input into a spatial convolution layer, and the spatial convolution layer performs a convolution operation on all the time characteristics and the data structure diagram to determine the spatial dependency of each anode current signal, thereby obtaining the spatial characteristics corresponding to all the anode current signals.
[0063] S105, inputting the time feature and the space feature into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolysis cell.
[0064] In a specific implementation, after obtaining the time features and space features corresponding to all the anode current signals, the time features and the space features can be input into the multi-layer classifier, and the multi-layer classifier determines the type of the anode current signal in the aluminum electrolytic cell by combining the time features and the space features.
[0065] For example, the multi-layer classifier can be composed of multiple fully connected layers and activation functions ReLU and sigmoid corresponding to each fully connected layer. Three fully connected layers are used to directly map the output to the object class. For example, the function representation of one of the fully connected layers is FC=ReLU(Wx+b), where θ={W,b} is the parameter, and x and FC are the input and output data. The first two nonlinear functions are ReLU, and the last linear function is the sigmoid function. The expression formula of the activation function sigmoid is
[0066] The anode current signal classification method based on the spatiotemporal convolution layer provided in this embodiment improves the classification efficiency and classification accuracy by defining the anode current signal in the aluminum electrolytic cell as a graph structure, and capturing the time dependency and spatial dependency of the anode current signal respectively, and combining them for classification.
[0067] Based on the above embodiment, the step S101 of calculating the distance representation matrix according to the plan view of the anodes in the aluminum electrolytic cell includes:
[0068] According to the plan view of the anodes, the anodes belonging to the same anode busbar are respectively regarded as anode sets;
[0069] The distances between different anodes are calculated according to different anode sets to obtain the distance representation matrix.
[0070] In specific implementation, the anode busbar to which different anodes belong can be identified based on the anode plan view, and then the anodes belonging to the same anode busbar are respectively regarded as anode sets, and then the distances between different anodes are calculated based on different anode sets to obtain the distance representation matrix.
[0071] For example, the distance representation matrix AM of the anode current signal is calculated based on the plane graph of the anode current. The definition formula of AM is as follows
[0072] Among them, d Vi,VjRepresents the horizontal distance between anodes Vi and Vj. A={V1a,V2a,…,V12a},B={V1b,V2b,…,V12b} is the set of anodes under the same anode bus. Since the anodes in the same set are connected in parallel, the adjacent anodes have a closer connection. As shown in the formula, the value of AM[Vi,Vj] corresponding to Vi and Vj under the same anode bus is larger than the value of AM[Vi,Vj] not belonging to the same anode bus. AM[Vi,Vj] calculates the correlation distance between anodes and describes the strength of the connected edge. All elements in AM are restricted to the range [0,1].
[0073] Furthermore, in step S102, the adjacency matrix and data structure diagram of all the anode current signals are calculated according to the distance representation matrix, including:
[0074] Filtering the values in the distance representation matrix to obtain the adjacency matrix;
[0075] The adjacency matrix is standardized according to the degree of each anode in the aluminum electrolysis cell to obtain the data structure graph.
[0076] For example, according to formula AM, an error correction function can be defined to filter the values in the previous AM, shield weak connections, and strengthen the most relevant connections to obtain the adjacency matrix After obtaining the adjacency matrix, considering that different nodes have different degrees, the adjacency matrix can be standardized. in, is a diagonal matrix. is the degree matrix. Considering that the graph is an undirected graph, the formula can be converted to Thus, the data structure diagram is obtained.
[0077] Optionally, the temporal convolution layer includes multiple one-dimensional convolution layers, a maximum pooling layer, and an activation function corresponding to each of the one-dimensional convolution layers.
[0078] Furthermore, in step S103, the adjacency matrix is input into the time convolution layer for convolution operation to extract the time features corresponding to all the anode current signals, including:
[0079] Inputting the value corresponding to each anode current signal in the adjacency matrix into the temporal convolution layer;
[0080] On a time series of preset length, the multiple convolution layers respectively convolve each of the anode current signals to obtain a time feature corresponding to each of the anode current signals.
[0081] In a specific implementation, the temporal convolution layer may include a plurality of the one-dimensional convolution layers, a maximum pooling layer and an activation function corresponding to each of the one-dimensional convolution layers. Then, the value corresponding to each of the anode current signals in the adjacency matrix may be input into the temporal convolution layer. Then, on a time series of a preset length, the plurality of convolution layers may convolve each of the anode current signals respectively to obtain a temporal feature corresponding to each of the anode current signals.
[0082] For example, the temporal convolution layer TCL contains multiple one-dimensional convolutions, a maximum pooling layer and multiple corresponding convolutional layer ReLU activation functions. The input data of the temporal convolution layer is X∈R N×T×C , T represents a time series of length T, and C represents the channel of input X is 1. For each anode V in input X i ∈R T×C , the temporal convolutional layer can be defined as:
[0083] V l+1 i =ReLU(Pmax(1D_conv(V l i )))
[0084] f(V i 2 )=ReLU(1D_conv(Pmax(ReLU(1D_conv(V 0 i )))))))),
[0085] Among them, V i l Represents the node i,V belonging to layer l i 2 represents the node i in the second layer. f(V i 2 ) represents the output of TCL. Since each anode current has only one current value feature and no other features, the channel of the one-dimensional convolution is set to 1. The one-dimensional convolution performs a convolution operation on a sequence of length T at each node. P max The number of parameters can be reduced, thereby reducing the difficulty of training. The activation function ReLU can control which input is related to discovering component structure and dynamic changes, and can avoid the problems of gradient explosion and gradient disappearance.
[0086] On the basis of the above embodiment, in step S104, all the time features and the data structure graph are input into the spatial convolution layer to extract the spatial features corresponding to all the anode current signals, including:
[0087] Input all the time features into the spatial convolution layer, and filter the corresponding nodes on the data structure graph;
[0088] The spatial features corresponding to each node are obtained through the first-order neighboring points.
[0089] In a specific implementation, all the time features can be input into the spatial convolution layer, the corresponding nodes on the data structure graph can be filtered, and then the spatial features corresponding to each node can be obtained through the first sequential neighboring points to achieve learning of the anode current signal data through the graph convolutional neural network. For example, the filter is converted into a double-layer component heterogeneous layer,
[0090]
[0091]
[0092] Among them, ReLU is the linear rectification function, H l represents the activation matrix of layer l. Wl represents the parameter matrix of layer l. H0 represents the output of TCL layer and the input of SCL layer, where U is V i 2 The number of hidden units in the TCL layer, M is the output sequence length of the TCL layer. 0 ,A) represents the output of the SCL layer.
[0093] Optionally, in step S105, before inputting the time feature and the space feature into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolysis cell, the method further includes:
[0094] Using a preset number of sample features to input the multi-layer classifier, and calculating a loss function based on the output results of the multi-layer classifier and the true labels of the sample features;
[0095] The multi-layer classifier is updated according to the loss function.
[0096] For example, 1000 groups of temporal features and spatial features may be selected as the sample features, and then all the sample features are input into the multi-layer classifier, the multi-layer classifier is trained, and then the loss function is calculated based on the output results of the multi-layer classifier and the true labels of the sample features. For example, the formula of the loss function can be Then, the multi-layer classifier is updated according to the loss function, so that the updated multi-layer classifier has higher accuracy when classifying the anode current signal in the aluminum electrolysis cell in combination with the time feature and the spatial feature.
[0097] Corresponding to the above method embodiment, see Figure 3The embodiment of the present disclosure further provides an anode current signal classification system 30 based on a spatiotemporal convolution layer, comprising:
[0098] A first calculation module 301 is used to calculate a distance representation matrix according to a plan view of anodes in an aluminum electrolytic cell;
[0099] A second calculation module 302 is used to calculate the adjacency matrix and data structure graph of all the anode current signals according to the distance representation matrix, wherein the nodes in the data structure graph correspond to the anodes in the aluminum electrolysis cell;
[0100] A first convolution module 303 is used to input the adjacency matrix into a time convolution layer for convolution operation to extract the time features corresponding to all the anode current signals;
[0101] A second convolution module 304 is used to input all of the time features and the data structure graph into a spatial convolution layer to extract the spatial features corresponding to all of the anode current signals;
[0102] The classification module 305 is used to input the time feature and the space feature into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolysis cell.
[0103] Figure 3 The device shown can correspondingly execute the contents of the above method embodiment. For the parts not described in detail in this embodiment, refer to the contents recorded in the above method embodiment and will not be repeated here.
[0104] See also Figure 4 The embodiment of the present disclosure further provides an electronic device 40, which includes: at least one processor and a memory connected to the at least one processor. The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the anode current signal classification method based on the spatiotemporal convolution layer in the aforementioned method embodiment.
[0105] The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the anode current signal classification method based on the spatiotemporal convolution layer in the aforementioned method embodiment.
[0106] The embodiment of the present disclosure also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the anode current signal classification method based on the spatiotemporal convolution layer in the aforementioned method embodiment.
[0107] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 40 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0108] like Figure 4 As shown, the electronic device 40 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 to a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 40 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0109] Typically, the following devices may be connected to the I / O interface 405: input devices 406 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 408 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 409. The communication device 409 may allow the electronic device 40 to communicate wirelessly or wired with other devices to exchange data. Although the electronic device 40 with various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead.
[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0111] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0112] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0113] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device can execute the relevant steps of the method embodiment.
[0114] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can perform the relevant steps of the method embodiment.
[0115] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0116] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0117] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware.
[0118] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
[0119] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for classifying anode current signals based on spatiotemporal convolutional layers, characterized in that: include: Calculate the distance representation matrix based on the plan view of the anodes in the aluminum electrolysis cell; The step of calculating the distance representation matrix according to the plan view of the anodes in the aluminum electrolysis cell comprises: According to the plan view of the anodes, the anodes belonging to the same anode busbar are respectively regarded as anode sets; Calculate the distances between different anodes according to different anode sets to obtain the distance representation matrix; Calculating an adjacency matrix and a data structure graph of all the anode current signals according to the distance representation matrix, wherein the nodes in the data structure graph correspond to the anodes in the aluminum electrolysis cell; Inputting the adjacency matrix into the time convolution layer for convolution operation to extract the time features corresponding to all the anode current signals, wherein the time convolution layer includes a plurality of one-dimensional convolution layers, a maximum pooling layer and an activation function corresponding to each of the one-dimensional convolution layers; Inputting all the time features and the data structure graph into the spatial convolution layer to extract the spatial features corresponding to all the anode current signals; The step of inputting all the time features and the data structure graph into a spatial convolution layer to extract the spatial features corresponding to all the anode current signals comprises: Input all the time features into the spatial convolution layer, and filter the corresponding nodes on the data structure graph; Obtain the spatial features corresponding to each node through the first-order neighboring points; The time feature and the space feature are input into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolysis cell.
2. The method according to claim 1, characterized in that The step of calculating the adjacency matrix and data structure diagram of all the anode current signals according to the distance representation matrix comprises: Filtering the values in the distance representation matrix to obtain the adjacency matrix; The adjacency matrix is standardized according to the degree of each anode in the aluminum electrolysis cell to obtain the data structure graph.
3. The method according to claim 1, characterized in that The step of inputting the adjacency matrix into the time convolution layer for convolution operation to extract the time features corresponding to all the anode current signals includes: Inputting the value corresponding to each anode current signal in the adjacency matrix into the temporal convolution layer; On a time series of preset length, the multiple convolution layers respectively convolve each of the anode current signals to obtain a time feature corresponding to each of the anode current signals.
4. The method according to claim 1, characterized in that , before the step of inputting the time feature and the spatial feature into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolytic cell, the method further comprises; Using a preset number of sample features to input the multi-layer classifier, and calculating a loss function based on the output results of the multi-layer classifier and the true labels of the sample features; The multi-layer classifier is updated according to the loss function.
5. An anode current signal classification system based on spatiotemporal convolution layer, characterized in that: include: A first calculation module is used to calculate a distance representation matrix according to a plan view of anodes in an aluminum electrolytic cell; The specific process of the first calculation model is: The step of calculating the distance representation matrix according to the plan view of the anodes in the aluminum electrolysis cell comprises: According to the plan view of the anodes, the anodes belonging to the same anode busbar are respectively regarded as anode sets; Calculate the distances between different anodes according to different anode sets to obtain the distance representation matrix; A second calculation module, used for calculating the adjacency matrix and data structure graph of all the anode current signals according to the distance representation matrix, wherein the nodes in the data structure graph correspond to the anodes in the aluminum electrolysis cell; A first convolution module, used for inputting the adjacency matrix into a temporal convolution layer for convolution operation to extract the temporal features corresponding to all the anode current signals, wherein the temporal convolution layer includes a plurality of one-dimensional convolution layers, a maximum pooling layer and an activation function corresponding to each of the one-dimensional convolution layers; A second convolution module is used to input all of the time features and the data structure graph into a spatial convolution layer to extract the spatial features corresponding to all of the anode current signals; The specific process of the second convolution module is: The step of inputting all the time features and the data structure graph into a spatial convolution layer to extract the spatial features corresponding to all the anode current signals comprises: Input all the time features into the spatial convolution layer, and filter the corresponding nodes on the data structure graph; Obtain the spatial features corresponding to each node through the first-order neighboring points; The classification module is used to input the time feature and the space feature into a multi-layer classifier to obtain the type of the anode current signal in the aluminum electrolysis cell.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the anode current signal classification method based on the spatiotemporal convolution layer according to any one of claims 1 to 4.
