WO2022262072A1 - Method and system for training target model on the basis of modification of sample signal - Google Patents

Method and system for training target model on the basis of modification of sample signal Download PDF

Info

Publication number
WO2022262072A1
WO2022262072A1 PCT/CN2021/108156 CN2021108156W WO2022262072A1 WO 2022262072 A1 WO2022262072 A1 WO 2022262072A1 CN 2021108156 W CN2021108156 W CN 2021108156W WO 2022262072 A1 WO2022262072 A1 WO 2022262072A1
Authority
WO
WIPO (PCT)
Prior art keywords
sample
signal
target model
sample set
normal
Prior art date
Application number
PCT/CN2021/108156
Other languages
French (fr)
Chinese (zh)
Inventor
郭春林
郭尔富
Original Assignee
华北电力大学
北京大地纵横科技有限公司
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 华北电力大学, 北京大地纵横科技有限公司 filed Critical 华北电力大学
Publication of WO2022262072A1 publication Critical patent/WO2022262072A1/en

Links

Images

Classifications

    • 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
    • G06N20/00Machine learning
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing

Definitions

  • the present invention relates to the technical field of artificial intelligence, and more specifically, to a method and system for training a target model based on modification of sample signals.
  • the data quality of the sample signal/sample data affects the training effect of the model.
  • the number or rate of failures of some types of equipment during operation is relatively low, so the sample signal/sample data of this type of equipment in normal operation has a relatively large amount of data, while abnormal operation or failure
  • the data size of the sample signal/sample data is small. In this case, abnormal sample signals/sample data with a small amount of data cannot meet the requirements of model training or testing.
  • the present application proposes a model training method and system based on signal modification.
  • the signal modification-based model training method and system of the present application are applicable to various predetermined algorithms, including machine learning algorithms, fitting algorithms, and the like.
  • a method for training a target model based on modification of a sample signal comprising:
  • the target model is trained based on the normal sample set, the abnormal sample set and the preset training algorithm, so as to obtain the trained target model.
  • the various sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
  • At least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing.
  • At least one of the at least two sample signals is a sound signal collected outside the device.
  • a method for testing a target model based on modification of a sample signal comprising:
  • the target model is tested based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results.
  • a system for training a target model based on modification of sample signals comprising:
  • a selection device configured to select a target model to be trained from multiple models, and obtain a configuration file of the target model
  • determining means configured to determine the target device involved in the target model based on the configuration file of the target model, and determine various sample signals associated with the target device;
  • An acquisition device configured to perform signal acquisition or signal simulation on at least two sample signals among various sample signals when the subject device is operating normally, so as to acquire a normal sample set including the at least two sample signals;
  • a modifying device configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set;
  • the training device is used to train the target model based on the normal sample set, the abnormal sample set and a preset training algorithm, so as to obtain the trained target model.
  • the various sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
  • At least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing.
  • At least one of the at least two sample signals is a sound signal collected outside the device.
  • a system for testing a target model based on modification of a sample signal comprising:
  • determining means configured to determine the target device involved in the target model based on the configuration file of the target model, and determine various sample signals associated with the target device;
  • An acquisition device configured to perform signal acquisition or signal simulation on at least two sample signals among multiple sample signals when the subject device is operating normally, so as to acquire a normal sample set including the at least two sample signals;
  • a modifying device configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set;
  • the testing device is used for testing the target model based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test result.
  • a model training method based on signal modification is provided. Firstly, a large number of normal samples and abnormal samples are generated, and then a model is trained using the samples and a set algorithm for diagnosing the state of the target device, distinguish or recognize. in,
  • the normal samples are generated by collecting or simulating two or more signals under normal operation of the target device.
  • the types of sample signals include but are not limited to vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, brightness, and can also be a combination of various signals
  • the abnormal samples are generated by modifying certain signals in normal samples.
  • modifying a certain signal in the normal sample is to modify a certain signal according to the amplitude, the square of the amplitude, the energy value, the square of the energy value or their ratio.
  • the amount of signal modification in abnormal samples is also reduced to obtain a higher-precision model.
  • a model evaluation method based on signal modification is provided, and the model is used for diagnosing, judging or identifying the state of the target device. in:
  • Generate normal samples by collecting or simulating two or more signals under normal operation of the target device.
  • Anomalous samples are generated by modifying a certain signal in normal samples.
  • the model is tested with the normal samples and abnormal samples, and then the performance of the model is evaluated according to the test results.
  • modifying a certain signal in the normal sample is modifying the signal according to the amplitude, the square of the amplitude, the energy value, the square of the energy value or their ratio.
  • the accuracy of the model is evaluated by reducing the amount of signal modification in abnormal samples during the training process.
  • the technical solution of the present invention can effectively and accurately obtain abnormal samples or negative samples, and combine the obtained abnormal samples or negative samples with normal samples or positive samples to train or test the model.
  • a model with better recognition accuracy can be obtained.
  • the model detection effect obtained by the method or system of the present invention is good, the technical difficulty and cost are relatively low, and it can be widely used in the scheme of identifying with various devices.
  • FIG. 1 is a flowchart of a method for training a target model based on modification of a sample signal according to an embodiment of the present invention
  • Fig. 2 is the flow chart of the method for testing target model based on the modification of sample signal according to the embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a system for training a target model based on modification of sample signals according to an embodiment of the present invention
  • Fig. 4 is a schematic structural diagram of a system for testing a target model based on modification of a sample signal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method 100 for training a target model based on modification of sample signals according to an embodiment of the present invention.
  • Method 100 starts at step 101 .
  • a target model to be trained is selected from multiple models, and a configuration file of the target model is obtained.
  • various types and/or various sizes of equipment are widely used in various locations, production links, monitoring links, etc.
  • the model of each different type of equipment or the equipment model can be used to determine the operating state of the equipment, obtain the operating parameters of the equipment, and so on. For this reason, when it is necessary to train or test a model of a specific device, it is necessary to select a target model to be trained from models associated with multiple different devices or device models.
  • each model or device model has a configuration file, and the configuration file is used to describe various properties of the model or device model.
  • the various attributes are, for example: input parameters, output parameters, model type, model effect, model accuracy, device type, device name, device identifier, and the like.
  • the target model has various attributes, and for example, the device type, device name, device identifier, etc. of the target model can be determined via the configuration file of the target model.
  • an object device involved in the object model is determined based on the configuration file of the object model, and various sample signals associated with the object device are determined.
  • the device type, device name, device identifier, etc. of the target model can be determined through the configuration file of the target model.
  • the target device involved in the target model may be determined by parsing the configuration file of the target model.
  • the target device may be any type of device.
  • the configuration file of the target model may also include information of various sample signals associated with the target device.
  • the device identifier or device name of the target device can be used to search in the sample signal information library to obtain information on various sample signals associated with the target device .
  • the multiple sample signals include one or more of the following: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
  • one or more sample signals of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness can be used to characterize, train, test, describe target device. It should be understood that this application is only described by taking vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness as examples, and those skilled in the art should understand Note that this application can use any reasonable sample signal. In practical scenarios, various types of sensors can be used to acquire any one of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, and brightness.
  • step 103 when the target device is running normally, signal acquisition or signal simulation is performed on at least two sample signals among various sample signals, so as to obtain a normal sample set including the at least two sample signals.
  • the normal sample set is one of the data collected by sensors such as vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness when the target device is in normal operation.
  • a sample signal composed of one or more sample signals or data.
  • the present application performs signal acquisition or signal simulation on at least two sample signals among various sample signals, so as to obtain the A collection of normal samples for a sample signal.
  • the at least two sample signals are vibration signal, sound signal and voltage signal
  • the normal sample set includes a plurality of samples arranged in order of sample sampling time, wherein each sample includes vibration signal, sound signal and voltage signal , and each sample has a sampling time. That is, each sample in the set of normal samples is a signal group or signal set having a sample time and including each sample signal at that sample time.
  • the normal sample set can include at least two sample subsets, and each sample subset is a vibration sample signal subset, an acoustic emission sample signal subset, a sound sample signal subset or an electric field strength sample signal subset, etc. It should be understood that the division of signal subsets is only for data storage or data display.
  • each sample includes each of at least two sample signals.
  • a plurality of sample signal groups are included in the normal sample set, and each sample signal group includes a single vibration sample signal, a single acoustic emission sample signal and a single sound sample signal, for example, each sample signal group is ⁇ vibration sample signal, acoustic sample signal Transmit sample signal, sound sample signal>. It should be appreciated that each sample signal group can be considered as a sample in the set of normal samples.
  • At least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor closely attached to a device housing of the target device.
  • at least one sample signal among the at least two sample signals is a sound signal collected outside the device of the subject device.
  • the sensor may be placed close to the casing of the device or the target device, placed outside the device or the target device, or placed inside the device or the target device.
  • step 104 at least one sample signal in the normal sample set is modified according to a preset modification manner, so as to obtain an abnormal sample set corresponding to the normal sample set.
  • equipment with a stable operating state has fewer failures or a lower failure rate in actual operation, so the sample signal/sample data volume of this type of equipment is relatively large for normal operation, while abnormal operation Or the data amount of the sample signal/sample data at the time of failure is small. In this case, it is often difficult to obtain enough abnormal sample signals.
  • the present application modifies at least one sample signal in the normal sample set according to a preset modification manner.
  • the preset modification methods include: increasing or decreasing the corresponding modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding modification amount can be increased or decreased Or the value or value range of the square of the energy value changes.
  • the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device For example, increase or decrease the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device; increase or decrease the corresponding modifier b for the amplitude square sample signal in the normal sample set of the target device; Increase or decrease the corresponding modifier c for the energy value sample signal in the normal sample set of the target device or increase or decrease the corresponding modifier d for the energy value square sample signal in the normal sample set of the target device, so that the normal sample set of the target device
  • the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs.
  • the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
  • the preset modification methods also include: increasing or decreasing the corresponding ratio for the amplitude, amplitude square, energy value or energy value square, so that the corresponding ratio of amplitude, amplitude square, energy The value or value interval of the value or the square of the energy value changes.
  • the amplitude sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio e
  • the amplitude square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate f
  • the target device The energy value sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio g, or the energy value square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate h, so that the normal sample set of the target device
  • the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs.
  • the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
  • the preset modification method also includes: increasing or decreasing a corresponding steady-state modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value.
  • magnitude, magnitude squared, energy value or energy value squared may have respective steady state modifiers.
  • the amplitude, the square of the amplitude, the energy value or the square of the energy value, increasing or decreasing the corresponding steady-state modifier includes: the steady-state modifier of the amplitude, the square of the amplitude, the energy value or the square of the energy value in the statistical normal sample set ⁇ Y corresponds to the maximum value Ymax and minimum value Ymin of the parameter; set the adjustment target coefficient a, where 0 ⁇ a ⁇ 1; count the value Ysignal of the corresponding parameter of the steady-state modification amount ⁇ Y of the sample to be modified;
  • the target model is trained based on the normal sample set, the abnormal sample set and a preset training algorithm, so as to obtain a trained target model.
  • the preset training algorithm may be any reasonable training algorithm in the field of artificial intelligence, deep learning, and machine learning algorithm.
  • the trained target model Inputting the pre-stored first test sample set into the trained target model, so that the trained target model can diagnose, judge or identify the result state of the target device, and obtain a verification state corresponding to the pre-stored first test sample set.
  • the verification state may correspond to each sample signal group or sample subset of the first test sample set respectively.
  • the predetermined threshold is a preset difference threshold, and the predetermined threshold or the difference threshold may be considered as the minimum requirement for the accuracy of diagnosis, discrimination or identification of the target model. For example, when the predetermined threshold is 5%, the degree of difference is 4%, and the degree of difference is less than the predetermined threshold, then it is determined that the trained target model meets the requirements. When the predetermined threshold is 2%, the degree of difference is 4%, and if the degree of difference is greater than the predetermined threshold, it is determined that the trained target model does not meet the requirements.
  • the normal sample set is divided into a first normal sample subset and a second normal sample set Subsets, dividing the set of abnormal samples into a first subset of abnormal samples and a second subset of abnormal samples.
  • the first quantity ratio of the sample signals (sample signals of normal samples or normal sample signals) in the first normal sample subset and the second normal sample subset is any reasonable ratio such as 3:7, 5:5, 6:4, etc.
  • the second quantity ratio of the sample signals (sample signals of abnormal samples or abnormal sample signals) in the first abnormal sample subset and the second abnormal sample subset is any reasonable ratio such as 3:7, 5:5, 6:4, etc.
  • the first quantity ratio and the second quantity ratio may be equal or unequal.
  • the target model is trained based on the first normal sample set, the first abnormal sample set and a preset training algorithm, so as to obtain a trained target model.
  • the preset training algorithm can be any reasonable training algorithm in the field of artificial intelligence, deep learning, and machine learning algorithm.
  • the second set of normal samples and the second sub-set of abnormal samples are used to form a second test sample set, and the second test sample set is input into the trained target model, so that the trained target model can diagnose, distinguish or identify the target device
  • the result state is to obtain the verification state corresponding to the pre-stored second test sample set; and determine the degree of difference between the verification state and the result state.
  • the degree of difference is less than or equal to a predetermined threshold, it is determined that the trained target model meets the requirements; when the degree of difference is greater than the predetermined threshold, it is determined that the trained target model does not meet the requirements.
  • it also includes, by reducing the modification amount, obtaining an adjusted abnormal sample set, and training the target model based on the normal sample set, the adjusted abnormal sample set and a preset training algorithm, so as to obtain the trained high-precision target model. For example, after increasing or decreasing the corresponding modification amount for the amplitude, amplitude square, energy value or energy value square, so that after increasing or decreasing the magnitude of the corresponding modification amount, by reducing the modification amount, the obtained Adjusted set of outlier samples.
  • It also includes obtaining an adjusted abnormal sample set by reducing the ratio, and training the target model based on the normal sample set, the adjusted abnormal sample set and a preset training algorithm, thereby obtaining a trained high-precision target Model. For example, after increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, it further includes: reducing the ratio to obtain an adjusted abnormal sample set.
  • FIG. 2 is a flowchart of a method 200 for testing a target model based on modification of sample signals according to an embodiment of the present invention.
  • Method 200 starts at step 201 .
  • a target model to be tested is determined and a configuration file of the target model is obtained.
  • various types and/or various sizes of equipment are widely used in various locations, production links, monitoring links, etc. For this reason, if it is necessary to determine the operating status of any type of equipment, or obtain parameters of any type of equipment, etc., it is necessary to obtain the model or equipment model of each different type of equipment.
  • the model of each different type of equipment or the equipment model can be used to determine the operating state of the equipment, obtain the operating parameters of the equipment, and so on. To this end, before testing, determine the target model that needs to be tested.
  • each model or device model has a configuration file, and the configuration file is used to describe various properties of the model or device model.
  • Various attributes are, for example: input parameters, output parameters, model type, model action, model accuracy, device type, device name, device identifier, etc.
  • the target model has various attributes, and for example, the device type, device name, device identifier, etc. of the target model can be determined via the configuration file of the target model.
  • an object device involved in the object model is determined based on the configuration file of the object model, and various sample signals associated with the object device are determined.
  • the device type, device name, device identifier, etc. of the target model can be determined through the configuration file of the target model.
  • the target device involved in the target model may be determined by parsing the configuration file of the target model.
  • the target device may be any type of device.
  • the configuration file of the target model may also include information of various sample signals associated with the target device.
  • the device identifier or device name of the target device can be used to search in the sample signal information library to obtain information on various sample signals associated with the target device .
  • the various sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
  • one or more sample signals of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness can be used to characterize, train, test, describe target device. It should be understood that this application is only described by taking vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness as examples, and those skilled in the art should understand Note that this application can use any reasonable sample signal.
  • various types of sensors can be used to acquire any one of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, and brightness.
  • step 203 when the target device is running normally, signal acquisition or signal simulation is performed on at least two sample signals among the various sample signals, so as to obtain a normal sample set including the at least two sample signals.
  • the normal sample set is one of the data collected by sensors such as vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness when the target device is in normal operation.
  • a sample signal composed of one or more sample signals or data.
  • the present application performs signal acquisition or signal simulation on at least two sample signals among various sample signals, so as to obtain the A collection of normal samples for a sample signal.
  • the at least two sample signals are vibration signal, sound signal and voltage signal
  • the normal sample set includes a plurality of samples arranged in order of sample sampling time, wherein each sample includes vibration signal, sound signal and voltage signal , and each sample has a sampling time. That is, each sample in the set of normal samples is a signal group or signal set having a sample time and including each sample signal at that sample time.
  • the normal sample set can include at least two sample subsets, and each sample subset is a vibration sample signal subset, an acoustic emission sample signal subset, a sound sample signal subset or an electric field strength sample signal subset, etc. It should be understood that the division of signal subsets is only for data storage or data display.
  • each sample includes each of at least two sample signals.
  • a plurality of sample signal groups are included in the normal sample set, and each sample signal group includes a single vibration sample signal, a single acoustic emission sample signal and a single sound sample signal, for example, each sample signal group is ⁇ vibration sample signal, acoustic sample signal Transmit sample signal, sound sample signal>. It should be appreciated that each sample signal group can be considered as a sample in the set of normal samples.
  • At least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing.
  • at least one of the at least two sample signals is a sound signal collected outside the device.
  • the sensor may be placed close to the casing of the device or the target device, placed outside the device or the target device, or placed inside the device or the target device.
  • step 204 at least one sample signal in the normal sample set is modified according to a preset modification manner, so as to obtain an abnormal sample set corresponding to the normal sample set.
  • equipment with a stable operating state has fewer failures or a lower failure rate in actual operation, so the sample signal/sample data volume of this type of equipment is relatively large for normal operation, while abnormal operation Or the data amount of the sample signal/sample data at the time of failure is small. In this case, it is often difficult to obtain enough abnormal sample signals.
  • the present application modifies at least one sample signal in the normal sample set according to a preset modification manner.
  • the preset modification methods include: increasing or decreasing the corresponding modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding modification amount can be increased or decreased Or the value or value range of the square of the energy value changes.
  • the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device For example, increase or decrease the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device; increase or decrease the corresponding modifier b for the amplitude square sample signal in the normal sample set of the target device; Increase or decrease the corresponding modifier c for the energy value sample signal in the normal sample set of the target device or increase or decrease the corresponding modifier d for the energy value square sample signal in the normal sample set of the target device, so that the normal sample set of the target device
  • the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs.
  • the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
  • the preset modification methods include: increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding ratio can be increased or decreased Or the value or value range of the square of the energy value changes.
  • the amplitude sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio e
  • the amplitude square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate f
  • the target device The energy value sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio g, or the energy value square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate h, so that the normal sample set of the target device
  • the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs.
  • the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
  • the preset modification method also includes: increasing or decreasing a corresponding steady-state modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value.
  • magnitude, magnitude squared, energy value or energy value squared may have respective steady state modifiers.
  • amplitude, the square of the amplitude, the energy value or the square of the energy value, increasing or decreasing the corresponding steady-state modifier includes:
  • the target model is tested based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results.
  • the target model can diagnose, judge or identify the operating state of the target device according to the collected sample signals, so as to determine whether the target device is in a normal state, an abnormal state or any other state.
  • the performance index of the target model may include the diagnostic accuracy, discrimination accuracy or recognition accuracy of the target model.
  • the target model is tested based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results. Diagnose, judge or identify the result status of the target device, and obtain the verification status corresponding to the normal sample set and/or the abnormal sample set. Determining the correct ratio of the result status based on the verification status, determining the test result based on the correct ratio and determining the performance index of the target model based on the test result.
  • test result when the test result is greater than or equal to 97%, it is determined that the performance index of the target model is high precision, and when the test result is less than 97% and greater than or equal to 90%, it is determined that the performance index of the target model is medium precision, and When the test result is less than 90%, it is determined that the performance index of the target model is low precision.
  • it also includes obtaining an adjusted abnormal sample set by reducing the ratio, and testing the target model based on the normal sample set and the adjusted abnormal sample set, so as to determine the diagnostic accuracy, discrimination accuracy or recognition accuracy of the target model precision. For example, after increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, it further includes: reducing the ratio to obtain an adjusted abnormal sample set.
  • it also includes, by reducing the modification amount, obtaining an adjusted abnormal sample set, and testing the target model based on the normal sample set and the adjusted abnormal sample set, so as to determine the diagnostic accuracy, discrimination accuracy or recognition accuracy. For example, after increasing or decreasing the corresponding modification amount for the amplitude, amplitude square, energy value or energy value square, so that after increasing or decreasing the magnitude of the corresponding modification amount, by reducing the modification amount, the obtained Adjusted set of outlier samples.
  • FIG. 3 is a schematic structural diagram of a system 300 for training a target model based on modification of sample signals according to an embodiment of the present invention.
  • the system 300 includes: selection means 301 , determination means 302 , acquisition means 303 , modification means 304 , training means 305 and recognition means 306 .
  • the selecting means 301 is configured to select a target model to be trained from multiple models, and obtain a configuration file of the target model.
  • various types and/or various sizes of equipment are widely used in various locations, production links, monitoring links, etc. For this reason, if it is necessary to determine the operating status of any type of equipment, or obtain parameters of any type of equipment, etc., it is necessary to obtain the model or equipment model of each different type of equipment.
  • the model of each different type of equipment or the equipment model can be used to determine the operating state of the equipment, obtain the operating parameters of the equipment, and so on. For this reason, when it is necessary to train or test a model of a specific device, it is necessary to select a target model to be trained from models associated with multiple different devices or device models.
  • each model or device model has a configuration file, and the configuration file is used to describe various properties of the model or device model.
  • the various attributes are, for example: input parameters, output parameters, model type, model effect, model accuracy, device type, device name, device identifier, and the like.
  • the target model has various attributes, and for example, the device type, device name, device identifier, etc. of the target model can be determined via the configuration file of the target model.
  • the determining unit 302 is configured to determine an object device involved in the object model based on the configuration file of the object model, and determine various sample signals associated with the object device.
  • the device type, device name, device identifier, etc. of the target model can be determined through the configuration file of the target model.
  • the target device involved in the target model may be determined by parsing the configuration file of the target model.
  • the target device may be any type of device.
  • the configuration file of the target model may also include information of various sample signals associated with the target device.
  • the device identifier or device name of the target device can be used to search in the sample signal information library to obtain information on various sample signals associated with the target device .
  • the multiple sample signals include one or more of the following: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
  • one or more sample signals of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness can be used to characterize, train, test, describe target device. It should be understood that this application is only described by taking vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness as examples, and those skilled in the art should understand Note that this application can use any reasonable sample signal. In practical scenarios, various types of sensors can be used to acquire any one of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, and brightness.
  • the obtaining means 303 is configured to perform signal collection or signal simulation on at least two sample signals among the various sample signals when the target device is running normally, so as to obtain a normal sample set including the at least two sample signals.
  • the normal sample set is one of the data collected by sensors such as vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness when the target device is in normal operation.
  • a sample signal composed of one or more sample signals or data.
  • the present application performs signal acquisition or signal simulation on at least two sample signals among various sample signals, so as to obtain the A collection of normal samples for a sample signal.
  • the at least two sample signals are vibration signal, sound signal and voltage signal
  • the normal sample set includes a plurality of samples arranged in order of sample sampling time, wherein each sample includes vibration signal, sound signal and voltage signal , and each sample has a sampling time. That is, each sample in the set of normal samples is a signal group or signal set having a sample time and including each sample signal at that sample time.
  • the normal sample set can include at least two sample subsets, and each sample subset is a vibration sample signal subset, an acoustic emission sample signal subset, a sound sample signal subset or an electric field strength sample signal subset, etc. It should be understood that the division of signal subsets is only for data storage or data display.
  • each sample includes each of at least two sample signals.
  • a plurality of sample signal groups are included in the normal sample set, and each sample signal group includes a single vibration sample signal, a single acoustic emission sample signal and a single sound sample signal, for example, each sample signal group is ⁇ vibration sample signal, acoustic sample signal Transmit sample signal, sound sample signal>. It should be appreciated that each sample signal group can be considered as a sample in the set of normal samples.
  • At least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing.
  • at least one of the at least two sample signals is a sound signal collected outside the device.
  • the sensor may be placed close to the casing of the device or the target device, placed outside the device or the target device, or placed inside the device or the target device.
  • the modifying means 304 is configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set.
  • a preset modification method In actual situations, equipment with a stable operating state has fewer failures or a lower failure rate in actual operation, so the sample signal/sample data volume of this type of equipment is relatively large for normal operation, while abnormal operation Or the data amount of the sample signal/sample data at the time of failure is small. In this case, it is often difficult to obtain enough abnormal sample signals.
  • the present application modifies at least one sample signal in the normal sample set according to a preset modification manner.
  • the preset modification methods include: increasing or decreasing the corresponding modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding modification amount can be increased or decreased Or the value or value range of the square of the energy value changes.
  • the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device For example, increase or decrease the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device; increase or decrease the corresponding modifier b for the amplitude square sample signal in the normal sample set of the target device; Increase or decrease the corresponding modifier c for the energy value sample signal in the normal sample set of the target device or increase or decrease the corresponding modifier d for the energy value square sample signal in the normal sample set of the target device, so that the normal sample set of the target device
  • the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs.
  • the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
  • the preset modification methods also include: increasing or decreasing the corresponding ratio for the amplitude, amplitude square, energy value or energy value square, so that the corresponding ratio of amplitude, amplitude square, energy The value or value interval of the value or the square of the energy value changes.
  • the amplitude sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio e
  • the amplitude square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate f
  • the target device The energy value sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio g, or the energy value square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate h, so that the normal sample set of the target device
  • the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs.
  • the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
  • the preset modification method also includes: increasing or decreasing a corresponding steady-state modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value.
  • magnitude, magnitude squared, energy value or energy value squared may have respective steady state modifiers.
  • the amplitude, the square of the amplitude, the energy value or the square of the energy value, increasing or decreasing the corresponding steady-state modifier includes: the steady-state modifier of the amplitude, the square of the amplitude, the energy value or the square of the energy value in the statistical normal sample set ⁇ Y corresponds to the maximum value Ymax and minimum value Ymin of the parameter; set the adjustment target coefficient a, where 0 ⁇ a ⁇ 1; count the value Ysignal of the corresponding parameter of the steady-state modification amount ⁇ Y of the sample to be modified;
  • the training device 305 is configured to train the target model based on the normal sample set, the abnormal sample set and a preset training algorithm, so as to obtain a trained target model.
  • the preset training algorithm may be any reasonable training algorithm in the field of artificial intelligence, deep learning, and machine learning algorithm.
  • the trained target model Inputting the pre-stored first test sample set into the trained target model, so that the trained target model can diagnose, judge or identify the result state of the target device, and obtain a verification state corresponding to the pre-stored first test sample set.
  • the verification state may correspond to each sample signal group or sample subset of the first test sample set respectively.
  • the predetermined threshold is a preset difference threshold, and the predetermined threshold or the difference threshold may be considered as the minimum requirement for the accuracy of diagnosis, discrimination or identification of the target model. For example, when the predetermined threshold is 5%, the degree of difference is 4%, and the degree of difference is less than the predetermined threshold, then it is determined that the trained target model meets the requirements. When the predetermined threshold is 2%, the degree of difference is 4%, and if the degree of difference is greater than the predetermined threshold, it is determined that the trained target model does not meet the requirements.
  • the normal sample set is divided into a first normal sample subset and a second normal sample set Subsets, dividing the set of abnormal samples into a first subset of abnormal samples and a second subset of abnormal samples.
  • the first quantity ratio of the sample signals (sample signals of normal samples or normal sample signals) in the first normal sample subset and the second normal sample subset is any reasonable ratio such as 3:7, 5:5, 6:4, etc.
  • the second quantity ratio of the sample signals (sample signals of abnormal samples or abnormal sample signals) in the first abnormal sample subset and the second abnormal sample subset is any reasonable ratio such as 3:7, 5:5, 6:4, etc.
  • the first quantity ratio and the second quantity ratio may be equal or unequal.
  • the target model is trained based on the first normal sample set, the first abnormal sample set and a preset training algorithm, so as to obtain a trained target model.
  • the preset training algorithm can be any reasonable training algorithm in the field of artificial intelligence, deep learning, and machine learning algorithm.
  • the second set of normal samples and the second sub-set of abnormal samples are used to form a second test sample set, and the second test sample set is input into the trained target model, so that the trained target model can diagnose, distinguish or identify the target device
  • the result state is to obtain the verification state corresponding to the pre-stored second test sample set; and determine the degree of difference between the verification state and the result state.
  • the degree of difference is less than or equal to a predetermined threshold, it is determined that the trained target model meets the requirements; when the degree of difference is greater than the predetermined threshold, it is determined that the trained target model does not meet the requirements.
  • it also includes, by reducing the modification amount, obtaining an adjusted abnormal sample set, and training the target model based on the normal sample set, the adjusted abnormal sample set and a preset training algorithm, so as to obtain the trained high-precision target model. For example, after increasing or decreasing the corresponding modification amount for the amplitude, amplitude square, energy value or energy value square, so that after increasing or decreasing the magnitude of the corresponding modification amount, by reducing the modification amount, the obtained Adjusted set of outlier samples.
  • It also includes obtaining an adjusted abnormal sample set by reducing the ratio, and training the target model based on the normal sample set, the adjusted abnormal sample set and a preset training algorithm, thereby obtaining a trained high-precision target Model. For example, after increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, it further includes: reducing the ratio to obtain an adjusted abnormal sample set.
  • the identification means 306 is configured to input the actual signal generated by the target equipment during actual operation into the trained target model after obtaining the trained target model, so as to use the trained target model to analyze the operating state of the target device Diagnose, judge or identify, so as to determine whether the target device is in a normal state or an abnormal state.
  • FIG. 4 is a schematic structural diagram of a system 400 for testing a target model based on modification of sample signals according to an embodiment of the present invention.
  • the system 400 includes: obtaining means 401 , determining means 402 , obtaining means 403 , modifying means 404 , and testing means 405 .
  • Obtaining means 401 configured to determine a target model that needs to be tested and obtain a configuration file of the target model.
  • various types and/or various sizes of equipment are widely used in various locations, production links, monitoring links, etc. For this reason, if it is necessary to determine the operating status of any type of equipment, or obtain parameters of any type of equipment, etc., it is necessary to obtain the model or equipment model of each different type of equipment.
  • a model of each different type of equipment or equipment model can be used to determine the operating status of the equipment, obtain the operating parameters of the equipment, and so on. To this end, before testing, determine the target model that needs to be tested.
  • each model or device model has a configuration file, and the configuration file is used to describe various properties of the model or device model.
  • the various attributes are, for example: input parameters, output parameters, model type, model effect, model accuracy, device type, device name, device identifier, and the like.
  • the target model has various attributes, and for example, the device type, device name, device identifier, etc. of the target model can be determined via the configuration file of the target model.
  • the determining unit 402 is configured to determine an object device involved in the object model based on the configuration file of the object model, and determine various sample signals associated with the object device.
  • the device type, device name, device identifier, etc. of the target model can be determined through the configuration file of the target model.
  • the target device involved in the target model may be determined by parsing the configuration file of the target model.
  • the target device may be any type of device.
  • the configuration file of the target model may also include information of various sample signals associated with the target device.
  • the device identifier or device name of the target device can be used to search in the sample signal information library to obtain information on various sample signals associated with the target device .
  • the various sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
  • one or more sample signals of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness can be used to characterize, train, test, describe target device. It should be understood that this application is only described by taking vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness as examples, and those skilled in the art should understand Note that this application can use any reasonable sample signal.
  • various types of sensors can be used to acquire any one of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, and brightness.
  • the obtaining means 403 is configured to perform signal collection or signal simulation on at least two sample signals among the various sample signals when the target device is running normally, so as to obtain a normal sample set including the at least two sample signals.
  • the normal sample set is one of the data collected by sensors such as vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness when the target device is in normal operation.
  • a sample signal composed of one or more sample signals or data.
  • the present application performs signal acquisition or signal simulation on at least two sample signals among various sample signals, so as to obtain the Normal sample collection of sample signals.
  • the at least two sample signals are vibration signal, sound signal and voltage signal
  • the normal sample set includes a plurality of samples arranged in order of sample sampling time, wherein each sample includes vibration signal, sound signal and voltage signal , and each sample has a sampling time. That is, each sample in the set of normal samples is a signal group or signal set having a sample time and including each sample signal at that sample time.
  • the normal sample set can include at least two sample subsets, and each sample subset is a vibration sample signal subset, an acoustic emission sample signal subset, a sound sample signal subset or an electric field strength sample signal subset, etc. It should be understood that the division of signal subsets is only for data storage or data display.
  • each sample includes each of at least two sample signals.
  • a plurality of sample signal groups are included in the normal sample set, and each sample signal group includes a single vibration sample signal, a single acoustic emission sample signal and a single sound sample signal, for example, each sample signal group is ⁇ vibration sample signal, acoustic sample signal Transmit sample signal, sound sample signal>. It should be appreciated that each sample signal group can be considered as a sample in the set of normal samples.
  • At least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing.
  • at least one of the at least two sample signals is a sound signal collected outside the device.
  • the sensor may be placed close to the casing of the device or the target device, placed outside the device or the target device, or placed inside the device or the target device.
  • the modification means 404 is configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set.
  • the present application modifies at least one sample signal in the normal sample set according to a preset modification manner.
  • the preset modification methods include: increasing or decreasing the corresponding modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding modification amount can be increased or decreased Or the value or value range of the square of the energy value changes.
  • the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device For example, increase or decrease the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device; increase or decrease the corresponding modifier b for the amplitude square sample signal in the normal sample set of the target device; Increase or decrease the corresponding modifier c for the energy value sample signal in the normal sample set of the target device or increase or decrease the corresponding modifier d for the energy value square sample signal in the normal sample set of the target device, so that the normal sample set of the target device
  • the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs.
  • the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
  • the preset modification methods include: increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding ratio can be increased or decreased Or the value or value range of the square of the energy value changes.
  • the amplitude sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio e
  • the amplitude square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate f
  • the target device The energy value sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio g, or the energy value square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate h, so that the normal sample set of the target device
  • the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs.
  • the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
  • the preset modification method also includes: increasing or decreasing a corresponding steady-state modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value.
  • magnitude, magnitude squared, energy value or energy value squared may have respective steady state modifiers.
  • amplitude, the square of the amplitude, the energy value or the square of the energy value, increasing or decreasing the corresponding steady-state modifier includes:
  • the testing device 405 is configured to test the target model based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results.
  • the target model can diagnose, judge or identify the operating state of the target device according to the collected sample signals, so as to determine whether the target device is in a normal state, an abnormal state or any other state.
  • the performance index of the target model may include the diagnostic accuracy, discrimination accuracy or recognition accuracy of the target model.
  • the target model is tested based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results. Diagnose, judge or identify the result status of the target device, and obtain the verification status corresponding to the normal sample set and/or the abnormal sample set. Determining the correct ratio of the result status based on the verification status, determining the test result based on the correct ratio and determining the performance index of the target model based on the test result.
  • test result when the test result is greater than or equal to 97%, it is determined that the performance index of the target model is high precision, and when the test result is less than 97% and greater than or equal to 90%, it is determined that the performance index of the target model is medium precision, and When the test result is less than 90%, it is determined that the performance index of the target model is low precision.
  • it also includes obtaining an adjusted abnormal sample set by reducing the ratio, and testing the target model based on the normal sample set and the adjusted abnormal sample set, so as to determine the diagnostic accuracy, discrimination accuracy or recognition accuracy of the target model precision. For example, after increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, it further includes: reducing the ratio to obtain an adjusted abnormal sample set.
  • it also includes, by reducing the modification amount, obtaining an adjusted abnormal sample set, and testing the target model based on the normal sample set and the adjusted abnormal sample set, so as to determine the diagnostic accuracy, discrimination accuracy or recognition accuracy. For example, after increasing or decreasing the corresponding modification amount for the amplitude, amplitude square, energy value or energy value square, so that after increasing or decreasing the magnitude of the corresponding modification amount, by reducing the modification amount, the obtained Adjusted set of outlier samples.

