Micro-seismic event detection method and system based on cross attention mechanism
By using the cross-attention mechanism in microseismic event detection to perform parallel processing and feature fusion of time domain and frequency domain data, the problem of difficulty in distinguishing signals and noise in the existing technology is solved, and detection accuracy and feature expression capabilities are improved.
Patent Information
- Application Number
- CN202410774269.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-15
AI Technical Summary
Existing microseismic event detection methods are difficult to effectively distinguish signals and noise, especially in the case of low signal-to-noise ratio and unstable signal phase, resulting in insufficient detection accuracy.
A microseismic event detection method based on the cross-attention mechanism is adopted. By parallel processing of time domain and frequency domain data, and using the cross-attention mechanism for feature fusion, the performance of the model in microseismic event detection is improved. Specific steps include obtaining time domain data, preprocessing and converting it into frequency domain data, building a detection model, and using a cross-attention mechanism to fuse time domain and frequency domain features.
It improves the ability to pay attention to and process the global attributes of microseismic data, enhances the extraction and enhancement of time domain and frequency domain features, and improves the detection accuracy and judgment ability of microseismic events.
Smart Images

Figure CN118778101A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of seismic signal phase recognition, and in particular to a microseismic event detection method and system based on a cross-attention mechanism. Background Art
[0002] Seismic event detection is a crucial task in microseismic data processing. Event detection in microseismic data plays a key role in monitoring engineering activities such as water or gas injection in underground reservoirs. By detecting tiny seismic events, engineers can understand the deformation of underground rocks, evaluate the impact of injection activities, and adjust operation strategies in time to prevent adverse effects.
[0003] Existing deep learning-based microseismic event recognition methods can be divided into the following categories: Convolutional Neural Network (CNN)-based methods: using the feature extraction capability of CNN to classify seismic waveforms, distinguish microseismic events from noise events, and different types of microseismic events. Recurrent Neural Network (RNN)-based methods: using the time series modeling capability of RNN to perform sequence analysis on seismic waveforms, identify the first arrival and duration of microseismic events, and different types of microseismic events. Autoencoder (AE)-based methods: using the dimensionality reduction and reconstruction capabilities of AE to compress and restore seismic waveforms, and determine whether it is a microseismic event and different types of microseismic events based on the reconstruction error. Most of the above methods process the acquired signals as time series data. Since the energy of microseismic signals is very low and they are interfered by various noises during the acquisition process, the signal-to-noise ratio of the signal is very low, making it difficult to distinguish between signals and noise; the arrival time and phase of microseismic signals will change with the changes in factors such as the source location, propagation speed, and sensor location, resulting in unstable phase of the signal, making it difficult to perform phase-related analysis. Frequency domain identification of microseismic data can utilize spectrum analysis methods, such as short-time Fourier transform (STFT), to convert time domain signals into time-frequency domain signals, generate time-frequency spectrum diagrams, and improve signal visualization and feature extraction capabilities. Summary of the invention
[0004] In order to solve the technical problems in the above background and to better detect microseismic events, it is necessary to effectively integrate the characteristics of seismic data in the time domain and frequency domain so that the neural network model can achieve better performance in the field of microseismic event detection. The present invention proposes a microseismic event detection method based on a cross-attention mechanism.
[0005] A microseismic event detection method based on a cross-attention mechanism, characterized in that the steps include:
[0006] Obtain time domain data collected by microseismic monitoring instruments;
[0007] Preprocessing the time domain data to obtain frequency domain data;
[0008] Construct a microseismic event detection model;
[0009] Based on the time domain data and the frequency domain data, the microseismic event detection model is used to complete the detection of microseismic events.
[0010] Preferably, the method for performing the preprocessing includes: performing a fast Fourier transform or a short-time Fourier transform operation on the time domain data to convert the time data into the frequency domain data, and storing the converted frequency domain data in the form of a spectrum diagram.
[0011] Preferably, the constructed microseismic event detection model includes two branches, and the time domain data and the frequency domain data are transformed and encoded at the same time; finally, the feature data extracted by the two branches are fused, and the fused data passes through multiple fully connected layers and Softmax classification function to generate the final classification result.
[0012] Preferably, for the time domain data:
[0013] First, the time domain data is linearly transformed, and then the dilated convolution is applied to improve the receptive field of the model, and then the linearly transformed time domain data is one-dimensionally position encoded to obtain one-dimensional encoded data;
[0014] Sending the one-dimensional encoded data to N cascaded feature fusers;
[0015] In the feature fusion device, the one-dimensional encoded data is sent to the encoder of the Transformer to generate time domain feature data T ki , T vi , T qi , where 1≤i≤N; and the generated time domain feature data is sent to the cross attention unit.
[0016] Preferably, for the frequency domain data:
[0017] First, a multi-layer convolutional network is used to extract features from the frequency domain data, and then the extracted features are two-dimensionally encoded to obtain two-dimensional encoded data;
[0018] Sending the two-dimensional coded data into N cascaded feature fusers;
[0019] In the feature fusion device, the two-dimensional encoded data is sent to the encoder of the Transformer to generate time domain feature data F ki 、F vi 、F qi, where 1≤i≤N; and the generated frequency domain feature data is sent to the cross attention unit.
[0020] Preferably, in the cross attention unit, the q, k, v features extracted from the two branches are cross-fused. For the time domain branch, the formula is:
[0021]
[0022] Among them, CrossAttention represents the cross attention mechanism; q represents the query; k represents the key; v represents the value; T represents the transposed matrix; dk represents the scaling factor;
[0023] For the frequency domain branch, the formula is:
[0024]
[0025] The time domain data features and frequency domain data features processed by the cross-attention unit are sent to a Transformer encoder respectively to prepare for the final feature fusion.
[0026] The present invention also provides a microseismic event detection system based on a cross-attention mechanism, the system is used in the above method, and comprises: an acquisition module, a processing module, a construction module and a detection module;
[0027] The acquisition module is used to acquire time domain data using a microseismic monitoring instrument;
[0028] The processing module is used to pre-process the time domain data to obtain frequency domain data;
[0029] The building module is used to build a microseismic event detection model;
[0030] The detection module is used to complete the detection of microseismic events based on the time domain data and the frequency domain data using the microseismic event detection model.
[0031] Preferably, the workflow of the processing module includes: performing a fast Fourier transform or a short-time Fourier transform operation on the time domain data to convert the time data into the frequency domain data, and storing the converted frequency domain data in the form of a spectrum diagram.
[0032] Compared with the prior art, the present invention has the following beneficial effects:
[0033] The present invention proposes a microseismic event detection method based on a cross-attention mechanism. The model proposed in the present invention can process the collected seismic data in parallel in the time domain and the frequency domain, and cross-fuse the processed data through the cross-attention mechanism. The method of the present invention can increase the attention to the global attributes of microseismic data, improve the ability to process microseismic data, and extract and enhance the features of microseismic events in the time domain and the frequency domain, and determine effective microseismic events. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0035] Figure 1 A schematic diagram of a method flow chart of an embodiment of the present invention;
[0036] Figure 2 A block diagram of a detection method according to an embodiment of the present invention;
[0037] Figure 3 A stacking block diagram of a feature fusion device according to an embodiment of the present invention;
[0038] Figure 4 This is a block diagram of frequency domain and time domain feature fusion and multi-layer perceptron detection according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0041] Embodiment 1
[0042] like Figure 1 and Figure 2 As shown, it is a schematic diagram of the method flow and a block diagram of the present embodiment, and the steps include:
[0043] S1. Obtain time domain data collected by microseismic monitoring instruments.
[0044] First, the time series data collected by the microseismic monitoring instrument is the starting point of this method. These data contain seismic waveform information before and after the earthquake event, which is the basis for detecting microseismic events.
[0045] S2. Preprocess the time domain data to obtain frequency domain data.
[0046] In order to extract useful information from these data, this embodiment performs a fast Fourier transform or a short-time Fourier transform operation on the time domain data to convert the time data into the frequency domain data, and the converted frequency domain data is stored in the form of a spectrum diagram.
[0047] S3. Construct a microseismic event detection model; and based on the time domain data and the frequency domain data, use the microseismic event detection model to complete the detection of microseismic events.
[0048] After data conversion, the model is divided into two branches, which transform and encode the one-dimensional data in the time domain (time domain data) and the two-dimensional spectrum graph (frequency domain data) at the same time; finally, the feature data extracted by the two branches are fused, and the fused data passes through multiple fully connected layers and Softmax classification function to generate the final classification result.
[0049] Specifically, for the time domain data branch:
[0050] First, the time domain data is linearly transformed, then the receptive field of the model is improved through the dilated convolution, and finally the data is one-dimensionally encoded to obtain one-dimensional encoded data. This series of processing steps is aimed at extracting key features from time series data and preparing for subsequent feature fusion.
[0051] At the same time, the frequency domain data branch extracts features from the two-dimensional spectrum through a multi-layer convolutional network and performs two-dimensional position encoding on the extracted features to obtain two-dimensional encoded data. This can capture important information in the frequency domain and provide more clues for identifying microseismic events.
[0052] After the two branches have processed their respective data, their outputs are fed into the cross-attention unit. Here, the feature data in the time domain and frequency domain are fused through the cross-attention mechanism. This mechanism allows the model to establish connections between two different domains and complement each other's information, thereby improving the expressiveness of the features. In this way, the model can understand and analyze microseismic data more comprehensively and improve the accuracy of detection. Specifically, in the feature fusion unit, the one-dimensional encoded data is fed into the encoder of the Transformer to generate the time domain feature data T ki , T vi , T qi, where 1≤i≤N; and the generated time domain feature data is sent to the cross attention unit. The two-dimensional encoded data is sent to the encoder of the Transformer to generate the time domain feature data F ki 、F vi 、F qi , where 1≤i≤N; and the generated frequency domain feature data is sent to the cross attention unit.
[0053] In the cross attention unit, the q, k, v features extracted from the two branches are cross-fused. For the time domain branch, the formula is:
[0054]
[0055] Among them, CrossAttention represents the cross attention mechanism; q represents the query; k represents the key; v represents the value; T represents the transposed matrix; dk represents the scaling factor;
[0056] For the frequency domain branch, the formula is:
[0057]
[0058] The time domain data features and frequency domain data features processed by the cross-attention unit are sent to a Transformer encoder respectively to prepare for the final feature fusion.
[0059] After being processed by N cascaded feature fusers, the final feature data is fed into a Transformer encoder for final feature fusion. This step further enhances the model’s ability to understand and express the characteristics of microseismic events.
[0060] Finally, the fused feature data is passed through multiple fully connected layers and the Softmax classification function to generate the final classification result, which can tell us whether a microseismic event has occurred and the probability of the event.
[0061] Figure 3 The internal structure of the feature fuser is further refined, showing how to achieve deep feature fusion through cascaded Transformer encoders and cross-attention units. Each Transformer encoder contains multiple self-attention layers and feedforward neural networks, which enables the model to capture rich contextual information within each branch. The cross-attention unit allows the model to exchange information between different data branches. By dynamically adjusting the correlation strength between different features, the model can more accurately identify and classify microseismic events.
[0062] In the feature fusion process, each cascade increases the complexity and expressiveness of the model, allowing the model to gradually refine and strengthen key features. This hierarchical fusion strategy not only improves the model's sensitivity to microseismic events, but also enhances the model's generalization ability, enabling it to adapt to different monitoring environments and conditions.
[0063] Figure 4 It shows how the data processed by the feature fusion is used for the final determination of microseismic events. In this stage, the data of time domain and frequency domain features are added and finally fused. This step not only further strengthens the association between features, but also provides a richer and more accurate information basis for the classification of microseismic events.
[0064] Subsequently, the fused feature data is processed through multiple fully connected layers, which act as multi-layer perceptrons to perform nonlinear transformation and dimensionality compression on the features to adapt to the final classification task. The application of the Softmax classification function converts continuous feature values into probability distributions, thereby generating classification results for microseismic events.
[0065] Embodiment 2
[0066] This embodiment also provides a microseismic event detection system based on a cross-attention mechanism, including: an acquisition module, a processing module, a construction module and a detection module; the acquisition module is used to use a microseismic monitoring instrument to collect time domain data; the processing module is used to pre-process the time domain data to obtain frequency domain data; the construction module is used to construct a microseismic event detection model; the detection module is used to complete the detection of microseismic events based on the time domain data and the frequency domain data using the microseismic event detection model.
[0067] The workflow of the processing module includes: performing fast Fourier transform or short-time Fourier transform operation on the time domain data, converting the time data into frequency domain data, and storing the converted frequency domain data in the form of a spectrum diagram.
[0068] The constructed microseismic event detection model consists of two branches, which transform and encode the time domain data and the frequency domain data at the same time; finally, the feature data extracted by the two branches are fused, and the fused data passes through multiple fully connected layers and Softmax classification function to generate the final classification result.
[0069] For time domain data:
[0070] First, the time domain data is linearly transformed, and then the dilated convolution is applied to improve the receptive field of the model. Then, the linearly transformed time domain data is positionally encoded in one dimension to obtain one-dimensional encoded data.
[0071] Send the one-dimensional encoded data into N cascaded feature fusers;
[0072] In the feature fusion, the one-dimensional encoded data is fed into the Transformer encoder to generate time domain feature data T ki , T vi , T qi , where 1≤i≤N; and the generated time domain feature data is sent to the cross attention unit.
[0073] For frequency domain data:
[0074] First, a multi-layer convolutional network is used to extract features from frequency domain data, and then the extracted features are two-dimensionally encoded to obtain two-dimensional encoded data;
[0075] Send the two-dimensional encoded data into N cascaded feature fusers;
[0076] In the feature fusion, the two-dimensional encoded data is fed into the Transformer encoder to generate time domain feature data F ki 、F vi 、F qi , where 1≤i≤N; and the generated frequency domain feature data is sent to the cross attention unit.
[0077] In the cross attention unit, the q, k, v features extracted from the two branches are cross-fused. For the time domain branch, the formula is:
[0078]
[0079] Among them, CrossAttention represents the cross attention mechanism; q represents the query; k represents the key; v represents the value; T represents the transposed matrix; dk represents the scaling factor;
[0080] For the frequency domain branch, the formula is:
[0081]
[0082] The time domain data features and frequency domain data features processed by the cross-attention unit are sent to a Transformer encoder respectively to prepare for the final feature fusion.
[0083] After being processed by N cascaded feature fusers, the final feature data is fed into a Transformer encoder for final feature fusion. This step further enhances the model’s ability to understand and express the characteristics of microseismic events.
[0084] Finally, the fused feature data is passed through multiple fully connected layers and the Softmax classification function to generate the final classification result, which can tell us whether a microseismic event has occurred and the probability of the event.
[0085] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A microseismic event detection method based on a cross-attention mechanism, characterized in that the steps include: Obtain time domain data collected by microseismic monitoring instruments; Preprocessing the time domain data to obtain frequency domain data; Construct a microseismic event detection model; And based on the time domain data and the frequency domain data, the microseismic event detection model is used to complete the detection of microseismic events.
2. The microseismic event detection method based on the cross-attention mechanism according to claim 1 is characterized in that: The method for performing the preprocessing includes: performing a fast Fourier transform or a short-time Fourier transform operation on the time domain data to convert the time data into the frequency domain data, and storing the converted frequency domain data in the form of a spectrum diagram.
3. The microseismic event detection method based on the cross-attention mechanism according to claim 1 is characterized in that: The constructed microseismic event detection model includes two branches, which transform and encode the time domain data and the frequency domain data at the same time; finally, the feature data extracted by the two branches are fused, and the fused data passes through multiple fully connected layers and Softmax classification functions to generate the final classification result.
4. The microseismic event detection method based on the cross-attention mechanism according to claim 3 is characterized in that: For the time domain data: First, the time domain data is linearly transformed, and then the dilated convolution is applied to improve the receptive field of the model, and then the linearly transformed time domain data is one-dimensionally position encoded to obtain one-dimensional encoded data; Sending the one-dimensional encoded data to N cascaded feature fusers; In the feature fusion device, the one-dimensional encoded data is sent to the encoder of the Transformer to generate time domain feature data T ki , T vi , T qi , where 1≤i≤N; and the generated time domain features are sent to the cross attention unit.
5. The microseismic event detection method based on the cross-attention mechanism according to claim 4 is characterized in that: For the frequency domain data: First, a multi-layer convolutional network is used to extract features from the frequency domain data, and then the extracted features are two-dimensionally encoded to obtain two-dimensional encoded data; Sending the two-dimensional coded data into N cascaded feature fusers; In the feature fusion device, the two-dimensional encoded data is sent to the encoder of the Transformer to generate time domain feature data F ki 、F vi 、F qi , where 1≤i≤N; and the generated frequency domain features are sent to the cross attention unit.
6. The microseismic event detection method based on the cross-attention mechanism according to claim 5 is characterized in that: In the cross attention unit, the q, k, v features extracted from the two branches are cross-fused. For the time domain branch, the formula is: Among them, CrossAttention represents the cross attention mechanism; q represents the query; k represents the key; v represents the value; T represents the transposed matrix; dk represents the scaling factor; For the frequency domain branch, the formula is: The time domain data features and frequency domain data features processed by the cross-attention unit are sent to a Transformer encoder respectively to prepare for the final feature fusion.
7. A microseismic event detection system based on a cross-attention mechanism, the system being used to implement the method according to any one of claims 1 to 6, characterized in that: include: Acquisition module, processing module, construction module and detection module; The acquisition module is used to acquire time domain data using a microseismic monitoring instrument; The processing module is used to pre-process the time domain data to obtain frequency domain data; The building module is used to build a microseismic event detection model; The detection module is used to complete the detection of microseismic events based on the time domain data and the frequency domain data using the microseismic event detection model.
8. The microseismic event detection system based on the cross-attention mechanism according to claim 7 is characterized in that: The working process of the processing module includes: performing a fast Fourier transform or a short-time Fourier transform operation on the time domain data, converting the time data into the frequency domain data, and storing the converted frequency domain data in the form of a spectrum diagram.
Citation Information
Patent Citations
Novel microseismic classification method based on bimodal neurons in artificial neural network
CN116299684A
Audio-visual speech enhancement method based on cross attention and model building method thereof
CN117854535A
Bearing residual life prediction method based on probability sparse attention
CN118010350A
Earthquake event classification method using attention-based convolutional neural network, recording medium and device for performing the method
US20210117737A1
