Method, device, electronic device and computer readable medium for determining fault type
By acquiring and analyzing the data parameters and parameter thresholds of the target equipment, and establishing fault correlation relationships, the problem of inability to troubleshoot faults in advance in the existing technology is solved, prediction and early warning of equipment failure types are achieved, and economic losses are avoided.
Patent Information
- Application Number
- CN202010970204.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-15
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-09-15
AI Technical Summary
Existing fault detection methods are mainly aimed at detection after a fault has occurred, and cannot eliminate faults in advance, making it difficult to avoid economic losses caused by equipment failure.
By obtaining the data parameters and parameter thresholds of the target device, establishing a fault correlation relationship, searching the parameter range of the data parameters to determine the fault type, and achieving fault type prediction and early warning for the target device.
It can predict the type of fault before the equipment fails and make corrections in advance to avoid losses to the greatest extent.
Smart Images

Figure CN112148733B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of fault location, and in particular to a method, device, electronic device and computer-readable medium for determining a fault type. Background Art
[0002] With the development of the automation industry, many industries use automated equipment to produce and process products. If the equipment fails, especially assembly line equipment, it will cause great economic losses to the factory. Therefore, it is necessary to perform fault detection on the equipment.
[0003] Current fault detection methods mainly include manual detection, data comparison detection and machine learning detection. However, these detection methods are only performed after a machine failure is confirmed. They can only reduce the losses caused by machine failure in the factory, but cannot eliminate the fault in advance and avoid losses. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and computer-readable medium for determining the type of fault, so as to solve the problem of troubleshooting in advance. The specific technical solution is as follows:
[0005] In a first aspect, the present application provides a method for determining a target fault type, the method comprising:
[0006] Acquire data parameters of target data in a target device and parameter thresholds of the data parameters, wherein the data parameters and the parameter thresholds have the same source identifier;
[0007] When the data parameter does not exceed the parameter threshold, acquiring a fault association relationship, wherein the fault association relationship includes an association relationship between a first parameter range and a fault type;
[0008] A first parameter range including the data parameter is searched in the fault association relationship, and a fault type corresponding to the first parameter range is used as a target fault type of the target data.
[0009] Optionally, before obtaining the fault association relationship, the method further includes:
[0010] Obtain fault type records and historical data from the database;
[0011] Determine a fault type in the fault type record and a first parameter range of a data parameter in the historical data;
[0012] Through data mining operations, a fault association relationship between the fault type and the first parameter range is established.
[0013] Optionally, after acquiring data parameters of target data in the target device, the method further comprises: storing the target data in the database;
[0014] The method also includes: in the case where the target device is not predicted to fail, determining the time of the failure and the type of failure of the target device; obtaining a second parameter range of the failure time from the database; and updating the associated parameters in the failure association relationship according to the failure type and the second parameter range.
[0015] Optionally, determining the fault type of the target device includes:
[0016] Determining a fault parameter of the target device at the fault moment;
[0017] The fault type of the target device is determined according to the fault parameter.
[0018] Optionally, before acquiring data parameters of target data in the target device, the method further includes:
[0019] Acquire first data and a source category of the first data;
[0020] When the source category of the first data is the target category, the first data is used as the target data.
[0021] Optionally, before obtaining the first data, the method further includes:
[0022] Controlling the collection device to send the collected multiple first data to the message queue;
[0023] The first data are read from the message queue in sequence according to chronological order.
[0024] Optionally, after acquiring data parameters of target data in the target device and parameter thresholds of the data parameters, the method further includes:
[0025] When the data parameter of the target data exceeds the parameter threshold, determining that the target data is fault data;
[0026] The fault data is stored in the database.
[0027] Optionally, the database includes a first database and a second database, wherein the first database is used for data storage and the second database is used for data query; obtaining the fault type record and historical data from the database includes: obtaining the fault type record and historical data from the first database;
[0028] After establishing the association relationship between the first parameter range and the fault type through the data mining operation, the method further includes: storing the association relationship in the second database.
[0029] In a second aspect, the present application provides a device for determining a target fault type, the device comprising:
[0030] A first acquisition module, used for acquiring data parameters of target data in a target device and parameter thresholds of the data parameters, wherein the data parameters and the parameter thresholds have the same source identifier;
[0031] A second acquisition module, configured to acquire a fault association relationship when the data parameter does not exceed the parameter threshold, wherein the fault association relationship includes an association relationship between a first parameter range and a fault type;
[0032] A search module is used to search for a first parameter range containing the data parameter in the fault association relationship, and use the fault type corresponding to the first parameter range as the target fault type of the target data.
[0033] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0034] Memory, used to store computer programs;
[0035] The processor is used to implement any of the method steps described above when executing a program stored in the memory.
[0036] In a fourth aspect, the present application provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the method steps described is implemented.
[0037] Beneficial effects of the embodiments of the present application:
[0038] The embodiment of the present application provides a method for determining a target fault type, the method comprising: a server obtains data parameters of target data in a target device and parameter thresholds of the data parameters, obtains a fault association relationship when the data parameters do not exceed the parameter thresholds, then searches for a first parameter range containing the data parameters in the fault association relationship, and uses the fault type corresponding to the first parameter range as the target fault type of the target data. The present application determines the target fault type of fault-free target data, which enables technicians to predict the fault of the target device and make corrections to the target data, thereby providing early warning.
[0039] Of course, implementing any product or method of the present application does not necessarily require achieving all of the above advantages at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 A flow chart of a method for determining a target fault type provided in an embodiment of the present application;
[0042] Figure 2 A flowchart of a method for establishing a fault association relationship provided in an embodiment of the present application;
[0043] Figure 3 A flow chart for generating fault association rules provided in an embodiment of the present application;
[0044] Figure 4 A process flow chart for determining a target fault type provided in an embodiment of the present application;
[0045] Figure 5 A schematic diagram of the structure of a device for determining a target fault type provided in an embodiment of the present application;
[0046] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] An embodiment of the present application provides a method for determining a target fault type, which can be applied to a server to predict a target fault type of a target device.
[0049] The following will describe in detail a method for determining a target fault type provided by an embodiment of the present application in conjunction with a specific implementation manner. Figure 1 As shown, the specific steps are as follows:
[0050] Step 101: Acquire data parameters of target data in a target device and parameter thresholds of the data parameters.
[0051] The data parameter and the parameter threshold have the same source identifier.
[0052] In an embodiment of the present application, a data acquisition device is provided on the target device, which is used to collect target data of the target device at a certain frequency or continuously, and then send the target data to the server, and the server obtains data parameters in the target data. The target data carries a source identifier, which is used to determine the source of the target data, including a base, a workshop, a production line, etc. The server also obtains parameter thresholds of the data parameters from the database, wherein the data parameters and the parameter thresholds have the same source identifier to ensure that the data parameters and the parameter thresholds have the same source.
[0053] Step 102: When the data parameter does not exceed the parameter threshold, a fault association relationship is obtained.
[0054] The fault association relationship includes an association relationship between the first parameter range and the fault type.
[0055] In the embodiment of the present application, after the server obtains the data parameter and the parameter threshold, it determines whether the data parameter exceeds the parameter threshold. If the server determines that the data parameter does not exceed the parameter threshold, it indicates that the data parameter is normal and the target data is normal, and the server obtains the fault association relationship. If the server determines that the data parameter exceeds the parameter threshold, it indicates that the data parameter is abnormal, and the server saves the target data to the database.
[0056] The database includes a first database, a second database and a third database, wherein the first database is used to store historical data, the second database is used for data query, and the third database is used for data display and pushing fault information. Exemplarily, the first database is an HBase database, the second database is a MySQL database, and the third database is a Redis database.
[0057] In the embodiment of the present application, the server saves the target data to the second database and the third database.
[0058] Step 103: searching for a first parameter range containing the data parameter in the fault association relationship, and taking the fault type corresponding to the first parameter range as the target fault type of the target data.
[0059] In an embodiment of the present application, the fault association relationship includes a fault type and an association relationship with a first parameter range. After the server obtains the fault association relationship, it searches for the first parameter range containing the data parameter in the fault association relationship, and then uses the fault type corresponding to the first parameter range as the target fault type of the target data.
[0060] As an alternative implementation, the server may store the data parameters of the target data and the target fault type in a third database, and send the target fault type to the target terminal, so that technicians can learn about the potential fault risks of the target device and take measures to troubleshoot and eliminate the faults.
[0061] In this application, the server determines the target fault type of the normal target data as the type of fault that the target data may occur. In this application, when the target device has not failed, it can predict the faults that the target device will occur, and can perform fault troubleshooting in advance to avoid losses to the greatest extent.
[0062] As an alternative implementation, as Figure 2 shown, before obtaining the fault association relationship, the method further includes:
[0063] Step 201: Obtain fault type records and historical data from the database.
[0064] In an embodiment of this application, the server obtains fault type records and historical data from the database, and converts the historical data into data in a target format.
[0065] Step 202: Determine the fault type in the fault type record and the first parameter range of the data parameters in the historical data.
[0066] In an embodiment of this application, the server determines the fault type in the fault type record and the data parameters in the historical data, and determines the first parameter range of the data parameters.
[0067] Step 203: Through data mining operations, establish a fault association relationship between the fault type and the first parameter range.
[0068] In an embodiment of this application, the server uses the data mining algorithm in Flink to determine the internal relationship between the first parameter ranges of the data parameters in the historical data, and then establishes a fault association relationship between the fault type and the first parameter range.
[0069] Exemplarily, there are two data parameters A and B. When the server determines that A < A1 and B < B1, the target device will have an excessive current situation. Then the fault association relationship is < A < A1, B < B1 ---- excessive current >.
[0070] In this application, the fault association relationship is set as the basis for predicting the faults of the target device. In this application, the streaming data processing framework Flink is used to use the fault association relationship to predict the faults of the target device, realize real-time monitoring, and warn of the fault warnings that may cause device failures.
[0071] As an optional implementation, after obtaining the data parameters of the target data in the target device, the method also includes: storing the target data in a database; the method also includes: when a failure of the target device is not predicted, determining the time when the failure occurs and determining the type of failure of the target device; obtaining a second parameter range at the time of the failure from the database; and updating the associated parameters in the fault association relationship according to the failure type and the second parameter range.
[0072] In the embodiment of the present application, after the server obtains the data parameters of the target data in the target device each time, the server stores the target data in the database, so that the database contains all the data of the target device.
[0073] If a target device fails during operation and the failure is not predicted in advance, the server determines the time of the failure and the type of failure of the target device, and then obtains the historical data in the database at the time of the failure and the second parameter range of the data parameter in the historical data. Since the failure is not predicted, the data parameter does not exist in the failure association relationship, and the server can update the associated parameters in the failure association relationship according to the failure type and the second parameter range.
[0074] In the present application, the fault type determination and fault association relationship of the target data form a closed loop, and the associated parameters in the fault association relationship are continuously updated, which can make the first parameter range associated with the target fault type more accurate, thereby improving the timeliness and accuracy of predicting the target fault type of the target device.
[0075] If the technician determines that there is a new fault type, the fault type can be stored in the database, and the server updates the fault association relationship based on the new fault type and historical data. The server uses the newly generated historical data in the fault association relationship, re-explores new associations, and dynamically uses them in stream processing.
[0076] As an optional implementation manner, determining the fault type of the target device includes: determining fault parameters of the target device at the moment of the fault; and determining the fault type of the target device according to the fault parameters.
[0077] In the embodiment of the present application, after determining the fault time when the fault occurs, the server determines the fault parameters of the target device at the fault time, and then determines the fault type of the target device according to the fault parameters, and uses the fault type as the fault type in the fault association relationship.
[0078] Specifically, the present application determines the fault parameter, and then searches for the fault type corresponding to the fault parameter in a preset fault table, wherein the fault table contains a correspondence between multiple fault parameters and fault types.
[0079] As an optional implementation, before obtaining data parameters of target data in the target device, the method further includes: obtaining first data and a source category of the first data; and when the source category of the first data is a target category, using the first data as target data.
[0080] The server obtains the first data and the source category of the first data, and determines whether the source category of the first data is the target category. If the server determines that the source category of the first data is the target category, the server uses the first data as the target data; if the server determines that the source category of the first data is not the target category, the server performs corresponding processing on the first data, and the corresponding processing includes displaying the data within the target time, the usage of statistical data, and pushing abnormal indicators.
[0081] In addition, the server stores the first data in a database. Optionally, the server stores the first data in a first database.
[0082] Exemplarily, the source category may include assembly line, production workshop, R&D room, etc., and the target category is assembly line, that is, the target data is the data of the target device on the assembly line.
[0083] As an optional implementation, before acquiring the first data, the method further includes: controlling the acquisition device to send the acquired multiple first data to a message queue; and reading the first data from the message queue in sequence according to the chronological order.
[0084] The present application has multiple data collection devices and multiple devices. The data collection devices send the collected data from devices of different sources to the message queue, so that the message queue contains multiple first data. The server reads the first data from the message queue in sequence according to the chronological order and operates the first data. The message queue can be kafka or rabbting.
[0085] As an optional implementation, the message queue is set to a broadcast mode. After the first data in the message queue is read by the server, the message queue is bound to a corresponding converter (exchange) to prevent the consumer from being unable to receive the first data.
[0086] As an optional implementation, when the source category of the first data is the target category, after taking the first data as the target data, the method further includes: performing a data cleaning operation on the target data; and obtaining the target data includes: obtaining the target data after the data cleaning operation.
[0087] After the server uses the first data as target data, it cleans the target data to remove erroneous data, duplicate data, etc., and then converts the data format of the target data into a target format, and then obtains the target data after data cleaning and data format conversion.
[0088] As an optional implementation, after performing data cleaning operation on the target data, the target data is stored in a database. Specifically, the target data after the data cleaning operation is stored in a third database for data display and alarm when the data is abnormal.
[0089] As an optional implementation, if the server determines that the data parameter exceeds the parameter threshold, it indicates that the data parameter is abnormal, and the server saves the target data to the second database and the third database.
[0090] As an optional implementation, the database includes a first database and a second database, wherein the first database is used for data storage and the second database is used for data query; obtaining fault type records and historical data from the database includes: obtaining fault type records and historical data from the first database; after establishing an association relationship between the first parameter range and the fault type through data mining operations, the method also includes: storing the association relationship in the second database.
[0091] The server stores the first data in a first database, obtains fault type records and historical data from the first database, establishes an association relationship between the first parameter range and the fault type through data mining operations, stores the association relationship in a second database, and then obtains the fault association relationship from the second database to determine the target fault type of the target data.
[0092] Figure 3 This is a flow chart for generating fault association rules. The server obtains fault type records and historical data from the HBase database, cleans the data, and then uses the association analysis algorithm package in Flink to perform an association analysis between the first parameter range of the data parameter and the fault type, generates a fault association relationship, and stores the fault association relationship in the MySQL database.
[0093] Optionally, the embodiment of the present application also provides a process for determining the target fault type, such as Figure 4 As shown, the specific steps are as follows.
[0094] Step 401: The data acquisition device acquires first data of a target device.
[0095] Step 402: The server controls the data acquisition device to send the first data to the message queue.
[0096] Step 403: The server uses Flink to consume the first data in the message queue in real time, determines the target data with the target category, and performs a data storage backup on the first data and stores it in the HBase database.
[0097] Step 404: The server cleans the target data and stores the cleaned target data in the redis database.
[0098] Step 405: The server obtains the parameter threshold from the MySQL database. If the server determines that the data parameter exceeds the parameter threshold, the target data is saved in the MySQL database and the Redis database. If the server determines that the data parameter does not exceed the parameter threshold, step 406 is executed.
[0099] Step 406: The server obtains the fault association relationship from the MySQL database and determines the target fault type of the target data.
[0100] Step 407: The server stores the target data and target fault type in the redis database.
[0101] Step 408: The server obtains the target fault type from the redis database.
[0102] Step 409: Send the target fault type to the target terminal.
[0103] Based on the same technical concept, the embodiment of the present application also provides a device for determining a target fault type, such as Figure 5 As shown, the device comprises:
[0104] A first acquisition module 501 is used to acquire data parameters and parameter thresholds of target data in a target device, wherein the data parameters and the parameter thresholds have the same source identifier;
[0105] A second acquisition module 502 is used to acquire a fault association relationship when the data parameter does not exceed the parameter threshold, wherein the fault association relationship includes an association relationship between the first parameter range and the fault type;
[0106] The search module 503 is used to search for a first parameter range containing data parameters in the fault association relationship, and use the fault type corresponding to the first parameter range as the target fault type of the target data.
[0107] Optionally, the device further comprises:
[0108] The third acquisition module is used to obtain fault type records and historical data from the database;
[0109] A first determination module, used to determine a fault type in the fault type record and a first parameter range of a data parameter in the historical data;
[0110] The establishing module is used to establish the fault type and the fault association relationship between the fault type and the first parameter range through data mining operation.
[0111] Optionally, the device further comprises:
[0112] A storage module, used for storing target data in a database;
[0113] A second determination module is used to determine the time of the failure and the type of failure of the target device when the failure of the target device is not predicted;
[0114] A fourth acquisition module, used for acquiring a second parameter range at the time of a fault from a database;
[0115] The updating module is used to update the associated parameters in the fault association relationship according to the fault type and the second parameter range.
[0116] Optionally, the second determining module includes:
[0117] A first determining unit, used to determine a fault parameter of a target device at the moment of a fault;
[0118] The second determining unit is used to determine the fault type of the target device according to the fault parameter.
[0119] Optionally, the device comprises:
[0120] A fifth acquisition module, used to acquire the first data and the source category of the first data;
[0121] As a module, it is used to use the first data as the target data when the source category of the first data is the target category.
[0122] Optionally, the device comprises:
[0123] A control module, used for controlling the collection device to send the collected multiple first data to the message queue;
[0124] The reading module is used to read the first data from the message queue in sequence according to the chronological order.
[0125] Optionally, the device comprises:
[0126] A third determination module, configured to determine that the target data is fault data when a data parameter of the target data exceeds a parameter threshold;
[0127] The first storage module is used to store the fault data in a database.
[0128] Optionally, the database includes a first database and a second database, wherein the first database is used for data storage and the second database is used for data query; the third acquisition module includes: acquiring fault type records and historical data from the first database;
[0129] The device also includes: a second storage module, used for storing the association relationship in a second database.
[0130] Based on the same technical concept, an embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.
[0131] Memory 603, used for storing computer programs;
[0132] The processor 601 is used to implement the above steps when executing the program stored in the memory 603.
[0133] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0134] The communication interface is used for communication between the above electronic device and other devices.
[0135] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0136] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0137] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0138] In another embodiment of the present invention, a computer program product including instructions is provided, which enables the computer to execute any one of the methods in the above embodiments when the computer program product is executed on the computer.
[0139] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0140] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0141] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for determining the target fault type, It is characterized in that The method comprises: Acquire data parameters of target data in a target device and parameter thresholds of the data parameters, wherein the data parameters and the parameter thresholds have the same source identifier; In the case where the data parameter does not exceed the parameter threshold, it is determined that the data parameter is normal, and then a fault association relationship is obtained, wherein the fault association relationship includes an association relationship between a first parameter range and a fault type; Searching for a first parameter range that includes the data parameter in the fault association relationship, and taking the fault type corresponding to the first parameter range as the target fault type of the target data; Wherein, the method further comprises: In the case where the target device is not predicted to fail, determining a failure time when the failure occurs, and determining a failure parameter of the target device at the failure time; Searching for a fault type corresponding to the fault parameter in a preset fault table, wherein the fault table contains a correspondence between multiple fault parameters and fault types; Acquire a second parameter range of the fault parameter at the moment of the fault from a database; updating the associated parameters in the fault association relationship according to the fault type and the second parameter range; The method further comprises: if it is determined that there is a new fault type, storing the new fault type in a database, and updating the fault association relationship according to the new fault type and historical data; Before obtaining the fault association relationship, the method further includes: obtaining a fault type record and historical data from a database; determining the fault type in the fault type record and a first parameter range of a data parameter in the historical data; using a data mining algorithm in flink to determine an intrinsic relationship between the first parameter range of the data parameter in the historical data; establishing a fault association relationship between the fault type and the first parameter range; After obtaining the data parameters of the target data in the target device and the parameter thresholds of the data parameters, the method further includes: When the data parameter of the target data exceeds the parameter threshold, determining that the target data is fault data; The fault data is stored in the database.
2. The method according to claim 1, It is characterized in that Determining the fault type of the target device includes: Determining a fault parameter of the target device at the fault moment; The fault type of the target device is determined according to the fault parameter.
3. The method according to claim 1, It is characterized in that Before obtaining the data parameters of the target data in the target device, the method further includes: Acquire first data and a source category of the first data; When the source category of the first data is the target category, the first data is used as the target data.
4. The method according to claim 3, It is characterized in that Before obtaining the first data, the method further includes: Controlling the collection device to send the collected multiple first data to the message queue; The first data are read from the message queue in sequence according to chronological order.
5. The method according to claim 1, It is characterized in that The database includes a first database and a second database, wherein the first database is used for data storage and the second database is used for data query; the acquiring of fault type records and historical data from the database includes: acquiring fault type records and historical data from the first database; After establishing the association relationship between the first parameter range and the fault type through data mining operations, the method further includes: storing the association relationship in the second database.
6. A device for determining a target fault type, It is characterized in that The device comprises: A first acquisition module, used for acquiring data parameters of target data in a target device and parameter thresholds of the data parameters, wherein the data parameters and the parameter thresholds have the same source identifier; A second acquisition module, configured to determine that the data parameter is normal if the data parameter does not exceed the parameter threshold, and then acquire a fault association relationship, wherein the fault association relationship includes an association relationship between a first parameter range and a fault type; A search module, configured to search for a first parameter range including the data parameter in the fault association relationship, and use the fault type corresponding to the first parameter range as the target fault type of the target data; Wherein, the device is also used for: In the case where the target device is not predicted to fail, determining a failure time when the failure occurs, and determining a failure parameter of the target device at the failure time; Searching for a fault type corresponding to the fault parameter in a preset fault table, wherein the fault table contains a correspondence between multiple fault parameters and fault types; Acquire a second parameter range of the fault parameter at the moment of the fault from a database; updating the associated parameters in the fault association relationship according to the fault type and the second parameter range; Wherein, the device is further used for: if it is determined that there is a new fault type, storing the new fault type in the database, and updating the fault association relationship according to the new fault type and historical data; The device is further used to: obtain fault type records and historical data from a database; determine the fault type in the fault type record and the first parameter range of the data parameter in the historical data; use the data mining algorithm in flink to determine the internal relationship between the first parameter range of the data parameter in the historical data; establish a fault association relationship between the fault type and the first parameter range; Wherein, the device is also used for: When the data parameter of the target data exceeds the parameter threshold, determining that the target data is fault data; The fault data is stored in the database.
7. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 5 when executing a program stored in a memory.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.
