A method and system for validating energy measurement in a high pressure gas distribution network. The method comprises the steps of calculating a validation energy value using an artificial neural network (ANN) engine based on measured parameters associated with a gas flow in the gas distribution network; measuring an actual energy value of the gas flow; and comparing the validation energy value and the actual energy value, wherein the actual energy value is validated if the validation energy value and the actual energy value are substantially equal.

Patent
   9430734
Priority
Jun 25 2010
Filed
Apr 29 2011
Issued
Aug 30 2016
Expiry
Nov 01 2033
Extension
917 days
Assg.orig
Entity
Large
0
41
currently ok
1. A method for validating energy measurement in a high pressure gas distribution network, the method comprising the steps of:
calculating a validation energy value using an artificial neural network (ANN) engine based on measured parameters associated with a gas flow in the gas distribution network;
measuring a field energy value of the gas flow; and
comparing the validation energy value and the measured energy value, wherein the measured energy value is validated if the validation energy value and the measured energy value are substantially equal.
11. A system for validating energy measurement in a high pressure gas distribution network, comprising:
means for calculating a validation energy value using an artificial neural network (ANN) engine based on measured parameters associated with a gas flow in the gas distribution network;
means for measuring a field energy value of the gas flow; and
means for comparing the validation energy value and the measured energy value, wherein the measured energy value is validated if the validation energy value and the measured energy value are substantially equal.
21. A data storage medium comprising computer code for instructing a computing device to execute a method for validating energy measurement in a high pressure gas distribution network, the method comprising the steps of:
calculating a validation energy value using an artificial neural network (ANN) engine based on measured parameters associated with a gas flow in the gas distribution network;
measuring a field energy value of the gas flow; and
comparing the validation energy value and the measured energy value, wherein the measured energy value is validated if the validation energy value and the measured energy value are substantially equal.
2. The method as claimed in claim 1, wherein the ANN engine is programmed to represent an energy value prediction model based on the measured parameters.
3. The method as claimed in claim 1, wherein the measured parameters comprise a gross volume, a pressure, a temperature, a specific gravity, and a calorific value of the gas flow.
4. The method as claimed in claim 1, wherein the ANN engine comprises a multilayered perceptron network structure.
5. The method as claimed in claim 1, further comprising determining a percentage difference between the validation energy value and the measured energy value.
6. The method as claimed in claim 5, further comprising identifying an alarm event based on the percentage difference exceeding a threshold.
7. The method as claimed in claim 1, comprising providing the measured parameters as a block of data comprising respective sets of the measured parameters and respective measured energy values over a selected time period;
calculating respective validation energy values based on the respective sets of the measured parameters; and
plotting both the measured energy values and the calculated validation energy values.
8. The method as claimed in claim 1, further comprising learning the energy value prediction model.
9. The method as claimed in claim 8, wherein the learning comprises:
providing historical data for the measured parameters and the measured energy value; and
applying a learning algorithm to the ANN engine based on the historical data.
10. The method as claimed in claim 9, wherein providing the historical data comprises scaling the historical data for statistical standardization.
12. The system as claimed in claim 11, wherein the ANN engine is programmed to represent an energy value prediction model based on the measured parameters.
13. The system as claimed in claim 11, wherein the measured parameters comprise a gross volume, a pressure, a temperature, a specific gravity, and a calorific value of the gas flow.
14. The system as claimed in claim 11, wherein the ANN engine comprises a multilayered perceptron network structure.
15. The system as claimed in claim 11, further comprising means for determining a percentage difference between validation energy value and the measured energy value.
16. The system as claimed in claim 15, further comprising means for identifying an alarm event based on the percentage difference exceeding a threshold.
17. The system as claimed in claim 11, comprising:
means for providing the measured parameters as a block of data comprising respective sets of the measured parameters and respective measured energy values over a selected time period;
means for calculating respective validation energy values based on the respective sets of the measured parameters; and
means for plotting both the measured energy values and the calculated validation energy values.
18. The system as claimed in claim 11, further comprising means for learning the energy value prediction model.
19. The system as claimed in claim 18, wherein the means for learning comprises:
means for providing historical data for the measured parameters and the measured energy value; and
means for applying a learning algorithm to the ANN engine based on the historical data.
20. The system as claimed in claim 19, wherein means for providing the historical data comprises means for scaling the historical data for statistical standardization.

The present invention broadly relates to a method and system for validating energy measurement in a high pressure gas distribution network.

Natural gas is a vital component of the world's supplies of energy. It is one of the cleanest, safest, and most useful energy sources. Natural gas is combustible, and when burned, it gives off a large amount of energy. However, unlike other fossil fuels, natural gas burns cleanly and emits lower levels of potentially harmful by-products into the air.

