For the detection of underwater moving target with constant speed at low signal-to-noise ratio (SNR), a track-before-detect method is proposed based on motion parameters estimation and hidden Markov model (HMM). Optimization algorithm is used for the moving target motion parameter estimation with cost function obtained by energy accumulation along line spectrum tracked with 1-D Hidden Markov model in spatially filtered LOFAR spectrum. This method is suitable for detecting weak targets with fast changes in azimuth.