Method and device for predicting hourly gas consumption of user
By analyzing users' historical and real-time gas consumption data, the total hourly gas consumption of each user is calculated and distributed, which solves the problem of inaccurate gas flow distribution in the existing technology and improves the accuracy of pipeline network simulation calculations.
Patent Information
- Application Number
- CN202411470146.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-01-21
AI Technical Summary
The prior art cannot accurately allocate the gas flow of different users through the historical gas data and real-time gas data of different users, resulting in a poor fit between the simulation results of the pipeline network and the actual pressure and flow rate, and the calculation accuracy is low.
Provides a user hourly gas consumption prediction method. By obtaining the gas consumption data of residential users, industrial users and commercial users, analyzing historical gas consumption data and real-time gas consumption data, the total hourly gas consumption of each user is calculated and distributed. .
It achieves a more accurate prediction of users' hourly gas consumption and distributes it, which improves the accuracy and precision of pipe network simulation calculations.
Smart Images

Figure CN119338509A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a field, and in particular to a method and a device for predicting hourly gas consumption of a user. Background Art
[0002] With the rapid development of computer technology and the country's higher requirements for intelligent gas construction, gas pipeline network simulation calculations have made great progress in recent years. Since the gas flow of residential users, some commercial users and some industrial users cannot be collected in real time, when simulating the pipeline network, when allocating flow to users who cannot collect flow in real time, most of them adopt the simultaneous working coefficient method and the empirical method to estimate user flow. Due to the large error and the difference from the actual gas consumption of the user, the pipeline network simulation calculation results have poor fit with the actual pressure and flow, and the calculation accuracy is low. The existing technology cannot allocate the flow of different users by weight based on the historical gas consumption data and real-time gas consumption data of different users. In order to solve the above problems, the inventor of the present invention proposed a method and device for predicting user hourly gas consumption. Summary of the invention
[0003] In order to solve the above problems, the purpose of the present invention is to provide a method and device for predicting user hourly gas consumption, which can more accurately predict user hourly gas consumption and allocate it.
[0004] Based on this, the present invention provides a method for predicting user hourly gas consumption, the method comprising:
[0005] Obtaining gas usage data of residential users, industrial users and commercial users, wherein the gas usage data of residential users is historical gas usage data of residential users, the gas usage data of industrial users includes: hourly gas usage data transmitted remotely by industrial users and historical gas usage data of industrial users, and the gas usage data of commercial users includes: hourly gas usage data transmitted remotely by commercial users and historical gas usage data of commercial users;
[0006] Analyze the historical gas consumption data of the residential users to obtain the total hourly gas consumption of the residential users;
[0007] The hourly gas consumption of the first industrial user is directly added according to the hourly gas consumption data transmitted by the industrial user, and the hourly gas consumption of the second industrial user is obtained according to the historical gas consumption data of the industrial user. The hourly gas consumption of the first industrial user plus the hourly gas consumption of the second industrial user equals the total hourly gas consumption of the industrial users;
[0008] The hourly gas consumption of the first commercial user is directly added according to the hourly gas consumption data transmitted by the commercial user, and the hourly gas consumption of the second commercial user is obtained according to the historical gas consumption data of the commercial user. The hourly gas consumption of the first commercial user plus the hourly gas consumption of the second commercial user equals the total hourly gas consumption of the commercial users;
[0009] The total hourly gas consumption of the residential users, the total hourly gas consumption of the industrial users and the total hourly gas consumption of the commercial users are added together to obtain the total hourly gas consumption of users. Every hour, the total hourly gas consumption of residential users is allocated to the residential users, the total hourly gas consumption of industrial users is allocated to the industrial users, and the total hourly gas consumption of commercial users is allocated to the commercial users.
[0010] Furthermore, the industrial user's remotely transmitted hourly gas usage data and the commercial user's remotely transmitted hourly gas usage data are both acquired through a SCADA system.
[0011] Furthermore, the total hourly gas consumption of residential users obtained by analyzing the historical gas consumption data of residential users includes:
[0012] Obtain the gas usage data of the smart gas meter for the entire year of the previous year as the total data set, and randomly extract a preset number of gas usage data from the total data set as the basic data set, wherein the basic data set includes the gas usage of residential users recorded hourly throughout the year;
[0013] Dividing and sorting the data in the basic data set according to time sequence to obtain a sorted data set, wherein the window width divided according to time sequence is 1 hour;
[0014] Selecting the middle 80% of the data in the sorted data set as a representative data set;
[0015] In the representative data set, averaging the data corresponding to time t to obtain a first average;
[0016] In the representative data set, averaging the data corresponding to time t+1 to obtain a second average;
[0017] The second average minus the first average obtains the hourly gas consumption of residential users in the time period from t to t+1, where t is a positive integer ranging from 0 to 23;
[0018] The number of residential users is obtained, and the total hourly gas consumption of the residents is obtained by multiplying the number of residential users, the hourly gas consumption of the residential users, and a first correction coefficient.
[0019] Furthermore, the process of obtaining the first correction coefficient is:
[0020] Obtain the total hourly gas consumption of the first residential user calculated using the weight method;
[0021] Obtain the total hourly gas consumption of the second residential user calculated using the residential user flow rule;
[0022] The first correction coefficient is equal to the total hourly gas consumption of the first residential user divided by the total hourly gas consumption of the second residential user.
[0023] Furthermore, obtaining the hourly gas consumption of the first residential user calculated by the weight method includes:
[0024] Obtain the total monthly gas consumption of residential users and the total monthly gas consumption of users in a certain month of the previous year in the current year;
[0025] The weight is obtained by dividing the total monthly gas consumption of the residential user by the total monthly gas consumption of the user;
[0026] The total hourly gas consumption of the first residential user is calculated according to the weight, the total hourly gas consumption of the industrial user, and the total hourly gas consumption of the commercial user.
[0027] Further, the obtaining of the total hourly gas consumption of the second residential user calculated using the residential user flow rule includes:
[0028] Get the sum of the number of residential users;
[0029] Obtain the hourly gas consumption of residential users within a preset time period;
[0030] The total hourly gas consumption of the second residential users is obtained by multiplying the sum of the number of residential users by the hourly gas consumption of the residential users.
[0031] Furthermore, the method further comprises:
[0032] When the number of residential users changes, the total hourly gas consumption of the residential users needs to be multiplied by the second correction coefficient;
[0033] The second correction coefficient is equal to the number of resident users in the current year divided by the number of resident users in the previous year of the current year.
[0034] Furthermore, the hourly gas consumption of the second industrial user obtained by analyzing the historical gas consumption data of the industrial user includes:
[0035] The historical gas consumption data of industrial users include: the monthly gas consumption of industrial users without remote transmission in the previous year of the current year and the total monthly gas consumption of industrial users with remote transmission in the previous year of the current year;
[0036] The monthly gas consumption of industrial users without remote transmission in the previous year of the current year is divided by the total monthly gas consumption of industrial users with remote transmission in the previous year of the current year to obtain the monthly weight coefficient of industrial users without remote transmission;
[0037] The hourly gas consumption of the second industrial user is equal to the industrial non-remote transmission month weight coefficient multiplied by the hourly gas consumption of the first industrial user.
[0038] Furthermore, the hourly gas consumption of the second commercial user obtained by analyzing the historical gas consumption data of the commercial user includes:
[0039] The historical gas consumption data of commercial users include: the monthly gas consumption of commercial users without remote transmission in the previous year of the current year and the total monthly gas consumption of commercial users with remote transmission in the previous year of the current year;
[0040] The monthly gas consumption of commercial users without remote transmission in the previous year of the current year is divided by the total monthly gas consumption of commercial users with remote transmission in the previous year of the current year to obtain the weight coefficient of the commercial users without remote transmission;
[0041] The hourly gas consumption of the second commercial user is equal to the commercial non-remote transmission monthly weight coefficient multiplied by the hourly gas consumption of the first commercial user.
[0042] The embodiment of the present invention further provides a user hourly gas consumption prediction device, the device comprising:
[0043] An acquisition module is used to acquire gas usage data of residential users, industrial users and commercial users, wherein the gas usage data of residential users is historical gas usage data of residential users, the gas usage data of industrial users includes: hourly gas usage data transmitted by industrial users and historical gas usage data of industrial users, and the gas usage data of commercial users includes: hourly gas usage data transmitted by commercial users and historical gas usage data of commercial users;
[0044] A residential user data analysis module, used to analyze the historical gas consumption data of the residential users to obtain the total hourly gas consumption of the residential users;
[0045] An industrial user data analysis module is used to obtain the hourly gas consumption of a first industrial user by directly adding the hourly gas consumption data transmitted by the industrial users, and to obtain the hourly gas consumption of a second industrial user by analyzing the historical gas consumption data of the industrial users, wherein the hourly gas consumption of the first industrial user plus the hourly gas consumption of the second industrial user equals the total hourly gas consumption of the industrial users;
[0046] A commercial user data analysis module, configured to obtain the hourly gas consumption of a first commercial user by directly adding the hourly gas consumption data transmitted by the commercial users, and to obtain the hourly gas consumption of a second commercial user by analyzing the historical gas consumption data of the commercial users, wherein the hourly gas consumption of the first commercial user plus the hourly gas consumption of the second commercial user equals the total hourly gas consumption of the commercial users;
[0047] A calculation and allocation module is used to add the total hourly gas consumption of the residential users, the total hourly gas consumption of the industrial users and the total hourly gas consumption of the commercial users to obtain the total hourly gas consumption of the users, and allocate the total hourly gas consumption of the residential users to the residential users, allocate the total hourly gas consumption of the industrial users to the industrial users, and allocate the total hourly gas consumption of the commercial users to the commercial users every hour.
[0048] In the present invention, for residential users, the total hourly gas consumption of residential users can be obtained based on the analysis of the historical gas consumption data of the residential users, and the residential users can be allocated. For industrial users and commercial users, the gas consumption data of both include teletransmission data and non-teletransmission data. The teletransmission data, i.e., the teletransmission gas consumption data of industrial users and the teletransmission gas consumption data of commercial users, can be directly obtained. The hourly gas consumption of the first industrial user can be obtained by directly adding the teletransmission gas consumption data of the industrial users, and the hourly gas consumption of the first commercial user can be obtained by directly adding the teletransmission gas consumption data of the commercial users. The non-teletransmission data, i.e., the historical gas consumption data of industrial users and the historical gas consumption data of commercial users, cannot be obtained directly, but need to be further calculated. That is to say, the hourly gas consumption of the second industrial user can be obtained based on the analysis of the historical gas consumption data of the industrial users, and the hourly gas consumption of the second commercial user can be obtained based on the analysis of the historical gas consumption data of the commercial users. The hourly gas consumption of the first industrial user plus the hourly gas consumption of the second industrial user equals the total hourly gas consumption of the industrial users, the hourly gas consumption of the first commercial user plus the hourly gas consumption of the second commercial user equals the total hourly gas consumption of the commercial users, the total hourly gas consumption of the residential users, the total hourly gas consumption of the industrial users and the total hourly gas consumption of the commercial users are added together to obtain the total hourly gas consumption of the users, and the total hourly gas consumption of the residential users is allocated to the residential users, the total hourly gas consumption of the industrial users is allocated to the industrial users, and the total hourly gas consumption of the commercial users is allocated to the commercial users every hour. By adopting the present invention, the gas flow of different users is allocated through the historical gas consumption data and real-time gas consumption data of different users, so that the hourly gas consumption of users can be predicted more accurately and allocated. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 is a schematic diagram of a method for predicting hourly gas consumption of a user provided by an embodiment of the present invention;
[0051] Figure 2 is a flow chart of a process for obtaining a first correction coefficient provided by an embodiment of the present invention;
[0052] Figure 3 is a flow chart for obtaining the hourly gas consumption of a second industrial user according to the analysis of the historical gas consumption data of the industrial user provided by an embodiment of the present invention;
[0053] Figure 4 is a flow chart for obtaining the hourly gas consumption of a second commercial user according to the analysis of the historical gas consumption data of the commercial user provided by an embodiment of the present invention;
[0054] Figure 5 It is a schematic diagram of a user hourly gas consumption prediction device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] Figure 1 is a schematic diagram of a method for predicting user hourly gas consumption provided by an embodiment of the present invention, the method comprising:
[0057] S101. Obtain gas usage data of residential users, industrial users and commercial users, wherein the gas usage data of residential users are historical gas usage data of residential users, the gas usage data of industrial users include: remote hourly gas usage data of industrial users and historical gas usage data of industrial users, and the gas usage data of commercial users include: remote hourly gas usage data of commercial users and historical gas usage data of commercial users.
[0058] The industrial user's remote hourly gas usage data and the commercial user's remote hourly gas usage data can be transmitted to the SCADA system via a remote transmission device, and the number of the remote transmission devices is multiple.
[0059] S102. Analyze the historical gas consumption data of the residential users to obtain the total hourly gas consumption of the residential users.
[0060] The hourly gas consumption of residential users can be expressed as Q R To express.
[0061] According to the analysis of the historical gas consumption data of residential users, the total hourly gas consumption of residential users includes:
[0062] Obtain the gas usage data of the smart gas meter for the entire year of the previous year as the total data set, and randomly extract a preset number of gas usage data from the total data set as the basic data set, wherein the basic data set includes the gas usage of residential users recorded hourly throughout the year;
[0063] Dividing and sorting the data in the basic data set according to time sequence to obtain a sorted data set, wherein the window width divided according to time sequence is 1 hour;
[0064] Selecting the middle 80% of the data in the sorted data set as a representative data set;
[0065] In the representative data set, averaging the data corresponding to time t to obtain a first average;
[0066] In the representative data set, averaging the data corresponding to time t+1 to obtain a second average;
[0067] The second average minus the first average obtains the hourly gas consumption of residential users in the time period from t to t+1, where t is a positive integer ranging from 0 to 23;
[0068] The number of residential users is obtained, and the total hourly gas consumption of the residents is obtained by multiplying the number of residential users, the hourly gas consumption of the residential users, and a first correction coefficient.
[0069] The process of obtaining the first correction coefficient will be described in detail in subsequent embodiments and will not be repeated here.
[0070] S103. The hourly gas consumption of the first industrial user is obtained by directly adding up the remotely transmitted hourly gas consumption data of the industrial users, and the hourly gas consumption of the second industrial user is obtained by analyzing the historical gas consumption data of the industrial users. The hourly gas consumption of the first industrial user plus the hourly gas consumption of the second industrial user is equal to the total hourly gas consumption of the industrial users.
[0071] Among them, the hourly gas consumption of the first industrial user can be expressed as Q I The hourly gas consumption of the second industrial user can be expressed as Q i To express.
[0072] The hourly gas consumption of the second industrial user obtained by analyzing the historical gas consumption data of the industrial user will be described in detail in subsequent embodiments and will not be repeated here.
[0073] S104. The hourly gas consumption of the first commercial user is obtained by directly adding the remotely transmitted hourly gas consumption data of the commercial users, and the hourly gas consumption of the second commercial user is obtained by analyzing the historical gas consumption data of the commercial users. The hourly gas consumption of the first commercial user plus the hourly gas consumption of the second commercial user equals the total hourly gas consumption of the commercial users.
[0074] Among them, the hourly gas consumption of the first commercial user can be expressed as Q B The hourly gas consumption of the second commercial user can be expressed as Q b To express.
[0075] The hourly gas consumption of the second commercial user obtained by analyzing the historical gas consumption data of the commercial user will be described in detail in subsequent embodiments and will not be repeated here.
[0076] S105. Add the total hourly gas consumption of the residential users, the total hourly gas consumption of the industrial users and the total hourly gas consumption of the commercial users to obtain the total hourly gas consumption of the users, and allocate the total hourly gas consumption of the residential users to the residential users, the total hourly gas consumption of the industrial users to the industrial users, and the total hourly gas consumption of the commercial users to the commercial users every hour.
[0077] Among them, the total hourly gas consumption of users can be expressed by Q, Q = Q R +Q I +Q i +Q B +Q b。
[0078] Figure 2 : is a flowchart of a process for obtaining a first correction coefficient provided by an embodiment of the present invention, wherein the process for obtaining the first correction coefficient is:
[0079] S201. Obtain the total hourly gas consumption of the first residential user calculated using the weight method;
[0080] The step of obtaining the hourly gas consumption of the first residential user calculated by the weight method includes:
[0081] Obtain the monthly historical total gas consumption of residential users and the monthly historical total gas consumption of users in a certain month of the previous year in the current year;
[0082] The monthly weight coefficient is obtained by dividing the monthly historical total gas consumption of the residential user by the monthly historical total gas consumption of the user;
[0083] The total hourly gas consumption of the first residential user is calculated based on the monthly weight coefficient, the total hourly gas consumption of the industrial user, and the total hourly gas consumption of the commercial user.
[0084] For example, if the current year is 2024, the monthly weight coefficient x can be expressed as:
[0085]
[0086] After learning that Q I +Q i +Q B +Q b In the case of the first residential user, the total hourly gas consumption Q R It can be expressed as:
[0087]
[0088] S202. Obtaining the total hourly gas consumption of the second residential user calculated using the residential user flow rule;
[0089] The obtaining of the total hourly gas consumption of the second residential user calculated using the residential user flow rule includes:
[0090] Get the sum of the number of residential users;
[0091] Obtain the hourly gas consumption of residential users within a preset time period;
[0092] The total hourly gas consumption of the second residential users is obtained by multiplying the sum of the number of residential users by the hourly gas consumption of the residential users.
[0093] The hourly gas consumption of the second residential user can be expressed as:
[0094]
[0095] Among them, the is the sum of the number of residential users, and q t is the hourly gas consumption of residential users during the period from t to t+1, Indicates the hourly gas consumption of the second residential user.
[0096] S203. The first correction coefficient is equal to the total hourly gas consumption of the first residential user divided by the total hourly gas consumption of the second residential user.
[0097] The first correction coefficient can be represented by ε1.
[0098] Furthermore, the method further comprises:
[0099] When the number of residential users changes, the total hourly gas consumption of the residential users needs to be multiplied by the second correction coefficient;
[0100] The second correction coefficient is equal to the number of resident users in the current year divided by the number of resident users in the previous year of the current year.
[0101] The second correction factor can be expressed as ε # To indicate that when the current year is 2024, the second correction factor can be expressed as:
[0102]
[0103] Specifically, each cell corresponds to one second correction coefficient, and when the number of resident users in the cell changes, the second correction coefficient also changes accordingly.
[0104] Figure 3 The flowchart of obtaining the hourly gas consumption of the second industrial user according to the historical gas consumption data of the industrial user provided by the embodiment of the present invention, wherein obtaining the hourly gas consumption of the second industrial user according to the historical gas consumption data of the industrial user includes:
[0105] S301. The historical gas consumption data of industrial users include: the monthly gas consumption of industrial users without remote transmission in the previous year of the current year and the total monthly gas consumption of industrial users with remote transmission in the previous year of the current year.
[0106] The total monthly gas consumption of remote industrial users in the previous year of the current year is the sum of the gas consumption of remote industrial users, and the gas consumption of remote industrial users can be obtained by the SCADA system. The monthly gas consumption here can be a preset month, which is set by the user.
[0107] The monthly gas consumption of industrial users without remote transmission in the previous year of the current year can be obtained by subtracting the monthly total gas consumption of industrial users with remote transmission in the previous year of the current year from the monthly total gas consumption of industrial users in the previous year of the current year. S302. The monthly gas consumption of industrial users without remote transmission in the previous year of the current year is divided by the monthly total gas consumption of industrial users with remote transmission in the previous year of the current year to obtain the monthly weight coefficient of industrial users without remote transmission.
[0108] The industrial non-teletransmission month weight coefficient α can be expressed as:
[0109]
[0110] S303. The hourly gas consumption of the second industrial user is equal to the monthly weight coefficient of the industrial non-remote transmission multiplied by the hourly gas consumption of the first industrial user.
[0111] The second industrial user's hourly gas consumption Q i =αQ I , where α is the monthly weight coefficient of the industry without remote transmission, and Q i This is the hourly gas consumption of the first industrial user.
[0112] The hourly gas consumption of a certain industrial user is obtained in the same manner as the hourly gas consumption of the first industrial user.
[0113] If some industrial users have no remote transmission data or the gas consumption data is missing due to other reasons, the method of obtaining their gas consumption is the same as the method of obtaining the hourly gas consumption of the first industrial user.
[0114] Figure 4 The flowchart of obtaining the hourly gas consumption of a second commercial user according to the analysis of the historical gas consumption data of the commercial user provided by an embodiment of the present invention, wherein obtaining the hourly gas consumption of the second commercial user according to the analysis of the historical gas consumption data of the commercial user comprises:
[0115] S401. The historical gas usage data of commercial users include: the monthly gas usage of commercial users without remote transmission in the previous year of the current year and the total monthly gas usage of commercial users with remote transmission in the previous year of the current year.
[0116] The total monthly gas consumption of remote commercial users in the previous year of the current year is the sum of the gas consumption of remote commercial users, and the gas consumption of remote commercial users can be obtained by the SCADA system. The monthly gas consumption here can be a preset month, which is set by the user.
[0117] The monthly gas consumption of commercial users without remote transmission in the previous year of the current year can be obtained by subtracting the total monthly gas consumption of commercial users with remote transmission in the previous year of the current year from the total monthly gas consumption of commercial users in the previous year of the current year.
[0118] S402. The monthly gas consumption of commercial users without remote transmission in the previous year of the current year is divided by the total monthly gas consumption of commercial users with remote transmission in the previous year of the current year to obtain the monthly weight coefficient of commercial users without remote transmission.
[0119] The commercial non-teleportation month weight coefficient can be expressed as:
[0120]
[0121] S403. The hourly gas consumption of the second commercial user is equal to the commercial non-remote transmission monthly weight coefficient multiplied by the hourly gas consumption of the first commercial user.
[0122] The second commercial user's hourly gas consumption Q b =βQ B , where α is the monthly weight coefficient of the industry without remote transmission, and Q B This is the hourly gas consumption of the first industrial user.
[0123] The hourly gas consumption of a certain commercial user is obtained in the same manner as the hourly gas consumption of the first commercial user.
[0124] If some commercial users have no remote transmission data or their gas consumption data is missing due to other reasons, the method for obtaining their gas consumption is the same as the method for obtaining the hourly gas consumption of the first commercial user.
[0125] Figure 5 is a schematic diagram of a user hourly gas consumption prediction device provided by an embodiment of the present invention, the device comprising:
[0126] The acquisition module 501 is used to acquire the gas usage data of residential users, industrial users and commercial users, wherein the gas usage data of residential users is the historical gas usage data of residential users, the gas usage data of industrial users includes: the hourly gas usage data of industrial users transmitted remotely and the historical gas usage data of industrial users, and the gas usage data of commercial users includes: the hourly gas usage data of commercial users transmitted remotely and the historical gas usage data of commercial users;
[0127] The residential user data analysis module 502 is used to analyze the historical gas consumption data of the residential users and obtain the total hourly gas consumption of the residential users;
[0128] The industrial user data analysis module 503 is used to obtain the hourly gas consumption of the first industrial user by directly adding the hourly gas consumption data transmitted by the industrial users, and to obtain the hourly gas consumption of the second industrial user by analyzing the historical gas consumption data of the industrial users, and the hourly gas consumption of the first industrial user plus the hourly gas consumption of the second industrial user equals the total hourly gas consumption of the industrial users;
[0129] The commercial user data analysis module 504 is used to obtain the hourly gas consumption of the first commercial user by directly adding the hourly gas consumption data transmitted by the commercial users, and to obtain the hourly gas consumption of the second commercial user by analyzing the historical gas consumption data of the commercial users, wherein the hourly gas consumption of the first commercial user plus the hourly gas consumption of the second commercial user equals the total hourly gas consumption of the commercial users;
[0130] The calculation and allocation module 505 is used to add the total hourly gas consumption of the residential users, the total hourly gas consumption of the industrial users and the total hourly gas consumption of the commercial users to obtain the total hourly gas consumption of the users, and allocate the total hourly gas consumption of the residential users to the residential users, allocate the total hourly gas consumption of the industrial users to the industrial users, and allocate the total hourly gas consumption of the commercial users to the commercial users every hour.
[0131] In the present invention, for residential users, the total hourly gas consumption of residential users can be obtained based on the analysis of the historical gas consumption data of the residential users, and the residential users can be allocated. For industrial users and commercial users, the gas consumption data of both include teletransmission data and non-teletransmission data. The teletransmission data, i.e., the teletransmission gas consumption data of industrial users and the teletransmission gas consumption data of commercial users, can be directly obtained. The hourly gas consumption of the first industrial user can be obtained by directly adding the teletransmission gas consumption data of the industrial users, and the hourly gas consumption of the first commercial user can be obtained by directly adding the teletransmission gas consumption data of the commercial users. The non-teletransmission data, i.e., the historical gas consumption data of industrial users and the historical gas consumption data of commercial users, cannot be obtained directly, but need to be further calculated. That is to say, the hourly gas consumption of the second industrial user can be obtained based on the analysis of the historical gas consumption data of the industrial users, and the hourly gas consumption of the second commercial user can be obtained based on the analysis of the historical gas consumption data of the commercial users. The hourly gas consumption of the first industrial user plus the hourly gas consumption of the second industrial user equals the total hourly gas consumption of the industrial users, the hourly gas consumption of the first commercial user plus the hourly gas consumption of the second commercial user equals the total hourly gas consumption of the commercial users, the total hourly gas consumption of the residential users, the total hourly gas consumption of the industrial users and the total hourly gas consumption of the commercial users are added together to obtain the total hourly gas consumption of the users, and the total hourly gas consumption of the residential users is allocated to the residential users, the total hourly gas consumption of the industrial users is allocated to the industrial users, and the total hourly gas consumption of the commercial users is allocated to the commercial users every hour. By adopting the present invention, the gas flow of different users is allocated through the historical gas consumption data and real-time gas consumption data of different users, so that the hourly gas consumption of users can be predicted more accurately and allocated.
[0132] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.
Claims
1. A method for predicting user hourly gas consumption, characterized in that: include: Obtaining gas usage data of residential users, industrial users and commercial users, wherein the gas usage data of residential users is historical gas usage data of residential users, the gas usage data of industrial users includes: hourly gas usage data transmitted remotely by industrial users and historical gas usage data of industrial users, and the gas usage data of commercial users includes: hourly gas usage data transmitted remotely by commercial users and historical gas usage data of commercial users; Analyze the historical gas consumption data of the residential users to obtain the total hourly gas consumption of the residential users; The hourly gas consumption of the first industrial user is directly added according to the hourly gas consumption data transmitted by the industrial user, and the hourly gas consumption of the second industrial user is obtained according to the historical gas consumption data of the industrial user. The hourly gas consumption of the first industrial user plus the hourly gas consumption of the second industrial user equals the total hourly gas consumption of the industrial users; The hourly gas consumption of the first commercial user is directly added according to the hourly gas consumption data transmitted by the commercial user, and the hourly gas consumption of the second commercial user is obtained according to the historical gas consumption data of the commercial user. The hourly gas consumption of the first commercial user plus the hourly gas consumption of the second commercial user equals the total hourly gas consumption of the commercial users; The total hourly gas consumption of the residential users, the total hourly gas consumption of the industrial users and the total hourly gas consumption of the commercial users are added together to obtain the total hourly gas consumption of users. Every hour, the total hourly gas consumption of residential users is allocated to the residential users, the total hourly gas consumption of industrial users is allocated to the industrial users, and the total hourly gas consumption of commercial users is allocated to the commercial users.
2. The method for predicting user hourly gas consumption according to claim 1, characterized in that: The industrial user's remote hourly gas usage data and the commercial user's remote hourly gas usage data are both acquired through the SCADA system.
3. The method for predicting user hourly gas consumption according to claim 1, characterized in that: According to the analysis of the historical gas consumption data of residential users, the total hourly gas consumption of residential users includes: Obtain the gas usage data of the smart gas meter for the entire year of the previous year as the total data set, and randomly extract a preset number of gas usage data from the total data set as the basic data set, wherein the basic data set includes the gas usage of residential users recorded hourly throughout the year; Dividing and sorting the data in the basic data set according to time series to obtain a sorted data set, wherein the window width divided according to time series is 1 hour; Selecting the middle 80% of the data in the sorted data set as a representative data set; In the representative data set, averaging the data corresponding to time t to obtain a first average; In the representative data set, averaging the data corresponding to time t+1 to obtain a second average; The second average minus the first average obtains the hourly gas consumption of residential users in the time period from t to t+1, where t is a positive integer ranging from 0 to 23; The number of residential users is obtained, and the total hourly gas consumption of the residents is obtained by multiplying the number of residential users, the hourly gas consumption of the residential users, and a first correction coefficient.
4. The method for predicting user hourly gas consumption according to claim 3, characterized in that: The process of obtaining the first correction coefficient is: Obtain the total hourly gas consumption of the first residential user calculated using the weight method; Obtain the total hourly gas consumption of the second residential user calculated using the residential user flow rule; The first correction coefficient is equal to the total hourly gas consumption of the first residential user divided by the total hourly gas consumption of the second residential user.
5. The method for predicting user hourly gas consumption according to claim 4, characterized in that: The step of obtaining the hourly gas consumption of the first residential user calculated by the weight method includes: Obtain the total monthly gas consumption of residential users and the total monthly gas consumption of users in a certain month of the previous year in the current year; The weight is obtained by dividing the total monthly gas consumption of the residential user by the total monthly gas consumption of the user; The total hourly gas consumption of the first residential user is calculated according to the weight, the total hourly gas consumption of the industrial user, and the total hourly gas consumption of the commercial user.
6. The method for predicting user hourly gas consumption according to claim 4, characterized in that: The obtaining of the second residential user's total hourly gas consumption calculated using the residential user's flow rule comprises: Get the sum of the number of residential users; Obtain the hourly gas consumption of residential users within a preset time period; The total hourly gas consumption of the second residential users is obtained by multiplying the sum of the number of residential users by the hourly gas consumption of the residential users.
7. The method for predicting user hourly gas consumption according to claim 4, characterized in that: The method further comprises: When the number of residential users changes, the total hourly gas consumption of the residential users needs to be multiplied by the second correction coefficient; The second correction coefficient is equal to the number of resident users in the current year divided by the number of resident users in the previous year of the current year.
8. The method for predicting user hourly gas consumption according to claim 1, characterized in that: According to the analysis of the historical gas consumption data of the industrial users, the hourly gas consumption of the second industrial users includes: The historical gas consumption data of industrial users include: the monthly gas consumption of industrial users without remote transmission in the previous year of the current year and the total monthly gas consumption of industrial users with remote transmission in the previous year of the current year; The monthly gas consumption of industrial users without remote transmission in the previous year of the current year is divided by the total monthly gas consumption of industrial users with remote transmission in the previous year of the current year to obtain the monthly weight coefficient of industrial users without remote transmission; The hourly gas consumption of the second industrial user is equal to the industrial non-remote transmission month weight coefficient multiplied by the hourly gas consumption of the first industrial user.
9. The method for predicting user hourly gas consumption according to claim 1, characterized in that: The hourly gas consumption of the second commercial user obtained by analyzing the historical gas consumption data of the commercial user includes: The historical gas consumption data of commercial users include: the monthly gas consumption of commercial users without remote transmission in the previous year of the current year and the total monthly gas consumption of commercial users with remote transmission in the previous year of the current year; The monthly gas consumption of commercial users without remote transmission in the previous year of the current year is divided by the total monthly gas consumption of commercial users with remote transmission in the previous year of the current year to obtain the weight coefficient of the commercial users without remote transmission; The hourly gas consumption of the second commercial user is equal to the commercial non-remote transmission monthly weight coefficient multiplied by the hourly gas consumption of the first commercial user.
10. A user hourly gas consumption prediction device, characterized in that: The device comprises: An acquisition module is used to acquire gas usage data of residential users, industrial users and commercial users, wherein the gas usage data of residential users is historical gas usage data of residential users, the gas usage data of industrial users includes: hourly gas usage data transmitted remotely by industrial users and historical gas usage data of industrial users, and the gas usage data of commercial users includes: hourly gas usage data transmitted remotely by commercial users and historical gas usage data of commercial users; A residential user data analysis module, used to analyze the historical gas consumption data of the residential users to obtain the total hourly gas consumption of the residential users; An industrial user data analysis module is used to obtain the hourly gas consumption of a first industrial user by directly adding the hourly gas consumption data transmitted by the industrial users, and to obtain the hourly gas consumption of a second industrial user by analyzing the historical gas consumption data of the industrial users, wherein the hourly gas consumption of the first industrial user plus the hourly gas consumption of the second industrial user equals the total hourly gas consumption of the industrial users; The commercial user data analysis module is used to directly add the remote hourly gas usage data of the commercial users to obtain the hourly gas usage of the first commercial user, and to analyze the hourly gas usage of the second commercial user based on the historical gas usage data of the commercial users. The hourly gas usage of the first commercial user plus the hourly gas usage of the second commercial user equals the total hourly gas usage of the commercial users. The calculation and allocation module is used to add the total hourly gas usage of the residential users, the total hourly gas usage of the industrial users and the total hourly gas usage of the commercial users to obtain the total hourly gas usage of the users, and to allocate the total hourly gas usage of the residential users to the residential users, the total hourly gas usage of the industrial users to the industrial users, and the total hourly gas usage of the commercial users to the commercial users every hour.