The invention discloses a stress detection method and device for a pipeline and a medium, and relates to the technical field of
structural health monitoring, and the method comprises the steps: collecting the geometric dimensions and material parameters of the pipeline, building a digital twin model, completing the zero calibration and
residual strain baseline setting, and obtaining a parameter baseline set; performing synchronization,
noise filtering and restoration on the multi-source
observation data by using the parameter baseline set to generate a data frame with a quality mark; the initial calculation stress is obtained based on temperature compensation and residual correction, the initial calculation stress is compared with a digital twin model to recognize the load and disturbance, corrected stress is obtained, the corrected stress and the initial calculation stress are subjected to fusion
estimation, and a fusion stress result and uncertainty are output; risk indexes are calculated and graded according to the stress anomaly and the
acoustic emission event, residual life and maintenance suggestions are given, and an audit
record is formed. According to the invention, synchronization,
noise filtering and deletion repairing are carried out on the multi-source
observation data based on the parameter baseline set, so that high reliability of stress detection data and improvement of anti-interference capability are realized.