CN117390961A - Method for solving electromagnetic response of ground model by using physical information neural network - Google Patents

Method for solving electromagnetic response of ground model by using physical information neural network Download PDF

Info

Publication number
CN117390961A
CN117390961A CN202311385642.3A CN202311385642A CN117390961A CN 117390961 A CN117390961 A CN 117390961A CN 202311385642 A CN202311385642 A CN 202311385642A CN 117390961 A CN117390961 A CN 117390961A
Authority
CN
China
Prior art keywords
neural network
electromagnetic response
fully connected
physical information
electromagnetic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311385642.3A
Other languages
Chinese (zh)
Inventor
郭振威
王博琛
柳建新
高大维
潘新朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Central South University
Original Assignee
Central South University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Central South University filed Critical Central South University
Priority to CN202311385642.3A priority Critical patent/CN117390961A/en
Publication of CN117390961A publication Critical patent/CN117390961A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • Biophysics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Medical Informatics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

The invention provides a method for solving electromagnetic response of an earth model by using a physical information neural network, which comprises the following steps: firstly, acquiring space coordinates of known data points, and extracting part of sampling points from a calculation region of a ground model to be solved to acquire the space coordinates; then, calculating and outputting electromagnetic field values corresponding to the data points and the space coordinates of the sampling points by using a neural network; then, taking the residual error of the output obtained after the data point coordinates are input into the neural network and the real electromagnetic response as the data error of the loss function, and taking the electromagnetic control equation and the boundary condition which are met by all points as physical constraint to add the loss function; finally, the space distribution condition of the electromagnetic response of the ground model can be obtained through an automatic differentiation technology and error counter propagation minimization loss function; so far, the physical information neural network can be utilized to solve electromagnetic response at any position in the ground model.

Description

一种利用物理信息神经网络求解地电模型电磁响应的方法A method for solving electromagnetic response of geoelectric model using physical information neural network

技术领域Technical field

本发明涉及地球物理和人工智能领域,特别地,涉及一种利用物理信息神经网络求解地电模型电磁响应的方法。The present invention relates to the fields of geophysics and artificial intelligence, and in particular, to a method for solving the electromagnetic response of a geoelectric model using a physical information neural network.

背景技术Background technique

电磁法勘探在地下水资源、矿产资源、地热资源、油气资源以及深部构造的勘察勘探应用中具有广泛应用价值。电磁法勘探利用地下目标异常体与周围介质表现出的较大电性差异,圈定电阻率异常区域,从而实现对地下目标异常体空间位置与赋存形态的刻画。地电模型电阻率分布与电磁响应的物理映射关系为,地电模型中任意点的电磁响应均满足麦克斯韦方程。Electromagnetic method exploration has wide application value in the exploration and application of groundwater resources, mineral resources, geothermal resources, oil and gas resources and deep structures. The electromagnetic method exploration uses the large electrical difference between the underground target anomaly and the surrounding medium to delineate the resistivity anomaly area, thereby realizing the characterization of the spatial location and occurrence form of the underground target anomaly. The physical mapping relationship between the resistivity distribution and electromagnetic response of the geoelectric model is that the electromagnetic response at any point in the geoelectric model satisfies Maxwell's equations.

由于计算空间大且模型复杂度高,为了平衡计算精度和计算效率,通常传统做法为,给定一个地电模型,将该模型空间区域剖分成众多网格,借助有限差分、有限元等数值模拟方法来计算这些网格节点处的电磁场,再通过插值拟合近似得到整个模型空间的电磁响应。然而,网格剖分插值技术虽然在一定程度上简化了对计算空间的求解,但本质上是牺牲了一定的计算精度从而换取更高的计算效率。另外,网格剖分插值技术虽然具有非常好的技术迁移性,但在大数据时代,简单重复的大型矩阵求解在应对海量模型计算时略显乏力且效率低下。Due to the large calculation space and high model complexity, in order to balance calculation accuracy and calculation efficiency, the usual traditional approach is to give a geoelectric model, divide the model space area into many grids, and use numerical simulations such as finite difference and finite element to method to calculate the electromagnetic fields at these grid nodes, and then approximate the electromagnetic response of the entire model space through interpolation fitting. However, although the gridding interpolation technology simplifies the solution of the calculation space to a certain extent, it essentially sacrifices a certain calculation accuracy in exchange for higher calculation efficiency. In addition, although gridding interpolation technology has very good technology migration, in the era of big data, simple and repeated large-scale matrix solving is slightly weak and inefficient when dealing with massive model calculations.