Typically, natural gas is a combustible mixture of hydrocarbon gases. While natural gas is formed primarily of methane, it can also include ethane, propane, butane and pentane. The composition of natural gas can vary widely. Once brought from underground, natural gas is refined to remove impurities like water, other gases, sand, and other compounds. Some hydrocarbons may be removed and sold separately, including propane and butane for liquefied petroleum gas (LPG) production. After refining, the clean natural gas is transmitted through a network of pipelines. From these pipelines, natural gas is delivered to its point of use.

Worldwide, natural gas is used for many residential, commercial, and industrial applications. Residential applications typically use natural gas for heating and cooling homes, heating water, and fuelling gas ranges. Commercial applications, such as grocery stores and office buildings, use natural gas for e.g. heating and cooling. For industrial applications, natural gas is used e.g. as a feedstock for making chemicals such as anhydrous ammonia, and as a fuel for boilers and furnaces which may, in turns, generate electricity.

As mentioned above, natural gas is supplied to the customers via natural gas pipelines. This requires metering stations to be placed periodically along specific sections of the natural gas pipelines. These stations allow pipeline companies to monitor and manage the natural gas in their pipes. Essentially, these metering stations measure the flow of gas along the pipeline and calculate the amount of energy from the natural gas that is being transported via underground pipelines to the respective customers, thereby allowing pipeline companies to ‘track’ the natural gas as it flows along the pipeline. These stations usually employ specialized meters and computers to measure the natural gas as it flows through the pipeline, without causing any flow interruptions to their respective customers. Such stations are also known as custody transfer points, where the ownership of gas molecules exchanges between contractual binding parties.

Accurate delivery to the customer is crucial for any natural gas transporter company. Any unaccounted for gas (UFG) can cause significant damage to the accounting book, i.e. a loss of profit. Typically, in order to manage the natural gas that enters the pipeline, and to ensure that all customers receive accurate delivery of their respective portions of this gas, sophisticated control systems are required to monitor the gas as it travels through all sections of the lengthy pipeline network.

For example, in a conventional approach, a supervisory control and data acquisition (SCADA) system is used. Billing is generated by the flow computer and the only means of verification is through validation, which is usually carried out e.g. once every 6 months. Thus, there may be errors in calculating the energy figure which are not timely detected. Some major contributing factors include drift, malfunctioning and freezing of measuring equipment (e.g. pressure, temperature and flow transmitters) at various custody transfer points, calculation error from the flow computer that is doing the billing calculation, gas chromatograph error and validation error. Importantly, a slight error in calculating the energy figure may lead to significant loss of profit.

A need therefore exists to provide a method and system for validating an energy measurement in a gas distribution network that seek to address at least one of the above problems.

In accordance with a first aspect of the present invention, there is provided a method for validating energy measurement in a high pressure gas distribution network, the method comprising the steps of:

calculating a validation energy value using an artificial neural network (ANN) engine based on measured parameters associated with a gas flow in the gas distribution network;

measuring an actual energy value of the gas flow; and

comparing the validation energy value and the actual energy value, wherein the actual energy value is validated if the validation energy value and the actual energy value are substantially equal.

The ANN engine may be programmed to represent an energy value prediction model based on the measured parameters.

The measured parameters may comprise a gross volume, a pressure, a temperature, a specific gravity and a calorific value of the gas flow.

The ANN engine may comprise a multilayered perceptron network structure.

The method may further comprise determining a percentage difference between the validation energy value and the measured energy value.

The method may further comprise identifying an alarm event based on the percentage difference exceeding a threshold.

The method may comprise providing the measured parameters as a block of data comprising respective sets of the measured parameters and respective measured energy values over a selected time period;

calculating respective validation energy values based on the respective sets of the measured parameters; and

plotting both the measured energy values and the calculated validation energy values.

The method may further comprise learning the energy value prediction model.

The learning may comprise:

providing historical data for the measured parameters and the measured energy value; and

applying a learning algorithm to the ANN engine based on the historical data.

Providing the historical data may comprise scaling the historical data for statistical standardization.

In accordance with a second aspect of the present invention, there is provided a system for validating energy measurement in a high pressure gas distribution network, comprising:

means for calculating a validation energy value using an artificial neural network (ANN) engine based on measured parameters associated with a gas flow in the gas distribution network;

means for measuring an actual energy value of the gas flow; and

means for comparing the validation energy value and the actual energy value, wherein the actual energy value is validated if the validation energy value and the actual energy value are substantially equal.

The ANN engine may be programmed to represent an energy value prediction model based on the measured parameters.

The measured parameters may comprise a gross volume, a pressure, a temperature, a specific gravity and a calorific value of the gas flow.

The ANN engine may comprise a multilayered perceptron network structure.

The system may further comprise means for determining a percentage difference between validation energy value and the measured energy value.

The system may further comprise means for identifying an alarm event based on the percentage difference exceeding a threshold.

The system may comprise:

means for providing the measured parameters as a block of data comprising respective sets of the measured parameters and respective measured energy values over a selected time period;

