Skip to main content
. 2024 Sep 1;24(17):5697. doi: 10.3390/s24175697
Algorithm 1: A 3D gravity inversion method based on the attention fusion mechanism
Input: Training data pair {d}p=1P, {m}p=1P, Batch size bs, Learning rate η
Initialization: weight W(t), offset b(t), t=0
Repeat: for s=1 : P//bs or P//bs+1
       loss=0 for i=1 : bss
      (1) Forward propagation
      Encoding
       for j=1 : 4
         dji RELU(BN(W2j1tdj1i+b2j1t))
         cj RELU(BN(W2jtdji+b2jt))
         dji Downsamplingcj with Dropout(0.2)
        d5i RELU(BN(W9td4i+b9t))
        d5i RELU(BN(W10td5i+b10t))
       Decoding
        for j=4 :1 : 1
           dji Upsamplingdj+1i with Dropout(0.2)
           aj RELU(BN(W243jtAFF( dji, cj )+b243jt))
           aj RELU(BN(W253jtaj+b253jt))
           dji Sigmoid(MSCAM(aj))
          m^i RELU(AFF(d1i, d2i, d3i, d4i, d5i))
          loss loss+Li(m^i, mi)
      (2) Back propagation
          W(t+1) Wt+Adam(η, loss/bss)
          b(t+1) bt+Adam(η, loss/bss)
Until the neural network converges
The gravity anomaly data of the area to be reconstructed are input d, and the reconstructed model m^ is predicted.