近年来,在大数据的时代背景下,随着人工智能技术的进步,人工神经网络为人类社会生活提供了诸多智能化解决方案,也为地球物理提供了新的思路和方法。神经网络通过神经元的权重叠加实现网络输入与输出之间的映射,具有非常强大的非线性表达能力。然而,对于求解地球物理问题,背后有着相对成熟的物理机理和数学逻辑,尤其是电磁响应需严格满足麦克斯韦电磁理论,而传统的神经网络过度依赖于数据,缺少物理规律的支撑,严重制约了其泛化性使用及其预测精度。因此,只有将神经网络提取到的数据特征同时加入物理约束,才能最大限度发挥神经网络的优势,实现对地电模型电磁响应的智能化求解。In recent years, in the era of big data and with the advancement of artificial intelligence technology, artificial neural networks have provided many intelligent solutions for human social life, and also provided new ideas and methods for geophysics. Neural networks realize the mapping between network input and output through the weight overlap of neurons, and have very powerful nonlinear expression capabilities. However, there are relatively mature physical mechanisms and mathematical logic behind solving geophysical problems. In particular, the electromagnetic response must strictly satisfy Maxwell's electromagnetic theory. However, traditional neural networks are overly dependent on data and lack the support of physical laws, which seriously restricts their use. Generalization usage and its predictive accuracy. Therefore, only by adding physical constraints to the data features extracted by the neural network can we maximize the advantages of the neural network and achieve intelligent solutions to the electromagnetic response of the geoelectric model.

发明内容Contents of the invention

为了解决上述技术问题或者至少部分地解决上述技术问题,本发明提供了一种利用物理信息神经网络求解地电模型电磁响应的方法。In order to solve the above technical problems or at least partially solve the above technical problems, the present invention provides a method for solving the electromagnetic response of a geoelectric model using a physical information neural network.

为实现上述目的,本发明的技术方案如下:In order to achieve the above objects, the technical solutions of the present invention are as follows:

一种利用物理信息神经网络求解地电模型电磁响应的方法,包括以下步骤:A method of using physical information neural network to solve the electromagnetic response of a geoelectric model, including the following steps:

步骤一、构建电磁响应训练数据集;Step 1. Construct an electromagnetic response training data set;

步骤二、构建全连接深度神经网络;Step 2: Construct a fully connected deep neural network;

其中,所述全连接深度神经网络的损失函数loss如下所示:Among them, the loss function loss of the fully connected deep neural network is as follows:

其中,loss_u为数据误差loss_u,loss_f为物理约束误差;α为平衡系数;Among them, loss_u is the data error loss_u, loss_f is the physical constraint error; α is the balance coefficient;

步骤三、将电磁响应训练数据集输入全连接深度神经网络至损失函数loss最小化得到训练好的全连接深度神经网络;Step 3: Input the electromagnetic response training data set into the fully connected deep neural network to minimize the loss function to obtain the trained fully connected deep neural network;

步骤四、将待求解地电模型的计算区域的采样点的真实电磁响应和对应的空间坐标输入训练好的全连接深度神经网络,预测得到预测点的电磁响应。Step 4: Input the true electromagnetic response and corresponding spatial coordinates of the sampling points in the calculation area of the geoelectric model to be solved into the trained fully connected deep neural network, and predict the electromagnetic response of the predicted point.

进一步的改进,所述电磁响应训练数据集中包括已知数据点的空间坐标及其对应的真实电磁响应。In a further improvement, the electromagnetic response training data set includes the spatial coordinates of known data points and their corresponding real electromagnetic responses.

进一步的改进,所述已知数据点的空间坐标为地表观测点并且Min-Max归一化至[0,1]区间。As a further improvement, the spatial coordinates of the known data points are surface observation points and Min-Max is normalized to the [0,1] interval.

进一步的改进,所述步骤二中,Further improvement, in step two,

,

根据亥姆霍兹方程的约束得到:According to the constraints of Helmholtz equation, we get:

,

其中,为数据点数量,/>为采样点数量,/>为全连接深度神经网络对第n个训练数据的网络输出,/>为第n个训练数据的真实值;/>为单位虚数/>,/>为角频率,/>为频率,/>为磁导率,/>为电导率,/>为拉普拉斯算子。in, is the number of data points,/> is the number of sampling points,/> is the network output of the fully connected deep neural network for the nth training data,/> is the true value of the nth training data;/> Is the unit imaginary number/> ,/> is the angular frequency,/> is the frequency,/> is the magnetic permeability,/> is the conductivity,/> is the Laplacian operator.

进一步的改进,所述全连接深度神经网络包括输入层、中间隐藏层和输出层;中间隐藏层包含10层全连接层,每层包含32个神经元;输入层的尺寸为1,输出层的尺寸为4。As a further improvement, the fully connected deep neural network includes an input layer, an intermediate hidden layer and an output layer; the intermediate hidden layer includes 10 fully connected layers, each layer including 32 neurons; the size of the input layer is 1, and the size of the output layer is 1. Size is 4.

