A pressure regulator cutout valve status monitoring control system and method

By synchronously acquiring signals and generating event anchors under a unified clock, a table relationship and causal sequence are constructed, which solves the problem of cross-device event alignment and semantic mutual verification when shut-off valves and pressure regulating devices are operating in combination in gas pressure regulating stations, thus ensuring the safe and efficient operation of the gas supply process.

CN121069854BActive Publication Date: 2026-02-03NEW ERA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511604315.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-05
Publication Date
2026-02-03
Estimated Expiration
2045-11-05

AI Technical Summary

Technical Problem

In urban gas pressure regulating stations, when the shut-off valve and pressure regulating device are used in combination, the existing technology lacks cross-device event alignment and semantic mutual verification, which leads to slight oscillation or leakage downstream after upstream shut-off or reset. The monitoring end misjudges the overall status, causing repeated tripping and false reset.

Method used

By synchronously acquiring the on/off status identifiers before the valve, the pressure sequence after the valve, and the diaphragm displacement sequence under a unified clock, time anchor points for locking events, unlocking and return events, and bypass opening and closing events are generated. A table relationship and causal sequence are constructed, an instruction arbitration request is output, and consistency comparison is corrected within the reset window to update the delayed reset strategy.

Benefits of technology

It achieves time-series alignment and semantic mutual verification of cross-device data on valve on/off, valve downstream pressure and diaphragm displacement, eliminates downstream swing misjudgment caused by upstream lockout or reset, avoids repeated tripping and mishandling, and improves the monitoring and control accuracy, stability and adaptability of gas pressure regulating stations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121069854B_ABST
    Figure CN121069854B_ABST
Patent Text Reader

Abstract

The application discloses a kind of governor cutout valve state monitoring control system and method, specifically related to gas pressure regulating equipment monitoring field, for solving the problems that existing monitoring lacks cross-device event alignment and semantic mutual proof, leading to downstream swing misjudgment after upstream lockout or reset and remote command interference, is through the technical scheme of unified clock synchronization acquisition valve front on-off state identifier, valve rear pressure sequence and diaphragm displacement sequence, generates the time anchor point of lockout event, release position event and bypass opening and closing event, mapping sequence generates pair table relationship and causal sequence, constructs state semantics and outputs arbitration request, executes delay reset write window mark, and the technical scheme is realized in the initial stage of commissioning comparison correction, to avoid misjudgment, improve accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of gas pressure regulating equipment monitoring, more particularly, to a pressure regulator cut-off valve state monitoring control system and method. BACKGROUND

[0002] The cut-off valve and pressure regulating device are commonly combined to operate in the town gas pressure regulating station, and the out-of-limit protection is first acted by the cut-off valve, and the gas supply is restored after resetting. The position indication, travel contact, diaphragm displacement and relief are mainly used as the basis for the on-site and remote end, the sources belong to different parts, the triggering mechanism and action link are not the same, and the collection and uploading rhythm are not consistent. Once the upstream is first locked and then reset, the downstream may still have slight swing or short relief in a short time. If only one side reading is observed at the monitoring end, the overall state will be deviated by the local phenomenon, and the judgment of the on-duty and remote end will be made accordingly, which is easy to conflict with the on-site operation rhythm.

[0003] The existing technology mainly constructs event identification and alarm rules on the pressure regulating device side, lacks time table and semantic mutual verification of the whole process of cut-off valve locking and resetting, and the position signal is difficult to reflect whether the locking and sealing are truly established, and the cause-effect chain across the devices is broken at the key nodes. As a result, the upstream has been cut off or is being reset, and the downstream gives similar abnormal signs, the monitoring end misreads it as a problem of the pressure regulating link, and the remote end will issue concurrent instructions in the reset window, which interferes with the on-site operation, and induces repeated tripping and misresetting.

[0004] In order to solve the above problems, a technical scheme is provided. SUMMARY

[0005] In order to overcome the above-mentioned defects of the prior art, the embodiments of the present application provide a pressure regulator cut-off valve state monitoring control system and method, which synchronously collects the valve front on-off state identifier, valve rear pressure sequence and diaphragm displacement sequence under a unified clock, generates time anchor points of locking event, unlocking and resetting event and bypass opening and closing event, maps the sequence to the unified clock to generate the corresponding relationship and cause-effect sequence, constructs state semantics based on the corresponding relationship and outputs instruction arbitration request, executes delayed reset and writes reset window mark when the cause-effect sequence points to the upstream cut-off to cause downstream swing, reads real-time sequence during the initial investment and restoration to compare the corresponding relationship and reset window mark, corrects the unified clock and event mapping if there is deviation, and updates the delayed reset strategy gear and state semantics display order according to the repeated mode, so as to solve the problems in the background art.

[0006] To achieve the above object, the present application provides the following technical scheme:

[0007] A pressure regulator cut-off valve state monitoring control method, comprising the steps of:

[0008] Synchronously collect the valve front on-off state identifier, the valve rear pressure sequence and the diaphragm displacement sequence under the unified clock, and generate the time anchor points of the lockout event, the trip reset event and the bypass opening and closing event;

[0009] Map the valve rear pressure sequence and the diaphragm displacement sequence to the unified clock with the lockout event, the trip reset event and the bypass opening and closing event as anchors, generate the cause and effect sequence and the corresponding table relationship, and publish the corresponding table relationship;

[0010] Generate the state semantics based on the corresponding table relationship, distinguish the trip outage, the over-limit cut-off and the reset operation, and the restart operation, and output the instruction arbitration request when the over-limit cut-off or the reset operation is detected;

[0011] When the cause and effect sequence points to the upstream cut-off to cause the downstream swing, perform the delayed reset, write the reset window mark in the interval from the bypass opening to the bypass closing, and publish the process state and the reset window mark;

[0012] Read the real-time valve front on-off state identifier, the valve rear pressure sequence and the diaphragm displacement sequence at the initial stage of the restart operation, compare the consistency with the corresponding table relationship and the reset window mark, correct the unified clock and the event mapping if there is a deviation, and update the delayed reset strategy gear and the state semantics display order according to the repeated mode.

[0013] In a preferred embodiment, the lockout event is extracted from the steady-state to the break state mutation of the valve front on-off state identifier, the three conditions of the mutation amplitude reaching a threshold, the duration meeting and the before and after state being stable are determined, the time anchor point is defined as the mutation start time stamp, and the event table is written.

[0014] In a preferred embodiment, the trip reset event is identified according to the stroke regression track of the diaphragm displacement sequence, the determination rule is that the displacement direction continuously regresses from outward to inward, the regression speed first rises and then slows down, and the valve front on-off state identifier remains from break to on stable transition at the termination time, and the termination time is written into the trip reset event time anchor point.

[0015] In a preferred embodiment, the bypass opening and closing event is identified from the small leakage back-charging form of the valve rear pressure sequence, the bypass opening is that the pressure slope changes from near zero to gentle decline with low amplitude vibration, the bypass closing is that the slope changes from decline to gentle rise with vibration disappearing, and the corresponding time stamp is written into the bypass opening and closing event time anchor point.

[0016] In a preferred embodiment, the valve rear pressure sequence and the diaphragm displacement sequence are mapped to the unified clock with the lockout event time anchor point, the trip reset event time anchor point and the bypass opening and closing event time anchor point as the segment boundaries, the phase of the two sequences in each segment is matched by using the slip searching, and the slip amount is selected to make the total amount of the form difference of the two sequences reach the minimum.

[0017] In a preferred embodiment, the table relationship includes segment number, slip direction, slip amount sequence and boundary consistency mark. Events are connected in sequence according to the table relationship to form a causal sequence of lock-in first, bypass open, detangle return, bypass closed and reoperation. A phase lag description and morphological consistency mark are given for each adjacent event pair.

