Equipment fault diagnosis method and device, electronic equipment and storage medium
Through spatial feature extraction and graph construction of the device's time series data, combined with the tree attention mechanism, multi-scale features are generated, which solves the problem of difficulty in learning long-term data in the existing technology and improves the accuracy and efficiency of fault diagnosis.
Patent Information
- Application Number
- CN202410659763.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-10-08
AI Technical Summary
Existing technologies rely on sequence data in equipment fault diagnosis, making it difficult to learn long-term data and causing high computational costs, affecting diagnosis efficiency.
By obtaining the time series data of the equipment to be detected, spatial feature extraction and graph construction are performed to generate graph structure data, and the tree attention mechanism is used to extract multi-scale features and input into the fault diagnosis model for diagnosis.
It improves the accuracy and efficiency of fault detection, reduces computing costs, and enhances data representation capabilities and diagnostic accuracy.
Smart Images

Figure CN118747290A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device, electronic device and storage medium for diagnosing equipment faults. Background Art
[0002] In industrial production and transportation systems, real-time diagnosis and timely response to system failures are critical. Relying on the previous manual repair method will lead to reduced equipment productivity, while also increasing maintenance costs and operator risks. Therefore, fault diagnosis technology based on artificial intelligence can provide faster and more accurate fault detection, helping to reduce downtime and improve system reliability. In related technologies, sequence data is usually used for artificial intelligence fault diagnosis, but this will result in only learning short-term sequence features, and it is difficult to learn long-term data. Even if it aggregates long-term sequence features, its computational cost and feature transfer cost are relatively high, which undoubtedly increases huge computing costs and diagnosis time, affecting the efficiency of equipment fault diagnosis.
[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to provide a device fault diagnosis method, apparatus, electronic device and storage medium, which can improve the efficiency of fault diagnosis.
[0005] To achieve the above object, an embodiment of the present application provides a device fault diagnosis method in one aspect, the method comprising:
[0006] Obtain timing data of the device to be tested;
[0007] Performing spatial feature extraction processing on the device to be detected to obtain spatial features;
[0008] Performing graph construction processing on the time series data according to the spatial features to obtain graph structure data;
[0009] Performing tree-shaped attention generation processing on the graph structure data to obtain multi-scale features;
[0010] The multi-scale features are input into the equipment fault diagnosis model to perform fault diagnosis processing to obtain a diagnosis result.
[0011] In some embodiments, the performing of spatial feature extraction processing on the device to be detected to obtain the spatial feature includes:
[0012] Extracting spatial nodes of the device to be detected to obtain a node set;
[0013] Perform feature extraction processing on the node set to obtain spatial features.
[0014] In some embodiments, the graph construction process is performed on the time series data according to the spatial features to obtain graph structure data, including:
[0015] Performing Euclidean distance calculation on the time series data according to the spatial features to obtain an adjacency relationship;
[0016] An adjacency matrix is calculated and processed according to the adjacency relationship and the spatial features to obtain graph structure data.
[0017] In some embodiments, performing tree attention generation processing on the graph structure data to obtain multi-scale features includes:
[0018] Performing feature extraction processing on the graph structure data through a graph convolutional network to obtain graph node features;
[0019] Performing convolution processing of multiple different receptive fields on the graph node features to obtain multiple scale features;
[0020] Aggregate and splice the multiple scale features to obtain multi-scale features.
[0021] In some embodiments, the inputting the multi-scale features into a device fault diagnosis model to perform fault diagnosis processing to obtain a diagnosis result includes:
[0022] Inputting the multi-scale features into a device fault diagnosis model, wherein the device fault diagnosis model includes a pathfinding network and a diagnosis network;
[0023] Performing aggregation weight processing on the multi-scale features through the pathfinding network to obtain a pathfinding map;
[0024] The pathfinding map is classified and diagnosed through the diagnosis network to obtain a diagnosis result.
[0025] In some embodiments, the step of performing weight aggregation processing on the multi-scale features through the pathfinding network to obtain a pathfinding map includes:
[0026] Performing similarity calculation on the multi-scale features to obtain multiple feature matrices;
[0027] The plurality of feature matrices are aggregated according to an aggregation formula to obtain a pathfinding map.
[0028] In some embodiments, before inputting the multi-scale features into the equipment fault diagnosis model for fault diagnosis processing, the method further includes pre-training the equipment fault diagnosis model, specifically including:
[0029] Get a sample dataset;
[0030] Inputting the sample data set into the equipment fault diagnosis model for forward propagation processing to obtain prediction data;
[0031] Perform loss function calculation processing on the predicted data and the label of the sample data set to obtain a loss function value;
[0032] The equipment fault diagnosis model is subjected to gradient descent processing according to the loss function value, thereby updating the parameters of the equipment fault diagnosis model.
[0033] To achieve the above object, another aspect of the embodiment of the present application provides a device for diagnosing equipment faults, the device comprising:
[0034] The first module is used to obtain the timing data of the device to be detected;
[0035] The second module is used to perform spatial feature extraction processing on the device to be detected to obtain spatial features;
[0036] A third module is used to perform graph construction processing on the time series data according to the spatial features to obtain graph structure data;
[0037] The fourth module is used to perform tree-shaped attention generation processing on the graph structure data to obtain multi-scale features;
[0038] The fifth module is used to input the multi-scale features into the equipment fault diagnosis model to perform fault diagnosis processing and obtain a diagnosis result.
[0039] To achieve the above objective, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0040] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0041] The embodiments of the present application include at least the following beneficial effects: The present application provides a method, apparatus, electronic device and storage medium for diagnosing equipment faults. The scheme obtains graph structure data by combining the time series data of the equipment to be detected with the spatial features for graph construction processing, which can capture the spatial features of the equipment and improve the accuracy of detection. In addition, the present application performs tree-shaped attention generation processing on the graph structure data to obtain multi-scale features, which can improve the efficiency of feature transfer through the tree structure, thereby using the multi-scale features as the input of the equipment fault diagnosis model, improving the data representation capability and diagnosis accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a flow chart of a device fault diagnosis method provided by an embodiment of the present application;
[0043] Figure 2 It is a schematic diagram of a graph structure construction provided by an embodiment of the present application;
[0044] Figure 3 This is a flowchart of a tree-shaped attention-generated multi-scale feature according to an embodiment of the present application;
[0045] Figure 4 is a neuron schematic diagram of a pathfinding network provided in an embodiment of the present application;
[0046] Figure 5 It is a structural schematic diagram of an equipment fault diagnosis device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0048] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0049] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0051] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following explanations.
[0052] With the continuous development of science and technology, many systems have become very complex, including industrial equipment, information technology systems, transportation systems, etc. Faults in these complex systems may come from many sources, and traditional manual diagnosis methods are no longer able to cope with them. Therefore, more intelligent and efficient fault diagnosis technology is needed.
[0053] In related technologies, fault diagnosis usually uses data in sequence form for artificial intelligence learning, which usually learns short-term sequence features and is difficult to learn long-term data. Even if the long-term sequence features are aggregated, the computational cost and feature transfer cost are relatively high, which undoubtedly increases the huge computing cost and diagnosis time.
[0054] In most industrial production, transportation network and other environments, the spatial structure between nodes is crucial to understanding the behavior of the system. The spatial layout of nodes can reflect the closeness of the influence between various devices. At the same time, it not only involves spatial relationships, but also dynamic changes in time. For example, the current of the motor in a mechanical device may change over time, and the flow in the transportation network may also fluctuate with different time periods. In order to better model this dynamicity, it is necessary to introduce time information into the model. Therefore, combining spatial structure with time data can improve the comprehensive understanding ability of the model. The multi-scale attention mechanism helps to improve the model's ability to model long-distance dependencies by modeling long-distance relationships at different scales, which can help the network pay attention to information at different levels and improve the perception of these complex patterns. Therefore, the use of a tree-shaped attention mechanism can more efficiently propagate multi-scale feature information.
[0055] In view of this, an embodiment of the present application provides a device fault diagnosis method, apparatus, device and medium. The scheme obtains graph structure data by combining the time series data of the device to be detected with the spatial features for graph construction processing, which can capture the spatial features of the device and improve the accuracy of detection. In addition, the present application performs tree-shaped attention generation processing on the graph structure data to obtain multi-scale features, which can improve the efficiency of feature transfer through the tree structure, thereby using the multi-scale features as the input of the device fault diagnosis model, improving the data representation capability and diagnosis accuracy.
[0056] A device fault diagnosis method provided in an embodiment of the present application relates to the field of artificial intelligence technology. A device fault diagnosis method provided in an embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements a device fault diagnosis method, etc., but is not limited to the above forms.
[0057] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0058] Figure 1 is an optional flow chart of a device fault diagnosis provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.
[0059] Step S101, obtaining the timing data of the device to be detected;
[0060] Step S102, performing spatial feature extraction processing on the device to be detected to obtain spatial features;
[0061] Step S103, performing graph construction processing on the time series data according to the spatial features to obtain graph structure data;
[0062] Step S104, performing tree attention generation processing on the graph structure data to obtain multi-scale features;
[0063] Step S105: input the multi-scale features into a device fault diagnosis model to perform fault diagnosis processing to obtain a diagnosis result.
[0064] Steps S101 to S105 shown in the embodiment of the present application are obtained by obtaining the time series data of the device to be detected, and performing spatial feature extraction processing on the device to be detected to obtain spatial features. Among them, the time series data is time series data, which refers to a data column recorded in chronological order, and the spatial feature is used to describe the node position and mutual relationship of the device to be detected. Then, the time series data is processed by graph construction in combination with the spatial feature, and the time series data is connected by the position and mutual relationship of each node in the spatial feature to obtain graph structure data. Then, the tree-shaped attention mechanism is used to model the graph structure data, and the multi-scale attention mechanism is used to model long-distance relationships at different scales to obtain multi-scale features. Finally, the multi-scale features are input into the pre-trained equipment fault diagnosis model for fault diagnosis processing to obtain a diagnosis result. The embodiment of the present application integrates multi-scale feature information so that the model can understand the state of the system more comprehensively, thereby improving the accuracy and efficiency of fault diagnosis.
[0065] In step S101 of some embodiments, the timing data of the device to be detected can be obtained by a sensor. The timing data of the device to be detected can also be obtained by other means, but not limited to this. The embodiment of the present application can also convert the timing data into a frequency domain representation through a fast Fourier (FFT) transform so that it can be subsequently input into a model for analysis and processing. Among them, the frequency domain can clearly see the various frequency components contained in the signal. Through frequency domain analysis, the amplitude and phase information of different frequencies in the signal can be understood, which helps to deeply understand the characteristics of the signal; filtering operations are performed, and by analyzing the distribution of the signal in frequency, specific frequency components can be selectively removed or enhanced, thereby achieving the purpose of filtering and noise reduction, which is very useful for processing noise or outliers in timing data. In the frequency domain, some operations and analyses are easier to perform, such as convolution operations. Fourier transform can convert convolution operations into simple multiplication operations, thereby improving computational efficiency.
[0066] In step S102 of some embodiments, performing spatial feature extraction processing on the device to be detected to obtain spatial features includes:
[0067] Extracting spatial nodes of the device to be detected to obtain a node set;
[0068] Perform feature extraction processing on the node set to obtain spatial features.
[0069] In the embodiment of the present application, the spatial nodes of the device to be detected are determined, and each device in different spaces is regarded as a node to obtain a node set. Then, feature extraction is performed through a neural network, such as using a convolutional network to perform feature extraction processing on the node set to obtain spatial features, which are used to describe the node positions and mutual relationships of the device to be detected.
[0070] In step S103 of some embodiments, the graph construction process is performed on the time series data according to the spatial features to obtain graph structure data, including:
[0071] Performing Euclidean distance calculation on the time series data according to the spatial features to obtain an adjacency relationship;
[0072] An adjacency matrix is calculated and processed according to the adjacency relationship and the spatial features to obtain graph structure data.
[0073] In the embodiment of the present application, the initial relationship between the nodes of the device to be detected is determined by the weight W, and the initial weight W is determined by the Euclidean distance of the time series data of each node. Figure 2 , the Euclidean distance calculation is performed on the time series data through the association relationship between each node in the spatial feature, and the adjacency relationship is calculated. Then, an adjacency matrix is constructed based on the adjacency relationship and the spatial feature. Since the graph has no sequential storage structure, a two-dimensional array can be used to represent the relationship between elements, that is, an array representation (adjacency matrix). By recording each node and the adjacency relationship between them, graph structure data is obtained, and the graph structure data is an adjacency matrix. The embodiment of the present application improves the accuracy of fault prediction by constructing graph structure data and combining the spatial characteristics of the equipment to be detected.
[0074] In step S104 of some embodiments, tree attention generation processing is performed on the graph structure data to obtain multi-scale features, including:
[0075] Performing feature extraction processing on the graph structure data through a graph convolutional network to obtain graph node features;
[0076] Performing convolution processing of multiple different receptive fields on the graph node features to obtain multiple scale features;
[0077] Aggregate and splice the multiple scale features to obtain multi-scale features.
[0078] In the embodiment of the present application, the acquired graph structure data is processed by a graph convolutional network with tree attention. Since the tree attention of the graph structure focuses on the features of child nodes, neighboring nodes and parent nodes, a multi-resolution representation is formed, the purpose is to efficiently propagate long-term and short-term features. First, feature extraction is performed on each node in the graph structure data to obtain node features, and multi-scale feature information is generated through convolution operations, and it is spliced to form a new data containing its own feature information as well as long-term and short-term feature information, namely, multi-scale features, and used as input for subsequent diagnostic algorithms.
[0079] Among them, the specific formula of tree attention is as follows:
[0080]
[0081] In the formula, the final node feature is Aggregation of child nodes, parent nodes and their own features; It means that the node is the first one among all nodes C; A is the edge matrix. Since it is an undirected table, we take half of it. for All child nodes; for Its parent node; S represents the scale range.
[0082] Reference Figure 3 , where B represents a unified batch of data, L is the feature length of each node, D represents the number of nodes, and C represents different convolution scales. Each node in the tree attention represents the graph data at a certain moment. The initial graph structure data uses a graph convolution (GCN) network for preliminary feature extraction, and simultaneously performs multiple convolution algorithms with different receptive fields to output multi-scale features for subsequent feature transfer. The embodiment of the present application can improve the efficiency of feature transfer by performing tree attention generation on graph structure data, providing a data basis for subsequent model prediction.
[0083] In step S105 of some embodiments, the inputting the multi-scale features into the equipment fault diagnosis model to perform fault diagnosis processing to obtain a diagnosis result includes:
[0084] Inputting the multi-scale features into a device fault diagnosis model, wherein the device fault diagnosis model includes a pathfinding network and a diagnosis network;
[0085] Performing aggregation weight processing on the multi-scale features through the pathfinding network to obtain a pathfinding map;
[0086] The pathfinding map is classified and diagnosed through the diagnosis network to obtain a diagnosis result.
[0087] In an embodiment of the present application, the equipment fault diagnosis model includes a pathfinder network and a diagnostic network, wherein the processed multi-scale feature information is input into the pathfinder network through a pyramid, and the aggregation weight of each edge in the multi-scale feature is summarized and learned through the pathfinder network, and optimized to produce the best result for the downstream learning task, i.e., the diagnostic network. The diagnostic network may be a graph convolution network, etc. For example, after feature extraction of the pathfinder graph through the graph convolution layer, prediction and classification are performed in combination with a support vector machine to obtain a diagnostic result. In an embodiment of the present application, the pathfinder is combined with a graph multi-head attention mechanism to flexibly construct a similarity function between nodes. The network can learn the complex relationships between nodes so that the diagnostic network can better capture the fault modes in the equipment to be detected, summarize the features, and perform diagnostic classification, thereby improving the efficiency of fault diagnosis.
[0088] Further as an optional implementation manner, performing aggregation weight processing on the multi-scale features through the pathfinding network to obtain a pathfinding map includes:
[0089] Performing similarity calculation on the multi-scale features to obtain multiple feature matrices;
[0090] The plurality of feature matrices are aggregated according to an aggregation formula to obtain a pathfinding map.
[0091] Among them, since the graph attention network (GAT) model learns a single aggregation on a single feature source, this greatly limits the expressive power of the graph it can learn; and the GAT framework relies heavily on the regularized multi-head attention mechanism, but the increase in parameters will lead to network overfitting, which may cause errors in training on actual data sets. Therefore, the embodiment of the present application adopts a pathfinder network, namely a graph attention pathfinder network (PADN), in which the weights in the adjacency matrix of the pathfinder network describing similar graphs are parameterized by a neural network. It is assumed that for each normalized adjacency matrix A1,...,A D , there is a feature matrix X1,...,X D , define a graph convolution model to learn the weight H of the input graph edge through node features i As shown below:
[0092] H i =σ(X i ·W′ i +b i );
[0093] In the formula, X i is the characteristic matrix of the i-th node, where σ(*) is a nonlinear element, and W′ i With b i is the trainable weight matrix and bias vector of the feature matrix;
[0094] Defining the adjacency matrix The input for neural network learning is as follows:
[0095]
[0096] In the formula, the nonlinear element is used The original edge weights conditioned on the original adjacency matrix are transformed via the Hadamard product.
[0097] The pathfinder neurons in the pathfinder network receive multiple graphs as training inputs, perform similarity calculations on multi-scale features to obtain multiple feature matrices, aggregate the obtained multiple feature matrices and output them. Figure 4 As shown in Figure 1, there are D different feature matrices, from which we learn and summarize the features into a graph data, which is then used as the input of the pathfinder neuron, which in turn outputs the pathfinder graph, i.e., the aggregated adjacency matrix. The expression of the aggregate formula is as follows:
[0098]
[0099] where β i The embodiment of the present application integrates multi-scale feature information so that the model can understand the state of the system more comprehensively, thereby improving the accuracy of fault diagnosis.
[0100] As a further optional implementation, before inputting the multi-scale features into the equipment fault diagnosis model for fault diagnosis processing, the method further includes pre-training the equipment fault diagnosis model, specifically including:
[0101] Get a sample dataset;
[0102] Inputting the sample data set into the equipment fault diagnosis model for forward propagation processing to obtain prediction data;
[0103] Perform loss function calculation processing on the predicted data and the label of the sample data set to obtain a loss function value;
[0104] The equipment fault diagnosis model is subjected to gradient descent processing according to the loss function value, thereby updating the parameters of the equipment fault diagnosis model.
[0105] In an embodiment of the present application, a sample data set is first input and forward propagated through the equipment fault diagnosis model, and the predicted data of the model is obtained after the weights and activation functions of each layer in the equipment fault diagnosis model; the predicted data of the model is compared with the true label, and the value of the loss function is calculated. Since the cross entropy loss function is more suitable for classification problems, the equipment fault diagnosis model in the embodiment of the present application uses the cross entropy loss function. Among them, the loss function measures the difference between the model prediction value and the true value, and is a scalar value; then gradient descent or other optimization algorithms are used to calculate the gradient of the loss function to the model parameters through back propagation; using the gradient information, the parameters of the model are updated to reduce the value of the loss function. The parameters of the equipment fault diagnosis model are updated by optimization algorithms such as gradient descent.
[0106] The following is a detailed description of the embodiments of the present invention with reference to specific application examples:
[0107] The embodiments of the present application are applied to the field of artificial intelligence and can be applied to fault detection in equipment or systems. In a specific embodiment, the device to be detected is a robotic arm. The time series data of each node in the robotic arm is obtained by sensors, such as current data, voltage data, etc., and then each part of the robotic arm is used as a node for feature extraction to obtain node features, and the time series data is constructed in combination with spatial features to obtain graph structure data. Multi-scale features are generated by extracting the graph structure data through tree-shaped attention, and finally the multi-scale features are input into the equipment fault diagnosis model for fault diagnosis processing to obtain a diagnosis result. The embodiments of the present application flexibly construct similarity functions between nodes by combining the multi-head attention mechanism of the graph. The network can learn the complex relationships between nodes in order to better capture the fault modes in the system and summarize the features and perform diagnostic classification. By integrating multi-scale feature information, the model can more comprehensively understand the state of the system, thereby improving the accuracy of fault diagnosis.
[0108] See also Figure 5 The embodiment of the present application also provides a device for diagnosing equipment faults, which can implement the above-mentioned device fault diagnosis method, and the device includes:
[0109] The first module 501 is used to obtain the timing data of the device to be detected;
[0110] The second module 502 is used to perform spatial feature extraction processing on the device to be detected to obtain spatial features;
[0111] The third module 503 is used to perform graph construction processing on the time series data according to the spatial features to obtain graph structure data;
[0112] The fourth module 504 is used to perform tree attention generation processing on the graph structure data to obtain multi-scale features;
[0113] The fifth module 505 is used to input the multi-scale features into the equipment fault diagnosis model to perform fault diagnosis processing to obtain a diagnosis result.
[0114] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0115] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned device fault diagnosis method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0116] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0117] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned device fault diagnosis method is implemented.
[0118] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0119] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0120] The embodiments of the present application provide a device fault diagnosis method, device fault diagnosis apparatus, electronic device and storage medium, which obtains graph structure data by combining the time series data of the device to be detected with the spatial features for graph construction processing, and can capture the spatial features of the device and improve the accuracy of detection. In addition, the present application performs tree-shaped attention generation processing on the graph structure data to obtain multi-scale features, which can improve the efficiency of feature transfer through the tree structure, thereby using the multi-scale features as the input of the device fault diagnosis model, improving the data representation capability and diagnosis accuracy.
[0121] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0122] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0123] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0124] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0125] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0126] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0127] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0128] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0129] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0131] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A device fault diagnosis method, characterized in that: The method comprises: Obtain timing data of the device to be tested; Performing spatial feature extraction processing on the device to be detected to obtain spatial features; Performing graph construction processing on the time series data according to the spatial features to obtain graph structure data; Performing tree-shaped attention generation processing on the graph structure data to obtain multi-scale features; The multi-scale features are input into the equipment fault diagnosis model to perform fault diagnosis processing to obtain a diagnosis result.
2. The method according to claim 1, characterized in that The performing of spatial feature extraction processing on the device to be detected to obtain the spatial feature includes: Extracting spatial nodes of the device to be detected to obtain a node set; Perform feature extraction processing on the node set to obtain spatial features.
3. The method according to claim 1, characterized in that The step of performing graph construction processing on the time series data according to the spatial features to obtain graph structure data includes: Performing Euclidean distance calculation on the time series data according to the spatial features to obtain an adjacency relationship; An adjacency matrix is calculated and processed according to the adjacency relationship and the spatial features to obtain graph structure data.
4. The method according to claim 1, characterized in that The performing tree-shaped attention generation processing on the graph structure data to obtain multi-scale features includes: Performing feature extraction processing on the graph structure data through a graph convolutional network to obtain graph node features; Performing convolution processing of multiple different receptive fields on the graph node features to obtain multiple scale features; Aggregate and splice the multiple scale features to obtain multi-scale features.
5. The method according to claim 1, characterized in that The step of inputting the multi-scale features into the equipment fault diagnosis model to perform fault diagnosis processing and obtain a diagnosis result includes: Inputting the multi-scale features into a device fault diagnosis model, wherein the device fault diagnosis model includes a pathfinding network and a diagnosis network; Performing aggregation weight processing on the multi-scale features through the pathfinding network to obtain a pathfinding map; The pathfinding map is classified and diagnosed through the diagnosis network to obtain a diagnosis result.
6. The method according to claim 5, characterized in that The step of performing aggregation weight processing on the multi-scale features through the pathfinding network to obtain a pathfinding map includes: Performing similarity calculation on the multi-scale features to obtain multiple feature matrices; The plurality of feature matrices are aggregated according to an aggregation formula to obtain a pathfinding map.
7. The method according to any one of claims 1 to 5, characterized in that: Before inputting the multi-scale features into the equipment fault diagnosis model for fault diagnosis processing, the method further includes pre-training the equipment fault diagnosis model, specifically including: Get a sample dataset; Inputting the sample data set into the equipment fault diagnosis model for forward propagation processing to obtain prediction data; Perform loss function calculation processing on the predicted data and the label of the sample data set to obtain a loss function value; The equipment fault diagnosis model is subjected to gradient descent processing according to the loss function value, thereby updating the parameters of the equipment fault diagnosis model.
8. A device for diagnosing equipment faults, characterized in that: The device comprises: The first module is used to obtain the timing data of the device to be detected; The second module is used to perform spatial feature extraction processing on the device to be detected to obtain spatial features; A third module is used to perform graph construction processing on the time series data according to the spatial features to obtain graph structure data; The fourth module is used to perform tree-shaped attention generation processing on the graph structure data to obtain multi-scale features; The fifth module is used to input the multi-scale features into the equipment fault diagnosis model to perform fault diagnosis processing and obtain a diagnosis result.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Mechanical arm fault detection method based on joint point tracking
CN121073917A