进一步的改进,所述全连接深度神经网络的激活函数为非线性激活函数,非线性激活函数包括Sine、Tanh。As a further improvement, the activation function of the fully connected deep neural network is a nonlinear activation function, and the nonlinear activation function includes Sine and Tanh.

进一步的改进,所述步骤三中,全连接深度神经网络将电磁场的实部虚部分开计算输出,亥姆霍兹方程的约束拆解成电场实部、电场虚部/>、磁场实部/>、磁场虚部四个部分:As a further improvement, in the third step, the fully connected deep neural network calculates and outputs the real and imaginary parts of the electromagnetic field separately, and the constraints of the Helmholtz equation are disassembled into the real part of the electric field. , imaginary part of electric field/> , real part of magnetic field/> , the imaginary part of the magnetic field Four parts:

其中,为偏导符号,/>为归一后的空间坐标,/>为/>的实部,/>为/>的虚部;/>为/>的实部,/>为/>的虚部;/>为场值归一后的电场值,/>为场值归一后的磁场值。in, is the partial derivative symbol,/> is the normalized spatial coordinate,/> for/> The real part of ,/> for/> The imaginary part of ;/> for/> The real part of ,/> for/> The imaginary part of ;/> is the electric field value after normalization of the field value,/> is the magnetic field value after normalization of the field value.

进一步的改进,所述步骤三中,通过自动微分求取全连接深度神经网络的输出对输入的偏导数,即亥姆霍兹方程中的偏微分项,采用优化器和学习率,利用误差反向传播迭代更新全连接深度神经网络参数,使得损失函数最小化。Further improvement, in the third step, the partial derivative of the output of the fully connected deep neural network with respect to the input is obtained through automatic differentiation, that is, the partial differential term in the Helmholtz equation, using the optimizer and learning rate, and using the error inverse Iteratively updates the parameters of the fully connected deep neural network through forward propagation to minimize the loss function.

进一步的改进,所述偏微分项为亥姆霍兹方程中电/磁场的二阶偏导项;所述优化器包括梯度下降类、自适应类以及拟牛顿类优化器;所述学习率的更新策略包括步长调整、指数衰减、自适应调整和周期性调整策略。As a further improvement, the partial differential term is the second-order partial derivative term of the electric/magnetic field in the Helmholtz equation; the optimizer includes gradient descent type, adaptive type and quasi-Newton type optimizers; the learning rate Update strategies include step size adjustment, exponential decay, adaptive adjustment and periodic adjustment strategies.

本发明方法利用物理信息神经网络求解地电模型电磁响应,避免了传统数值方法中网格剖分插值技术带来的精度损失,同时还在传统神经网络的基础上加入了亥姆霍兹方程及边值条件等物理约束,实现了基于数据和物理模型双重驱动下的地电模型电磁响应求解,为电磁法勘探中电磁响应的计算提供了智能化方案。The method of the present invention uses a physical information neural network to solve the electromagnetic response of the geoelectric model, avoiding the accuracy loss caused by the grid subdivision and interpolation technology in the traditional numerical method. At the same time, the Helmholtz equation and the Helmholtz equation are added to the traditional neural network. Physical constraints such as boundary value conditions realize the electromagnetic response solution of the geoelectric model driven by both data and physical models, providing an intelligent solution for the calculation of electromagnetic response in electromagnetic exploration.

附图说明Description of the drawings

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are of the present invention. For some embodiments of the invention, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.

图1为本发明方法的示意图。Figure 1 is a schematic diagram of the method of the present invention.

图2为本发明方法的流程图。Figure 2 is a flow chart of the method of the present invention.

图3为本发明实施例提供的全连接神经网络。Figure 3 is a fully connected neural network provided by an embodiment of the present invention.

图4为本发明实施例提供的地电模型。Figure 4 is a geoelectric model provided by an embodiment of the present invention.

图5为本发明实施例提供的电场响应神经网络预测结果与真实值的误差示意图。Figure 5 is a schematic diagram of the error between the electric field response neural network prediction result and the true value provided by the embodiment of the present invention.

具体实施方式Detailed ways

下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

图1是根据本发明实施例提供的一种利用物理信息神经网络求解地电模型电磁响应的方法的示意图。在本发明实施例中,所述的地电模型电磁响应包括天然场源的大地电磁(MT)以及人工场源的可控源电磁(CSEM),且应包含TE/TM两种极化方式,本发明实施例以一维大地电磁TE极化为例,地电模型为一维层状电阻率模型,所有代码均基于PyTorch深度学习框架编写。如图2所示,该方法具体包括如下步骤:Figure 1 is a schematic diagram of a method for solving the electromagnetic response of a geoelectric model using a physical information neural network according to an embodiment of the present invention. In the embodiment of the present invention, the electromagnetic response of the geoelectric model includes magnetotelluric (MT) of natural field sources and controlled source electromagnetic (CSEM) of artificial field sources, and should include two polarization modes: TE/TM. The embodiment of the present invention takes one-dimensional magnetotelluric TE polarization as an example. The geoelectric model is a one-dimensional layered resistivity model. All codes are written based on the PyTorch deep learning framework. As shown in Figure 2, the method specifically includes the following steps:

