The present application belongs to the technical field of oil and gas medium detection, and provides a self-calibration real-time accurate detection method and
system for multiphase flow medium in an oil and
gas pipeline. The method comprises: immersing a detection
transmission line and a T4R calibration piece into the same detection environment; performing fluid
dielectric constant inversion to obtain a
dielectric constant inversion result, which is used for
component analysis; and using an optimized frequency diversity sensing method to realize accurate positioning of foreign matters in the pipeline. The
system comprises a calibration and sensing unit and a
signal processing and
control unit. The present application calibrates the measurement data of the detection
transmission line and the offset reflection calibration piece by introducing a T4R calibration method, uses the calibrated measurement data of the detection
transmission line and the offset reflection calibration piece for
dielectric inversion, analyzes the fluid components, and the
component analysis accuracy and stability are better; the calibrated measurement data of the detection transmission line is used to improve the frequency diversity sensing method, so that the dependence on
prior information is eliminated, and
foreign matter positioning in a packaged scene is realized.