首页   按字顺浏览 期刊浏览 卷期浏览 A comparison of curve fitting algorithms for flame atomic absorption spectrometry
A comparison of curve fitting algorithms for flame atomic absorption spectrometry

 

作者: Stephen R. Bysouth,  

 

期刊: Journal of Analytical Atomic Spectrometry  (RSC Available online 1986)
卷期: Volume 1, issue 1  

页码: 85-87

 

ISSN:0267-9477

 

年代: 1986

 

DOI:10.1039/JA9860100085

 

出版商: RSC

 

数据来源: RSC

 

摘要:

JOURNAL OF ANALYTICAL ATOMIC SPECTROMETRY, FEBRUARY 1986, VOL. 1 85 SHORT PAPER A Comparison of Curve Fitting Algorithms for Flame Atomic Absorption Spectrometry Stephen R. Bysouth and Julian F. Tyson Department of Chemistry, University of Technology, Loughborough, Leicestershire LE 7 7 3TU, UK A comparison of six commercially available curve fitting algorithms for calibration in flame atomic absorption spectrometry (FAAS) has been made. Programs using the algorithms were written in BASIC for a microcomputer and, where possible, tested against the commercial version. Calibration curves for magnesium, chromium and nickel produced by the algorithms were compared, on the basis of the sum of squares of the percentage deviations and its root mean square, with each other and with linear interpolation and manual fitting.The standard deviations of the goodness of fit parameters were calculated t o indicate significant differences between the fits obtained. With the exception of the simple parabola, linear interpolation and manual methods, which were significantly poorer, the algorithms performed similarly. In general the errors in curve fitting were well below 5% for the commercial algorithms. Keywords: Calibration; flame atomic absorption spectrometry; curve fitting With the introduction of automatic data handling techniques, several curve fitting algorithms have appeared for calibration in AAS.1 As the processes that cause the bending of the calibration curve are numerous,2 many different models for the curve have been used. De Galan et aZ.3 have compared the use of manually drawn graphs, polynomials of degrees one to four, a rational function (as used by Perkin-Elmer) and a cubic spline function. Miller-Ihli et aZ.4 compared linear, cubic spline and Stineman interpolation methods with linear and quadratic functions and a rational function (as used by Baird Atomic), fitted by a least-squares procedure.Both of these rational functions are described later. In this paper, a comparison is presented of the existing algorithms that are commercially available , using typical calibration data. The algorithms are compared with each other and with two additional techniques: (i) linear interpolations4 and (ii) graphical plots by three colleagues using various manual curve fitting methods. Experimental Calibration and Test Data Nickel, chromium and magnesium were chosen as test elements, as these three elements give characteristically different calibration curve shapes. The calibration for nickel was curved over the absorbance range 0-0.8 and asymptotic to absorbance 0.8.The calibration for chromium was initially linear but curved towards an asymptote at absorbance 1.2. The calibration for magnesium was virtually linear over the absorbance range 0-1.2. Eight standards, including a blank, were made up for each element, by serial dilution of 1000 mg 1-1 stock solutions (BDH Chemicals Ltd.) , using calibrated glassware. These were then presented to either a Shandon Southern A3300 or a Pye Unicam SP90A atomic absorption spectrometer. An air - acetylene flame was used and operating conditions were optimised for maximum sensitivity, The output was monitored with a Philips PM 8251 chart recorder.The standards were aspirated, in order of increasing concentration , several times to account for drift. The blank was aspirated between each standard, and the blank absorbance value subtracted from each standard absorbance value. The calibration data points were distributed evenly along each curve enabling compari- sons to be made between each element for four and five point calibrations. All seven standards (the blank being excluded) were used to calculate a parameter for “goodness of fit” in each instance. Goodness of Fit Parameters The parameters suggested by Miller-Ihli et aL,4 namely the sum of squares of the percentage deviations (SSPD), equation ( l ) , and its root mean square (RMSPD), equation (2), were used where Cci is the ith concentration calculated by the algorithm, c k i is the ith actual concentration and N is the number of data points tested.As the percentage deviation for a blank ( c k i = 0) is infinite, only seven data points ( N = 7) were used in the tests. To give an indication of any significant difference between algorithms, calculations of the standard deviations (SD) of the parameters were made using equations (3) and (4) (derived from the rules for the propagation of random errorss), assuming 1% relative standard deviation in Cci and 0% relative standard deviation in Chi. Algorithms and Programs The eight different algorithms and calibration methods tested are summarised in Table 1.The programs were written in BASIC for a Sharp MZ700 microcomputer, which incorporates a plotter - printer for the production of graphs and “hard copy” of results. The basic curve fitting program described by Miller6 was modified to produce the required algorithms.7-14 Where possible the results from these algorithms were compared with results from the appropriate commercial instrument. The comparison of86 JOURNAL OF ANALYTICAL ATOMIC SPECTROMETRY, FEBRUARY 1986, VOL. 1 Table 1. Summary of algorithms Equations* used and method of curve fitting C = a + bA + cA2, solved for three data points or fitted by least squares for more data points. Coefficients reduced for less than three data points . . . . . . . . . . . . . . . . A/C = a + bA + cA2, fitted as above C = aA + bA2 + cA3, fitted as above .. . . . . . . . . . . . . . . . . . . . . . . C = (klA + k42)/(k2A - l), if the top standard absorbance is within 15% of that predicted by the bottom standard, k3 is set to zero. When the number of standards is three or less, the equation is solved with the appropriate number of coefficients. Otherwise the equation is fitted by least squares points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AIC = a + bA + cA2 solved for each set of three calibration C = a + bA + cA2. A straight line is calculated between the blank and lowest standard. A quadratic is then applied between the next two data points, a third point being calculated using extrapolated slopes . . . . . . . . . . . . . . . . .. C = a + bA, solved for every two points . . . . . . . . . . . . Manufacturers who have adopted Name assigned to algorithm in the algorithm Fig. 1 Baird Atomic (Data-comp system) Baird Atomic (Alpha-star system) Instrumentation Laboratory IL Cubic Baird Quadratic Baird Rational Perkin-Elmer Varian Associates Pye Unicam - PE 3 Coefficient PE 2 Coefficient Varian Rational PU Quadratics Linear Interpolations * Where C is concentration, A is absorbance and a, b, c, k l , k2 and k3 are coefficients to be found during the fitting pro- cedure. Table 2. Calibration and test data Data used for calibration Nickel Chromium Magnesium Concentration/ 4 point 5 Point mg 1-1 X X 0 X X 5 10 X 20 X 30 X 40 50 X X 60 Absorbance 0 0.198 0.317 0.472 0.560 0.617 0.662 0.701 Concentration/ mg I-' 0 5 10 15 20 30 40 50 Absorbance 0 0.296 0.510 0.696 0.824 1.002 1.140 1.198 Concentration/ mg 1-1 0 0.1 0.3 0.4 0.5 0.7 1.0 1.3 Absorbance 0 0.092 0.283 0.384 0.484 0.656 0.926 1.156 the Pye Unicam SP9 algorithm showed that it was not the same as the one written for the microcomputer, so the SP9 computer was used for subsequent experiments.Adjustment of the burner height was used to produce the required absorbance values. The other algorithms written for the microcomputer showed no significant difference from those used in commercial instruments. Results and Discussion The calibration data used is shown in Table 2 and the RMSPD values and their standard deviations are presented as output from the microcomputer in Fig. 1. Values for the associated SSPDs are not given, as they varied by powers of ten, and can easily be calculated from the RMSPD values.The large value for the Perkin-Elmer three-coefficient fit to the four point magnesium calibration is due to the curve becoming discon- tinuous and asymptotic to absorbance 0.6, as shown in Fig. 2. In this instance, the commercial algorithml'J2 would choose the two-coefficient version of the function. Clearly, a quadratic function (Baird Quadratic) does not provide a satisfactory model for calibration curves, except when the curve is virtually linear. A parabola can produce the required asymptote but will also give curvature at the blank level where, in practice, the calibration is often linear. The results for the manual plots are the average RMSPD and SDRMSPD values for the three analysts involved.Although these average parameters compare favourably with those of the computer fitted algorithms, individual results varied and no one person was consistent. Linear interpolation only appears to be useful if curvature is slight, or if many calibration points are employed. As might be expected, all the algorithms perform well for the situation in which the calibration is nearly linear but differences become apparent as curved calibrations are encountered. It is interesting to note that fitting a curve by eye is no better, and often worse, than fitting by computer. There are several ways in which the goodness of fit of a curve to a set of points can be assessed. A commonly used parameter for straight lines is the correlation coefficient.However this tends to give values close to unity if the fit is good for higher absorbances and concentrations even if the fit is poor further down the calibration curve. In addition, it cannot be used for algorithms that either solve equations explicitly for a number of data points, or use interpolation methods. The sum of squares of the percentage deviations and its root mean square are thus more appropriate measures of the goodness of fit as they can be used for all types of algorithm if intermediate data points are used between calibration points. These parameters represent the fit over all of the curve and, being based on percentage deviations in the concentrations, are unbiased towards any part of the curve. The RMSPD represents the likely error in the concentration, calculated by the algorithm, due to the curve fitting method. The parameter used by Knegt and Stork15 is very similar but is based on the absorbance values rather than concentration values.This does not give any indication of the error in concentrations due to the curve fitting method. No attempt was made to compare the calibration algorithms with the standards distributed differently along the curve, which may have improved the performance of some algorithms. This would require detailed knowledge of the curve shape, which may not be available in a real analytical situation.JOURNAL OF ANALYTICAL ATOMIC SPECTROMETRY, FEBRUARY 1986, VOL. 1 87 10 - 5w - - - - 0 \ H E w Fig. 1. RMSPD values for each algorithm and element. The dotted lines represent k half the standard deviations of the values: (a) nickel, 5 point; ( b ) nickel, 4 point; (c) chromium, 5 point; ( d ) chromium, 4 point; (e) magnesium, 5 point; and u> magnesium, 4 point.A, Baird Quadratic; B, Baird Rational; C, IL Cubic; D, Varian Rational; E, PE 3 Coefficient; F, PE 2 Coefficient; G , PU Quadratics; H, Linear Interpolation; and I, Manual 1.2 0 1.3 Concentration, p.p.rn. Fig. 2. The discontinuity observed for the four-point magnesium calibration, when fitted with the Perkin-Elmer 3 Coefficient function Conclusions It is apparent that the performance of a particular algorithm depends on the shape of the calibration curve. There are situations in which the errors introduced by the poor fit of the calibration function can be quite serious.In such instances, manual plotting of the calibration curve is no better than the computer fitted curves. Given the difficulty of predicting what the shape of a particular element’s calibration curve will be for a particular instrument under a particular set of operating conditions, it seems likely that whatever algorithm is used there will always be errors due to the lack of fit. These errors will generally be worse, the fewer the calibration points that are used. As calibration is a non-productive part of an instrument’s operating period, there is naturally a tendency to reduce the number of standards required to the minimum. Some improvements in the fits obtained with the various algorithms may be possible if appropriate weighting is given to each calibration point.It is well known that the calibration points are heteroscedastic. One possible way round the errors introduced by fitting curves to a limited number of calibration points is to use an alternative calibration strategy. Two such alternative strategies, based on the use of a microcomputer, are: ( a ) to produce a continuous concentration - time profile from an exponential dilution flask16 and to collect, in effect, a very large number of calibration points over the required working range; and ( b ) to dilute automatically, by a known factor, a concentrated standard to give the same absorbance as the unknown.” Neither of these two methods requires any knowledge of what the shape of the absorbance concentration plot is. We thank the Trustees of the Analytical Chemistry Trust Fund of the Royal Society of Chemistry for the award of an SAC Research Studentship. 1.2. 3. 4. 5 . 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. References Tyson, J. F., Analyst, 1984, 109, 313. Price, W. J . , “Spectrochemical Analysis by Atomic Absorp- tion,” Heyden, London, 1979. de Galan, L., van Dalen, H. P. J., and Kornblum, G. R., Analyst, 1985, 110, 323. Miller-Ihli, N. J., O‘Haver, T. C., and Harnly, J. M., Spectrochim. Acta, Part B , 1984, 39, 1603. Miller, J. C., and Miller, J. N., “Statistics for Analytical Chemistry,” Ellis Horwood, Chichester, 1984, p. 46. Miller, A. R., “BASIC Programs for Scientists and Engineers,” Sybex, Berkeley, CA, 1981. Baird Atomic, “Handbook for the Model A5195 Datacomp,” Baird Atomic, Braintree, Essex. Hall, J. R., “Notes on Alphastar-2 Atomic Absorption Curve Correction,” Baird Atomic, Braintree, Essex, 1982. Limbek, B. E., and Rowe, C . J., “Varian Lecture Transcript,” Varian Techtron, Victoria, Australia, 1977. “Some Applications of the IL751 Atomic Absorption Spec- trometer,” Reprint 84, Instrumentation Laboratory, Wilming- ton, MA, 1977. Perkin-Elmer, US Patent 4238830, 1980. Barnett, W. B., Spectrochim. Acta, Part B, 1984,39, 829. Whiteside, P. J., Stockdale, T. J., and Price, W. J., Spectro- chim. Acta, Part B , 1980, 35, 795. Whiteside, P. J., and Stockdale, T. J., “Signal and Data Processing for Atomic Absorption Spectrophotometry,” Pye Unicam, Cambridge. Knegt, J., and Stork, G., Fresenius 2. Anal. Chem., 1974,270, 97. Tyson, J. F., and Appleton, J. M. H., Anal. Proc., 1985,22,17. Bysouth, S. R., and Tyson, J. F., work in progress. Paper J.5116 Received July 12th, 1985 Accepted September 2nd, 1985

 

点击下载:  PDF (396KB)



返 回