The invention belongs to the technical field of emergency processing of environmental engineering, and particularly relates to a pipe explosion pre-warning method based on metering zone flow monitoring data. The method comprises the steps of collecting flow data for forming a historical data matrix and performing a pipe explosion simulation experiment to obtain pipe explosion data for forming a test matrix; presetting an initialization parameter k1 and an abnormal value detection parameter k2, performing clustering analysis on the historical data matrix, removing abnormal vectors, generating an initialization matrix, forming a detection matrix by the initialization matrix and test vectors, performing clustering analysis on the detection matrix, removing abnormal test vectors, performing difference operation for the vectors and mean vectors of the detection matrix, and if each difference value is greater than zero or less than zero, not giving a pipe explosion pre-warning, otherwise, giving the pipe explosion pre-warning; and computing a missing alarm rate and a false alarm rate, adjusting the preset initialization parameter and the preset abnormal value detection parameter until optimal missing alarm rate and false alarm rate are obtained, and applying the optimal missing alarm rate and false alarm rate to real-time pipe explosion pre-warning. The pre-warning can be accurately given during pipe explosion or leakage, the hardware cost is low, and the pre-warning effect is ideal.