means for calculating respective validation energy values based on the respective sets of the measured parameters; and

means for plotting both the measured energy values and the calculated validation energy values.

The system may further comprise means for learning the energy value prediction model.

The means for learning may comprise:

means for providing historical data for the measured parameters and the measured energy value; and

means for applying a learning algorithm to the ANN engine based on the historical data.

The means for providing the historical data may comprise means for scaling the historical data for statistical standardization

In accordance with a third aspect of the present invention, there is provided a data storage medium comprising computer code means for instructing a computing device to execute a method for validating energy measurement in a high pressure gas distribution network, the method comprising the steps of:

calculating a validation energy value using an artificial neural network (ANN) engine based on measured parameters associated with a gas flow in the gas distribution network;

measuring an actual energy value of the gas flow; and

comparing the validation energy value and the actual energy value, wherein the actual energy value is validated if the validation energy value and the actual energy value are substantially equal.

Embodiments of the invention will be better understood and readily apparent to one of ordinary skill in the art from the following written description, by way of example only, and in conjunction with the drawings, in which:

FIG. 1 shows a general block diagram of a system for validating an energy measurement in a gas distribution network according to an example embodiment.

FIG. 2 shows a schematic diagram of an implementation of the system of FIG. 1 according to an example embodiment.

FIG. 3(a) shows a schematic representation of a perceptron.

FIG. 3(b) shows a graph of an activation function used in the system of an example embodiment.

FIG. 4 shows a schematic representation of a multilayered perceptron (MLP) network according to an example embodiment.

FIG. 5(a) shows a graph comparing the energy value predicted using an artificial neural network (ANN) engine and the measured energy value in an example embodiment.

FIG. 5(b) shows a graph illustrating the Mean Absolute Error (MAE) performance of the ANN engine of the example embodiment.

FIG. 5(c) shows a chart comparing the performance of the ANN engine of the example embodiment with that of a conventional regression method.

FIG. 6 shows a flow chart illustrating a method of operating the validating system according to an example embodiment.

FIG. 7 shows a screen-shot of the graphical user interface (GUI) of the monitoring system according to an example embodiment.

FIG. 8(a) shows a general schematic diagram illustrating an alarm system according to an example embodiment.

FIG. 8(b) shows a detailed schematic diagram of an implementation of the alarm system of FIG. 8(a).

FIG. 8(c) shows a screen-shot of the GUI of the alarm system according to an example embodiment.

FIG. 9 shows a flow chart illustrating a method for validating an energy measurement in a gas distribution network according to an example embodiment.

FIG. 10 shows a general block diagram of a computer system for implementing the method and system of an example embodiment.

The following example embodiments describe a method and system for validating energy measurement in a gas distribution network. Preferably, the method and system of the example embodiments can act as continuous validation as well as monitoring tools with regards to energy measurement.

FIG. 1 shows a general block diagram of a system 100 for validating energy measurement in a high pressure gas distribution network according to an example embodiment. System 100 comprises a prediction model engine 120 for predicting an energy value of the gas flow in the distribution network based on historical data of a plurality of parameters at that point. Preferably, the prediction model engine 120 comprises a trained artificial neural network (ANN) engine. In the example embodiment, the input parameters comprise gross volume 102, pressure 104, temperature 106, specific gravity 108 and calorific value 110 (to be discussed in detail below). The system 100 in this embodiment also comprises data storage means (not shown) and mechanism for retrieving and transmitting data to a control center, such as for example via a SCADA or a very small aperture terminal (V-SAT) system (not shown).

In the example embodiment, actual data of the input parameters is provided to the prediction model engine 120. The predicted (i.e. validation) energy value 130 is compared with the measured energy value 140 obtained from field equipment (not shown) for determining an error/difference 150. Typically, under normal circumstances, a percentage error/difference between the predicted energy value 130 and the measured energy value 140 is less than about 1%, i.e. substantially equal. If, for any reason, any one of the input parameters is abnormal (e.g. a sudden spike or drop or drift), the predicted energy value 130 and the measured energy value 140 become substantially different as they are obtained from different methods in the example embodiment. Hence, in the example embodiment, the system 100 can advantageously identify potential billing errors. For example, if the error/difference 150 exceeds a predetermined threshold, the system can 100 alerts the user of the potential problems so that corrective actions may be taken. In addition, by employing an ANN engine, the system 100 of the example embodiment is advantageously capable of self learning in order to enhance the algorithm over time based on the collected historical data set.

Some portions of the description which follows are explicitly or implicitly presented in terms of algorithms and functional or symbolic representations of operations on data within a computer memory. These algorithmic descriptions and functional or symbolic representations are the means used by those skilled in the data processing arts to convey most effectively the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities, such as electrical, magnetic or optical signals capable of being stored, transferred, combined, compared, and otherwise manipulated.

