Distributed optical fiber detection signal recognition method based on incremental learning
By adopting incremental learning and knowledge distillation technology in the distributed optical fiber acoustic wave system, a ConvNeXt network with efficient channel attention is constructed, which solves the problems of declining signal recognition effect and forgetting of sample data in the existing technology, and improves the recognition rate and model accuracy. stability.
Patent Information
- Application Number
- CN202410772381.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Existing distributed fiber optic acoustic wave system monitoring methods based on deep learning are difficult to maintain good signal recognition effects when facing new external signals. They usually need to retrain the neural network model, resulting in forgetting the signal categories of existing sample data. .
Adopting a method based on incremental learning, by constructing a ConvNeXt network with efficient channel attention, using knowledge distillation technology to transfer the initial model parameters to the new network, and performing linear correction during incremental learning training, reducing the need for existing sample data Forget.
It improves the recognition rate of signals to be detected, reduces the forgetting of existing sample data, achieves effective recognition and feature extraction of new signals, and enhances the generalization ability and robustness of the model.
Smart Images

Figure CN118349858B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of distributed optical fiber acoustic wave sensing system monitoring, and in particular relates to a distributed optical fiber detection signal recognition method based on incremental learning. Background Art
[0002] As a key technology in fiber optic sensing, distributed acoustic wave sensing technology has been widely used in the fields of perimeter safety monitoring, pipeline safety warning, seismic wave monitoring, etc. At present, there are still some problems with the distributed fiber optic acoustic wave system monitoring method based on deep learning. For example, most of the existing distributed fiber optic acoustic wave system monitoring methods based on deep learning rely on pre-collected data sets to train the neural network model offline. After the neural network model is trained, the parameters of the neural network model will be fixed. In actual monitoring, new external break signals may be continuously delivered to the neural network model in the form of streams. In order for the neural network model to have a good signal recognition effect on the new detection signal, researchers usually need to re-collect data and re-train the neural network model. In the process of re-training the neural network model, there is usually a problem of forgetting the signal category involved in the existing sample data, where the existing sample data refers to the sample data in the pre-collected data set used for offline training of the neural network model. To this end, the present application designs a distributed fiber optic detection signal recognition method based on incremental learning that can effectively avoid forgetting the signal category involved in the existing sample data. Summary of the invention
[0003] The purpose of the present invention is to provide a distributed optical fiber detection signal recognition method based on incremental learning.
[0004] In order to achieve the above object, the present invention adopts the following technical solutions:
[0005] A distributed optical fiber detection signal recognition method based on incremental learning comprises the following steps:
[0006] S1. Construct a ConvNeXt network based on efficient channel attention. The ConvNeXt network based on efficient channel attention is obtained by making the following improvements to the existing ConvNeXt network: (1) uniformly replacing the ConvNeXt modules in the existing ConvNeXt network with ConvNeXt modules based on efficient channel attention; (2) adding α and β These two bias parameters; The fully connected layer adds two bias parameters α and β to achieve linear correction of the probability distribution of the predicted category of the signal to be detected;
[0007] S2, obtaining an existing data training set and an existing data test set, and then using the existing data training set and the existing data test set to perform initial training on the ConvNeXt network based on efficient channel attention constructed in step S1, to obtain an initial ConvNeXt network model based on efficient channel attention;
[0008] S3. The model parameters of the initial ConvNeXt network model based on efficient channel attention obtained in step S2-2 are passed to the ConvNeXt network based on efficient channel attention constructed in step S1 through knowledge distillation to obtain a new ConvNeXt network based on efficient channel attention; then, the new ConvNeXt network based on efficient channel attention is incrementally learned and trained using the acquired incremental sample training set, incremental sample test set and incremental sample verification set, and the recognition of the signal to be detected is realized during the incremental learning and training process.
[0009] Preferably, in step S1, the ConvNeXt module based on efficient channel attention is obtained by improving the existing ConvNeXt module in the existing ConvNeXt network as follows: (1) the existing ConvNeXt module includes a first branch and a second branch connected in parallel, and the first branch and the second branch are both connected to the Add layer, wherein the first branch includes a depth-separable convolution layer, a first two-dimensional convolution layer and a second two-dimensional convolution layer connected in sequence, and after the second two-dimensional convolution layer of the first branch, an efficient channel attention module ECA and a Dropout layer are connected in sequence, and the output end of the Dropout layer and the second branch are both connected to the input end of the Add layer to obtain the ConvNeXt module based on efficient channel attention; (2) the activation function (i.e., the sigmoid function) in the existing efficient channel attention module ECA is replaced with a hard-sigmoid function.
[0010] Preferably, step S2 includes the following specific steps:
[0011] S2-1, pre-processing the two-dimensional spatiotemporal signals collected in the application scenario before the start time of the planned identification of the signal to be detected to obtain existing sample data, and dividing the existing sample data and its corresponding labels in a ratio of 7:3 to obtain an existing data training set and an existing data test set;
[0012] S2-2. Use the existing data training set and the existing data test set to perform initial training on the ConvNeXt network based on efficient channel attention constructed in step S1 to obtain an initial ConvNeXt network model based on efficient channel attention.
[0013] Preferably, in step S2-1, the two-dimensional space-time signal is preprocessed as follows: the two-dimensional space-time signal is continuously divided into 2s as a time unit to obtain two-dimensional space-time signal segments, and then the sampling rate of the two-dimensional space-time signal segments is reduced from 7000Hz to 100Hz to obtain downsampled data, and then the downsampled data is differentially processed to obtain existing sample data.
[0014] Preferably, step S2-2 includes the following specific steps:
[0015] S2-2-1, input the existing sample data in the existing data training set into the ConvNeXt network based on efficient channel attention constructed in step S1, retain and output the probability distribution and recognition rate of the existing sample signal category, and at the same time, calculate the cross entropy loss of the ConvNeXt network based on efficient channel attention, and then perform back propagation under the guidance of the cross entropy loss, update and retain the two-dimensional convolution layer in the ConvNeXt network based on efficient channel attention and the depth-separable convolution layer in the ConvNeXt module based on efficient channel attention and the convolution kernel weight parameters and bias parameters in the two two-dimensional convolution layers, and update the weight parameters and bias parameters in the fully connected layer except the bias parameters α and β, and do not call or update the bias parameters α and β added by the fully connected layer;
[0016] S2-2-2, input the existing sample data in the existing data test set into the ConvNeXt network based on efficient channel attention after the updated parameters obtained in step S2-2-1, and forward propagate once for testing, retain and output the probability distribution and recognition rate of the existing sample signal category, and complete an iterative process;
[0017] S2-2-3. After 100 repeated iterations, the training process of the ConvNeXt network based on efficient channel attention is completed; the parameters of the ConvNeXt network based on efficient channel attention in the verification process with the highest recognition rate are used as the model parameters of the ConvNeXt network based on efficient channel attention, and the initial ConvNeXt network model based on efficient channel attention is obtained.
[0018] Preferably, step S3 includes the following specific steps:
[0019] S3-1, obtaining a real-time data set; after the start time of the planned identification of the signal to be detected, collecting a two-dimensional space-time signal in the application scenario; then, preprocessing the above two-dimensional space-time signal to obtain real-time sample data, and the real-time sample data and its corresponding labels constitute the real-time data set; wherein the method of preprocessing the two-dimensional space-time signal in step S3 is the same as the method of preprocessing the two-dimensional space-time signal in step S2-1;
[0020] S3-2, dividing the real-time sample data and the corresponding labels in the real-time data set obtained in step S3-1 according to the signal category of the two-dimensional space-time signal, and then selecting the real-time sample data and labels corresponding to the two-dimensional space-time signals of two signal categories each time as an incremental sample data set, and then dividing the real-time sample data and the corresponding labels in the incremental sample data set according to the ratio of 8:1:1 to obtain an incremental sample training set, an incremental sample test set and an incremental sample verification set;
[0021] S3-3, passing the model parameters of the initial ConvNeXt network model based on efficient channel attention obtained in step S2-2 to the ConvNeXt network based on efficient channel attention constructed in step S1 through knowledge distillation, so as to initialize the ConvNeXt network based on efficient channel attention constructed in step S1 and obtain a new ConvNeXt network based on efficient channel attention;
[0022] S3-4. Perform incremental learning training on the new ConvNeXt network based on efficient channel attention obtained in step S3-3 using the incremental sample training set, the incremental sample verification set and the incremental sample test set, and realize the recognition of the signal to be detected during the incremental learning training process.
[0023] Preferably, step S3-4 includes the following specific steps:
[0024] S3-4-1. Input the real-time sample data in the incremental sample training set into the new ConvNeXt network based on efficient channel attention obtained in step S3-3 for incremental learning training, retain and output the probability distribution and recognition rate of the signal category to be detected, and at the same time, calculate the total distillation loss L 总 , and then based on the total distillation loss, the two-dimensional convolution layer in the new ConvNeXt network based on efficient channel attention and the depth-separable convolution layer and the convolution kernel weight parameters and bias parameters in the two two-dimensional convolution layers shown in the ConvNeXt module based on efficient channel attention are updated by the stochastic gradient descent algorithm, and the weight parameters and bias parameters in the fully connected layer except the bias parameters α and β are updated to obtain the new ConvNeXt network based on efficient channel attention after preliminary parameters;
[0025] S3-4-2. Freeze the parameters of the new ConvNeXt network based on efficient channel attention after the preliminary parameters obtained in step S3-4-1. Then, input the real-time data in the incremental sample verification set into the new ConvNeXt network based on efficient channel attention after the preliminary parameters obtained in step S3-4-1. Propagate forward once for verification, retain and output the probability distribution and recognition rate of the signal category to be detected, and at the same time, calculate the total distillation loss. L 总 , and then based on the total distillation loss L 总 The two bias parameters α and β used for linear correction in the new ConvNeXt network based on efficient channel attention after the preliminary parameters obtained in step S3-4-1 are updated by the stochastic gradient descent algorithm, and the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated is obtained;
[0026] S3-4-3, input the incremental sample test set into the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated, and forward propagation is performed once, and the probability distribution and recognition rate of the signal category to be detected are retained and output, completing an iterative process;
[0027] S3-4-4. Repeat the iteration 100 times to complete the incremental learning and training process of the new ConvNeXt network based on efficient channel attention; the process of inputting the incremental sample test set into the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated and forward propagated once is called the incremental sample test process; in the incremental sample test process with the largest recognition rate, the probability distribution of the signal category to be detected and the recognition rate output by the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated are the final recognition results of the signal to be detected.
[0028] Preferably, the total distillation loss L 总 Including classification loss L new , knowledge distillation loss L old and attention distillation loss L AD .
[0029] Preferably, in both step S2-1 and step S3-1, a distributed optical fiber acoustic wave sensing system DAS is used to collect two-dimensional spatiotemporal signals in the application scenario.
[0030] Preferably, the distributed fiber optic acoustic wave sensing system DAS includes a narrow linewidth laser, an acousto-optic modulator, an erbium-doped amplifier I, a circulator, an erbium-doped amplifier II, a grating filter, a coupler I and a coupler II which are sequentially connected through a sensing optical fiber. The circulator is connected to a signal acquisition optical fiber laid in an application scenario. In this embodiment, the application scenario is a pipeline, that is, the circulator is connected to a signal acquisition optical fiber laid in the pipeline. Coupler II is respectively connected to photodetector I, photodetector II, and photodetector III. Photodetector I, photodetector II, and photodetector III are all connected to a data acquisition card through a data line, and the data acquisition card is connected to a computer through a data line. The distributed fiber optic acoustic wave sensing system DAS also includes a pulse generator, which is respectively connected to the acousto-optic modulator and the data acquisition card.
[0031] Compared with the prior art, the beneficial technical effects of the present invention are:
[0032] The present application first improves the existing ConvNeXt network to obtain a ConvNeXt network based on efficient channel attention. Specifically, the present application uniformly replaces the ConvNeXt modules in the existing ConvNeXt network with ConvNeXt modules based on efficient channel attention, and the ConvNeXt modules based on efficient channel attention are obtained by improving the existing ConvNeXt modules. The present application sequentially connects the efficient channel attention module ECA and the Dropout layer after the second two-dimensional convolution layer of the first branch of the existing ConvNeXt module, and connects the output end of the Dropout layer and the second branch to the input end of the Add layer to obtain the ConvNeXt module based on efficient channel attention; at the same time, the present application replaces the activation function (i.e., sigmoid function) in the existing efficient channel attention module ECA with a hard-sigmoid function to obtain the efficient channel attention module ECA in the present application; wherein, the efficient channel attention module ECA is used to perform channel dimension on the feature map output by the second two-dimensional convolution layer. Weight parameter calculation, set a larger weight parameter for the key channel area, set a smaller weight parameter for the non-key channel area, and pay attention to the channel area with a larger weight parameter value, highlight the key area of the key information in the feature map from the channel dimension, and output the feature map that enhances the key information in the channel dimension; moreover, since the activation function in the efficient channel attention module ECA based on the present application is a hard-sigmoid function, the present application can effectively control the parameter amount and effectively improve the calculation speed while obtaining the feature map that enhances the key external information in the channel dimension based on the efficient channel attention module ECA; and the Dropout layer connected to the output end of the efficient channel attention module ECA in the present application can be used to perform regularization operations on the feature map that enhances the key external information in the channel dimension based on the output of the efficient channel attention module ECA, so as to prevent the overfitting phenomenon of the feature map output by the efficient channel attention module ECA; and the Add layer can add the feature map output by the Dropout layer and the feature map output by the second branch pixel by pixel to obtain a feature map with rich key external information, strong generalization ability and strong robustness. In addition, since the existing efficient channel attention module ECA includes a convolution layer with a convolution kernel size of 1×1, and the present application is based on the efficient channel attention module ECA and the only difference is the activation function compared to the existing efficient channel attention module ECA, therefore, the present application is based on the efficient channel attention module ECA and also has a convolution layer with a convolution kernel size of 1×1, and this convolution layer can capture key external information in different channels. Therefore, the feature map output by the efficient channel attention module ECA in the present application also includes key external information of different channels.Naturally, in the ConvNeXt network based on efficient channel attention of the present application, by replacing the ConvNeXt module in the existing ConvNeXt network with the ConvNeXt module based on efficient channel attention, it is possible to capture key external information in different channels by using the efficient channel attention module ECA, which helps to improve the accuracy of feature extraction of the signal to be detected, thereby improving the recognition rate; in addition, the present application also adds to the fully connected layer in the existing ConvNeXt network. α and β These two bias parameters, and the setting of the two bias parameters α and β can realize linear correction of the probability distribution of the predicted category of the signal to be detected, and output the probability distribution of the predicted category after linear correction and the recognition rate obtained by the probability distribution of the predicted category after linear correction. Linear correction can effectively improve the recognition rate of signal recognition.
[0033] In addition, the present application also performs initial training on the ConvNeXt network based on efficient channel attention in step S1, and then passes the model parameters of the initial ConvNeXt network model based on efficient channel attention obtained by the initial training to the ConvNeXt network based on efficient channel attention constructed in step S1 through knowledge distillation, so as to obtain a new ConvNeXt network based on efficient channel attention; and then uses the incremental sample training set, the incremental sample test set and the incremental sample verification set to perform incremental learning training on the new ConvNeXt network based on efficient channel attention, and realizes the recognition of the signal to be detected in the process of incremental learning training. The above-mentioned step setting in the present application significantly improves the recognition rate of the signal to be detected; in addition, since in the process of incremental learning training, the present application constructs a total distillation loss L 总 , total distillation loss L 总 Includes the classification loss of the signal under test L new , knowledge distillation loss of existing samples L old and attention distillation loss L AD , the total distillation loss set by this application L 总 It can effectively reduce the forgetting of existing sample data during the incremental learning process.
[0034] In addition, the present application selects the real-time sample data and labels corresponding to the two-dimensional spatiotemporal signals of two signal categories each time as an incremental sample data set, and then obtains the incremental sample training set, incremental sample test set and incremental sample verification set based on the incremental sample data set, and then uses the incremental sample training set, incremental sample test set and incremental sample verification set to perform incremental learning training on the new ConvNeXt network based on efficient channel attention to realize the recognition of the signal to be detected. The above setting facilitates the new ConvNeXt network based on efficient channel attention of the present application to gradually learn different signals to be detected; moreover, the present application transfers the model parameters of the initial ConvNeXt network model based on efficient channel attention obtained in step S2-2 to the ConvNeXt network based on efficient channel attention constructed in step S1 through knowledge distillation, so as to initialize the ConvNeXt network based on efficient channel attention constructed in step S1, so that during the incremental learning and training process, the present application only needs to learn the real-time sample data in the incremental sample training set, incremental sample test set and incremental sample verification set, without the need to repeat the training of existing sample data. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a structural diagram of the distributed acoustic wave sensing system DAS in the present invention;
[0036] Figure 2 Schematic diagram of the network structure of the ConvNeXt network based on efficient channel attention in the present invention;
[0037] Figure 3 Schematic diagram of the structure of the ConvNeXt module based on efficient channel attention in this application. DETAILED DESCRIPTION
[0038] A distributed optical fiber detection signal recognition method based on incremental learning comprises the following steps:
[0039] S1. Construct a ConvNeXt network based on efficient channel attention; This application is a ConvNeXt network based on efficient channel attention obtained by improving the existing ConvNeXt network, wherein the existing ConvNeXt network has the same structure and function as the ConvNeXt network disclosed in the paper "A ConvNet for the 2020s". In this application, the structure of the ConvNeXt network based on efficient channel attention is as follows: Figure 2 As shown; the specific method of the ConvNeXt network based on efficient channel attention obtained by this application by improving the existing ConvNeXt network is:
[0040] (1) The ConvNeXt modules in the existing ConvNeXt network are uniformly replaced with ConvNeXt modules based on efficient channel attention; and the structure of the ConvNeXt module based on efficient channel attention is as follows: Figure 3 As shown; the ConvNeXt module based on efficient channel attention in the present application is obtained by improving the existing ConvNeXt module in the existing ConvNeXt network; the existing ConvNeXt module includes a first branch and a second branch in parallel, and the first branch and the second branch are both connected to the Add layer, wherein the first branch includes a depth-separable convolution layer, a first two-dimensional convolution layer and a second two-dimensional convolution layer connected in sequence, and in the present application, after the second two-dimensional convolution layer of the above-mentioned first branch, the efficient channel attention module ECA and the Dropout layer are connected in sequence, and the output end of the Dropout layer and the second branch are both connected to the input end of the Add layer to obtain the ConvNeXt module based on efficient channel attention; at the same time, the efficient channel attention module ECA adopted in the present application is obtained by improving the existing efficient channel attention module ECA. Specifically, the present application replaces the activation function (i.e., the sigmoid function) in the existing efficient channel attention module ECA with the hard-sigmoid function to obtain the efficient channel attention module ECA in the present application.
[0041] In the ConvNeXt module based on efficient channel attention of the present application, the efficient channel attention module ECA connected to the output end of the second two-dimensional convolutional layer is used to calculate the weight parameters of the channel dimension of the feature map output by the second two-dimensional convolutional layer, set a larger weight parameter for the key channel area, set a smaller weight parameter for the non-key channel area, and pay attention to the channel area with a larger weight parameter value, highlight the key area of the key information in the feature map from the channel dimension, and output the feature map that enhances the key information in the channel dimension; and, since the activation function in the efficient channel attention module ECA of the present application is a hard-sigmoid function, the present application is based on efficient channel attention. The attention module ECA can effectively control the amount of parameters and effectively improve the calculation speed while obtaining the feature map that enhances the key external information in the channel dimension; and the Dropout layer connected to the output end of the efficient channel attention module ECA in the present application can be used to perform regularization operations on the feature map that enhances the key external information in the channel dimension based on the output of the efficient channel attention module ECA, so as to prevent the overfitting phenomenon of the feature map output by the efficient channel attention module ECA; and the Add layer can add the feature map output by the Dropout layer and the feature map output by the second branch pixel by pixel to obtain a feature map with rich key external information, strong generalization ability and strong robustness. In addition, since the existing efficient channel attention module ECA includes a convolution layer with a convolution kernel size of 1×1, and the present application is based on the efficient channel attention module ECA and is different from the existing efficient channel attention module ECA only in the activation function, therefore, the present application is based on the efficient channel attention module ECA and also has a convolution layer with a convolution kernel size of 1×1, and the convolution layer can capture key external information in different channels. Therefore, the feature map output by the efficient channel attention module ECA in the present application also includes key external information of different channels. Naturally, in the ConvNeXt network based on efficient channel attention in the present application, the ConvNeXt module based on efficient channel attention is used to replace the ConvNeXt module in the existing ConvNeXt network, so that the key external information in different channels can be captured by using the efficient channel attention module ECA, which helps to improve the accuracy of feature extraction of the signal to be detected.
[0042] (2) Adding the fully connected layer in the existing ConvNeXt network α and β The two bias parameters α and β are added to the fully connected layer to alleviate the bias of the detection signal. The detection signals of this application include background noise, machine noise, single person walking, multi-person walking, manual excavation, pickaxe digging, wooden stick knocking, iron stick knocking, pipe sawing and pipe drilling. Ten types of two-dimensional spatiotemporal signals; this application adds two bias parameters α and β to the fully connected layer to alleviate the bias of the detection signal.α and β The two bias parameters can realize linear correction of the probability distribution of the predicted category of the to-be-detected signal, and output the probability distribution of the predicted category after the linear correction and the recognition rate obtained from the probability distribution of the predicted category after the linear correction.
[0043] pass α and β The process of linear correction of the detection signal by two bias parameters is shown in formula (1);
[0044] (1)
[0045] In formula (1), α and β are bias parameters. In this application, the value range of α is 0.5 to 2, and the value range of β is -1 to 1; o i represents the probability distribution of the i-th signal category to be detected output by the new ConvNeXt network based on efficient channel attention before linear correction (i.e., the new ConvNeXt network based on efficient channel attention after the preliminary parameters obtained in step S3-4-1); q i Represents the probability distribution of the i-th signal category to be detected output by the new ConvNeXt network based on efficient channel attention after linear correction (i.e., the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated).
[0046] In the process of initial training of the ConvNeXt network based on efficient channel attention based on the existing sample data in the existing data training set and the existing data test set, the new ConvNeXt network based on efficient channel attention is updated. Figure 2 The 2D convolutional layer shown in Figure 3 The convolution kernel weight parameters and bias parameters in the depthwise separable convolution layer and two 2D convolution layers in the ConvNeXt module based on efficient channel attention are updated, and the weight parameters and bias parameters in the fully connected layer except the bias parameters α and β are updated;
[0047] When the real-time sample data in the incremental sample training set is input into the new ConvNeXt network based on efficient channel attention obtained in step S3-3 for incremental learning training, the new ConvNeXt network based on efficient channel attention is updated as follows Figure 2 The 2D convolutional layer shown in Figure 3The convolution kernel weight parameters and bias parameters in the depthwise separable convolution layer and the two two-dimensional convolution layers shown in the ConvNeXt module based on efficient channel attention are updated, and the weight parameters and bias parameters in the fully connected layer except the bias parameters α and β are updated; and before the real-time data in the incremental sample verification set is input into the new ConvNeXt network based on efficient channel attention after the above preliminary parameters for verification, the parameters of the new ConvNeXt network based on efficient channel attention after the above preliminary parameters are frozen first, and then the two bias parameters α and β used for linear correction in the new ConvNeXt network based on efficient channel attention are updated during the verification process, so as to obtain the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated;
[0048] S2, obtaining an existing data training set and an existing data test set, and then using the existing data training set and the existing data test set to perform initial training on the ConvNeXt network based on efficient channel attention constructed in step S1, including the following specific steps:
[0049] S2-1, pre-process the two-dimensional spatiotemporal signals collected by the distributed optical fiber acoustic wave sensing system DAS in the application scenario before the start time of the planned identification of the signal to be detected to obtain existing sample data, and divide the existing sample data and its corresponding labels in a ratio of 7:3 to obtain an existing data training set and an existing data test set; for example, if the planned start time of the identification of the signal to be detected is 8 o'clock in the morning, then the sample data obtained by pre-processing the two-dimensional spatiotemporal signals collected in the application scenario before 8 o'clock in the morning is the existing sample data;
[0050] In this application, a distributed optical fiber acoustic wave sensing system DAS, such as Figure 1 As shown, it includes a narrow linewidth laser, an acousto-optic modulator, an erbium-doped amplifier I, a circulator, an erbium-doped amplifier II, a grating filter, a coupler I and a coupler II which are sequentially connected through a sensing optical fiber. The circulator is connected to a signal acquisition optical fiber laid in an application scenario. In this embodiment, the application scenario is a pipeline, that is, the circulator is connected to a signal acquisition optical fiber laid in a pipeline. Coupler II is respectively connected to photodetector I, photodetector II, and photodetector III. Photodetector I, photodetector II, and photodetector III are all connected to a data acquisition card through a data line, and the data acquisition card is connected to a computer through a data line. The distributed optical fiber acoustic wave sensing system DAS also includes a pulse generator, which is respectively connected to the acousto-optic modulator and the data acquisition card. The two-dimensional space-time signals collected in this application include ten types of two-dimensional space-time signals according to the signal type, namely, background noise, machine noise, single person walking, multi-person walking, manual excavation, pickaxe digging, wooden stick knocking, iron stick knocking, pipeline sawing and pipeline drilling. The signals to be detected in this application are the above ten types of two-dimensional space-time signals.
[0051] The working principle of the distributed optical fiber acoustic wave sensing system DAS in the present application is as follows: a narrow linewidth laser generates a continuous coherent optical signal, an acousto-optic modulator modulates the continuous coherent optical signal and the modulation signal emitted by the pulse generator to obtain an optical pulse signal, the optical pulse signal is amplified by an erbium-doped fiber amplifier I, the amplified optical pulse signal is input to the circulator through port 1 of the circulator, and then input into the signal collection optical fiber through port 2 of the circulator, the optical pulse signal will undergo Rayleigh scattering during the transmission process along the signal collection optical fiber, and generate a backward Rayleigh scattered optical signal, the backward Rayleigh scattered optical signal will return to port 2 of the circulator along the signal collection optical fiber, and then, the backward Rayleigh scattered optical signal is transmitted to the erbium-doped amplifier II through port 3 of the circulator for amplification, and the amplified backward The Rayleigh scattered light signal is filtered by a grating filter, and then passes through coupler I and coupler II in turn, and then respectively passes through three photoelectric detectors with the same parameters for photoelectric signal conversion, that is, the three photoelectric detectors convert the received light signal into an electrical signal; while the pulse generator provides a modulation signal to the acousto-optic modulator, it also sends a synchronous trigger electrical signal to the data acquisition card. The data acquisition card processes the electrical signals output by the three photoelectric detectors and the synchronous trigger electrical signal output by the pulse generator to obtain a differential electrical signal, which is a two-dimensional space-time signal, and the differential electrical signal contains the relationship between the amplitude and phase when the signal to be detected occurs; finally, the data acquisition card transmits the collected two-dimensional space-time signal to a computer for storage;
[0052] In step S2-1, the two-dimensional space-time signal is preprocessed in the following manner: the two-dimensional space-time signal is continuously segmented with 2s as a time unit to obtain two-dimensional space-time signal segments, and then the sampling rate of the two-dimensional space-time signal segments is reduced from 7000Hz to 100Hz to obtain downsampled data, and then the downsampled data is differentially processed to obtain existing sample data; wherein the calculation method of differential processing is shown in formula (2):
[0053] (2)
[0054] In formula (2), S dif ( t ) indicates a time point t The differential signal value at S ( t ) is the time point t The downsampled data at S ( t -1) indicates a time point t- 1 after downsampling.
[0055] S2-2, using the existing data training set and the existing data test set to perform initial training on the ConvNeXt network based on efficient channel attention constructed in step S1, to obtain an initial ConvNeXt network model based on efficient channel attention; specifically,
[0056] S2-2-1. Input the existing sample data in the existing data training set into the ConvNeXt network based on efficient channel attention, retain and output the probability distribution and recognition rate of the existing sample signal category, and at the same time, calculate the cross entropy loss of the ConvNeXt network based on efficient channel attention, and then perform back propagation under the guidance of the cross entropy loss to update and retain the ConvNeXt network based on efficient channel attention. Figure 2 The 2D convolutional layer shown in Figure 3 The convolution kernel weight parameters and bias parameters in the depthwise separable convolution layer and the two 2D convolution layers shown in the ConvNeXt module based on efficient channel attention are updated, and the weight parameters and bias parameters in the fully connected layer except the bias parameters α and β are updated, and the bias parameters α and β added by the fully connected layer are not called or updated;
[0057] S2-2-2, input the existing sample data in the existing data test set into the ConvNeXt network based on efficient channel attention with the above updated parameters, forward propagate once for testing, retain and output the probability distribution and recognition rate of the existing sample signal category, and complete an iterative process;
[0058] S2-2-3. After repeating the iteration 100 times, the training process of the ConvNeXt network based on efficient channel attention is completed; the parameters of the ConvNeXt network based on efficient channel attention in the verification process with the maximum recognition rate are used as the model parameters of the ConvNeXt network based on efficient channel attention, and the initial ConvNeXt network model based on efficient channel attention is obtained; wherein, the recognition rate in the present application is calculated based on the probability distribution of the predicted signal category.
[0059] In the present application, the calculation method of the cross entropy loss of the ConvNeXt network based on efficient channel attention is the same as the calculation method of the cross entropy loss in the existing ConvNeXt network; the training process of the ConvNeXt network based on efficient channel attention in the present application is based on the PyTorch development platform, and the training process of the ConvNeXt network based on efficient channel attention is optimized using the SGD optimizer, the initial learning rate is set to 0.1, and the batchsize is set to 64.
[0060] In addition, in the process of initial training of the ConvNeXt network based on efficient channel attention in step S2-2 of the present application, after the existing sample data of the existing data training set is input into the ConvNeXt network based on efficient channel attention, the ConvNeXt network based on efficient channel attention can also output soft labels and hard labels.
[0061] S3, obtaining an incremental sample training set, an incremental sample test set and an incremental sample verification set, passing the model parameters of the initial ConvNeXt network model based on efficient channel attention obtained in step S2-2 to the ConvNeXt network based on efficient channel attention constructed in step S1 through knowledge distillation, and obtaining a new ConvNeXt network based on efficient channel attention for incremental learning and training; using the incremental sample training set, the incremental sample test set and the incremental sample verification set to perform incremental learning and training on the new ConvNeXt network based on efficient channel attention, to achieve recognition of the signal to be detected; comprising the following specific steps:
[0062] S3-1. Obtain real-time data sets; details are as follows:
[0063] After the planned start time for identifying the signal to be detected, the distributed fiber optic acoustic wave sensing system DAS is used to collect two-dimensional space-time signals in the application scenario. For example, if the planned start time for identifying the signal to be detected is 8 o'clock in the morning, then the two-dimensional space-time signals are collected in the application scenario after 8 o'clock in the morning (including 8 o'clock); then, the above-mentioned two-dimensional space-time signals are preprocessed to obtain real-time sample data, and the real-time sample data and its corresponding labels constitute a real-time data set; wherein, the method of preprocessing the two-dimensional space-time signals in step S3 is the same as the method of preprocessing the two-dimensional space-time signals in step S2-1.
[0064] S3-2, divide the real-time sample data and its corresponding labels in the real-time data set obtained in step S3-1 according to the signal category of the two-dimensional space-time signal, and then select the real-time sample data and labels corresponding to the two-dimensional space-time signals of two signal categories each time as an incremental sample data set, so as to facilitate the new ConvNeXt network based on efficient channel attention in this application to gradually learn different signals to be detected, and then divide the real-time sample data and its corresponding labels in the incremental sample data set according to the ratio of 8:1:1 to obtain an incremental sample training set, an incremental sample test set and an incremental sample verification set;
[0065] S3-3, passing the model parameters of the initial ConvNeXt network model based on efficient channel attention obtained in step S2-2 to the ConvNeXt network based on efficient channel attention constructed in step S1 through knowledge distillation, so as to initialize the ConvNeXt network based on efficient channel attention constructed in step S1, and obtain a new ConvNeXt network based on efficient channel attention for incremental learning and training; the above-mentioned setting enables the present application to learn only the real-time sample data in the incremental sample training set, the incremental sample test set and the incremental sample verification set during the incremental learning and training process, without the need to repeat the training of the existing sample data;
[0066] S3-4, using the incremental sample training set, the incremental sample verification set and the incremental sample test set to perform incremental learning training on the new ConvNeXt network based on efficient channel attention obtained in step S3-3 to realize the recognition of the signal to be detected. The specific steps are as follows:
[0067] S3-4-1. Input the real-time sample data in the incremental sample training set into the new ConvNeXt network based on efficient channel attention obtained in step S3-3 for incremental learning training, retain and output the probability distribution and recognition rate of the signal category to be detected, and at the same time, calculate the total distillation loss L 总 , and then based on the total distillation loss L 总 The new ConvNeXt network based on efficient channel attention is updated by the stochastic gradient descent algorithm. Figure 2 The 2D convolutional layer shown in Figure 3 The convolution kernel weight parameters and bias parameters in the depthwise separable convolution layer and the two two-dimensional convolution layers shown in the ConvNeXt module based on efficient channel attention are updated, and the weight parameters and bias parameters in the fully connected layer except the bias parameters α and β are updated to obtain a new ConvNeXt network based on efficient channel attention after preliminary parameters;
[0068] S3-4-2. Before inputting the real-time data in the incremental sample verification set into the new ConvNeXt network based on efficient channel attention after the above preliminary parameters for verification, first freeze the parameters of the new ConvNeXt network based on efficient channel attention after the above preliminary parameters, and then input the real-time data in the incremental sample verification set into the new ConvNeXt network based on efficient channel attention after the above preliminary parameters for forward propagation once for verification, retain and output the probability distribution and recognition rate of the signal category to be detected, and at the same time, calculate the total distillation loss L 总 , and then based on the total distillation loss L 总The two bias parameters α and β used for linear correction in the new ConvNeXt network based on efficient channel attention after the preliminary parameters obtained in step S3-4-1 are updated by the stochastic gradient descent algorithm, and the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated is obtained;
[0069] S3-4-3, input the incremental sample test set into the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated, and forward propagation is performed once, and the probability distribution and recognition rate of the signal category to be detected are retained and output, completing an iterative process;
[0070] S3-4-4. Repeat the iteration 100 times to complete the incremental learning and training process of the new ConvNeXt network based on efficient channel attention; the process of inputting the incremental sample test set into the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated and forward propagating once is referred to as the incremental sample testing process below; in the 100 repeated iterations of the incremental learning and training of the present application, there are 100 incremental sample testing processes, and in each incremental sample testing process, the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated will output the probability distribution and recognition rate of the signal category to be detected, among which, in the incremental sample testing process with the largest recognition rate, the probability distribution and recognition rate of the signal category to be detected output by the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated is the final recognition result of the signal to be detected.
[0071] During the incremental learning and training of the new ConvNeXt network based on efficient channel attention in step S3-4 of the present application, after the real-time sample data in the incremental sample training set is input into the new ConvNeXt network based on efficient channel attention, the new ConvNeXt network based on efficient channel attention can also output soft labels and hard labels.
[0072] The incremental learning process of this application is also based on the PyTorch development platform, and the training process of the new ConvNeXt network based on efficient channel attention is optimized using the SGD optimizer, with the initial learning rate set to 0.1 and the batchsize set to 64; among them, the momentum value of the SGD optimizer is 0.9, the weight decay value is 0.0005, and the warm-up learning rate is adjusted by the warm-up factor, which is set to 1.0.
[0073] Among them, the total distillation loss L 总 Including classification loss L new , knowledge distillation loss Lold and attention distillation loss L AD , the total distillation loss constructed in this application L It can effectively reduce the forgetting of existing sample data, and the total distillation loss L 总 , classification loss L new , knowledge distillation loss L old and attention distillation loss L AD The relationship is shown in formula (3):
[0074] (3)
[0075] In formula (3), λ 1 , λ 2 as well as γ All are hyperparameters. λ 1 , λ 2 and γ are both 1.
[0076] In formula (3), the classification loss L new It refers to the classification loss generated by using the new ConvNeXt network based on efficient channel attention to identify the detection signal during the incremental learning process in step S3-4. L new , the classification loss of the signal to be detected L new Use formula (4) to calculate:
[0077] (4)
[0078] In formula (4), c is the signal type of the signal to be detected, m c Indicates the number of signals to be detected of a certain signal type, represents the predicted probability distribution of the signal category to be detected output in step S3-4-1, Represents the predicted probability distribution of the signal category to be detected output in step S3-4-2;
[0079] In formula (3), the knowledge distillation loss L oldIt refers to the loss between the soft label output by the ConvNeXt network based on efficient channel attention in step S2-2 and the hard label output by the new ConvNeXt network based on efficient channel attention in step 3-4. Among them, the knowledge distillation loss The calculation formula is shown in formula (5);
[0080] (5)
[0081] In formula (5), k is the signal type of the existing sample signal, n k represents the number of existing sample data of a certain signal type, let Represents the predicted probability distribution of the existing sample signal category output in step S2-2-1; Represents the predicted probability distribution of the existing sample signal category output in step S2-2-2;
[0082] In formula (3), the attention distillation loss L AD The loss generated in the process of transferring the model parameters of the initial ConvNeXt network model based on efficient channel attention obtained in step S2-2 to the ConvNeXt network based on efficient channel attention constructed in step S1 through knowledge distillation; wherein, the attention distillation loss L AD The calculation formula is shown in formula (6):
[0083] (6)
[0084] In formula (6), l Represents the length of the attention area in the attention map determined by the Grad-CAM method after being converted into a vector, j Indicates the first j channels, c Indicates the signal type of the signal to be detected; b Indicates the signal category with the highest confidence among the existing sample categories; I n Indicates n Existing sample data; Represents existing sample data belonging to signal category b I n The vectorized attention map generated by the initial ConvNeXt network model based on efficient channel attention described in step S2-2; Represents existing sample data belonging to category b I nThe vectorized attention map generated by the new efficient channel-attention based ConvNeXt network described in step S3-3 is used.
[0085] test:
[0086] In order to further verify the recognition effect of the recognition method described in this application, this application specially conducted an ablation experiment. This application uses the incremental sample training set, incremental sample test set and incremental sample verification set in step S3-2 to test the comparison method 1 to comparison method 3; however, in order to ensure the fairness of the test, during the test, this application no longer uses the incremental sample training set, incremental sample test set and incremental sample verification set in step S3-2 to test the recognition method proposed in this application, because although the steps shown in step S3-4 of this application are an incremental learning process, this process is actually a testing process. Therefore, this application directly uses the probability distribution and recognition rate of the signal category to be detected output by step S3-4 as the test result of the recognition method proposed in this application.
[0087] The present application uses the incremental sample training set, incremental sample test set and incremental sample verification set in step S3-2 to test comparison methods 1 to 3; specifically, as follows:
[0088] Comparison method 1: The existing ConvNeXt network is initially trained according to the steps shown in S2-2 to obtain the existing ConvNeXt network model after initial training; then, the existing ConvNeXt network model after initial training is incrementally learned and trained using an incremental sample training set and an incremental sample test set according to the fine-tuning method.
[0089] Comparative method 2: Performing initial training on the existing ConvNeXt network according to the steps shown in S2-2 to obtain the existing ConvNeXt network model after initial training; then, according to the steps described in step S3-3, the parameters of the existing ConvNeXt network model after initial training are transferred to the original existing ConvNeXt network through knowledge distillation to obtain the existing ConvNeXt network after knowledge distillation; then, using step S3-4, the existing ConvNeXt network after knowledge distillation is incrementally trained;
[0090] Among them, the incremental learning training process of the existing ConvNeXt network after knowledge distillation in comparison method 2 using incremental sample training sets and incremental sample test sets is different from the incremental learning training process described in step S3-4 only in that the existing ConvNeXt network after knowledge distillation is used in comparison method 2.
[0091] The test results of the identification method proposed in this application and the test results of comparative methods 1 to 3 are shown in Table 1:
[0092] Table 1 Test results of the identification method proposed in this application and comparative methods 1 to 3
[0093]
[0094] In Table 1, the average recognition rate ACC It is used to measure the recognition effect of the recognition method described in this application on the detection signal, wherein: ACC The higher the value, the better the recognition method is at recognizing the signal to be detected.
[0095] This application takes the third row and second column, the fourth row and second column, and the fifth row and second column in Table 1 as examples to introduce the contents expressed:
[0096] In the third row and second column of Table 1, the comparison method 1 is used to identify the signal type 1 and the signal type 2 on the incremental sample test set of real-time sample data and labels corresponding to the two-dimensional spatiotemporal signals of the two signal types of signal type 1 and signal type 2, and the recognition rates of signal type 1 and signal type 2 are obtained, and the recognition rates of signal type 1 and signal type 2 are averaged to obtain the average recognition rate ACC ; The third row in Table 1 is the row where signal type 1 and signal type 2 are located;
[0097] The fourth row and second column in Table 1 show the average recognition rate obtained by recognizing the two signal types, signal type 1 and signal type 2, shown in the third row of Table 1. ACC Afterwards; compare method 1 is used to identify signal type 3 and signal type 4 on the incremental sample test set of real-time sample data and labels corresponding to the two-dimensional spatiotemporal signals of these two signal types. While identifying signal type 3 and signal type 4, compare method 1 will also identify signal type 1 and signal type 2, and output the recognition rates of signal type 1, signal type 2, signal type 3 and signal type 4. Then, the recognition rates of signal type 1, signal type 2, signal type 3 and signal type 4 are averaged to obtain the average recognition rate. ACC ; The fourth row in Table 1 is the row where signal type 3 and signal type 4 are located;
[0098] The second column of the fifth row in Table 1 indicates the average recognition rate obtained by recognizing the four signal types, namely, signal type 1 and signal type 2 shown in the third row of Table 1 and signal type 3 and signal type 4 shown in the fourth row. ACCAfterwards; use comparison method 1 to identify signal type 5 and signal type 6 on the incremental sample test set of real-time sample data and labels corresponding to the two-dimensional spatiotemporal signals of these two signal types, and while identifying signal type 5 and signal type 6, comparison method 1 will also identify signal type 1, signal type 2, signal type 3 and signal type 4, and output the recognition rates of signal types 1 to signal types 6, and then average the recognition rates of signal types 1 to signal types 6 to obtain the average recognition rate ACC ; The fifth row in Table 1 is the row where signal type 5 and signal type 6 are located.
[0099] The meanings of other rows and columns in Table 1 are based on the meanings of the third row, second column, fourth row, second column, and fifth row, second column described above, and so on.
[0100] It can be found from Table 1 that compared with comparison method 1, comparison method 2 has the following advantages:
[0101] The average recognition rate of method 2 compared with method 1 when identifying signal type 1 and signal type 2 in the incremental sample test set containing signal type 1 and signal type 2. ACC Compared with the average recognition rate obtained by comparison method 1 ACC Increased by 97.5%-97.1%=0.4%;
[0102] However, when comparison method 2 continues to identify signal type 3 and signal type 4 on the incremental sample test set containing signal type 3 and signal type 4, the average recognition rate ACC of signal type 1, signal type 2, signal type 3 and signal type 4 obtained by comparison method 2 is 93.02%, which is 93.02%-80.21%=12.81% higher than the average recognition rate ACC of signal type 1, signal type 2, signal type 3 and signal type 4 obtained by comparison method 1 (i.e. 80.21%);
[0103] When comparison method 2 continues to identify signal type 5 and signal type 6 for the incremental sample test set containing signal type 5 and signal type 6, the average recognition rate ACC of signal type 1, signal type 2, signal type 3, signal type 4, signal type 5 and signal type 6 obtained by comparison method 2 is 91.55%, which is 91.55%-67.30%=24.25% higher than the average recognition rate ACC of signal type 1 to signal type 6 obtained by comparison method 1 (i.e. 67.30%);
[0104] Similarly, it can be seen from Table 1 that when the comparison method 2 continues to identify signal types 7 and 8, the average recognition rate of signal types 1 to 8 obtained by the comparison method 2 is ACCThe average recognition rate of signal type 1 to signal type 8 obtained by method 1 is 88.96%. ACC is 62.20%, that is, compared with the average recognition rate of signal type 1 to signal type 8 obtained by method 2 ACC Compared with the comparison method 1, it is improved by 26.76%;
[0105] When the comparison method 2 continues to identify signal types 9 and 10, the average recognition rate of signal types 1 to 10 obtained by the comparison method 2 is ACC The average recognition rate of signal type 1 to signal type 10 obtained by method 1 is 87.17%. ACC is 55.66%, that is, compared with the average recognition rate of signal types 1 to 8 obtained by method 2 ACC Compared with the comparison method 1, it is improved by 31.51%;
[0106] Obviously, by comparing the results of comparison method 1 and comparison method 2, it can be seen that as the number of signal types continues to be identified increases, comparison method 2 can obtain a better average recognition rate than comparison method 1. ACC ;
[0107] The difference between comparison method 1 and comparison method 2 is that: comparison method 1 performs initial training on the existing ConvNeXt network, and then performs incremental learning training on the existing ConvNeXt network model after initial training using an incremental sample training set and an incremental sample test set according to the fine-tuning method; while comparison method 2 first performs initial training on the existing ConvNeXt network, and then, according to the step S3-3 of the present application, the parameters of the existing ConvNeXt network model after initial training are transferred to the original existing ConvNeXt network through knowledge distillation to obtain the existing ConvNeXt network after knowledge distillation; and then, step S3-4 is used to perform incremental learning training on the existing ConvNeXt network after knowledge distillation;
[0108] Therefore, the average recognition rate that can be achieved by comparison method 2 and comparison method 1 shown in Table 1 of this application is ACC The test results also prove that the comparison method 2 forgets less existing sample data than the comparison method 1; moreover, as long as the knowledge distillation process described in step S3-3 of this application and the incremental learning training process in step S3-4 are adopted, even the existing ConvNeXt network can achieve a better average recognition rate. ACC ;
[0109] In addition, by comparing the test results of the comparison method 2 shown in Table 1 and the identification method described in this application, it can be seen that:
[0110] When the recognition method described in the present application recognizes signal type 1 and signal type 2, the average recognition rate of signal type 1 and signal type 2 obtained is ACC The average recognition rate of signal type 1 and signal type 2 obtained by method 2 is 98.6%. ACC The recognition method described in this application is 98.6%-97.5%=1.1% higher than that of the comparative method 2.
[0111] When the recognition method described in the present application continues to recognize signal type 3 and signal type 4, the average recognition rate of signal type 1, signal type 2, signal type 3 and signal type 4 is obtained. ACC The average recognition rate of signal type 1 to signal type 4 obtained by method 2 is 96.15%. ACC The recognition rate of the recognition method in this application is 93.02%, which is 3.13% higher than that of the comparative method 2.
[0112] When the recognition method described in the present application continues to recognize signal type 5 and signal type 6, the average recognition rate of signal type 1, signal type 2, signal type 3, signal type 4, signal type 5 and signal type 6 is obtained. ACC The average recognition rate of signal type 1 to signal type 6 obtained by method 2 is 95.03%. ACC The recognition rate of the recognition method in this application is 91.55%, which is 3.48% higher than that of the comparative method 2.
[0113] When the recognition method described in the present application continues to recognize signal type 7 and signal type 8, the average recognition rate of signal type 1, signal type 2, signal type 3, signal type 4, signal type 5, signal type 6, signal type 7 and signal type 8 is obtained. ACC The average recognition rate of signal type 1 to signal type 8 obtained by method 2 is 94.32%. ACC The recognition rate of the recognition method in this application is 88.96%, which is 5.36% higher than that of the comparative method 2.
[0114] When the recognition method described in the present application continues to recognize signal type 9 and signal type 10, the average recognition rate of signal type 1, signal type 2, signal type 3, signal type 4, signal type 5, signal type 6, signal type 7, signal type 8, signal type 9 and signal type 10 is obtained. ACC The average recognition rate of signal type 1 to signal type 10 obtained by method 2 is 93.35%. ACC The recognition rate of the recognition method in this application is 87.17%, which is 6.18% higher than that of the comparative method 2.
[0115] The difference between the recognition method described in the present application and the comparative method 2 is that the comparative method 2 is to initially train the existing ConvNeXt network, and then, according to the steps described in step S3-3 of the present application, the parameters of the existing ConvNeXt network model after the initial training are transferred to the original existing ConvNeXt network through knowledge distillation, and then, the existing ConvNeXt network after knowledge distillation is incrementally learned and trained using step S3-4; while the recognition method described in the present application is to initially train the ConvNeXt network based on efficient channel attention constructed in step S1 of the present application, and then, according to the steps described in step S3-3 of the present application, the parameters of the ConvNeXt network model based on efficient channel attention after the initial training are transferred to the original ConvNeXt network based on efficient channel attention through knowledge distillation, and then, the ConvNeXt network based on efficient channel attention after knowledge distillation is incrementally learned and trained using step S3-4;
[0116] Therefore, the average recognition rate that can be achieved by the recognition method described in this application and the comparative method 2 shown in Table 1 of this application is ACC The test results also prove that even if the same knowledge distillation process and incremental learning training process are used, the ConvNeXt network based on efficient channel attention constructed in this application can achieve a better average recognition rate than the existing ConvNeXt network. ACC .
Claims
1. A distributed optical fiber detection signal recognition method based on incremental learning, characterized in that: The steps include: S1. Constructing a ConvNeXt network based on efficient channel attention. The ConvNeXt network based on efficient channel attention is obtained by making the following improvements to the existing ConvNeXt network: (1) uniformly replacing the ConvNeXt modules in the existing ConvNeXt network with ConvNeXt modules based on efficient channel attention; (2) Adding the fully connected layer in the existing ConvNeXt network α and β These two bias parameters; The fully connected layer adds two bias parameters α and β to achieve linear correction of the probability distribution of the predicted category of the signal to be detected; In step S1, the ConvNeXt module based on efficient channel attention is obtained by improving the existing ConvNeXt module in the existing ConvNeXt network as follows: (1) the existing ConvNeXt module includes a first branch and a second branch connected in parallel, and the first branch and the second branch are both connected to the Add layer, wherein the first branch includes a depth-separable convolution layer, a first two-dimensional convolution layer and a second two-dimensional convolution layer connected in sequence, and after the second two-dimensional convolution layer of the first branch, an efficient channel attention module ECA and a Dropout layer are connected in sequence, and the output end of the Dropout layer and the second branch are both connected to the input end of the Add layer to obtain a ConvNeXt module based on efficient channel attention; (2) the sigmoid function in the existing efficient channel attention module ECA is replaced with a hard-sigmoid function; S2, performing initial training on the ConvNeXt network based on efficient channel attention constructed in step S1 to obtain an initial ConvNeXt network model based on efficient channel attention; Step S2 includes the following specific steps: S2-1, pre-processing the two-dimensional spatiotemporal signals collected in the application scenario before the start time of the planned identification of the signal to be detected to obtain existing sample data, and dividing the existing sample data and its corresponding labels in a ratio of 7:3 to obtain an existing data training set and an existing data test set; S2-2, using the existing data training set and the existing data test set to perform initial training on the ConvNeXt network based on efficient channel attention constructed in step S1, to obtain an initial ConvNeXt network model based on efficient channel attention; S3, passing the model parameters of the initial ConvNeXt network model based on efficient channel attention to the ConvNeXt network based on efficient channel attention constructed in step S1 through knowledge distillation, to obtain a new ConvNeXt network based on efficient channel attention; then performing incremental learning training on the new ConvNeXt network based on efficient channel attention, and realizing recognition of the signal to be detected during the incremental learning training; Step S3 includes the following specific steps: S3-1, obtaining a real-time data set; after the start time of the planned identification of the signal to be detected, collecting a two-dimensional space-time signal in the application scenario; then, preprocessing the above two-dimensional space-time signal to obtain real-time sample data, and the real-time sample data and its corresponding labels constitute the real-time data set; wherein the method of preprocessing the two-dimensional space-time signal in step S3 is the same as the method of preprocessing the two-dimensional space-time signal in step S2-1; S3-2, dividing the real-time sample data and the corresponding labels in the real-time data set obtained in step S3-1 according to the signal category of the two-dimensional space-time signal, and then selecting the real-time sample data and labels corresponding to the two-dimensional space-time signals of two signal categories each time as an incremental sample data set, and then dividing the real-time sample data and the corresponding labels in the incremental sample data set according to the ratio of 8:1:1 to obtain an incremental sample training set, an incremental sample test set and an incremental sample verification set; S3-3, passing the model parameters of the initial ConvNeXt network model based on efficient channel attention obtained in step S2-2 to the ConvNeXt network based on efficient channel attention constructed in step S1 through knowledge distillation, so as to initialize the ConvNeXt network based on efficient channel attention constructed in step S1 and obtain a new ConvNeXt network based on efficient channel attention; S3-4, using the incremental sample training set, the incremental sample verification set and the incremental sample test set to perform incremental learning training on the new ConvNeXt network based on efficient channel attention obtained in step S3-3, and realizing the recognition of the signal to be detected during the incremental learning training process; Step S3-4 includes the following specific steps: S3-4-1. Input the real-time sample data in the incremental sample training set into the new ConvNeXt network based on efficient channel attention obtained in step S3-3 for incremental learning training, retain and output the probability distribution and recognition rate of the signal category to be detected, and at the same time, calculate the total distillation loss L 总 , and then based on the total distillation loss L 总 The two-dimensional convolution layer in the new ConvNeXt network based on efficient channel attention and the convolution kernel weight parameters and bias parameters in the depth-separable convolution layer and two two-dimensional convolution layers shown in the ConvNeXt module based on efficient channel attention are updated by the stochastic gradient descent algorithm, and the weight parameters and bias parameters in the fully connected layer except the bias parameters α and β are updated to obtain the new ConvNeXt network based on efficient channel attention after preliminary parameters; S3-4-2. Freeze the parameters of the new ConvNeXt network based on efficient channel attention after the preliminary parameters obtained in step S3-4-1. Then, input the real-time data in the incremental sample verification set into the new ConvNeXt network based on efficient channel attention after the preliminary parameters obtained in step S3-4-1. Propagate forward once for verification, retain and output the probability distribution and recognition rate of the signal category to be detected, and at the same time, calculate the total distillation loss. L 总 , and then based on the total distillation loss L 总 The two bias parameters α and β used for linear correction in the new ConvNeXt network based on efficient channel attention after the preliminary parameters obtained in step S3-4-1 are updated by the stochastic gradient descent algorithm, and the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated is obtained; S3-4-3, input the incremental sample test set into the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated, and forward propagation is performed once, and the probability distribution and recognition rate of the signal category to be detected are retained and output, completing an iterative process; S3-4-4. Repeat the iteration 100 times to complete the incremental learning and training process of the new ConvNeXt network based on efficient channel attention; the process of inputting the incremental sample test set into the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated and forward propagated once is called the incremental sample test process; in the incremental sample test process with the largest recognition rate, the probability distribution of the signal category to be detected and the recognition rate output by the ConvNeXt network based on efficient channel attention after the bias parameters α and β are updated are the final recognition results of the signal to be detected.
2. The distributed optical fiber detection signal recognition method based on incremental learning according to claim 1 is characterized in that: In step S2-1, the two-dimensional space-time signal is preprocessed as follows: the two-dimensional space-time signal is continuously divided into 2s as a time unit to obtain two-dimensional space-time signal segments, and then the sampling rate of the two-dimensional space-time signal segments is reduced from 7000Hz to 100Hz to obtain downsampled data, and then the downsampled data is differentially processed to obtain existing sample data.
3. The distributed optical fiber detection signal recognition method based on incremental learning according to claim 1 is characterized in that: Step S2-2 includes the following specific steps: S2-2-1, input the existing sample data in the existing data training set into the ConvNeXt network based on efficient channel attention constructed in step S1, retain and output the probability distribution and recognition rate of the existing sample signal category, and at the same time, calculate the cross entropy loss of the ConvNeXt network based on efficient channel attention, and then perform back propagation under the guidance of the cross entropy loss, update and retain the two-dimensional convolution layer in the ConvNeXt network based on efficient channel attention and the depth-separable convolution layer in the ConvNeXt module based on efficient channel attention and the convolution kernel weight parameters and bias parameters in the two two-dimensional convolution layers, and update the weight parameters and bias parameters in the fully connected layer except the bias parameters α and β, and do not call or update the bias parameters α and β added by the fully connected layer; S2-2-2, input the existing sample data in the existing data test set into the ConvNeXt network based on efficient channel attention after the updated parameters obtained in step S2-2-1, and forward propagate once for testing, retain and output the probability distribution and recognition rate of the existing sample signal category, and complete an iterative process; S2-2-3, after repeating the iteration 100 times, the training process of the ConvNeXt network based on efficient channel attention is completed; The parameters of the ConvNeXt network based on efficient channel attention in the verification process with the highest recognition rate are used as the model parameters of the ConvNeXt network based on efficient channel attention, and the initial ConvNeXt network model based on efficient channel attention is obtained.
4. The distributed optical fiber detection signal recognition method based on incremental learning according to claim 1 is characterized in that: Total distillation loss L 总 Including classification loss L new , knowledge distillation loss L old and attention distillation loss L AD .
5. The distributed optical fiber detection signal recognition method based on incremental learning according to claim 1, characterized in that: Distributed fiber acoustic sensing system DAS is used to collect two-dimensional space-time signals in application scenarios.
6. The distributed optical fiber detection signal recognition method based on incremental learning according to claim 5 is characterized in that: The distributed fiber optic acoustic wave sensing system DAS includes a narrow linewidth laser, an acousto-optic modulator, an erbium-doped amplifier I, a circulator, an erbium-doped amplifier II, a grating filter, a coupler I and a coupler II which are sequentially connected through a sensing optical fiber. The circulator is connected to a signal acquisition optical fiber laid in an application scenario. In this embodiment, the application scenario is a pipeline, that is, the circulator is connected to a signal acquisition optical fiber laid in the pipeline. Coupler II is respectively connected to a photodetector I, a photodetector II, and a photodetector III. The photodetector I, the photodetector II, and the photodetector III are all connected to a data acquisition card through a data line, and the data acquisition card is connected to a computer through a data line. The distributed fiber optic acoustic wave sensing system DAS also includes a pulse generator, which is respectively connected to the acousto-optic modulator and the data acquisition card.
Citation Information
Patent Citations
Method for identifying mode of distributed optical fiber sensor system
CN114510960A
Network vibration damage detection method based on channel-space-time attention mechanism
CN115630278A
