The purpose of this study is to put forward a feature extraction and pattern recognition method for the flow noise signal of natural gas pipelines in view of the complex situation brought by the rapid development and expansion of urban natural gas infrastructure in China, especially in the case that there are active and abandoned pipelines, metal and nonmetal pipelines, and natural gas, water and power pipelines coexist in the underground of the city. Because the underground situation is unknown, gas leakage incidents caused by natural gas pipeline rupture occur from time to time, posing a threat to personal safety. Therefore, the motivation of this study is to provide a feasible method to accelerate the aging, renewal and transformation of urban natural gas pipelines to ensure the safe operation of urban natural gas pipeline network and promote the high-quality development of urban economy. Through the combination of experimental test and numerical simulation, this study establishes a database of urban natural gas pipeline flow noise signals, and uses principal component analysis (PCA) to extract the characteristics of flow noise signals, and develops a mathematical model for feature extraction. Then, a classification and recognition model based on backpropagation neural network (BPNN) is constructed, which realizes the detection and recognition of convective noise signals. The research results show that the theoretical method based on acoustic feature analysis provides guidance for the orderly and safe construction of urban natural gas pipeline network and ensures its safe operation. The research conclusion shows that through the simulation analysis of 75 groups of gas pipeline flow noise under different working conditions. Combined with the experimental verification of ground flow noise signals, the feature extraction and pattern recognition method proposed in this study has a recognition accuracy of up to 97% under strong noise background, which confirms the accuracy of numerical simulation and provides theoretical basis and technical support for the detection and recognition of urban gas pipeline flow noise.