The invention discloses a magnetic 
resonance sounding 
signal sparse denoising method based on 
particle swarm optimization. The method is mainly used for 
processing the 
power frequency harmonic interference and the random 
white noise in magnetic 
resonance signals. The method comprises the steps of firstly, preprocessing the MRS signals collected by a magnetic 
resonance sounding water exploration instrument in a band-pass filtering mode, obtaining the 
power frequency harmonic interference contained in the collected signals and the frequency of the MRS signals through 
frequency spectrum analysis,and constructing the oscillation atom libraries for the MRS signals and the 
power frequency harmonic noise characteristics respectively; secondly, recording an individual extremum and a 
population extremum by adopting a 
particle swarm algorithm to update the speed and the position of each particle in the particle swarm, and selecting an optimal atom from a power frequency harmonic oscillation atom 
library to reconstruct the power frequency so as to remove 
harmonic interference; and finally, selecting an optimal atom from the MRS 
signal oscillation atom 
library by using a 
particle swarm algorithm to reconstruct the MRS 
signal, if the MRS signal does not meet the experimental requirements, calculating a residual 
error signal, and repeatedly iterating until the condition is met. According tothe method, a novel atom 
library for the MRS signal is constructed, the power frequency 
harmonic interference and the random 
white noise in the 
noise-containing MRS signal are effectively filtered, and compared with a traditional MRS signal denoising method, the method has the advantages of being fast in operation speed, high in precision, strong in practicability and the like.