The invention discloses a detection method of an ocean
magnetic field sensor based on
a diamond NV color center. The detection method comprises the following steps: S1, calibrating a
base line; s2, alternately measuring
fluorescence between two single
quantum resonance frequencies, and obtaining a difference to realize DQ reading; s3, three-axis compensation current is adjusted based on closed-
loop control, and the NV working point is maintained at zero
magnetization bias; s4, obtaining background
magnetic field change through
digital demodulation and adaptive filtering; and S5, calculating a gradient based on the
spatial difference of the multi-
point light spots, judging the existence and trajectory of the
underwater vehicle in combination with a threshold value and a spectrum matching method, calibrating the threshold value according to the
magnetic field characteristics of the existing
underwater vehicle, adopting short-time
Fourier transform signal spectrum, comparing the threshold value with known
submarine characteristic spectrum data, and prompting if the similarity exceeds a set threshold value. According to the detection method, the
measurement precision and the anti-interference capability can be improved, and the method is suitable for real-time monitoring of weak magnetic anomalies (such as
magnetic moment disturbance of an
underwater vehicle).