[0018] In a preferred embodiment, state semantics are constructed based on the table relationship and causal sequence. The command interruption judgment condition is that there is a superior command record and the lockout event is missing, and the downstream pressure sequence and diaphragm displacement sequence show a controlled decrease. The over-limit cutoff judgment condition is that the lockout event exists and the downstream pressure sequence shows an over-limit approaching pattern before lockout and a rapid drop and stabilization after lockout.

[0019] In a preferred embodiment, the reset determination condition is that the bypass opening and detangle return are in progress, and the bypass opening-detangle return-bypass closing link in the causal sequence is not completed. The restart determination condition is that the detangle return is completed, the bypass is closed, and the valve on / off status indicator is stable as on. When the status semantics enter the over-limit cut-off or reset process, an instruction arbitration request is generated. The arbitration request carries the blocking range, unblocking conditions, and remaining time prompt.

[0020] In a preferred embodiment, when the causal sequence shows a lock-up first and the downstream pressure sequence and diaphragm displacement sequence show a downstream swing caused by upstream cut-off, a delayed reset strategy is initiated. The delay length adopts a pre-set fixed level, and the level selection refers to the historical repeating mode label. The bypass opening time is recorded when the delay starts, and the reset window mark is written when the bypass closing time arrives.

[0021] A regulator shut-off valve status monitoring and control system includes:

[0022] Data acquisition module: Synchronously acquires valve inlet / outlet status indicators, valve outlet pressure sequence, and diaphragm displacement sequence under a unified clock;

[0023] Event Anchor Module: Generates time anchors for locking events, unlocking and return events, and bypass opening and closing events;

[0024] Sequence mapping module: Using the latching event, unlocking return event, and bypass opening / closing event as anchors, the valve downstream pressure sequence and diaphragm displacement sequence are mapped to a unified clock;

[0025] Relationship generation module: Generates table relationships and causal sequences from trigger to reset, and publishes the table relationships;

[0026] Semantic construction module: Generates state semantics based on table relationships, distinguishing between command-driven supply interruption and over-limit cutoff and reset and re-commissioning;

[0027] Arbitration output module: Outputs an arbitration request when an over-limit cutoff or reset is detected;

[0028] Delayed reset module: Executes delayed reset when the causal sequence points to an upstream cutoff that triggers downstream oscillation;

[0029] The marker writing module writes the reset window marker over the interval from bypass to bypass, and simultaneously publishes the process state and the reset window marker.

[0030] Consistency Comparison Module: In the initial stage of operation, read the real-time valve inlet / outlet status identifier, valve outlet pressure sequence and diaphragm displacement sequence, and complete the consistency comparison by comparing the table relationship and reset window mark;

[0031] Correction and update module: If a deviation occurs, it corrects the unified clock and event mapping, and updates the delay reset strategy level and the order of status semantic display according to the repetition pattern.

[0032] The technical effects and advantages of the pressure regulator shut-off valve status monitoring and control system and method of the present invention are as follows:

[0033] This invention achieves temporal alignment and semantic verification of cross-device data for valve on / off states, valve pressure, and diaphragm displacement through a complete set of technical logics, including unified clock signal synchronization acquisition and event anchor point generation, sequence mapping to form a table relationship and causal sequence, state semantic construction and output of arbitration requests, delayed reset writing of window markers, and consistency comparison and correction updates during the initial re-commissioning phase. This establishes a traceable causal link, effectively eliminates downstream swing misjudgments and remote command interference caused by upstream lockout or reset, avoids repeated tripping and mishandling, improves the accuracy, stability, and adaptability of overall monitoring and control of urban gas pressure regulating stations, and ensures the safe and efficient operation of the gas supply process. Attached Figure Description

[0034] Figure 1 This is a flowchart illustrating a pressure regulator shut-off valve status monitoring and control method according to the present invention.

[0035] Figure 2 This is a schematic diagram of the structure of a pressure regulator shut-off valve status monitoring and control system according to the present invention. Detailed Implementation

[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0037] Example 1: Figure 1This invention provides a method for monitoring and controlling the status of a pressure regulator shut-off valve, comprising:

[0038] S1: Synchronously acquire the on / off status identifiers before the valve, the pressure sequence after the valve, and the diaphragm displacement sequence under a unified clock, and generate time anchor points for the interlocking event, the release and return event, and the bypass opening and closing event.

[0039] A unified clock and timestamp recording unit is established, with the valve on / off state identifier, valve downstream pressure sequence, and diaphragm displacement sequence entering the buffer on the same time axis. Lockout events are extracted from the abrupt change from steady-state to off-state of the valve on / off state identifier, using a three-condition judgment: "the abrupt change amplitude reaches the threshold, the duration is satisfied, and the states before and after are stable." The timestamp is written into the event table as the time anchor point for the lockout event. Unlocking and repositioning events are identified based on the stroke regression trajectory of the diaphragm displacement sequence. The judgment rule is: "the displacement direction undergoes a continuous regression from outward to inward, the regression speed first increases and then slows down, and at termination, the valve on / off state maintains a stable transition from off to on." The termination time is written into the unlocking and repositioning event time anchor point. Bypass opening and closing events are identified from the slight release-recharge pattern of the valve downstream pressure sequence. Bypass opening is characterized by the pressure slope changing from near zero to a gradual decrease accompanied by low-amplitude vibration; bypass closing is characterized by the slope changing from a decrease to a gradual increase and the vibration disappearing. The corresponding timestamps are written into the bypass opening and closing event time anchor point. The three types of anchor points share a unified clock, forming a dual index of "event table - signal table" to support subsequent alignment and verification.

[0040] S2: Using the latching event, the unlocking return event, and the bypass opening / closing event as anchors, the valve downstream pressure sequence and the diaphragm displacement sequence are mapped to a unified clock, generating a table relationship and causal sequence from trigger to reset, and publishing the table relationship.

[0041] Using three types of time anchor points—locking, deactivation, and bypass opening / closing—as segment boundaries, the downstream pressure sequence and diaphragm displacement sequence are mapped to a unified clock. A "slip search" method is employed to register the phases of the two sequences within each segment. The slip amount is selected to minimize the total morphological difference between the two sequences, resulting in a table relationship. This table relationship includes segment number, slip direction, slip amount sequence, and boundary consistency marker. Events are sequentially linked according to the table relationship to form a causal sequence of "locking first, bypass opening, deactivation, bypass closing, and reactivation." A phase lag description and morphological consistency marker are provided for each adjacent event pair. The table relationship is published as a structured object, containing a unified clock reference and an event table reference, for direct reading by state semantic generation and short-term verification.

[0042] S3: Generate state semantics based on table relationships, distinguish between command supply interruption and over-limit cut-off and reset and re-operation, and output command arbitration request when over-limit cut-off or reset is detected.

[0043] Based on the table relationships and causal sequences, the following state semantics are constructed: Command Disconnection, Limit-Overturning Cutoff, Reset in Progress, and Re-operation. The criteria for Command Disconnection are the existence of a superior command record and the absence of a locking event, along with a controlled decrease in the downstream pressure sequence and diaphragm displacement sequence. The criteria for Limit-Overturning Cutoff are the existence of a locking event and the downstream pressure sequence exhibiting a limit-overturning approach pattern before locking, followed by a rapid drop and stabilization after locking. The criteria for Reset in Progress are that bypass opening and tripping are in progress, and the "bypass opening—tripping—bypass closing" link in the causal sequence is incomplete. The criteria for Re-operation are that tripping is complete, bypass is closed, and the upstream on / off status indicator is stable as "on". Once the state semantics enter "Limit-Overturning Cutoff" or "Reset in Progress", a command arbitration request is generated. The arbitration request carries the blocking range, unlocking conditions, and remaining time indication, used for remote switching command shielding and concurrent operation restrictions.

[0044] S4: When the causal sequence points to the upstream cutoff causing the downstream swing, a delayed reset is performed, and the reset window flag is written in the interval from bypass opening to bypass closing. At the same time, the process state and the reset window flag are published.