Unless specifically stated otherwise, and as apparent from the following, it will be appreciated that throughout the present specification, discussions utilizing terms such as “scanning”, “calculating”, “determining”, “replacing”, “generating”, “initializing”, “outputting”, or the like, refer to the action and processes of a computer system, or similar electronic device, that manipulates and transforms data represented as physical quantities within the computer system into other data similarly represented as physical quantities within the computer system or other information storage, transmission or display devices.

The present specification also discloses apparatus for performing the operations of the methods. Such apparatus may be specially constructed for the required purposes, or may comprise a general purpose computer or other device selectively activated or reconfigured by a computer program stored in the computer. The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. Various general purpose machines may be used with programs in accordance with the teachings herein. Alternatively, the construction of more specialized apparatus to perform the required method steps may be appropriate. The structure of a conventional general purpose computer will appear from the description below.

In addition, the present specification also implicitly discloses a computer program, in that it would be apparent to the person skilled in the art that the individual steps of the method described herein may be put into effect by computer code. The computer program is not intended to be limited to any particular programming language and implementation thereof. It will be appreciated that a variety of programming languages and coding thereof may be used to implement the teachings of the disclosure contained herein. Moreover, the computer program is not intended to be limited to any particular control flow. There are many other variants of the computer program, which can use different control flows without departing from the spirit or scope of the invention.

Furthermore, one or more of the steps of the computer program may be performed in parallel rather than sequentially. Such a computer program may be stored on any computer readable medium. The computer readable medium may include storage devices such as magnetic or optical disks, memory chips, or other storage devices suitable for interfacing with a general purpose computer. The computer readable medium may also include a hard-wired medium such as exemplified in the Internet system, or wireless medium such as exemplified in the GSM mobile telephone system. The computer program when loaded and executed on such a general-purpose computer effectively results in an apparatus that implements the steps of the preferred method.

FIG. 2 shows a schematic diagram of an implementation of the system of FIG. 1 according to an example embodiment. The implementation is carried out in the example embodiment using MATLAB software from The MathWorks, Inc. However, it will be appreciated that other mathematical modeling software may be used in alternate embodiments.

As can be seen from FIG. 2, input parameters 102, 104, 106, 108, 110 corresponding to gross volume, pressure, temperature, specific gravity and calorific value respectively are provided to the prediction model engine 120. Additional input parameters to the system in the example embodiment include the actual (i.e. measured) energy value 140 and standard volume 202.

In the example embodiment, output 210 of the prediction model engine, in the form of the predicted energy value, is displayed as e.g. a graph or stored for further analysis. Preferably, output 210 is also used for calculating a difference 220 with the actual energy value 140, and for calculating a percentage error 230 when compared to the actual energy value 140 via a function 204. Furthermore, in this example embodiment, the calorific value 110 and standard volume 202 are optionally used to calculate an alternate energy value via a function 206. The alternate energy value can act as a further reference for verifying the predicted energy value. The predicted energy value, actual energy value and alternate energy value are then analyzed together and the output of the analysis is in the form of data 240.

Input Parameters

As described above, natural gas comprises primarily methane, but also significant quantities of ethane, butane, propane, carbon dioxide, nitrogen, helium, and hydrogen sulphide. Table 1 shows a typical composition of natural gas.

TABLE 1
Methane CH4 70-90%
Ethane C2H6  0-20%
Propane C3H8
Butane C4H10
Carbon Dioxide CO2 0-8%
Oxygen O2   0-0.2%
Nitrogen N2 0-5%
Hydrogen Sulphide H2S 0-5%
Rare gases A, He, Ne, Xe trace

In addition, the energy value is usually calculated based on the following equation:
Energy Value=Standard Volume(SV)×Calorific Value(CV)  (1)
where
Standard Volume(SV)=Gross Volume×Correction Factor(CF)  (2)

and

CF = LineDensity BaseDensity or CF = P L P B × T B T L × Z B Z L
where:

PL = Line Pressure (bar a) ZB = Base Compressibility factor
PB = Base Pressure (bar a) ZL = Line Compressibility factor
TL = Line Temperature (K) TB = Base Temperature (K)

It will be appreciated that monitoring the energy value is preferred to just monitoring the flow rate as most major gas interconnects have some form of on-line energy measurement (in e.g. British Thermal Units or Btu). In addition, the methods for calculating the energy value of natural gas from analysis data are well documented in the art.

As can be seen from Equation (1), the energy value is proportional to the standard volume and calorific value of the gas being transported. The calorific value (or heating value) of natural gas is a measure of the heating power of the gas and typically depends on the composition of hydrocarbons in the gas. Impurities such as carbon dioxide, nitrogen, helium, hydrogen sulphide and other rare gases can influence the calorific value. Thus, the natural gas is preferably refined before being transported to remove the impurities, thereby improving the calorific value. In addition, in the example embodiment, a gas chromatograph is used to determine the gas composition for calculating the calorific value.

