Distributed optical fiber vibration signal pattern classification method and system based on neural network
Automatically learning features through the neural network simplifies the design of the distributed optical fiber vibration signal monitoring system, solves the problems of complex design and poor adaptability in the existing technology, and achieves efficient vibration signal classification and identification.
Patent Information
- Application Number
- CN202111521196.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-13
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-13
AI Technical Summary
Existing distributed optical fiber vibration monitoring solutions require complex signal processing methods, resulting in complex system design, reliance on feature engineering, and poor adaptability.
A distributed fiber optic vibration signal mode classification method based on neural networks is adopted, using distributed vibration sensing equipment to sample fiber optic vibration signals, and automatically learning features through a one-dimensional convolutional neural network to simplify system design and improve adaptability.
It achieves simplification of system design and good adaptability to different vibration categories, overcomes the problem of signal attenuation, and improves classification performance and recognition accuracy.
Smart Images

Figure CN114266271B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of signal processing, and more specifically, relates to a distributed optical fiber vibration signal pattern classification method and system based on neural network. Background Art
[0002] Distributed fiber optic vibration monitoring systems have been widely used in the fields of tunnel and pipeline security positioning, power system cable monitoring, information pipeline online monitoring, high-speed railway security systems, long-distance pipeline safety monitoring, and perimeter security of key facilities.
[0003] In the existing distributed fiber optic vibration monitoring schemes, Tian Miao et al. used radial basis functions combined with empirical mode decomposition to realize the recognition of four events: shearing, shaking, knocking and climbing, with an average recognition rate of 85.75%; Li Zhichen et al. used short-time Fourier and singular value decomposition to realize feature extraction, and used support vector machines to recognize and classify vibration signals, with an accuracy rate of more than 90%; Xu et al. proposed a feature extraction scheme of multi-parameter fusion features, and used support vector machines to realize the classification of four types of events such as trampling and knocking, with an average recognition rate of more than 93%.
[0004] However, the above-mentioned recognition schemes all have some defects that cannot be ignored: first, they all require complex signal processing methods and the system design is relatively complex; second, the above-mentioned schemes all use feature engineering methods, and the performance of the system depends on the effectiveness of the selected features, so they have poor adaptability to different vibration categories. Summary of the invention
[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a distributed optical fiber vibration signal pattern classification method and system based on a neural network, with the aim of solving the technical problems that the existing distributed optical fiber vibration monitoring schemes require complex signal processing methods, resulting in a relatively complex system design, and that these schemes all use feature engineering methods, and the performance of the system depends on the validity of the selected features, resulting in poor adaptability to different vibration categories.
[0006] To achieve the above object, according to one aspect of the present invention, a distributed optical fiber vibration signal pattern classification method based on a neural network is provided, comprising the following steps:
[0007] (1) Use distributed vibration sensing DAS equipment to sample to obtain num1 optical fiber vibration signals {x(1), x(2), …, x(num1)}, and x(i) = {x1(i), x2(i), …, x num2 (i)}, where i∈[1, num1], x j(i) represents the jth vibration value of the i-th optical fiber vibration signal, j∈[1,num2], num2 represents the vector dimension in the i-th optical fiber vibration signal;
[0008] (2) preprocessing the multiple optical fiber vibration signals sampled in step (1) to obtain a vibration sample set consisting of the preprocessed multiple optical fiber vibration signals;
[0009] (3) Input the vibration sample set obtained in step (2) into the trained one-dimensional convolutional neural network to obtain the corresponding classification results.
[0010] Preferably, the sampling frequency F of the DAS device in step (1) is sampling equal:
[0011]
[0012] Among them, R space and V fiber They represent the spatial resolution of the DAS device and the propagation speed of the laser in the optical fiber respectively.
[0013] Preferably, the time resolution Rtime of the DAS device sampling is equal to:
[0014]
[0015] Where Num average and F trigger They represent the cumulative number of noise reduction and the trigger frequency of sampling of the DAS device, and F trigger equal:
[0016]
[0017] Where Num sampling It is 8192.
[0018] Preferably, step (2) comprises the following sub-steps:
[0019] (2-1) Set counter cnt1 = 1;
[0020] (2-2) Determine whether cnt1 is greater than the total number num1 of optical fiber vibration signals obtained in step (1), if so, proceed to step (2-5), otherwise proceed to step (2-3);
[0021] (2-3) performing a convolution operation on each vibration value in the cnt1-th optical fiber vibration signal x(cnt1) to obtain a low-pass signal y(cnt1) corresponding to the cnt1-th optical fiber vibration signal;
[0022] (2-4) Set counter cnt1=cnt1+1 and return to step (2-2);
[0023] (2-5) Obtain the maximum value max among the numbers num1*num2 included in the low-pass signal sequence {y(1), y(2), ..., y(num1)} composed of the low-pass signals corresponding to all optical fiber vibration signals;
[0024] (2-6) Create an empty signal list z = {} and set the counter cnt2 = 1;
[0025] (2-7) Determine whether cnt2 is greater than the total number num1 (i.e., 2500) of optical fiber vibration signals obtained in step (1). If so, proceed to step (2-10); otherwise, proceed to step (2-8);
[0026] (2-8) Calculate the maximum value max(cnt2) of the num2 numbers included in the low-pass signal y(cnt2) corresponding to the cnt2th optical fiber vibration signal, and determine whether max(cnt2)>alpha*max. If so, add the low-pass signal y(cnt2) corresponding to the cnt2th optical fiber vibration signal to the end of the signal list z and enter step (2-9), otherwise enter step (2-9), where the value of the intermediate parameter alpha is 0.7;
[0027] (2-9) Set counter cnt2=cnt2+1, and return to step (2-7);
[0028] (2-10) Set counter cnt3 = 1;
[0029] (2-11) Determine whether cnt3 is greater than the total number of low-pass signals num3 in list z, if so, proceed to step (2-13), otherwise proceed to step (2-12);
[0030] (2-12) Normalize each value zk(cn3) in the cnt3th low-pass signal z(cnt3) in the list z to the interval [0, 1] to obtain a normalized vibration signal t(cnt3);
[0031] (2-13) Set counter cnt3=cnt3+1, and return to step (2-11);
[0032] (2-14) Create an empty sample list s = {} and set the counter cnt4 = 1;
[0033] (2-15) Determine whether cnt4 is greater than the total number of low-pass signals num3 in list z, if so, go to step (2-22), otherwise go to step (2-16);
[0034] (2-16) Obtain the maximum value of the normalized vibration signal t(cnt4) And the index index (cnt4) of the maximum value in the vibration signal t (cnt4);
[0035] (2-17) Determine whether the serial number index (cnt4) obtained in step (2-16) is less than 51. If so, set index (cnt4) = 51, and then go to step (2-18); otherwise, set index (cnt4) = num2-50, and then go to step (2-18);
[0036] (2-18) will (t index(cnt4)-50 (cnt4),...,t index(cnt4)+50 (cnt4)) is added to the end of the sample list s;
[0037] (2-19) Set counter cnt4=cnt4+1, and return to step (2-15);
[0038] (2-20) The sample list s is taken as the final vibration sample set.
[0039] Preferably, the convolution operation on x(cnt1) in step (2-3) is performed using the following formula:
[0040]
[0041] where y j (cnt1) represents the result of convolution operation on the jth vibration value in the cnt1th fiber vibration signal x(cnt1), And the value of parameter σ is 2;
[0042] In step (2-12), t(cnt3)={t1(cnt3), t2(cnt3), ..., t num2 (cnt3)}, where t j (cnt3) represents the jth value of the cnt3th low-pass signal z(cnt3) in the list z, and:
[0043]
[0044] Where maximize means taking the maximum value.
[0045] Preferably, the one-dimensional convolutional neural network includes six layers, wherein the first, second and third layers are convolutional layers, each layer is composed of two convolutional layers plus a maximum pooling layer, and is used to extract the features of the vibration signal; the fourth layer is a Flatten layer, which converts the features obtained by the third convolutional layer into a one-dimensional structure; the fifth layer is a fully connected layer, which realizes the classification of signal features, and the sixth layer is a Softmax layer, which normalizes the results obtained by the fifth layer into probabilities.
[0046] Preferably, the first layer of the one-dimensional convolutional neural network is the first convolutional block, and the first convolutional block consists of two convolutional layers and a maximum pooling layer. Each convolutional layer uses a convolution kernel of length 3, each convolutional layer uses 16 filters, the first convolutional layer does not use an activation function, and the second convolutional layer uses a tanh activation function. The window length of the last pooling layer is 3;
[0047] The second layer of the one-dimensional convolutional neural network is the second convolution block, whose input is the output of the first convolution block. The second convolution block consists of two convolution layers and a maximum pooling layer. Each convolution layer uses a convolution kernel of length 3, each convolution layer uses 64 filters, and each convolution layer uses a tanh activation function. The window length of the last pooling layer is 3;
[0048] The third layer of the one-dimensional convolutional neural network is the third convolutional block, whose input is the output of the second convolutional block. The third convolutional block consists of two convolutional layers and a maximum pooling layer. Each convolutional layer uses a convolution kernel of length 3, each convolutional layer uses 64 filters, and each convolutional layer uses a tanh activation function. The window length of the last pooling layer is 3;
[0049] The fourth layer of the one-dimensional convolutional neural network is the Flatten layer, whose input is the output of the third convolutional block. It "stretches" the features obtained by the third convolutional block into a one-dimensional structure.
[0050] The fifth layer of the one-dimensional convolutional neural network is a fully connected layer, whose input is the output of the Flatten layer, which realizes the classification of signal features;
[0051] The sixth layer of the one-dimensional convolutional neural network is the Softmax layer, whose input is the output of the fully connected layer, which is used to normalize the output into the probability of the category.
[0052] Preferably, the one-dimensional convolutional neural network is trained by the following steps:
[0053] A. Collect multiple categories of vibration signals as data sets for training neural networks, and divide them into training sets and test sets in a ratio of 7:3;
[0054] B. Input the training set obtained by step A into the one-dimensional convolutional neural network;
[0055] C. Use the BP algorithm to update and optimize the weight parameters and bias parameters of each layer in the one-dimensional convolutional neural network to obtain an updated one-dimensional convolutional neural network;
[0056] D. Iteratively train the one-dimensional convolutional neural network updated in step C until the loss function of the one-dimensional convolutional neural network reaches the minimum.
[0057] Preferably, in step C, the initial value of the weight parameter is a random value close to 0, the initial value of the bias parameter is set to 0, and the back propagation algorithm adopts the Adam optimizer with an adaptive learning rate.
[0058] In step D, cross entropy is used as the loss function, namely:
[0059]
[0060] Wherein, batch_size is the capacity of the batch, and the present invention selects batch_size=32; category_num is the number of vibration types in the training set, l ic is a sign function. If the true category of the i-th vibration signal in the training set is equal to the vibration type c, then l ic Take 1, otherwise take 0, p ic is the probability that the predicted category of the ith vibration signal s(i) in the training set is equal to the vibration type c.
[0061] According to another aspect of the present invention, there is provided a distributed optical fiber vibration signal pattern classification system based on a neural network, comprising:
[0062] The first module is used to use a distributed vibration sensing DAS device for sampling to obtain num1 optical fiber vibration signals {x(1), x(2), ..., x(num1)}, and x(i) = {x1(i), x2(i), ..., x num2 (i)}, where i∈[1, num1], x j (i) represents the jth vibration value of the i-th optical fiber vibration signal, j∈[1,num2], num2 represents the vector dimension in the i-th optical fiber vibration signal;
[0063] The second module is used to preprocess the multiple optical fiber vibration signals sampled by the first module to obtain a vibration sample set consisting of the preprocessed multiple optical fiber vibration signals;
[0064] The third module is used to input the vibration sample set obtained by the second module into the trained one-dimensional convolutional neural network to obtain the corresponding classification result.
[0065] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0066] (1) Since the present invention adopts step (3), a deep neural network is used to automatically learn the features in the vibration signal, and the system design is relatively simple. In addition, since the present invention does not directly use the feature engineering method, it has better adaptability to different vibration categories;
[0067] (2) The present invention adopts steps (2-10) to (2-13), which normalizes all vibration values of the vibration signal to a closed interval [0, 1], thereby overcoming the problem of signal attenuation in long-distance optical fibers;
[0068] (3) The present invention adopts steps (2-14) to (2-19), which intercepts a small section of the signal before and after the maximum vibration value of the vibration signal as the input of the classifier, so that the classifier can focus on the most significant part of the signal, thereby improving the classification performance of the model;
[0069] (4) The present invention obtains the real-time alarm data sent by the sensor, performs low-pass filtering on the data to eliminate high-frequency noise; locates the alarm point according to the characteristics of the signal, and intercepts a fixed-length signal segment that meets the neural network input length requirement based on the positioning result; normalizes the signal segment and inputs it into the neural network; uses a batch random gradient descent algorithm to train the network to obtain the neural network model and parameters used for judgment. The neural network-based distributed optical fiber sensor alarm signal pattern recognition system of the present invention can realize real-time judgment of the cause of the alarm after the distributed optical fiber sensor generates an alarm signal, which is convenient for management personnel to quickly locate the location and cause of the alarm, and facilitate them to quickly make corresponding responses. The method is simple and suitable for widespread promotion. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 It is a flow chart of a distributed optical fiber vibration signal pattern classification method based on a neural network of the present invention;
[0071] Figure 2 It is an architecture diagram of the one-dimensional convolutional neural network used in the method of the present invention. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0073] The present invention adopts a deep learning method to avoid the feature extraction step required by previous methods, uses a multi-layer one-dimensional convolution application network to automatically learn classification features, and then uses a fully connected layer and a softmax layer to realize the classification of vibration causes. It has the characteristics of simple algorithm design and easy implementation. Since the features are the result of system autonomous learning, it has good adaptability.
[0074] like Figure 1 As shown, the present invention provides a distributed optical fiber vibration signal pattern classification method based on a neural network, comprising the following steps:
[0075] (1) A distributed fiber acoustic sensing (DAS) device is used for sampling (in the present invention, the sampling period is 10 seconds) to obtain num1 optical fiber vibration signals {x(1), x(2), ..., x(num1)}, and x(i) = {x1(i), x2(i), ..., x num2 (i)}, where i∈[1, num1], x j (i) represents the jth vibration value of the i-th optical fiber vibration signal, j∈[1,num2], num2 represents the vector dimension in the i-th optical fiber vibration signal, and num2=8192;
[0076] Specifically, the sampling frequency F of the DAS device in this step is sampling The calculation formula is as follows:
[0077]
[0078] Among them, R space and V fiber They represent the spatial resolution of the DAS device and the propagation speed of the laser in the optical fiber. The spatial resolution usually used in the experiment is 1m, so the sampling frequency of the DAS device is
[0079] The time resolution Rtime of DAS device sampling is determined by the following formula:
[0080]
[0081] Where Numaverage and F trigger They represent the cumulative number of noise reduction and the trigger frequency of sampling of the DAS device. In actual use, Num average Usually set to 8 times, and the sampling trigger frequency F trigger The upper bound depends on the sampling frequency Fsampling and the number of sampling points Num for a single trigger average , F trigger The upper bound of is determined by:
[0082]
[0083] In experiments, Num is usually set sampling is 8192, then the trigger frequency F trigger Maximum So the final spatial resolution R time Minimum reachable That is, a maximum of 1525 fiber vibration signals can be collected in 1 second. In actual use, the minimum time resolution is generally not used. In the experiment, the trigger frequency is set to F trigger =2KHz, the time resolution is That is, 250 optical fiber vibration signals are collected in 1 second. Therefore, within the sampling period of 10 seconds, a total of 2500 optical fiber vibration signals are collected, that is, num1=2500.
[0084] (2) preprocessing the multiple optical fiber vibration signals sampled in step (1) to obtain a vibration sample set consisting of the preprocessed multiple optical fiber vibration signals;
[0085] This step includes the following sub-steps:
[0086] (2-1) Set counter cnt1 = 1;
[0087] (2-2) Determine whether cnt1 is greater than the total number num1 (i.e., 2500) of optical fiber vibration signals obtained in step (1). If so, proceed to step (2-5); otherwise, proceed to step (2-3);
[0088] (2-3) performing a convolution operation on each vibration value in the cnt1-th optical fiber vibration signal x(cnt1) to obtain a low-pass signal y(cnt1) corresponding to the cnt1-th optical fiber vibration signal;
[0089] Specifically, the convolution operation on x(cnt1) in this step is performed using the following formula:
[0090]
[0091] where yj (cnt1) represents the result of convolution operation on the jth vibration value in the cnt1th fiber vibration signal x(cnt1), And the value of parameter σ is 2;
[0092] (2-4) Set counter cnt1=cnt1+1 and return to step (2-2);
[0093] The advantage of the above steps (2-1) to (2-4) is that the high-frequency noise in the signal is suppressed through a convolution operation of a Gaussian kernel, so that the trigger alarm positioning in the subsequent steps is more accurate.
[0094] (2-5) Obtain the maximum value max among the numbers num1*num2 included in the low-pass signal sequence {y(1), y(2), ..., y(num1)} composed of the low-pass signals corresponding to all optical fiber vibration signals;
[0095] Specifically, after processing the above steps (2-2) to (2-4), each low-pass signal in the obtained low-pass signal sequence includes num2 (i.e., 8192) values (i.e., the convolution result, which corresponds to the num2 vibration values in each low-pass signal). This step is to find the maximum value from the total num1*num2 values.
[0096] (2-6) Create an empty signal list z = {} and set the counter cnt2 = 1;
[0097] (2-7) Determine whether cnt2 is greater than the total number numl (i.e., 2500) of optical fiber vibration signals obtained in step (1). If so, proceed to step (2-10); otherwise, proceed to step (2-8);
[0098] (2-8) Calculate the maximum value max(cnt2) of the num2 numbers included in the low-pass signal y(cnt2) corresponding to the cnt2th optical fiber vibration signal, and determine whether max(cnt2)>alpha*max. If so, add the low-pass signal y(cnt2) corresponding to the cnt2th optical fiber vibration signal to the end of the signal list z and enter step (2-9), otherwise enter step (2-9), where the value of the intermediate parameter alpha is 0.7;
[0099] (2-9) Set counter cnt2=cnt2+1, and return to step (2-7);
[0100] The advantage of the above steps (2-5) to (2-9) is that through a threshold operation, the signal most relevant to the vibration is selected from the collected signals. The selected signal can better represent the characteristics of the vibration category to which it belongs, thereby improving the classification accuracy of the classifier.
[0101] (2-10) Set counter cnt3 = 1;
[0102] (2-11) Determine whether cnt3 is greater than the total number of low-pass signals num3 in list z, if so, proceed to step (2-13), otherwise proceed to step (2-12);
[0103] (2-12) Normalize each value zk(cn3) in the cnt3th low-pass signal z(cnt3) in the list z to the interval [0, 1] to obtain a normalized vibration signal t(cnt3);
[0104] In this step, t(cnt3)={t1(cnt3), t2(cnt3), ..., t num2 (cnt3)}, where t j (cnt3) represents the jth value of the cnt3th low-pass signal z(cnt3) in the list z, and:
[0105]
[0106] Where maximize means taking the maximum value.
[0107] (2-13) Set counter cnt3=cnt3+1, and return to step (2-11);
[0108] The advantage of the above steps (2-10) to (2-13) is that through a data normalization operation, the numerical value of the vibration signal is normalized to the closed interval [0, 1], thereby avoiding the influence of the difference in light signal attenuation caused by the different distances between the vibration trigger event and the light source on the classification model training, and improving the model feature acquisition capability; at the same time, it also makes the data distribution consistent with the data distribution assumed by the machine learning software library, thereby improving the efficiency of model training.
[0109] (2-14) Create an empty sample list s = {} and set the counter cnt4 = 1;
[0110] (2-15) Determine whether cnt4 is greater than the total number of low-pass signals num3 in list z, if so, go to step (2-22), otherwise go to step (2-16);
[0111] (2-16) Obtain the maximum value of the normalized vibration signal t(cnt4) And the index index (cnt4) of the maximum value in the vibration signal t (cnt4);
[0112] (2-17) Determine whether the serial number index (cnt4) obtained in step (2-16) is less than 51. If so, set index (cnt4) = 51, and then go to step (2-18); otherwise, set index (cnt4) = num2-50, and then go to step (2-18);
[0113] The purpose of this step is to intercept a sub-signal containing max(cnt4). The normalized vibration signal t(cnt4) is a sequence of length num2 (8192 in the present invention), and the vibration usually only occurs in a small segment of the entire signal. In order to improve the accuracy of classification, it is necessary to intercept a small segment with the strongest signal (the length of the small segment signal used in the present invention is 101) and input it into the one-dimensional convolutional neural network. In order to ensure that step (2-18) can effectively intercept a small segment signal with a length of 101, it is necessary to handle the situation where max(cnt4) is close to the beginning or end of the signal t(cnt4). For example, if index(cnt4) = 30, the index of the first signal value intercepted in step (2-18) will be index(cnt4)-50 = -20, which is obviously illegal, so it is necessary to adjust index(cnt4) to 51, so that the index of the first signal value intercepted in step (2-18) will be index(cnt4)-50 = 51-50 = 1.
[0114] (2-18) will (t index(cnt4)-50 (cnt4),...,t index(cnt4)-50 (cnt4)) is added to the end of the sample list s;
[0115] (2-19) Set counter cnt4=cnt4+1, and return to step (2-15);
[0116] The advantage of the above steps (2-14) to (2-19) is that only a small segment of the signal closest to the vibration triggering event is used to train the classifier, so that the classifier can focus on the most significant part of the signal, thereby improving the classification performance of the model.
[0117] (2-20) The sample list s is taken as the final vibration sample set.
[0118] (3) Input the vibration sample set obtained in step (2) into the trained one-dimensional convolutional neural network to obtain the corresponding classification results.
[0119] like Figure 2As shown, the one-dimensional convolutional neural network of the present invention includes six layers, wherein the first, second and third layers are convolutional layers, each layer is composed of two convolutional layers plus a maximum pooling layer, and is used to extract the features of the vibration signal; the fourth layer is a Flatten layer, which "stretches" the features obtained by the third convolutional layer into a one-dimensional structure; the fifth layer is a fully connected layer, which realizes the classification of signal features, and the sixth layer is a Softmax layer, which normalizes the results of the fifth layer into probabilities.
[0120] Specifically, the first layer of the one-dimensional convolutional neural network of the present invention is the first convolution block, which consists of two convolution layers and a maximum pooling layer. Each convolution layer uses a convolution kernel of length 3, each convolution layer uses 16 filters, the first convolution layer does not use an excitation function, and the second convolution layer uses a tanh excitation function. The window length of the last pooling layer is 3;
[0121] The second layer of the one-dimensional convolutional neural network of the present invention is the second convolutional block, whose input is the output of the first convolutional block, and the second convolutional block consists of two convolutional layers and a maximum pooling layer. Each convolutional layer uses a convolution kernel of length 3, each convolutional layer uses 64 filters, and each convolutional layer uses a tanh activation function. The window length of the last pooling layer is 3;
[0122] The third layer of the one-dimensional convolutional neural network of the present invention is the third convolutional block, whose input is the output of the second convolutional block. The third convolutional block consists of two convolutional layers and a maximum pooling layer. Each convolutional layer uses a convolution kernel of length 3, each convolutional layer uses 64 filters, and each convolutional layer uses a tanh activation function. The window length of the last pooling layer is 3;
[0123] The fourth layer of the one-dimensional convolutional neural network of the present invention is a Flatten layer, whose input is the output of the third convolutional block, and it "stretches" the features obtained by the third convolutional block into a one-dimensional structure;
[0124] The fifth layer of the one-dimensional convolutional neural network of the present invention is a fully connected layer, whose input is the output of the Flatten layer, and realizes the classification of signal features;
[0125] The sixth layer of the one-dimensional convolutional neural network of the present invention is a Softmax layer, whose input is the output of the fully connected layer, and is used to normalize the output into the probability of the category.
[0126] The one-dimensional convolutional neural network of the present invention is trained by the following steps:
[0127] (1) Collect vibration signals of multiple categories as data sets for training neural networks and divide them into training sets and test sets in a ratio of 7:3;
[0128] Specifically, the present invention uses five types of vibration signals, namely normal, walking, jumping, car rolling, and wind. It should be understood that the present invention is not limited to the above five types of samples, and any factors that cause DAS to generate an alarm can be included in the classification scope of the present invention.
[0129] (2) Input the training set obtained in step (1) into the one-dimensional convolutional neural network;
[0130] (3) Using the back propagation (BP) algorithm to update and optimize the weight parameters and bias parameters of each layer in the one-dimensional convolutional neural network to obtain an updated one-dimensional convolutional neural network;
[0131] Specifically, the initial value of the weight parameter is a random value close to 0, and the initial value of the bias parameter is set to 0;
[0132] The back propagation algorithm in this step uses the Adam optimizer with an adaptive learning rate.
[0133] (4) iteratively training the one-dimensional convolutional neural network updated in step (3) until the loss function of the one-dimensional convolutional neural network reaches a minimum;
[0134] Specifically, this step uses cross entropy as the loss function, that is:
[0135]
[0136] Wherein, batch_size is the capacity of the batch, and the present invention selects batch_size=32; category_num is the number of vibration types in the training set, and category_num=5 in the present invention; l ic is a sign function. If the true category of sample s(i) (i.e., the i-th vibration signal in the training set) is equal to the vibration type c, then l ic Take 1, otherwise take 0, p ic is the probability that the predicted category of sample s(i) is equal to vibration type c.
[0137] Specifically, 32 samples are randomly selected for each batch and trained for 40 generations each time.
[0138] Since the samples of each category in the total sample are unbalanced, it is necessary to specify different weights for each category of samples in the batch stochastic gradient descent algorithm. The weight w of the i-th category sample in the training set is i It is calculated by the following formula.
[0139]
[0140] where n jis the number of samples in the jth class.
[0141] The samples are input into the one-dimensional convolutional neural network trained by this method. The network automatically identifies the intrusion category and gives the recognition result, with a recognition accuracy of 95.75%.
[0142] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A distributed optical fiber vibration signal pattern classification method based on neural network, characterized in that: The following steps are involved: (1) Use distributed vibration sensing DAS equipment to sample to obtain num1 optical fiber vibration signals {x(1), x(2), …, x(num1)}, and x(i) = {x1(i), x2(i), …, x num2 (i)}, where i∈[1, num1], x j (i) represents the jth vibration value of the i-th optical fiber vibration signal, j∈[1, num2], num2 represents the vector dimension in the i-th optical fiber vibration signal; (2) preprocessing the multiple optical fiber vibration signals sampled in step (1) to obtain a vibration sample set consisting of the preprocessed multiple optical fiber vibration signals; step (2) includes the following sub-steps: (2-1) Set counter cnt1 = 1; (2-2) Determine whether cnt1 is greater than the total number num1 of optical fiber vibration signals obtained in step (1), if so, proceed to step (2-5), otherwise proceed to step (2-3); (2-3) performing a convolution operation on each vibration value in the cnt1-th optical fiber vibration signal x(cnt1) to obtain a low-pass signal y(cnt1) corresponding to the cnt1-th optical fiber vibration signal; (2-4) Set counter cnt1=cnt1+1 and return to step (2-2); (2-5) Obtain the maximum value max among the numbers num1*num2 included in the low-pass signal sequence {y(1), y(2), ..., y(num1)} composed of the low-pass signals corresponding to all optical fiber vibration signals; (2-6) Create an empty signal list z = {} and set the counter cnt2 = 1; (2-7) Determine whether cnt2 is greater than the total number num1 of optical fiber vibration signals obtained in step (1), if so, proceed to step (2-10), otherwise proceed to step (2-8); (2-8) Calculate the maximum value max(cnt2) of the num2 numbers included in the low-pass signal y(cnt2) corresponding to the cnt2th optical fiber vibration signal, and determine whether max(cnt2)>alpha*max. If so, add the low-pass signal y(cnt2) corresponding to the cnt2th optical fiber vibration signal to the end of the signal list z and enter step (2-9), otherwise enter step (2-9), where the value of the intermediate parameter alpha is 0.7; (2-9) Set counter cnt2=cnt2+1, and return to step (2-7); (2-10) Set counter cnt3 = 1; (2-11) Determine whether cnt3 is greater than the total number of low-pass signals num3 in list z, if so, proceed to step (2-13), otherwise proceed to step (2-12); (2-12) Each value z in the cnt3th low-pass signal z(cnt3) in the list z k (cn3) is normalized to the interval [0,1] to obtain the normalized vibration signal t(cnt3); (2-13) Set counter cnt3=cnt3+1, and return to step (2-11); (2-14) Create an empty sample list s = {} and set the counter cnt4 = 1; (2-15) Determine whether cnt4 is greater than the total number of low-pass signals num3 in list z, if yes, go to step (2-20), otherwise go to step (2-16); (2-16) Obtain the maximum value of the normalized vibration signal t(cnt4) , and the index index(cnt4) of the maximum value in the vibration signal t(cnt4); (2-17) Determine whether the serial number index (cnt4) obtained in step (2-16) is less than 51. If so, set index (cnt4) = 51, and then go to step (2-18); otherwise, set index (cnt4) = num2-50, and then go to step (2-18); (2-18) will (t index(cnt4)-50 (cnt4),…,t index(cnt4)+50 (cnt4)) is added to the end of the sample list s; (2-19) Set counter cnt4=cnt4+1, and return to step (2-15); (2-20) The sample list s is taken as the final vibration sample set; (3) Input the vibration sample set obtained in step (2) into the trained one-dimensional convolutional neural network to obtain the corresponding classification results.
2. The distributed optical fiber vibration signal pattern classification method based on neural network according to claim 1 is characterized in that: The sampling frequency F of the DAS device in step (1) sampling equal: Among them, R space and V fiber They represent the spatial resolution of the DAS device and the propagation speed of the laser in the optical fiber respectively.
3. The distributed optical fiber vibration signal pattern classification method based on neural network according to claim 1 or 2, characterized in that: The temporal resolution R of the DAS device sampling time equal: Where Num average and F trigger They represent the cumulative number of noise reduction and the trigger frequency of sampling of the DAS device, and F trigger equal: Where Num sampling It is 8192.
4. The distributed optical fiber vibration signal pattern classification method based on neural network according to claim 3 is characterized in that: The convolution operation on x(cnt1) in step (2-3) is performed using the following formula: where y j (cnt1) represents the result of convolution operation on the jth vibration value in the cnt1th fiber vibration signal x(cnt1), And the value of parameter σ is 2; In step (2-12), t(cnt3)={t1(cnt3), t2(cnt3), ..., t num2 (cnt3)}, where t j (cnt3) represents the jth value of the cnt3th low-pass signal z(cnt3) in the list z, and: Where maximize means taking the maximum value.
5. The distributed optical fiber vibration signal pattern classification method based on neural network according to claim 1 is characterized in that: The one-dimensional convolutional neural network consists of six layers, of which the first, second and third layers are convolutional layers. Each layer is composed of two convolutional layers plus a maximum pooling layer to extract the features of the vibration signal. The fourth layer is a Flatten layer, which transforms the features obtained by the third convolutional layer into a one-dimensional structure; the fifth layer is a fully connected layer, which realizes the classification of signal features; the sixth layer is a Softmax layer, which normalizes the results obtained in the fifth layer into probabilities.
6. The distributed optical fiber vibration signal pattern classification method based on neural network according to claim 5 is characterized in that: The first layer of the one-dimensional convolutional neural network is the first convolution block, which consists of two convolution layers and a maximum pooling layer; each convolution layer uses a convolution kernel of length 3, each convolution layer uses 16 filters, the first convolution layer does not use an activation function, and the second convolution layer uses a tanh activation function; the window length of the last pooling layer is 3; The second layer of the one-dimensional convolutional neural network is the second convolution block, whose input is the output of the first convolution block. The second convolution block consists of two convolution layers and a maximum pooling layer; each convolution layer uses a convolution kernel of length 3, each convolution layer uses 64 filters, and each convolution layer uses a tanh activation function; the window length of the last pooling layer is 3; The third layer of the one-dimensional convolutional neural network is the third convolution block, whose input is the output of the second convolution block. The third convolution block consists of two convolution layers and a maximum pooling layer; each convolution layer uses a convolution kernel of length 3, each convolution layer uses 64 filters, and each convolution layer uses a tanh activation function; the window length of the last pooling layer is 3; The fourth layer of the one-dimensional convolutional neural network is the Flatten layer, whose input is the output of the third convolutional block. It "stretches" the features obtained by the third convolutional block into a one-dimensional structure. The fifth layer of the one-dimensional convolutional neural network is a fully connected layer, whose input is the output of the Flatten layer, which realizes the classification of signal features; The sixth layer of the one-dimensional convolutional neural network is the Softmax layer, whose input is the output of the fully connected layer, which is used to normalize the output into the probability of the category.
7. The neural network-based distributed optical fiber vibration signal pattern classification method according to claim 6, characterized in that: The one-dimensional convolutional neural network is trained using the following steps: A. Collect multiple categories of vibration signals as data sets for training neural networks, and divide them into training sets and test sets in a ratio of 7:3; B. Input the training set obtained by step A into the one-dimensional convolutional neural network; C. Use the BP algorithm to update and optimize the weight parameters and bias parameters of each layer in the one-dimensional convolutional neural network to obtain an updated one-dimensional convolutional neural network; D. Iteratively train the one-dimensional convolutional neural network updated in step C until the loss function of the one-dimensional convolutional neural network reaches the minimum.
8. The neural network-based distributed optical fiber vibration signal pattern classification method according to claim 7, characterized in that: In step C, the initial value of the weight parameter is a random value close to 0, the initial value of the bias parameter is set to 0, and the back propagation algorithm uses the Adam optimizer with an adaptive learning rate; In step D, cross entropy is used as the loss function, namely: Among them, batch_size is the capacity of the batch, batch_size = 32; category_num is the number of vibration types in the training set, l ic is a sign function. If the true category of the i-th vibration signal in the training set is equal to the vibration type c, then l ic Take 1, otherwise take 0, p ic is the probability that the predicted category of the ith vibration signal s(i) in the training set is equal to the vibration type c.
9. A distributed optical fiber vibration signal pattern classification system based on neural network, characterized in that: include: The first module is used to use a distributed vibration sensing DAS device to perform sampling to obtain num1 optical fiber vibration signals {x(1), x(2), ..., x(num1)}, and x(i) = {x1(i), x2(i), ..., x num2 (i)}, where i∈[1, num1], x j (i) represents the jth vibration value of the i-th optical fiber vibration signal, j∈[1, num2], num2 represents the vector dimension in the i-th optical fiber vibration signal; The second module is used to preprocess the multiple optical fiber vibration signals sampled by the first module to obtain a vibration sample set consisting of the preprocessed multiple optical fiber vibration signals; the second module includes the following submodules: The first submodule is used to set the counter cnt1=1; The second submodule is used to determine whether cnt1 is greater than the total number num1 of optical fiber vibration signals obtained by the first module, and if so, enter the fifth submodule, otherwise enter the third submodule; The third submodule is used to perform a convolution operation on each vibration value in the cnt1-th optical fiber vibration signal x(cnt1) to obtain a low-pass signal y(cnt1) corresponding to the cnt1-th optical fiber vibration signal; The fourth submodule is used to set the counter cnt1=cnt1+1 and return to the second submodule; The fifth submodule is used to obtain the maximum value max of the numbers num1*num2 included in the low-pass signal sequence {y(1), y(2), ..., y(num1)} composed of the low-pass signals corresponding to all optical fiber vibration signals; The sixth submodule is used to create an empty signal list z={} and set the counter cnt2=1; The seventh submodule is used to determine whether cnt2 is greater than the total number num1 of optical fiber vibration signals obtained by the first module, and if so, enter the tenth submodule, otherwise enter the eighth submodule; The eighth submodule is used to calculate the maximum value max(cnt2) of the num2 numbers included in the low-pass signal y(cnt2) corresponding to the cnt2th optical fiber vibration signal, and determine whether max(cnt2)>alpha*max. If so, the low-pass signal y(cnt2) corresponding to the cnt2th optical fiber vibration signal is added to the end of the signal list z and enter the ninth submodule, otherwise, enter the ninth submodule, where the value of the intermediate parameter alpha is 0.7; The ninth submodule is used to set the counter cnt2=cnt2+1 and return to the seventh submodule; The tenth submodule is used to set the counter cnt3=1; The eleventh submodule is used to determine whether cnt3 is greater than the total number of low-pass signals num3 in the list z, if yes, then enter the thirteenth submodule, otherwise enter the twelfth submodule; The twelfth submodule is used to convert each value z in the cnt3th low-pass signal z(cnt3) in the list z k (cn3) is normalized to the interval [0,1] to obtain the normalized vibration signal t(cnt3); The thirteenth submodule is used to set the counter cnt3=cnt3+1 and return to the eleventh submodule; The fourteenth submodule is used to create an empty sample list s={} and set the counter cnt4=1; The fifteenth submodule is used to determine whether cnt4 is greater than the total number of low-pass signals num3 in the list z, if so, enter the twentieth submodule, otherwise enter the sixteenth submodule; The sixteenth submodule is used to obtain the maximum value of the normalized vibration signal t(cnt4) , and the index index(cnt4) of the maximum value in the vibration signal t(cnt4); The seventeenth submodule is used to determine whether the serial number index (cnt4) obtained by the sixteenth submodule is less than 51. If so, index (cnt4) is set to 51, and then the eighteenth submodule is entered. Otherwise, index (cnt4) is set to num2-50, and then the eighteenth submodule is entered; The eighteenth submodule is used to convert (t index(cnt4)-50 (cnt4),…,t index(cnt4)+50 (cnt4)) is added to the end of the sample list s; The nineteenth submodule is used to set the counter cnt4=cnt4+1 and return to the fifteenth submodule; The twentieth submodule is used to use the sample list s as the final vibration sample set; The third module is used to input the vibration sample set obtained in the second module into the trained one-dimensional convolutional neural network to obtain the corresponding classification result.
Citation Information
Cited By
Device and method for monitoring flow and leakage in liquid pipeline based on optical fiber sensing
CN120121116A
A device and method for monitoring flow and leaks in a liquid pipeline based on fiber optic sensing
CN120121116B
