Earthquake parameter prediction method and device, terminal equipment and storage medium
Through the combination of convolution module, Fourier transformer and decoder, the global features and high-dimensional frequency domain features of seismic wave data are extracted, which solves the problem of low seismic parameter prediction accuracy in the existing technology and achieves more efficient and accurate Earthquake parameter prediction.
Patent Information
- Application Number
- CN202410565246.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing earthquake parameter prediction methods mainly rely on empirical formulas and statistical relationships, resulting in low prediction accuracy, poor robustness and generalization, and inability to deeply understand earthquake mechanisms and physical processes.
The preset earthquake prediction model using the convolution module, Fourier transformer and decoder is used to predict earthquake parameters through the global characteristics and high-dimensional frequency domain feature extraction of seismic wave data, including convolution layer, random discarding layer, and maximum pooling. Components such as layers, Fourier transform layers, and multi-layer perceptrons, combined with learnable position encoders and layer normalization processes, optimize the model training and prediction process.
It improves the efficiency and accuracy of seismic parameter prediction, enhances the model's understanding of seismic wave data and prediction accuracy, and improves the ability to identify and locate seismic events.
Smart Images

Figure CN118566973A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of digital signal analysis, and in particular, relates to a method, device, terminal equipment and storage medium for predicting earthquake parameters. Background Art
[0002] Earthquakes are a common and extremely destructive natural phenomenon. Earthquakes can cause severe ground shaking that can destroy buildings, posing a serious threat to people's lives and property. Accurate prediction of key earthquake parameters is crucial for early earthquake warning.
[0003] In the related technologies, earthquake parameter prediction methods mainly use empirical formulas and statistical relationships, lacking an in-depth understanding of earthquake mechanisms and physical processes, which limits their prediction accuracy and reliability. Using the above earthquake parameter prediction methods usually leads to problems with the robustness and generalization of earthquake parameter predictions. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, terminal device and storage medium for predicting earthquake parameters, which can solve the problem that the current earthquake parameter prediction methods generally use empirical formulas and statistical relationships, resulting in low earthquake parameter prediction accuracy, poor robustness and generalization.
[0005] In a first aspect, an embodiment of the present application provides a method for predicting earthquake parameters, comprising: obtaining seismic wave data corresponding to at least one seismic event; predicting at least one seismic parameter corresponding to the seismic event based on the seismic wave data and a preset seismic prediction model, wherein the preset seismic prediction model comprises a convolution module, a Fourier transformer and a decoder.
[0006] In a possible implementation of the first aspect, predicting a seismic parameter corresponding to at least one seismic event based on seismic wave data and a preset seismic prediction model includes:
[0007] Input the seismic wave data into the convolution module and output the seismic wave data feature map;
[0008] Inputting the seismic wave data characteristic graph into the Fourier transformer and outputting the seismic wave data characteristic sequence;
[0009] The characteristic sequence of seismic wave data is input into a decoder, and a seismic parameter corresponding to at least one seismic event is output.
[0010] Optionally, in another possible implementation of the first aspect, the convolution module includes a convolution layer, a random drop layer, and a maximum pooling layer; the above-mentioned inputting the seismic wave data into the convolution module and outputting the seismic wave data feature map includes:
[0011] Input the seismic wave data into the convolution layer and output the first convolution feature map;
[0012] Input the first convolution feature map into the random dropout layer and output the second convolution feature map;
[0013] The second convolution feature map is input into the maximum pooling layer and the seismic wave data feature map is output.
[0014] Optionally, in another possible implementation of the first aspect, the Fourier transformer includes a first normalization layer, a two-dimensional fast Fourier transform layer, a Hadamard product operation layer, a two-dimensional inverse fast Fourier transform layer, a second normalization layer and a multilayer perceptron; the first normalization layer and the two-dimensional inverse fast Fourier transform layer are connected by residual connection; the second normalization layer and the multilayer perceptron are connected by residual connection; the above-mentioned inputting the seismic wave data feature map into the Fourier transformer and outputting the seismic wave data feature sequence includes:
[0015] Inputting the seismic wave data feature map into the first normalization layer, and outputting the normalized feature map;
[0016] Input the normalized feature map to a two-dimensional fast Fourier transform layer and output a first spectrum map;
[0017] Inputting the first spectrogram and the learnable global filter into a Hadamard product operation layer, and outputting a second spectrogram;
[0018] Input the second spectrum graph into a two-dimensional inverse fast Fourier transform layer, and output a time domain feature sequence;
[0019] Input the time domain feature sequence into the second normalization layer, and output the normalized time domain feature sequence;
[0020] The normalized time domain feature sequence is input into the multi-layer perceptron and the seismic wave data feature sequence is output.
[0021] Optionally, in another possible implementation of the first aspect, the decoder includes a point-by-point convolution layer, a batch normalization layer, a Gaussian error linear unit activation function layer, a random dropout layer, and a multi-layer perceptron; the above-mentioned inputting the seismic wave data feature sequence into the decoder and outputting the seismic parameter corresponding to at least one seismic event includes:
[0022] Input the seismic wave data feature sequence into the point-by-point convolution layer and output the point-by-point convolution feature sequence;
[0023] Input the point-by-point convolution feature sequence into the batch normalization layer and output the batch normalized feature sequence;
[0024] Input the batch normalized feature sequence into the Gaussian error linear unit activation function layer, and output the activated feature sequence;
[0025] Input the activated feature sequence into the random dropout layer, and output the feature sequence after random dropout processing;
[0026] The feature sequence after random discarding is input into the multi-layer perceptron to output the earthquake parameters corresponding to the earthquake event.
[0027] Optionally, in another possible implementation of the first aspect, before inputting the seismic wave data feature sequence into the decoder and outputting the seismic parameter corresponding to at least one seismic event, the method further includes:
[0028] Perform layer normalization on the characteristic sequence of seismic wave data.
[0029] Optionally, in another possible implementation of the first aspect, the preset earthquake prediction model includes a learnable position encoder, and the learnable position encoder is arranged between the convolution module and the Fourier transformer.
[0030] Optionally, in another possible implementation of the first aspect, after predicting the seismic parameters corresponding to at least one seismic event according to the seismic wave data and the preset seismic prediction model, the method may further include:
[0031] Obtaining real earthquake parameters corresponding to at least one earthquake event;
[0032] Determine the loss function of the preset earthquake prediction model according to the predicted earthquake parameters and the actual earthquake parameters;
[0033] If the output value of the loss function is less than the preset threshold, the predicted earthquake parameters are output;
[0034] Otherwise, continue to train the preset earthquake prediction model until the output value of the loss function is less than the preset threshold.
[0035] In the second aspect, an embodiment of the present application provides a device for predicting earthquake parameters, including: an acquisition module for acquiring earthquake wave data corresponding to at least one earthquake event; a prediction module for predicting earthquake parameters corresponding to at least one earthquake event based on the earthquake wave data and a preset earthquake prediction model, wherein the preset earthquake prediction model includes a convolution module, a Fourier transformer and a decoder.
[0036] In a possible implementation manner of the second aspect, the prediction module includes:
[0037] A first output unit, used for inputting seismic wave data into a convolution module and outputting a seismic wave data feature map;
[0038] A second output unit is used to input the seismic wave data characteristic graph into the Fourier transformer and output the seismic wave data characteristic sequence;
[0039] The third output unit is used to input the seismic wave data characteristic sequence into the decoder, and output a seismic parameter corresponding to at least one seismic event.
[0040] In a possible implementation manner of the second aspect, the convolution module includes a convolution layer, a random drop layer, and a maximum pooling layer; and the first output unit is specifically used to:
[0041] Input the seismic wave data into the convolution layer and output the first convolution feature map;
[0042] Input the first convolution feature map into the random dropout layer and output the second convolution feature map;
[0043] The second convolution feature map is input into the maximum pooling layer and the seismic wave data feature map is output.
[0044] Optionally, in another possible implementation manner of the second aspect, the Fourier transformer includes a first normalization layer, a two-dimensional fast Fourier transform layer, a Hadamard product operation layer, a two-dimensional inverse fast Fourier transform layer, a second normalization layer and a multilayer perceptron; the first normalization layer and the two-dimensional inverse fast Fourier transform layer are connected by a residual connection; the second normalization layer and the multilayer perceptron are connected by a residual connection; the second output unit is specifically used to:
[0045] Inputting the seismic wave data feature map into the first normalization layer, and outputting the normalized feature map;
[0046] Input the normalized feature map to a two-dimensional fast Fourier transform layer and output a first spectrum map;
[0047] Inputting the first spectrogram and the learnable global filter into a Hadamard product operation layer, and outputting a second spectrogram;
[0048] Input the second spectrum graph into a two-dimensional inverse fast Fourier transform layer, and output a time domain feature sequence;
[0049] Input the time domain feature sequence into the second normalization layer, and output the normalized time domain feature sequence;
[0050] The normalized time domain feature sequence is input into the multi-layer perceptron and the seismic wave data feature sequence is output.
[0051] Optionally, in another possible implementation manner of the second aspect, the decoder includes a point-by-point convolution layer, a batch normalization layer, a Gaussian error linear unit activation function layer, a random dropout layer, and a multilayer perceptron; the third output unit is specifically used to:
[0052] Input the seismic wave data feature sequence into the point-by-point convolution layer and output the point-by-point convolution feature sequence;
[0053] Input the point-by-point convolution feature sequence into the batch normalization layer and output the batch normalized feature sequence;
[0054] Input the batch normalized feature sequence into the Gaussian error linear unit activation function layer, and output the activated feature sequence;
[0055] Input the activated feature sequence into the random dropout layer, and output the feature sequence after random dropout processing;
[0056] The feature sequence after random discarding is input into the multi-layer perceptron to output the earthquake parameters corresponding to the earthquake event.
[0057] Optionally, in another possible implementation manner of the second aspect, the prediction module further includes:
[0058] The layer normalization unit is used to perform layer normalization processing on the characteristic sequence of seismic wave data.
[0059] Optionally, in another possible implementation of the second aspect, the preset earthquake prediction model includes a learnable position encoder, and the learnable position encoder is arranged between the convolution module and the Fourier transformer.
[0060] Optionally, in another possible implementation of the second aspect, the apparatus may further include:
[0061] A second acquisition module is used to acquire real earthquake parameters corresponding to at least one earthquake event;
[0062] A determination module, used to determine the loss function of a preset earthquake prediction model according to the predicted earthquake parameters and the actual earthquake parameters;
[0063] An output module, used for outputting predicted earthquake parameters if the output value of the loss function is less than a preset threshold;
[0064] The training module is used to continue training the preset earthquake prediction model until the output value of the loss function is less than a preset threshold.
[0065] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned earthquake parameter prediction method when executing the computer program.
[0066] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for predicting earthquake parameters as described above is implemented.
[0067] In the technical solution of the present application, after obtaining seismic wave data corresponding to at least one seismic event, the seismic parameters corresponding to at least one seismic event are predicted based on the seismic wave data and a preset seismic prediction model, and the preset seismic prediction model includes a convolution module, a Fourier transformer, and a decoder. Thus, by utilizing the preset seismic prediction model, the global features of the seismic wave data and the feature extraction of the high-dimensional frequency domain are realized, thereby improving the efficiency and accuracy of seismic parameter prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0069] Figure 1 It is a schematic diagram of a flow chart of a method for predicting earthquake parameters provided in one embodiment of the present application;
[0070] Figure 2 It is a schematic diagram of the structure of a preset earthquake prediction model provided in an embodiment of the present application;
[0071] Figure 3 is a flow chart of a method for predicting earthquake parameters provided by another embodiment of the present application;
[0072] Figure 4 It is a schematic diagram of the structure of a convolution module provided in one embodiment of the present application;
[0073] Figure 5 is a schematic diagram of the structure of a Fourier transformer provided in one embodiment of the present application;
[0074] Figure 6 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;
[0075] Figure 7 is a flow chart of a method for predicting earthquake parameters provided in yet another embodiment of the present application;
[0076] Figure 8 It is a schematic diagram of the flow of a device for predicting earthquake parameters provided in one embodiment of the present application;
[0077] Fig. 9 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0078] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0079] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0080] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0081] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0082] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0083] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0084] The earthquake parameter prediction method, apparatus, terminal device and storage medium provided in the present application are described in detail below with reference to the accompanying drawings.
[0085] Figure 1 A schematic flow chart of a method for predicting earthquake parameters provided in an embodiment of the present application is shown.
[0086] like Figure 1 As shown, the earthquake parameter prediction method comprises the following steps:
[0087] Step 101: Acquire seismic wave data corresponding to at least one seismic event.
[0088] Among them, seismic wave data can refer to seismic waveform information recorded by seismic monitoring stations or seismic instruments. These data record the amplitude changes of seismic waves at different time points and the time when the seismic waves arrive. Seismic wave data are usually stored in digital form, which contains the time, location, amplitude and timing information of the earthquake event.
[0089] In one embodiment, the small earthquake data set in the seismic wave data can use Stanford's STEAD open source seismic data set, which is a global (except Japan) earthquake database, including 1 million 3-channel local earthquakes (observation stations within a radius of 350 kilometers from the epicenter) waveform records, and each set of earthquake records is manually annotated with metadata information such as magnitude, epicenter distance, focal depth, P wave and S wave arrival time. The STEAD data set is mainly small earthquakes, most of which are less than magnitude 5; the large earthquake data set in the seismic wave data can be used from Japan's KiK-net network, which is a strong earthquake network built and managed by the Japan Institute of Science and Technology for Disaster Prevention. Crawler programs can be written through Python programs and Selenium frameworks to crawl hundreds of thousands of earthquake records from the KiK-net website. KiK-net contains a large amount of large earthquake data, including a large number of strong earthquake data sets with magnitudes greater than 5. Thus, a seismic wave data set is constructed based on small earthquake data sets and large earthquake data sets. Furthermore, the above seismic wave dataset can be screened by more conditions. For example, high-incidence earthquake regions can be screened by longitude and latitude, such as California, China, Sichuan and Yunnan, and Taiwan, to build a regional seismic wave dataset. The quality of the selected seismic waves can also be controlled by metadata such as epicentral distance, focal depth, number of seismic events recorded by the network, and signal-to-noise ratio of seismic records.
[0090] Furthermore, in a possible implementation of the embodiment of the present application, the above step 101 may include:
[0091] De-noising seismic wave data.
[0092] As a possible implementation method, the seismic waves can be first downsampled to 100Hz, and then the seismic waves can be high-pass filtered with a cutoff frequency of 0.1Hz using a fourth-order Butterworth filter to filter seismic waves with a duration greater than 30 seconds. The seismic wave band intercepted for analysis starts 1 second before the arrival of the P wave and ends 29 seconds after the arrival of the P wave, for a total of 30 seconds. At the same time, the seismic wave data set contains multiple magnitude types such as Richter magnitude, surface wave magnitude, and moment magnitude. Due to different conversion methods for different magnitude types, only the Richter magnitude with the largest number is selected.
[0093] Step 102, predicting earthquake parameters corresponding to at least one earthquake event based on the seismic wave data and a preset earthquake prediction model, wherein the preset earthquake prediction model includes a convolution module, a Fourier transformer and a decoder.
[0094] It should be noted that if Figure 2 As shown in the schematic diagram of the preset earthquake prediction model structure, when the seismic wave data is input into the preset earthquake prediction model, it needs to be processed by the convolution module, Fourier transformer and decoder in sequence, and finally the seismic parameters corresponding to the earthquake event are output.
[0095] The preset earthquake prediction model may refer to a prediction model that calculates seismic wave data and outputs seismic parameters corresponding to a seismic event.
[0096] Among them, earthquake parameters can refer to parameters used to describe the intensity, location, depth and propagation characteristics of earthquake events. For example, they can include parameters such as magnitude, epicentral distance, P-wave travel time, focal depth, etc. Magnitude is a measure used to describe the size of earthquake energy, usually expressed as a numerical value, representing the intensity of the earthquake event. Common magnitude indicators include Richter magnitude, body wave magnitude, etc., which are used to indicate the degree of energy release of the earthquake; epicentral distance refers to the distance from the epicenter of the earthquake (the location where the earthquake occurs) to the observation site (usually a seismic measurement station), usually in kilometers. The epicentral distance is used to determine the location of the earthquake and the arrival time of the seismic waves; P-wave travel time refers to the time it takes for the P wave (longitudinal wave) to propagate from the earthquake source to the observation site. P-wave travel time is usually used to calculate the epicentral distance and determine the location of the source, and can also be used for rapid alarms in earthquake early warning systems; focal depth refers to the depth of the earthquake, that is, the location of the source underground. The focal depth has an important influence on the propagation path of seismic waves and the impact of the earthquake, and is also one of the important parameters in seismological research.
[0097] Among them, the convolution module can refer to the one used to process data with spatial structure, such as images, audio, etc. Its basic idea comes from the convolution operation in mathematics, which extracts and maps local features of the input data by sliding a small window (convolution kernel) on the input data, thereby realizing feature extraction and transformation of the input data.
[0098] Among them, the Fourier transformer may refer to a transformer that replaces the self-attention layer in the standard transformer by introducing the Fourier transform, so as to more effectively capture the global features of the sequence data. In the Fourier transformer, the input sequence is first converted to a frequency domain representation through the Fourier transform (or its variants), and then a series of operations are performed using the frequency domain representation, and finally the frequency domain representation is converted back to the time domain representation through the inverse Fourier transform.
[0099] The decoder may refer to a module for converting the hidden representation of the model (usually the output of the encoder) into a target sequence or target structure.
[0100] Furthermore, in a possible implementation of the embodiment of the present application, the above step 102 may include:
[0101] like Figure 2 As shown, the preset earthquake prediction model also includes a learnable position encoder, which is arranged between the convolution module and the Fourier transformer.
[0102] It should be noted that a learnable position encoder is introduced to capture the relative position information within the sequence. The learnable position encoder is usually placed between the convolution module and the Fourier transformer. Its function is to provide the Fourier transformer with the position information of each position in the sequence.
[0103] Specifically, the convolution module is used to extract the features of the input sequence, convert the sequence data into feature representation, and output feature maps. The learnable positional encoding receives these feature maps as input and generates corresponding positional encodings for each position. These positional encodings contain the positional information of each position in the sequence and are learnable, that is, they will be updated during the model training process.
[0104] Next, the feature map with positional encoding is fed into the Fourier transformer for frequency domain representation processing. The Fourier transformer uses these positional encodings to capture the periodic features in the sequence data, thereby obtaining a feature sequence in the frequency domain as output.
[0105] Therefore, the learnable positional encoding serves as a connection between the convolutional module and the Fourier transformer, providing the Fourier transformer with the positional information of each position in the sequence, which helps to improve the model's ability to model sequence data.
[0106] The earthquake parameter prediction method provided in the present application predicts the earthquake parameters corresponding to at least one earthquake event according to the earthquake wave data and a preset earthquake prediction model after obtaining the earthquake wave data corresponding to at least one earthquake event. The preset earthquake prediction model includes a convolution module, a Fourier transformer and a decoder. Thus, by utilizing the preset earthquake prediction model, the global features of the earthquake wave data and the feature extraction of the high-dimensional frequency domain are realized, thereby improving the efficiency and accuracy of earthquake parameter prediction.
[0107] Figure 3 A schematic flow chart of another earthquake parameter prediction method provided in an embodiment of the present application is shown.
[0108] like Figure 3 As shown, the earthquake parameter prediction method comprises the following steps:
[0109] Step 301: Acquire seismic wave data corresponding to at least one seismic event.
[0110] The specific implementation process and principle of the above step 301 can be referred to the detailed description of the above embodiment, which will not be repeated here.
[0111] Step 302, input the seismic wave data into a convolution module, and output a seismic wave data feature map.
[0112] The seismic wave data feature map may refer to a feature representation obtained after the seismic wave data is processed by a convolution module. This feature map is useful information extracted from the original seismic wave data by a convolution operation, wherein each element represents a certain feature in the seismic wave data.
[0113] It should be noted that multiple convolution modules can be set up to extract features of seismic wave data. Through multiple convolution modules, different levels of features in seismic wave data can be deeply learned, and more advanced features in seismic wave data can be further extracted, thereby improving the accuracy of model prediction.
[0114] In one embodiment, the seismic wave data input into the convolution module can be 3-channel seismic wave data, with a duration of 30 seconds and a sampling rate of 100 Hz. Since the input is an extremely long time series of a low channel, features can be extracted by setting three convolution modules. Thus, by extracting features through three convolution modules, various frequencies, time series and spatial correlations can be gradually captured in the seismic wave data, thereby improving the convolution module's understanding and prediction accuracy of seismic waveforms. This multi-level feature extraction can help the convolution module better distinguish between seismic signals and noise, and improve the accuracy of seismic event detection and positioning.
[0115] Furthermore, in a possible implementation of the embodiment of the present application, the above step 302 may include:
[0116] Input the seismic wave data into the convolution layer and output the first convolution feature map;
[0117] Input the first convolution feature map into the random dropout layer and output the second convolution feature map;
[0118] The second convolution feature map is input into the maximum pooling layer and the seismic wave data feature map is output.
[0119] It should be noted that if Figure 4 The schematic diagram of the convolution module structure shown in the figure includes a convolution layer, a random drop layer and a maximum pooling layer. Among them, the convolution layer can extract the local features of the input seismic wave data and capture the spatial correlation. The random drop layer can randomly set certain elements of the input seismic wave data to zero with a certain probability, which helps to reduce the overfitting risk of the convolution module and thus improve the generalization ability of the convolution module. The maximum pooling layer can be used to downsample the input seismic wave data and reduce the size and length of the data by retaining the maximum value of each sub-region. Downsampling can reduce the number of convolution module parameters, speed up the training of the convolution module, and help extract the most important features of the seismic wave data.
[0120] For example, the seismic wave data can first be input into a convolution layer with a convolution kernel size of 1×3 and a step size of 2 to extract local features of the seismic wave data, output a first convolution feature map, and then input the first convolution feature map into a random dropout layer with a dropout rate of 0.1 to output a second convolution feature map, and finally input the second convolution feature map into a maximum pooling layer to further reduce the sequence length, extract key feature information, and then output a seismic wave data feature map. This application does not limit this.
[0121] In an embodiment of the present application, through convolution, random dropout and maximum pooling operations, the seismic wave data is gradually extracted and compressed, which is beneficial to retaining key features, reducing data dimensions, and reducing the risk of overfitting, and ultimately obtaining a more compact and discriminative seismic wave data feature map, which helps to improve the model's accurate prediction of seismic events.
[0122] Step 303, input the seismic wave data characteristic graph into the Fourier transformer, and output the seismic wave data characteristic sequence.
[0123] It should be noted that multiple Fourier transformers can be set to enhance the model's feature extraction capability, nonlinear modeling capability, and generalization capability, thereby improving the performance and accuracy of the model in earthquake parameter prediction.
[0124] In one embodiment, it is necessary to predict the seismic parameters corresponding to the seismic event, where the seismic parameters include magnitude, epicentral distance, P-wave travel time and focal depth. Because multiple seismic parameters need to be predicted, multiple shared Fourier transformers can be set up, and the seismic wave data feature map is input into the Fourier transformer to output a seismic wave data feature sequence. Furthermore, multiple decoupled decoders can be set according to the number of seismic parameters that need to be output, and the present application does not limit this.
[0125] Furthermore, in a possible implementation of the embodiment of the present application, the above step 303 may include:
[0126] Inputting the seismic wave data feature map into the first normalization layer, and outputting the normalized feature map;
[0127] Input the normalized feature map to a two-dimensional fast Fourier transform layer and output a first spectrum map;
[0128] Inputting the first spectrogram and the learnable global filter into a Hadamard product operation layer, and outputting a second spectrogram;
[0129] Input the second spectrum graph into a two-dimensional inverse fast Fourier transform layer, and output a time domain feature sequence;
[0130] Input the time domain feature sequence into the second normalization layer, and output the normalized time domain feature sequence;
[0131] The normalized time domain feature sequence is input into the multi-layer perceptron and the seismic wave data feature sequence is output.
[0132] Among them, the normalization layer can refer to a common layer type, which is used to standardize the input seismic wave data feature map, so that the seismic wave data feature map is easier to optimize and train during the training process.
[0133] The two-dimensional fast Fourier transform layer may refer to a layer type used to convert time domain data into frequency domain data.
[0134] Among them, the Hadamard product operation layer can refer to an element-by-element product, which is the product of corresponding elements between two matrices, tensors or arrays with the same dimension.
[0135] Among them, the two-dimensional inverse fast Fourier transform layer can refer to the data used to convert the frequency domain representation back to the time domain representation. It is the inverse operation of the two-dimensional Fourier transform, and can convert the input frequency domain representation (usually the result after the two-dimensional Fourier transform) back to the original time domain data through the inverse transform operation.
[0136] Among them, the multilayer perceptron may refer to a network structure consisting of two linear layers, which are respectively used to expand the dimension of the input data to twice its size and then compress it back. A Gaussian Error Linear Unit (GELU) activation function is used between the two linear layers to introduce nonlinearity, and after each linear layer, a random dropout layer is used to reduce the risk of overfitting, where the dropout rate can be set to 0.1, which is not limited in this application.
[0137] In an embodiment of the present application, the first normalization layer and the two-dimensional inverse Fourier transform layer adopt residual connection, and the second normalization layer and the multi-layer perceptron adopt residual connection. The residual connection between the first normalization layer and the two-dimensional inverse Fourier transform layer can help retain the important information of the input, and directly pass it to the two-dimensional inverse Fourier transform layer, thereby alleviating the information loss or deformation that may occur in the feature during the propagation process, helping to better retain the frequency domain characteristics of the input, and improving the efficiency and accuracy of feature extraction. The residual connection between the second normalization layer and the multi-layer perceptron can enable the model to learn more abstract and complex features at a deeper level, while alleviating the gradient vanishing problem. Through the residual connection, the model can learn residual information faster, which helps to improve the convergence speed and generalization ability of the model, thereby improving the ability to accurately predict earthquake parameters.
[0138] It should be noted that the Fourier transformer is an improvement on the standard transformer. Due to the introduction of the self-attention mechanism, the standard transformer has shown superior performance in modeling long earthquake time series. The self-attention mechanism allows the model to dynamically weigh the importance of a single moment in the input earthquake time series, which helps to focus on the most relevant information. However, as the length of the earthquake time series increases, the self-attention mechanism has a high complexity and is squarely related to the length of the input sequence. Therefore, it is necessary to adopt a linearized attention mechanism for improvement to improve the response speed of the earthquake parameter prediction model. Therefore, the present application uses a Fourier transformer to perform global feature mining of the seismic wave data feature map. The Fourier transformer replaces the self-attention layer in the standard transformer with a Fourier transform layer, thereby achieving a balance between accuracy and speed, and learning high-dimensional frequency domain features.
[0139] In one embodiment, the self-attention layer in the standard transformer can be replaced by a discrete Fourier transform layer to convert the time domain data into the frequency domain data. For example, given the time domain data x n , after discrete Fourier transform, the corresponding frequency domain data is obtained It can be shown as the following formula:
[0140]
[0141] Where e represents the base of natural logarithm, i represents the imaginary unit, is the discrete Fourier transform matrix. Frequency domain data can also be converted to time domain data through inverse discrete Fourier transform, which can be shown in the following formula:
[0142]
[0143] In addition, in another embodiment, a fast Fourier transform layer can be used to replace the self-attention layer in the standard transformer. Figure 5 The schematic diagram of the Fourier transformer structure shown in FIG. 1 includes a first normalization layer, a two-dimensional fast Fourier transform layer, a Hadamard product operation layer, a two-dimensional inverse fast Fourier transform layer, a second normalization layer and a multi-layer perceptron. When a seismic wave data feature map x∈R is given, c×s (s represents the sequence length, c represents the channel dimension), first input it to the first normalization layer for layer normalization, and then input it to the two-dimensional fast Fourier transform layer to obtain the first spectrum map It can be expressed as follows:
[0144]
[0145] Where F represents the fast Fourier transform operation. Then the first spectrum map is input to the Hadamard product operation layer, and the Hadamard product operation is performed with the global filter K to output the second spectrum map. The global filter K has the same spectrum as the first The same dimension can be expressed as follows:
[0146]
[0147] After obtaining the second spectrum graph, it is input into the two-dimensional inverse fast Fourier transform layer to output the time domain feature sequence x, which can be expressed as follows:
[0148]
[0149] Finally, the time domain feature sequence is input into the second normalization layer and the multi-layer perceptron for processing, and the seismic wave data feature sequence is output.
[0150] In the embodiment of the present application, by inputting the seismic wave data characteristic graph into the Fourier transformer, the data can be converted from the time domain to the frequency domain, which helps to capture the periodicity and frequency characteristics in the seismic wave signal. This conversion can help extract the frequency domain information in the seismic wave data, so as to better understand the nature and characteristics of the seismic wave. Through the Fourier transform, the seismic wave data can be subjected to a more in-depth frequency domain analysis, which helps to improve the efficiency and accuracy of earthquake monitoring and analysis, thereby further improving the efficiency and accuracy of earthquake parameter prediction.
[0151] Step 304: input the seismic wave data characteristic sequence into a decoder, and output a seismic parameter corresponding to at least one seismic event.
[0152] The decoder may refer to a network structure for predicting earthquake parameters based on the characteristic sequence of seismic wave data.
[0153] In one embodiment, it is necessary to predict the seismic parameters corresponding to the seismic event, wherein the seismic parameters include magnitude, epicentral distance, P-wave travel time, and focal depth. Because multiple seismic parameters need to be predicted, multiple series-connected Fourier transformers can be set, and the shared Fourier transformer outputs a seismic wave data feature sequence, and then 4 parallel decoders are set, so that the 1 seismic wave data feature sequence output by the Fourier transformer is respectively input into 4 decoupled decoders to output the predicted four seismic parameters. It should also be noted that the number of decoders can be determined according to the number corresponding to the seismic parameter categories that need to be output, and this application does not limit this.
[0154] Furthermore, in a possible implementation of the embodiment of the present application, before the above step 304, the following may also be included:
[0155] Perform layer normalization on the characteristic sequence of seismic wave data.
[0156] It should be noted that the purpose of layer normalization of the characteristic sequence of seismic wave data is to effectively improve the stability, convergence speed and generalization ability of the model, thereby improving the prediction accuracy and reliability of seismic parameters corresponding to seismic events.
[0157] Furthermore, in a possible implementation of the embodiment of the present application, the above step 304 may include:
[0158] Input the seismic wave data feature sequence into the point-by-point convolution layer and output the point-by-point convolution feature sequence;
[0159] Input the point-by-point convolution feature sequence into the batch normalization layer and output the batch normalized feature sequence;
[0160] Input the batch normalized feature sequence into the Gaussian error linear unit activation function layer, and output the activated feature sequence;
[0161] Input the activated feature sequence into the random dropout layer, and output the feature sequence after random dropout processing;
[0162] The feature sequence after random discarding is input into the multi-layer perceptron to output the earthquake parameters corresponding to the earthquake event.
[0163] Among them, the point-by-point convolution layer can refer to a layer used to reduce the number of channels of a feature map. It is achieved by linearly combining each channel in the feature map at each spatial position and then using a point-by-point convolution kernel.
[0164] Among them, the batch normalization layer can refer to normalizing the input of each small batch of data so that it can converge more stably and faster during the training process.
[0165] Among them, the Gaussian error linear unit activation function layer may refer to an activation function layer that introduces smooth nonlinear characteristics, which helps to improve performance and generalization ability when processing complex data.
[0166] In one embodiment, if Figure 6 The schematic diagram of the decoder structure shown in the figure first inputs the seismic wave data feature sequence into the point-by-point convolution layer, uses the point-by-point convolution layer to reduce the number of channels, and then sequentially inputs into the batch normalization layer, the Gaussian error linear unit activation function layer and the random dropout layer, then flattens the output feature sequence and feeds it into a multi-layer perceptron composed of linear layers, and finally the output of each multi-layer perceptron is the predicted seismic parameter.
[0167] In an embodiment of the present application, through the series operation of a point-by-point convolution layer, a batch normalization layer, a Gaussian error linear unit activation function layer and a random dropout layer, the characteristics of the seismic wave data can be effectively extracted and the nonlinear expression ability of the model can be enhanced, and the training stability and generalization ability of the model can be further optimized. Finally, the seismic parameters of the seismic event are obtained through a multi-layer perceptron, which helps to improve the recognition and prediction accuracy of seismic events.
[0168] The earthquake parameter prediction method provided in the present application first obtains earthquake wave data corresponding to at least one earthquake event, then inputs the earthquake wave data into a convolution module, outputs an earthquake wave data feature map, then inputs the earthquake wave data feature map into a Fourier transformer, outputs an earthquake wave data feature sequence, and finally inputs the earthquake wave data feature sequence into a decoder, outputs an earthquake parameter corresponding to at least one earthquake event. Thus, earthquake parameters are predicted by inputting the earthquake wave data into a preset earthquake prediction model composed of a convolution module, a Fourier transformer, and a decoder, which helps to effectively extract the characteristics of the earthquake waves and thus accurately predict the earthquake parameters.
[0169] Figure 7 A schematic flow chart of another earthquake parameter prediction method provided in an embodiment of the present application is shown.
[0170] like Figure 7 As shown, the earthquake parameter prediction method comprises the following steps:
[0171] Step 701, obtaining seismic wave data corresponding to at least one seismic event.
[0172] Step 702, predicting earthquake parameters corresponding to at least one earthquake event based on the seismic wave data and a preset earthquake prediction model, wherein the preset earthquake prediction model includes a convolution module, a Fourier transformer and a decoder.
[0173] The specific implementation process and principle of the above steps 701-702 can refer to the detailed description of the above embodiment, which will not be repeated here.
[0174] Step 703: Acquire real earthquake parameters corresponding to at least one earthquake event.
[0175] Step 704: Determine the loss function of the preset earthquake prediction model according to the predicted earthquake parameters and the actual earthquake parameters.
[0176] The mean square error can be used as the loss function to evaluate the performance of the preset earthquake prediction model. In order to solve the problem of different data distributions generated by different task objectives, an adaptive weight loss function is introduced. The loss function is as follows:
[0177]
[0178] Where L i represents the mean square error between the predicted earthquake parameters and the true earthquake parameters, σ i is the observation noise parameter of the model, which captures the level of noise in the output. i It is a learnable parameter and the relative weight of different regression tasks. For tasks with higher noise levels, the weight is smaller.
[0179] Among them, σ i Parameter optimization can be performed using the Adam optimizer with a momentum parameter of β 1 = 0.9 and β 2 = 0.999. The initial learning rate is set to 1×10 -3 , and when the validation loss fails to decrease after 10 rounds, the coefficient is adaptively multiplied by 0.1. The training is performed on a 24GB RTX 3090 GPU and two Xeon Gold 5218R CPUs using the PyTorch framework in Python. Of course, other configuration servers can also be used, and this application is not limited to this.
[0180] In addition, in terms of model training, in order to evaluate the performance of the model on other earthquake datasets with smaller data sizes (such as large earthquake datasets and other regional earthquake datasets), the model was initialized with weights pre-trained on the STEAD dataset, and then fine-tuned on large earthquake datasets or other regional earthquake datasets. The initial learning rate was set to 1×10 -4This enables the migration from abundant small earthquakes to large earthquakes or other situations with less data, solving the problem of low accuracy caused by insufficient earthquake data during training.
[0181] Step 705: If the output value of the loss function is less than a preset threshold, the predicted earthquake parameters are output.
[0182] Step 706: otherwise, continue to train the preset earthquake prediction model until the output value of the loss function is less than the preset threshold.
[0183] The earthquake parameter prediction method provided in the present application first obtains the earthquake wave data corresponding to at least one earthquake event, predicts the earthquake parameters corresponding to at least one earthquake event based on the earthquake wave data and the preset earthquake prediction model, the preset earthquake prediction model includes a convolution module, a Fourier transformer and a decoder, and then obtains the real earthquake parameters corresponding to at least one earthquake event, and determines the loss function of the preset earthquake prediction model based on the predicted earthquake parameters and the real earthquake parameters. If the output value of the loss function is less than the preset threshold, the predicted earthquake parameters are output, otherwise, the preset earthquake prediction model is continuously trained until the output value of the loss function is less than the preset threshold. Thus, by evaluating the preset earthquake prediction model through the loss function, the accuracy of the model prediction can be continuously improved, and the accuracy of earthquake parameter prediction can be further improved.
[0184] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0185] Corresponding to the earthquake parameter prediction method of the above embodiment, Figure 8 A structural block diagram of a device for predicting earthquake parameters provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0186] Reference Figure 8 , the device 800 comprises:
[0187] An acquisition module 801 is used to acquire seismic wave data corresponding to at least one seismic event;
[0188] The prediction module 802 predicts earthquake parameters corresponding to at least one earthquake event based on the earthquake wave data and a preset earthquake prediction model. The preset earthquake prediction model includes a convolution module, a Fourier transformer and a decoder.
[0189] In actual use, the earthquake parameter prediction device provided in the embodiment of the present application can be configured in any terminal device to execute the aforementioned earthquake parameter prediction method.
[0190] The earthquake parameter prediction device provided in the present application predicts the earthquake parameters corresponding to at least one earthquake event according to the earthquake wave data and a preset earthquake prediction model after acquiring the earthquake wave data corresponding to at least one earthquake event. The preset earthquake prediction model includes a convolution module, a Fourier transformer and a decoder. Thus, by utilizing the preset earthquake prediction model, the global features of the earthquake wave data and the feature extraction of the high-dimensional frequency domain are realized, thereby improving the efficiency and accuracy of earthquake parameter prediction.
[0191] In a possible implementation of the embodiment of the present application, the prediction module 802 includes:
[0192] A first output unit, used for inputting seismic wave data into a convolution module and outputting a seismic wave data feature map;
[0193] A second output unit is used to input the seismic wave data characteristic graph into the Fourier transformer and output the seismic wave data characteristic sequence;
[0194] The third output unit is used to input the seismic wave data characteristic sequence into the decoder, and output a seismic parameter corresponding to at least one seismic event.
[0195] Furthermore, in a possible implementation of the embodiment of the present application, the convolution module includes a convolution layer, a random drop layer and a maximum pooling layer; the first output unit is specifically used for:
[0196] Input the seismic wave data into the convolution layer and output the first convolution feature map;
[0197] Input the first convolution feature map into the random dropout layer and output the second convolution feature map;
[0198] The second convolution feature map is input into the maximum pooling layer and the seismic wave data feature map is output.
[0199] Further, in another possible implementation of the embodiment of the present application, the Fourier transformer includes a first normalization layer, a two-dimensional fast Fourier transform layer, a Hadamard product operation layer, a two-dimensional inverse fast Fourier transform layer, a second normalization layer and a multilayer perceptron; the first normalization layer and the two-dimensional inverse fast Fourier transform layer are connected by residual connection; the second normalization layer and the multilayer perceptron are connected by residual connection; the above-mentioned second output unit is specifically used for:
[0200] Inputting the seismic wave data feature map into the first normalization layer, and outputting the normalized feature map;
[0201] Input the normalized feature map to a two-dimensional fast Fourier transform layer and output a first spectrum map;
[0202] Inputting the first spectrogram and the learnable global filter into a Hadamard product operation layer, and outputting a second spectrogram;
[0203] Input the second spectrum graph into a two-dimensional inverse fast Fourier transform layer, and output a time domain feature sequence;
[0204] Input the time domain feature sequence into the second normalization layer, and output the normalized time domain feature sequence;
[0205] The normalized time domain feature sequence is input into the multi-layer perceptron and the seismic wave data feature sequence is output.
[0206] Further, in another possible implementation of the embodiment of the present application, the decoder includes a point-by-point convolution layer, a batch normalization layer, a Gaussian error linear unit activation function layer, a random drop layer and a multi-layer perceptron; the third output unit is specifically used to:
[0207] Input the seismic wave data feature sequence into the point-by-point convolution layer and output the point-by-point convolution feature sequence;
[0208] Input the point-by-point convolution feature sequence into the batch normalization layer and output the batch normalized feature sequence;
[0209] Input the batch normalized feature sequence into the Gaussian error linear unit activation function layer, and output the activated feature sequence;
[0210] Input the activated feature sequence into the random dropout layer, and output the feature sequence after random dropout processing;
[0211] The feature sequence after random discarding is input into the multi-layer perceptron to output the earthquake parameters corresponding to the earthquake event.
[0212] Furthermore, in another possible implementation of the embodiment of the present application, the prediction module 802 further includes:
[0213] The layer normalization unit is used to perform layer normalization processing on the characteristic sequence of seismic wave data.
[0214] Furthermore, in another possible implementation of the embodiment of the present application, the preset earthquake prediction model includes a learnable position encoder, and the learnable position encoder is arranged between the convolution module and the Fourier transformer.
[0215] Furthermore, in another possible implementation of the embodiment of the present application, the apparatus 800 may further include:
[0216] A second acquisition module is used to acquire real earthquake parameters corresponding to at least one earthquake event;
[0217] A determination module, used to determine the loss function of a preset earthquake prediction model according to the predicted earthquake parameters and the actual earthquake parameters;
[0218] An output module, used for outputting predicted earthquake parameters if the output value of the loss function is less than a preset threshold;
[0219] The training module is used to continue training the preset earthquake prediction model until the output value of the loss function is less than a preset threshold.
[0220] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0221] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0222] In order to implement the above embodiments, the present application also proposes a terminal device.
[0223] Fig. 9 A schematic diagram of the structure of a terminal device according to an embodiment of the present application.
[0224] like Fig. 9 As shown, the terminal device 200 includes:
[0225] The memory 210 and at least one processor 220, a bus 230 connecting different components (including the memory 210 and the processor 220), the memory 210 stores a computer program, and when the processor 220 executes the program, the method for predicting earthquake parameters described in the embodiment of the present application is implemented.
[0226] Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0227] The terminal device 200 typically includes a variety of electronic device readable media, which can be any available media that can be accessed by the terminal device 200, including volatile and non-volatile media, removable and non-removable media.
[0228] The memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and / or cache memory 250. The terminal device 200 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 260 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 not shown, usually called a "hard drive"). Although Fig. 9 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to bus 230 via one or more data medium interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.
[0229] A program / utility 280 having a set (at least one) of program modules 270 may be stored, for example, in the memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 270 generally perform the functions and / or methods of the embodiments described herein.
[0230] The terminal device 200 can also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), and can also communicate with one or more devices that enable users to interact with the terminal device 200, and / or communicate with any device that enables the terminal device 200 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be carried out through an input / output (I / O) interface 292. In addition, the terminal device 200 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 293. As shown in the figure, the network adapter 293 communicates with other modules of the terminal device 200 through a bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the terminal device 200, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive, and data backup storage system, etc.
[0231] The processor 220 executes various functional applications and data processing by running the programs stored in the memory 210 .
[0232] It should be noted that the implementation process and technical principles of the terminal device of this embodiment refer to the aforementioned explanation of the earthquake parameter prediction method of the embodiment of the present application, and will not be repeated here.
[0233] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0234] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0235] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0236] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0237] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0238] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0239] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0240] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for predicting earthquake parameters, characterized in that: include: Acquire seismic wave data corresponding to at least one seismic event; At least one earthquake parameter corresponding to the earthquake event is predicted based on the earthquake wave data and a preset earthquake prediction model, wherein the preset earthquake prediction model includes a convolution module, a Fourier transformer and a decoder.
2. The method according to claim 1, characterized in that The step of predicting at least one earthquake parameter corresponding to the earthquake event according to the earthquake wave data and a preset earthquake prediction model comprises: Inputting the seismic wave data into the convolution module and outputting a seismic wave data feature map; Inputting the seismic wave data characteristic graph into the Fourier transformer and outputting a seismic wave data characteristic sequence; The seismic wave data characteristic sequence is input into the decoder, and at least one seismic parameter corresponding to the seismic event is output.
3. The method according to claim 2, characterized in that The convolution module includes a convolution layer, a random drop layer and a maximum pooling layer; the seismic wave data is input into the convolution module, and a seismic wave data feature map is output, including: Inputting the seismic wave data into the convolution layer, and outputting a first convolution feature map; Inputting the first convolutional feature map into the random dropout layer, and outputting a second convolutional feature map; The second convolution feature map is input into the maximum pooling layer, and the seismic wave data feature map is output.
4. The method according to claim 2, characterized in that The Fourier transformer includes a first normalization layer, a two-dimensional fast Fourier transform layer, a Hadamard product operation layer, a two-dimensional inverse fast Fourier transform layer, a second normalization layer and a multi-layer perceptron; the first normalization layer and the two-dimensional inverse fast Fourier transform layer are connected by residuals; the second normalization layer and the multi-layer perceptron are connected by residuals; The step of inputting the seismic wave data characteristic graph into the Fourier transformer and outputting a seismic wave data characteristic sequence comprises: Inputting the seismic wave data feature map into the first normalization layer, and outputting a normalized feature map; Inputting the normalized feature map into the two-dimensional fast Fourier transform layer, and outputting a first spectrum map; Inputting the first spectrogram and the learnable global filter into the Hadamard product operation layer, and outputting a second spectrogram; Inputting the second spectrum graph into the two-dimensional inverse fast Fourier transform layer, and outputting a time domain feature sequence; Inputting the time domain feature sequence into the second normalization layer, and outputting a normalized time domain feature sequence; The normalized time domain feature sequence is input into the multi-layer perceptron, and the seismic wave data feature sequence is output.
5. The method according to claim 2, characterized in that The decoder includes a point-by-point convolution layer, a batch normalization layer, a Gaussian error linear unit activation function layer, a random dropout layer and a multi-layer perceptron; the input of the seismic wave data feature sequence into the decoder, and the output of at least one seismic parameter corresponding to the seismic event, include: Inputting the seismic wave data feature sequence into the point-by-point convolution layer, and outputting a point-by-point convolution feature sequence; Inputting the point-by-point convolution feature sequence into the batch normalization layer, and outputting a batch normalized feature sequence; Inputting the batch normalized feature sequence into the Gaussian error linear unit activation function layer, and outputting the activated feature sequence; Input the activated feature sequence to the random discard layer, and output the feature sequence after random discard processing; The feature sequence after random discarding is input into the multi-layer perceptron, and the earthquake parameters corresponding to the earthquake event are output.
6. The method according to claim 2, characterized in that Before inputting the seismic wave data characteristic sequence into the decoder and outputting at least one seismic parameter corresponding to the seismic event, the method further includes: The seismic wave data characteristic sequence is subjected to layer normalization processing.
7. The method according to any one of claims 1 to 6, characterized in that: The preset earthquake prediction model includes a learnable position encoder, and the learnable position encoder is arranged between the convolution module and the Fourier transformer.
8. The method according to claim 1, characterized in that After predicting at least one earthquake parameter corresponding to the earthquake event according to the earthquake wave data and the preset earthquake prediction model, the method may further include: Obtaining real earthquake parameters corresponding to at least one earthquake event; Determining a loss function of the preset earthquake prediction model according to the predicted earthquake parameters and the actual earthquake parameters; If the output value of the loss function is less than a preset threshold, outputting the predicted earthquake parameter; Otherwise, continue to train the preset earthquake prediction model until the output value of the loss function is less than the preset threshold.
9. A device for predicting earthquake parameters, characterized in that: include: An acquisition module, used to acquire seismic wave data corresponding to at least one seismic event; A prediction module is used to predict a seismic parameter corresponding to at least one seismic event based on the seismic wave data and a preset seismic prediction model, wherein the preset seismic prediction model includes a convolution module, a Fourier transformer and a decoder.
10. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Deep learning-based multi-feature fusion earthquake magnitude detection method and system
CN116859459A
Focus depth and epicentral distance prediction method based on physical information neural network
CN117075200A
Data and physics combined driving seismic wave generation method and system and storage medium
CN117454768A
Earthquake magnitude prediction method and device, electronic equipment and storage medium
CN117849856A
