Abstract:
A spectrometric method for determining a physical or a chemical target quantity by performing the photometric measurement at plural wavelengths predetermined which includes the steps of measuring variation vectors by varying error variation factors by predetermined units which are defined in a space having a dimension equal to the number of the plural wavelengths, seeking for a subspace of the space which is orthogonal to all variation vectors, performing the photometric measurement for samples having known values of the target quantity, projecting vectors obtained from the photometric measurement for samples on the subspace and calculating a calibration curve using data obtained by the projection on the subspace.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a spectrometric method capable of removing error factors. 
     2. Description of Related Art 
     Generally speaking, in the spectrometric method for determining a physical or chemical quantity photometric measurement of a target is made at plural wavelengths different from each other and the quantity is determined by a predetermined calibration curve using those data obtained by the photometric measurement. 
     The calibration curve is usually determined in the following manner. 
     Assuming the number of wavelengths used for the photometric measurement is n, n or more samples having known with respect to the quantity are prepared and the measurement is performed for all samples prepared. Further, assuming the calibration curve is represented by a linear combination of n photometric data obtained at n wavelengths in the following form; 
     
         b=Q.sub.1 B.sub.1 +Q.sub.2 B.sub.2 + . . . +QnBn 
    
     wherein b indicates the quantity to be determined, B 1  to Bn are photometric data obtained at n wavelengths and Q 1  to Qn are coefficients, these coefficients are determined according to a known approximation method such as least square method so that the sum of differences Δb i  for i=1 to n each of which is defined as a difference between each of known values of the quantity and each of values thereof calculated according to the above equation can be minimized. 
     Once the calibration curve has been determined, the quantity of an unknown sample is calculated from the calibration curve using n photometric data at n wavelengths obtained with respect to the unknown sample. 
     Photometric data obtained include various errors. According it is necessary to remove those errors in order to obtain a correct value. As factors which cause those errors, temperature variation of the sample (hereinafter referred to as sample temperature variation), variation of the scattering factor of the sample (hereinafter referred to as sample scattering variation) and temperature variation of the measuring apparatus (hereinafter referred to as machine temperature variation) can be recited. 
     In order to remove errors due to the sample, measured data are corrected according to the temperature of sample measured at that time. Also, it is necessary to maintain the temperature of sample constant in order to avoid a rise of the temperature of sample due to the incident light during the measurement. 
     However, there may be a shift between the measured temperature and an actual temperature of sample and, also, there may be a difference between the temperature of a portion of the sample at which it is measured and the temperature of another portion thereof at which the photometric measurement is performed actually. Further, the spectrometer becomes more complicated and higher at the cost thereof in order to control the temperature of sample constant and, generally speaking, the temperature control itself is quite difficult. 
     In order to eliminate errors due to temperature drifts of the light source and sensors used in the spectrometer, data can be corrected according to changes in temperatures of them in a manner similar to the correction of errors due to the sample temperature variation and it is desirable to control the machine temperature in the spectrometer. 
     However, this is also quite difficult as in the case of the control of the sample temperature. 
     Further, for instance, the two wavelength spectrometry is used in order to eliminate errors caused by the sample scattering variation due to inhomogeneousness of the sample such as muddiness. 
     In this method, the measurement is performed using two lights of different wavelengths λ 1  and λ 2  to obtain a difference ΔA between two absorbances A(λ 1 ) and A(λ 2 ) measured. If two wavelengths λ 1  and λ 2  are near with each other in the case of the sample having muddiness therein, errors due to the sample scattering variation are considered to be substantially equal between two wavelengths λ 1  and λ 2 . Accordingly, the difference of absorbance ΔA can be considered free from errors due thereto. Therefore, the determination of the quantity free from those errors can be made by using a calibration curve obtained from data regarding the difference of absorbances ΔA. 
     Further, in the differential spectrometry, a calibration curve is determined using differential absorbance ΔA obtained when the difference between two wavelength λ 1  and λ 2  is made close to zero. In this method, it is possible to remove errors due to the sample scattering variation which has no wavelength dependency. 
     However, in the known method such as the two wavelength spectrometry or the differential spectrometry, only the sample scattering variation with no wavelength dependency can be removed. In fact, the sample scattering varies with the wavelength as in Rayleigh scattering. Accordingly, it is impossible to remove errors due to the sample scattering variation completely. 
     SUMMARY OF THE INVENTION 
     An essential object of the present invention is to provide a spectrometric method being capable of removing various errors included in measured data effectively. 
     In the spectrometry according to the present invention, the following steps S1 to S4 are performed. 
     S1; measuring an output variation per unit of each of error factors beforehand at every wavelength, 
     S2; determining a subspace orthogonal to all vectors in a space of a dimension equal to the number of wavelengths used for the measurement which are obtained by assuming that data of output variations obtained form vectors in said space, 
     S3; performing spectral measurements for plural samples having known physical or chemical quantities of a target of measurement at respective wavelengths and converting data obtained to those projected on said subspace, and 
     S4; determining a calibration curve representing a correlation of the quantity to be determined with data obtained by the above conversion. 
     According to the present invention, all factors causing errors are removed effectively since the calibration curve is determined based on data projected on said subspace orthogonal to all vectors corresponding to all error factors. 
     Data measured with respect to unknown samples are projected in said subspace and the target quantity is determined from the projected data according to the calibration curve. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     These and other objects and features of the present invention will become clear from the following description taken in conjunction with the preferred embodiment thereof with reference to the accompanying drawings, in which: 
     FIG. 1(a) is a flow chart for determining a calibration curve according to the present invention, 
     FIG. 1(b) is a flow chart for determining the target quantity according to the calibration curve, 
     FIG. 2 is a schematical view for showing a composition of an apparatus for measuring infrared rays transmitted through a sample, 
     FIG. 3 is a graph for showing an output variation due to the sample temperature variation, 
     FIG. 4 is a graph for showing an output variation due to the sample scattering variation, 
     FIG. 5 is a graph for showing a variation of the absorbance of a sample, 
     FIGS. 6(a), 6(b) and 6(c) are graphs for showing variations of data projected on the subspace defined according to the present invention, respectively, 
     FIG. 7 is a graph showing densities of ethanol calculated using the calibration curve determined according to the present invention, 
     FIG. 8 is a graph showing densities of ethanol calculated using a calibration curve determined according to the conventional spectrometry, 
     FIG. 9 is a graph showing densities of sulfuric acid calculated using the calibration curve determined according to the present invention, 
     FIG. 10 is a graph showing densities of sulfuric acid calculated using the calibration curve determined according to the conventional spectrometry, and 
     FIG. 11 is a graph showing a sample temperature variation during the measurement of data shown in FIG. 9 and FIG. 10. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     FIG. 2 shows a schematical composition of an apparatus for measuring transmitted infrared rays. The measurement of the density in this apparatus is based upon Beer-Lambert Law wherein a near infrared transmitted spectrum of a target liquid varies proportional to the density of a component contained in the target liquid. 
     In this apparatus, infrared rays emitted from a light source 1 are reflected by a reflection mirror 2 and, then, are focused in a flow cell 3. A sample liquid 4 is introduced into the flow cell 3 continuously. The infrared rays having been transmitted through the sample 4 are reflected by a reflection mirror 5 and, then, are decomposed into rays of predetermined wavelengths by six interference filters 6. These interference filters 6 are supported radially by a disc 7 and it is rotated at 15 turns per second by a rotating means not shown. The light having been transmitted through one of six filters 6 is reflected by a reflection mirror 8 and, then, focused on a light sensor 9. The sensor 9 transforms an incident light signal to an electric signal. A data processor 11 converts each electric signal from the sensor 9 to digital data and determines respective absorbances Ai (i=1 to 6) about six wavelengths corresponding six filters 6 according to the next equation with use of blank data. 
     
         Ai=-log (Ii/Ioi)                                           (1) 
    
     wherein Ai indicates the absorbance at i-th wavelength, Ii and Ioi indicate intensities of lights transmitted through cell filled with the sample and the blank cell at i-th wavelength, respectively. 
     According to Beer-Lambert Law, the following equation is obtained. 
     
         Ai=a.sub.i ·b·c                          (2) 
    
     wherein a i  is the absorption coefficient of a material at i-th wavelength, b is a cell length and c is a density of a sample. Since a i  takes a proper value according to the material and the cell length b is constant, a product k i  of a i  and b is considered to be constant. Accordingly, the equation (2) is set as follows. 
     
         Ai=k.sub.i ·c                                     (b 3) 
    
     Therefore, if k i  is determined beforehand by another measurement, the density c can be determined by measuring the absorbance Ai. Data processed by the data processor 11 are outputted to a recorder 12. 
     The light intensity Ii detected by the sensor 9 varies according to not only the sample density c i  but also the sample temperature, the sample scattering and the temperature of the apparatus. 
     FIG. 3 shows variations of the absorbance of water due to the sample temperature variation at six wavelengths 1530 nm (A), 1400 nm (B), 1430 nm (C), 1490 nm (D), 1550 nm (E) and 1680 nm (F) when the temperature varies form 23.0° C. to 27.5° C. 
     Similarly to FIG. 3, FIG. 4 shows variations of the absorbance of water at six wavelengths when milk of a predetermined amount is added to the water to make it cloudy in white. 
     According to the conventional method, a calibration curve represented by the following equation is determined using six output values Ai as they are. ##EQU1## wherein Qj (j=1 to 12) are coefficients to be determined so as to minimize errors. In this method, the density determined by the above calibration curve is affected by various error factors directly. 
     According to the present invention, output data Ai (i=1 to 6) at six wavelengths are converted into data free from those error factors in the following manner. 
     At first, output variations ΔA 1 , ΔA 2 , . . . , ΔA 6  per a unit of the sample temperature at the six wavelengths are measured and represented by a vector T having six components ΔA 1  to ΔA 6  which is defined in a space having a dimension equal to the number of wavelengths used for the measurement. 
     
         T=(ΔA.sub.1, ΔA.sub.6) 
    
     Similarly, output variations per individual units due to the sample scattering variation (S) and the machine temperature variation (M) are represented by vectors S and M. 
     Then, a vector P which satisfies the following equations is sought for. 
     
         P·T=0 
    
     
         P·S=0 
    
     
         P·M=0                                             (5) 
    
     wherein &#34;·&#34; indicates the inner product of two vectors. 
     In this case, three vectors P 1 , P 2  and P 3  exist as independent solutions of the vector P. These three independent vectors P 1 , P 2  and P 3  defines a subspace of the whole space with six dimension. This subspace is orthogonal to all vectors T, S and M. 
     Next, the measurement is performed for known samples of a number equal to or more than the number of dimension of said subspace at the six wavelengths. Data thus obtained are converted to data free from the error factors by projecting the former on said subspace in the following manner. 
     Assuming each set of six data A 1  to A 6  of one sample measured at six wavelength, respectively is represented by a vector A having a dimension equal to the number of the wavelengths used for the measurement, the latter data can be obtained by taking inner products as follows. 
     
         X.sub.1 =P.sub.1 ·A 
    
     
         X.sub.2 =P.sub.2 ·A 
    
     
         X.sub.3 =P.sub.3 ·A                               (6) 
    
     Namely, X 1 , X 2  and X 3  are data obtained by projecting the vector A on said subspace defined by three independent vectors P 1 , P 2  and P 3  and, accordingly, free from the error factors mentioned above. 
     FIGS. 6(a), 6(b) and 6(c) show variations of three data X 1  to X 3 , respectively, when the absorbances of the sample at six wavelengths are varied as shown in FIG. 5. As is apparent from these figures, all of three data are kept constant. 
     Then, Coefficients Rj of the calibration curve for the density c are determined using all of sets X 1 , X 2  and X 3  obtained from all samples. The calibration curve c is assumed to be a polynominal comprised of singlenominals and binominals of X 1  to X 3  as follows. 
     
         c=R.sub.1 X.sub.1 +R.sub.2 X.sub.2 +R.sub.3 X.sub.3 +R.sub.4 X.sub.1.sup.2 +R.sub.5 X.sub.2.sup.2 +R.sub.6 X.sub.3.sup.2 =f(x.sub.i) (7) 
    
     As is well known to those skill in the art, the coefficients Rj (j=1 to 6) can be determined by a known approximation method, for example, least square method. 
     Upon determining the density of an unknown sample, said six output values Ai (i=1 to 6) are measured at six wavelengths with respect thereto and the vector consisted of said six values is projected on said subspace to obtain data Xi (i=1 to 3). Thereafter, the density c is determined using said calibration curve. 
     As will be stated in detail, according to the present invention, the accuracy of measurement is enhanced amazingly when compared with the conventional method. 
     EXAMPLE I 
     Measurement of Ethanol During the Brewing Process of Japanese &#34;Sake&#34; 
     Wavelength used for the measurement are 2044, 2126, 2279, 2301, 2339 and 2392 (nm), respectively, the scattering variation vector S(measured values) is (1.23, 1.21, 1.15, 1.11, 1.02, 1.00) and the machine temperature variation vector M is (1, 1, 1, 1, 1, 1). In this case, errors due to the machine temperature variation are assumed to have no wavelength dependency and errors due to the sample temperature variation are neglected. Four base vectors P 1 , P 2 , P 3  and P 4  orthogonal to the vectors S and M as follows. 
     P 1  =(-0.3982, -0.0569, 0.3698, 0.3698, 0.3698, -0.6542) 
     P 2  =(0.3122, -0.7374, 0.3454, 0.3455, -0.3388, 0.0731) 
     P 3  =(-0.1924, 0.0186, 0.7386, -0.6269, -0.0745, 0.1365) 
     P 4  =(-0.5243, 0.3292, 0.1097, 0.4268, -0.5975, 0.2561) 
     Accordingly, four projected data X 1  to X 4  are obtained from an observation vector A consisted of six components A 1  to A 6  measured at six wavelengths {A consisted of six components A 1  to A 6  measured at six wavelengths {A=(A 1 , A 2 , A 3 , A 4 , A 5 , A 6 )} as follows. 
     X 1  =P 1  ·A 
     X 2  =P 2  ·A 
     X 3  =P 3  ·A 
     X 4  =P 4  ·A 
     FIG. 7 shows densities which are calculated using the following calibration curve in comparison with real densities prepared beforehand. 
     
         c=R.sub.1 X.sub.1 +R.sub.2 X.sub.2 +R.sub.3 X.sub.3 +R.sub.4 X.sub.4(8) 
    
     wherein c indicates the density of ethanol and Ri (i=1 to 4) are coefficients to be determined. 
     FIG. 8 shows densities which are calculated using the following conventional calibration curve in comparison with real densities. 
     
         c=Q.sub.1 A.sub.1 +Q.sub.2 A.sub.2 + . . . +Q.sub.6 A.sub.6(9) 
    
     Table shows all data shown in FIGS. 7 and 8 which are obtained with respect nine samples. 
     As is apparent from comparison of FIG. 7 with FIG. 8, the accuracy of measurement is greatly improved in the present invention. 
     
         ______________________________________Sample   Real        Present  ConventionalNo.      density     invention                         method______________________________________1        16.12       16.30    16.822        14.86       14.83    14.053        14.39       14.62    15.214        13.92       14.21    14.065        12.39       12.06    12.256        9.87        9.82     11.237        8.83        8.36     12.148        9.03        8.98     9.919        9.49        9.26     11.31______________________________________ unit weight % 
    
     EXAMPLE II 
     Removement of Errors Due to Temperature Variation in Measurement of Density of Sulfuric Acid 
     Wavelengths used for the measurement are 980, 1080, 1150, 1200, 1250 and 1300 (nm), the sample temperature variation vector T is measured (2.27, -0.53, 5.53, -1.56, -3.80, -1.15) and the machine temperature variation vector M  is (1, 1, 1, 1, 1, 1,). It is assumed that errors due to the machine temperature variation have no temperature dependence and that errors due to the sample scattering variation are neglected. Four base vectors P 1 , P 2 , P 3  and P 4  being independent with each other and orthogonal to both vectors T and M are obtained as follows. 
     P 1  =(-0.3800, -0.0855, 0.3736, 0.3736, 0.3736, -0.6554) 
     P 2  =(-0.5655, 0.7129, 0.0732, 0.0732, -0.3899, 0.0961) 
     P 3  =(-0.0991, 0.2654, 0.1759, -0.7973, -0.5010, -0.0458) 
     P 4  =(-0.5239, -0.4893, 0.3434, -0.0086, 0.0764, 0.6019) 
     Using the observation vector A=(A 1 , A 2 , A 3 , A 4 , A 5 , A 6 ) obtained at six wavelengths, the following projected values X 1  to X 4  are obtained. 
     X 1  =P 1  ·A 
     X 2  =P 2  ·A 
     X 3  =P 3  ·A 
     X 4  =P 4  ·A 
     Using projected values, the following calibration curve c representing the density of sulfuric acid is determined. 
     
         c=R.sub.1 X.sub.1 +R.sub.2 X.sub.2 +R.sub.3 X.sub.3 +R.sub.4 X.sub.4(10) 
    
     FIG. 9 shows a time variation of the density c calculated using the calibration curve according to the present invention. 
     FIG. 10 shows a time variation of the density calculated using the conventional calibration curve in a form as follows. 
     
         c=Q.sub.1 A.sub.1 +Q.sub.2 A.sub.2 + . . . +Q.sub.6 A.sub.6(11) 
    
     Further, FIG. 11 shows a time variation of the sample temperature during the measurement. As is apparent from comparison of FIG. 9 with FIG. 10, the density according to the present invention is quite stable having a very small amplitude while the density according to the conventional method varies according to the variation of the sample temperature shown in FIG. 11 significantly. Thus, in the present preferred embodiment, errors due to the variation of the sample temperature are perfectly removed. 
     In the preferred embodiment, the density is used as a physical or chemical quantity, but other physical or chemical quantities can be sought for by using a calibration curve determined according to the present invention. 
     It is understood that various other modifications will be apparent to and can be readily made by those skilled in the art without departing from the scope and spirit of the present invention. Accordingly, it is not intended that the scope of the claims appended hereto be limited to the description as set forth herein, but rather that the claims be construed as encompassing all the features of patentable novelty that reside in the present invention, including all features that would be treated as equivalents thereof by those skilled in the art to which the present invention pertains.