步骤1,准备数据,获取已知数据点的空间坐标及其对应的真实电磁响应,并从待求解地电模型的计算区域中抽取一定数量的采样点获得其对应的空间坐标,预测点为计算区域内的任意点;Step 1. Prepare data, obtain the spatial coordinates of known data points and their corresponding real electromagnetic responses, and extract a certain number of sampling points from the calculation area of the geoelectric model to be solved to obtain their corresponding spatial coordinates. The predicted points are calculated Any point within the area;

步骤1所述的数据点通常为地表观测点,即空间坐标z=0,其对应的电磁响应通常会经过地表场值归一化,以上边界条件或初值条件=1或/>=1给出,在本发明实例中TE极化的初值条件为/>=1;所述的采样点为一定数量的空间随机采样点,在本发明实施例中,采用拉丁超立方采样方法在z方向上区间[0, 10000]抽取2000个随机点,并将其归一至[0,1]范围内;所述的预测点为[0,1]范围内10000个随机点。坐标z经过Min-Max归一化到[0,1]后:The data points mentioned in step 1 are usually surface observation points, that is, the spatial coordinate z=0, and their corresponding electromagnetic responses are usually normalized by the surface field value. The above boundary conditions or initial value conditions =1 or/> =1 is given. In the example of the present invention, the initial value condition of TE polarization is/> =1; the sampling points are a certain number of spatial random sampling points. In the embodiment of the present invention, the Latin hypercube sampling method is used to extract 2000 random points in the interval [0, 10000] in the z direction and normalize them. One to [0,1]; the prediction points are 10,000 random points within the [0,1] range. After the coordinate z is normalized to [0,1] by Min-Max:

步骤2,搭建网络,采用全连接的深度神经网络,隐藏层中加入激活函数,输入为归一化后的数据点和采样点坐标,输出分别为经过地表电(磁)场值归一化后的电场与磁场的实部和虚部;Step 2. Build a network, using a fully connected deep neural network. An activation function is added to the hidden layer. The input is the normalized data point and sampling point coordinates, and the output is the normalized surface electric (magnetic) field value. The real and imaginary parts of the electric and magnetic fields;

在本发明实施例中,步骤2所述全连接神经网络如图3所示,输入层尺寸为1,输出层尺寸为4,中间隐藏层包含10层全连接层,每层包含32个神经元,激活函数采用Sine激活函数。输入,输出场值归一化为:In the embodiment of the present invention, the fully connected neural network in step 2 is shown in Figure 3. The input layer size is 1, the output layer size is 4, the middle hidden layer contains 10 fully connected layers, and each layer contains 32 neurons. , the activation function adopts Sine activation function. enter , the output field value is normalized to:

输出分别为的实部/>、虚部/>以及/>的实部/>、虚部/>The outputs are real part/> , imaginary part/> and/> real part/> , imaginary part/> .

步骤3,加入约束,将数据点坐标输入神经网络后所得输出与其真实电磁响应的残差作为数据误差,并将地电模型电磁场满足的亥姆霍兹方程以及边界条件作为物理信息约束加入损失函数;Step 3: Add constraints. The residual difference between the output obtained after the data point coordinates are input into the neural network and its true electromagnetic response is used as the data error. The Helmholtz equation and boundary conditions satisfied by the electromagnetic field of the geoelectric model are added to the loss function as physical information constraints. ;

在本发明实施例中,步骤3所述网络输出u’与真实值u的残差loss_u采用RMSE计算方式计算:In the embodiment of the present invention, the residual loss_u between the network output u' and the real value u described in step 3 is calculated using the RMSE calculation method:

. .

根据亥姆霍兹方程:According to the Helmholtz equation:

,

其中,u为电磁场值,为角频率,/>为磁导率,/>为电导率,令Among them, u is the electromagnetic field value, is the angular frequency,/> is the magnetic permeability,/> is the conductivity, let

,

