METHOD FOR DYNAMIC BIAS MANAGEMENT BETWEEN ONLINE PROCESS ANALYZERS AND REFEREE TESTS
20180165424 ยท 2018-06-14
Inventors
- Kevin R. Worden (Minooka, IL, US)
- Tian C. Lau (Whitby, CA)
- Kathryn L. Hackman (Glen Ellyn, IL, US)
- Sean R. Werner (Woodridge, IL, US)
- David L. Rogers (Plainfield, IL, US)
- Clifton G. Hene (Aurora, IL, US)
Cpc classification
G16H10/40
PHYSICS
G16C20/20
PHYSICS
International classification
Abstract
Provided herein are methods for dynamic bias management between online process analyzers and laboratory certification tests. In many refinery processes, online analyzers are used to determine any number of properties to ensure the product being produced meets a given target or specification. Refinery laboratory tests are typically used for certification, and therefore, biases between said certification tests and online process analyzers need to be managed to control/optimize the manufacturing process. The methods employ an exponential-weighted moving average (EWMA) dynamic correction factor based on historical process analyzer data versus laboratory certification samples in conjunction with structural bias correct functions to achieve this bias management.
Claims
1. A method for reducing bias between an online process analyzer measurement of a property of a hydrocarbon stream and a laboratory certification test result of the same property: obtaining a physical sample from the hydrocarbon stream at time t; analyzing the physical sample via a laboratory certification test to obtain a laboratory certification test result for the property of the hydrocarbon stream; providing an online process analyzer to measure the property of the hydrocarbon stream; the online process analyzer obtaining a raw value of the property (the raw analyzer output); establishing an exponential-weighted moving average (EWMA) dynamic correction factor for the property measured by the online process analyzer, wherein establishing the EWMA dynamic correction factor comprises; collecting historical values of the property from a plurality of past laboratory certification tests; determining a structural bias correction function for the property by performing a regression analysis on the historical values; establishing a lambda weight, , between 0 and 1; calculating EWMA via the following equation
EWMA.sub.current=*(LR.sub.tBCf(RA.sub.t))+(1)*EWMA.sub.prior, where: EWMA.sub.current=Current exponential-weighted moving average dynamic correction factor; =lambda weight; LR.sub.t=the laboratory certification test result of the property of the physical sample at time t; BCf(RA.sub.t)=the structural bias correction function applied to the raw analyzer output of the property at time t; and EWMA.sub.prior=the most recently prior calculated EWMA; correcting the raw analyzer output via the following relationship:
CA.sub.t=BCf(RA.sub.t)+EWMA.sub.current, where CA.sub.t is the Corrected Analyzer output at time t; and comparing the Corrected Analyzer output at time t to the laboratory certification test result at time t to determine the bias between the two values.
2. The method of claim 1, further comprising: establishing an EWMA high limit and an EWMA low limit via the following equation:
EWMA.sub.Hi/Low=+/k.sub.1*Stdev of Residuals, where: k.sub.1=any number between 2 and 4; Residuals=LR.sub.tCA.sub.t; and Stdev=Standard Deviation comparing the EWMA.sub.current to EWMA.sub.Hi and EWMA.sub.Low; and adjusting the EWMA to the calculated value of EWMA.sub.current if EWMA.sub.current is between EWMA.sub.Hi and EWMA.sub.Low.
3. The method of claim 2, wherein if EWMA.sub.current is greater than EWMA.sub.high or is less than the EWMA.sub.low limit, then EWMA.sub.current is set to the EWMA.sub.high limit or the EWMA.sub.low limit accordingly.
4. The method of claim 2, further comprising: establishing an EWMA hihigh limit and an EWMA lolow limit via the following equation
EWMA.sub.HiHigh/LoLow=+/12*Stdev of Residuals, where: k.sub.2=any number between 5 and 8; Residuals=LR.sub.tCA.sub.t; and Stdev=Standard Deviation rejecting EWMA.sub.current if EWMA.sub.current violates the established EWMA.sub.HiHigh limit or the established EWMA.sub.LoLow limit and correcting the Raw Analyzer output using EWMA.sub.prior.
5. The method of claim 2, wherein k.sub.1=3.
6. The method of claim 4, wherein k.sub.2=6.
7. The method of claim 4, wherein k.sub.2=2*k.sub.1
8. The method of claim 1, wherein lambda weight is 0.8 or greater.
9. The method of claim 1, wherein the property is Reed Vapor Pressure, TV/L(20), sulfur, aromatic content, olefin content, benzene content, distillation points, octane, API gravity, flash point, kinematic viscosity, cetane level, cloud point, or pour point.
10. The method of claim 1, wherein the hydrocarbon stream is a basestock for oxygenate blending (BOB).
11. The method of claim 1, wherein the hydrocarbon stream is a basestock for oxygenate blending (BOB); wherein the obtaining a physical sample from the hydrocarbon stream occurs before the hydrocarbon stream is blended with an oxygenate additive and the laboratory certification test occurs after the physical sample is blended with the oxygenate additive.
12. The method of claim 11, wherein the oxygenate is ethanol.
Description
DRAWINGS
[0037]
[0038]
[0039]
[0040]
DETAILED DESCRIPTION
[0041] The present method uses statistical process control and time series techniques for managing bias and reducing variation between online process analyzer outputs as compared to laboratory test results measuring the same property. The method uses an exponential-weighted moving average (EWMA) dynamic correction factor, calculated using historical online process analyzer data as compared to laboratory validation samples (also referred to herein as referee samples) measuring the same properties. The bias data can be updated with each referee sample, which are taken as frequently as required for the product and property, typically several times per day.
[0042] As used herein, a process analyzer is a piece of analytical instrumentation or equipment (and supporting ancillary equipment) that measures a compositional component or property of a petroleum product. An online process analyzer is designed to receive a continuous feed of petroleum product during the manufacturing process and provide frequent analysis of its properties.
[0043] The frequent data generated by the online process analyzer(s) is used as input to a process control program or is provided to process operators for the purpose of process monitoring. Operators may use this data to determine whether or not adjustments to key manufacturing process operating parameters should be made. Some changes are made to drive the measured property value to an optimal target value using an optimal mixture of components, while ensuring compliance to regulatory and contractual requirements and specifications. Examples of key manufacturing process operating parameters can be (but are not limited to) the relative ratios of component flows to a blending facility, the operating temperature or pressure of a treatment facility (e.g., sulfur removal), or the flow of chemical additives.
[0044] More than one online process analyzer may be used for a specific manufacturing process, and throughout the specification any reference to an online process analyzer means one or more online process analyzers. No particular process analyzers are required for implementing the method of the current invention. Process analyzers known and used by those skilled in the art can be used as the process analyzer for analyzing the representative sample. The specific choice of process analyzers will depend on the specific regulatory or contractual requirements for the manufactured petroleum product.
[0045] Specifically, the online process analyzers used in manufacturing will depend on the specific composition or property of interest. If there are targets for more than one property or component, it may be necessary to have more than one process analyzer. At least two general classes of analyzers may be used to implement the current invention. Other classes may also be used; but these general classes represent analyzers that are commonly used by those in the art. The first class of analyzers are those that directly measure the composition or property parameter and includes, but is not limited to: RVP analyzers for volatility; physical distillation analyzers for single boiling point or full boiling curve; x-ray or ultraviolet fluorescence analyzers for sulfur; and gas chromatographic (GC) analyzers for measuring distillation; benzene; aromatics; olefins and/or oxygenates. The second class of analyzers are those that use multivariate chemometric models to relate the measured analyzer data (typically a spectrum) to the composition or property parameters of interest, including, but not limited to: gas chromatographic; mass spectrometric; infrared techniques such as Fourier Near Infrared (FTNIR); Raman; and nuclear magnetic resonance (NMR) analyzers.
[0046] Standard ASTM methods are the most common laboratory referee tests that are used to bias correct online process analyzers measuring properties of gasoline directly or indirectly using multivariate chemometric models (e.g. FTNIR). A list of common ASTM methods and the properties measured is provided in Table 1 below:
TABLE-US-00001 TABLE 1 Referee Test Examples of Online Property (ASTM) Analyzer Methods RVP D5191 Automated piston and chamber with an integrated pressure transducer. Chemometric methods. T V/L (20) D5188 Evacuated chamber and piston. Chemometric methods Sulfur D2622 X-ray fluorescence Distillation D86 Gas chromatography. (T10, T50, T90, Chemometric methods E200, E300) Aromatics/Olefins D1319 Gas chromatography. Chemometric methods Benzene D3606 Gas chromatography. Chemometric methods Research Octane/ D2699/ D2885, online knock engines. Motor Octane D2700 Chemometric methods API Gravity D1298 Oscillating U tube. Chemometric methods Flash Point D93 Flash chamber with spark ignition. Chemometric methods Kinematic D445 Capillary viscometer. Viscosity Chemometric methods Cetane D613 Chemometric methods Cloud Point D2500 Sample cooling system with optical detector. Chemometric methods Pour Point D97 Sample cooling system with optical detector. Chemometric methods
[0047] A flow chart of an embodiment of the method is provided in
[0048] In order to minimize bias between online process analyzer values and referee test values, an EWMA dynamic correction factor is added to the structural bias correction function, which is applied to the raw analyzer output. The Corrected Analyzer output can be represented by the equation:
CA=BCf(RA)+EWMA.sub.current(Eqn. 1)
[0049] where CA is the Corrected Analyzer output, BCf( ) is the structural bias correction function, RA is the raw analyzer output, and EWMA.sub.current is the current EWMA.
[0050] Residuals are the differences between the referee test results and the analyzer results for a given sample and can be represented by the equation:
Residual=LR.sub.tAnalyzer output.sub.t(Eqn. 2)
[0051] where LR is the laboratory result of a property for a validation sample at time t and Analyzer output.sub.t is the analyzer output at time t, where the analyzer output can be Raw Analyzer output, structural bias correction function, or the Corrected Analyzer output. The standard deviation of the residuals (Stdev) is calculated using historical data and used to determine system variation and to set limits used in the method.
[0052] The EWMA dynamic correction is used to correct for short term bias shifts and variation due to normal changes in the system such as calibration of online analyzers or lab instruments, replacement of components in either online analyzers or lab instruments, analyzer drift, using different online analyzers or lab instruments, changes in the process environment, or changes in the matrix composition (e.g. unit startups, blend recipe composition, and/or component quality changes).
[0053] As the name implies, the EWMA dynamic correction is frequently checked and/or updated based on a recursive algorithm, typically several times per day, e.g. every 2 hours, every 4 hours, or every 6 hours. The recursive algorithm is given by the following equation:
EWMA.sub.current=*(LR.sub.tBCf(RA.sub.t))+(1)*EWMA.sub.prior(Eqn. 3)
[0054] where EWMA.sub.current is the current EWMA, is weighting factor, LR.sub.t is the laboratory measurement of a validation sample at time t; BCf (RA.sub.t)) is the structural bias correction function applied to the raw analyzer output of the at least one property at time t; and EWMA.sub.prior is the most recently prior calculated EWMA.
[0055] Lambda, , is a weighting factor that is between 0 and 1, and typically between 0.1 and 0.9. A lambda of greater than 0.5 means that the most recent referee test result will have a larger impact to the analyzer bias update compared to all prior lab validation test results. A lambda of 0.5 puts an equal weight on the most recent referee test results compared to all prior lab validation test results. Lambda is typically tuned to minimize the StDev of residuals (i.e. LR.sub.tBCf(RA.sub.t)) using the historical data discussed in above. A lambda greater or equal to 0.8 is typically used to aggressively bias correct the analyzer when there is a known change in the composition of the product (e.g. new blend recipe). There are also instances where it would be advantageous to make less than 0.5, for example, if there were reason to put less value on a particular online analyzer's measurements.
[0056] The current EWMA, as calculated by Eqn. 3, is then compared to certain High/Low limits, which are calculated from the standard deviation (Stdev) of the residuals, represented by the equation:
EWMA Hi/Lo=+/k*Stdev of Residuals(Eqn. 4)
[0057] where k is a multiplier between 2 and 4, typically a value of 3 is used to ensure the change in the EWMA is statistically significant with very high probability of confidence, indicating a bias shift between the analyzer and referee test has occurred. Using a multiplier of 3, there is a probability of 3 out of 1,000 chance of randomly violating the Hi/Lo limit, assuming the residuals are normally distributed. Additionally, higher high and lower low limits, known as EWMA HiHigh/LoLow limits are calculated using the same Eqn. 4, but k is a multiplier between 5 and 8, typically a value of 6. In any case, it is preferable that the multiplier for EWMA HiHigh/LoLow is twice the multiplier for EWMA Hi/Lo (e.g. 2 k and k, respectively). These limits are used to flag when the EWMA.sub.current is a statistical outlier, and therefore the current analyzer output is not updated with this EWMA.sub.current. Using a multiplier of 6, there is a very small probability (less than 1 out of 1,000,000 chance) of violating the HiHigh/LoLow limit randomly, assuming the residuals are normally distributed.
[0058] As discussed above, analyzer output is corrected using Eqn. 1. The EWMA update to its current value takes into account short term bias shifts and variation due to changes such as; calibration of online analyzers or lab instruments, instrument part replacement, analyzer drift, using back-up lab instruments, changes in the process or environment, or changes in the matrix composition (e.g. unit startups, blend recipe composition, and/or component quality changes).
[0059] Operation of the method can be explained with reference to
[0060] Next, EWMA.sub.current is calculated using Eqn. 3. If EWMA.sub.current is within the EWMA High/Low limits, then the newly calculated EWMA.sub.current is accepted by the control system and the CA bias calculation is updated in the control system. If EWMA.sub.current violates the EWMA High/Low limit, then the operator is alerted that the bias has had a statistically or operationally significant shift. In this case, the EWMA.sub.current is updated only to the applicable EWMA High/Low limit (i.e. EWMA.sub.current=EWMA High/Low limit), and then the CA bias calculation is updated. Operation of the EWMA as compared to the EWMA Hi/Lo limits is shown in
[0061] There are several scenarios when EWMA.sub.current could violate the EMWA limits: (a) the process is unsteady or there was poor sample handling, (b) typographical error in the lab result, (c) online analyzer malfunction, (d) lab instrument or the process analyzer is no long passing statistical quality control checks, (e) the bias between the lab and analyzer naturally drifted apart over time.
[0062] When a violation of the EMWA High/Low limit occurs, the operator should respond by communicating with the laboratory and analyzer group to determine if there is an issue with the appropriate instruments or test results. The operator may also take an additional validation sample from the process to confirm a statistically significant bias shift has emerged. If a statistically significant bias shift is confirmed, the operator should contact the blending engineer to retune the structural bias correction function using the new lab and analyzer data.
[0063] If EWMA.sub.current violates the EWMA HiHigh/LoLow limits, then the referee tests are considered an outlier and rejected. EWMA.sub.current is not accepted and EWMA.sub.prior continues to be used in Eqn. 1. The above steps are repeated with the next validation sample.
[0064] When a violation of the EMWA HiHigh/LoLow limit occurs, the operator should respond by determining if there is an issue with the appropriate instruments or test results. The operator may also take an additional validation sample from the process to confirm a statistically significant bias shift has emerged.
[0065] Also, as discussed above, the present method can also be applied to mathematical models used to predict additive boost, such as from oxygenate. In such cases, the structural bias correction function of Eqn. 1 and Eqn. 3 (BCf( )) becomes an oxygenate boost function (EBf( )). The oxygenate boost function can be calculated via establishing an empirical relationship between a BOB hydrocarbon mixture and hydrocarbon mixture blended with oxygenate. Such relationships are discussed in U.S. Pat. Nos. 8,999,012, 8,986,402, and 8,322,200, which are incorporated by reference. The method remains the same except that the laboratory validation samples are taken and additive is added to the basestock. The method can also be applied to other products and associated additives, for example, distillate (bio diesel, cetane improver).
Additional Embodiments
Embodiment 1
[0066] A method for reducing bias between an online process analyzer measurement of a property of a hydrocarbon stream and a laboratory certification test result of the same property: obtaining a physical sample from the hydrocarbon stream at time t;
[0067] analyzing the physical sample via a laboratory certification test to obtain a laboratory certification test result for the property of the hydrocarbon stream; providing an online process analyzer to measure the property of the hydrocarbon stream; the online process analyzer obtaining a raw value of the property (the raw analyzer output); establishing an exponential-weighted moving average (EWMA) dynamic correction factor for the property measured by the online process analyzer, wherein establishing the EWMA dynamic correction factor comprises; collecting historical values of the property from a plurality of past laboratory certification tests; determining a structural bias correction function for the property by performing a regression analysis on the historical values; establishing a lambda weight, , between 0 and 1; calculating EWMA via the following equation:
EWMA.sub.current=*(LR.sub.tBCf(RA.sub.t))+(1)*EWMA.sub.prior, where: [0068] EWMA.sub.current=Current exponential-weighted moving average dynamic correction factor; [0069] =lambda weight; [0070] LR.sub.t=the laboratory certification test result of the property of the physical sample at time t; [0071] BCf(RA.sub.t)=the structural bias correction function applied to the raw analyzer output of the property at time t; and [0072] EWMA.sub.prior=the most recently prior calculated EWMA;
correcting the raw analyzer output via the following relationship:
CA.sub.t=BCf(RA.sub.t)+EWMA.sub.current, where CA.sub.t is the Corrected Analyzer output at time t; and
comparing the Corrected Analyzer output at time t to the laboratory certification test result at time t to determine the bias between the two values.
Embodiment 2
[0073] The method of embodiment 1, further comprising: establishing an EWMA high limit and an EWMA low limit via the following equation:
EWMA.sub.Hi/Low=+/k.sub.1*Stdev of Residuals, where: [0074] k.sub.1=any number between 2 and 4; [0075] Residuals=LR.sub.tCA.sub.t; and [0076] Stdev=Standard Deviation
comparing the EWMA.sub.current to EWMA.sub.Hi and EWMA.sub.Low; and adjusting the EWMA to the calculated value of EWMA.sub.current if EWMA.sub.current is between EWMA.sub.Hi and EWMA.sub.Low.
Embodiment 3
[0077] The method of embodiment 2, wherein if EWMA.sub.current is greater than EWMA.sub.high or is less than the EWMA.sub.low limit, then EWMA.sub.current is set to the EWMA.sub.high limit or the EWMA.sub.low limit accordingly.
Embodiment 4
[0078] The method of embodiments 2 or 3, further comprising:
[0079] establishing an EWMA hihigh limit and an EWMA blow limit via the following equation
EWMA.sub.HiHigh/LoLow=+/12*Stdev of Residuals, where: [0080] k.sub.2=any number between 5 and 8; [0081] Residuals=LR.sub.tCA.sub.t; and [0082] Stdev=Standard Deviation
[0083] rejecting EWMA.sub.current if EWMA.sub.current violates the established EWMA.sub.HiHigh limit or the established EWMA.sub.LoLow limit and correcting the Raw Analyzer output using EWMA.sub.prior.
Embodiment 5
[0084] The method of any of embodiments 2-4, wherein k.sub.1=3.
Embodiment 6
[0085] The method of embodiments 4 or 5, wherein k.sub.2=6.
Embodiment 7
[0086] The method of any of embodiments 4-6, wherein k.sub.2=2*k.sub.1
Embodiment 8
[0087] The method of any of the previous embodiments, wherein lambda weight is 0.8 or greater.
Embodiment 9
[0088] The method of any of the previous embodiments, wherein the property is Reed Vapor Pressure, TV/L(20), sulfur, aromatic content, olefin content, benzene content, distillation points, octane, API gravity, flash point, kinematic viscosity, cetane level, cloud point, or pour point.
Embodiment 10
[0089] The method of any of the previous embodiments, wherein the hydrocarbon stream is a basestock for oxygenate blending (BOB).
Embodiment 11
[0090] The method of any of the previous embodiments, wherein the hydrocarbon stream is a basestock for oxygenate blending (BOB); wherein the obtaining a physical sample from the hydrocarbon stream occurs before the hydrocarbon stream is blended with an oxygenate additive and the laboratory certification test occurs after the physical sample is blended with the oxygenate additive.
Embodiment 12
[0091] The method of embodiment 11, wherein the oxygenate is ethanol.
Example 1: Dynamic Bias Correction of TV/L (20) when Blending BOB Gasoline
[0092] TV/L (20) is a measure of the temperature at which the vapor to liquid ratio of the hydrocarbon mixture is 20 to 1. In
Example 2: Dynamic Bias Correction of TV/L (20) in Prediction of Ethanol Boost
[0093] In