[0045] When the causal sequence exhibits a "lock-in first" condition and the downstream pressure sequence and diaphragm displacement sequence show downstream oscillations caused by upstream cut-off, a delayed reset strategy is initiated. The delay length uses a pre-set fixed level, with the level selection referencing historical repetition pattern labels. At the start of the delay, the bypass opening time is recorded; when the bypass closing time arrives, a reset window marker is written. The reset window marker includes the start and end times, corresponding event pairs, and a description of local phase lag. The process state and reset window marker are published through the monitoring channel to restrict concurrent remote switching commands during the reset window period, until the window ends and is unblocked. During the execution of the delay strategy, the regression patterns of the downstream pressure sequence and diaphragm displacement sequence are continuously monitored. If the regression fails to meet the stability criterion, the process state is maintained and the blockage remains until the criterion is met.

[0046] S5: During the initial stage of re-commissioning, read the real-time valve inlet / outlet status identifier, valve outlet pressure sequence, and diaphragm displacement sequence. Compare the consistency with the table relationship and reset window mark. If a deviation occurs, correct the unified clock and event mapping, and update the delay reset strategy level and status semantic display order according to the repetition mode.

[0047] During the initial restart, the real-time on / off status indicators, downstream pressure sequences, and diaphragm displacement sequences of the valve are read and compared against the table of relationships and the reset window markers. The consistency comparison includes three types of checks: first, sequential consistency, checking whether the event sequence of "lock-bypass opening-unlock return-bypass closing-restart" strictly matches; second, temporal consistency, checking whether the event time difference is consistent with the direction and magnitude of the slip in the table of relationships; and third, morphological consistency, checking whether the downstream pressure sequence and diaphragm displacement sequence exhibit regression stability within the window and a smooth response with load outside the window. If a deviation occurs, a unified clock offset correction is performed, i.e., the reference zero point is repositioned based on the densest event cluster in the event table; simultaneously, an event mapping order correction is performed, i.e., adjacent event pairs are reassigned according to morphological consistency priority without changing the event timestamps. After the calibration is completed, the repeating mode label during the runtime is read. If a certain level obtains a stable criterion in multiple reset windows, the delayed reset strategy level is updated to that level. If the process state is confusing in the display, the order of state semantic display is adjusted, and the semantics with higher processing priority are placed first.

[0048] In urban gas pressure regulating stations, when the shut-off valve and pressure regulating device are used in combination, the over-limit protection often involves the shut-off valve cutting off the gas supply first, and then restoring the gas supply after resetting. On-site and remote monitoring rely on position indications, stroke contacts, diaphragm displacement and venting actions as the basis. These sources belong to different parts, and their triggering mechanisms, action links and data acquisition and uploading rhythms are inconsistent. This can lead to slight swings or short-term venting downstream after upstream blocking or resetting. If the monitoring end relies on only one side of the reading, it is easy to misjudge the overall status, causing conflicts between duty judgment and on-site handling, as well as interference from remote commands.

[0049] The above reveals the shortcomings of existing monitoring methods in cross-device event alignment and semantic mutual verification, leading to frequent misjudgments and mishandling. Step S1 establishes a unified clock and timestamp recording unit to realize the synchronous acquisition and event anchor point generation of valve inlet / outlet status identifier, valve outlet pressure sequence, and diaphragm displacement sequence, providing a traceable basic data structure for the alignment relationship and causal sequence of subsequent steps.

[0050] The specific processing logic of step S1:

[0051] Step S1.1: Establish a unified clock and timestamp recording unit.

[0052] The unified clock employs an atomic clock synchronization mechanism, using the Global Positioning System (GPS) or Network Time Protocol (NTP) to align the clocks of all acquisition devices. This ensures that the valve on / off status indicators, valve pressure sequences, and diaphragm displacement sequences are recorded within a single time reference frame, thus avoiding signal asynchrony issues caused by clock drift between devices. The timestamp recording unit assigns a timestamp to each signal sample. ,in Representing the sample index, this timestamp is generated based on a unified clock, marking each sampling point with millisecond-level precision; the valve on / off status identifier is defined as a binary sequence. ,in The corresponding normal state indicates unobstructed gas flow. The corresponding off-state indicates that the gas flow is cut off; the downstream pressure sequence is defined as a continuous value sequence. The value is expressed in Pascals, reflecting the real-time change in downstream gas pressure; the diaphragm displacement sequence is defined as a continuous value sequence. The values, measured in millimeters, represent the offset of the membrane relative to a preset reference position. These sequences are acquired directly by sensors during the acquisition process and immediately timestamped and added to a buffer at a unified clock. This buffer is designed with a ring structure to support efficient real-time data storage and retrieval, and its capacity is set to the most recent N samples, where N is pre-configured based on the sampling rate and system memory resources to ensure the availability of short-term historical data. The acquisition frequency is uniformly set to fHz to ensure the time interval between adjacent samples. To ensure consistency and avoid analytical biases caused by inconsistent rhythms, N and f are determined using an adaptive adjustment method based on historical operational data. This involves analyzing the frequency of signal fluctuations and the density of events over a past period, calculating the average event interval, and setting N as a multiple of the event interval to cover at least one complete cycle. For example, if the average event interval is T seconds, then N can be set as an integer multiple of f multiplied by T. After processing, a signal table containing timestamps is generated. This signal table stores all sequence values ​​and their corresponding timestamps in a database format, providing a synchronous and queryable data foundation for subsequent event extraction.

[0053] Step S1.2: Extract the time anchor point of the locking event.

[0054] Lockout events are extracted from the abrupt change from steady-state to off-state indicated by the on / off state of the valve. This process first scans the binary sequence. To identify transitions from the on-state to the off-state, a combination of three conditions is used to ensure accuracy: first, the magnitude of the mutation reaches a threshold. The threshold is preset to be the full amplitude of the binary switch, i.e., the difference from 1 to 0, used to confirm the existence of a state transition; secondly, the duration must meet the following conditions. The system requires that the interrupted state be maintained for at least the specified duration to eliminate instantaneous noise; finally, the preceding and following states must be stable, requiring that the preceding state have M consecutive samples of all 1 to represent a stable on-state, and the following state have M consecutive samples of all 0 to represent a stable interrupted state, where M is preset based on the noise level to filter out random fluctuations; time anchor point Defined as the mutation start timestamp, i.e., the earliest time that meets the conditions. in This anchor point is located by sequentially traversing the sequence and applying sliding window detection; the specific determination formula is: if it is within the window... It is true, and the duration is calculated by summing the differences between adjacent timestamps. Where P is the number of continuous samples, and the entropy values ​​of the preceding and following states are lower than the noise threshold, the entropy calculation formula is: p represents the state probability, which is estimated by the sample frequency within the window to quantify stability; , The noise threshold is determined using an adaptive adjustment method based on historical operating data. This involves collecting signal samples from multiple past blocking events, calculating the average mutation amplitude and duration as initial values, and then refining the threshold through iterative optimization, such as least squares fitting of the actual event boundaries. For example, if the standard deviation of mutation amplitude in historical data is small, the threshold is tightened to improve sensitivity. After processing, the time anchor point of the blocking event is written into the event table as a reference point for upstream cutoff. This event table records the anchor point type, timestamp, and associated signal segments in a structured format, supporting the initial boundary division of subsequent causal sequences, thereby providing an accurate boundary reference for the fragmentation alignment in step S2.

[0055] Step S1.3: Extract the time anchor point of the detangle return event.