In addition, the compressibility factor (Z) typically relates to specific gravity of the gas, which is the density of the gas divided by the density of dry air of standard composition at the same specified conditions of pressure and temperature. By combining Equations (1) and (2), it can be seen that the energy value can be calculated based on gross volume, pressure, temperature, specific gravity and calorific value, which are used as input parameters in the example embodiment.

Prediction Model Engine

As described above, the prediction model engine 120 (FIG. 1) is built by training an artificial neural network (ANN) engine in the example embodiment. The general concept of ANN is understood by a person skilled in the art and can be summarized, for completeness, as follows.

Artificial neural network is inspired by the architecture of biological nervous system of human beings. Human nervous system contains a very large number (about 10 billion) of relatively simple nerve cells called neurons; each connected to about 10,000 other neurons. It functions in a parallel way to facilitate quick decisions. Electrochemical input signals, in the form of electrical spikes, are collected by a neuron from other neurons through a plurality of translucent structures called dendrites. Typically, the signal activity is sent out through an axon, which splits into thousands of branches. A synapse located at the end of each branch converts the activity from the axon into electrical effects that inhibit or excite activity in the connected neuron. If the excitatory input to the neuron is sufficiently large compared to inhibitory input, neuron sends an electrical spike activity to its axon. By adjusting the effectiveness of the synapses, the learning process can happen and the influence of one neuron on another may change as well.

FIG. 3(a) shows a schematic representation of a perceptron. The perceptron is a mathematical model of a biological neuron. Similar to a neuron, the electrical signals received by dendrites from the axons of other neurons are represented as numerical values in the perceptron. The electrical signals are modulated in various amounts at the synapses between the dendrite and axons. As can be seen from FIG. 3(a), in the perceptron, the signals are represented by multiplying each input value 302 by a value called the weight 304. Typically, when the total strength of the input signals is above a certain threshold value, a neuron excites an output signal. This event is represented in a perceptron by determining, at a summing junction 306, a weighted sum of the all inputs, which corresponds to a total strength of the input signals. Then, the sum is applied to an activation function 308 for limiting the amplitude of an output 310 to a permissible finite value within an output range.

FIG. 3(b) shows a graph of an activation function 310 used in the artificial neural network engine of an example embodiment. The activation function is denoted by a function φ(v) that defines the output of neuron of induced local field v. In the example embodiment, the activation function is a sigmoid function. As can be seen in FIG. 3(b), the graph of the sigmoid function comprises an S-shape which defines a strictly increasing function that results in a balance of linear and nonlinear behavior. The expression of the function is as follows:

φ ( v ) = 1 1 + exp ( - av ) ( 3 ) v j 1 ( t ) = F ( s j ( t ) ) ( 4 )

where a is a slope value of sigmoid function. As a varies, the sigmoid function slope varies as well. The function is continuous between +1 to −1.

In addition, in the example embodiment, a multilayered perceptron (MLP) network is used for modeling the neural network architecture. FIG. 4 shows a schematic representation of the MLP network of the example embodiment. The inputs 402 of the network act as sources for hidden layer and output layer in the example embodiment. The hidden layer nodes 404 are also fed as inputs for output layer nodes 406 and the output layer gives out the overall response of the network.

For example, for a MLP network with ni inputs, nh hidden nodes and no outputs, the expression for ŷk(t), the output of the kth neuron in the output layer is given by:

y ^ k ( t ) = j = 1 n h w jk 2 v j 1 ( t ) ( 5 )

where k=1, 2, . . . , no; j=1, 2, nh; and i=1, 2, . . . , ni for each discrete time t, and wjk2 denote the respective weights.

Also, in Equation (5), the superscripts indicate the layer number, i.e. 0, 1 and 2 denote input, hidden and output layers respectively. The additional applied input, bias (bk2 and bj1) has an effect of increasing or decreasing the net input of the activation function depending on whether it is positive or negative value respectively. The overall expression for MLP derived from Equations (4) and (5) is given by:

y ^ k ( t ) = j = 1 n h w jk 2 F ( i = 1 n i w ij 1 v i 0 ( t ) + b j 1 ) ( 6 )

Typically, the values of the weights are unknown and for selected values should preferably minimize the error of prediction. Hence, the sigmoid function expression is as follows:

F ( x ) = 1 1 + exp ( - x ) ( 7 )

The purpose of training algorithm is to determine the values of wij1 and wjk2 as shown in Equation (6). The definition of learning, as will be appreciated by a person skilled in the art, implies the sequence of events where the neural network is stimulated by an environment. As the result of stimulation, a neural network experience changes in its free parameters. Due to the existence of the changes in the structure internally, the neural network reacts to adjust itself to the new environment. In the example embodiment, based on error correction learning, the output signal of the network is compared to the desired response or target value, denoted by dk(n). Therefore, error signal expression becomes:
ek(n)=dk(n)−ŷk(n)  (8)

