Algorithm 1 Adaptive Weight DBN Based HSI Anomaly Detection |
2: ← Training via gradient descent with X 3: (C, R) ← EncodeDecode() 4: for j = 1 to do 5: ← from C following Section 3.3 6: ← from R following Section 3.3 7: for to do 8: ← Equation (9) and Equation (10) with 9: i ← 10: end for 11: ← Equation (7) by using and 12: j ← 13: end for 14: return 15: end function 16: 17: function EncodeDecode() 18: Initialize the from 19: for j = 1 to do 20: x ← one pixel from X 21: Encode x with 22: ← output of middle layer of 23: ← decode with 24: ← Equation (5) with and x 25: j ← 26: end for 27: return R and C 28: end function |