The invention relates to the technical field of
edge computing, in particular to a gas flowmeter real-time fault diagnosis method based on
edge computing, which comprises the following steps: continuously acquiring gas flow, pipeline pressure and medium temperature data at an
edge node, updating an exponential weighted
moving average value at the previous moment by adopting a preset
weight coefficient, and calculating the fault of a gas flowmeter according to the exponential weighted
moving average value; and calculating a difference value between the currently acquired data and the updated
exponentially weighted moving average value, accumulating the difference value to a preorder accumulated sum to form a statistical control quantity, and carrying out numerical comparison on the statistical control quantity and an early warning line constructed according to a historical
data standard deviation. According to the method, the hierarchical calculation and state transition strategy is executed at the edge nodes,
energy consumption is optimized, the method operates in a monitoring state with extremely low
power consumption in most of time, lightweight statistic accumulation and comparison are only performed on gas flow, pipeline pressure and medium temperature data, and
energy consumption is reduced. According to the design, the high-power-consumption deep analysis task is strictly limited at the necessary moment when the statistics deviate from the early warning line in the early stage.