where ek(n) is an error signal that preferably triggers a control mechanism in order to correct the synaptic weight parameters. This corrective adjustment method advantageously allows the network output to be achieved as close as possible to a target response, thereby reducing the error.

Typically, back propagation (BP) algorithm is used to find optimum values for the above parameters. Although the algorithm can be implemented easily and produces a good performance, its convergence rate is slow. To overcome the problems, a recursive prediction error (RPE) algorithm is used in the example embodiment to replace the BP algorithm. The RPE algorithm preferably provides a better performance, e.g. a faster convergence rate and better final convergence values of weights and thresholds. It will be appreciated by a person skilled in the art that RPE algorithm is a Gauss-Newton type algorithm and has been used to train MLP networks.

In the example embodiment, the RPE algorithm is implemented to minimize a cost function as defined by Equation (9):

J ( Θ ^ ) = 1 2 N t = 1 N ɛ T ( t , Θ ^ ) Λ - 1 ɛ ( t , Θ ^ ) ( 9 )

where ε(t) and Λ are the prediction error and m×m symmetric positive definite matrix respectively. The minimization of the cost function is achieved in the example embodiment by recursively updating the estimated parameter vector {circumflex over (Θ)} using a Gauss-Newton algorithm as follows:
{circumflex over (Θ)}(t)={circumflex over (Θ)}(t−1)+P(t)Δ(t)  (10)
and
Δ(t)=αm(t)Δ(t−1)+αg(t)ψ(t)ε(t)  (11)

where αm(t) and αg(t) are the momentum and learning rate respectively. The values for αm(t) and αg(t) can be assigned randomly in range between 0 and 1. Typically, αm(t) has a value closer to 1 and αg(t) has a value closer to 0. Also, ψ(t) is a gradient of the one-step ahead predicted output with respect to the network parameters and the expression is given by in Equation (12):

ψ ( t , Θ ) = [ y ^ ( t , Θ ) Θ ] ( 12 )

In addition, the values for P(t) (Equation (10)) is updated recursively by the following equation:

P ( t ) = 1 λ ( t ) [ P ( t - 1 ) - P ( t - 1 ) ψ ( t ) ( λ ( t ) I + ψ T ( t ) P ( t - 1 ) ψ ( t ) ) - 1 ψ T ( t ) P ( t - 1 ) ] ( 13 )

where λ(t) is the forgetting factor and has a value within 0 to 1, and is usually updated using the following scheme:
λ(t)=λoλ(t−1)+(1−λo)  (14)

In the example embodiment, the initial value for the P(t) matrix is P(0) and is set to a value of αI where I is the identity matrix and α is a constant having a typical value between 100 and 10000. It will be appreciated that a very small value of a can cause slow learning. On the other hand, a very large value of α may cause the estimated parameter to fail to converge properly. Thus, the selected α value advantageously is between 100 and 10000. Preferably, α is taken to be 1000.

It will be appreciated that, in order to obtain an optimized model of neural network, the number of hidden nodes, momentum and learning rate must be established first. In the example embodiment, the model is trained using several hidden nodes, momentum and learning rates. Preferably, the optimum parameter values are selected and saved if the trained model gives a minimum error of energy prediction performance. Once the optimized model is derived, the ANN is directly used for validation.

In the example embodiment, the ANN model is trained based on data obtained, e.g. on hourly basis, from the flow computer of a gas metering station. From the given data, two sets are divided for training and testing purposes. For example, 16% of the overall data is randomly selected for testing (also called validation) and the rest is allocated as training data. Initially, the data is scaled to get statistically standardized in order to meet a predefined range with respect to all values of data. The standardized data is then applied to the prediction model engine.

For example, the optimum learning rate αg(t) and momentum αm(t) have been found to be 0.1 and 0.8 respectively for a minimum Mean Absolute Error (MAE) at 5.174×10−2 in the example embodiment. In addition, the number of hidden nodes corresponding to the minimum MAE is 4 in an example embodiment.

FIG. 5(a) shows a graph comparing the energy value predicted using an ANN engine and the measured energy value in an example embodiment. FIG. 5(b) shows a graph illustrating the MAE performance of the ANN engine of the example embodiment. Preferably, the graphs of FIGS. 5(a)-(b) are obtained based on randomly selected testing data. It can be seen from FIG. 5(a) that the predicted energy value 502 generated by ANN engine is substantially the same as the measured energy value 504 from the test data, even when there is a significant fluctuation in the energy value. This is confirmed by the MAE values in FIG. 5(b) where the maximum MAE is only about 0.0108, i.e. the ANN model of the example embodiment is advantageously robust.

FIG. 5(c) shows a chart comparing the performance of the ANN engine of the example embodiment with that of a conventional regression method. As can be seen from FIG. 5(c), in terms of both mean value (using e.g. a standard analysis of variance (ANOVA) test) and distribution of overall data, results 510 based on the ANN engine of the example embodiment are substantially similar to the measured energy values 530, while results 520 based on the conventional regression method show a significant difference. In other words, the ANN engine in the example embodiment can accurately model the measured energy values.