Abstract

A method and system for training a target model on the basis of modification of a sample signal. The method comprises: selecting, from a plurality of models, a target model which needs to be trained, and obtaining a configuration file for the target model (101); determining an object device related to the target model on the basis of the configuration file for the target model, and determining a plurality of sample signals associated with the object device (102); when the object device operates normally, performing signal acquisition or signal simulation on at least two sample signals in the plurality of sample signals so as to obtain a normal sample set comprising the at least two sample signals (103); modifying at least one sample signal in the normal sample set according to a preset modification mode to obtain an abnormal sample set corresponding to the normal sample set (104); and training the target model on the basis of the normal sample set, the abnormal sample set, and a preset training algorithm to obtain a trained target model (105).

Description

基于样本信号的修改对目标模型进行训练的方法及系统Method and system for training target model based on modification of sample signal 技术领域technical field
本发明涉及人工智能技术领域,并且更具体地,涉及一种基于样本信号的修改对目标模型进行训练的方法及系统。The present invention relates to the technical field of artificial intelligence, and more specifically, to a method and system for training a target model based on modification of sample signals.
背景技术Background technique
目前,随着人工智能技术的发展,大量机器学习算法不断涌现。机器学习算法特别是深度学习近年来取得了极大的成功,而数据才是使机器学习成为可能的关键因素。技术人员可以使用简单的算法实现机器学习,但是没有好的数据无法对算法进行优化。At present, with the development of artificial intelligence technology, a large number of machine learning algorithms continue to emerge. Machine learning algorithms, especially deep learning, have achieved great success in recent years, and data is the key factor that makes machine learning possible. Technicians can use simple algorithms to implement machine learning, but without good data the algorithms cannot be optimized.
由此可知,在基于机器学习的模型训练中,样本信号/样本数据的数据质量影响着模型的训练效果。然而,在实际情况中,部分类型的设备在运行中出现故障的次数或比率较低,因此这种类型的设备的正常运行的样本信号/样本数据的数据量比较大,而异常运行或故障时的样本信号/样本数据的数据量较小。在这种情况下,较小数据量的异常样本信号/样本数据无法满足模型训练或测试的需求。It can be seen that in the model training based on machine learning, the data quality of the sample signal/sample data affects the training effect of the model. However, in actual situations, the number or rate of failures of some types of equipment during operation is relatively low, so the sample signal/sample data of this type of equipment in normal operation has a relatively large amount of data, while abnormal operation or failure The data size of the sample signal/sample data is small. In this case, abnormal sample signals/sample data with a small amount of data cannot meet the requirements of model training or testing.
发明内容Contents of the invention
为了解决现有技术中的上述问题,本申请提出一种基于信号修改的模型训练方法及系统。本申请的基于信号修改的模型训练方法及系统适用于各种预定算法,包括机器学习算法,拟合算法等。In order to solve the above problems in the prior art, the present application proposes a model training method and system based on signal modification. The signal modification-based model training method and system of the present application are applicable to various predetermined algorithms, including machine learning algorithms, fitting algorithms, and the like.
根据本发明的一个方面,提供一种基于样本信号的修改对目标模型进行训练的方法,所述方法包括:According to one aspect of the present invention, there is provided a method for training a target model based on modification of a sample signal, the method comprising:
从多个模型中选择需要进行训练的目标模型,获取所述目标模型的配置文件;Select a target model to be trained from multiple models, and obtain a configuration file of the target model;
基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号;determining an object device involved in the object model based on the configuration file of the object model, and determining various sample signals associated with the object device;
在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样 本集合;When the subject device is operating normally, perform signal acquisition or signal simulation on at least two sample signals among the various sample signals, so as to obtain a normal sample set including the at least two sample signals;
根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合;Modifying at least one sample signal in the normal sample set according to a preset modification method to obtain an abnormal sample set corresponding to the normal sample set;
基于正常样本集合、异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的目标模型。The target model is trained based on the normal sample set, the abnormal sample set and the preset training algorithm, so as to obtain the trained target model.
所述多种样本信号包括:振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度。The various sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
所述至少两种样本信号之中的至少一种样本信号是通过紧贴在设备外壳的传感器采集的振动/声发射信号。At least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing.
所述至少两种样本信号之中的至少一种样本信号是在设备外部采集的声音信号。At least one of the at least two sample signals is a sound signal collected outside the device.
根据本发明的还一个方面,提供一种基于样本信号的修改对目标模型进行测试的方法,所述方法包括:According to still another aspect of the present invention, a method for testing a target model based on modification of a sample signal is provided, the method comprising:
确定需要进行测试的目标模型并获得目标模型的配置文件;Determine the target model that needs to be tested and obtain the configuration file of the target model;
基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号;determining an object device involved in the object model based on the configuration file of the object model, and determining various sample signals associated with the object device;
在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合;When the subject device is running normally, perform signal acquisition or signal simulation on at least two sample signals among the various sample signals, so as to obtain a normal sample set including the at least two sample signals;
根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合;Modifying at least one sample signal in the normal sample set according to a preset modification method to obtain an abnormal sample set corresponding to the normal sample set;
基于正常样本集合和异常样本集合对目标模型进行测试,从而基于测试结果确定目标模型的性能指标。The target model is tested based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results.
根据本发明的还一个方面,提供一种基于样本信号的修改对目标模型进行训练的系统,所述系统包括:According to still another aspect of the present invention, a system for training a target model based on modification of sample signals is provided, the system comprising:
选择装置,用于从多个模型中选择需要进行训练的目标模型,获取所述目标模型的配置文件;a selection device, configured to select a target model to be trained from multiple models, and obtain a configuration file of the target model;
确定装置,用于基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号;determining means, configured to determine the target device involved in the target model based on the configuration file of the target model, and determine various sample signals associated with the target device;
获取装置,用于在所述对象设备正常运行时,对多种样本信号中的至 少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合;An acquisition device, configured to perform signal acquisition or signal simulation on at least two sample signals among various sample signals when the subject device is operating normally, so as to acquire a normal sample set including the at least two sample signals;
修改装置,用于根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合;A modifying device, configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set;
训练装置,用于基于正常样本集合、异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的目标模型。The training device is used to train the target model based on the normal sample set, the abnormal sample set and a preset training algorithm, so as to obtain the trained target model.
所述多种样本信号包括:振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度。The various sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
所述至少两种样本信号之中的至少一种样本信号是通过紧贴在设备外壳的传感器采集的振动/声发射信号。At least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing.
所述至少两种样本信号之中的至少一种样本信号是在设备外部采集的声音信号。At least one of the at least two sample signals is a sound signal collected outside the device.
根据本发明的还一个方面,提供一种基于样本信号的修改对目标模型进行测试的系统,所述系统包括:According to another aspect of the present invention, there is provided a system for testing a target model based on modification of a sample signal, the system comprising:
获得装置,用于确定需要进行测试的目标模型并获得目标模型的配置文件;Obtaining means for determining a target model to be tested and obtaining a configuration file of the target model;
确定装置,用于基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号;determining means, configured to determine the target device involved in the target model based on the configuration file of the target model, and determine various sample signals associated with the target device;
获取装置,用于在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合;An acquisition device, configured to perform signal acquisition or signal simulation on at least two sample signals among multiple sample signals when the subject device is operating normally, so as to acquire a normal sample set including the at least two sample signals;
修改装置,用于根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合;A modifying device, configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set;
测试装置,用于基于正常样本集合和异常样本集合对目标模型进行测试,从而基于测试结果确定目标模型的性能指标。The testing device is used for testing the target model based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test result.
根据本发明的还一个方面,提供一种基于信号修改的模型训练方法,首先生成大量正常样本和异常样本,然后再使用样本和设定算法训练一个模型,用于对对象设备的状态进行诊断、判别或识别。其中,According to another aspect of the present invention, a model training method based on signal modification is provided. Firstly, a large number of normal samples and abnormal samples are generated, and then a model is trained using the samples and a set algorithm for diagnosing the state of the target device, distinguish or recognize. in,
所述正常样本通过采集或者仿真对象设备正常运行情况下的两种以上信号生成。(样本信号的种类包括但不限于振动、声音、速度、位移、应 力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像、亮度,还可以是多种信号的组合)The normal samples are generated by collecting or simulating two or more signals under normal operation of the target device. (The types of sample signals include but are not limited to vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, brightness, and can also be a combination of various signals)
所述异常样本通过修改正常样本中的某种信号生成。The abnormal samples are generated by modifying certain signals in normal samples.
其中修改正常样本中的某种信号是按照幅值、幅值平方、能量值、能量值平方或者它们的比例修改某种信号。Wherein modifying a certain signal in the normal sample is to modify a certain signal according to the amplitude, the square of the amplitude, the energy value, the square of the energy value or their ratio.
其中,训练过程中还通过减小异常样本中信号修改的量,从而获得更高精度的模型。Among them, during the training process, the amount of signal modification in abnormal samples is also reduced to obtain a higher-precision model.
根据本发明的再一方面,提供一种基于信号修改的模型评价方法,所述模型用于对对象设备的状态进行诊断、判别或识别。其中:According to still another aspect of the present invention, a model evaluation method based on signal modification is provided, and the model is used for diagnosing, judging or identifying the state of the target device. in:
通过采集或者仿真对象设备正常运行情况下的两种以上信号生成正常样本。Generate normal samples by collecting or simulating two or more signals under normal operation of the target device.
通过修改正常样本中的某种信号生成异常样本。Anomalous samples are generated by modifying a certain signal in normal samples.
用所述正常样本、异常样本对所述模型进行测试,再根据测试结果评价模型的性能。The model is tested with the normal samples and abnormal samples, and then the performance of the model is evaluated according to the test results.
其中修改正常样本中的某种信号是按照幅值、幅值平方、能量值、能量值平方或者它们的比例修改信号。Wherein modifying a certain signal in the normal sample is modifying the signal according to the amplitude, the square of the amplitude, the energy value, the square of the energy value or their ratio.
其中,训练过程中还通过减小异常样本中信号修改的量,从而评价模型的精度。Among them, the accuracy of the model is evaluated by reducing the amount of signal modification in abnormal samples during the training process.
本发明的技术方案能有效地并且准确地获取异常样本或负样本,并且通过所获取的异常样本或负样本,以正常样本或正样本进行结合对模型进行训练或测试。通过本发明的技术方案的模型训练和测试技术,能够获得识别准确率更好的模型。本发明的方法或系统所获得的模型检测效果好,技术难度和成本都比较低,可以广泛应用与各种设备进行识别的方案中。The technical solution of the present invention can effectively and accurately obtain abnormal samples or negative samples, and combine the obtained abnormal samples or negative samples with normal samples or positive samples to train or test the model. Through the model training and testing technology of the technical solution of the present invention, a model with better recognition accuracy can be obtained. The model detection effect obtained by the method or system of the present invention is good, the technical difficulty and cost are relatively low, and it can be widely used in the scheme of identifying with various devices.
附图说明Description of drawings
通过参考下面的附图,可以更为完整地理解本发明的示例性实施方式:A more complete understanding of the exemplary embodiments of the present invention can be had by referring to the following drawings:
图1为根据本发明实施方式的基于样本信号的修改对目标模型进行训练的方法的流程图;1 is a flowchart of a method for training a target model based on modification of a sample signal according to an embodiment of the present invention;
图2为根据本发明实施方式的基于样本信号的修改对目标模型进行测 试的方法的流程图;Fig. 2 is the flow chart of the method for testing target model based on the modification of sample signal according to the embodiment of the present invention;
图3为根据本发明实施方式的基于样本信号的修改对目标模型进行训练的系统的结构示意图;3 is a schematic structural diagram of a system for training a target model based on modification of sample signals according to an embodiment of the present invention;
图4为根据本发明实施方式的基于样本信号的修改对目标模型进行测试的系统的结构示意图。Fig. 4 is a schematic structural diagram of a system for testing a target model based on modification of a sample signal according to an embodiment of the present invention.
具体实施方式detailed description
图1为根据本发明实施方式的基于样本信号的修改对目标模型进行训练的方法100的流程图。方法100从步骤101处开始。FIG. 1 is a flowchart of a method 100 for training a target model based on modification of sample signals according to an embodiment of the present invention. Method 100 starts at step 101 .
在步骤101,从多个模型中选择需要进行训练的目标模型,获取所述目标模型的配置文件。在工业生产或设备运行的实际场景中,各种类型和/或各种尺寸的设备被广泛应用于各个位置、生产环节、监控环节等。为此,如果需要确定任意一种设备的运行状态,或获取任意一种设备的参数等,需要获取每个不同类型的设备的模型或设备模型。通常,每个不同类型的设备的模型或设备模型可以用于确定设备的运行状态、获取设备的运行参数等。为此,在需要对特定设备的模型进行训练或测试时,需要从与多个不同设备各自相关联的模型或设备模型中选择需要进行训练的目标模型。In step 101, a target model to be trained is selected from multiple models, and a configuration file of the target model is obtained. In the actual scene of industrial production or equipment operation, various types and/or various sizes of equipment are widely used in various locations, production links, monitoring links, etc. For this reason, if it is necessary to determine the operating status of any type of equipment, or obtain parameters of any type of equipment, etc., it is necessary to obtain the model or equipment model of each different type of equipment. Generally, the model of each different type of equipment or the equipment model can be used to determine the operating state of the equipment, obtain the operating parameters of the equipment, and so on. For this reason, when it is necessary to train or test a model of a specific device, it is necessary to select a target model to be trained from models associated with multiple different devices or device models.
通常,每个模型或设备模型均具有配置文件,并且配置文件用于描述模型或设备模型的多种属性。多种属性例如是:输入参数、输出参数、模型类型、模型作用、模型准确度、设备类型、设备名称、设备标识符等。为此,目标模型具有多种属性,并且例如,通过目标模型的配置文件可以确定目标模型的设备类型、设备名称、设备标识符等。Typically, each model or device model has a configuration file, and the configuration file is used to describe various properties of the model or device model. The various attributes are, for example: input parameters, output parameters, model type, model effect, model accuracy, device type, device name, device identifier, and the like. To this end, the target model has various attributes, and for example, the device type, device name, device identifier, etc. of the target model can be determined via the configuration file of the target model.
在步骤102,基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号。如上所述,通过目标模型的配置文件可以确定目标模型的设备类型、设备名称、设备标识符等。并且进一步地,可以通过对目标模型的配置文件进行解析来确定目标模型所涉及的对象设备。对象设备可以是任意类型的设备。此外,目标模型的配置文件中还可以包括与对象设备相关联的多种样本信号的信息。可替换地,在确定了目标模型所涉及的对象设备之后,利用对象设备的设备标识符或设备名称可以在样本信号信息库中进行检索,以获取与对 象设备相关联的多种样本信号的信息。In step 102, an object device involved in the object model is determined based on the configuration file of the object model, and various sample signals associated with the object device are determined. As mentioned above, the device type, device name, device identifier, etc. of the target model can be determined through the configuration file of the target model. And further, the target device involved in the target model may be determined by parsing the configuration file of the target model. The target device may be any type of device. In addition, the configuration file of the target model may also include information of various sample signals associated with the target device. Alternatively, after the target device involved in the target model is determined, the device identifier or device name of the target device can be used to search in the sample signal information library to obtain information on various sample signals associated with the target device .
其中多种样本信号包括以下内容中的一种或多种:振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度。通常,可以使用振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的一种或多种样本信号来表征、训练、测试、描述对象设备。应当了解的是,本申请仅是以振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度为例进行描述,所属领域技术人员应当了解的是,本申请可以使用任何合理的样本信号。在实际场景中,可以使用各种类型的传感器来获取振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的任意一个。The multiple sample signals include one or more of the following: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness. In general, one or more sample signals of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness can be used to characterize, train, test, describe target device. It should be understood that this application is only described by taking vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness as examples, and those skilled in the art should understand Note that this application can use any reasonable sample signal. In practical scenarios, various types of sensors can be used to acquire any one of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, and brightness.
在步骤103,在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合。In step 103, when the target device is running normally, signal acquisition or signal simulation is performed on at least two sample signals among various sample signals, so as to obtain a normal sample set including the at least two sample signals.
正常样本集合是对象设备在正常运行时,利用传感器所采集的诸如振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的一种或多种的样本信号或数据所构成的样本信号。在本申请中,为了使经过训练或测试的目标模型的模型准确度更高,本申请对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合。The normal sample set is one of the data collected by sensors such as vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness when the target device is in normal operation. A sample signal composed of one or more sample signals or data. In the present application, in order to make the model accuracy of the trained or tested target model higher, the present application performs signal acquisition or signal simulation on at least two sample signals among various sample signals, so as to obtain the A collection of normal samples for a sample signal.
举例来说,至少两种样本信号为振动信号、声音信号和电压信号,正常样本集合中的包括以样本的采样时间顺序排列的多个样本,其中每个样本包括振动信号、声音信号和电压信号,并且每个样本具有采样时间。即,正常样本集合中的每个样本为具有采样时间的并且包括在所述采样时间处的每种样本信号的信号组或信号集。在对样本数据进行存储时,可以使正常样本集合中包括至少两个样本子集,每个样本子集为振动样本信号子集、声发射样本信号子集、声音样本信号子集或电场强度样本信号子集等。应当了解到是,信号子集的划分方式仅是为了数据存储或数据展示。实际上,每个样本包括至少两种样本信号中的每种样本信号。可替换地,正常样本集合中包括多个样本信号组,每个样本信号组包括单个振动样本信号、单 个声发射样本信号和单个声音样本信号,例如每个样本信号组为<振动样本信号、声发射样本信号、声音样本信号>。应当了解的是,每个样本信号组可以被认为是正常样本集合中的一个样本。For example, the at least two sample signals are vibration signal, sound signal and voltage signal, and the normal sample set includes a plurality of samples arranged in order of sample sampling time, wherein each sample includes vibration signal, sound signal and voltage signal , and each sample has a sampling time. That is, each sample in the set of normal samples is a signal group or signal set having a sample time and including each sample signal at that sample time. When storing the sample data, the normal sample set can include at least two sample subsets, and each sample subset is a vibration sample signal subset, an acoustic emission sample signal subset, a sound sample signal subset or an electric field strength sample signal subset, etc. It should be understood that the division of signal subsets is only for data storage or data display. In practice, each sample includes each of at least two sample signals. Alternatively, a plurality of sample signal groups are included in the normal sample set, and each sample signal group includes a single vibration sample signal, a single acoustic emission sample signal and a single sound sample signal, for example, each sample signal group is <vibration sample signal, acoustic sample signal Transmit sample signal, sound sample signal>. It should be appreciated that each sample signal group can be considered as a sample in the set of normal samples.
举例来说,至少两种样本信号之中的至少一种样本信号是通过紧贴在对象设备的设备外壳的传感器采集的振动/声发射信号。或者,至少两种样本信号之中的至少一种样本信号是在对象设备的设备外部采集的声音信号。在实际情况中,可以将传感器设置为紧贴在设备或对象设备的外壳处、将传感器设置在设备或对象设备的外部或将传感器设置在设备或对象的内部。For example, at least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor closely attached to a device housing of the target device. Alternatively, at least one sample signal among the at least two sample signals is a sound signal collected outside the device of the subject device. In an actual situation, the sensor may be placed close to the casing of the device or the target device, placed outside the device or the target device, or placed inside the device or the target device.
在步骤104,根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合。在实际情况中,运行状态稳定的设备在实际运行中出现故障的次数较少或故障比率较低,因此这种类型的设备的正常运行的样本信号/样本数据的数据量比较大,而异常运行或故障时的样本信号/样本数据的数据量较小。在这种情况下,通常难以获得足够的异常样本信号。为此,本申请根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改。In step 104, at least one sample signal in the normal sample set is modified according to a preset modification manner, so as to obtain an abnormal sample set corresponding to the normal sample set. In actual situations, equipment with a stable operating state has fewer failures or a lower failure rate in actual operation, so the sample signal/sample data volume of this type of equipment is relatively large for normal operation, while abnormal operation Or the data amount of the sample signal/sample data at the time of failure is small. In this case, it is often difficult to obtain enough abnormal sample signals. To this end, the present application modifies at least one sample signal in the normal sample set according to a preset modification manner.
其中预设的修改方式包括:为幅值、幅值平方、能量值或能量值平方,增加或减少相应的修改量,以使得增加或减少相应的修改量的幅值、幅值平方、能量值或能量值平方的所属取值或者取值区间发生变化。例如,为对象设备的正常样本集合中的幅值样本信号增加或减少相应的修改量k、为对象设备的正常样本集合中的幅值平方样本信号增加或减少相应的修改量b、为对象设备的正常样本集合中的能量值样本信号增加或减少相应的修改量c或为对象设备的正常样本集合中的能量值平方样本信号增加或减少相应的修改量d,从而使得对象设备的正常样本集合中的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号变为异常运行或故障运行时的样本信号。由此,根据对象设备的异常运行或故障运行时的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号构成与正常样本集合相对应的异常样本集合。The preset modification methods include: increasing or decreasing the corresponding modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding modification amount can be increased or decreased Or the value or value range of the square of the energy value changes. For example, increase or decrease the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device; increase or decrease the corresponding modifier b for the amplitude square sample signal in the normal sample set of the target device; Increase or decrease the corresponding modifier c for the energy value sample signal in the normal sample set of the target device or increase or decrease the corresponding modifier d for the energy value square sample signal in the normal sample set of the target device, so that the normal sample set of the target device The amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs. Thus, the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
其中预设的修改方式还包括:为幅值、幅值平方、能量值或能量值平方,升高或降低相应的比率,以使得升高或降低相应的比率的幅值、幅值 平方、能量值或能量值平方的所属取值或者取值区间发生变化。例如,为对象设备的正常样本集合中的幅值样本信号升高或降低相应的比率e、为对象设备的正常样本集合中的幅值平方样本信号升高或降低相应的比率f、为对象设备的正常样本集合中的能量值样本信号升高或降低相应的比率g或为对象设备的正常样本集合中的能量值平方样本信号升高或降低相应的比率h,从而使得对象设备的正常样本集合中的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号变为异常运行或故障运行时的样本信号。由此,根据对象设备的异常运行或故障运行时的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号构成与正常样本集合相对应的异常样本集合。The preset modification methods also include: increasing or decreasing the corresponding ratio for the amplitude, amplitude square, energy value or energy value square, so that the corresponding ratio of amplitude, amplitude square, energy The value or value interval of the value or the square of the energy value changes. For example, the amplitude sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio e, the amplitude square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate f, and the target device The energy value sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio g, or the energy value square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate h, so that the normal sample set of the target device The amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs. Thus, the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
此外,预设的修改方式还包括:为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量。如上所述,幅值、幅值平方、能量值或能量值平方可以具有各自的稳态修改量。In addition, the preset modification method also includes: increasing or decreasing a corresponding steady-state modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value. As mentioned above, magnitude, magnitude squared, energy value or energy value squared may have respective steady state modifiers.
其中为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量包括:统计正常样本集合中幅值、幅值平方、能量值或能量值平方的稳态修改量△Y对应参量的最大值Ymax和最小值Ymin;设定调整目标系数a,其中0<a<1;统计待修改的样本的稳态修改量△Y的对应参量的值Ysignal;Wherein is the amplitude, the square of the amplitude, the energy value or the square of the energy value, increasing or decreasing the corresponding steady-state modifier includes: the steady-state modifier of the amplitude, the square of the amplitude, the energy value or the square of the energy value in the statistical normal sample set △Y corresponds to the maximum value Ymax and minimum value Ymin of the parameter; set the adjustment target coefficient a, where 0<a<1; count the value Ysignal of the corresponding parameter of the steady-state modification amount △Y of the sample to be modified;
计算稳态修改量△Y=Ymin+a×(Ymax-Ymin)-Ysignal,Calculate the steady-state modifier △Y=Ymin+a×(Ymax-Ymin)-Ysignal,
为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量△Y。For amplitude, amplitude squared, energy value or energy value squared, increase or decrease the corresponding steady-state modifier ΔY.
其中调整目标系数a由一个固定值和一个由概率模型产生的随机值相加得到,并且满足0<a<1。例如,a=m1+m2,其中m1为固定值,并且m2为由概率模型产生的随机值。The adjustment target coefficient a is obtained by adding a fixed value and a random value generated by a probability model, and satisfies 0<a<1. For example, a=m1+m2, where m1 is a fixed value and m2 is a random value generated by a probability model.
在步骤105,基于正常样本集合、异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的目标模型。其中,预先设定的训练算法可以是人工智能领域、深度学习领域、机器学习算法领域中任意的合理的训练算法。在获得经过训练的目标模型之后,将对象设备在实际运行中所产生的实际信号输入经过训练的目标模型,从而利用经过训练的目标模型对所述对象设备的运行状态进行诊断、判别或识别,从而确 定所述对象设备处于正常状态、异常状态或其他任何状态。即,目标模型能够根据所采集的样本信号对对象设备的运行状态进行诊断、判别或识别,从而确定所述对象设备处于正常状态、异常状态或其他任何状态。In step 105, the target model is trained based on the normal sample set, the abnormal sample set and a preset training algorithm, so as to obtain a trained target model. Wherein, the preset training algorithm may be any reasonable training algorithm in the field of artificial intelligence, deep learning, and machine learning algorithm. After obtaining the trained target model, input the actual signal generated by the target device in actual operation into the trained target model, so as to use the trained target model to diagnose, judge or identify the operating state of the target device, Therefore, it is determined that the target device is in a normal state, an abnormal state or any other state. That is, the target model can diagnose, judge or identify the operating state of the target device according to the collected sample signal, so as to determine whether the target device is in a normal state, an abnormal state or any other state.
将预先存储的第一测试样本集合输入经过训练的目标模型,使得经过训练的目标模型诊断、判别或识别对象设备的结果状态,获取与预先存储的第一测试样本集合相对应的验证状态。其中验证状态可以分别对应于第一测试样本集合每个样本信号组或样本子集。Inputting the pre-stored first test sample set into the trained target model, so that the trained target model can diagnose, judge or identify the result state of the target device, and obtain a verification state corresponding to the pre-stored first test sample set. Wherein the verification state may correspond to each sample signal group or sample subset of the first test sample set respectively.
确定验证状态与结果状态的差异度,当差异度小于或等于预定阈值时,确定经过训练的目标模型符合要求。由于第一测试样本集合中每个样本信号组或样本子集所对应的对象设备的结果状态是已知的或预先确定的,为此可以将验证状态与结果状态的差异度作为确定目标模型准确度的基础。例如,当特定的一组测试样本信号输入到经过训练的目标模型后,得到的验证状态为对象设备的正常状态与异常状态的比率为95:5,而已知的或预先确定的结果状态中对象设备的正常状态与异常状态的比率为99:1。由此可知,差异度为4%=(99-95)/(99+1)。预定阈值是预先设置的差异度阈值,预定阈值或差异度阈值可以被认为是对目标模型的诊断、判别或识别的准确度的最低要求。例如,当预定阈值为5%时,差异度为4%,差异度小于预定阈值,则确定经过训练的目标模型符合要求。当预定阈值为2%时,差异度为4%,差异度大于预定阈值,确定经过训练的目标模型不符合要求。Determine the degree of difference between the verification state and the result state, and when the degree of difference is less than or equal to a predetermined threshold, determine that the trained target model meets the requirements. Since the result state of the object equipment corresponding to each sample signal group or sample subset in the first test sample set is known or predetermined, the difference between the verification state and the result state can be used as the accurate target model for determining basis of degree. For example, when a specific set of test sample signals is input to the trained target model, the obtained verification state is that the ratio of the normal state to the abnormal state of the object equipment is 95:5, while the known or predetermined result state of the object The ratio of normal state to abnormal state of equipment is 99:1. It can be seen that the degree of difference is 4%=(99-95)/(99+1). The predetermined threshold is a preset difference threshold, and the predetermined threshold or the difference threshold may be considered as the minimum requirement for the accuracy of diagnosis, discrimination or identification of the target model. For example, when the predetermined threshold is 5%, the degree of difference is 4%, and the degree of difference is less than the predetermined threshold, then it is determined that the trained target model meets the requirements. When the predetermined threshold is 2%, the degree of difference is 4%, and if the degree of difference is greater than the predetermined threshold, it is determined that the trained target model does not meet the requirements.
可替换地,在获取包括所述至少两种样本信号的正常样本集合,以及获取与正常样本集合相对应的异常样本集合之后,将正常样本集合分为第一正常样本子集合和第二正常样本子集合,将异常样本集合分为第一异常样本子集合和第二异常样本子集合。其中第一正常样本子集合和第二正常样本子集合中(正常样本的样本信号或正常样本信号)样本信号的第一数量比例为3:7,5:5,6:4等任意合理比例。其中第一异常样本子集合和第二异常样本子集合中(异常样本的样本信号或异常样本信号)样本信号的第二数量比例为3:7,5:5,6:4等任意合理比例。其中,第一数量比例与第二数量比例可以相等或不相等。Alternatively, after obtaining the normal sample set including the at least two sample signals, and obtaining the abnormal sample set corresponding to the normal sample set, the normal sample set is divided into a first normal sample subset and a second normal sample set Subsets, dividing the set of abnormal samples into a first subset of abnormal samples and a second subset of abnormal samples. The first quantity ratio of the sample signals (sample signals of normal samples or normal sample signals) in the first normal sample subset and the second normal sample subset is any reasonable ratio such as 3:7, 5:5, 6:4, etc. Wherein the second quantity ratio of the sample signals (sample signals of abnormal samples or abnormal sample signals) in the first abnormal sample subset and the second abnormal sample subset is any reasonable ratio such as 3:7, 5:5, 6:4, etc. Wherein, the first quantity ratio and the second quantity ratio may be equal or unequal.
基于第一正常样本集合、第一异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的目标模型。其中,预先设定的 训练算法可以是人工智能领域、深度学习领域、机器学习算法领域中任意的合理的训练算法。The target model is trained based on the first normal sample set, the first abnormal sample set and a preset training algorithm, so as to obtain a trained target model. Among them, the preset training algorithm can be any reasonable training algorithm in the field of artificial intelligence, deep learning, and machine learning algorithm.
优选地,利用第二正常样子集合和第二异常样本子集合构成第二测试样本集合,将第二测试样本集合输入经过训练的目标模型,使得经过训练的目标模型诊断、判别或识别对象设备的结果状态,获取与预先存储的第二测试样本集合相对应的验证状态;确定验证状态与结果状态的差异度。当差异度小于或等于预定阈值时,确定经过训练的目标模型符合要求;当差异度大于预定阈值时,确定经过训练的目标模型不符合要求。Preferably, the second set of normal samples and the second sub-set of abnormal samples are used to form a second test sample set, and the second test sample set is input into the trained target model, so that the trained target model can diagnose, distinguish or identify the target device The result state is to obtain the verification state corresponding to the pre-stored second test sample set; and determine the degree of difference between the verification state and the result state. When the degree of difference is less than or equal to a predetermined threshold, it is determined that the trained target model meets the requirements; when the degree of difference is greater than the predetermined threshold, it is determined that the trained target model does not meet the requirements.
优选地,还包括,通过减小所述修改量,获得经过调整的异常样本集合,基于正常样本集合、经过调整的异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的高精度目标模型。例如,在为幅值、幅值平方、能量值或能量值平方,增加或减少相应的修改量,以使得增加或减少相应的修改量的幅值之后,通过减小所述修改量,获得经过调整的异常样本集合。Preferably, it also includes, by reducing the modification amount, obtaining an adjusted abnormal sample set, and training the target model based on the normal sample set, the adjusted abnormal sample set and a preset training algorithm, so as to obtain the trained high-precision target model. For example, after increasing or decreasing the corresponding modification amount for the amplitude, amplitude square, energy value or energy value square, so that after increasing or decreasing the magnitude of the corresponding modification amount, by reducing the modification amount, the obtained Adjusted set of outlier samples.
还包括,通过减小所述比率,获得经过调整的异常样本集合,基于正常样本集合、经过调整的异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的高精度目标模型。例如,在为幅值、幅值平方、能量值或能量值平方,升高或降低相应的比率之后还包括,减小所述比率,获得经过调整的异常样本集合。It also includes obtaining an adjusted abnormal sample set by reducing the ratio, and training the target model based on the normal sample set, the adjusted abnormal sample set and a preset training algorithm, thereby obtaining a trained high-precision target Model. For example, after increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, it further includes: reducing the ratio to obtain an adjusted abnormal sample set.
图2为根据本发明实施方式的基于样本信号的修改对目标模型进行测试的方法200的流程图。方法200从步骤201处开始。FIG. 2 is a flowchart of a method 200 for testing a target model based on modification of sample signals according to an embodiment of the present invention. Method 200 starts at step 201 .
在步骤201,确定需要进行测试的目标模型并获得目标模型的配置文件。在工业生产或设备运行的实际场景中,各种类型和/或各种尺寸的设备被广泛应用于各个位置、生产环节、监控环节等。为此,如果需要确定任意一种设备的运行状态,或获取任意一种设备的参数等,需要获取每个不同类型的设备的模型或设备模型。通常,每个不同类型的设备的模型或设备模型可以用于确定设备的运行状态、获取设备的运行参数等。为此,在进行测试前,确定需要进行测试的目标模型。In step 201, a target model to be tested is determined and a configuration file of the target model is obtained. In the actual scene of industrial production or equipment operation, various types and/or various sizes of equipment are widely used in various locations, production links, monitoring links, etc. For this reason, if it is necessary to determine the operating status of any type of equipment, or obtain parameters of any type of equipment, etc., it is necessary to obtain the model or equipment model of each different type of equipment. Generally, the model of each different type of equipment or the equipment model can be used to determine the operating state of the equipment, obtain the operating parameters of the equipment, and so on. To this end, before testing, determine the target model that needs to be tested.
通常,每个模型或设备模型均具有配置文件,并且配置文件用于描述模型或设备模型的多种属性。多种属性例如是:输入参数、输出参数、模 型类型、模型作用、模型准确度、设备类型、设备名称、设备标识符等。为此,目标模型具有多种属性,并且例如,通过目标模型的配置文件可以确定目标模型的设备类型、设备名称、设备标识符等。Typically, each model or device model has a configuration file, and the configuration file is used to describe various properties of the model or device model. Various attributes are, for example: input parameters, output parameters, model type, model action, model accuracy, device type, device name, device identifier, etc. To this end, the target model has various attributes, and for example, the device type, device name, device identifier, etc. of the target model can be determined via the configuration file of the target model.
在步骤202,基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号。如上所述,通过目标模型的配置文件可以确定目标模型的设备类型、设备名称、设备标识符等。并且进一步地,可以通过对目标模型的配置文件进行解析来确定目标模型所涉及的对象设备。对象设备可以是任意类型的设备。此外,目标模型的配置文件中还可以包括与对象设备相关联的多种样本信号的信息。可替换地,在确定了目标模型所涉及的对象设备之后,利用对象设备的设备标识符或设备名称可以在样本信号信息库中进行检索,以获取与对象设备相关联的多种样本信号的信息。In step 202, an object device involved in the object model is determined based on the configuration file of the object model, and various sample signals associated with the object device are determined. As mentioned above, the device type, device name, device identifier, etc. of the target model can be determined through the configuration file of the target model. And further, the target device involved in the target model may be determined by parsing the configuration file of the target model. The target device may be any type of device. In addition, the configuration file of the target model may also include information of various sample signals associated with the target device. Alternatively, after the target device involved in the target model is determined, the device identifier or device name of the target device can be used to search in the sample signal information library to obtain information on various sample signals associated with the target device .
其中多种样本信号包括:振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度。通常,可以使用振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的一种或多种样本信号来表征、训练、测试、描述对象设备。应当了解的是,本申请仅是以振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度为例进行描述,所属领域技术人员应当了解的是,本申请可以使用任何合理的样本信号。在实际场景中,可以使用各种类型的传感器来获取振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的任意一个。The various sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness. In general, one or more sample signals of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness can be used to characterize, train, test, describe target device. It should be understood that this application is only described by taking vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness as examples, and those skilled in the art should understand Note that this application can use any reasonable sample signal. In practical scenarios, various types of sensors can be used to acquire any one of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, and brightness.
在步骤203,在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合。In step 203, when the target device is running normally, signal acquisition or signal simulation is performed on at least two sample signals among the various sample signals, so as to obtain a normal sample set including the at least two sample signals.
正常样本集合是对象设备在正常运行时,利用传感器所采集的诸如振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的一种或多种的样本信号或数据所构成的样本信号。在本申请中,为了使经过训练或测试的目标模型的模型准确度更高,本申请对多种样本信号中的至少两种样本信号进行信号采集或信号仿 真,从而获取包括所述至少两种样本信号的正常样本集合。The normal sample set is one of the data collected by sensors such as vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness when the target device is in normal operation. A sample signal composed of one or more sample signals or data. In the present application, in order to make the model accuracy of the trained or tested target model higher, the present application performs signal acquisition or signal simulation on at least two sample signals among various sample signals, so as to obtain the A collection of normal samples for a sample signal.
举例来说,至少两种样本信号为振动信号、声音信号和电压信号,正常样本集合中的包括以样本的采样时间顺序排列的多个样本,其中每个样本包括振动信号、声音信号和电压信号,并且每个样本具有采样时间。即,正常样本集合中的每个样本为具有采样时间的并且包括在所述采样时间处的每种样本信号的信号组或信号集。在对样本数据进行存储时,可以使正常样本集合中包括至少两个样本子集,每个样本子集为振动样本信号子集、声发射样本信号子集、声音样本信号子集或电场强度样本信号子集等。应当了解到是,信号子集的划分方式仅是为了数据存储或数据展示。实际上,每个样本包括至少两种样本信号中的每种样本信号。可替换地,正常样本集合中包括多个样本信号组,每个样本信号组包括单个振动样本信号、单个声发射样本信号和单个声音样本信号,例如每个样本信号组为<振动样本信号、声发射样本信号、声音样本信号>。应当了解的是,每个样本信号组可以被认为是正常样本集合中的一个样本。For example, the at least two sample signals are vibration signal, sound signal and voltage signal, and the normal sample set includes a plurality of samples arranged in order of sample sampling time, wherein each sample includes vibration signal, sound signal and voltage signal , and each sample has a sampling time. That is, each sample in the set of normal samples is a signal group or signal set having a sample time and including each sample signal at that sample time. When storing the sample data, the normal sample set can include at least two sample subsets, and each sample subset is a vibration sample signal subset, an acoustic emission sample signal subset, a sound sample signal subset or an electric field strength sample signal subset, etc. It should be understood that the division of signal subsets is only for data storage or data display. In practice, each sample includes each of at least two sample signals. Alternatively, a plurality of sample signal groups are included in the normal sample set, and each sample signal group includes a single vibration sample signal, a single acoustic emission sample signal and a single sound sample signal, for example, each sample signal group is <vibration sample signal, acoustic sample signal Transmit sample signal, sound sample signal>. It should be appreciated that each sample signal group can be considered as a sample in the set of normal samples.
举例来说,至少两种样本信号之中的至少一种样本信号是通过紧贴在设备外壳的传感器采集的振动/声发射信号。或者,至少两种样本信号之中的至少一种样本信号是在设备外部采集的声音信号。在实际情况中,可以将传感器设置为紧贴在设备或对象设备的外壳处、将传感器设置在设备或对象设备的外部或将传感器设置在设备或对象的内部。For example, at least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing. Alternatively, at least one of the at least two sample signals is a sound signal collected outside the device. In an actual situation, the sensor may be placed close to the casing of the device or the target device, placed outside the device or the target device, or placed inside the device or the target device.
在步骤204,根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合。在实际情况中,运行状态稳定的设备在实际运行中出现故障的次数较少或故障比率较低,因此这种类型的设备的正常运行的样本信号/样本数据的数据量比较大,而异常运行或故障时的样本信号/样本数据的数据量较小。在这种情况下,通常难以获得足够的异常样本信号。为此,本申请根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改。In step 204, at least one sample signal in the normal sample set is modified according to a preset modification manner, so as to obtain an abnormal sample set corresponding to the normal sample set. In actual situations, equipment with a stable operating state has fewer failures or a lower failure rate in actual operation, so the sample signal/sample data volume of this type of equipment is relatively large for normal operation, while abnormal operation Or the data amount of the sample signal/sample data at the time of failure is small. In this case, it is often difficult to obtain enough abnormal sample signals. To this end, the present application modifies at least one sample signal in the normal sample set according to a preset modification manner.
其中预设的修改方式包括:为幅值、幅值平方、能量值或能量值平方,增加或减少相应的修改量,以使得增加或减少相应的修改量的幅值、幅值平方、能量值或能量值平方的所属取值或者取值区间发生变化。例如,为对象设备的正常样本集合中的幅值样本信号增加或减少相应的修改量k、 为对象设备的正常样本集合中的幅值平方样本信号增加或减少相应的修改量b、为对象设备的正常样本集合中的能量值样本信号增加或减少相应的修改量c或为对象设备的正常样本集合中的能量值平方样本信号增加或减少相应的修改量d,从而使得对象设备的正常样本集合中的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号变为异常运行或故障运行时的样本信号。由此,根据对象设备的异常运行或故障运行时的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号构成与正常样本集合相对应的异常样本集合。The preset modification methods include: increasing or decreasing the corresponding modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding modification amount can be increased or decreased Or the value or value range of the square of the energy value changes. For example, increase or decrease the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device; increase or decrease the corresponding modifier b for the amplitude square sample signal in the normal sample set of the target device; Increase or decrease the corresponding modifier c for the energy value sample signal in the normal sample set of the target device or increase or decrease the corresponding modifier d for the energy value square sample signal in the normal sample set of the target device, so that the normal sample set of the target device The amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs. Thus, the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
其中预设的修改方式包括:为幅值、幅值平方、能量值或能量值平方,升高或降低相应的比率,以使得升高或降低相应的比率的幅值、幅值平方、能量值或能量值平方的所属取值或者取值区间发生变化。例如,为对象设备的正常样本集合中的幅值样本信号升高或降低相应的比率e、为对象设备的正常样本集合中的幅值平方样本信号升高或降低相应的比率f、为对象设备的正常样本集合中的能量值样本信号升高或降低相应的比率g或为对象设备的正常样本集合中的能量值平方样本信号升高或降低相应的比率h,从而使得对象设备的正常样本集合中的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号变为异常运行或故障运行时的样本信号。由此,根据对象设备的异常运行或故障运行时的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号构成与正常样本集合相对应的异常样本集合。The preset modification methods include: increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding ratio can be increased or decreased Or the value or value range of the square of the energy value changes. For example, the amplitude sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio e, the amplitude square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate f, and the target device The energy value sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio g, or the energy value square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate h, so that the normal sample set of the target device The amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs. Thus, the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
此外,预设的修改方式还包括:为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量。如上所述,幅值、幅值平方、能量值或能量值平方可以具有各自的稳态修改量。In addition, the preset modification method also includes: increasing or decreasing a corresponding steady-state modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value. As mentioned above, magnitude, magnitude squared, energy value or energy value squared may have respective steady state modifiers.
其中为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量包括:Wherein is the amplitude, the square of the amplitude, the energy value or the square of the energy value, increasing or decreasing the corresponding steady-state modifier includes:
统计正常样本集中幅值、幅值平方、能量值或能量值平方的稳态修改量△Y对应参量的最大值Ymax和最小值Ymin;Statistically calculate the maximum value Ymax and minimum value Ymin of the corresponding parameters of the amplitude, amplitude square, energy value, or steady-state modifier △Y of the energy value square in the normal sample set;
设定调整目标系数a,其中0<a<1;Set the adjustment target coefficient a, where 0<a<1;
统计待修改的样本的稳态修改量△Y的对应参量的值Ysignal;Count the value Ysignal of the corresponding parameter of the steady-state modifier △Y of the sample to be modified;
计算稳态修改量△Y=Ymin+a×(Ymax-Ymin)-Ysignal,Calculate the steady-state modifier △Y=Ymin+a×(Ymax-Ymin)-Ysignal,
为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量△Y。For amplitude, amplitude squared, energy value or energy value squared, increase or decrease the corresponding steady-state modifier ΔY.
调整目标系数a由一个固定值和一个由概率模型产生的随机值相加得到,并且满足0<a<1。例如,a=m1+m2,其中m1为固定值,并且m2为由概率模型产生的随机值。The adjustment target coefficient a is obtained by adding a fixed value and a random value generated by a probability model, and satisfies 0<a<1. For example, a=m1+m2, where m1 is a fixed value and m2 is a random value generated by a probability model.
在步骤205,基于正常样本集合和异常样本集合对目标模型进行测试,从而基于测试结果确定目标模型的性能指标。目标模型能够根据所采集的样本信号对对象设备的运行状态进行诊断、判别或识别,从而确定所述对象设备处于正常状态、异常状态或其他任何状态。其中目标模型的性能指标可以包括目标模型的诊断精度、判别精度或识别精度。In step 205, the target model is tested based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results. The target model can diagnose, judge or identify the operating state of the target device according to the collected sample signals, so as to determine whether the target device is in a normal state, an abnormal state or any other state. The performance index of the target model may include the diagnostic accuracy, discrimination accuracy or recognition accuracy of the target model.
基于正常样本集合和异常样本集合对目标模型进行测试,从而基于测试结果确定目标模型的性能指标包括:将正常样本集合和异常样本集合分别或依次输入经过训练的目标模型,使得经过训练的目标模型诊断、判别或识别对象设备的结果状态,获取与正常样本集合和/或异常样本集相对应的验证状态。确定基于验证状态确定结果状态的正确比率,基于正确比率确定测试结果并基于测试结果确定目标模型的性能指标。例如,在将正常样本集合和异常样本集合分别或依次输入经过训练的目标模型后,经过训练的目标模型诊断、判别或识别对象设备的结果状态100次,基于验证状态确定100次结果状态中诊断、判别或识别正确的次数为99次,那么基于验证状态确定结果状态的正确比率为99/100=99%,那么测试结果为99%。The target model is tested based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results. Diagnose, judge or identify the result status of the target device, and obtain the verification status corresponding to the normal sample set and/or the abnormal sample set. Determining the correct ratio of the result status based on the verification status, determining the test result based on the correct ratio and determining the performance index of the target model based on the test result. For example, after the normal sample set and the abnormal sample set are respectively or sequentially input into the trained target model, the trained target model diagnoses, discriminates or identifies the result status of the target device 100 times, and determines the 100 result status diagnosis based on the verification status , the number of correct discrimination or recognition is 99 times, then the correct ratio of determining the result state based on the verification state is 99/100=99%, then the test result is 99%.
根据一个实施方式,当测试结果大于或等于97%时,确定目标模型的性能指标为高精度,当测试结果小于97%并且大于或等于90%时,确定目标模型的性能指标为中精度,以及当测试结果小于90%时,确定目标模型的性能指标为低精度。According to one embodiment, when the test result is greater than or equal to 97%, it is determined that the performance index of the target model is high precision, and when the test result is less than 97% and greater than or equal to 90%, it is determined that the performance index of the target model is medium precision, and When the test result is less than 90%, it is determined that the performance index of the target model is low precision.
优选地,还包括,通过减小所述比率,获得经过调整的异常样本集合,基于正常样本集合和经过调整的异常样本集合对目标模型进行测试,从而确定目标模型的诊断精度、判别精度或识别精度。例如,在为幅值、幅值平方、能量值或能量值平方,升高或降低相应的比率之后还包括,减小所述比率,获得经过调整的异常样本集合。Preferably, it also includes obtaining an adjusted abnormal sample set by reducing the ratio, and testing the target model based on the normal sample set and the adjusted abnormal sample set, so as to determine the diagnostic accuracy, discrimination accuracy or recognition accuracy of the target model precision. For example, after increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, it further includes: reducing the ratio to obtain an adjusted abnormal sample set.
优选地,还包括,通过减小所述修改量,获得经过调整的异常样本集 合,基于正常样本集合和经过调整的异常样本集合对目标模型进行测试,从而确定目标模型的诊断精度、判别精度或识别精度。例如,在为幅值、幅值平方、能量值或能量值平方,增加或减少相应的修改量,以使得增加或减少相应的修改量的幅值之后,通过减小所述修改量,获得经过调整的异常样本集合。Preferably, it also includes, by reducing the modification amount, obtaining an adjusted abnormal sample set, and testing the target model based on the normal sample set and the adjusted abnormal sample set, so as to determine the diagnostic accuracy, discrimination accuracy or recognition accuracy. For example, after increasing or decreasing the corresponding modification amount for the amplitude, amplitude square, energy value or energy value square, so that after increasing or decreasing the magnitude of the corresponding modification amount, by reducing the modification amount, the obtained Adjusted set of outlier samples.
图3为根据本发明实施方式的基于样本信号的修改对目标模型进行训练的系统300的结构示意图。系统300包括:选择装置301、确定装置302、获取装置303、修改装置304、训练装置305以及识别装置306。FIG. 3 is a schematic structural diagram of a system 300 for training a target model based on modification of sample signals according to an embodiment of the present invention. The system 300 includes: selection means 301 , determination means 302 , acquisition means 303 , modification means 304 , training means 305 and recognition means 306 .
选择装置301,用于从多个模型中选择需要进行训练的目标模型,获取所述目标模型的配置文件。在工业生产或设备运行的实际场景中,各种类型和/或各种尺寸的设备被广泛应用于各个位置、生产环节、监控环节等。为此,如果需要确定任意一种设备的运行状态,或获取任意一种设备的参数等,需要获取每个不同类型的设备的模型或设备模型。通常,每个不同类型的设备的模型或设备模型可以用于确定设备的运行状态、获取设备的运行参数等。为此,在需要对特定设备的模型进行训练或测试时,需要从与多个不同设备各自相关联的模型或设备模型中选择需要进行训练的目标模型。The selecting means 301 is configured to select a target model to be trained from multiple models, and obtain a configuration file of the target model. In the actual scene of industrial production or equipment operation, various types and/or various sizes of equipment are widely used in various locations, production links, monitoring links, etc. For this reason, if it is necessary to determine the operating status of any type of equipment, or obtain parameters of any type of equipment, etc., it is necessary to obtain the model or equipment model of each different type of equipment. Generally, the model of each different type of equipment or the equipment model can be used to determine the operating state of the equipment, obtain the operating parameters of the equipment, and so on. For this reason, when it is necessary to train or test a model of a specific device, it is necessary to select a target model to be trained from models associated with multiple different devices or device models.
通常,每个模型或设备模型均具有配置文件,并且配置文件用于描述模型或设备模型的多种属性。多种属性例如是:输入参数、输出参数、模型类型、模型作用、模型准确度、设备类型、设备名称、设备标识符等。为此,目标模型具有多种属性,并且例如,通过目标模型的配置文件可以确定目标模型的设备类型、设备名称、设备标识符等。Typically, each model or device model has a configuration file, and the configuration file is used to describe various properties of the model or device model. The various attributes are, for example: input parameters, output parameters, model type, model effect, model accuracy, device type, device name, device identifier, and the like. To this end, the target model has various attributes, and for example, the device type, device name, device identifier, etc. of the target model can be determined via the configuration file of the target model.
确定装置302,用于基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号。如上所述,通过目标模型的配置文件可以确定目标模型的设备类型、设备名称、设备标识符等。并且进一步地,可以通过对目标模型的配置文件进行解析来确定目标模型所涉及的对象设备。对象设备可以是任意类型的设备。此外,目标模型的配置文件中还可以包括与对象设备相关联的多种样本信号的信息。可替换地,在确定了目标模型所涉及的对象设备之后,利用对象设备的设备标识符或设备名称可以在样本信号信息库中进行检索,以获 取与对象设备相关联的多种样本信号的信息。The determining unit 302 is configured to determine an object device involved in the object model based on the configuration file of the object model, and determine various sample signals associated with the object device. As mentioned above, the device type, device name, device identifier, etc. of the target model can be determined through the configuration file of the target model. And further, the target device involved in the target model may be determined by parsing the configuration file of the target model. The target device may be any type of device. In addition, the configuration file of the target model may also include information of various sample signals associated with the target device. Alternatively, after the target device involved in the target model is determined, the device identifier or device name of the target device can be used to search in the sample signal information library to obtain information on various sample signals associated with the target device .
其中多种样本信号包括以下内容中的一种或多种:振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度。通常,可以使用振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的一种或多种样本信号来表征、训练、测试、描述对象设备。应当了解的是,本申请仅是以振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度为例进行描述,所属领域技术人员应当了解的是,本申请可以使用任何合理的样本信号。在实际场景中,可以使用各种类型的传感器来获取振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的任意一个。The multiple sample signals include one or more of the following: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness. In general, one or more sample signals of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness can be used to characterize, train, test, describe target device. It should be understood that this application is only described by taking vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness as examples, and those skilled in the art should understand Note that this application can use any reasonable sample signal. In practical scenarios, various types of sensors can be used to acquire any one of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, and brightness.
获取装置303,用于在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合。The obtaining means 303 is configured to perform signal collection or signal simulation on at least two sample signals among the various sample signals when the target device is running normally, so as to obtain a normal sample set including the at least two sample signals.
正常样本集合是对象设备在正常运行时,利用传感器所采集的诸如振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的一种或多种的样本信号或数据所构成的样本信号。在本申请中,为了使经过训练或测试的目标模型的模型准确度更高,本申请对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合。The normal sample set is one of the data collected by sensors such as vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness when the target device is in normal operation. A sample signal composed of one or more sample signals or data. In the present application, in order to make the model accuracy of the trained or tested target model higher, the present application performs signal acquisition or signal simulation on at least two sample signals among various sample signals, so as to obtain the A collection of normal samples for a sample signal.
举例来说,至少两种样本信号为振动信号、声音信号和电压信号,正常样本集合中的包括以样本的采样时间顺序排列的多个样本,其中每个样本包括振动信号、声音信号和电压信号,并且每个样本具有采样时间。即,正常样本集合中的每个样本为具有采样时间的并且包括在所述采样时间处的每种样本信号的信号组或信号集。在对样本数据进行存储时,可以使正常样本集合中包括至少两个样本子集,每个样本子集为振动样本信号子集、声发射样本信号子集、声音样本信号子集或电场强度样本信号子集等。应当了解到是,信号子集的划分方式仅是为了数据存储或数据展示。实际上,每个样本包括至少两种样本信号中的每种样本信号。可替换地,正常样本集合中包括多个样本信号组,每个样本信号组包括单个振动样本信号、单 个声发射样本信号和单个声音样本信号,例如每个样本信号组为<振动样本信号、声发射样本信号、声音样本信号>。应当了解的是,每个样本信号组可以被认为是正常样本集合中的一个样本。For example, the at least two sample signals are vibration signal, sound signal and voltage signal, and the normal sample set includes a plurality of samples arranged in order of sample sampling time, wherein each sample includes vibration signal, sound signal and voltage signal , and each sample has a sampling time. That is, each sample in the set of normal samples is a signal group or signal set having a sample time and including each sample signal at that sample time. When storing the sample data, the normal sample set can include at least two sample subsets, and each sample subset is a vibration sample signal subset, an acoustic emission sample signal subset, a sound sample signal subset or an electric field strength sample signal subset, etc. It should be understood that the division of signal subsets is only for data storage or data display. In practice, each sample includes each of at least two sample signals. Alternatively, a plurality of sample signal groups are included in the normal sample set, and each sample signal group includes a single vibration sample signal, a single acoustic emission sample signal and a single sound sample signal, for example, each sample signal group is <vibration sample signal, acoustic sample signal Transmit sample signal, sound sample signal>. It should be appreciated that each sample signal group can be considered as a sample in the set of normal samples.
举例来说,至少两种样本信号之中的至少一种样本信号是通过紧贴在设备外壳的传感器采集的振动/声发射信号。或者,至少两种样本信号之中的至少一种样本信号是在设备外部采集的声音信号。在实际情况中,可以将传感器设置为紧贴在设备或对象设备的外壳处、将传感器设置在设备或对象设备的外部或将传感器设置在设备或对象的内部。For example, at least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing. Alternatively, at least one of the at least two sample signals is a sound signal collected outside the device. In an actual situation, the sensor may be placed close to the casing of the device or the target device, placed outside the device or the target device, or placed inside the device or the target device.
修改装置304,用于根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合。在实际情况中,运行状态稳定的设备在实际运行中出现故障的次数较少或故障比率较低,因此这种类型的设备的正常运行的样本信号/样本数据的数据量比较大,而异常运行或故障时的样本信号/样本数据的数据量较小。在这种情况下,通常难以获得足够的异常样本信号。为此,本申请根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改。The modifying means 304 is configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set. In actual situations, equipment with a stable operating state has fewer failures or a lower failure rate in actual operation, so the sample signal/sample data volume of this type of equipment is relatively large for normal operation, while abnormal operation Or the data amount of the sample signal/sample data at the time of failure is small. In this case, it is often difficult to obtain enough abnormal sample signals. To this end, the present application modifies at least one sample signal in the normal sample set according to a preset modification manner.
其中预设的修改方式包括:为幅值、幅值平方、能量值或能量值平方,增加或减少相应的修改量,以使得增加或减少相应的修改量的幅值、幅值平方、能量值或能量值平方的所属取值或者取值区间发生变化。例如,为对象设备的正常样本集合中的幅值样本信号增加或减少相应的修改量k、为对象设备的正常样本集合中的幅值平方样本信号增加或减少相应的修改量b、为对象设备的正常样本集合中的能量值样本信号增加或减少相应的修改量c或为对象设备的正常样本集合中的能量值平方样本信号增加或减少相应的修改量d,从而使得对象设备的正常样本集合中的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号变为异常运行或故障运行时的样本信号。由此,根据对象设备的异常运行或故障运行时的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号构成与正常样本集合相对应的异常样本集合。The preset modification methods include: increasing or decreasing the corresponding modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding modification amount can be increased or decreased Or the value or value range of the square of the energy value changes. For example, increase or decrease the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device; increase or decrease the corresponding modifier b for the amplitude square sample signal in the normal sample set of the target device; Increase or decrease the corresponding modifier c for the energy value sample signal in the normal sample set of the target device or increase or decrease the corresponding modifier d for the energy value square sample signal in the normal sample set of the target device, so that the normal sample set of the target device The amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs. Thus, the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
其中预设的修改方式还包括:为幅值、幅值平方、能量值或能量值平方,升高或降低相应的比率,以使得升高或降低相应的比率的幅值、幅值平方、能量值或能量值平方的所属取值或者取值区间发生变化。例如,为 对象设备的正常样本集合中的幅值样本信号升高或降低相应的比率e、为对象设备的正常样本集合中的幅值平方样本信号升高或降低相应的比率f、为对象设备的正常样本集合中的能量值样本信号升高或降低相应的比率g或为对象设备的正常样本集合中的能量值平方样本信号升高或降低相应的比率h,从而使得对象设备的正常样本集合中的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号变为异常运行或故障运行时的样本信号。由此,根据对象设备的异常运行或故障运行时的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号构成与正常样本集合相对应的异常样本集合。The preset modification methods also include: increasing or decreasing the corresponding ratio for the amplitude, amplitude square, energy value or energy value square, so that the corresponding ratio of amplitude, amplitude square, energy The value or value interval of the value or the square of the energy value changes. For example, the amplitude sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio e, the amplitude square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate f, and the target device The energy value sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio g, or the energy value square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate h, so that the normal sample set of the target device The amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs. Thus, the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
此外,预设的修改方式还包括:为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量。如上所述,幅值、幅值平方、能量值或能量值平方可以具有各自的稳态修改量。In addition, the preset modification method also includes: increasing or decreasing a corresponding steady-state modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value. As mentioned above, magnitude, magnitude squared, energy value or energy value squared may have respective steady state modifiers.
其中为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量包括:统计正常样本集合中幅值、幅值平方、能量值或能量值平方的稳态修改量△Y对应参量的最大值Ymax和最小值Ymin;设定调整目标系数a,其中0<a<1;统计待修改的样本的稳态修改量△Y的对应参量的值Ysignal;Wherein is the amplitude, the square of the amplitude, the energy value or the square of the energy value, increasing or decreasing the corresponding steady-state modifier includes: the steady-state modifier of the amplitude, the square of the amplitude, the energy value or the square of the energy value in the statistical normal sample set △Y corresponds to the maximum value Ymax and minimum value Ymin of the parameter; set the adjustment target coefficient a, where 0<a<1; count the value Ysignal of the corresponding parameter of the steady-state modification amount △Y of the sample to be modified;
计算稳态修改量△Y=Ymin+a×(Ymax-Ymin)-Ysignal,Calculate the steady-state modifier △Y=Ymin+a×(Ymax-Ymin)-Ysignal,
为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量△Y。For amplitude, amplitude squared, energy value or energy value squared, increase or decrease the corresponding steady-state modifier ΔY.
其中调整目标系数a由一个固定值和一个由概率模型产生的随机值相加得到,并且满足0<a<1。例如,a=m1+m2,其中m1为固定值,并且m2为由概率模型产生的随机值。The adjustment target coefficient a is obtained by adding a fixed value and a random value generated by a probability model, and satisfies 0<a<1. For example, a=m1+m2, where m1 is a fixed value and m2 is a random value generated by a probability model.
训练装置305,用于基于正常样本集合、异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的目标模型。其中,预先设定的训练算法可以是人工智能领域、深度学习领域、机器学习算法领域中任意的合理的训练算法。在获得经过训练的目标模型之后,将对象设备在实际运行中所产生的实际信号输入经过训练的目标模型,从而利用经过训练的目标模型对所述对象设备的运行状态进行诊断、判别或识别,从而确定所述对象设备处于正常状态、异常状态或其他任何状态。即,目 标模型能够根据所采集的样本信号对对象设备的运行状态进行诊断、判别或识别,从而确定所述对象设备处于正常状态、异常状态或其他任何状态。The training device 305 is configured to train the target model based on the normal sample set, the abnormal sample set and a preset training algorithm, so as to obtain a trained target model. Wherein, the preset training algorithm may be any reasonable training algorithm in the field of artificial intelligence, deep learning, and machine learning algorithm. After obtaining the trained target model, input the actual signal generated by the target device in actual operation into the trained target model, so as to use the trained target model to diagnose, judge or identify the operating state of the target device, Therefore, it is determined that the target device is in a normal state, an abnormal state or any other state. That is, the target model can diagnose, judge or identify the operating state of the target device according to the collected sample signals, so as to determine whether the target device is in a normal state, an abnormal state or any other state.
将预先存储的第一测试样本集合输入经过训练的目标模型,使得经过训练的目标模型诊断、判别或识别对象设备的结果状态,获取与预先存储的第一测试样本集合相对应的验证状态。其中验证状态可以分别对应于第一测试样本集合每个样本信号组或样本子集。Inputting the pre-stored first test sample set into the trained target model, so that the trained target model can diagnose, judge or identify the result state of the target device, and obtain a verification state corresponding to the pre-stored first test sample set. Wherein the verification state may correspond to each sample signal group or sample subset of the first test sample set respectively.
确定验证状态与结果状态的差异度,当差异度小于或等于预定阈值时,确定经过训练的目标模型符合要求。由于第一测试样本集合中每个样本信号组或样本子集所对应的对象设备的结果状态是已知的或预先确定的,为此可以将验证状态与结果状态的差异度作为确定目标模型准确度的基础。例如,当特定的一组测试样本信号输入到经过训练的目标模型后,得到的验证状态为对象设备的正常状态与异常状态的比率为95:5,而已知的或预先确定的结果状态中对象设备的正常状态与异常状态的比率为99:1。由此可知,差异度为4%=(99-95)/(99+1)。预定阈值是预先设置的差异度阈值,预定阈值或差异度阈值可以被认为是对目标模型的诊断、判别或识别的准确度的最低要求。例如,当预定阈值为5%时,差异度为4%,差异度小于预定阈值,则确定经过训练的目标模型符合要求。当预定阈值为2%时,差异度为4%,差异度大于预定阈值,确定经过训练的目标模型不符合要求。Determine the degree of difference between the verification state and the result state, and when the degree of difference is less than or equal to a predetermined threshold, determine that the trained target model meets the requirements. Since the result state of the object equipment corresponding to each sample signal group or sample subset in the first test sample set is known or predetermined, the difference between the verification state and the result state can be used as the accurate target model for determining basis of degree. For example, when a specific set of test sample signals is input to the trained target model, the obtained verification state is that the ratio of the normal state to the abnormal state of the object equipment is 95:5, while the known or predetermined result state of the object The ratio of normal state to abnormal state of equipment is 99:1. It can be seen that the degree of difference is 4%=(99-95)/(99+1). The predetermined threshold is a preset difference threshold, and the predetermined threshold or the difference threshold may be considered as the minimum requirement for the accuracy of diagnosis, discrimination or identification of the target model. For example, when the predetermined threshold is 5%, the degree of difference is 4%, and the degree of difference is less than the predetermined threshold, then it is determined that the trained target model meets the requirements. When the predetermined threshold is 2%, the degree of difference is 4%, and if the degree of difference is greater than the predetermined threshold, it is determined that the trained target model does not meet the requirements.
可替换地,在获取包括所述至少两种样本信号的正常样本集合,以及获取与正常样本集合相对应的异常样本集合之后,将正常样本集合分为第一正常样本子集合和第二正常样本子集合,将异常样本集合分为第一异常样本子集合和第二异常样本子集合。其中第一正常样本子集合和第二正常样本子集合中(正常样本的样本信号或正常样本信号)样本信号的第一数量比例为3:7,5:5,6:4等任意合理比例。其中第一异常样本子集合和第二异常样本子集合中(异常样本的样本信号或异常样本信号)样本信号的第二数量比例为3:7,5:5,6:4等任意合理比例。其中,第一数量比例与第二数量比例可以相等或不相等。Alternatively, after obtaining the normal sample set including the at least two sample signals, and obtaining the abnormal sample set corresponding to the normal sample set, the normal sample set is divided into a first normal sample subset and a second normal sample set Subsets, dividing the set of abnormal samples into a first subset of abnormal samples and a second subset of abnormal samples. The first quantity ratio of the sample signals (sample signals of normal samples or normal sample signals) in the first normal sample subset and the second normal sample subset is any reasonable ratio such as 3:7, 5:5, 6:4, etc. Wherein the second quantity ratio of the sample signals (sample signals of abnormal samples or abnormal sample signals) in the first abnormal sample subset and the second abnormal sample subset is any reasonable ratio such as 3:7, 5:5, 6:4, etc. Wherein, the first quantity ratio and the second quantity ratio may be equal or unequal.
基于第一正常样本集合、第一异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的目标模型。其中,预先设定的训练算法可以是人工智能领域、深度学习领域、机器学习算法领域中任意 的合理的训练算法。The target model is trained based on the first normal sample set, the first abnormal sample set and a preset training algorithm, so as to obtain a trained target model. Among them, the preset training algorithm can be any reasonable training algorithm in the field of artificial intelligence, deep learning, and machine learning algorithm.
优选地,利用第二正常样子集合和第二异常样本子集合构成第二测试样本集合,将第二测试样本集合输入经过训练的目标模型,使得经过训练的目标模型诊断、判别或识别对象设备的结果状态,获取与预先存储的第二测试样本集合相对应的验证状态;确定验证状态与结果状态的差异度。当差异度小于或等于预定阈值时,确定经过训练的目标模型符合要求;当差异度大于预定阈值时,确定经过训练的目标模型不符合要求。Preferably, the second set of normal samples and the second sub-set of abnormal samples are used to form a second test sample set, and the second test sample set is input into the trained target model, so that the trained target model can diagnose, distinguish or identify the target device The result state is to obtain the verification state corresponding to the pre-stored second test sample set; and determine the degree of difference between the verification state and the result state. When the degree of difference is less than or equal to a predetermined threshold, it is determined that the trained target model meets the requirements; when the degree of difference is greater than the predetermined threshold, it is determined that the trained target model does not meet the requirements.
优选地,还包括,通过减小所述修改量,获得经过调整的异常样本集合,基于正常样本集合、经过调整的异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的高精度目标模型。例如,在为幅值、幅值平方、能量值或能量值平方,增加或减少相应的修改量,以使得增加或减少相应的修改量的幅值之后,通过减小所述修改量,获得经过调整的异常样本集合。Preferably, it also includes, by reducing the modification amount, obtaining an adjusted abnormal sample set, and training the target model based on the normal sample set, the adjusted abnormal sample set and a preset training algorithm, so as to obtain the trained high-precision target model. For example, after increasing or decreasing the corresponding modification amount for the amplitude, amplitude square, energy value or energy value square, so that after increasing or decreasing the magnitude of the corresponding modification amount, by reducing the modification amount, the obtained Adjusted set of outlier samples.
还包括,通过减小所述比率,获得经过调整的异常样本集合,基于正常样本集合、经过调整的异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的高精度目标模型。例如,在为幅值、幅值平方、能量值或能量值平方,升高或降低相应的比率之后还包括,减小所述比率,获得经过调整的异常样本集合。It also includes obtaining an adjusted abnormal sample set by reducing the ratio, and training the target model based on the normal sample set, the adjusted abnormal sample set and a preset training algorithm, thereby obtaining a trained high-precision target Model. For example, after increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, it further includes: reducing the ratio to obtain an adjusted abnormal sample set.
识别装置306,用于在获得经过训练的目标模型之后,将对象设备在实际运行中所产生的实际信号输入经过训练的目标模型,从而利用经过训练的目标模型对所述对象设备的运行状态进行诊断、判别或识别,从而确定所述对象设备处于正常状态或异常状态。The identification means 306 is configured to input the actual signal generated by the target equipment during actual operation into the trained target model after obtaining the trained target model, so as to use the trained target model to analyze the operating state of the target device Diagnose, judge or identify, so as to determine whether the target device is in a normal state or an abnormal state.
图4为根据本发明实施方式的基于样本信号的修改对目标模型进行测试的系统400的结构示意图。系统400包括:获得装置401、确定装置402、获取装置403、修改装置404、以及测试装置405。FIG. 4 is a schematic structural diagram of a system 400 for testing a target model based on modification of sample signals according to an embodiment of the present invention. The system 400 includes: obtaining means 401 , determining means 402 , obtaining means 403 , modifying means 404 , and testing means 405 .
获得装置401,用于确定需要进行测试的目标模型并获得目标模型的配置文件。在工业生产或设备运行的实际场景中,各种类型和/或各种尺寸的设备被广泛应用于各个位置、生产环节、监控环节等。为此,如果需要确定任意一种设备的运行状态,或获取任意一种设备的参数等,需要获取每个不同类型的设备的模型或设备模型。通常,每个不同类型的设备的模 型或设备模型可以用于确定设备的运行状态、获取设备的运行参数等。为此,在进行测试前,确定需要进行测试的目标模型。Obtaining means 401, configured to determine a target model that needs to be tested and obtain a configuration file of the target model. In the actual scene of industrial production or equipment operation, various types and/or various sizes of equipment are widely used in various locations, production links, monitoring links, etc. For this reason, if it is necessary to determine the operating status of any type of equipment, or obtain parameters of any type of equipment, etc., it is necessary to obtain the model or equipment model of each different type of equipment. In general, a model of each different type of equipment or equipment model can be used to determine the operating status of the equipment, obtain the operating parameters of the equipment, and so on. To this end, before testing, determine the target model that needs to be tested.
通常,每个模型或设备模型均具有配置文件,并且配置文件用于描述模型或设备模型的多种属性。多种属性例如是:输入参数、输出参数、模型类型、模型作用、模型准确度、设备类型、设备名称、设备标识符等。为此,目标模型具有多种属性,并且例如,通过目标模型的配置文件可以确定目标模型的设备类型、设备名称、设备标识符等。Typically, each model or device model has a configuration file, and the configuration file is used to describe various properties of the model or device model. The various attributes are, for example: input parameters, output parameters, model type, model effect, model accuracy, device type, device name, device identifier, and the like. To this end, the target model has various attributes, and for example, the device type, device name, device identifier, etc. of the target model can be determined via the configuration file of the target model.
确定装置402,用于基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号。如上所述,通过目标模型的配置文件可以确定目标模型的设备类型、设备名称、设备标识符等。并且进一步地,可以通过对目标模型的配置文件进行解析来确定目标模型所涉及的对象设备。对象设备可以是任意类型的设备。此外,目标模型的配置文件中还可以包括与对象设备相关联的多种样本信号的信息。可替换地,在确定了目标模型所涉及的对象设备之后,利用对象设备的设备标识符或设备名称可以在样本信号信息库中进行检索,以获取与对象设备相关联的多种样本信号的信息。The determining unit 402 is configured to determine an object device involved in the object model based on the configuration file of the object model, and determine various sample signals associated with the object device. As mentioned above, the device type, device name, device identifier, etc. of the target model can be determined through the configuration file of the target model. And further, the target device involved in the target model may be determined by parsing the configuration file of the target model. The target device may be any type of device. In addition, the configuration file of the target model may also include information of various sample signals associated with the target device. Alternatively, after the target device involved in the target model is determined, the device identifier or device name of the target device can be used to search in the sample signal information library to obtain information on various sample signals associated with the target device .
其中多种样本信号包括:振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度。通常,可以使用振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的一种或多种样本信号来表征、训练、测试、描述对象设备。应当了解的是,本申请仅是以振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度为例进行描述,所属领域技术人员应当了解的是,本申请可以使用任何合理的样本信号。在实际场景中,可以使用各种类型的传感器来获取振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的任意一个。The various sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness. In general, one or more sample signals of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness can be used to characterize, train, test, describe target device. It should be understood that this application is only described by taking vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness as examples, and those skilled in the art should understand Note that this application can use any reasonable sample signal. In practical scenarios, various types of sensors can be used to acquire any one of vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image, and brightness.
获取装置403,用于在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合。The obtaining means 403 is configured to perform signal collection or signal simulation on at least two sample signals among the various sample signals when the target device is running normally, so as to obtain a normal sample set including the at least two sample signals.
正常样本集合是对象设备在正常运行时,利用传感器所采集的诸如振 动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度中的一种或多种的样本信号或数据所构成的样本信号。在本申请中,为了使经过训练或测试的目标模型的模型准确度更高,本申请对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合。The normal sample set is one of the data collected by sensors such as vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness when the target device is in normal operation. A sample signal composed of one or more sample signals or data. In the present application, in order to make the model accuracy of the trained or tested target model higher, the present application performs signal acquisition or signal simulation on at least two sample signals among various sample signals, so as to obtain the Normal sample collection of sample signals.
举例来说,至少两种样本信号为振动信号、声音信号和电压信号,正常样本集合中的包括以样本的采样时间顺序排列的多个样本,其中每个样本包括振动信号、声音信号和电压信号,并且每个样本具有采样时间。即,正常样本集合中的每个样本为具有采样时间的并且包括在所述采样时间处的每种样本信号的信号组或信号集。在对样本数据进行存储时,可以使正常样本集合中包括至少两个样本子集,每个样本子集为振动样本信号子集、声发射样本信号子集、声音样本信号子集或电场强度样本信号子集等。应当了解到是,信号子集的划分方式仅是为了数据存储或数据展示。实际上,每个样本包括至少两种样本信号中的每种样本信号。可替换地,正常样本集合中包括多个样本信号组,每个样本信号组包括单个振动样本信号、单个声发射样本信号和单个声音样本信号,例如每个样本信号组为<振动样本信号、声发射样本信号、声音样本信号>。应当了解的是,每个样本信号组可以被认为是正常样本集合中的一个样本。For example, the at least two sample signals are vibration signal, sound signal and voltage signal, and the normal sample set includes a plurality of samples arranged in order of sample sampling time, wherein each sample includes vibration signal, sound signal and voltage signal , and each sample has a sampling time. That is, each sample in the set of normal samples is a signal group or signal set having a sample time and including each sample signal at that sample time. When storing the sample data, the normal sample set can include at least two sample subsets, and each sample subset is a vibration sample signal subset, an acoustic emission sample signal subset, a sound sample signal subset or an electric field strength sample signal subset, etc. It should be understood that the division of signal subsets is only for data storage or data display. In practice, each sample includes each of at least two sample signals. Alternatively, a plurality of sample signal groups are included in the normal sample set, and each sample signal group includes a single vibration sample signal, a single acoustic emission sample signal and a single sound sample signal, for example, each sample signal group is <vibration sample signal, acoustic sample signal Transmit sample signal, sound sample signal>. It should be appreciated that each sample signal group can be considered as a sample in the set of normal samples.
举例来说,至少两种样本信号之中的至少一种样本信号是通过紧贴在设备外壳的传感器采集的振动/声发射信号。或者,至少两种样本信号之中的至少一种样本信号是在设备外部采集的声音信号。在实际情况中,可以将传感器设置为紧贴在设备或对象设备的外壳处、将传感器设置在设备或对象设备的外部或将传感器设置在设备或对象的内部。For example, at least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing. Alternatively, at least one of the at least two sample signals is a sound signal collected outside the device. In an actual situation, the sensor may be placed close to the casing of the device or the target device, placed outside the device or the target device, or placed inside the device or the target device.
修改装置404,用于根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合。The modification means 404 is configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set.
在实际情况中,运行状态稳定的设备在实际运行中出现故障的次数较少或故障比率较低,因此这种类型的设备的正常运行的样本信号/样本数据的数据量比较大,而异常运行或故障时的样本信号/样本数据的数据量较小。在这种情况下,通常难以获得足够的异常样本信号。为此,本申请根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改。In actual situations, equipment with a stable operating state has fewer failures or a lower failure rate in actual operation, so the sample signal/sample data volume of this type of equipment is relatively large for normal operation, while abnormal operation Or the data amount of the sample signal/sample data at the time of failure is small. In this case, it is often difficult to obtain enough abnormal sample signals. To this end, the present application modifies at least one sample signal in the normal sample set according to a preset modification manner.
其中预设的修改方式包括:为幅值、幅值平方、能量值或能量值平方,增加或减少相应的修改量,以使得增加或减少相应的修改量的幅值、幅值平方、能量值或能量值平方的所属取值或者取值区间发生变化。例如,为对象设备的正常样本集合中的幅值样本信号增加或减少相应的修改量k、为对象设备的正常样本集合中的幅值平方样本信号增加或减少相应的修改量b、为对象设备的正常样本集合中的能量值样本信号增加或减少相应的修改量c或为对象设备的正常样本集合中的能量值平方样本信号增加或减少相应的修改量d,从而使得对象设备的正常样本集合中的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号变为异常运行或故障运行时的样本信号。由此,根据对象设备的异常运行或故障运行时的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号构成与正常样本集合相对应的异常样本集合。The preset modification methods include: increasing or decreasing the corresponding modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding modification amount can be increased or decreased Or the value or value range of the square of the energy value changes. For example, increase or decrease the corresponding modifier k for the amplitude sample signal in the normal sample set of the target device; increase or decrease the corresponding modifier b for the amplitude square sample signal in the normal sample set of the target device; Increase or decrease the corresponding modifier c for the energy value sample signal in the normal sample set of the target device or increase or decrease the corresponding modifier d for the energy value square sample signal in the normal sample set of the target device, so that the normal sample set of the target device The amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs. Thus, the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
其中预设的修改方式包括:为幅值、幅值平方、能量值或能量值平方,升高或降低相应的比率,以使得升高或降低相应的比率的幅值、幅值平方、能量值或能量值平方的所属取值或者取值区间发生变化。例如,为对象设备的正常样本集合中的幅值样本信号升高或降低相应的比率e、为对象设备的正常样本集合中的幅值平方样本信号升高或降低相应的比率f、为对象设备的正常样本集合中的能量值样本信号升高或降低相应的比率g或为对象设备的正常样本集合中的能量值平方样本信号升高或降低相应的比率h,从而使得对象设备的正常样本集合中的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号变为异常运行或故障运行时的样本信号。由此,根据对象设备的异常运行或故障运行时的幅值样本信号、幅值平方样本信号、能量值样本信号或能量值平方样本信号构成与正常样本集合相对应的异常样本集合。The preset modification methods include: increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, so that the amplitude, the square of the amplitude, or the energy value of the corresponding ratio can be increased or decreased Or the value or value range of the square of the energy value changes. For example, the amplitude sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio e, the amplitude square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate f, and the target device The energy value sample signal in the normal sample set of the target device increases or decreases by the corresponding ratio g, or the energy value square sample signal in the normal sample set of the target device increases or decreases by the corresponding rate h, so that the normal sample set of the target device The amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal in becomes the sample signal when the abnormal operation or faulty operation occurs. Thus, the abnormal sample set corresponding to the normal sample set is formed from the amplitude sample signal, the amplitude square sample signal, the energy value sample signal or the energy value square sample signal when the target device is abnormally or malfunctioning.
此外,预设的修改方式还包括:为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量。如上所述,幅值、幅值平方、能量值或能量值平方可以具有各自的稳态修改量。In addition, the preset modification method also includes: increasing or decreasing a corresponding steady-state modification amount for the amplitude, the square of the amplitude, the energy value or the square of the energy value. As mentioned above, magnitude, magnitude squared, energy value or energy value squared may have respective steady state modifiers.
其中为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量包括:Wherein is the amplitude, the square of the amplitude, the energy value or the square of the energy value, increasing or decreasing the corresponding steady-state modifier includes:
统计正常样本集中幅值、幅值平方、能量值或能量值平方的稳态修改 量△Y对应参量的最大值Ymax和最小值Ymin;The maximum value Ymax and the minimum value Ymin of the parameters corresponding to the steady-state modifier △Y of the amplitude, amplitude square, energy value or energy value square in the normal sample set are counted;
设定调整目标系数a,其中0<a<1;Set the adjustment target coefficient a, where 0<a<1;
统计待修改的样本的稳态修改量△Y的对应参量的值Ysignal;Count the value Ysignal of the corresponding parameter of the steady-state modifier △Y of the sample to be modified;
计算稳态修改量△Y=Ymin+a×(Ymax-Ymin)-Ysignal,Calculate the steady-state modifier △Y=Ymin+a×(Ymax-Ymin)-Ysignal,
为幅值、幅值平方、能量值或能量值平方,增加或减少相应的稳态修改量△Y。For amplitude, amplitude squared, energy value or energy value squared, increase or decrease the corresponding steady-state modifier ΔY.
调整目标系数a由一个固定值和一个由概率模型产生的随机值相加得到,并且满足0<a<1。例如,a=m1+m2,其中m1为固定值,并且m2为由概率模型产生的随机值。The adjustment target coefficient a is obtained by adding a fixed value and a random value generated by a probability model, and satisfies 0<a<1. For example, a=m1+m2, where m1 is a fixed value and m2 is a random value generated by a probability model.
测试装置405,用于基于正常样本集合和异常样本集合对目标模型进行测试,从而基于测试结果确定目标模型的性能指标。目标模型能够根据所采集的样本信号对对象设备的运行状态进行诊断、判别或识别,从而确定所述对象设备处于正常状态、异常状态或其他任何状态。其中目标模型的性能指标可以包括目标模型的诊断精度、判别精度或识别精度。The testing device 405 is configured to test the target model based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results. The target model can diagnose, judge or identify the operating state of the target device according to the collected sample signals, so as to determine whether the target device is in a normal state, an abnormal state or any other state. The performance index of the target model may include the diagnostic accuracy, discrimination accuracy or recognition accuracy of the target model.
基于正常样本集合和异常样本集合对目标模型进行测试,从而基于测试结果确定目标模型的性能指标包括:将正常样本集合和异常样本集合分别或依次输入经过训练的目标模型,使得经过训练的目标模型诊断、判别或识别对象设备的结果状态,获取与正常样本集合和/或异常样本集相对应的验证状态。确定基于验证状态确定结果状态的正确比率,基于正确比率确定测试结果并基于测试结果确定目标模型的性能指标。例如,在将正常样本集合和异常样本集合分别或依次输入经过训练的目标模型后,经过训练的目标模型诊断、判别或识别对象设备的结果状态100次,基于验证状态确定100次结果状态中诊断、判别或识别正确的次数为99次,那么基于验证状态确定结果状态的正确比率为99/100=99%,那么测试结果为99%。The target model is tested based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results. Diagnose, judge or identify the result status of the target device, and obtain the verification status corresponding to the normal sample set and/or the abnormal sample set. Determining the correct ratio of the result status based on the verification status, determining the test result based on the correct ratio and determining the performance index of the target model based on the test result. For example, after the normal sample set and the abnormal sample set are respectively or sequentially input into the trained target model, the trained target model diagnoses, discriminates or identifies the result status of the target device 100 times, and determines the 100 result status diagnosis based on the verification status , the number of correct discrimination or recognition is 99 times, then the correct ratio of the result state determined based on the verification state is 99/100=99%, then the test result is 99%.
根据一个实施方式,当测试结果大于或等于97%时,确定目标模型的性能指标为高精度,当测试结果小于97%并且大于或等于90%时,确定目标模型的性能指标为中精度,以及当测试结果小于90%时,确定目标模型的性能指标为低精度。According to one embodiment, when the test result is greater than or equal to 97%, it is determined that the performance index of the target model is high precision, and when the test result is less than 97% and greater than or equal to 90%, it is determined that the performance index of the target model is medium precision, and When the test result is less than 90%, it is determined that the performance index of the target model is low precision.
优选地,还包括,通过减小所述比率,获得经过调整的异常样本集合,基于正常样本集合和经过调整的异常样本集合对目标模型进行测试,从而 确定目标模型的诊断精度、判别精度或识别精度。例如,在为幅值、幅值平方、能量值或能量值平方,升高或降低相应的比率之后还包括,减小所述比率,获得经过调整的异常样本集合。Preferably, it also includes obtaining an adjusted abnormal sample set by reducing the ratio, and testing the target model based on the normal sample set and the adjusted abnormal sample set, so as to determine the diagnostic accuracy, discrimination accuracy or recognition accuracy of the target model precision. For example, after increasing or decreasing the corresponding ratio for the amplitude, the square of the amplitude, the energy value or the square of the energy value, it further includes: reducing the ratio to obtain an adjusted abnormal sample set.
优选地,还包括,通过减小所述修改量,获得经过调整的异常样本集合,基于正常样本集合和经过调整的异常样本集合对目标模型进行测试,从而确定目标模型的诊断精度、判别精度或识别精度。例如,在为幅值、幅值平方、能量值或能量值平方,增加或减少相应的修改量,以使得增加或减少相应的修改量的幅值之后,通过减小所述修改量,获得经过调整的异常样本集合。Preferably, it also includes, by reducing the modification amount, obtaining an adjusted abnormal sample set, and testing the target model based on the normal sample set and the adjusted abnormal sample set, so as to determine the diagnostic accuracy, discrimination accuracy or recognition accuracy. For example, after increasing or decreasing the corresponding modification amount for the amplitude, amplitude square, energy value or energy value square, so that after increasing or decreasing the magnitude of the corresponding modification amount, by reducing the modification amount, the obtained Adjusted set of outlier samples.

