CN111091278B - Edge detection model construction method and device for mechanical equipment anomaly detection - Google Patents

Edge detection model construction method and device for mechanical equipment anomaly detection Download PDF

Info

Publication number
CN111091278B
CN111091278B CN201911231023.2A CN201911231023A CN111091278B CN 111091278 B CN111091278 B CN 111091278B CN 201911231023 A CN201911231023 A CN 201911231023A CN 111091278 B CN111091278 B CN 111091278B
Authority
CN
China
Prior art keywords
detection model
anomaly detection
training
model
compressed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911231023.2A
Other languages
Chinese (zh)
Other versions
CN111091278A (en
Inventor
蔺思宇
马君
王伟
李素洁
刘涛
杨晨旺
周景源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meifang Science And Technology Tianjin Co ltd
Original Assignee
Meifang Science And Technology Tianjin Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meifang Science And Technology Tianjin Co ltd filed Critical Meifang Science And Technology Tianjin Co ltd
Priority to CN201911231023.2A priority Critical patent/CN111091278B/en
Publication of CN111091278A publication Critical patent/CN111091278A/en
Application granted granted Critical
Publication of CN111091278B publication Critical patent/CN111091278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/082Learning methods modifying the architecture, e.g. adding, deleting or silencing nodes or connections
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Human Resources & Organizations (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Molecular Biology (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Game Theory and Decision Science (AREA)
  • Evolutionary Biology (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The embodiment of the invention provides a method and a device for constructing an edge detection model for detecting abnormality of mechanical equipment, wherein the method comprises the following steps: establishing an unsupervised anomaly detection model, performing model pruning training and quantization training by using a historical normal data set, and obtaining a compressed unsupervised anomaly detection model; establishing a supervised anomaly detection model, performing model pruning training and quantization training by using a historical data training set with a label, and obtaining a compressed supervised anomaly detection model; and sending the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to an edge hardware node for the edge hardware node to perform integrated learning so as to obtain an anomaly detection edge detection model. According to the method, the detection model with accurate detection results but larger calculation scale in the cloud calculation server can be effectively simplified, only a small amount of calculation precision is lost, the model volume and the calculation resource occupation are greatly compressed, and the edge calculation requirement is fully met.

Description

Edge detection model construction method and device for mechanical equipment anomaly detection
Technical Field
The invention relates to the field of abnormality monitoring of mechanical equipment, in particular to a method and a device for constructing an edge detection model for abnormality detection of mechanical equipment.
Background
With the development of big data artificial intelligence and the rise of industry 4.0, various industrial enterprises pay more attention to equipment monitoring and abnormality early warning. Most industrial intelligent enterprises currently select a cloud platform form when energizing the traditional industry, namely, a complex algorithm is deployed on a server, and original data such as vibration, temperature, noise and the like of equipment are uploaded to the cloud platform through a wireless or 2G network to operate. Although the mode can ensure the accuracy of early warning to a certain extent, the defects are quite obvious: 1) The cloud in 2G or wireless transmission of a large amount of data causes that the collector cannot be changed from active to passive, because the original data is huge, and the transmission is very power-consuming. Active means complex wiring around the device, which leads to increased safety hazards and failure probability. 2) In the age of data, i.e., assets, none of the enterprises hope that their own device data will be largely exposed, and wireless transmission of raw data increases such risks. Therefore, how to enable the wireless device to only upload the early warning result to the cloud and ensure the effective accuracy is a current difficulty.
The existing anomaly detection edge computing system relates to the field of edge computing, and comprises a hardware subsystem and a software subsystem, wherein the hardware subsystem comprises a data acquisition module and a computing platform, detected signals are digitally transmitted to the computing platform through the data acquisition module, and the computing platform carries high-complexity operation and supports data integration, a data communication interface and network services; the software subsystem runs on the computing platform, processes and analyzes the digitized signals and presents the digitized signals to the outside, and comprises a model online training module, a model executing module and Web services.
In the existing detection method, although an algorithm is migrated to edge equipment operation, in order to meet the edge computing performance, the anomaly detection algorithm still only uses simple physical features (mean, standard deviation, peak value, fourier transform and the like) and simple machine learning linear models. In this way, although the calculation and updating of the model at the edge section can be ensured, the accuracy of the abnormal monitoring compared with the cloud platform can be reduced along with the simplification of the edge characteristics and the model, so that the missing report and the false report are increased. On the other hand, in order to obscure the influence of the reduction of the accuracy, the end output is a health index with wider evaluation, which can lead to uneven understanding of the concept and poor quantification of the concept when the user uses the health index.
Disclosure of Invention
In order to solve the problems, the embodiment of the invention provides a method and a device for constructing an edge detection model for detecting abnormality of mechanical equipment.
In a first aspect, an embodiment of the present invention provides a method for constructing an edge detection model for detecting an abnormality of a mechanical device, including: establishing an unsupervised anomaly detection model, performing model pruning training and quantization training by using a historical normal data set, and obtaining a compressed unsupervised anomaly detection model; establishing a supervised anomaly detection model, performing model pruning training and quantization training by using a historical data training set with a label, and obtaining a compressed supervised anomaly detection model; and sending the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to an edge hardware node for the edge hardware node to perform integrated learning so as to obtain an anomaly detection edge detection model.
Further, the establishing an unsupervised anomaly detection model includes: acquiring historical data of normal operation of a plurality of mechanical devices to form a historical normal data set; establishing an initial unsupervised anomaly detection model, and training the initial unsupervised anomaly detection model by using the historical normal data set to obtain the unsupervised anomaly detection model; the establishing a supervised anomaly detection model includes: acquiring historical data of a plurality of mechanical devices, and acquiring abnormal result labels corresponding to the historical data to form a historical data training set with labels; and establishing an initial supervised anomaly detection model, and training the initial supervised anomaly detection model by using a historical data training set with a label to obtain the supervised anomaly detection model.
Further, the model pruning training and quantization training are performed by using the historical normal data set to obtain a compressed unsupervised anomaly detection model, which comprises: performing model pruning training by using a historical normal data set to obtain an unsupervised anomaly detection model after pruning; and carrying out quantitative training on the pruned unsupervised anomaly detection model by using the historical normal data to obtain the compressed unsupervised anomaly detection model.
Further, the training set of historical data with labels is used for model pruning training and quantization training to obtain a compressed supervised anomaly detection model, which comprises the following steps: performing model pruning training by using a historical data training set with labels to obtain a supervised anomaly detection model after pruning; and carrying out quantitative training on the pruned supervised anomaly detection model by using a historical data training set with a label to obtain the compressed supervised anomaly detection model.
In a second aspect, an embodiment of the present invention provides a method for constructing an edge detection model for detecting an abnormality of a mechanical device, including: receiving the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model; performing integrated learning on the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to obtain an anomaly detection edge detection model; the compressed unsupervised anomaly detection model is obtained by using a historical normal data set by a cloud platform server, performing model pruning training and quantitative training on the unsupervised anomaly detection model; the compressed supervised anomaly detection model is a cloud platform server, and model pruning training and quantitative training are carried out on the supervised anomaly detection model by using sample data with labels.
Further, after receiving the post-compression unsupervised anomaly detection model and the post-compression supervised anomaly detection model, before performing the integrated learning on the post-compression unsupervised anomaly detection model and the post-compression supervised anomaly detection model, the method further includes: and performing fine tuning operation on the compressed unsupervised anomaly detection model by using an edge normal data set, and performing fine tuning operation on the compressed supervised anomaly detection model by using an edge labeled training set.
In a third aspect, an embodiment of the present invention provides an edge detection model construction apparatus for detecting an abnormality of a mechanical device, including: the first model construction module is used for establishing an unsupervised anomaly detection model, performing model pruning training and quantitative training by using a historical normal data set, and obtaining a compressed unsupervised anomaly detection model; the second model construction module is used for building a supervised anomaly detection model, performing model pruning training and quantitative training by using a historical data training set with a label, and obtaining a compressed supervised anomaly detection model; and the sending module is used for sending the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to the edge hardware nodes so as to enable the edge hardware nodes to perform integrated learning and obtain the anomaly detection edge detection model.
In a fourth aspect, an embodiment of the present invention provides an edge detection model construction apparatus for detecting an abnormality of a mechanical device, including: the receiving module is used for receiving the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model; the processing module is used for carrying out integrated learning on the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to obtain an anomaly detection edge detection model; the compressed unsupervised anomaly detection model is obtained by using a historical normal data set by a cloud platform server, performing model pruning training and quantitative training on the unsupervised anomaly detection model; the compressed supervised anomaly detection model is a cloud platform server, and model pruning training and quantitative training are carried out on the supervised anomaly detection model by using sample data with labels.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the program to implement the steps of the method for constructing an edge detection model for detecting an abnormality of a mechanical device according to the first aspect of the present invention.
In a sixth aspect, embodiments of the present invention provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the edge detection model construction method for mechanical device anomaly detection of the first aspect of the present invention.
According to the edge detection model construction method and device for the mechanical equipment anomaly detection, the historical normal data set is used for model pruning training and quantization training, the compressed unsupervised anomaly detection model is obtained, the historical data training set with the labels is used for model pruning training and quantization training, the compressed supervised anomaly detection model is obtained, the detection model with accurate detection results but larger calculation scale in the cloud computing server can be effectively simplified, only a small amount of calculation precision is lost, the method and device can be effectively applied to storage limitation and calculation capacity limitation of edge nodes, the model volume and calculation resource occupation are greatly compressed, and the edge calculation requirement is fully met. The compressed unsupervised abnormal detection model and the compressed supervised abnormal detection model are sent to the edge hardware nodes, the two types of detection models are used for detection analysis of the edge nodes at the same time, and the edge hardware nodes are used for integrated learning, so that the detection advantages of the two models can be combined respectively, and the detection precision is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for constructing an edge detection model for detecting abnormality of mechanical equipment, which is provided by the embodiment of the invention;
FIG. 2 is a flowchart of a method for constructing an edge detection model for detecting anomalies in a mechanical device according to another embodiment of the present invention;
FIG. 3 is a flowchart of a method for constructing an edge detection model for detecting anomalies in a machine according to another embodiment of the present invention;
FIG. 4 is a diagram of an edge detection model construction device for detecting abnormality of a mechanical device according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an apparatus for constructing an edge detection model for detecting anomalies in a mechanical device according to another embodiment of the present invention;
fig. 6 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of a method for constructing an edge detection model for detecting an abnormality of a mechanical device according to an embodiment of the present invention, as shown in fig. 1, where the method for constructing an edge detection model for detecting an abnormality of a mechanical device according to an embodiment of the present invention may include, as an execution body, a cloud computing server including:
101. and establishing an unsupervised anomaly detection model, performing model pruning training and quantitative training by using the historical normal data set, and obtaining the compressed unsupervised anomaly detection model.
The embodiment of the invention mainly realizes the detection of the abnormal state of the mechanical equipment. First, the cloud computing server may pre-establish a history database for storing operation data of the mechanical device, for example, vibration data, temperature data, etc., and the data type is set according to specific requirements. In 101, a preliminary unsupervised anomaly detection model, such as a convolutional neural network model, is created, and a convolutional neural network encoder and a convolutional neural network decoder are selected to form the unsupervised anomaly detection model.
The historical normal data set is obtained by selecting data in a normal running state from historical data and constructing the data. And carrying out model pruning operation on the constructed unsupervised anomaly detection model by using the historical normal data set. Model Pruning (Model Pruning) is a Model compression method, introduces sparsity into dense connections of the deep neural network, and reduces the number of non-zero weights by directly zeroing the "unimportant" weights. By the processing, a small-scale compressed unsupervised anomaly detection model is obtained. Quantization may be implemented by converting the intra-model elements to an equivalent eight-bit version (e.g., storing and computing 32 floating-point numbers approximately with 8-bit integers), involving operations including convolution, matrix multiplication, activation of functions, pooling operations, and stitching. The pair model can be compressed to 1/4. By the processing, a small-scale unsupervised anomaly detection model after compression is obtained
102. And establishing a supervised anomaly detection model, and performing model pruning training and quantization training by using a historical data training set with labels to obtain a compressed supervised anomaly detection model.
At 102, a preliminary supervised anomaly detection model is created, such as selecting a Convolutional Neural Network (CNN) extended short-time memory network (LSTM) to form the supervised anomaly detection model.
The history data training set with the labels is obtained by selecting data in a normal running state and data in an abnormal state from history data, and combining the corresponding normal and abnormal labels. And carrying out model pruning operation on the constructed supervised anomaly detection model by using the historical normal data set. Through the pruning treatment, a small-scale supervised anomaly detection model after pruning is obtained. And (3) quantifying the obtained small-scale supervised anomaly detection model after pruning by using the historical data training set. By the processing, a small-scale supervised anomaly detection model after compression is obtained
103. And sending the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to the edge hardware nodes for the edge hardware nodes to perform integrated learning so as to obtain an anomaly detection edge detection model.
The edge hardware node is a detection device closest to the mechanical equipment, and can be a computer device which directly acquires and analyzes the operation state data of the mechanical equipment or the mechanical equipment which integrates the data acquisition and analysis functions. And the edge hardware node performs integrated learning after receiving the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model.
The ensemble learning is a meta algorithm that combines several machine learning model algorithms into one prediction model to achieve the effect of reducing variance (bagging), bias (boosting), or improving prediction (stacking). After the ensemble learning, a smaller-scale edge detection model can be obtained for detection locally. And the edge detection model is used for monitoring the abnormality of the mechanical equipment by the edge hardware node.
According to the edge detection model construction method for the mechanical equipment anomaly detection, the model pruning training and the quantization training are carried out by using the historical normal data set to obtain the compressed unsupervised anomaly detection model, and the model pruning training and the quantization training are carried out by using the historical data training set with the label to obtain the compressed supervised anomaly detection model, so that the detection model with accurate detection results but larger calculation scale in the cloud calculation server can be effectively simplified, only a small amount of calculation precision is lost, the method can be effectively applied to storage limitation and calculation capacity limitation of edge nodes, and the model volume and the calculation resource occupation are greatly compressed, so that the edge calculation requirement is fully met. The compressed unsupervised abnormal detection model and the compressed supervised abnormal detection model are sent to the edge hardware nodes, the two types of detection models are used for detection analysis of the edge nodes at the same time, and the edge hardware nodes are used for integrated learning, so that the detection advantages of the two models can be combined respectively, and the detection precision is improved.
Based on the content of the above embodiment, as an alternative embodiment, establishing an unsupervised anomaly detection model includes: acquiring historical data of normal operation of a plurality of mechanical devices to form a historical normal data set; and establishing an initial unsupervised anomaly detection model, and training the initial unsupervised anomaly detection model by using a historical normal data set to obtain the unsupervised anomaly detection model. Establishing a supervised anomaly detection model, comprising: acquiring historical data of a plurality of mechanical devices, and acquiring abnormal result labels corresponding to the historical data to form a historical data training set with labels; and establishing an initial supervised anomaly detection model, and training the initial supervised anomaly detection model by using a historical data training set with a label to obtain the supervised anomaly detection model.
The process of establishing the unsupervised anomaly detection model is first the selection of the dataset. The historical data of normal operation of a plurality of mechanical devices, namely the data without a result label, are all data acquired when the devices are in normal operation, such as vibration data and temperature data, and the data form a historical normal data set. And establishing a parameter initialized unsupervised anomaly detection model, such as the convolutional neural network model, and training the initialized unsupervised anomaly detection model by using the obtained historical normal data set to obtain the established unsupervised anomaly detection model. That is, before pruning training, the unsupervised anomaly detection model is trained, so that the accuracy of the model after pruning operation can be improved. The method is characterized in that the supervised anomaly detection model is trained based on a history data training set with result labels, normal data and abnormal data exist in the history data training set, and a determined result is used as a label, so that the built supervised anomaly detection model is obtained after training.
Based on the foregoing embodiment, as an alternative embodiment, performing model pruning training and quantization training using a historical normal data set to obtain a compressed unsupervised anomaly detection model, including: performing model pruning training by using a historical normal data set to obtain an unsupervised anomaly detection model after pruning; and carrying out quantitative training on the pruned unsupervised anomaly detection model by using the historical normal data to obtain a compressed unsupervised anomaly detection model.
After the model pruning training is carried out on the non-supervision abnormal detection model by using the historical normal data set, a large amount of historical normal data is used for carrying out quantization training on the pruned non-supervision abnormal detection model, so that the non-supervision abnormal detection model after the quantization training, namely the compressed non-supervision abnormal detection model, is obtained. Through quantization training, the unsupervised anomaly detection model after pruning can be further compressed, and the model size is further reduced without affecting the accuracy of the model.
Based on the foregoing embodiment, as an alternative embodiment, using the labeled historical data training set to perform model pruning training and quantization training, a compressed supervised anomaly detection model is obtained, including: performing model pruning training by using a historical data training set with labels to obtain a supervised anomaly detection model after pruning; and carrying out quantitative training on the pruned supervised anomaly detection model by using a historical data training set with a label to obtain a compressed supervised anomaly detection model.
After model pruning training is carried out on the supervised anomaly detection model by using the historical data training set with the label, a large amount of historical data with the label is used for carrying out quantization training on the pruned supervised anomaly detection model, so that the quantized trained supervised anomaly detection model, namely the compressed supervised anomaly detection model, is obtained. Through quantization training, the supervised anomaly detection model after pruning can be further compressed, and the model size is further reduced without affecting the accuracy of the model.
Fig. 2 is a flowchart of an edge detection model construction method for detecting an abnormality of a mechanical device according to another embodiment of the present invention, where, as shown in fig. 2, the embodiment of the present invention provides an edge detection model construction method for detecting an abnormality of a mechanical device, and uses an edge hardware node as an execution body, including:
201. receiving the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model;
202. performing integrated learning on the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to obtain an anomaly detection edge detection model;
the compressed unsupervised anomaly detection model is obtained by using a historical normal data set by a cloud platform server, performing model pruning training and quantitative training on the unsupervised anomaly detection model; the compressed supervised anomaly detection model is a cloud platform server, and model pruning training and quantitative training are carried out on the supervised anomaly detection model by using sample data with labels.
In the embodiment of the method, the edge hardware node is taken as an execution main body, and the cloud platform server in the embodiment is a general reference to a cloud computing platform different from the edge node. The related specific steps can be referred to the method using the cloud computing server as the execution body, and are not described herein.
Based on the foregoing embodiment, as an optional embodiment, after receiving the post-compression unsupervised anomaly detection model and the post-compression supervised anomaly detection model, before performing integrated learning on the post-compression unsupervised anomaly detection model and the post-compression supervised anomaly detection model, the method further includes: and performing fine tuning operation on the compressed unsupervised anomaly detection model by using the edge normal data set, and performing fine tuning operation on the compressed supervised anomaly detection model by using the edge labeled training set.
The Fine tuning operation of the model, namely, fine-tune, and the transfer learning is a machine learning idea, and is applied to deep learning, namely, fine-tune (Fine-tune). The pre-training network model weights (typically all layers before the last fully connected layer, also called bottleneck layer) are selectively loaded by modifying the pre-training network model structure (e.g., modifying the number of sample class outputs). Re-training the model with its own data set is the basic step in fine tuning. The fine tuning can quickly train a model, and can achieve better results with a relatively smaller data size.
According to the embodiment of the invention, the edge data is used for carrying out the Fine-tune on the model, so that the model is fully adapted to the self-condition of the individual operation of the equipment, and the generalization of the model after issuing the edge end is ensured.
Based on the above embodiments, fig. 3 is a flowchart of an edge detection model construction method for detecting an abnormality of a mechanical device according to still another embodiment of the present invention, as shown in fig. 3, specifically referring to the above embodiments. The invention uses a plurality of complex neural networks to perform integrated learning to complete edge calculation, and the accuracy is far higher than that of a simple machine learning linear model. According to the invention, the cloud complex neural network anomaly monitoring model can be compressed to within 5% of the original model, the operation time is only 1/15 or even lower, and the edge computing chip is ensured to be capable of fully operating the edge computing algorithm. Through a large number of real data verification, all compression ensures that the accuracy of the original neural network model is reduced by not more than 3%, and ensures that the edge calculation effect is basically equivalent to the accuracy of cloud calculation under big data.
Fig. 4 is a block diagram of an edge detection model construction device for detecting an abnormality of a mechanical device according to an embodiment of the present invention, where, as shown in fig. 4, the edge detection model construction device for detecting an abnormality of a mechanical device is applied to a cloud computing server or a cloud computing platform, and includes: a first model building module 401, a second model building module 402 and a sending module 403. The first model building module 401 is configured to build an unsupervised anomaly detection model, perform model pruning training and quantization training by using a historical normal data set, and obtain a compressed unsupervised anomaly detection model; the second model building module 402 is configured to build a supervised anomaly detection model, perform model pruning training and quantization training using a labeled historical data training set, and obtain a compressed supervised anomaly detection model; the sending module 403 is configured to send the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to an edge hardware node, so that the edge hardware node performs integrated learning to obtain an anomaly detection model.
Fig. 5 is a block diagram of an edge detection model building device for detecting an abnormality of a mechanical device according to another embodiment of the present invention, where, as shown in fig. 5, the edge detection model building device for detecting an abnormality of a mechanical device is applied to an edge hardware node, and includes: the receiving module 501 is configured to receive the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model; the processing module 502 is configured to perform integrated learning on the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to obtain an edge detection model for anomaly detection; the compressed unsupervised anomaly detection model is obtained by using a historical normal data set by a cloud platform server, performing model pruning training and quantitative training on the unsupervised anomaly detection model; the compressed supervised anomaly detection model is a cloud platform server, and model pruning training and quantitative training are carried out on the supervised anomaly detection model by using sample data with labels.
The embodiment of the device provided by the embodiment of the present invention is for implementing the above embodiments of the method, and specific flow and details refer to the above embodiments of the method, which are not repeated herein.
According to the edge detection model construction device for the mechanical equipment anomaly detection, the model pruning training and the quantitative training are carried out by using the historical normal data set to obtain the compressed unsupervised anomaly detection model, and the model pruning training and the quantitative training are carried out by using the historical data training set with the label to obtain the compressed supervised anomaly detection model, so that the detection model with accurate detection results but larger calculation scale in the cloud calculation server can be effectively simplified, only a small amount of calculation precision is lost, the device can be effectively applied to storage limitation and calculation capacity limitation of edge nodes, and the device is greatly compressed in terms of model volume and calculation resource occupation, so that the edge calculation requirement is fully met. The compressed unsupervised abnormal detection model and the compressed supervised abnormal detection model are sent to the edge hardware nodes, the two types of detection models are used for detection analysis of the edge nodes at the same time, and the edge hardware nodes are used for integrated learning, so that the detection advantages of the two models can be combined respectively, and the detection precision is improved.
Fig. 6 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, where, as shown in fig. 6, the electronic device may include: processor 601, communication interface (Communications Interface) 602, memory 603 and bus 604, wherein processor 601, communication interface 602, memory 603 complete communication with each other through bus 604. The communication interface 602 may be used for information transfer of an electronic device. The processor 601 may call logic instructions in the memory 603 to perform a method comprising: establishing an unsupervised anomaly detection model, performing model pruning training and quantization training by using a historical normal data set, and obtaining a compressed unsupervised anomaly detection model; establishing a supervised anomaly detection model, performing model pruning training and quantization training by using a historical data training set with a label, and obtaining a compressed supervised anomaly detection model; and sending the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to the edge hardware nodes for the edge hardware nodes to perform integrated learning so as to obtain an anomaly detection edge detection model.
Further, the logic instructions in the memory 603 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above-described method embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, embodiments of the present invention further provide a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the transmission method provided in the above embodiments, for example, including: establishing an unsupervised anomaly detection model, performing model pruning training and quantization training by using a historical normal data set, and obtaining a compressed unsupervised anomaly detection model; establishing a supervised anomaly detection model, performing model pruning training and quantization training by using a historical data training set with a label, and obtaining a compressed supervised anomaly detection model; and sending the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to the edge hardware nodes for the edge hardware nodes to perform integrated learning so as to obtain an anomaly detection edge detection model.
The apparatus embodiments described above are merely illustrative, wherein elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product, which may be stored in a computer-readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the various embodiments or methods of some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The method for constructing the edge detection model for detecting the abnormality of the mechanical equipment is characterized by comprising the following steps of:
establishing an unsupervised anomaly detection model, performing model pruning training and quantization training by using a historical normal data set, and obtaining a compressed unsupervised anomaly detection model;
establishing a supervised anomaly detection model, performing model pruning training and quantization training by using a historical data training set with a label, and obtaining a compressed supervised anomaly detection model;
and sending the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to an edge hardware node for the edge hardware node to perform integrated learning so as to obtain an anomaly detection edge detection model.
2. The method for constructing an edge detection model for anomaly detection of a machine according to claim 1, wherein the establishing an unsupervised anomaly detection model comprises:
acquiring historical data of normal operation of a plurality of mechanical devices to form a historical normal data set;
establishing an initial unsupervised anomaly detection model, and training the initial unsupervised anomaly detection model by using the historical normal data set to obtain the unsupervised anomaly detection model;
the establishing a supervised anomaly detection model includes:
acquiring historical data of a plurality of mechanical devices, and acquiring abnormal result labels corresponding to the historical data to form a historical data training set with labels;
and establishing an initial supervised anomaly detection model, and training the initial supervised anomaly detection model by using a historical data training set with a label to obtain the supervised anomaly detection model.
3. The method for constructing an edge detection model for anomaly detection of mechanical equipment according to claim 1, wherein the performing model pruning training and quantization training using the historical normal data set to obtain the compressed unsupervised anomaly detection model comprises:
performing model pruning training by using a historical normal data set to obtain an unsupervised anomaly detection model after pruning;
and carrying out quantitative training on the pruned unsupervised anomaly detection model by using the historical normal data to obtain the compressed unsupervised anomaly detection model.
4. The method for constructing an edge detection model for anomaly detection of a machine according to claim 1, wherein the training of model pruning and quantization using a labeled historical data training set to obtain a compressed supervised anomaly detection model comprises:
performing model pruning training by using a historical data training set with labels to obtain a supervised anomaly detection model after pruning;
and carrying out quantitative training on the pruned supervised anomaly detection model by using a historical data training set with a label to obtain the compressed supervised anomaly detection model.
5. The method for constructing the edge detection model for detecting the abnormality of the mechanical equipment is characterized by comprising the following steps of:
receiving the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model;
performing integrated learning on the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to obtain an anomaly detection edge detection model;
the compressed unsupervised anomaly detection model is obtained by using a historical normal data set by a cloud platform server, performing model pruning training and quantitative training on the unsupervised anomaly detection model; the compressed supervised anomaly detection model is a cloud platform server, and model pruning training and quantitative training are carried out on the supervised anomaly detection model by using sample data with labels.
6. The method for constructing an edge detection model for anomaly detection of a mechanical device according to claim 5, wherein after receiving the post-compression unsupervised anomaly detection model and the post-compression supervised anomaly detection model, before performing ensemble learning on the post-compression unsupervised anomaly detection model and the post-compression supervised anomaly detection model, further comprises:
and performing fine tuning operation on the compressed unsupervised anomaly detection model by using an edge normal data set, and performing fine tuning operation on the compressed supervised anomaly detection model by using an edge labeled training set.
7. An edge detection model construction device for detecting abnormality of mechanical equipment, comprising:
the first model construction module is used for establishing an unsupervised anomaly detection model, performing model pruning training and quantitative training by using a historical normal data set, and obtaining a compressed unsupervised anomaly detection model;
the second model construction module is used for building a supervised anomaly detection model, performing model pruning training and quantitative training by using a historical data training set with a label, and obtaining a compressed supervised anomaly detection model;
and the sending module is used for sending the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to the edge hardware nodes so as to enable the edge hardware nodes to perform integrated learning and obtain the anomaly detection edge detection model.
8. An edge detection model construction device for detecting abnormality of mechanical equipment, comprising:
the receiving module is used for receiving the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model;
the processing module is used for carrying out integrated learning on the compressed unsupervised anomaly detection model and the compressed supervised anomaly detection model to obtain an anomaly detection edge detection model;
the compressed unsupervised anomaly detection model is obtained by using a historical normal data set by a cloud platform server, performing model pruning training and quantitative training on the unsupervised anomaly detection model; the compressed supervised anomaly detection model is a cloud platform server, and model pruning training and quantitative training are carried out on the supervised anomaly detection model by using sample data with labels.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of the method for constructing an edge detection model for anomaly detection of a mechanical device according to any one of claims 1 to 4.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of the method for constructing an edge detection model for anomaly detection of a mechanical device according to any one of claims 5 to 6 when the program is executed.
CN201911231023.2A 2019-12-04 2019-12-04 Edge detection model construction method and device for mechanical equipment anomaly detection Active CN111091278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911231023.2A CN111091278B (en) 2019-12-04 2019-12-04 Edge detection model construction method and device for mechanical equipment anomaly detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911231023.2A CN111091278B (en) 2019-12-04 2019-12-04 Edge detection model construction method and device for mechanical equipment anomaly detection

Publications (2)

Publication Number Publication Date
CN111091278A CN111091278A (en) 2020-05-01
CN111091278B true CN111091278B (en) 2023-09-08

Family

ID=70394710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911231023.2A Active CN111091278B (en) 2019-12-04 2019-12-04 Edge detection model construction method and device for mechanical equipment anomaly detection

Country Status (1)

Country Link
CN (1) CN111091278B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113727348B (en) * 2020-05-12 2023-07-11 华为技术有限公司 Method, device, system and storage medium for detecting user data of User Equipment (UE)
CN111367781B (en) * 2020-05-26 2020-11-27 浙江大学 Instance processing method and device
CN111736999A (en) * 2020-06-19 2020-10-02 复旦大学 Neural network end cloud collaborative training system capable of reducing communication cost
CN111931389B (en) * 2020-10-12 2021-01-01 湃方科技(天津)有限责任公司 Method and device for analyzing normal and abnormal running state of rotary equipment
CN112379269B (en) * 2020-10-14 2024-03-05 武汉蔚来能源有限公司 Battery abnormality detection model training and detection method and device thereof
CN112580804B (en) * 2020-12-23 2024-04-05 中国科学院上海微系统与信息技术研究所 Determination method and device for target image processing model and storage medium
CN112862459A (en) * 2021-03-02 2021-05-28 岭东核电有限公司 Test abnormity monitoring method and device, computer equipment and storage medium
CN114462623B (en) * 2022-02-10 2023-05-26 电子科技大学 Data analysis method, system and platform based on edge calculation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260748A (en) * 2015-10-16 2016-01-20 吉林大学 Method for clustering uncertain data
CN109508745A (en) * 2018-11-14 2019-03-22 上海交通大学 The detection method of gas turbine gascircuit fault based on Bayesian network model
CN109947079A (en) * 2019-03-20 2019-06-28 阿里巴巴集团控股有限公司 Region method for detecting abnormality and edge calculations equipment based on edge calculations
CN110210512A (en) * 2019-04-19 2019-09-06 北京亿阳信通科技有限公司 A kind of automation daily record method for detecting abnormality and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260748A (en) * 2015-10-16 2016-01-20 吉林大学 Method for clustering uncertain data
CN109508745A (en) * 2018-11-14 2019-03-22 上海交通大学 The detection method of gas turbine gascircuit fault based on Bayesian network model
CN109947079A (en) * 2019-03-20 2019-06-28 阿里巴巴集团控股有限公司 Region method for detecting abnormality and edge calculations equipment based on edge calculations
CN110210512A (en) * 2019-04-19 2019-09-06 北京亿阳信通科技有限公司 A kind of automation daily record method for detecting abnormality and system

Also Published As

Publication number Publication date
CN111091278A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN111091278B (en) Edge detection model construction method and device for mechanical equipment anomaly detection
CN110852438B (en) Model generation method and device
CN111523640B (en) Training method and device for neural network model
US20190205759A1 (en) Method and apparatus for compressing neural network
JP2020017952A (en) Method and device for warning
TW202004658A (en) Self-tuning incremental model compression method in deep neural network
CN110581834A (en) communication capability opening abnormity detection method and device
CN111290922A (en) Service operation health degree monitoring method and device
CN115454706A (en) System abnormity determining method and device, electronic equipment and storage medium
CN114358216B (en) Quantum clustering method based on machine learning framework and related device
CN115374927A (en) Neural network model training method, anomaly detection method and device
CN116703659A (en) Data processing method and device applied to engineering consultation and electronic equipment
CN115361318B (en) LSTM edge calculation flow prediction method for dynamic load balancing in complex environment
CN116257885A (en) Private data communication method, system and computer equipment based on federal learning
CN116168403A (en) Medical data classification model training method, classification method, device and related medium
WO2023055614A1 (en) Embedding compression for efficient representation learning in graph
EP3683733A1 (en) A method, an apparatus and a computer program product for neural networks
CN115062769A (en) Knowledge distillation-based model training method, device, equipment and storage medium
JP7230324B2 (en) Neural network learning method, computer program and computer device
US20210097394A1 (en) Method and apparatus for compressing deep learning model
CN118094368B (en) Bearing fault diagnosis method and device based on diffusion model and attention mechanism
CN113688989B (en) Deep learning network acceleration method, device, equipment and storage medium
CN117036916B (en) Abrasive particle type identification method and device based on lightweight convolutional neural network model
CN112183644B (en) Index stability monitoring method and device, computer equipment and medium
CN117235646A (en) Abnormal transaction identification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Lin Siyu

Inventor after: Ma Jun

Inventor after: Wang Wei

Inventor after: Li Sujie

Inventor after: Liu Tao

Inventor after: Yang Chenwang

Inventor after: Zhou Jingyuan

Inventor before: Lin Siyu

Inventor before: Ma Jun

Inventor before: Wang Wei

Inventor before: Liu Yongpan

Inventor before: Li Sujie

Inventor before: Liu Tao

Inventor before: Yang Chenwang

Inventor before: Zhou Jingyuan

GR01 Patent grant
GR01 Patent grant