FIG. 6 shows a flow chart 600 illustrating a method of operating the monitoring system according to an example embodiment. At step 602, historical data of e.g. 1 month duration is collected and stored in e.g. an Excel file. At step 604, the data is loaded to the system using e.g. MATLAB. At step 606, the energy prediction model engine is run via the graphical user interface (GUI) of the system. At step 608, the energy value is predicted and the result is plotted, e.g. against the actual energy value and/or as a percentage error graph. At step 610, the result is saved in e.g. an Excel file for archive purposes.

FIG. 7 shows a screen-shot of the GUI of the system according to an example embodiment. The GUI comprises boxes 702 for setting an input range, e.g. a lower and an upper value, of the input parameters. Similarly, boxes 704 are provided for setting an output range of the output energy value, e.g. a lower and an upper value. In the example embodiment, the setting of the input and output ranges advantageously reduces or minimizes the risk of feeding the system with invalid data. This preferably acts as a first filtration mechanism before feeding the data for energy prediction. The system will trigger an alarm if any of the ranges is being exceeded. The GUI also provides input means 706 for importing the historical data from e.g. an Excel file. Once the data is available, the prediction model engine is run in the example embodiment by pressing a “Simulate” button 708. The GUI further comprises at least a graph 710 of the actual and predicted energy values and a percentage error graph 712, for easy reference.

Any alarm raised by the system is viewed in the example embodiment by pressing an “Alarm” button 714. For example, the “Alarm” button 714 enables the user to see if there is any abnormality in the input/output ranges, drifting of data, or if the difference between the predicted energy value and the actual energy value is more than 1%. In a preferred embodiment, the “Alarm” button 714 is replaced by an automatic alarm triggering mechanism, i.e. the alarm message is automatically presented without the user having to press a button.

FIG. 8(a) shows a general schematic diagram illustrating an alarm system 800 according to an example embodiment. FIG. 8(b) shows a detailed schematic diagram of an implementation of the alarm system 800 of FIG. 8(a). FIG. 8(c) shows a screen-shot of the GUI of the alarm system according to an example embodiment.

As can be seen from FIG. 8(a), the inputs In1-In5 of the alarm systems correspond to the gross volume 102, pressure 104, temperature 108, calorific value 110 and specific gravity 108 (FIG. 1) respectively.

In FIG. 8(b), three example alarm functions, i.e. Data Out Of Range, Data Missing and Data Freeze, are implemented by blocks 802, 804 and 806 respectively. It will be appreciated that the alarm system 800 of the example embodiment is not limited to the above alarm functions, and additional alarm functions may be configured.

In FIG. 8(c), the three alarm functions of FIG. 8(b) are implemented via buttons 812, 814 and 816 respectively. By clicking a button, the respective alarm is displayed, e.g. in a table or graph in an Excel file. An example table of alarms is shown in FIG. 8(c) as a pop-up window 820.

FIG. 9 shows a flow chart 900 illustrating a method for validating energy measurement in a high pressure gas distribution network according to an example embodiment. At step 902, a validation energy value is calculated using an artificial neural network (ANN) engine based on measured parameters associated with a gas flow in the gas distribution network. At step 904, an actual energy value of the gas flow is measured. At step 906, the validation energy value and the actual energy value are compared, wherein the actual energy value is validated if the validation energy value and the actual energy value are substantially equal.

The method and system of the example embodiment can be implemented on a computer system 1000, schematically shown in FIG. 10. It may be implemented as software, such as a computer program being executed within the computer system 1000, and instructing the computer system 1000 to conduct the method of the example embodiment.

The computer system 1000 comprises a computer module 1002, input modules such as a keyboard 1004 and mouse 1006 and a plurality of output devices such as a display 1008, and printer 1010.

The computer module 1002 is connected to a computer network 1012 via a suitable transceiver device 1014, to enable access to e.g. the Internet or other network systems such as Local Area Network (LAN) or Wide Area Network (WAN).

The computer module 1002 in the example includes a processor 1018, a Random Access Memory (RAM) 1020 and a Read Only Memory (ROM) 1022. The computer module 1002 also includes a number of Input/Output (I/O) interfaces, for example I/O interface 1024 to the display 1008, and I/O interface 1026 to the keyboard 1004.

The components of the computer module 1002 typically communicate via an interconnected bus 1028 and in a manner known to the person skilled in the relevant art.

The application program is typically supplied to the user of the computer system 1000 encoded on a data storage medium such as a CD-ROM or flash memory carrier and read utilizing a corresponding data storage medium drive of a data storage device 1030. The application program is read and controlled in its execution by the processor 1018. Intermediate storage of program data maybe accomplished using RAM 1020.

It will be appreciated by a person skilled in the art that numerous variations and/or modifications may be made to the present invention as shown in the specific embodiments without departing from the spirit or scope of the invention as broadly described. The present embodiments are, therefore, to be considered in all respects to be illustrative and not restrictive.

