The invention discloses a
natural gas leakage quantification method based on a double-
branch neural network, and the method comprises the steps: S1, loading original
monitoring data, extracting basic features, constructing
time sequence features based on the basic features and derivative features, and carrying out the
standardization processing of the
time sequence features; s2, dividing the
time sequence characteristics into small flow data and conventional flow data by taking
leakage flow 0.1 m < 3 > / h as a threshold value, and dividing the small flow data and the conventional flow data into a
training set, a
verification set and a
test set; s3, constructing a double-
branch neural
network model; s4, formulating a training strategy, designing a
loss function, performing performance
verification on the model, and taking the finally stored model as an optimal model after training is finished; and S5, inputting
test set data into the model, obtaining a
leakage flow prediction value, calculating an evaluation index, verifying the performance of the model on the
test set, and confirming the effectiveness and generalization ability of the model. According to the method, accurate prediction from
data monitoring to
leakage flow is realized, and the method is high in quantification capability, good in stability and high in generalization capability especially for small-flow leakage.