[0056] Unfastening and repositioning events are identified based on the stroke regression trajectory of the diaphragm displacement sequence. This process involves analyzing continuous value sequences. The dynamic changes are first defined by external bias as in The preset equilibrium displacement represents the normal position. Then, the displacement direction is detected to continuously regress from the outside to the inside, that is, the sequence value continuously decreases until it approaches the equilibrium position. To capture the reset process; the regression rate was calculated as The required velocity is to increase initially and then decrease, i.e., acceleration. A positive value initially indicates accelerated regression, followed by a negative value indicating deceleration and stabilization. Termination conditions include a stable transition from the off-state to the on-state, i.e., maintaining stability for Q consecutive samples from 0 to 1, where Q is preset to ensure transition reliability; time anchor points. The regression termination timestamp, i.e., satisfying and And the regression completion rate is tested through integral spectroscopy. in As the regression error threshold, this integral is approximately a summation over the discrete sequence. The total displacement regression is quantified; the entire determination is made by traversing the sequence through a sliding window, combining the sign changes of velocity and acceleration and the integral threshold to confirm the event. The determination of Q adopts an adaptive adjustment method based on historical operating data. That is, the velocity and acceleration curves are extracted from the samples of past detrap and repositioning events, the average regression error is calculated, and similar patterns are grouped by cluster analysis such as K-means. Then, a threshold is set as a multiple of the average value within the group. For example, if a group of regression errors are concentrated in a small range, the threshold is reduced accordingly to improve accuracy. The time anchor point of the detrap and repositioning event is written into the event table as the end mark of the reset process, providing a basis for the definition of the interval of the subsequent reset window, thereby ensuring that step S2 can accurately connect events to form a causal sequence.

[0057] Step S1.4: Extract the time anchor points of bypass opening and closing events

[0058] Bypass opening is characterized by the slope of the downstream pressure sequence changing from near zero to a gradual decrease accompanied by low-amplitude oscillations. This process is analyzed in continuous value sequences. First, calculate the slope. To detect a downward trend, the amplitude of the vibration is calculated using the maximum deviation within the window. in The mean value represents the fluctuation caused by the venting; bypass closure is characterized by the slope changing from a decreasing to a gradual increase. And the vibration disappears. To capture recharging stability; time anchor points include activation. The earliest satisfy and in For the decrease threshold, Vibration threshold, and off The earliest satisfy and in The threshold for the increase; the decision formula for enabling is: if the product of R consecutive samples... The condition is met and the peak value of the Fourier transform power spectrum exceeds the noise baseline, where the power spectrum is calculated as follows: Focusing on the low-frequency band to identify vibration characteristics, the method closes similar criteria but with reversed slope signs; the entire extraction process enhances robustness by sequentially scanning the sequence and applying frequency domain transformation, avoiding interference from pure time-domain noise; among which... , , The determination method adopts an adaptive adjustment method based on historical operating data. That is, the slope and vibration statistics are extracted from the pressure sequence samples of past bypass events, the median is calculated as the initial threshold, and then the boundary is optimized by classifying historical positive and negative samples through support vector machine. For example, if the classification accuracy is lower than the target, the threshold is adjusted to maximize the separation. The time anchor points of bypass opening and closing events are written into the event table as the indication points of downstream discharge, which supports the subsequent segment boundary of table relationship, thus providing a reference basis for morphological matching for the sliding search in step S2.

[0059] Step S1.5: Create a dual index for the event table and the signal table.

[0060] The three types of time anchors are the latching event time anchors. Unlocking and repositioning event time anchor point Bypass opening and closing event time anchor point and A shared clock is used to form a dual-index structure of event table and signal table. The event table records the type, timestamp, and associated signal segment ID of each anchor point in relational database format, while the signal table stores the original values ​​and timestamps of all valve on / off status identifiers, valve pressure sequences, and diaphragm displacement sequences. The dual indexes are linked through hash mapping, for example, using the event ID as a key to map to the start and end timestamps of the signal segment, thus allowing efficient queries, such as quickly retrieving the corresponding sequence segment for a given anchor point. This structure design considers query optimization, such as adding a timestamp index to support range queries, and ensures data consistency by verifying the time alignment of anchor points and sequences during writes through a transaction mechanism. The range limit for segment ID allocation is determined using an adaptive adjustment method based on historical running data, that is, analyzing the past event density to calculate the average segment length, and then setting the ID range to a multiple of the inverse of the density to avoid overflow. For example, if the density is high, the range is narrowed for finer division. The dual-index structure supports the mapping and alignment in step S2, ensuring traceability across sequences, thereby providing complete and verifiable data associations for the generation of causal sequences.

[0061] Step S1 establishes a unified clock and timestamp recording unit to achieve synchronous acquisition and buffering of valve on / off state identifiers, valve downstream pressure sequences, and diaphragm displacement sequences under a single time reference frame, ensuring the temporal consistency of the signal sequences. Subsequently, the time anchor point of the locking event is extracted from the valve on / off state identifier, and the start time stamp of the mutation is determined based on the three conditions of mutation amplitude, duration, and stability before and after the change. The time anchor point of the unwinding and return event is extracted from the diaphragm displacement sequence, and the return termination time stamp is determined based on the displacement direction regression, velocity pattern, and the valve on / off transition stability rule at the termination. The time anchor point of the bypass opening and closing event is extracted from the valve downstream pressure sequence, and the opening and closing time stamps are determined based on the slope change and vibration amplitude. Finally, a dual-index structure of event table and signal table is formed, sharing a unified clock to support subsequent alignment and verification, thereby providing traceable basic data for cross-device event table relationships and causal sequence generation.

[0062] Step S1 has completed the signal synchronization acquisition and event anchor point generation under a unified clock, providing time anchor points for locking events, unlocking and return events, and bypass opening and closing events as basic references, and ensuring data traceability through a dual-index structure of event table and signal table; Step S2 uses these time anchor points as segment boundaries to map and align the valve downstream pressure sequence and diaphragm displacement sequence, generating a table relationship and causal sequence to achieve phase registration and event concatenation across sequences, thereby providing a unified temporal causal framework for subsequent state semantic construction.

[0063] The specific processing logic of step S2:

[0064] Step S2.1: Map the sequence to a unified clock using time anchors as segment boundaries.

[0065] Locking event time anchor Unlocking and repositioning event time anchor point Bypass opening and closing event time anchor point and Used as a boundary to define the post-valve pressure sequence With diaphragm displacement sequence Mapping to a unified clock timeline begins by extracting sequence segments associated with each time anchor point from the signal table, for example, using... Extract subsequent segments from the starting boundary up to the next anchor point, such as... This ensures that the start and end timestamps of each segment strictly correspond to the event table records; the mapping uses a linear interpolation method to fill in any missing points caused by differences in sampling intervals, i.e., if the timestamps required by the unified clock are... If not in the original sequence, then calculate ,in To maintain sequence continuity and avoid temporal shifts, segment boundaries are defined as fixed window widths before and after anchor points. These widths are preset based on the event duration to cover complete dynamic changes. The window width is determined using an adaptive adjustment method based on historical data. This involves calculating the average time interval between past event anchor points and setting the width as a multiple of this interval to ensure coverage of typical processes. For example, if the average interval is a specific duration, the width is expanded accordingly to accommodate variations. Mapped sequence segments serve as the alignment basis, directly supporting subsequent sliding searches.

[0066] Step S2.2: Use a sliding search to register the phases of the two sequences.