Claims (10)

  1. 一种基于样本信号的修改对目标模型进行训练的方法,所述方法包括:A method for training a target model based on modification of a sample signal, the method comprising:
    从多个模型中选择需要进行训练的目标模型,获取所述目标模型的配置文件;Select a target model to be trained from multiple models, and obtain a configuration file of the target model;
    基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号;determining an object device involved in the object model based on the configuration file of the object model, and determining various sample signals associated with the object device;
    在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合;When the subject device is running normally, perform signal acquisition or signal simulation on at least two sample signals among the various sample signals, so as to obtain a normal sample set including the at least two sample signals;
    根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合;Modifying at least one sample signal in the normal sample set according to a preset modification method to obtain an abnormal sample set corresponding to the normal sample set;
    基于正常样本集合、异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的目标模型。The target model is trained based on the normal sample set, the abnormal sample set and the preset training algorithm, so as to obtain the trained target model.
  2. 根据权利要求1所述的方法,所述多种样本信号包括:振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度。The method according to claim 1, the plurality of sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
  3. 根据权利要求1所述的方法,所述至少两种样本信号之中的至少一种样本信号是通过紧贴在设备外壳的传感器采集的振动/声发射信号。According to the method according to claim 1, at least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing.
  4. 根据权利要求1所述的方法,所述至少两种样本信号之中的至少一种样本信号是在设备外部采集的声音信号。The method of claim 1, wherein at least one of the at least two sample signals is a sound signal collected externally to the device.
  5. 一种基于样本信号的修改对目标模型进行测试的方法,所述方法包括:A method for testing a target model based on modification of a sample signal, the method comprising:
    确定需要进行测试的目标模型并获得目标模型的配置文件;Determine the target model that needs to be tested and obtain the configuration file of the target model;
    基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号;determining an object device involved in the object model based on the configuration file of the object model, and determining various sample signals associated with the object device;
    在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合;When the subject device is running normally, perform signal acquisition or signal simulation on at least two sample signals among the various sample signals, so as to obtain a normal sample set including the at least two sample signals;
    根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合;Modifying at least one sample signal in the normal sample set according to a preset modification method to obtain an abnormal sample set corresponding to the normal sample set;
    基于正常样本集合和异常样本集合对目标模型进行测试,从而基于测试结果确定目标模型的性能指标。The target model is tested based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test results.
  6. 一种基于样本信号的修改对目标模型进行训练的系统,所述系统包括:A system for training a target model based on modification of a sample signal, the system comprising:
    选择装置,用于从多个模型中选择需要进行训练的目标模型,获取所述目标模型的配置文件;a selection device, configured to select a target model to be trained from multiple models, and obtain a configuration file of the target model;
    确定装置,用于基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号;determining means, configured to determine the target device involved in the target model based on the configuration file of the target model, and determine various sample signals associated with the target device;
    获取装置,用于在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合;An acquisition device, configured to perform signal acquisition or signal simulation on at least two sample signals among multiple sample signals when the subject device is operating normally, so as to acquire a normal sample set including the at least two sample signals;
    修改装置,用于根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合;A modifying device, configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set;
    训练装置,用于基于正常样本集合、异常样本集合以及预先设定的训练算法对目标模型进行训练,从而获得经过训练的目标模型。The training device is used to train the target model based on the normal sample set, the abnormal sample set and a preset training algorithm, so as to obtain the trained target model.
  7. 根据权利要求5所述的系统,所述多种样本信号包括:振动、声音、速度、位移、应力、压力、电压、电流、功率、电场强度、磁场强度、温度、图像和亮度。The system according to claim 5, the plurality of sample signals include: vibration, sound, velocity, displacement, stress, pressure, voltage, current, power, electric field strength, magnetic field strength, temperature, image and brightness.
  8. 根据权利要求5所述的系统,所述至少两种样本信号之中的至少一种样本信号是通过紧贴在设备外壳的传感器采集的振动/声发射信号。The system according to claim 5, at least one sample signal among the at least two sample signals is a vibration/acoustic emission signal collected by a sensor close to the device casing.
  9. 根据权利要求5所述的系统,所述至少两种样本信号之中的至少一种样本信号是在设备外部采集的声音信号。The system of claim 5, at least one of the at least two sample signals is a sound signal collected externally to the device.
  10. 一种基于样本信号的修改对目标模型进行测试的系统,所述系统包括:A system for testing a target model based on modification of a sample signal, the system comprising:
    获得装置,用于确定需要进行测试的目标模型并获得目标模型的配置文件;Obtaining means for determining a target model to be tested and obtaining a configuration file of the target model;
    确定装置,用于基于所述目标模型的配置文件确定所述目标模型所涉及的对象设备,以及确定与所述对象设备相关联的多种样本信号;determining means, configured to determine the target device involved in the target model based on the configuration file of the target model, and determine various sample signals associated with the target device;
    获取装置,用于在所述对象设备正常运行时,对多种样本信号中的至少两种样本信号进行信号采集或信号仿真,从而获取包括所述至少两种样本信号的正常样本集合;An acquisition device, configured to perform signal acquisition or signal simulation on at least two sample signals among multiple sample signals when the subject device is operating normally, so as to acquire a normal sample set including the at least two sample signals;
    修改装置,用于根据预设的修改方式对正常样本集合中的至少一种样本信号进行修改,以获取与正常样本集合相对应的异常样本集合;A modifying device, configured to modify at least one sample signal in the normal sample set according to a preset modification method, so as to obtain an abnormal sample set corresponding to the normal sample set;
    测试装置,用于基于正常样本集合和异常样本集合对目标模型进行测试,从而基于测试结果确定目标模型的性能指标。The testing device is used for testing the target model based on the normal sample set and the abnormal sample set, so as to determine the performance index of the target model based on the test result.
