The application provides a
gas concentration detection method and device,
terminal equipment and medium, comprising: obtaining an original spectrum absorption
signal of a to-be-detected gas; performing filtering and
smoothing processing on the original spectrum absorption
signal, and extracting an upper envelope line of the processed
signal; identifying a gas non-absorption
wave band in the upper envelope line, calculating a reference amplitude value according to the maximum value and the minimum value of the envelope line in the gas non-absorption
wave band; constructing a baseline according to the reference amplitude value, and determining a target gas absorption segment on the upper envelope line by using the baseline; taking the length of the target gas absorption segment as a concentration inversion characteristic value representing the gas absorption intensity, and detecting the
gas concentration of the to-be-detected gas based on a pre-constructed concentration inversion model and the concentration inversion characteristic value. The application can improve the accuracy of
gas concentration measurement.