[0067] Within each segment, the post-valve pressure sequence is registered using a slip-search method. With diaphragm displacement sequence The phase is determined by shifting one sequence point by point and calculating the morphological differences to find the best match. The slip amount is chosen to minimize the total morphological difference between the two sequences within the segment. The total morphological difference is calculated using the Dynamic Time Warped Distance (DTW) formula. ,in This represents the first i sample segments of the post-valve pressure sequence. The first j sample segments of the diaphragm displacement sequence are represented by the absolute difference. This recursive formula accumulates the minimum path cost from the sequence start point to handle nonlinear alignment, ensuring that the dimensions are consistent through pre-normalization (e.g., scaling both to the [0,1] range). The slip search iteratively tests different offsets, such as positive or negative sample shifts, until the DTW distance is minimized. The resulting slip is recorded as a sequence representing the local adjustment of each segment. Boundary consistency markers are generated by checking the alignment error between the start and end points of the segments. If the error is below a preset threshold, it is marked as consistent; otherwise, it is marked as needing correction. The threshold, such as the preset threshold for alignment error, is determined using an adaptive adjustment method based on historical running data. That is, the average DTW distance is calculated from past alignment instances, and the threshold is set as a percentage of this average to adapt to the noise level. For example, if the historical distance distribution is concentrated, the threshold is tightened to improve accuracy. The slip sequence and boundary consistency markers are integrated into a table relationship, providing a quantitative description for generating the table relationship.

[0068] Step S2.3: Generate the table relationship.

[0069] Based on the slip search results, a pairwise relationship is generated. This relationship includes a segment number (inherited from the event table, e.g., segment 1 corresponding to the time anchor point of the latching event), slip direction (positive indicates the post-valve pressure sequence is leading, negative indicates it is lagging), slip amount sequence (a list of offset sample numbers for each segment), and boundary consistency flags (binary values ​​indicating whether further verification is needed). The generation process first traverses all segments, summarizes the slip parameters, and then cross-validates compatibility with a unified clock, ensuring that the adjusted timestamp still falls within the event anchor point boundary. The pairwise relationship is organized in the form of structured objects, such as JSON- The LIKE format includes a unified clock reference (pointing to the timestamp record unit in step S1) and an event table reference (linked to a specific anchor ID) for direct reading. If any segment registration fails (e.g., the DTW distance exceeds the maximum allowable value), the segment is marked as an anomaly and logged, but the overall generation is not interrupted. The threshold, such as the maximum allowable DTW distance, is determined using an adaptive adjustment method based on historical running data. This involves analyzing the upper limit of previously successfully aligned distances and setting the threshold as the upper quantile point through quantile calculation to exclude anomalies. For example, if 90% of historical distances are below a certain value, this is used as the threshold. The table relationship serves as the core output, providing a basis for timing adjustments for causal sequence concatenation.

[0070] Step S2.4: Connect events to form a causal sequence based on the table relationships.

[0071] Based on the table relationships, events are sequentially linked in chronological order to form a causal sequence of "lock first, bypass open, deactivation and reactivation, bypass closed, and re-operation." This linking process first sorts the event anchor timestamps, such as... Then, the phase lag description between adjacent events is adjusted by applying the slip in the table relation, i.e., the adjusted time difference is calculated. ,in As an anchor point for subsequent events, As the anchor point for preceding events, For the segment slip, The sample interval is used to quantify lag. Morphological consistency markers are generated by comparing the trend matching of adjusted sequence segments; for example, if two sequences have the same slope sign, they are marked as highly consistent. Causal sequences are represented in a linked list structure, with each node containing an event pair, a phase lag description, and a morphological consistency marker, ensuring that the sequence reflects the logical chain of upstream cut-off triggering downstream response. If an order anomaly is detected in the concatenation, the sequences are reordered based on the slip direction but retain the original anchor points. The trend matching threshold is determined using an adaptive adjustment method based on historical data; that is, slope correlation coefficients are extracted from past sequence pairs, and the threshold is set as the lower limit of the coefficient to distinguish between consistency and inconsistency. For example, if the coefficient of historical consistent cases is higher than a certain value, this value is used as the threshold. Causal sequences serve as a guiding framework, providing a complete event chain description for publishing table relationships.

[0072] Step S2.5: Publish the table relationship.

[0073] The table relationships are published in the form of structured objects, including a unified clock reference, event table reference, and an integrated description of causal sequences. This publication is pushed to downstream modules through a monitoring channel to ensure real-time availability. Before publication, a final verification is performed, which verifies the consistency of all references against the signal table. If a deviation is found, the process rolls back to step S2.3 and regenerates. The published content includes fragment numbers, slip parameters, and tags for state semantic generation and short-term verification. After processing, the published table relationships support the semantic construction in step S3, ensuring the accuracy of remote command arbitration.

[0074] Step S2 establishes the basis for fragmented processing by mapping the sequence to a unified clock with time anchor points as boundaries; it employs a sliding search to register the phase and calculates the minimum morphological difference to generate sliding parameters; based on this, a table relationship is formed, including number, direction, quantity sequence, and label; events are chained according to the table relationship to construct a causal sequence and add hysteresis and consistency descriptions; finally, the table relationship is published to support subsequent semantic generation, thereby effectively integrating cross-device signals, avoiding downstream misjudgments caused by upstream cut-off, and providing a reliable temporal causal basis for reset rhythm and command arbitration, ensuring the monitoring and control stability and operational coordination of urban gas pressure regulating stations.

[0075] Step S2 generates a table of relationships and causal sequences. Through fragmented alignment and slip search, phase registration of the valve downstream pressure sequence and diaphragm displacement sequence is achieved, and events are concatenated to form a traceable time sequence chain. Step S3 builds on this basis to construct state semantics to distinguish different operating modes and outputs command arbitration requests in specific states, thereby guiding the reset rhythm and remote operation, and avoiding downstream misjudgment and concurrent command interference caused by upstream cut-off.

[0076] The specific processing logic of step S3:

[0077] Step S3.1: Construct state semantics based on the table relationship and causal sequence.

[0078] The table relations and causal sequences are directly referenced as the input basis, and the event pairs in the causal sequence are traversed, such as the latching event time anchor. With bypass activation event time anchor point By combining the slip sequence and boundary consistency markers in the table relationship, the overall dynamics of the sequence are evaluated. State semantics are constructed into four categories: command interruption, over-limit cutoff, reset in progress, and re-operation. Each category is distinguished by specific rules. The construction process involves cross-validating the phase lag description and morphological consistency markers in the table relationship to ensure that the semantics reflect the actual causal chain. If the causal sequence shows an incomplete link, semantic allocation is suspended until supplementary data is available. State semantics serve as classification labels, providing a framework for subsequent application of decision conditions and ensuring that these semantics are matched to specific conditions.

[0079] Step S3.2: Determine the semantics of the command supply interruption status.

[0080] The conditions for determining a supply interruption command are: the existence of a higher-level command record and the absence of a lockout event, along with a corresponding change in the downstream pressure sequence. With diaphragm displacement sequence The event is in a controlled descent pattern. First, check the event table to confirm the time anchor point of the locking event. If missing, check if there is a supply cutoff command with a matching timestamp in the external higher-level command log; the controlled descent pattern is confirmed by analyzing the sequence trend after adjusting the table relationship, i.e., the slope of the downstream pressure sequence. The membrane displacement sequence velocity remains continuously negative without a sharp change (i.e., greater than the negative threshold of the descent slope). The system displays a gradual shift rather than abrupt changes; the determination is based on a logical AND operation, meaning that command termination semantics are assigned only when all conditions are met simultaneously; if the higher-level instruction record is missing but the descent pattern exists, it is marked as a potential anomaly and not directly assigned; the determination of the negative threshold for the descent slope adopts an adaptive adjustment method based on historical operational data, that is, extracting the slope distribution from past command termination instances and setting the threshold as the lower quantile point through quantile calculation to capture gradual features. For example, if the historical slope is concentrated in a mild negative range, the threshold is relaxed accordingly to accommodate variations. The command termination state semantics serve as an identifier to distinguish human intervention and provide a comparative basis for determining over-limit cutoff.

[0081] Step S3.3: Determine the semantics of the over-limit cutoff state.