PCT/CN2021/108156 2021-06-16 2021-07-23 Method and system for training target model on the basis of modification of sample signal WO2022262072A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110663854.8 2021-06-16
CN202110663854.8A CN113537288B (en) 2021-06-16 2021-06-16 Method and system for training target model based on modification of sample signal

Publications (1)

Publication Number Publication Date
WO2022262072A1 true WO2022262072A1 (en) 2022-12-22

Family

ID=78096022

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/108156 WO2022262072A1 (en) 2021-06-16 2021-07-23 Method and system for training target model on the basis of modification of sample signal

Country Status (2)

Country Link
CN (1) CN113537288B (en)
WO (1) WO2022262072A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120304008A1 (en) * 2009-09-17 2012-11-29 Holger Hackstein Supervised fault learning using rule-generated samples for machine condition monitoring
CN110428004A (en) * 2019-07-31 2019-11-08 中南大学 Component of machine method for diagnosing faults under data are unbalance based on deep learning
CN111898644A (en) * 2020-07-02 2020-11-06 西安交通大学 Intelligent identification method for health state of aerospace liquid engine under fault-free sample
CN112231971A (en) * 2020-09-26 2021-01-15 浙江大学 Blast furnace fault diagnosis method based on relative integral trend diffusion fault sample generation
CN112819173A (en) * 2019-11-18 2021-05-18 上海光启智城网络科技有限公司 Sample generation method and device and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1022632A1 (en) * 1999-01-21 2000-07-26 ABB Research Ltd. Monitoring diagnostic apparatus with neural network modelling the normal or abnormal functionality of an electrical device
CN109670459A (en) * 2018-12-20 2019-04-23 南京航空航天大学 Helicopter Main Reducer fault sample generation method
CN109800861A (en) * 2018-12-28 2019-05-24 上海联影智能医疗科技有限公司 A kind of equipment fault recognition methods, device, equipment and computer system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120304008A1 (en) * 2009-09-17 2012-11-29 Holger Hackstein Supervised fault learning using rule-generated samples for machine condition monitoring
CN110428004A (en) * 2019-07-31 2019-11-08 中南大学 Component of machine method for diagnosing faults under data are unbalance based on deep learning
CN112819173A (en) * 2019-11-18 2021-05-18 上海光启智城网络科技有限公司 Sample generation method and device and computer readable storage medium
CN111898644A (en) * 2020-07-02 2020-11-06 西安交通大学 Intelligent identification method for health state of aerospace liquid engine under fault-free sample
CN112231971A (en) * 2020-09-26 2021-01-15 浙江大学 Blast furnace fault diagnosis method based on relative integral trend diffusion fault sample generation

