The invention provides an anti-interference detection method and
system for a
methane gas sensor in a complex environment, a storage medium and a program product, and relates to the technical field of gas detection. A
methane gas sensor is used for acquiring an original value of
methane concentration, and a multi-
wavelength spectrum analyzer is used for acquiring a
mixed spectrum containing methane and interference gas information. An interference coefficient
library is utilized, the interference coefficient
library comprises the interference coefficient of each interference gas to the methane sensor and a standard multi-
wavelength spectrum, and the interference gas with the maximum contribution can be matched and recognized according to spectral characteristics. After the concentration is determined, the interference value is obtained by multiplying the interference coefficient, the interference value is accumulated, the corresponding scaled standard multi-
wavelength spectrum is subtracted from the residual spectrum to update the residual spectrum, and the interference gas influence is stripped circularly. The method does not need to depend on easily-lost filtering or adsorbing materials, the problems of cost and
workload increase caused by regular replacement due to material performance reduction are avoided, meanwhile, complex environment interference gas can be effectively dealt with, and high-precision and reliable methane concentration detection is achieved.