[0082] The criteria for determining over-limit shut-off are the existence of a lockout event and the following conditions: the downstream pressure sequence exhibits an over-limit approach pattern before lockout and a rapid drop and stabilization after lockout. This process extracts the time anchor point of the lockout event from the event table. Then, guided by the table relationship, the sequence is divided into pre-lock and post-lock segments; the limit-crossing approach pattern is confirmed by checking the gradual increase trend of the post-valve pressure sequence approaching the preset upper limit, that is, the sequence value continuously approaches the upper limit threshold without crossing it; the rapid drop and stabilization pattern is analyzed by the slope after locking. A sharp negative turn and tendency to zero, combined with the corresponding outward deviation peak of the diaphragm displacement sequence; if the determination formula needs quantification, an integral form can be used to check the degree of convergence, such as... ,in This is the upper limit threshold for pressure. This is the start timestamp of the pre-locked segment. To approximate the error threshold, the integral is approximated as a discrete summation to assess the cumulative deviation; the subsequent sharp drop in locking is verified to stabilize using a similar integral; the threshold is as follows: The determination method employs an adaptive adjustment approach based on historical operational data. This involves calculating the average cumulative deviation from a sequence of past limit-crossing events and setting the threshold as a multiple of this average to distinguish between near-term fluctuations and normal fluctuations. For example, if historical deviations are small, the threshold is tightened to improve sensitivity. The limit-crossing cutoff state semantics serve as an identifier for protection actions, triggering the generation of arbitration requests.

[0083] Step S3.4: Determine the reset state semantics.

[0084] The reset condition is that bypass activation and deactivation are in progress, meaning the "bypass activation - deactivation - bypass closure" link in the causal sequence is not complete. This process checks the bypass activation event time anchor in the event table. Time anchor point of the unhooking and repositioning event Does the bypass shutdown event time anchor exist? Missing; the ongoing state is confirmed by morphological consistency markers in the table relations, i.e., the sequence shows continuous regression but has not reached stability; the link completion is evaluated by counting the events that have occurred, and if it is less than a complete link, a reset ongoing semantic is assigned; if a link is partially missing but the sequence shows a regression trend, a temporary marker is added. The reset ongoing state semantic serves as an identifier for the transition phase and triggers the generation of arbitration requests.

[0085] Step S3.5: Determine the semantics of the re-commissioning status.

[0086] The conditions for restarting are: the tripping and repositioning are completed, the bypass is closed, and the on / off status indicator before the valve is stable at "on". This process confirms the tripping and repositioning event time anchor point from the event table. With bypass shutdown event time anchor If it exists, then scan the on / off status indicator before the valve. In the later-locked segment, a stable segment with consecutive 1s is formed; the boundary consistency marker verification in the table relation is completed, that is, the sequence regresses to equilibrium without deviation; the stability criterion requires that the number of consecutive samples exceeds the preset length without switching; the decision is made using logical AND, ensuring that the re-operation semantics are allocated when all conditions are met.

[0087] Step S3.6: Output the arbitration request.

[0088] Once the state semantics enters the over-limit cutoff or reset process, an instruction arbitration request is generated. This request carries the blocking range (defined as the instruction type within a specific time window), the unblocking conditions (such as the state semantics changing to re-commissioning), and the remaining time indication (calculated based on the causal sequence to determine the remaining link duration). The generation process is triggered by the state semantics label, integrating the phase lag description in the table relationship to estimate the time. The arbitration request is issued in a structured format to block remote switching instructions and limit concurrent operations. If the state persists, the request is updated periodically. The instruction arbitration request is output to ensure that the delayed reset strategy in step S4 can be referenced to coordinate the field and remote ends.

[0089] Step S3 constructs state semantics based on table relationships and causal sequences to accurately distinguish different operation modes; it determines the semantics of command supply interruption, over-limit cutoff, reset in progress, and re-operation one by one, and uses specific conditions and morphological analysis to ensure accuracy; in the over-limit cutoff or reset in progress state, it generates and issues command arbitration requests, carrying the blocking range, unblocking conditions, and remaining time prompts, thereby effectively avoiding misjudgment and mishandling, improving the reset rhythm control and remote command arbitration reliability of urban gas pressure regulating stations, and ensuring that upstream cutoff events do not cause downstream swing interference and repeated tripping problems.

[0090] Step S3 generates state semantics based on the table relationship, distinguishes the operation mode, and outputs an arbitration request for instructions when over-limit disconnection or reset is in progress to guide remote operation; Step S4, based on this, when the causal sequence indicates that upstream disconnection causes downstream swing, executes a delayed reset strategy and writes a reset window flag, and publishes the process state and flag at the same time, thereby coordinating the reset rhythm and avoiding repeated tripping induced by concurrent instructions.

[0091] The specific processing logic of step S4:

[0092] Step S4.1: Detect that the causal sequence shows a lock-up first and a downstream swing.

[0093] The causal sequence is used as the primary input. First, its linked list structure is traversed to check if the order of events is anchored to the closing event time point. This is the starting point, and subsequent events include bypass activation time anchors. To confirm the "lock-in first" mode; downstream oscillation is analyzed by adjusting the valve post-valve pressure sequence based on the table relationship. With diaphragm displacement sequence Identify features caused by upstream cutoff, namely, low-amplitude oscillations in the pressure sequence within the segment after blocking (oscillation amplitude). Exceeding the vibration threshold but the slope (Maintaining a mild negative value), the diaphragm displacement sequence shows a brief outward bias followed by regression; the detection process uses sequential scanning of the phase hysteresis description and morphological consistency marker of the causal sequence. If the hysteresis shows that the upstream event leads the downstream response and the consistency marker is low, then the oscillation is confirmed to be caused by the upstream; if the sequence does not match, the subsequent strategy is not triggered; the vibration threshold is determined using an adaptive adjustment method based on historical operating data, that is, the vibration amplitude distribution is extracted from the sequence of past upstream cut-off events, and the threshold is set as the upper quantile point through quantile calculation to capture typical oscillations. For example, if the historical distribution shows a concentrated interval, the threshold is set accordingly to distinguish noise. The detection result serves as a trigger signal, directly supporting the activation of the delay strategy, ensuring intervention only when the causal chain is clear.

[0094] Step S4.2: Activate the delayed reset strategy.

[0095] When upstream disconnection is confirmed to cause downstream oscillation, a delayed reset strategy is initiated. This strategy first selects a fixed setting based on historical recurring pattern labels. These labels are extracted from the event table and represent the reset duration patterns of similar past events. The delay length uses a preset setting, such as short, medium, or long, selected based on label matching. For example, if the labels show a high recurrence rate, a conservative long setting is selected. At startup, the bypass activation event time anchor point is recorded. As a delay start, the expected end time is calculated based on the gear duration; during policy execution, the blocking range of the integrated instruction arbitration request is used to temporarily block remote instructions; if no tag matches, the default is medium. The delay reset strategy acts as a time buffer mechanism, providing a range basis for window tag writing.

[0096] Step S4.3: Write the reset window flag.

[0097] After the delay begins, the event time anchor is activated via bypass. Time anchor point for bypass closure event The interval is written to the reset window marker, which includes the start and end times (copied directly from the anchor point) and the corresponding event pairs (such as bypass activation and detangle return event time anchor points). The process includes: (1) description of local phase lag (inherited from causal sequence, lag within quantization interval); writing to update the event table, adding new records linked to the corresponding segments of the signal table to ensure traceability; if bypass closure is not detected, the temporary end time is estimated based on the delay level; the tag format is a structured object for easy querying; the reset window tag serves as the interval identifier.

[0098] Step S4.4: Publish process state and reset window markers.

[0099] The process state and reset window flags are published through the monitoring channel. The process state describes the current reset stage, such as "delaying" or "monitoring regression," and is generated based on the link completion degree of the causal sequence. The published content includes the start and end times of the flag, event pairs, and hysteresis descriptions, which are used to limit remote concurrent on / off commands until the window ends and is unblocked. The publication adopts a push mechanism to ensure real-time updates. If an anomaly is detected during the window, a warning is attached. After processing, the published flags and states serve as external interfaces to provide a feedback loop for monitoring.

