A user natural gas safety detection method, system and storage medium
Patent Information
- Application Number
- CN202410215487.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-27
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2044-02-27
AI Technical Summary
[0003]针对上述中的相关技术,发明人认为:检测空气中的天然气浓度受环境因素影响较大,对于轻微的天然气泄露,检测效率较低或根本无法检测出来的问题,并且因为需要泄漏达到一定浓度时才会发出报警,此时天然气已经发生了一定量的泄露,仍会存在很多安全风险
[0056]1.通过上述用户天然气安全性检测方法可以及时检测到用户室内的天然气泄漏现象,并快速报警与关闭阀门,降低发生火灾和爆炸的风险;
Smart Images

Figure CN118167938B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of pipeline inspection, and in particular to a method, system, and storage medium for detecting the safety of natural gas for users. Background Technology
[0002] Current natural gas leak detectors typically detect the concentration of natural gas in the air after a leak occurs and sound an alarm when the detector's detection criteria are met.
[0003] Regarding the aforementioned technologies, the inventors believe that: the detection of natural gas concentration in the air is greatly affected by environmental factors; for minor natural gas leaks, the detection efficiency is low or it is impossible to detect them at all; and because an alarm is only triggered when the leak reaches a certain concentration, by which time a certain amount of natural gas has already leaked, there are still many safety risks. Summary of the Invention
[0004] To improve the safety of residential natural gas pipelines and achieve comprehensive natural gas safety detection and protection for community users, this application provides a method, system, and storage medium for detecting the safety of natural gas for users.
[0005] Firstly, this application provides a method for detecting the safety of natural gas for users, employing the following technical solution:
[0006] A method for detecting the safety of natural gas for users, comprising:
[0007] Read the user information from the user's natural gas meter, including the user ID and gas usage records;
[0008] Based on the gas usage records, the user type of the user ID is classified;
[0009] Based on the user type, trigger signals with different detection frequencies are generated accordingly;
[0010] Based on the trigger signal, obtain the gas usage information corresponding to the user ID to update the gas usage record;
[0011] Based on the gas usage information, it is determined whether there is a leak in the natural gas pipeline. When the leak determination result is that there is a leak, an alarm message is issued, and the alarm message includes the user ID.
[0012] Based on the alarm information, a valve closing command is issued to the natural gas meter corresponding to the user ID, and the alarm information is recorded in the gas usage record.
[0013] By adopting the above technical solution, the detection system classifies users into different user types based on their daily gas usage records and sets detection frequencies accordingly, greatly reducing the amount of data to be detected. It also enables focused attention on special users and determines whether there is a leak in the natural gas pipeline based on the gas usage information at the time of detection. The system then promptly issues alarm information and valve closing commands, improving the practicality of the detection system. The detection system directly controls the valve action of the natural gas meter, preventing the failure to detect natural gas leaks in time, which could lead to fires and explosions, and ensuring the safe use of natural gas by users.
[0014] Preferably, the gas usage information includes the valve opening / closing status of the natural gas meter, pressure information, and flow information, wherein the valve opening / closing status includes opening action, holding open action, and closing action.
[0015] Preferably, the user type includes standard users and key detection users, and the detection frequency at which the key detection users generate the trigger signal is greater than the detection frequency at which the standard users generate the trigger signal.
[0016] By adopting the above technical solutions, it is possible to conduct more frequent inspections on key users and carry out targeted natural gas safety inspections on numerous users in the community, thereby achieving more efficient and intelligent overall protection.
[0017] Preferably, the key users to be monitored include new users, heavy users, and problem users;
[0018] The step of classifying the user type based on the gas usage record specifically includes:
[0019] The gas usage records are determined, and users whose gas usage records span less than a first preset time are classified as new users.
[0020] Based on the traffic information, users whose average traffic information over a second preset time period is greater than a preset value are classified as heavy users.
[0021] The gas usage records are analyzed, and users whose gas usage records contain alarm information within a third preset time period are classified as problem users.
[0022] By adopting the above technical solution, new users, heavy users, and problem users that meet the conditions are screened out by the first preset time, the second preset time, and the third preset time. New users may have leaks due to installation problems; heavy users consume a large amount of natural gas per unit time, and the airtightness is prone to problems; problem users have leaks in their natural gas pipelines, and after repairs, the repair results still need to be carefully inspected to ensure gas safety. Therefore, users who meet the conditions are classified as key inspection users and are inspected more frequently.
[0023] Preferably, the step of generating trigger signals with different detection frequencies based on the user type further includes the following steps:
[0024] Gas consumption peak periods and gas consumption off-peak periods are divided based on time periods;
[0025] During peak gas consumption periods, the detection frequency is multiplied by a peak factor; during off-peak gas consumption periods, the detection frequency is multiplied by an off-peak factor.
[0026] Among them, the peak factor is greater than 1, and the trough factor is less than 1.
[0027] During periods of high natural gas consumption, the risk of leaks in natural gas pipelines is also greater. By adopting the above-mentioned technical solution, the day is divided into time periods according to gas consumption habits. During peak gas consumption periods, the detection frequency is increased to further improve the safety of household natural gas pipelines. During off-peak gas consumption periods, the detection frequency is reduced to achieve more efficient and intelligent overall protection.
[0028] Preferably, determining whether a natural gas pipeline is leaking based on the gas usage information specifically includes the following steps:
[0029] When the valve is in the open state, the flow information and the pressure information are input into the gas usage preset model, and the leakage judgment result is output.
[0030] When the valve is in the open state, the flow information and the pressure information are input into the valve opening preset model, and the leakage judgment result is output.
[0031] When the valve is in a closed state, the flow rate information and the pressure information are input into the valve closure preset model, and the leakage judgment result is output.
[0032] If a natural gas pipeline or valve is leaking, the flow and pressure readings from the natural gas meter will fluctuate abnormally during valve opening, closing, and gas usage compared to when the pipeline is leak-free. By employing the aforementioned technical solution, pressure and flow information are fitted into different preset models to determine if a natural gas pipeline leak exists. Furthermore, each preset model is continuously improved with the increase in the number of tests, gradually achieving efficient and accurate identification of whether a user has a natural gas pipeline leak.
[0033] Preferably, determining whether a natural gas pipeline is leaking based on the gas usage information specifically includes the following steps:
[0034] When the valve is in the open state, the flow information and the pressure information are input into the gas consumption preset model to obtain the first judgment result;
[0035] When the valve is in the open state, the flow information and the pressure information are input into the valve opening preset model to obtain a second judgment result;
[0036] When the valve is in a closed state, the flow information and the pressure information are input into the valve closure preset model to obtain a third judgment result.
[0037] The first judgment result, the second judgment result, and the third judgment result all include three states: normal, abnormal, and leakage.
[0038] Wherein, when the second judgment result or the third judgment result is an abnormal state, it is marked as a;
[0039] When the second or third judgment result indicates a leakage state, mark a*N1;
[0040] When the first judgment result is an abnormal state, mark a*N2;
[0041] When the first judgment result is a leakage state, mark a*N3;
[0042] The first judgment result, the second judgment result, and the third judgment result are continuously summed to obtain a total judgment result. When the total judgment result is greater than the total model reference value, the leakage judgment result indicates that a leakage exists. If no abnormal state or leakage state occurs again within a preset time interval, the total judgment result is set to zero.
[0043] Among them, 1 <N1<N2<N3。
[0044] By adopting the above technical solution, the judgment results of each preset model are divided into different states with varying weights. The total judgment result is obtained by accumulating the results of multiple detections and comparing it with the overall model reference value to obtain a comprehensive evaluation. This reduces the interference of single-detection errors and makes the leakage judgment results more accurate. Furthermore, the model's weight coefficients are continuously optimized as the number of detections increases, achieving the effect of accurately judging even minor leaks.
[0045] Preferably, when the first judgment result, the second judgment result, or the third judgment result is an abnormal state or a leakage state, the gas usage information is obtained again and the corresponding preset model is input, and the corresponding judgment state is output.
[0046] By adopting the above technical solution, when the judgment result of the preset model shows an abnormal state or leakage state, the detection is immediately repeated to help further determine whether there is a leakage, without waiting for the trigger signal generated at the next preset interval, thereby improving the efficiency of leakage detection.
[0047] Secondly, this application provides a user natural gas safety detection system, which adopts the following technical solution:
[0048] A user natural gas safety detection system, the user natural gas safety detection system comprising:
[0049] Information acquisition module: used to acquire user information of the user's natural gas meter, read the gas consumption information of the natural gas meter according to the trigger signal, and receive alarm information;
[0050] Signal generation module: used to generate trigger signals with different detection frequencies according to different user types;
[0051] Information judgment module: classifies user types based on the gas usage records; used to determine whether there is a leak in the natural gas pipeline based on the gas usage information;
[0052] Information sending module: When a leak is detected based on the leak judgment result, an alarm message is issued, and a valve closing action command is issued to the natural gas meter corresponding to the user ID.
[0053] Thirdly, this application provides a storage medium, which adopts the following technical solution:
[0054] A storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described natural gas safety detection method.
[0055] In summary, this application includes at least one of the following beneficial technical effects:
[0056] 1. The above-mentioned natural gas safety detection methods can promptly detect natural gas leaks in users' homes, quickly trigger alarms and shut off valves, reducing the risk of fire and explosion;
[0057] 2. By classifying users by type and by peak and off-peak gas usage periods, the system can increase the detection frequency for key users during peak hours and reduce the detection frequency for standard users during off-peak hours, thereby achieving more efficient and intelligent overall protection.
[0058] 3. By introducing a gas consumption preset model, a valve opening preset model, and a valve closing preset model, flow and pressure information are judged to obtain leakage judgment results. At the same time, the detection process continuously improves the preset model to achieve efficient and accurate judgment of whether there is a natural gas pipeline leak for the user.
[0059] 4. The judgment results of each preset model are divided into different states, and different weights are set for each state. The judgment results of multiple detections are then accumulated and comprehensively evaluated. This can reduce the interference of single detection error and make the leakage judgment results more accurate.
[0060] 5. By acquiring gas usage information again after determining that an abnormal or leaking state has occurred, the efficiency of leak detection is improved without waiting for the trigger signal generated at the next preset interval. Attached Figure Description
[0061] Figure 1 This is a block diagram of a user natural gas safety detection method provided in Embodiment 1 of this application;
[0062] Figure 2 This is a user type block diagram based on gas usage records for classifying user IDs, as provided in Embodiment 1 of this application;
[0063] Figure 3 This is a flowchart of subsequent steps for generating trigger signals with different detection frequencies based on user type, as provided in Embodiment 1 of this application.
[0064] Figure 4 This is a flowchart of a procedure for determining whether a natural gas pipeline is leaking based on the gas usage information provided in Embodiment 1 of this application;
[0065] Figure 5 This is a flowchart of a procedure for determining whether a natural gas pipeline is leaking based on the gas usage information, provided in Embodiment 2 of this application.
[0066] Figure 6 This is a framework diagram of a user natural gas safety detection system provided in an embodiment of this application.
[0067] Explanation of reference numerals in the attached diagram: 1. Information acquisition module; 2. Signal generation module; 3. Information judgment module; 4. Information transmission module. Detailed Implementation
[0068] To better understand the purpose, technical solutions, and advantages of this application, it has been described and illustrated below with reference to the accompanying drawings and embodiments. However, those skilled in the art should understand that this application can be implemented without these details. In some cases, to avoid obscuring various aspects of this application due to unnecessary description, well-known methods, processes, systems, components, and / or circuits already described at a higher level will not be elaborated upon. It will be apparent to those skilled in the art that various modifications can be made to the embodiments disclosed in this application, and the general principles defined in this application can be applied to other embodiments and application scenarios without departing from the principles and scope of this application. Therefore, this application is not limited to the illustrated embodiments, but conforms to the broadest scope consistent with the scope of protection claimed in this application.
[0069] It should be noted that the descriptions of these embodiments are for the purpose of aiding understanding the present invention, but do not constitute a limitation thereof. Furthermore, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0070] The following is in conjunction with the appendix Figure 1-6 This application will be described in further detail.
[0071] This application discloses a method for detecting the safety of natural gas for users.
[0072] Example 1: As Figure 1 As shown, the user's natural gas safety testing method includes the following steps:
[0073] S1: Read the user information from the user's natural gas meter. The user information includes the user ID and gas usage records.
[0074] The user ID is a unique identifier for each user's natural gas meter. Gas usage records are historical gas usage information recorded sequentially over time. This information includes the valve opening / closing status of the natural gas meter, pressure information, and flow rate information. Valve opening / closing status includes open, held open, and closed actions. If the user did not open the natural gas meter valve and the flow rate is zero during the test, no gas usage information is recorded. This facilitates the identification of new users in the subsequent user type classification process.
[0075] S2: Classify user types based on gas usage records.
[0076] The action of classifying user types can be set to be executed periodically or manually, so as to re-filter users who meet the corresponding conditions according to the judgment criteria and update the user types.
[0077] User types include standard users and key monitoring users. Key monitoring users are those that are different from standard users and require special monitoring. For example, this embodiment lists three specific types of key monitoring users, including new users, heavy users, and problem users. It can be understood that other user types can be classified according to different needs in different scenarios. For example, users with no historical gas usage information within a certain period of time can be classified as idle users, and users whose daily gas consumption exceeds a preset value can be classified as high-consumption users.
[0078] like Figure 2 As shown, classifying user types based on gas usage records specifically includes the following steps:
[0079] S2-1: Analyze gas usage records and classify users whose gas usage records span less than the first preset time as new users;
[0080] For example, the first preset time is set to one month. If a user's earliest gas usage record is less than one month old, it is considered a new meter installed for that user. New meters may experience leaks due to installation issues, requiring extra monitoring.
[0081] S2-2: Analyze traffic information and classify users whose average traffic information is greater than a preset value within a second preset time period as heavy users.
[0082] For example, if the second preset time is set to 1 day, when the flow information of gas usage data recorded in the user's gas usage records for the past 24 hours is statistically analyzed, users whose average flow information is greater than the preset value are considered heavy users. This indicates that the user has many gas-consuming devices and consumes natural gas quickly, which puts a heavy burden on the natural gas pipeline and increases the probability of leakage, requiring extra attention.
[0083] S2-3: Judge the gas usage records and classify users with alarm information in the gas usage records within the third preset time period as problem users.
[0084] For example, if the third preset time is set to 1 week, and an alarm message is found in the user's gas usage record, it means that the user's natural gas pipeline has recently leaked. Even after maintenance, it may recur or cause other problems. The maintenance results need to be carefully inspected to ensure gas safety. Such users are classified as problem users.
[0085] S3: Based on the user type, trigger signals with different detection frequencies are generated accordingly.
[0086] Among them, the detection frequency of trigger signals generated by key users is greater than that of trigger signals generated by standard users, thereby obtaining more gas usage information from the natural gas meters of key users, achieving the effect of more frequent detection of key users, troubleshooting pipeline faults, and ensuring gas safety.
[0087] After determining the detection frequency for the corresponding user type, the following steps are also included: Figure 3 As shown:
[0088] S3.1: Divide the gas consumption peak period and the gas consumption off-peak period based on time period.
[0089] Based on daily routines, such as predictable behaviors like using gas for cooking at mealtimes and using water heaters for showering in the morning and evening, the day is divided into peak and off-peak gas consumption periods. For example, 6:00 AM to 9:00 AM, 11:00 AM to 1:00 PM, and 6:00 PM to 9:00 PM are defined as peak gas consumption periods, while other time periods are defined as off-peak gas consumption periods.
[0090] S3.2: When gas consumption is at its peak, the detection frequency is multiplied by a peak factor; when gas consumption is at its low peak, the detection frequency is multiplied by a low peak factor. Where the peak factor > 1, and 0 < low peak factor < 1.
[0091] The detection frequency obtained in the previous steps is adjusted a second time according to the current period. If the current period is peak gas consumption, the detection frequency is multiplied by a peak factor (peak factor > 1), resulting in a higher detection frequency. Conversely, if the current period is off-peak gas consumption, the detection frequency is multiplied by a low-peak factor (low-peak factor < 1), resulting in a lower detection frequency. During periods of high natural gas consumption, the risk of leaks in natural gas pipelines is also greater. Increasing the detection frequency during peak consumption periods further enhances the safety of residential natural gas pipelines, while decreasing the detection frequency during off-peak periods reduces unnecessary inspections.
[0092] S4: Obtain gas usage information for the corresponding user ID based on the trigger signal to update the gas usage record.
[0093] The generated trigger signal, adjusted with the adjusted detection frequency, is applied to the natural gas meter of the user with the corresponding user ID. It reads the current valve status of the natural gas meter—whether it is open, holding open, or closed—and retrieves pressure and flow information. An open valve indicates the valve is transitioning from closed to open; a holding open valve indicates the valve is fully open; and a closing valve indicates the valve is transitioning from open to closed. If the user has not opened the valve on the natural gas meter during the detection, it will be in the closed state.
[0094] The gas consumption information, consisting of the valve opening / closing status, pressure information, and flow information of the natural gas meter at the current moment, is saved to the gas consumption record, along with the detection time information, such as a certain year, month, day, hour, and moment.
[0095] S5: Determine whether there is a leak in the natural gas pipeline based on gas usage information. When the leak determination result is that there is a leak, an alarm message is issued, which includes the user ID.
[0096] like Figure 4 As shown, the specific steps to determine whether a natural gas pipeline is leaking are as follows:
[0097] S5A-1: When the valve is in the open state, the flow and pressure information are input into the gas usage preset model, and the leakage judgment result is output.
[0098] S5A-2: When the valve is in the open state, the flow and pressure information are input into the valve opening preset model, and the leakage judgment result is output.
[0099] S5A-3: When the valve is in the closed state, the flow and pressure information are input into the valve closure preset model, and the leakage judgment result is output.
[0100] The leak detection result includes two options: leakage present and leakage not present. If the detected flow and pressure information match the preset gas usage model, valve opening model, or valve closing model, the leak detection result is "no leakage," and the detection ends. If they do not match, the leak detection result is "leak present," and an alarm is issued. The alarm message includes the corresponding user's ID.
[0101] It's easy to understand that when the natural gas meter receives a trigger signal, the valve remains closed, and the flow rate is zero. Therefore, it's impossible to determine if there's a leak in the pipeline, and the leak assessment result is output as "no leak," without recording any gas usage information, ending the test. If the flow rate is not zero, it indicates a malfunction in the natural gas meter or an abnormality such as a valve not closing tightly. In this case, the leak assessment result is output as "leak exists," and an alarm is triggered. There's no need to input data into a model for this judgment.
[0102] S6: Based on the alarm information, send a valve closing command to the natural gas meter corresponding to the user ID, and record the alarm information in the gas usage record.
[0103] The alarm message indicates the user ID and sends a shut-off command to the corresponding natural gas meter valve, automatically closing the valve and stopping gas supply. Staff then arrive at the corresponding user's home to perform specific repairs based on the user ID indicated in the alarm message.
[0104] Alarm information is also recorded in the gas usage log, along with the detection time information, such as the date and time.
[0105] Example 2: As Figure 5 As shown, the difference between this embodiment and Embodiment 1 lies in the specific steps for determining whether a natural gas pipeline is leaking:
[0106] S5B-1: When the valve is in the open state, the flow rate and pressure information are input into the gas consumption preset model to obtain the first judgment result.
[0107] S5B-2: When the valve is in the open state, the flow and pressure information are input into the valve opening preset model to obtain the second judgment result.
[0108] S5B-3: When the valve is in a closed state, the flow and pressure information are input into the valve closure preset model to obtain the third judgment result.
[0109] The detected flow and pressure information, after being input into the gas consumption preset model, valve opening preset model, or valve closing preset model, does not directly output a leakage judgment result. Instead, it outputs a first judgment result, a second judgment result, or a third judgment result. Multiple judgment results obtained from multiple detections are comprehensively evaluated, and the comprehensive judgment result determines whether a leakage exists or not.
[0110] S5B-4: The first, second, and third judgment results all include three states: normal, abnormal, and leakage.
[0111] Wherein, when the second or third judgment result is an abnormal state, it is marked 'a'; when the second or third judgment result is a leakage state, it is marked a*N1; when the first judgment result is an abnormal state, it is marked a*N2; when the first judgment result is a leakage state, it is marked a*N3; where 1 <N1<N2<N3。
[0112] It is understandable that other similar variations can be made to the state division of the judgment result and the method of marking different weight values for each state, all of which fall within the scope of protection of this scheme.
[0113] S5B-5: The total judgment result is obtained by continuously accumulating the marks of the first judgment result, the second judgment result and the third judgment result. When the total judgment result is greater than the total model reference value, the leakage judgment result is that there is a leakage. If no abnormal state or leakage state occurs again within the preset time interval, the total judgment result is set to zero.
[0114] The overall model reference value is a reference value obtained by continuously correcting the preset model based on historical detection results.
[0115] When the first, second, or third judgment result indicates an abnormal or leaking state, the gas usage information is re-acquired and input into the corresponding preset model, which then outputs the corresponding judgment status. This eliminates the need to wait for the trigger signal generated at the next preset interval, allowing for proactive detection and improving leak detection efficiency, thus reducing the probability of dangerous accidents.
[0116] Here's an example of the judgment method: When the valve's opening / closing state is "open" in the first test, the flow and pressure information from the first test are input into the gas user's preset model. The first judgment result is "abnormal," and the total judgment result is a*N2. If a*N2 is less than the total model reference value, a second test is immediately performed. If the valve's opening / closing state is still "open," the flow and pressure information from the first test are input into the gas user's preset model. The first judgment result is "leakage," and the total judgment result is a*N2+a*N3. If a*N2+a*N3 is still less than the total model reference value, a third, fourth, and so on are immediately performed until the total judgment result is greater than the total model reference value. At this point, the leakage judgment result is output as "leakage exists."
[0117] If the valve remains open in the third test, the flow and pressure information from the first test are input into the gas usage preset model. The first judgment result is normal. The overall judgment result is set to zero, and the leakage judgment result is output as no leakage.
[0118] In addition, similar to Example 1, when the natural gas meter receives a trigger signal, the valve remains closed and the flow rate is zero. Therefore, it is impossible to determine if there is a leak in the pipeline, and the leak detection result is output as "no leak," without recording gas usage information, and the detection ends. If the flow rate is not zero, it indicates a malfunction in the natural gas meter or an abnormality such as a valve not closing tightly. The leak detection result is output as "leak exists," and an alarm is issued. No model input is required for judgment.
[0119] This application also discloses a user natural gas safety detection system.
[0120] like Figure 6 As shown, the user natural gas safety detection system includes:
[0121] Information acquisition module 1: used to acquire user information of the user's natural gas meter, read the gas consumption information of the natural gas meter according to the trigger signal, and receive alarm information;
[0122] Signal generation module 2: Used to generate trigger signals with different detection frequencies according to different user types;
[0123] Information Judgment Module 3: Classifies users based on gas usage records; used to determine whether there is a leak in the natural gas pipeline based on gas usage information;
[0124] Information sending module 4: When a leak is detected based on the leak judgment result, an alarm message is issued and a valve closing action command is sent to the natural gas meter corresponding to the user ID.
[0125] The technical details of the various functions performed by the system are the same as or similar to the corresponding features in the user natural gas safety detection method described above, so they will not be repeated here.
[0126] This application also discloses a storage medium.
[0127] The storage medium can be read by a computer, and the storage medium stores a computer program that, when run on a computer, enables the computer to execute the relevant content in the aforementioned user natural gas safety detection method embodiment.
[0128] It should be understood that although the steps in the flowcharts in the accompanying drawings are shown sequentially as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise expressly stated herein, there is no strict order in which these steps are performed, and they may be performed in other orders.
[0129] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.
Claims
1. A method for detecting the safety of natural gas for users, characterized in that, include: Read the user information from the user's natural gas meter, including the user ID and gas usage records; Based on the gas usage records, user types are categorized according to user IDs. These user types include standard users and key monitoring users. Key monitoring users include new users, heavy users, and problem users. Specifically, based on the gas usage records, users whose gas usage records span less than a first preset time period are classified as new users. Based on the flow rate information, users whose average flow rate over a second preset time period exceeds a preset value are classified as heavy users. Based on the gas usage records, users whose gas usage records contain alarm information over a third preset time period are classified as problem users. Based on the user type, trigger signals with different detection frequencies are generated, wherein the detection frequency of the trigger signal generated by the key detection user is greater than the detection frequency of the trigger signal generated by the standard user; The gas consumption period is divided into peak and off-peak periods based on time periods. When the gas consumption period is peak, the detection frequency is multiplied by a peak factor, and when the gas consumption period is off-peak, the detection frequency is multiplied by an off-peak factor. Wherein, the peak factor > 1, and 0 < off-peak factor < 1. Based on the trigger signal, gas usage information corresponding to the user ID is obtained to update the gas usage record. The gas usage information includes the valve opening and closing status of the natural gas meter, pressure information, and flow information. The valve opening and closing status includes opening action, holding open action, and closing action. Determining whether there is a leak in the natural gas pipeline based on the gas usage information specifically includes: When the valve is in an open state, the flow rate information and the pressure information are input into the gas consumption preset model to obtain a first judgment result; when the valve is in an open state, the flow rate information and the pressure information are input into the valve opening preset model to obtain a second judgment result; when the valve is in a closed state, the flow rate information and the pressure information are input into the valve closing preset model to obtain a third judgment result. The first judgment result, the second judgment result, and the third judgment result all include three states: normal, abnormal, and leakage. Wherein, when the second judgment result or the third judgment result is an abnormal state, it is marked 'a'; when the second judgment result or the third judgment result is a leakage state, it is marked a*N1; when the first judgment result is an abnormal state, it is marked a*N2; when the first judgment result is a leakage state, it is marked a*N3; the marks of the first judgment result, the second judgment result, and the third judgment result are continuously accumulated to obtain a total judgment result. When the total judgment result is greater than the total model reference value, the leakage judgment result is that a leakage exists; if no abnormal state or leakage state occurs again within a preset time interval, the total judgment result is set to zero; wherein, 1 <N1<N2<N3; When the first judgment result, the second judgment result, or the third judgment result is an abnormal state or a leakage state, the gas usage information is obtained again and the corresponding preset model is input, and the corresponding judgment state is output. When the leakage assessment result indicates that a leakage exists, an alarm message is issued, and the alarm message includes the user ID; Based on the alarm information, a valve closing command is issued to the natural gas meter corresponding to the user ID, and the alarm information is recorded in the gas usage record.
2. A natural gas safety detection system using the detection method as described in claim 1, characterized in that: The user natural gas safety detection system includes: Information acquisition module (1): used to acquire user information of the user's natural gas meter, read the gas consumption information of the natural gas meter according to the trigger signal, and receive alarm information; the user information includes user ID and gas consumption record; the user type of the user ID is divided based on the gas consumption record, and the user type includes standard user and key monitoring user; Signal generation module (2): used to generate trigger signals with different detection frequencies according to different user types; Information Judgment Module (3): Classifies user types based on gas usage records; used to determine whether there is a leak in the natural gas pipeline based on gas usage information; Information sending module (4): When the leakage judgment result indicates that there is a leak, an alarm message is sent and a valve closing action command is sent to the natural gas meter corresponding to the user ID.
3. A storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, it implements the steps of the natural gas safety detection method of claim 1.
Citation Information
Patent Citations
Method and device for generating air data
CN105092781A
Storage device hard disk detecting method and system
CN107729199A
Method for realizing safe gas use of Internet of Things gas meter through micro-flow limited gas use
CN112968925A
Pipeline leakage diagnosis method and system based on natural gas user use sequence
CN114838296A