当网络输出u’严格满足亥姆霍兹方程时,此项误差为零,否则此项计算的误差即为网络输出未严格满足亥姆霍兹方程所带来的误差。值得注意的是,在本发明实施例中,由于网络需要将电磁场的实部虚部分开计算输出,亥姆霍兹方程的约束也需拆解成电场实部、电场虚部/>、磁场实部/>、磁场虚部/>四个部分:When the network output u' strictly satisfies the Helmholtz equation, the error in this item is zero. Otherwise, the error in this calculation is the error caused by the network output not strictly satisfying the Helmholtz equation. It is worth noting that in the embodiment of the present invention, since the network needs to separate the real and imaginary parts of the electromagnetic field for calculation and output, the constraints of the Helmholtz equation also need to be decomposed into the real part of the electric field. , imaginary part of electric field/> , real part of magnetic field/> , imaginary part of the magnetic field/> Four parts:

此外,在本发明实施例中,地电模型的上下边界条件以狄利克雷边界简单给出,即上边界条件为,下边界条件/>。为方便计算损失,此边界条件可以作为数据点进行损失函数计算。In addition, in the embodiment of the present invention, the upper and lower boundary conditions of the geoelectric model are simply given by the Dirichlet boundary, that is, the upper boundary condition is , lower boundary condition/> . To facilitate loss calculation, this boundary condition can be used as a data point for loss function calculation.

步骤4,训练网络,利用自动微分求取网络输出对输入的偏导数,即亥姆霍兹方程中的偏微分项,采用合适的优化器和学习率,利用误差反向传播迭代更新网络参数,使得损失函数最小化;Step 4, train the network, use automatic differentiation to find the partial derivative of the network output to the input, that is, the partial differential term in the Helmholtz equation, use an appropriate optimizer and learning rate, and use error backpropagation to iteratively update the network parameters. Minimize the loss function;

在本发明实施例中,步骤4所述自动微分是基于PyTorch中的内置微分引擎torch.autograd实现,通过链式求导法可以求得网络输出、/>、/>以及/>对输入/>的二阶偏导数In the embodiment of the present invention, the automatic differentiation described in step 4 is implemented based on the built-in differentiation engine torch.autograd in PyTorch. The network output can be obtained through the chain derivation method. ,/> ,/> and/> pair input/> The second-order partial derivative of

在本发明实施例中,所述优化器为AdamW和LBFGS两种优化器,并设置AdamW的训练周期为10000轮,学习率为0.001,LBFGS的每个优化步骤的最大迭代次数为10000,学习率为1,更新历史记录大小为100,一阶最优的终止公差为10-9,参数变化的终止容忍为10-9,线性搜索算法采用strong_wolfe条件。In the embodiment of the present invention, the optimizers are AdamW and LBFGS, and the training cycle of AdamW is set to 10,000 rounds, the learning rate is 0.001, the maximum number of iterations of each optimization step of LBFGS is 10,000, and the learning rate is 1, the update history size is 100, the termination tolerance of the first-order optimal is 10 -9 , the termination tolerance of parameter changes is 10 -9 , and the linear search algorithm adopts the strong_wolfe condition.

在本发明实施例中,所述损失函数loss为数据误差loss_u与物理约束误差loss_f的加权求和,即:In the embodiment of the present invention, the loss function loss is the weighted sum of the data error loss_u and the physical constraint error loss_f , that is:

其中,α为平衡系数,用来平衡loss_uloss_f的权重,本发明实施例中设置 loss的最小化由误差反向传播过程中的累积梯度下降来实现。Among them, α is the balance coefficient, which is used to balance the weight of loss_u and loss_f . In the embodiment of the present invention, it is set . Minimization of loss is achieved by cumulative gradient descent during error backpropagation.

步骤5,预测结果,当训练损失不再下降,损失函数趋于收敛,神经网络训练完成,保存神经网络模型参数,此时对神经网络输入任意点的空间坐标,即可得到地电模型中该点的电磁响应。Step 5, predict the results. When the training loss no longer decreases, the loss function tends to converge, the neural network training is completed, and the neural network model parameters are saved. At this time, the spatial coordinates of any point in the neural network are input to the geoelectric model, and the geoelectric model can be obtained. electromagnetic response of the point.

