The present invention discloses a method for constructing a gas leakage
infrared imaging data set based on computational fluid dynamics, which belongs to the technical field of gas leakage detection and prevention and control, and specifically comprises the following steps: establishing a three-dimensional
physical model of a gas leakage field scene, simulating it based on the principle of computational fluid dynamics after grid division, obtaining the
mole fraction of the leaked gas of each grid under the
time step, and forming the three-dimensional
gas concentration data corresponding to each frame; using optical gas imaging based on a
pinhole camera model, the three-dimensional
gas concentration data is imaged and processed into an initial image, and the
gas concentration path length corresponding to each pixel point in each frame of the initial image is calculated, and after normalization to the maximum and minimum values, each frame of
grayscale image is synthesized, thereby constructing a gas leakage
infrared imaging data set. The present invention is not only used for leakage classification tasks and positioning tasks, but also for training tasks related to leakage concentration. The synthesized
grayscale image is more reliable and authentic, which solves the problem of the small number of public data sets for gas leakage
infrared imaging and significantly reduces the cost of
data set production.