A new method for identifying gas pipeline leaks using an ultra-weak fiber Bragg grating (UWFBG) distributed acoustic sensing (DAS) system is proposed. To enhance the accuracy of gas leakage detection, an improved convolutional neural network (CNN) incorporating a two-dimensional structure based on the squeeze-and-excitation (SE) attention mechanism was introduced. The principle of acoustic leakage sensing using this technology is explained in detail, and an experimental setup simulating gas pipeline leaks is constructed. During this process, 9,340 DAS data points across varying leakage volumes and pipeline pressures were collected to create ten distinct datasets. The Mel-frequency cepstral coefficients (MFCC) are employed as the feature input for the optimized SE-2DCNN model, which performs identification tasks. The results show that this optimized model achieves an average leakage identification accuracy of 95.33%, demonstrating superior performance over other methods. This approach offers a robust reference for accurately detecting gas pipeline leakages.