[0100] Step S4.5: Continuously monitor the regression pattern.

[0101] During the execution of the delay strategy, the downstream pressure sequence is continuously monitored. With diaphragm displacement sequence The regression pattern is monitored by comparing the sequence with the pattern consistency markers in the corresponding table in real time to check if it is a stable regression, i.e., the slope of the pressure sequence approaches zero with no vibration, and the velocity of the diaphragm displacement sequence is close to zero with negative acceleration. If the regression fails to meet the stability criterion (e.g., the integral regression exceeds the error threshold), the process state is maintained and the process is locked until the criterion is met. The monitoring frequency is matched with the acquisition frequency f. If the criterion formula needs to be quantified, it can be used... ,in This is the current timestamp. To stabilize the error threshold, this integral summation evaluates the cumulative slope deviation; The determination method employs an adaptive adjustment approach based on historical operational data. This involves calculating the average cumulative deviation from past regression instances and setting a threshold as the class mean through cluster analysis to adapt to different scenarios. For example, if clustering shows multiple patterns, the threshold is tiered. The monitoring process updates the results to ensure that the consistency comparison in step S5 can reference stable criteria.

[0102] Step S4 detects the prior blocking and downstream swing characteristics of the causal sequence, initiates a delayed reset strategy and selects a fixed position; writes a reset window flag including start and end times and hysteresis description; issues process states and flags to limit concurrent commands; and continuously monitors the regression pattern to maintain the blockade until it stabilizes, thereby effectively handling downstream interference caused by upstream disconnection, avoiding false resets and repeated trips, and ensuring coordinated and safe operation of urban gas pressure regulating stations during the reset window period.

[0103] Step S4 has performed a delayed reset when the upstream cut-off caused the downstream swing, written the reset window flag and published the process state to limit concurrent commands; Step S5 reads real-time data in the initial stage of restart, compares the table relationship with the reset window flag to perform a consistency comparison, if there is a deviation, corrects the unified clock and event mapping, and updates the delay level and semantic order according to the repetition pattern, thereby ensuring the long-term accuracy and adaptability of monitoring and control.

[0104] The specific processing logic of step S5:

[0105] Step S5.1: Read the real-time on / off status indicator before the valve, the pressure sequence after the valve, and the diaphragm displacement sequence.

[0106] During the initial commissioning phase, the real-time valve on / off status indicator is read from the acquisition channel under a unified clock. Post-valve pressure sequence With diaphragm displacement sequence These sequences are timestamped The flag is marked to ensure that it is consistent with the signal table format generated in step S1; the reading range is limited to a fixed window after the restart start timestamp to capture the dynamics of the recovery phase; the process involves querying the event table to confirm that the restart status semantics have been activated, and if not activated, the reading is delayed until the conditions are met; the read data is cached immediately to avoid losing instantaneous changes.

[0107] Step S5.2: Perform a sequence consistency check.

[0108] By comparing the table relationship with the reset window markers, a sequence consistency check is performed. This check examines whether the event sequence strictly matches "lock-bypass open-unlock return-bypass close-restart", that is, traversing the lock-bypass event time anchors in the event table. Bypass activation event time anchor point Unlocking and repositioning event time anchor point Bypass shutdown event time anchor The time sequence of the re-commissioning start timestamps is also considered; if any anchor point is missing or the order is reversed, it is marked as a deviation; the verification process cross-references the start and end times of the reset window markers with the corresponding event pairs to ensure that there are no jumps in the order within the window; if the real-time sequence indicates additional events, it is recorded as an anomaly. The sequence consistency result, as part of the three types of verification, supports the time consistency verification.

[0109] Step S5.3: Execution time consistency check.

[0110] By comparing the table relationship with the reset window markers, a time consistency test is performed. This test checks whether the event time difference is consistent with the direction and magnitude of the slippage in the table relationship, i.e., calculating the time difference between adjacent event anchor points. The time difference is compared with the slip sequence in the table relationship in terms of direction (positive or negative) and magnitude (sample offset). If the time difference direction is reversed or the magnitude exceeds the preset ratio, it is marked as a deviation. The start and end times of the integrated reset window markings are checked to verify the stability of the difference within the window. The timestamp of the real-time sequence is used to supplement the calculation to ensure that the test covers the latest data. The time consistency result, as part of the three types of tests, supports the morphological consistency test.

[0111] Step S5.4: Perform a morphological consistency check.

[0112] By comparing the relationship in the table with the reset window markings, a morphological consistency test is performed. This test checks whether the valve downstream pressure sequence and diaphragm displacement sequence exhibit regression stability within the window and whether they show a smooth response with load outside the window; that is, the sequence slope is analyzed within the reset window marked interval. With speed If the sequence approaches zero and there is no vibration, check the smoothness of the load change in the sequence response outside the window, ensuring there are no sharp peaks. Use the morphological consistency markers in the reference table relationship as a benchmark; if the real-time sequence deviation exceeds a preset standard, it is marked as inconsistent. The process involves sliding window traversal to ensure coverage of all segments. Summarize the results of the three consistency checks; if any type of marker deviation occurs, step S5.5 is triggered for correction.

[0113] Step S5.5: Perform unified clock offset correction and event mapping order correction.

[0114] If any discrepancy occurs in the three types of consistency checks, a unified clock offset correction is performed. This involves repositioning the reference zero point based on the densest event cluster in the event table (such as a timestamp-dense area) and calculating the offset. ,in The average timestamp of the cluster. The original zero point is applied to all timestamps; simultaneously, event mapping order correction is performed, that is, without changing the event timestamps, adjacent event pairs are reassigned according to morphological consistency priority (e.g., higher consistency event pairs take precedence), for example, if the morphological label is high, it is linked first; the correction process iteratively verifies three types of checks until the deviation is eliminated. The correction results update the relationship between the event table and the pair table to support the update.

[0115] Step S5.6: Update the delay reset strategy level and the order of displaying state semantics.

[0116] After calibration, the recurring pattern tags during the runtime are read. If a certain level achieves stability across multiple reset windows, the delayed reset strategy level is updated to that level. This involves iterating through historical tags to count the stable occurrence rate; if the rate exceeds a preset standard, the level is fixed. If the process status is confusing to understand (e.g., based on user feedback logs), the display order of status semantics is adjusted, prioritizing semantics with higher handling priority (e.g., over-limit cutoff). The update process is written to the event table to ensure availability in the next cycle. The update results optimize the overall strategy and improve long-term monitoring reliability.

[0117] Step S5 performs three types of consistency checks by reading the real-time sequence, including sequence, time, and morphology checks; if there is a deviation, a unified clock offset correction and event mapping order correction are performed; the delay level and semantic order are updated according to the repeating pattern label, thereby verifying and optimizing the monitoring framework in the initial stage of re-commissioning, avoiding misjudgments caused by the breakage of the cross-device causal chain, ensuring that the reset and command arbitration mechanism of the urban gas pressure regulating station continues to adapt to the actual operation scenario, and improving the stability and accuracy of the overall control.

[0118] Example 2: Figure 2 The present invention provides a pressure regulator shut-off valve status monitoring and control system, comprising:

[0119] Data acquisition module: Synchronously acquires valve inlet / outlet status indicators, valve outlet pressure sequence, and diaphragm displacement sequence under a unified clock.

[0120] Event Anchor Module: Generates time anchors for locking events, unlocking and repositioning events, and bypass opening and closing events.

[0121] Sequence mapping module: Using the latching event, unlocking return event, and bypass opening / closing event as anchors, the valve downstream pressure sequence and diaphragm displacement sequence are mapped to a unified clock.

[0122] Relationship generation module: Generates table relationships and causal sequences that trigger to reset, and publishes the table relationships.

[0123] Semantic construction module: Generates state semantics based on table relationships, distinguishing between command-driven supply interruption and over-limit cutoff and reset and re-commissioning.