Halim, M. Huzainy B., Ibrahim, Rosdiazli, Ismail, Idris, Ismail, Maryam Jamela

Patent Priority Assignee Title
Patent Priority Assignee Title
5180911, Sep 03 1991 Harbor Branch Oceanographic Institution, Inc.; The Florida Institute of Technology, Inc. Parameter measurement systems and methods having a neural network comprising parameter output means
5729623, Oct 18 1993 Glory Kogyo Kabushiki Kaisha Pattern recognition apparatus and method of optimizing mask for pattern recognition according to genetic algorithm
6119529, Nov 28 1996 SGS-THOMSON MICROELECTRONICS S R L Fluid flow meter and corresponding flow measuring methods
6192352, Feb 20 1998 Tennessee Valley Authority; Tennessee Technological University Artificial neural network and fuzzy logic based boiler tube leak detection systems
6567795, Feb 20 1998 Tennessee Technological University; Tennessee Valley Authority Artificial neural network and fuzzy logic based boiler tube leak detection systems
6598459, Jan 09 1998 Artificial olfactory system
8709551, Mar 25 2010 Novellus Systems, Inc Smooth silicon-containing films
8741394, Mar 25 2010 Novellus Systems, Inc In-situ deposition of film stacks
8756928, Jun 29 2009 LightSail Energy, Inc. Compressed air energy storage system utilizing two-phase flow to facilitate heat exchange
8769943, Jun 29 2009 LightSail Energy, Inc. Compressed air energy storage system utilizing two-phase flow to facilitate heat exchange
8844277, Jun 29 2009 LightSail Energy, Inc. Compressed air energy storage system utilizing two-phase flow to facilitate heat exchange
8893486, Jun 29 2009 LightSail Energy, Inc. Compressed air energy storage system utilizing two-phase flow to facilitate heat exchange
8893487, Jun 29 2009 LightSail Energy, Inc. Compressed air energy storage system utilizing two-phase flow to facilitate heat exchange
8895415, May 31 2013 Novellus Systems, Inc Tensile stressed doped amorphous silicon
8912684, Jun 29 2009 Lightsail Energy, Inc Compressed air energy storage system utilizing two-phase flow to facilitate heat exchange
8919112, Jun 29 2009 LightSail Energy, Inc. Compressed air energy storage system utilizing two-phase flow to facilitate heat exchange
9117668, May 23 2012 Novellus Systems, Inc PECVD deposition of smooth silicon films
9298197, Apr 19 2013 GOOGLE LLC Automated adjustment of an HVAC schedule for resource conservation
9382799, Jun 29 2009 LightSail Energy, Inc. Compressed air energy storage system utilizing two-phase flow to facilitate heat exchange
20010001149,
20020059154,
20040016287,
20040213448,
20080306892,
CN101030258,
CN101127160,
CN101187660,
CN101230840,
CN101315556,
CN101315557,
CN101413521,
CN1184931,
CN1595323,
CN1661004,
CN1996192,
EP1255967,
KP102002052433,
TW418373,
WO3046511,
WO2008154584,
WO9014640,
/////
Executed onAssignorAssigneeConveyanceFrameReelDoc
Apr 29 2011PETROLIAM NASIONAL BARHAD (PETRONAS)(assignment on the face of the patent)
Feb 07 2013HALIM, M HUZAINY B PETROLIAM NASIONAL BARHAD PETRONAS ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0305980427 pdf
Feb 18 2013ISMAIL, MARYAM JAMELAPETROLIAM NASIONAL BARHAD PETRONAS ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0305980427 pdf
Jun 10 2013IBRAHIM, ROSDIAZLIPETROLIAM NASIONAL BARHAD PETRONAS ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0305980427 pdf
Jun 11 2013ISMAIL, IDRISPETROLIAM NASIONAL BARHAD PETRONAS ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0305980427 pdf
Date Maintenance Fee Events
Feb 13 2020M1551: Payment of Maintenance Fee, 4th Year, Large Entity.
Feb 28 2024M1552: Payment of Maintenance Fee, 8th Year, Large Entity.


Date Maintenance Schedule
Aug 30 20194 years fee payment window open
Mar 01 20206 months grace period start (w surcharge)
Aug 30 2020patent expiry (for year 4)
Aug 30 20222 years to revive unintentionally abandoned end. (for year 4)
Aug 30 20238 years fee payment window open
Mar 01 20246 months grace period start (w surcharge)
Aug 30 2024patent expiry (for year 8)
Aug 30 20262 years to revive unintentionally abandoned end. (for year 8)
Aug 30 202712 years fee payment window open
Mar 01 20286 months grace period start (w surcharge)
Aug 30 2028patent expiry (for year 12)
Aug 30 20302 years to revive unintentionally abandoned end. (for year 12)