The invention relates to the technical field of gas detection, and provides a doped
gas concentration detection method and
system based on a
gas analyzer. The method comprises the following steps: constructing a standard spectrum
database under the same pressure and temperature as a to-be-measured site; the method comprises the following steps: introducing sample gas into an optical
absorption cell, carrying out
wavelength scanning through a tunable
diode laser in a plurality of adjacent absorption
spectral line intervals containing target gas and interference gas, superposing a high-frequency
sinusoidal modulation signal on a
driving current, and synchronously detecting a second
harmonic component of transmission
laser to generate an actual measurement spectrum; fitting the actually measured spectrum with a
synthetic spectrum generated on the basis of a standard spectrum
database, and outputting a target
gas concentration ratio as a detection result when a residual error meets a threshold value, so as to solve the technical problem that the detection precision is reduced due to spectrum overlapping caused by interference gas, and achieve the purpose that the detection precision is reduced by constructing the standard spectrum
database and second
harmonic spectrum fitting analysis. And the accuracy and the anti-interference capability of gas detection are improved.