[0124] Arbitration output module: Outputs an arbitration request when an out-of-limit cutoff or reset is detected.

[0125] Delayed reset module: When the causal sequence points to the upstream cutoff, causing the downstream swing, a delayed reset is executed.

[0126] The marker writing module writes the reset window marker over the interval from bypass to bypass, and simultaneously publishes the process state and the reset window marker.

[0127] Consistency Comparison Module: In the initial stage of commissioning, read the real-time valve inlet / outlet status identifier, valve outlet pressure sequence and diaphragm displacement sequence, and complete the consistency comparison by comparing the table relationship and the reset window mark.

[0128] Correction and update module: If a deviation occurs, it corrects the unified clock and event mapping, and updates the delay reset strategy level and the order of status semantic display according to the repetition pattern.

[0129] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.

[0130] It should be noted that the system of the present invention can be deployed on the device itself to realize embedded applications, or it can run on a PC or other terminal with a user interface, thereby meeting a variety of hardware environments and usage requirements.

[0131] The foregoing has only described certain exemplary embodiments of the present invention by way of illustration. Undoubtedly, those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the foregoing drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.

[0132] It should be noted that, in this document, the use of relational terms such as "first" and "second" is merely to distinguish one entity or operation from another, and does not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0133] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for monitoring and controlling the status of a pressure regulator shut-off valve, characterized in that, Including the following steps: Synchronously acquire valve inlet / outlet status indicators, valve outlet pressure sequences, and diaphragm displacement sequences under a unified clock, and generate time anchor points for interlocking events, release / return events, and bypass opening / closing events; Using the latching event, the release return event, and the bypass opening / closing event as anchors, the valve downstream pressure sequence and the diaphragm displacement sequence are mapped to a unified clock, generating a table relationship and causal sequence from trigger to reset, and publishing the table relationship; Based on the table relationship, state semantics are generated to distinguish between command supply interruption and over-limit cut-off and reset and re-operation. When over-limit cut-off or reset is detected, an arbitration request is output. When the causal sequence points to the upstream cut-off causing the downstream swing, a delayed reset is executed, and the reset window flag is written in the interval from bypass opening to bypass closing, while the process state and the reset window flag are published. During the initial commissioning phase, the real-time valve inlet / outlet status identifier, valve outlet pressure sequence, and diaphragm displacement sequence are read. The consistency is compared with the table relationship and reset window mark. If a deviation occurs, the unified clock and event mapping are corrected, and the delay reset strategy level and status semantic display order are updated according to the repetition pattern.

2. The method for monitoring and controlling the status of a pressure regulator shut-off valve according to claim 1, characterized in that: The blocking event is extracted from the valve's on / off state identifier from steady state to off state abrupt change. The determination is based on three conditions: the abrupt change amplitude reaches a threshold, the duration is satisfied, and the states before and after are stable. The time anchor point is defined as the abrupt change start timestamp and written into the event table.

3. The method for monitoring and controlling the status of a pressure regulator shut-off valve according to claim 2, characterized in that: The release and return event is identified based on the diaphragm displacement sequence travel regression trajectory. The judgment rules are: the displacement direction continuously regresses from the outside to the inside, the regression speed first increases and then slows down, and the valve on / off status indicator remains stable from off to on when it is terminated. The termination time is written into the release and return event time anchor point.

4. The method for monitoring and controlling the status of a pressure regulator shut-off valve according to claim 3, characterized in that: Bypass opening and closing events are identified from the slight venting and recharging pattern of the downstream pressure sequence. When the bypass is open, the pressure slope changes from near zero to a gradual decrease accompanied by low-amplitude vibration. When the bypass is closed, the slope changes from a decrease to a gradual increase and the vibration disappears. The corresponding timestamp is written into the time anchor point of the bypass opening and closing event.

5. The method for monitoring and controlling the status of a pressure regulator shut-off valve according to claim 4, characterized in that: Using the time anchor points of the locking event, the unlocking and return event, and the bypass opening and closing event as segment boundaries, the valve downstream pressure sequence and the diaphragm displacement sequence are mapped to a unified clock. A sliding search is used to register the phase of the two sequences within each segment, and the sliding amount is selected to minimize the total morphological difference between the two sequences.

6. The method for monitoring and controlling the status of a pressure regulator shut-off valve according to claim 5, characterized in that: The table relationship includes segment number, slip direction, slip amount sequence and boundary consistency mark. Based on the table relationship, events are connected in sequence according to time to form a causal sequence of lock-in first, bypass open, detangle return, bypass closed and reoperation. A phase lag description and morphological consistency mark are given for each adjacent event pair.

7. The method for monitoring and controlling the status of a pressure regulator shut-off valve according to claim 6, characterized in that: Based on the table relationship and causal sequence, the state semantics are constructed. The command interruption judgment condition is that there is a record of the superior command and the lockout event is missing, and the pressure sequence after the valve and the diaphragm displacement sequence show a controlled decrease. The over-limit cutoff judgment condition is that there is a lockout event and the pressure sequence after the valve shows an over-limit approaching pattern before the lockout and a rapid drop and stabilization after the lockout.

8. The method for monitoring and controlling the status of a pressure regulator shut-off valve according to claim 7, characterized in that: The conditions for resetting are that the bypass opening and deactivation are in progress, and the bypass opening-deactivation-bypass closing link in the causal sequence is not completed. The conditions for restarting are that the deactivation is completed, the bypass is closed, and the on / off status indicator before the valve is stable and on. When the status semantics enter the over-limit cut-off or reset process, an arbitration request is generated. The arbitration request carries the blocking range, unblocking conditions, and remaining time prompts.

9. The method for monitoring and controlling the status of a pressure regulator shut-off valve according to claim 8, characterized in that: When the causal sequence shows a lock-up first and the downstream pressure sequence and diaphragm displacement sequence show a downstream swing caused by upstream cut-off, a delayed reset strategy is initiated. The delay length adopts a pre-set fixed level, and the level selection refers to the historical repeating mode label. The bypass opening time is recorded when the delay starts, and the reset window mark is written when the bypass closing time arrives.

10. A pressure regulator shut-off valve status monitoring and control system, used to implement the pressure regulator shut-off valve status monitoring and control method according to any one of claims 1-9, characterized in that, include: Data acquisition module: Synchronously acquires valve inlet / outlet status indicators, valve outlet pressure sequence, and diaphragm displacement sequence under a unified clock; Event Anchor Module: Generates time anchors for locking events, unlocking and return events, and bypass opening and closing events; Sequence mapping module: Using the latching event, unlocking return event, and bypass opening / closing event as anchors, the valve downstream pressure sequence and diaphragm displacement sequence are mapped to a unified clock; Relationship generation module: Generates table relationships and causal sequences from trigger to reset, and publishes the table relationships; Semantic construction module: Generates state semantics based on table relationships, distinguishing between command-driven supply interruption and over-limit cutoff and reset and re-commissioning; Arbitration output module: Outputs an arbitration request when an over-limit cutoff or reset is detected; Delayed reset module: Executes delayed reset when the causal sequence points to an upstream cutoff that triggers downstream oscillation; The marker writing module writes the reset window marker over the interval from bypass to bypass, and simultaneously publishes the process state and the reset window marker. Consistency Comparison Module: In the initial stage of operation, read the real-time valve inlet / outlet status identifier, valve outlet pressure sequence and diaphragm displacement sequence, and complete the consistency comparison by comparing the table relationship and reset window mark; Correction and update module: If a deviation occurs, it corrects the unified clock and event mapping, and updates the delay reset strategy level and the order of status semantic display according to the repetition pattern.

Citation Information

Patent Citations

  • Gas pressure regulator performance detection method and device based on data analysis

    CN113944801A

  • Valve actuator fault analysis system

    US20120290261A1