The invention relates to the technical field of safety detection, in particular to a
hydrogen-doped
natural gas safety detection method and
system based on
data analysis, and the method comprises the following steps: analyzing the
light intensity change trend of a measurement channel based on the
spectral transmittance data in a
hydrogen-doped
natural gas transmission and distribution pipeline, calculating the
spectral transmission variable quantity corresponding to an
optical path, and calculating the
spectral transmission variable quantity; and screening
light energy attenuation characteristics corresponding to the
optical path to obtain spectral attenuation characteristic data. According to the invention, the
spectral transmittance data is deeply analyzed, the
measurement precision of
light intensity change and
light energy attenuation is improved, the accuracy of spectral attenuation characteristic data is enhanced, and the spectral
attenuation curve is optimized and the measurement stability is improved by combining short and long
optical path transmission information and identification of differential
hydrogen mixing proportions; spectrum data are dynamically corrected by using an offset model, the
kinetic energy and the flowing direction of leaked gas are accurately analyzed, the
diffusion path of a leakage point is extracted, the safety assessment process is optimized, and the timeliness and the effectiveness of risk early warning are improved.