Also Published As

Publication number Publication date
CN113537288A (en) 2021-10-22
CN113537288B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN109447263B (en) Space abnormal event detection method based on generation of countermeasure network
CN110598851A (en) Time series data abnormity detection method fusing LSTM and GAN
KR102189269B1 (en) Fault Diagnosis method and system for induction motor using convolutional neural network
CN101299004B (en) Vibrating failure diagnosis method based on determined learning theory
US11494643B2 (en) Noise data artificial intelligence apparatus and pre-conditioning method for identifying source of problematic noise
JP2018119924A (en) Diagnostic device
CN103324155B (en) System monitoring
GB2476246A (en) Diagnosing an operation mode of a machine
CN115187832A (en) Energy system fault diagnosis method based on deep learning and gram angular field image
US20220334573A1 (en) Sensor-agnostic mechanical machine fault identification
CN109143094A (en) A kind of abnormal deviation data examination method and device of power battery
CN111964909A (en) Rolling bearing operation state detection method, fault diagnosis method and system
Jiang et al. Dual-attention-based multiscale convolutional neural network with stage division for remaining useful life prediction of rolling bearings
CN112084910A (en) Fault diagnosis method and system
WO2022262072A1 (en) Method and system for training target model on the basis of modification of sample signal
JP2002323371A (en) Sound diagnostic device and sound diagnostic method
CN116168720A (en) Motor sound abnormality fault diagnosis method, system and storable medium
WO2022262073A1 (en) Method and system for training device model of target device by means of sample doping
CN111474476A (en) Motor fault prediction method
CN110956112A (en) Novel high-reliability slewing bearing life evaluation method
US20230377382A1 (en) Vehicle evaluation system
CN113574398A (en) Method for monitoring a switch of a railway track system
CN117741321A (en) Mobile storage and charging system fault diagnosis method and system
CN117723782B (en) Sensor fault identification positioning method and system for bridge structure health monitoring
RU2719507C1 (en) Method for assessing the technical state of a consumer controller based on neural network diagnosis

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21945654

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE