Data enhancement method, device, electronic device and storage medium
Through the data enhancement method based on the target Markov transfer matrix, the problem of incomplete vibration signal data is solved, the accuracy and generalization performance of the external damage detection model are improved, and more accurate detection of external damage events is achieved.
Patent Information
- Application Number
- CN202410166553.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-02-05
AI Technical Summary
In the existing technology, due to the sporadic and low frequency of external breach events in the detection of external breaches, the vibration signal data is not comprehensive and accurate enough, and the positive and negative samples are unbalanced in the training of the deep learning model, resulting in poor model accuracy.
The vibration signal is data enhanced based on the target Markov transfer matrix. By calculating the vibration transfer difference vector and the feature label vector, the vibration characteristic time series vector is generated to enhance the comprehensiveness and accuracy of the data and retain the physical meaning of the vibration signal.
It improves the comprehensiveness and accuracy of vibration signal data, enhances the generalization performance of the data, and improves the accuracy of the external damage detection model.
Smart Images

Figure CN117951491B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to a data enhancement method, device, electronic device, and storage medium. Background Art
[0002] External damage refers to external destruction, such as external mechanical construction or human excavation and oil theft in the pipeline laying environment, which threatens the safety of the pipeline. In safety monitoring, the detection of external damage events is an indispensable project.
[0003] When an external damage event occurs, a certain vibration signal will be generated. Furthermore, external damage can be detected by collecting raw vibration signals using distributed acoustic sensor monitoring equipment (DAS). In related technologies, external damage can be predicted based on deep learning models. However, since external damage events are sporadic events with low frequency of occurrence, the positive and negative samples are unbalanced during the training process of the deep learning model, and the vibration signal data is not comprehensive and accurate enough. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a data enhancement method, device, electronic device and storage medium for improving the comprehensiveness of vibration signal data in external damage scenarios.
[0005] In the first aspect, an embodiment of the present application provides a data enhancement method, including: obtaining a corresponding vibration transfer difference vector and a feature label vector based on a pre-acquired target Markov transfer matrix; the target Markov transfer matrix is established based on a vibration time series feature matrix; the vibration time series feature matrix is obtained by extracting features from pre-collected original external training data; the original external training data includes a vibration signal; generating a vibration feature time series vector based on a preset initial value vector and a vibration transfer difference vector; and determining a current label corresponding to the vibration feature time series vector based on the feature label vector; the vibration feature time series vector is used to characterize the vibration signal characteristics obtained after enhancing the characteristics of the vibration signal.
[0006] In the above implementation process, the characteristic data corresponding to the vibration signal is enhanced based on the target Markov transfer matrix to improve the problem that the application of Markov chain on the vibration signal cannot achieve clear characteristic components with physical meaning, and obtain more comprehensive vibration signal characteristics. At the same time, the physical meaning of the vibration signal in the external damage scene is retained, and the accuracy of the enhanced data is improved.
[0007] Optionally, in an embodiment of the present application, before calculating the corresponding vibration transfer differential vector and feature label vector based on the pre-acquired target Markov transfer matrix, the method also includes: obtaining pre-collected original external break training data and original label data corresponding to the original external break training data; the vibration signal includes the energy or frequency of the vibration signal; the original label data includes an external break signal label and a non-external break signal label; performing feature extraction on the original external break training data to obtain a vibration timing feature matrix; obtaining a label vector corresponding to the vibration timing feature matrix according to the original label data corresponding to the original external break training data; and establishing a target Markov transfer matrix based on the vibration timing feature matrix and the label vector corresponding to the vibration timing feature matrix.
[0008] In the above implementation process, a target Markov transfer matrix is established, and then the target Markov transfer matrix can be used to enhance the characteristic data corresponding to the vibration signal to obtain more comprehensive vibration signal characteristics and improve the accuracy of the enhanced data.
[0009] Optionally, in an embodiment of the present application, the target Markov transfer matrix includes an explicit Markov transfer matrix and an implicit Markov transfer matrix; the target Markov transfer matrix is established based on the vibration timing feature matrix and the label vector corresponding to the vibration timing feature matrix, including: calculating the differential vectors corresponding to multiple groups of timing features in the vibration timing feature matrix; generating an eigenvalue matrix based on the eigenvalues of the timing features in the vibration timing feature matrix, the differential vectors corresponding to the timing features, and the label vector corresponding to the vibration timing feature matrix; the eigenvalue matrix includes multiple rows of transfer features; the multiple rows of transfer features in the eigenvalue matrix are sorted according to preset rules to generate an explicit Markov transfer matrix; and at least one row of feature transfer rows whose label value is a preset value in the explicit Markov transfer matrix is obtained to generate an implicit Markov transfer matrix.
[0010] In the above implementation process, an explicit Markov transfer matrix and an implicit Markov transfer matrix are established respectively, and the corresponding feature data are enhanced to obtain more comprehensive vibration signal features and improve the accuracy of the enhanced data.
[0011] Optionally, in an embodiment of the present application, feature extraction is performed on the original external break training data to obtain a vibration timing feature matrix, including: obtaining a preset data feature calculation function; the data feature calculation function includes sliding window parameters or convolution operation parameters; using the sliding window parameters to extract features from the original external break training data, or using the convolution operation parameters to extract features from the original external break training data to generate multiple rows of timing features; generating a vibration timing feature matrix based on the multiple rows of timing features.
[0012] In the above implementation process, the data feature calculation function is used to extract features from the original external training data to obtain the vibration time series feature matrix. The data feature calculation method should have sliding window or convolution characteristics so that the extracted features also have the properties of time series data, thereby improving the accuracy of the features.
[0013] Optionally, in an embodiment of the present application, the target Markov transfer matrix includes an explicit Markov transfer matrix; based on the pre-acquired target Markov transfer matrix, the corresponding vibration transfer differential vector and feature label vector are calculated, including: obtaining a preset initial value vector; the initial value vector is obtained by setting initial values and initial labels for each group of time series features in the vibration time series feature matrix; determining the target transfer row from multiple rows of feature transfer rows of the explicit Markov transfer matrix according to the initial value corresponding to the initial value vector; calculating the corresponding transfer value and feature label based on the target transfer row; summarizing the transfer values corresponding to each initial value to obtain the corresponding vibration transfer differential vector; summarizing the feature labels corresponding to each initial value to obtain the corresponding feature label vector.
[0014] In the above implementation process, after determining the target transfer row, the transfer value and feature label corresponding to the vibration time series feature matrix are calculated based on the target transfer row. In the process of determining the target transfer row, the transfer range can be determined first to reduce the possibility of data breakpoints in the Markov transfer matrix and improve the data generalization effect.
[0015] Optionally, in an embodiment of the present application, a vibration feature time series vector is generated based on a preset initial value vector and a vibration transfer differential vector; and a current label corresponding to the vibration feature time series vector is determined based on the feature label vector, including: adding the initial value vector and the vibration transfer differential vector to obtain the vibration feature time series vector; determining whether the sum of the feature labels in the feature label vector is greater than a preset threshold, and if so, the current label is determined to be the first label; if not, the current label is determined to be the second label.
[0016] In the above implementation process, the initial value vector and the vibration transfer difference vector are added to obtain the vibration feature time series vector, and the current label corresponding to the vibration feature time series vector is obtained to enhance the feature data corresponding to the vibration signal.
[0017] Optionally, in an embodiment of the present application, the target Markov transfer matrix also includes a hidden Markov transfer matrix; the method also includes: if the current label is determined to be the first label, the target Markov transfer matrix is replaced by the hidden Markov transfer matrix from the explicit Markov transfer matrix; the hidden Markov transfer matrix is used to calculate the next vibration feature time series vector and the current label corresponding to the vibration feature time series vector; or; if the number of times the explicit Markov transfer matrix is used as the target Markov transfer matrix is greater than the first number threshold, the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix.
[0018] In the above implementation process, when the conditions are met, the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix, which simulates the continuous change time of the random appearance of small sample labels in the feature layer of the original data, not only retaining its physical meaning, but also having the characteristics of random enhancement.
[0019] Optionally, in an embodiment of the present application, after replacing the target Markov transfer matrix from an explicit Markov transfer matrix to a hidden Markov transfer matrix, the method also includes: if the current label is determined to be a second label, replacing the target Markov transfer matrix from a hidden Markov transfer matrix to an explicit Markov transfer matrix; or; the number of times the hidden Markov transfer matrix serves as the target Markov transfer matrix is greater than a second number threshold, replacing the target Markov transfer matrix from a hidden Markov transfer matrix to an explicit Markov transfer matrix.
[0020] In the above implementation process, when the conditions are met, the target Markov transfer matrix is replaced by the explicit Markov transfer matrix from the implicit Markov transfer matrix to simulate the continuous change time of the random appearance of small sample labels in the feature layer of the original data, which not only retains its physical meaning, but also has the characteristics of random enhancement.
[0021] In the second aspect, an embodiment of the present application also provides a data enhancement device, including: a differential calculation module, used to obtain a corresponding vibration transfer differential vector and a feature label vector based on a pre-acquired target Markov transfer matrix; the target Markov transfer matrix is established based on a vibration time series feature matrix; the vibration time series feature matrix is obtained by feature extraction of pre-collected original external break training data; the original external break training data includes a vibration signal; a feature generation module, used to generate a vibration feature time series vector based on a preset initial value vector and a vibration transfer differential vector; and based on the feature label vector, determine the current label corresponding to the vibration feature time series vector; the vibration feature time series vector is used to characterize the vibration signal characteristics obtained after enhancing the characteristics of the vibration signal.
[0022] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method described above is performed.
[0023] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described above is executed.
[0024] The data enhancement method, device, electronic device and storage medium provided in the present application are used to enhance the feature data corresponding to the vibration signal based on the target Markov transfer matrix, thereby improving the problem that the application of Markov chain on the vibration signal cannot achieve clear feature components with physical meaning, and obtaining more comprehensive vibration signal features. At the same time, the physical meaning of the vibration signal in the external damage scene is retained, and the accuracy of the enhanced data is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 A flowchart of a data enhancement method provided in an embodiment of the present application;
[0027] Figure 2 A schematic diagram of target Markov transfer matrix switching provided in an embodiment of the present application;
[0028] Figure 3 A schematic diagram of the structure of a data enhancement device provided in an embodiment of the present application;
[0029] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0032] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0033] External damage refers to external damage, such as external mechanical construction or human excavation and oil theft in the pipeline laying environment, which threatens the safety of the pipeline. Pipelines or pipelines can be used to transport liquids, gases, solids and other substances, and are widely used in industry, civil and infrastructure fields.
[0034] In order to reduce the potential harm of external damage, it is necessary to inspect and maintain facilities and equipment such as pipelines and pipelines. DAS can be used to collect vibration signals and determine the operation status and abnormal conditions of the pipelines based on the vibration signals. For example, the collected vibration signals are input into the preset external damage detection model to predict the external damage.
[0035] The external damage detection model is obtained by collecting vibration signals when external damage occurs and vibration signals during normal operation, adding corresponding labels to these two vibration signals as training data, and training the preset deep learning model. However, in the implementation process, since external damage events are sporadic events, the frequency of occurrence is low. Even if an external damage event occurs, the collection process may be interfered by various practical factors such as equipment or environment. Therefore, it is difficult to collect vibration signals when the external damage event occurs, or the collected data is relatively small. As a result, in the training process of the deep learning model, the positive and negative samples are unbalanced, that is, the number of vibration signals when external damage occurs and the number of vibration signals during normal operation are unbalanced, resulting in poor accuracy of the model.
[0036] To solve the problem of sample imbalance, the sample data can be enhanced, that is, the vibration signal can be enhanced to enrich the diversity of the vibration signal. For example, the vibration signal can be enhanced by simulating external damage events, adding noise, time shifting or frequency shifting, etc.
[0037] However, the existing data enhancement method cannot simulate all external damage scenarios, and there is a certain deviation between the vibration data in the simulation process and the vibration signal of the real external damage event. Therefore, the accuracy of the enhanced data is low. Methods such as adding noise, time shift or frequency shift transformation cannot increase the generalization performance of the vibration signal at the physical level, that is, random noise cannot enhance the vibration signal corresponding to the external damage environment mode; it cannot guarantee the physical characteristics of the original vibration signal, and may even destroy the continuity of the vibration signal. It can be seen that these methods are difficult to obtain more comprehensive and accurate vibration signals.
[0038] In response to the problem of incomplete vibration signals mentioned above, the embodiments of the present application provide a data enhancement method, device, electronic device and storage medium, which enhance the feature data corresponding to the vibration signal based on the target Markov transfer matrix, thereby improving the problem that directly applying the Markov chain to the vibration signal cannot achieve clear feature components with physical meanings. While obtaining more comprehensive vibration signal features, the physical meaning of the vibration signal is retained, thereby improving the accuracy of the enhanced data.
[0039] See also Figure 1 The flowchart of a data enhancement method provided by an embodiment of the present application is shown. The data enhancement method provided by an embodiment of the present application can be applied to an electronic device, which may include a terminal and a server; wherein the terminal may specifically be a smart phone, a tablet computer, a computer, a personal digital assistant (PDA), etc.; the server may specifically be an application server or a web server. The data enhancement method may include:
[0040] Step S110: Based on the pre-acquired target Markov transfer matrix, obtain the corresponding vibration transfer differential vector and feature label vector; the target Markov transfer matrix is established based on the vibration time series feature matrix; the vibration time series feature matrix is obtained by feature extraction of the pre-collected original external break training data; the original external break training data includes the vibration signal.
[0041] In step S110, a Markov transfer matrix (Markov transition matrix), also known as a state transition matrix (state transition matrix), can store eigenvalues, transfer values corresponding to eigenvalues, and labels corresponding to eigenvalues. The Markov transfer matrix can be divided into an explicit Markov transfer matrix and a hidden Markov transfer matrix, and the target Markov transfer matrix can be an explicit Markov transfer matrix or a hidden Markov transfer matrix.
[0042] Before using the target Markov transfer matrix to calculate the vibration transfer difference vector and feature label vector, the target Markov transfer matrix is first established: the original external break training data is collected, and the original external break training data includes vibration signals; the original external break training data is feature extracted to obtain the vibration time series feature matrix; the vibration time series feature matrix includes multiple groups of time series features, and the time series feature refers to the vibration signal features with the properties of time series data, so the sliding window or convolution operation can be used to extract the features of the original external break training data. Then, the target Markov transfer matrix is established based on the vibration time series feature matrix and the label vector corresponding to the vibration time series feature matrix. Explanatory, each row of the time series feature row vector in the vibration time series feature matrix corresponds to a group of time series features.
[0043] Based on the pre-acquired target Markov transfer matrix, the transfer values and feature labels corresponding to each group of time series features in the vibration time series feature matrix are calculated, and the transfer values corresponding to each group of time series features are summarized in order to obtain the vibration transfer difference vector corresponding to the vibration time series feature matrix; and the feature labels corresponding to multiple groups of time series features are summarized in order to obtain the feature label vector. Among them, the vibration transfer difference vector can be a vibration transfer difference column vector, and the feature label vector is a feature label column vector. It can be understood that the transfer values in the vibration transfer difference vector and the feature labels in the feature label vector are one-to-one corresponding to each other in the position order, that is, after summarization, the corresponding relationship between the transfer value and the feature label does not change.
[0044] Step S120: Generate a vibration feature time series vector based on a preset initial value vector and a vibration transfer differential vector; and determine a current label corresponding to the vibration feature time series vector based on a feature label vector; the vibration feature time series vector is used to characterize the vibration signal characteristics obtained after enhancing the characteristics of the vibration signal.
[0045] In step S120, during the Markov transfer process, the initial value vector describes the initial observation state of the system. When performing the first step of data enhancement, the initial value and initial label of the corresponding initial value vector can be set according to actual needs. For example, the initial value and initial label can both be 0, or they can also be non-0. The initial value vector and the vibration transfer differential vector can be vectorized to obtain a vibration feature time series vector; the vibration feature time series vector is the vibration signal feature obtained after enhancing the features corresponding to the vibration signal according to the target Markov transfer matrix.
[0046] It should be noted that the object enhanced by the target Markov transfer matrix is the features corresponding to the vibration signal in the external damage scenario, rather than directly enhancing the vibration signal in the original external damage training data. If the vibration signal is enhanced directly, the Markov transfer matrix is directly applied to the vibration signal. Since the Markov transfer matrix corresponds to the variation law of the time series amplitude in the vibration signal, the energy features and duration features hidden in a specific frequency band will be lost during the data enhancement process. Therefore, in the external damage scenario, it cannot be guaranteed that the enhanced vibration feature time series data has the physical features and feature variation laws of the external damage significance. Among them, data enhancement refers to obtaining a larger number of samples through simulation.
[0047] In the above implementation process, the features corresponding to the vibration signal are enhanced based on the target Markov transfer matrix, which improves the problem that the Markov chain cannot achieve clear and physically meaningful feature components when directly applied to the vibration signal, and obtains more comprehensive vibration signal features. At the same time, the physical meaning of the vibration signal in the external damage scene is retained, and the accuracy of the enhanced data is improved. Explanatory, the features corresponding to the vibration signal can be time domain features or frequency domain features. The time domain features are used to describe the shape, amplitude, frequency and other information of the vibration signal; the frequency domain features are used to describe the energy distribution and intensity of the vibration signal at different frequencies.
[0048] In the implementation mode of the present application, based on a pre-constructed target Markov matrix, data enhancement processing is performed on the initial value vector and the initial label in the data enhancement process to obtain more sample data.
[0049] Optionally, in the embodiment of the present application, before obtaining the corresponding vibration transfer difference vector and feature label vector based on the pre-acquired target Markov transfer matrix, the target Markov transfer matrix may be established first, and the steps are as follows:
[0050] Obtain the pre-collected original external-break training data and the original label data corresponding to the original external-break training data; the original external-break training data is data with time series characteristic sequence properties, and the original external-break training data includes vibration signals, and the vibration signals include the energy or frequency of the vibration signals in the external-break scene and the normal scene; for example, 1-3 minutes is a non-vibration signal, 3-4 minutes is a vibration signal, and 4-5 minutes is a non-vibration signal. The original label data includes an external-break signal label and a non-external-break signal label. The vibration signal can be collected using a DAS device.
[0051] For example, the original external training data can be represented as A, and the original label data corresponding to the original external training data A is represented as L A Among them, the label L AIt can be a "0, 1" sequence with the same length as the original external-breaking training data A, where 1 represents the external-breaking signal label (positive sample signal) and 0 represents the non-external-breaking signal label (negative sample signal).
[0052] The original external training data A is feature extracted to obtain a vibration time series feature matrix, and the label vector corresponding to the vibration time series feature matrix is obtained according to the original label data corresponding to the original external training data. For example, the vibration time series feature matrix can be represented by M, and the original external training data A is processed using the data feature calculation function to generate the vibration time series feature matrix M. The vibration time series feature matrix M is a vibration time series feature matrix composed of m rows of time series feature row vectors; each row is a time series feature row vector corresponding to a feature type, M i It is represented as the i-th row of the time series feature vector in the vibration time series feature matrix M; i = 1, 2, 3, 4 ... m. Exemplarily, the vibration time series feature matrix M can be expressed as:
[0053]
[0054] Among them, each time series feature row vector M i Contains n eigenvalues, eigenvalue M i [j] is the i-th row time series feature row vector M i The j-th column eigenvalue in ; j = 1, 2, 3, 4…n; that is, the eigenvalue corresponding to the i-th row and j-th column in the vibration timing feature matrix M.
[0055] The data feature calculation function is used to extract features from the original external training data A. The data feature calculation function may have a sliding window feature or a convolution feature so that the extracted features have the properties of time series data.
[0056] After generating the vibration time series feature matrix M, calculate the label vector L corresponding to the vibration time series feature matrix M. The label vector L corresponding to the vibration time series feature matrix M refers to the eigenvalue M corresponding to each column in the vibration time series feature matrix M. i [j] is the vector obtained after labeling. The label vector L corresponding to M can also be called the data label row vector. L[j] represents the label value of all eigenvalues corresponding to the jth column in the vibration time series feature matrix M (rows 1 to m).
[0057] Exemplarily, the process of calculating the label vector L is as follows:
[0058] The label L corresponding to the original external training data A AThe sliding window parameters (such as window length w, window moving step length s, etc.) are used for processing, and the label corresponding to the middle index of the sliding window in each sliding window step is taken to obtain the label vector L corresponding to the vibration time series feature matrix M. For example, if the original label data L corresponding to the original external training data A in the window A If they are not exactly the same, the mean, median, maximum or minimum value in the sliding window can be taken as the label vector L. Taking the mean method as an example, if the mean is not 0, the label vector L can be 1.
[0059] A target Markov transfer matrix is established based on the vibration timing feature matrix M and the label vector L corresponding to the vibration timing feature matrix M. For example, the differential vectors corresponding to multiple groups of timing features in the vibration timing feature matrix M are calculated, and the target Markov transfer matrix is obtained based on the vibration timing feature matrix M, the label vector L corresponding to the vibration timing feature matrix M, and the differential vector corresponding to the timing features.
[0060] In the above implementation process, a target Markov transfer matrix is established, and then the target Markov transfer matrix can be used to enhance the features corresponding to the vibration signal to obtain more comprehensive vibration signal features, which is conducive to improving the accuracy of the enhanced data.
[0061] Optionally, in an embodiment of the present application, the target Markov transfer matrix includes an explicit Markov transfer matrix and an implicit Markov transfer matrix. When generating the first vibration feature time series vector, the explicit Markov transfer matrix or the implicit Markov transfer matrix may be used; when generating multiple vibration feature time series vectors, the explicit Markov transfer matrix or the implicit Markov transfer matrix may be used, and the explicit Markov transfer matrix and the implicit Markov transfer matrix may be used alternately to generate multiple vibration feature time series vectors.
[0062] The target Markov transfer matrix is established based on the vibration time series feature matrix M and the label vector L corresponding to the vibration time series feature matrix M, including: calculating the differential vectors corresponding to multiple groups of time series features in the vibration time series feature matrix M. Each row of the time series feature row vector of the vibration time series feature matrix can be regarded as a group of time series features, that is, the i-th group of time series features in the vibration time series feature matrix M is the i-th row of time series feature row vector M in M. i .
[0063] For example, for the i-th row of the vibration time series feature matrix M, i Taking the feature as an example, the process of calculating the differential vector is described: the time series feature row vector M iConverted into a time series feature column vector; performing differential calculation on two adjacent eigenvalues in the time series in the time series feature column vector to obtain a differential value column vector. It can be understood that the differential value column vector here is the differential vector corresponding to the i-th row of the time series feature row vector, that is, the differential vector of the i-th group of features.
[0064] The differential calculation can be realized by the differential vector calculation formula, which includes:
[0065] D i ={M i [2]-M i [1], M i [3]-M i [2], ..., M i [n]-M i [n-1]};
[0066] Among them, D i represents the differential vector corresponding to the i-th group of time series features, M i [n] represents the nth column eigenvalue of the i-th group of timing characteristics in the vibration timing characteristic matrix M, M i [n-1] represents the eigenvalue of the n-1th column of the i-th group of timing features in the vibration timing feature matrix M.
[0067] Exemplarily, the differential vector calculation formula represents the subtraction of adjacent eigenvalues in the time series feature column vector (the right value minus the left value), so the first differential value is the second value minus the first value, and the last differential value is the nth value minus the n-1th value.
[0068] Since the length of the differential vector D differs from that of the vibration timing feature matrix M by 1, the transmission data at the end of each row in the vibration timing feature matrix M is discarded, that is, the nth column element in each row of the timing feature row vector in the vibration timing feature matrix M is discarded.
[0069] Based on the eigenvalue vectors of the timing features in the vibration timing feature matrix, the differential vectors corresponding to the timing features, and the label vectors corresponding to the vibration timing feature matrix, an eigenvalue matrix is generated. The number of eigenvalue matrices is m, which is consistent with the number of timing features in the vibration timing feature matrix M, that is, the number of rows of the timing feature row vector. The eigenvalue matrix includes multiple rows of transfer features, and the eigenvalue matrix may include three columns, namely the eigenvalue vectors of the timing features, the differential vectors corresponding to the timing features, and the label vectors corresponding to the timing features in the vibration timing feature matrix. Among them, the eigenvalue vectors of the timing features can be obtained after the vibration timing feature matrix is obtained, and the label vector refers to the column vector converted from the label vector of the group of timing features in the vibration timing feature matrix M. The i-th eigenvalue matrix can be regarded as the initial display Markov matrix corresponding to the i-th feature type, and the eigenvalue matrix can be usedi t indicates.
[0070] Exemplarily, the eigenvalue matrix of the i-th group of time series features is i In t, the transfer feature of each row can be expressed as:
[0071] i t[j]={M i [j],D i [j],L i [j]},
[0072] i=1, 2, ..., m; j=1, 2, ..., n-1;
[0073] in, i t[j] represents the eigenvalue matrix of the i-th group of time series features i The jth transmission row in t; M i [j] represents the eigenvalue matrix of the i-th group of time series features i The eigenvalue in the jth row of the transfer feature in t, that is, the i-th row of the vibration time series feature matrix M, is the time series feature row vector M i The j-th eigenvalue of D i [j] represents the eigenvalue matrix of the i-th group of time series features i The jth row in t transfers the corresponding difference value in the feature, D i It represents the differential vector of the i-th group of time series features; L i [j] represents the eigenvalue matrix of the i-th group of time series features i The jth row in t passes the corresponding label value in the feature, L i It represents the label vector of the i-th group of time series features. Explanatory, j ranges from 1 to n-1, corresponding to the time point of the input feature.
[0074] The multiple rows of transfer features in the eigenvalue matrix are sorted according to the preset rules to generate an explicit Markov transfer matrix with unchanged expression signs. Explanatory, before sorting, i The [j] in t[j] represents that the order of the transfer features corresponds to the time point one by one. The eigenvalue of the time series feature is a numerical value. The preset rule can be to sort the multiple rows of transfer features from small to large according to the eigenvalues of the time series features in the multiple rows of transfer features. Of course, it can also be to sort the multiple rows of transfer features from large to small according to the eigenvalues to generate an explicit Markov transfer matrix. The explicit Markov transfer matrix is represented by iT. It can be understood that the explicit Markov transfer matrix is generated by reordering the multiple rows of transfer features in the eigenvalue matrix.
[0075] For example, the display Markov matrix of the i-th feature type is expressed as i T=[M iT ;D i T ; L i T ]; where M i T Is to M i Remove the last row of eigenvalues, then convert the row vector into a column vector, and arrange and adjust them in ascending or descending order to obtain the representation of the eigenvalue column vector; D i T D i The differential vector is obtained by converting the row vector into a column vector and maintaining a one-to-one correspondence with the eigenvalue; where D i T The difference values in L i Each label value in the sorting adjustment generates M i T When , the corresponding eigenvalue remains unchanged. Similarly, L i T No more details.
[0076] At least one row with a label value of a preset value in the explicit Markov transfer matrix is obtained to generate a hidden Markov transfer matrix. As an implementation method, all rows with a label value of 1 in the explicit Markov transfer matrix can be extracted separately to generate a hidden Markov transfer matrix.
[0077] For example, T True is the general name for the hidden Markov matrix, i T True Represents the explicit Markov matrix of the i-th feature type, i=1, 2, 3, ...m; that is, each feature type corresponds to an explicit Markov matrix and a hidden Markov matrix.
[0078] Hidden Markov matrix of the i-th feature type i T True The generation process is: The Markov matrix will be displayed i T=[M i T ;D i T ; L i T ], the corresponding row with label value 1 is taken out and constructed. For example: i T True =[M Ture,i T ;D Ture,i T ; L Ture,i T ].
[0079] In the above implementation process, explicit Markov transfer matrix and implicit Markov transfer matrix are established for each type of feature, and the feature data corresponding to the vibration signal is enhanced to obtain more comprehensive vibration signal features and improve the accuracy of the enhanced data. Among them, the behavior in the target Markov matrix corresponds to the feature transfer row.
[0080] Optionally, in an embodiment of the present application, feature extraction is performed on the original external breaking training data A to obtain a vibration timing feature matrix M, including: obtaining a preset data feature calculation function, and processing the original external breaking training data A according to the data feature calculation function to obtain a vibration timing feature matrix M, that is, a vibration timing feature matrix M having multiple groups of timing features.
[0081] The data feature calculation method should have sliding window or convolution characteristics, so that the calculated features can also have the properties of time series data. The feature calculation function can be a statistical feature such as kurtosis, RMS, etc., or a frequency feature such as fft, Spectrogram, etc. The convolution operation parameters can be the parameters of a one-dimensional convolutional neural network model.
[0082] The original external training data A is extracted by using sliding window parameters, or the original external training data A is extracted by using convolution operation parameters to generate multiple sets of time series features. The time series feature row vectors M corresponding to the multiple sets of time series features are i , the vibration time series feature matrix M can be obtained by combining or summarizing.
[0083] Taking the original external broken training data A as the vibration frequency as an example, the sliding window parameters can be the window length, the window moving step length, and the number of frequency bands. The original external broken training data A is subjected to Fourier transform FFT with a window length of w and a window moving step length of s to obtain the vibration time series feature matrix M, where the vibration time series feature matrix can be the vibration time series frequency matrix;
[0084] M=Abs(FFT(A, window=w, step=s));
[0085] M is the vibration time series feature matrix. Each row in the vibration time series feature matrix M represents the vibration Fourier analysis frequency with a window length of w; each column of M represents the time corresponding to the median of each moving window w; and each element is the amplitude of the corresponding vibration frequency feature and time.
[0086] Using the convolution operation parameters to extract features from the original external training data A can be done by using a one-dimensional convolution operation for feature extraction. The one-dimensional convolution operation is a convolution operation used on one-dimensional time series data. By sliding a filter (also called a convolution kernel) on the time series data and calculating the convolution of the filter and the data, the feature representation of each position is obtained. The convolution operation can capture local patterns and relationships at different time points in the time series data. The size of the convolution kernel can control the local range of capture, such as a smaller convolution kernel can capture shorter time patterns, and a larger convolution kernel can capture longer time patterns.
[0087] In the above implementation process, the data feature calculation function is used to extract features from the original external training data to obtain the vibration time series feature matrix. The data feature calculation method should have sliding window or convolution characteristics so that the extracted features also have the properties of time series data, thereby improving the accuracy of the features.
[0088] Optionally, in an embodiment of the present application, the target Markov transfer matrix includes an explicit Markov transfer matrix; based on the pre-acquired target Markov transfer matrix, obtaining the corresponding vibration transfer differential vector and feature label vector includes: obtaining a preset initial value vector. The initial value vector can be a column vector, which is pre-constructed. When performing the first step of data enhancement, the initial value vector can be represented by 1V. Initial value vector 1V = [v [1,1] , v [2,1] , ..., v [i,1] ], i = 1, 2, 3, ..., m; Explanatory, the initial value vector may include 1 to m rows, each row corresponds to an initial value, and each initial value corresponds to a feature type; the initial value vector 1V corresponds to the arrangement of the vibration time series feature matrix M. [i,1] The initial value corresponding to the i-th row of data enhancement in step 1. [i,s] Enhance the eigenvalue corresponding to the i-th row for the s-th step data.
[0089] After constructing the initial value vector 1V, construct the initial value label vector corresponding to the initial value vector 1V, that is, the initial label. The initial label can be represented by 1Tag.
[0090] 1Tag=[tag [1,1] , tag [2,1] ,...,tag [i,1] ];v [1,1] With tag [1,1] Corresponding to; v [i,1] With tag [i,1] correspond.
[0091] The target transfer row is determined from the multiple transfer features of the explicit Markov transfer matrix according to the initial value corresponding to the initial value vector. For example, the initial value v of the i-th feature in the initial value vector 1V is [i,1] For example, the Markov matrix of the i-th feature type is displayed i The eigenvalue corresponding to the transfer characteristic of T, that is, the eigenvalue column vector M i T , determine the initial value v that is equal to or closest to the i-th feature [i,1] The characteristic value of is taken, and the row where the characteristic value is located is taken as the first index p. The transfer range is determined based on the first index p. The transfer range can be [pw, p+w]. That is, the transfer range is determined from the pwth row to the p+wth row. A second index value p` is randomly selected from the transfer range, and the target transfer row is determined according to the second index value p`. Wherein, w is a preset hyperparameter.
[0092] Each row in the vibration time series feature matrix M corresponds to a time series feature row vector M i , accordingly, the target Markov transfer matrix of the corresponding type can be generated; when performing data enhancement, the target Markov transfer matrix of the corresponding feature type should be selected. For example, the initial value v corresponding to the first row of the first feature type [1,1] M is the target Markov transfer matrix corresponding to the first type of feature type i T or M Ture,i T Determine the v [1,1] Close index rows are processed later.
[0093] After determining the target transfer row, the corresponding transfer value and feature label are calculated based on the target transfer row. Exemplarily, the transfer value and feature label at the s-th step of data enhancement can be calculated by the following formula.
[0094] Transfer value δv [i,s] = i T[p`, 2]; feature label s tag i = i T[p`,3].
[0095] in, i T is the explicit Markov transfer matrix of the i-th feature type, p' is the target transfer row corresponding to the second index value; 2 means i The second column of T; 3 means i The third column of T. When s = 1, δv [i,1] is the initial value v corresponding to the i-th initial value in the initial value vector 1V [i,1] The corresponding passed value generated when the enhancement is performed. 1tagi is the initial value v corresponding to the i-th initial value in the initial value vector 1V [i,1] The corresponding feature labels obtained when performing enhancement.
[0096] By using this method to determine the target transfer row, there will be no data interruption caused by the lack of initial values corresponding to the initial value vector in the target Markov transfer matrix, and the random generalization effect of data is achieved through the index range.
[0097] Specifically, the traditional method is to find a specific value. If the value does not exist, it will cause data interruption. The implementation method of the present application uses an index to find, which can eliminate data interruption. Improving the generalization effect is related to the width of the preset hyperparameter w. If the preset hyperparameter w is small, the generalization effect is small; within a reasonable range, if the preset hyperparameter w is large, the generalization effect is increased. The specific selection can be made according to the actual effect.
[0098] The transfer values calculated based on the target Markov matrix of each group of time series characteristics are arranged and summarized in order to obtain the corresponding vibration transfer difference vector, which can be a column vector. The vibration transfer difference vector can be expressed by δ s V stands for;
[0099] Among them, δ s V=[δv [1,s] ,δv [2,s] , ..., δv [m,s] ];
[0100] δv [1,s] ,δv [2,s] , ..., δv [m,s] is the transfer value, where s = 1, 2, 3...; δ s V represents the corresponding vibration transfer differential vector calculated when performing the s-th step of data enhancement. For example: 1V corresponds to δ1V;
[0101] Where, δ1V=[δv [1,1] ,δv [2,1] , ..., δv [m,1] ]; v1 and δv [1,1] Corresponding to; v i With δv [i,1] correspond.
[0102] The feature labels calculated based on the target Markov matrix of each group of time series features are summarized to obtain the corresponding feature label vector, which can be a column vector; the feature label vector can be used s tag means;
[0103] in, s tag=[ stag1, s tag2, ..., s tag m ], s tag1, s tag2, ..., s tag m is the feature label, 1tag1 can be understood as the feature value v calculated when s=1 during the first step of data enhancement [1,1] The corresponding feature label.
[0104] In the above implementation process, after determining the target transfer row, the corresponding transfer value and feature label are calculated based on the target transfer row. In the process of determining the target transfer row, the transfer range can be determined first, and there will be no data interruption caused by the lack of initial values corresponding to the initial value vector in the explicit Markov transfer matrix, thereby improving the data generalization effect.
[0105] Similarly, if the hidden Markov transfer matrix is used as the target Markov transfer matrix, the above method is also used when the hidden Markov transfer matrix is used for data enhancement to avoid data interruption and improve data generalization effect. For example, a preset initial value vector 1V is obtained, and the target transfer row is determined from the hidden Markov transfer matrix according to the initial value corresponding to the initial value vector 1V. The initial value v of the i-th feature in the initial value vector 1V is [i,1] For example, from the hidden Markov transfer matrix i T True Among the eigenvalues corresponding to the transfer characteristics of , determine the one that is equal to or closest to the initial value v [i,1] The characteristic value of is taken, and the row where the characteristic value is located is taken as the first index p. The transfer range is determined based on the first index p. The transfer range can be [pw, p+w]. That is, the transfer range is determined from the pwth row to the p+wth row. A second index value p` is randomly selected from the transfer range, and the target transfer row is determined according to the second index value p`. Wherein, w is a preset hyperparameter.
[0106] The corresponding transfer values and feature labels are calculated based on the target transfer row of the target Markov transfer matrix. The corresponding transfer values obtained based on the target Markov transfer matrix corresponding to each type of time series feature are arranged and summarized in order to obtain the corresponding vibration transfer difference vector; the corresponding feature labels obtained based on the target Markov transfer matrix corresponding to each type of time series feature are summarized to obtain the corresponding feature label vector.
[0107] Optionally, in an embodiment of the present application, a vibration feature time series vector is generated based on a preset initial value vector and a vibration transfer differential vector; and a current label corresponding to the vibration feature time series vector is determined based on a feature label vector, including: adding the initial value vector and the vibration transfer differential vector to obtain the vibration feature time series vector. The vibration feature time series vector is a new vector relative to the initial value vector, and is also a vector enhanced based on the target Markov transfer matrix. Any two adjacent vibration feature time series vectors are represented by i V and j V represents the current time step, and the latter represents the next time step. The recursive calculation formula of the vibration characteristic time series vector is: j V= i V+δ i V; among them, i V may be a characteristic vector, in particular, when i=1, j=2, 1V is the initial value vector, δ1V is the corresponding vibration transfer differential vector, and 2V=1V+δ1V.
[0108] As an implementation method, the corresponding vibration feature time series vector of each column can be gradually generated to finally obtain a new vibration time series feature matrix M new . When gradually generating each corresponding column of vibration feature time series vectors, the next column of feature vectors is calculated based on the previous column of feature vectors. For example, when performing the first step of data enhancement, the previous column of feature vectors can be a randomly constructed initial value vector, and then the next column of feature vectors is calculated, that is, the second column of feature vectors is obtained; when performing the second step of data enhancement, the previous column of feature vectors is the second column of feature vectors, that is, the next column of feature vectors is calculated based on the second column of feature vectors. The initial value vector can be defined as the vector used to calculate the next column of feature vectors.
[0109] After obtaining the vibration feature time series vector, you need to obtain the current label corresponding to the vibration feature time series vector. Since each feature is accompanied by a label, and the label values may be different, a uniform value is required as the feature vector label of the current time step, that is, the current label.
[0110] The current label is determined, for example, by judging whether the sum of the feature labels in the feature label vector is greater than a preset threshold. If so, the current label is determined to be the first label; if not, the current label is determined to be the second label. The preset threshold can be the ratio of the number of rows of the timing feature in the vibration timing feature matrix to the hyperparameter. The following formula is used to express that the label value of the current label can be expressed as j TAG, if sum( j TAG)>m / c1, m is the number of rows of the time series feature in the vibration time series feature matrix, c1 is a hyperparameter (the hyperparameter can be set according to actual needs, and in an optional embodiment, the hyperparameter can be greater than 2), then the current tagj TAG=1, otherwise the current tag j TAG=0.
[0111] In the above implementation process, the vibration feature time series vector and the vibration transfer differential vector at the current moment are added to obtain the vibration feature time series vector at the next moment, and the current label corresponding to the vibration feature time series vector at the next moment is obtained to enhance the feature data corresponding to the vibration signal.
[0112] Optionally, in an embodiment of the present application, the target Markov transfer matrix also includes a hidden Markov transfer matrix; when generating multiple vibration feature time series vectors, the explicit Markov transfer matrix and the hidden Markov transfer matrix can be used alternately to generate multiple vibration feature time series vectors. The following describes the process of alternating between the explicit Markov transfer matrix and the hidden Markov transfer matrix.
[0113] Replacing the explicit Markov transfer matrix with the implicit Markov transfer matrix may include two switching mechanisms, and either switching mechanism may be used to achieve the replacement of the target Markov transfer matrix.
[0114] The first switching mechanism: If the current label is determined to be the first label, the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix. For example, the first label can be 1. If the current label is determined to be 1, the target Markov transfer matrix is switched to the implicit Markov transfer matrix. The next vibration feature time series vector and the corresponding current label are calculated using the implicit Markov transfer matrix. Until the conditions for switching the explicit Markov transfer matrix are met, it can be switched to the explicit Markov transfer matrix.
[0115] The second switching mechanism: If the explicit Markov transfer matrix is used as the target Markov transfer matrix for a number of times greater than a first count threshold, the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix. For example, if the explicit Markov transfer matrix is used continuously for a number of times greater than a first count threshold, it is switched to the implicit Markov transfer matrix.
[0116] The following describes the steps for determining the first number threshold. After obtaining the vibration timing feature matrix, obtain the first continuous number list according to the corresponding feature labels of the vibration timing feature matrix. For example, the corresponding feature labels of the vibration timing feature matrix are [0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0], and the value 0 has three continuous modes, 2 consecutive, 3 consecutive, and 4 consecutive, which appear 2 times, 1 time, and 1 time respectively, then the first continuous number list C0 = [2, 2, 3, 4]. The first number threshold is any value in the first continuous number list, which can be 2, 3, or 4.
[0117] In the above implementation process, when the conditions are met, the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix, which simulates the random appearance interval of small sample labels in the feature layer of the original data, not only retaining its physical meaning, but also having the characteristics of random enhancement.
[0118] Optionally, in an embodiment of the present application, after the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix, the implicit Markov transfer has an exit mechanism, and the method further includes: if the current label is determined to be the second label, the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix. Continuing with the above embodiment, the second label can be 0, and if the current label is determined to be 0, the target Markov transfer matrix is switched to the explicit Markov transfer matrix.
[0119] Or, if the number of times the hidden Markov transfer matrix is used as the target Markov transfer matrix is greater than the second number threshold, the target Markov transfer matrix is replaced by the explicit Markov transfer matrix from the hidden Markov transfer matrix. For example, if the number of times the hidden Markov transfer matrix is used continuously is greater than the second number threshold, it is switched to the explicit Markov transfer matrix.
[0120] The following is an introduction to the steps for determining the second number threshold. After obtaining the vibration timing feature matrix, obtain the second continuous number list according to the corresponding feature labels of the vibration timing feature matrix. Continuing with the above embodiment, the corresponding feature labels of the vibration timing feature matrix are [0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0], and the value 1 has two continuous modes, one is 2 consecutive and the other is 3 consecutive, where the number of 2 consecutive occurrences is 2 and the number of 3 consecutive occurrences is 1, and the second continuous number list is C1 = [2, 2, 3]. The second number threshold is any value in the second continuous number list, which can be 2 or 3.
[0121] In the above implementation process, when the conditions are met, the target Markov transfer matrix is replaced by the explicit Markov transfer matrix from the implicit Markov transfer matrix to simulate the continuous change time of the small sample labels of the feature layer in the original data, which not only retains its physical meaning but also has the characteristics of random enhancement.
[0122] It can be understood that in the process of using the explicit Markov transfer matrix for data enhancement, until the condition for switching the hidden Markov transfer matrix is met, the target Markov transfer matrix can be switched to the hidden Markov transfer matrix again.
[0123] Repeat step S110 and step S120 to generate multiple vibration feature time series vectors. In this process, the explicit Markov transfer matrix and the implicit Markov transfer matrix can be used alternately as the target Markov transfer matrix. The multiple vibration feature time series vectors generated are summarized in the order of generation to obtain enhanced data, which includes multiple enhanced vibration signal features, and the repeated execution is stopped until the required data length is reached. After that, the preset neural network model is trained with the enhanced data to obtain an external damage recognition model, which is used to predict the input vibration signal to be predicted and obtain an external damage prediction result.
[0124] See also Figure 2 A schematic diagram of target Markov transfer matrix switching provided by an embodiment of the present application is shown.
[0125] In an optional embodiment, pre-collected original external crack training data and original label data corresponding to the original external crack training data are obtained.
[0126] Feature extraction is performed on the original external fracture training data to obtain the vibration time series feature matrix.
[0127] The label vector corresponding to the vibration time series feature matrix is obtained according to the original label data corresponding to the original external training data; the target Markov transfer matrix is established based on the vibration time series feature matrix and the label vector corresponding to the vibration time series feature matrix. The target Markov transfer matrix includes an explicit Markov transfer matrix and an implicit Markov transfer matrix.
[0128] The corresponding vibration transfer difference vector and feature label vector are calculated by using the explicit Markov transfer matrix.
[0129] A vibration characteristic time series vector is generated based on a preset initial value vector and a vibration transfer difference vector; and a current label corresponding to the vibration characteristic time series vector is determined based on the characteristic label vector.
[0130] It is determined whether the sum of the feature labels in the feature label vector is greater than a preset threshold. If so, the explicit Markov transfer matrix is replaced by the implicit Markov transfer matrix.
[0131] If the sum of the feature labels is not greater than a preset threshold, it can be further determined whether the number of times the explicit Markov transfer matrix is used as the target Markov transfer matrix is greater than a first count threshold. If so, the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix.
[0132] Of course, when determining whether to switch the hidden Markov transfer matrix, the number of uses may be determined first, and then whether the sum of the feature labels is greater than a preset threshold. The embodiment of the present application does not limit the execution order of the switching conditions of the two hidden Markov transfer matrices.
[0133] After replacement, the hidden Markov transfer matrix is used to calculate the next vibration feature time series vector and the corresponding current label.
[0134] It can be understood that after switching to the hidden Markov transfer matrix, it is possible to determine again whether the sum of the feature labels in the feature label vector is greater than the preset threshold. If so, continue to use the hidden Markov transfer matrix to perform data enhancement on the initial vector; if not, switch to the explicit Markov transfer matrix.
[0135] A plurality of vibration feature time series vectors are generated by repeatedly switching the target Markov transfer matrix; the generated plurality of vibration feature time series vectors are summarized in the order of generation to obtain enhanced data, wherein the enhanced data includes a plurality of enhanced vibration signal features, and the repeated execution is stopped until the required data length is reached.
[0136] See also Figure 3 The structural diagram of the data enhancement device provided in the embodiment of the present application is shown; the embodiment of the present application provides a data enhancement device 200, including:
[0137] The difference calculation module 210 is used to obtain the corresponding vibration transfer difference vector and feature label vector based on the pre-acquired target Markov transfer matrix; the target Markov transfer matrix is established based on the vibration time series feature matrix; the vibration time series feature matrix is obtained by extracting features from the pre-collected original external break training data; the original external break training data includes the vibration signal;
[0138] The feature generation module 220 is used to generate a vibration feature time series vector based on a preset initial value vector and a vibration transfer differential vector; and to determine a current label corresponding to the vibration feature time series vector based on a feature label vector; the vibration feature time series vector is used to characterize the vibration signal characteristics obtained after enhancing the characteristics of the vibration signal.
[0139] Optionally, in an embodiment of the present application, the data enhancement device also includes a Markov transfer matrix establishment module, which is used to obtain pre-collected original external break training data and original label data corresponding to the original external break training data; the vibration signal includes the energy or frequency of the vibration signal; the original label data includes an external break signal label and a non-external break signal label; feature extraction is performed on the original external break training data to obtain a vibration timing feature matrix; a label vector corresponding to the vibration timing feature matrix is obtained according to the original label data corresponding to the original external break training data; and a target Markov transfer matrix is established based on the vibration timing feature matrix and the label vector corresponding to the vibration timing feature matrix.
[0140] Optionally, in an embodiment of the present application, the target Markov transfer matrix includes an explicit Markov transfer matrix and an implicit Markov transfer matrix; the Markov transfer matrix establishment module is also used to calculate the differential vectors corresponding to multiple groups of timing features in the vibration timing feature matrix; based on the eigenvalues of the timing features in the vibration timing feature matrix, the differential vectors corresponding to the timing features, and the label vectors corresponding to the vibration timing feature matrix, an eigenvalue matrix is generated; the eigenvalue matrix includes multiple rows of transfer features; the multiple rows of transfer features in the eigenvalue matrix are sorted according to preset rules to generate an explicit Markov transfer matrix; at least one row of feature transfer rows whose label value is a preset value in the explicit Markov transfer matrix is obtained to generate an implicit Markov transfer matrix.
[0141] Optionally, in an embodiment of the present application, the Markov transfer matrix establishment module is also used to obtain a preset data feature calculation function; the data feature calculation function includes sliding window parameters or convolution operation parameters; the original external break training data is feature extracted using the sliding window parameters, or the original external break training data is feature extracted using the convolution operation parameters to generate multiple rows of timing features; and a vibration timing feature matrix is generated based on the multiple rows of timing features.
[0142] Optionally, in an embodiment of the present application, the target Markov transfer matrix of the data enhancement device includes an explicit Markov transfer matrix; the data enhancement device is used to obtain a preset initial value vector; the initial value vector is obtained by setting initial values and initial labels for each group of time series features in the vibration time series feature matrix; the target transfer row is determined from multiple rows of feature transfer rows of the explicit Markov transfer matrix according to the initial value corresponding to the initial value vector; the corresponding transfer value and feature label are calculated based on the target transfer row; the transfer values corresponding to each initial value are summarized to obtain the corresponding vibration transfer difference vector; the feature labels corresponding to each initial value are summarized to obtain the corresponding feature label vector.
[0143] Optionally, in an embodiment of the present application, the feature generation module 220 of the data enhancement device is also used to add the initial value vector and the vibration transfer differential vector to obtain a vibration feature time series vector; determine whether the sum of the feature labels in the feature label vector is greater than a preset threshold, and if so, the current label is determined to be the first label; if not, the current label is determined to be the second label.
[0144] Optionally, in an embodiment of the present application, the data enhancement device also includes an implicit switching module, which is used to replace the target Markov transfer matrix from an explicit Markov transfer matrix to an implicit Markov transfer matrix if the current label is determined to be the first label; use the implicit Markov transfer matrix to calculate the next vibration feature time series vector and the current label corresponding to the vibration feature time series vector; or; if the number of times the explicit Markov transfer matrix is used as the target Markov transfer matrix is greater than a first number threshold, replace the target Markov transfer matrix from an explicit Markov transfer matrix to an implicit Markov transfer matrix.
[0145] Optionally, in an embodiment of the present application, the data enhancement device also includes an explicit switching module, which is used to replace the target Markov transfer matrix from a hidden Markov transfer matrix to an explicit Markov transfer matrix if the current label is determined to be the second label; or; if the number of times the hidden Markov transfer matrix serves as the target Markov transfer matrix is greater than a second number threshold, the target Markov transfer matrix is replaced from a hidden Markov transfer matrix to an explicit Markov transfer matrix.
[0146] It should be understood that the device corresponds to the above-mentioned data enhancement method embodiment and can perform the various steps involved in the above-mentioned method embodiment. The specific functions of the device can be referred to in the above description. To avoid repetition, the detailed description is appropriately omitted here. The device includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system (OS) of the device.
[0147] See also Figure 4 The electronic device 300 provided in the embodiment of the present application includes: a processor 310 and a memory 320, wherein the memory 320 stores machine-readable instructions executable by the processor 310, and when the machine-readable instructions are executed by the processor 310, the above method is executed.
[0148] An embodiment of the present application further provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above method is executed.
[0149] Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.
[0150] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0151] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0152] The above description is only an optional implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.
Claims
1. A data enhancement method, characterized in that: include: Based on the pre-acquired target Markov transfer matrix, the corresponding vibration transfer difference vector and feature label vector are obtained; the target Markov transfer matrix is established based on the vibration time series feature matrix; the vibration time series feature matrix is obtained by extracting features from the pre-collected original external break training data; the original external break training data includes a vibration signal; Generate a vibration feature time series vector based on a preset initial value vector and the vibration transfer difference vector; and determine a current label corresponding to the vibration feature time series vector based on the feature label vector; the vibration feature time series vector is used to characterize the vibration signal feature obtained after enhancing the feature of the vibration signal; Before obtaining the corresponding vibration transfer difference vector and feature label vector based on the pre-acquired target Markov transfer matrix, the method further includes: The original external-break training data collected in advance and the original label data corresponding to the original external-break training data are obtained; the vibration signal includes the energy or frequency of the vibration signal; the original label data includes an external-break signal label and a non-external-break signal label; Extracting features from the original external fracture training data to obtain a vibration time series feature matrix; Obtaining a label vector corresponding to the vibration time series feature matrix according to the original label data corresponding to the original external training data; Establishing the target Markov transfer matrix based on the vibration time series feature matrix and the label vector corresponding to the vibration time series feature matrix; The target Markov transfer matrix includes an explicit Markov transfer matrix; the step of obtaining the corresponding vibration transfer difference vector and feature label vector based on the pre-acquired target Markov transfer matrix includes: Obtaining the preset initial value vector; the initial value vector is obtained by setting initial values and initial labels for each group of the time series features in the vibration time series feature matrix; Determining a target transfer row from a plurality of characteristic transfer rows of the explicit Markov transfer matrix according to an initial value corresponding to the initial value vector; Calculate and obtain corresponding transfer values and feature labels based on the target transfer row; Summarize the transfer values corresponding to each initial value to obtain the corresponding vibration transfer difference vector; The feature labels corresponding to each initial value are summarized to obtain the corresponding feature label vector.
2. The method according to claim 1, characterized in that The target Markov transfer matrix includes an explicit Markov transfer matrix and a hidden Markov transfer matrix; The step of establishing the target Markov transfer matrix based on the vibration time series feature matrix and the label vector corresponding to the vibration time series feature matrix includes: Calculating differential vectors corresponding to multiple groups of time series features in the vibration time series feature matrix; Generate an eigenvalue matrix based on the eigenvalues of the timing features in the vibration timing feature matrix, the differential vectors corresponding to the timing features, and the label vectors corresponding to the vibration timing feature matrix; the eigenvalue matrix includes multiple rows of transfer features; Sorting the multiple rows of transfer features in the eigenvalue matrix according to a preset rule to generate an explicit Markov transfer matrix; At least one feature transfer row whose label value is a preset value in the explicit Markov transfer matrix is obtained to generate the implicit Markov transfer matrix.
3. The method according to claim 1, characterized in that Feature extraction is performed on the original external fracture training data to obtain a vibration time series feature matrix, including: Obtaining a preset data feature calculation function; the data feature calculation function includes sliding window parameters or convolution operation parameters; Using the sliding window parameters to perform feature extraction on the original external training data, or using the convolution operation parameters to perform feature extraction on the original external training data, to generate multiple rows of the time series features; The vibration timing characteristics matrix is generated based on a plurality of rows of the timing characteristics.
4. The method according to claim 1, characterized in that: The step of generating a vibration feature time series vector based on a preset initial value vector and the vibration transfer differential vector; and determining a current label corresponding to the vibration feature time series vector based on the feature label vector includes: Adding the initial value vector and the vibration transfer difference vector to obtain the vibration characteristic time series vector; It is determined whether the sum of the feature labels in the feature label vector is greater than a preset threshold value. If so, the current label is determined to be the first label; if not, the current label is determined to be the second label.
5. The method according to claim 4, characterized in that The target Markov transfer matrix also includes a hidden Markov transfer matrix; the method also includes: If the current label is determined to be the first label, the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix; the next vibration feature time series vector and the current label corresponding to the vibration feature time series vector are calculated using the implicit Markov transfer matrix; Or, if the number of times the explicit Markov transfer matrix is used as the target Markov transfer matrix is greater than a first number threshold, the target Markov transfer matrix is replaced by the implicit Markov transfer matrix from the explicit Markov transfer matrix.
6. The method according to claim 5, characterized in that After replacing the target Markov transfer matrix from the explicit Markov transfer matrix to the implicit Markov transfer matrix, the method further includes: If the current label is determined to be the second label, the target Markov transfer matrix is replaced by the explicit Markov transfer matrix from the implicit Markov transfer matrix; Or; the number of times the hidden Markov transfer matrix is used as the target Markov transfer matrix is greater than a second number threshold, and the target Markov transfer matrix is replaced by the explicit Markov transfer matrix from the hidden Markov transfer matrix.
7. A data enhancement device, characterized in that: include: A difference calculation module is used to obtain a corresponding vibration transfer difference vector and a feature label vector based on a pre-acquired target Markov transfer matrix; the target Markov transfer matrix is established based on a vibration time series feature matrix; the vibration time series feature matrix is obtained by extracting features from pre-collected original external break training data; the original external break training data includes a vibration signal; A feature generation module, used to generate a vibration feature time series vector based on a preset initial value vector and the vibration transfer difference vector; and to determine a current label corresponding to the vibration feature time series vector based on the feature label vector; the vibration feature time series vector is used to characterize the vibration signal feature obtained after enhancing the feature of the vibration signal; A Markov transfer matrix establishment module is used to obtain the pre-collected original external break training data and the original label data corresponding to the original external break training data; the vibration signal includes the energy or frequency of the vibration signal; the original label data includes the external break signal label and the non-external break signal label; feature extraction is performed on the original external break training data to obtain a vibration time series feature matrix; Obtain the label vector corresponding to the vibration time series feature matrix according to the original label data corresponding to the original external training data; establish the target Markov transfer matrix based on the vibration time series feature matrix and the label vector corresponding to the vibration time series feature matrix; The target Markov transfer matrix includes an explicit Markov transfer matrix; the data enhancement device is also used to obtain the preset initial value vector; the initial value vector is obtained by setting initial values and initial labels for each group of the timing features in the vibration timing feature matrix; the target transfer row is determined from multiple rows of feature transfer rows of the explicit Markov transfer matrix according to the initial value corresponding to the initial value vector; the corresponding transfer value and feature label are calculated based on the target transfer row; the transfer values corresponding to each initial value are summarized to obtain the corresponding vibration transfer differential vector; the feature labels corresponding to each initial value are summarized to obtain the corresponding feature label vector.
8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is performed.