下面展示一组本发明方法完整实施的实际结果。该结果对应的地电模型如图4所示,模型背景电阻率为,模型深度为10000m,其中,根据3000m到5000m深度范围内的不同电阻率设置/>,可分为均匀半空间模型、高阻模型以及低阻模型,右边的点表示均匀采样的10000个预测点,采样间距为1m。针对不同的探测频率f1=0.001Hz、f2=0.1Hz、f3=1.0Hz、f4=10Hz,经过上述实施例中的一系列步骤,三个模型对应的神经网络的电场响应预测结果(/>实部PINN-Real、/>虚部PINN-Imag)与真实值(有限差分结果/>实部GT-Real、/>虚部GT-Imag)的对比结果如图5所示,对比结果的预测精度与真实值具有非常好的一致性,验证了本发明方法的有效性。A set of actual results from the complete implementation of the method of the present invention are shown below. The geoelectric model corresponding to this result is shown in Figure 4. The model background resistivity is , the model depth is 10000m, where the resistivity settings are set according to different depths from 3000m to 5000m/> , can be divided into uniform half-space model, high-resistance model and low-resistance model. The points on the right represent 10,000 prediction points of uniform sampling, and the sampling interval is 1m. For different detection frequencies f1 =0.001Hz, f2 =0.1Hz, f3 =1.0Hz, f4 =10Hz, after a series of steps in the above embodiment, the electric field response prediction results of the neural networks corresponding to the three models (/> Real part PINN-Real,/> Imaginary part PINN-Imag) and real value (finite difference result/> Real part GT-Real,/> The comparison results of the imaginary part (GT-Imag) are shown in Figure 5. The prediction accuracy of the comparison results is very consistent with the real value, which verifies the effectiveness of the method of the present invention.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, but not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention. scope.

Claims (9)

1.一种利用物理信息神经网络求解地电模型电磁响应的方法,其特征在于,包括以下步骤:1. A method for solving the electromagnetic response of a geoelectric model using a physical information neural network, which is characterized by including the following steps: 步骤一、构建电磁响应训练数据集;Step 1. Construct an electromagnetic response training data set; 步骤二、构建全连接深度神经网络;Step 2: Construct a fully connected deep neural network; 其中,所述全连接深度神经网络的损失函数loss如下所示:Among them, the loss function loss of the fully connected deep neural network is as follows: ; 其中,为数据误差loss_u,/>为物理约束误差;/>为平衡系数;in, is the data error loss_u, /> is the physical constraint error;/> is the balance coefficient; 步骤三、将电磁响应训练数据集输入全连接深度神经网络至损失函数loss最小化得到训练好的全连接深度神经网络;Step 3: Input the electromagnetic response training data set into the fully connected deep neural network to minimize the loss function to obtain the trained fully connected deep neural network; 步骤四、将待求解地电模型的计算区域的采样点的真实电磁响应和对应的空间坐标输入训练好的全连接深度神经网络,预测得到预测点的电磁响应。Step 4: Input the true electromagnetic response and corresponding spatial coordinates of the sampling points in the calculation area of the geoelectric model to be solved into the trained fully connected deep neural network, and predict the electromagnetic response of the predicted point. 2.如权利要求1所述的利用物理信息神经网络求解地电模型电磁响应的方法,其特征在于,所述电磁响应训练数据集中包括已知数据点的空间坐标及其对应的真实电磁响应。2. The method of using physical information neural network to solve the electromagnetic response of a geoelectric model as claimed in claim 1, characterized in that the electromagnetic response training data set includes the spatial coordinates of known data points and their corresponding real electromagnetic responses. 3.如权利要求2所述的利用物理信息神经网络求解地电模型电磁响应的方法,其特征在于,所述已知数据点的空间坐标为地表观测点并且Min-Max归一化至[0,1]区间。3. The method for solving electromagnetic response of geoelectric model by using physical information neural network as claimed in claim 2, characterized in that the spatial coordinates of the known data points are surface observation points and Min-Max is normalized to [0 ,1] interval. 4.如权利要求1所述的用物理信息神经网络求解地电模型电磁响应的方法,其特征在于,所述步骤二中,4. The method of using physical information neural network to solve the electromagnetic response of the geoelectric model as claimed in claim 1, characterized in that, in the second step, , 根据亥姆霍兹方程的约束得到:According to the constraints of Helmholtz equation, we get: , 其中,为数据点数量,/>为采样点数量,/>为全连接深度神经网络对第n个训练数据的网络输出,/>为第n个训练数据的真实值;/>为单位虚数/>,/>为角频率,/>为频率,/>为磁导率,/>为电导率,/>为拉普拉斯算子。in, is the number of data points,/> is the number of sampling points,/> is the network output of the fully connected deep neural network for the nth training data,/> is the true value of the nth training data;/> Is the unit imaginary number/> ,/> is the angular frequency,/> is the frequency,/> is the magnetic permeability,/> is the conductivity,/> is the Laplacian operator. 5.如权利要求1所述的用物理信息神经网络求解地电模型电磁响应的方法,其特征在于,所述全连接深度神经网络包括输入层、中间隐藏层和输出层;中间隐藏层包含10层全连接层,每层包含32个神经元;输入层的尺寸为1,输出层的尺寸为4。5. The method of using physical information neural network to solve the electromagnetic response of geoelectric model as claimed in claim 1, characterized in that the fully connected deep neural network includes an input layer, an intermediate hidden layer and an output layer; the intermediate hidden layer includes 10 The layer is a fully connected layer, each layer contains 32 neurons; the input layer has a size of 1 and the output layer has a size of 4. 6.如权利要求1所述的用物理信息神经网络求解地电模型电磁响应的方法,其特征在于,所述全连接深度神经网络的激活函数为非线性激活函数,非线性激活函数包括Sine、Tanh。6. The method of using a physical information neural network to solve the electromagnetic response of a geoelectric model as claimed in claim 1, characterized in that the activation function of the fully connected deep neural network is a nonlinear activation function, and the nonlinear activation function includes Sine, Tanh. 7.如权利要求4所述的用物理信息神经网络求解地电模型电磁响应的方法,其特征在于,所述步骤三中,全连接深度神经网络将电磁场的实部虚部分开计算输出,亥姆霍兹方程的约束拆解成电场实部、电场虚部/>、磁场实部/>、磁场虚部/>四个部分:7. The method of using a physical information neural network to solve the electromagnetic response of a geoelectric model as claimed in claim 4, characterized in that in the third step, the fully connected deep neural network separates the real and imaginary parts of the electromagnetic field to calculate and output. The constraints of the Mholtz equation are decomposed into the real part of the electric field , imaginary part of electric field/> , real part of magnetic field/> , imaginary part of the magnetic field/> Four parts: , 其中,为偏导符号,/>为归一后的空间坐标,/>为/>的实部,/>为/>的虚部;为/>的实部,/>为/>的虚部;/>为场值归一后的电场值,/>为场值归一后的磁场值。in, is the partial derivative symbol,/> is the normalized spatial coordinate,/> for/> The real part of ,/> for/> The imaginary part of; for/> The real part of ,/> for/> The imaginary part of ;/> is the electric field value after normalization of the field value,/> is the magnetic field value after normalization of the field value. 8.如权利要求1所述的用物理信息神经网络求解地电模型电磁响应的方法,其特征在于,所述步骤三中,通过自动微分求取全连接深度神经网络的输出对输入的偏导数,即亥姆霍兹方程中的偏微分项,采用优化器和学习率,利用误差反向传播迭代更新全连接深度神经网络参数,使得损失函数最小化。8. The method of using a physical information neural network to solve the electromagnetic response of a geoelectric model as claimed in claim 1, characterized in that in the third step, the partial derivative of the output of the fully connected deep neural network with respect to the input is obtained through automatic differentiation. , that is, the partial differential term in the Helmholtz equation, uses an optimizer and learning rate, and uses error backpropagation to iteratively update the fully connected deep neural network parameters to minimize the loss function. 9.如权利要求8所述的用物理信息神经网络求解地电模型电磁响应的方法,其特征在于,所述偏微分项为亥姆霍兹方程中电/磁场的二阶偏导项;所述优化器包括梯度下降类、自适应类以及拟牛顿类优化器;所述学习率的更新策略包括步长调整、指数衰减、自适应调整和周期性调整策略。9. The method for solving the electromagnetic response of a geoelectric model using a physical information neural network as claimed in claim 8, wherein the partial differential term is the second-order partial derivative term of the electric/magnetic field in the Helmholtz equation; The optimizer includes gradient descent type, adaptive type and quasi-Newton type optimizer; the update strategy of the learning rate includes step size adjustment, exponential decay, adaptive adjustment and periodic adjustment strategy.
CN202311385642.3A 2023-10-25 2023-10-25 Method for solving electromagnetic response of ground model by using physical information neural network Pending CN117390961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311385642.3A CN117390961A (en) 2023-10-25 2023-10-25 Method for solving electromagnetic response of ground model by using physical information neural network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311385642.3A CN117390961A (en) 2023-10-25 2023-10-25 Method for solving electromagnetic response of ground model by using physical information neural network

Publications (1)

Publication Number Publication Date
CN117390961A true CN117390961A (en) 2024-01-12

Family

ID=89468055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311385642.3A Pending CN117390961A (en) 2023-10-25 2023-10-25 Method for solving electromagnetic response of ground model by using physical information neural network

Country Status (1)

Country Link
CN (1) CN117390961A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117952020A (en) * 2024-03-26 2024-04-30 大连理工大学 A multi-layer dielectric electromagnetic calculation method based on physical information neural network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968826A (en) * 2019-10-11 2020-04-07 重庆大学 An Inversion Method of Magnetotelluric Deep Neural Network Based on Spatial Mapping Technology
CN111126591A (en) * 2019-10-11 2020-05-08 重庆大学 An inversion method of magnetotelluric deep neural network based on space constraint technology
CN111812732A (en) * 2020-06-29 2020-10-23 中铁二院工程集团有限责任公司 A nonlinear inversion method of magnetotelluric based on convolutional neural network
US20230062600A1 (en) * 2021-08-30 2023-03-02 Accenture Global Solutions Limited Adaptive design and optimization using physics-informed neural networks
CN116186538A (en) * 2023-01-10 2023-05-30 清华大学 Deep learning magnetotelluric data inversion method and device based on subregion coding
US20230177327A1 (en) * 2021-12-06 2023-06-08 Tata Consultancy Services Limited Physics-informed neural network for inversely predicting effective material properties of metamaterials
CN116384244A (en) * 2023-04-03 2023-07-04 河北工业大学 Electromagnetic field prediction method based on physical enhancement neural network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968826A (en) * 2019-10-11 2020-04-07 重庆大学 An Inversion Method of Magnetotelluric Deep Neural Network Based on Spatial Mapping Technology
CN111126591A (en) * 2019-10-11 2020-05-08 重庆大学 An inversion method of magnetotelluric deep neural network based on space constraint technology
CN111812732A (en) * 2020-06-29 2020-10-23 中铁二院工程集团有限责任公司 A nonlinear inversion method of magnetotelluric based on convolutional neural network
US20230062600A1 (en) * 2021-08-30 2023-03-02 Accenture Global Solutions Limited Adaptive design and optimization using physics-informed neural networks
US20230177327A1 (en) * 2021-12-06 2023-06-08 Tata Consultancy Services Limited Physics-informed neural network for inversely predicting effective material properties of metamaterials
CN116186538A (en) * 2023-01-10 2023-05-30 清华大学 Deep learning magnetotelluric data inversion method and device based on subregion coding
CN116384244A (en) * 2023-04-03 2023-07-04 河北工业大学 Electromagnetic field prediction method based on physical enhancement neural network

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ZHONG PENG ET AL.: "Rapid surrogate modeling of magnetotelluric in the frequency domain using physics-driven deep neural networks", COMPUTERS & GEOSCIENCES, vol. 176, 21 April 2023 (2023-04-21), pages 105360 *
彭中 等: "基于物理信息的神经网络大地电磁正演", 2020年中国地球科学联合学术年会, 18 October 2020 (2020-10-18), pages 1381 - 1382 *
王浩蔓: "基于物理信息神经网络的大地电磁正演研究", 中国优秀硕士学位论文全文数据库基础科学辑, 15 November 2022 (2022-11-15), pages 011 - 191 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117952020A (en) * 2024-03-26 2024-04-30 大连理工大学 A multi-layer dielectric electromagnetic calculation method based on physical information neural network

Similar Documents

Publication Publication Date Title
CN109977585B (en) A high-precision magnetotelluric forward modeling method
Romero et al. Improved reservoir characterization through evolutionary computation
Trask et al. Enforcing exact physics in scientific machine learning: a data-driven exterior calculus on graphs
Mirzabozorg et al. Differential evolution for assisted history matching process: SAGD case study
Zhao et al. Surrogate-assisted differential evolution for production optimization with nonlinear state constraints
CN112949134A (en) Earth-well transient electromagnetic inversion method based on non-structural finite element method
CN115238550B (en) Numerical simulation calculation method of geoelectric field for landslide rainfall with adaptive unstructured grid
CN117390961A (en) Method for solving electromagnetic response of ground model by using physical information neural network
CN116911216B (en) Reservoir oil well productivity factor assessment and prediction method
CN116090293A (en) DC resistivity inversion method and system based on unsupervised deep learning
CN112699596B (en) Wide-area electromagnetic method induced polarization information nonlinear extraction method based on learning
Zhang et al. Occurrence assessment of earth fissure based on genetic algorithms and artificial neural networks in Su-Xi-Chang land subsidence area, China
Santhosh et al. A hybrid differential evolution algorithm approach towards assisted history matching and uncertainty quantification for reservoir models
Wang et al. Stochastic inversion of magnetotelluric data using deep reinforcement learning
Guo et al. Solving nonlinear soliton equations using improved physics-informed neural networks with adaptive mechanisms
Xu et al. Research and application of the transient electromagnetic method inversion technique based on particle swarm optimization algorithm
Lamuraglia et al. Application of a global–local full‐waveform inversion of Rayleigh wave to estimate the near‐surface shear wave velocity model
Xie et al. 2D magnetotelluric inversion based on ResNet
Pan et al. MT2DInv-Unet: A 2D magnetotelluric inversion method based on deep-learning technology
Rammay et al. Automated history matching using combination of adaptive neuro fuzzy system (ANFIS) and differential evolution algorithm
Jia et al. Magnetotelluric closed-loop inversion
Wang et al. Physics‐Informed Convolutional Decoder (PICD): A novel approach for direct inversion of heterogeneous subsurface flow
CN113128003A (en) Block geodetic structure-based geomagnetic disturbance ground electric field calculation method
Lelievre et al. 3D potential field inversion for wireframe surface geometry
Yin et al. A Novel Fruit Fly Optimization Algorithm with Evolution Strategy for Magnetotelluric Data Inversion

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination