Method for on-line determination of a basicity index of a liquid body and use of said method for a lubricant

10634610 · 2020-04-28

Assignee

Inventors

Cpc classification

International classification

Abstract

A method for determining a basicity index of a liquid body comprising: (a) detecting an intensity of an infrared signal passing through a sample of the liquid body; (b) calculating a transmittance value of infrared waves through the sample for p wave numbers, wherein p in a natural integer greater than or equal to two; and (c) determining the basicity index of the liquid body, BN, wherein of BN=Tr.Math.M.sub.(p1)+R, Tr is a set of transmittance values calculated in step b, M.sub.(p1) is a set of data of a model, the set of data containing coefficients determined from measured basicity index values and measured transmittance values of reference liquid bodies, and R is a residue of the model, determined from the measured basicity index values and the measured transmittance values of the reference liquid bodies.

Claims

1. A method for an on-line determination of a basicity index of a liquid body to be characterized by mid-infrared spectroscopy, the method comprising: a) detecting an intensity of an infrared signal passing through a sample of the liquid body to be characterized; b) subsequent to step a), calculating a transmittance value of infrared waves through the sample for p wave numbers, wherein p is a natural integer greater than or equal to two; and c) determining and expressing the basicity index of the liquid body to be characterized in the form of BN=Tr.Math.M.sub.(p1)+R where: BN is the basicity index of the liquid body to be characterized; Tr is a set of transmittance values calculated in step b); M.sub.(p1) is a set of data of a model, the set of data containing coefficients determined from measured basicity index values and measured transmittance values of reference liquid bodies; and R is a residue of the model, determined from the measured basicity index values and the transmittance values of the reference liquid bodies.

2. The method according to claim 1, wherein during step b), the transmittance value for each wave number is calculated as a ratio of the intensity of the infrared signal passing through the sample and a reservoir containing the sample of the liquid body to be characterized to an intensity of an infrared signal passing through the reservoir when empty.

3. The method according to claim 1, wherein step b) comprises: b1) calculating, for each wave number, a ratio of an intensity of an infrared signal passing through the sample and a reservoir containing the sample of the liquid body to be characterized to an intensity of the signal passing through the reservoir when empty; and b2) calculating the transmittance value in the form of a corrected value of the ratio calculated in step b1).

4. The method according to claim 3, wherein during step b2), the value of the ratio is corrected by filtering and/or by removing a baseline.

5. The method according to claim 1, wherein the transmittance value comprises a unidirectional matrix with one row and p columns and the set of data of a model is a unidirectional matrix with p rows and one column.

6. The method according to claim 1, further comprising the following prior steps carried out to determine the model: 1) detecting an intensity of an infrared signal, for the p wave numbers, when in the vacuum; 2) detecting an intensity of an infrared signal, for the p wave numbers, within n samples, each representative of a reference liquid body; 3) calculating the transmittance of each reference liquid body as a set of values defined, for each wave number, as a ratio of the intensity detected in step 2) to the intensity detected in step 1); 4) creating a first set of data of reference, the first set of data of reference comprising the transmittance values calculated in step 3) for the n samples and for the p wave numbers; 5) measuring the basicity index of each reference liquid body; 6) creating a second set of data of reference, the second set of data of reference comprising the n basicity index values measured in step 5); and 7) determining, by calculation, the set of data of the model and the residue of the model, based on the first and second sets data of reference.

7. The method according to claim 6, wherein during step 3), the transmittance of each reference liquid body is calculated as a set of values defined, for each wave number, as a ratio of the intensity detected in step 2) to the intensity detected in step 1).

8. The method according to claim 6, wherein step 3) comprises: 3.1) calculating, for each wave number, a ratio of the intensity detected in step 2) to the intensity detected in step 1); and 3.2) calculating the transmittance value in the form of a corrected value of the ratio calculated in step 3.1).

9. The method according to claim 6, wherein: the transmittance value comprises a unidirectional matrix with one row and p columns and the set of data of the model is a unidirectional matrix with p rows and one column; the first set of data of reference is a two-dimensional matrix with n rows and p columns, each row comprising transmittance values calculated in step 3) for a reference liquid body and p wave numbers and each column comprising transmittance values calculated for a wave number and the n reference liquid bodies; and the second set of data of reference is a unidirectional matrix with n rows and one column.

10. The method according to claim 6 further comprising the following steps carried out during step 7) to determine the model: 1) defining a first set of data of calculation, the first set of data of calculation being an image of the first set of reference data; 2) defining a second set of data of calculation, the second set of data of calculation being an image of the second set of reference data; 3) defining a first variable dependent on the first set of data of calculation according to the relationship: T=X.Math.W, wherein T is the first variable, X is the first set of calculation data, and W is a first weight coefficient; 4) defining a second variable dependent on the second set of data of calculation according to the relationship: C=Y.Math.U, wherein C is the second variable, Y is the second set of calculation data, and U is a second weight coefficient; and 5) calculating the values of the two weight coefficients iteratively, while maximizing the covariance of the first and second variables.

11. The method according to claim 10 further comprising the following steps carried out during step 7) to determine the model: 6) applying, to each iteration, a linear regression of the first set of data of calculation on the first variable; 7) applying, to each iteration, a linear regression of the second set of data of calculation on the first variable; 8) calculating, in each iteration, an estimated value of the first set of data of calculation, by applying a transpose of a slope of the linear regression, determined in that iteration, to the first variable calculated in that iteration; 9) calculating, in each iteration, an actual value of the first set of data of calculation, by subtracting the estimated value calculated in step 8) from an actual value of this first set of data of calculation calculated in the previous iteration; 10) calculating, in each iteration of step 5), an estimated value of the second set of data of calculation, by applying a transpose of a slope of the linear regression, determined in that iteration, to the first calculated variable calculated in that iteration; and 11) calculating, in each iteration, an actual value of the second set of data of calculation, by subtracting the estimated value calculated in step 10) from an actual value of this second set of data of calculation calculated in the previous iteration.

12. The method according to claim 11, wherein steps 5) to 11) are repeated until the value of the second set of data becomes lower than a predetermined threshold value.

13. The method according to claim 11, further comprising the following steps to determine the model: 1) expressing the second set of reference data as a function of the first variable according to the relationship: Y 0 = .Math. 1 K W k q k t + Y K where: K is the number of iterations of step 5), k is a natural number between 1 and K, and Tk is the first variable with iteration rank k, .sup.tq.sub.k is the transpose of the linear regression slope used in step 10), and Y.sub.K is the second set of calculation data with iteration rank K; and 2) determining the set of data of the model and the residue of the model as respectively being equal to:
M.sub.(p1)=.sub.1.sup.KW.sub.k.sup.tq.sub.k, and
R=Y.sub.K, where W.sub.k is the weight coefficient with iteration rank k.

14. The method according to claim 10, wherein: the transmittance value comprises a unidirectional matrix with one row and p columns and the set of data of the model is a unidirectional matrix with p rows and one column; the first set of data of reference is a two-dimensional matrix with n rows and p columns, each row comprising transmittance values calculated in step 3) for a reference liquid body and p wave numbers and each column comprising transmittance values calculated for a wave number and the n reference liquid bodies; the second set of data of reference is a unidirectional matrix with n rows and one column; the first variable is a two-dimensional matrix with n rows and p columns; the second variable is a unidirectional matrix with n rows and one column; the first weight coefficient is a two-dimensional matrix with p rows and p columns; the second weight coefficient is a number; in each iteration, the weight coefficients are calculated according to the following equations:
W.sub.k=.sup.tX.sub.k-1Y.sub.k-1.sup.tY.sub.k-1X.sub.k-1, and
U.sub.k=.sup.tY.sub.k-1X.sub.k-1.sup.tX.sub.k-1Y.sub.k-1, where an index k applied to a matrix indicates the value of that matrix in iteration k; the linear regression of step 6) is done based on an equation of the type:
X.sub.k-1=T.sub.k.sup.tp.sub.k+X.sub.k, where p.sub.k is a matrix of regression coefficients determined using the method of least squares and expressed in the form: p k = X k - 1 t T k T k t T k ; the linear regression of step 7) is done based on an equation of the type:
Y.sub.k-1=T.sub.k.sup.tq.sub.k+Y.sub.k.sub.k, where q.sub.k is a matrix of regression coefficients determined by the method of least squares and that is expressed in the form: q k = Y k - 1 t T k T k t T k .

15. The method according to claim 1, wherein the liquid body is a lubricant circulating in a piece of equipment on a ship.

16. The method according to claim 15, wherein the piece of equipment is an engine.

17. The method according to claim 1, wherein the liquid body is a lubricant.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The invention will be better understood, and other advantages thereof will appear more clearly, in light of the following description of two embodiments of a method according to its principle, provided solely as an example and done in reference to the appended drawings, in which:

(2) FIG. 1 is a schematic block illustration of a facility making it possible to carry out the inventive method;

(3) FIG. 2 is a block diagram of a first method according to the invention;

(4) FIG. 3 is a block diagram of certain prior steps, useful to the method of FIG. 2;

(5) FIG. 4 is a block diagram of certain other prior steps, useful to the method of FIG. 2;

(6) FIG. 5 is a block diagram similar to FIG. 2, for a second method according to the invention; and

(7) FIG. 6 is a block diagram similar to FIG. 3, for the second method according to the invention.

DETAILED DESCRIPTION OF THE INVENTION

(8) The facility 2 shown in FIG. 1 comprises a reservoir 4 in which a sample E of a lubricant L for a ship propulsion engine is stored and which forms an analysis chamber, the inner volume of which can be relatively small, in particular smaller than 1 cm.sup.3. In practice, the inner volume of the reservoir 4 can be smaller than 0.1 cm.sup.3. The reservoir 4 is supplied with a quantity of lubricant intended to make up the sample E, either by pouring a quantity of lubricant L intended to make up the sample by hand, or from a tapping connected on a lubricant discharge pipe, at the outlet of the ship's engine. A valve 6 mounted on a bleed pipe 8 of the reservoir 4 makes it possible to monitor the evacuation of the quantity of lubricant present in the reservoir 4. The valve 6 is a solenoid valve commanded by an electronic unit 10 configured for that purpose.

(9) The facility 2 also comprises a transmitter 12 and a receiver 14 also controlled by the electronic control unit 10. In particular, the receiver 14 is capable of delivering, to the electronic control unit 10, an electrical signal S14 representative of an infrared signal that it detects.

(10) The transmitter 12 and the receiver 14 are configured to work together in the mid-infrared range. The transmitter 12 sends waves in the mid-infrared range, i.e., with a number of waves N comprised between 4000 cm.sup.1 and 600 cm.sup.1. The sensor 14 is in fact a spectroscope that can work over the aforementioned range of wave numbers. In practice, to determine the basicity index of a ship engine lubricant, the transmitter 12 and the receiver 14 work in a range of wave numbers N comprised between about 1900 cm.sup.1 and about 900 cm.sup.1. This is due to the fact that the response to the infrared rays of various tracers of the basicity index, in particular calcium or magnesium carbonate, sulfonates, is in this range.

(11) When a sample E of lubricant is present in the reservoir 4, it is possible to send, with the transmitter 12, a signal in the form of a beam F of infrared light that is detected by the receiver 14 after having traversed the walls of the container 4 and the lubricant sample E. The method according to the present invention is based on the determination of the transmittance of a sample E of lubricant L placed in the reservoir 4, this transmittance being used to determine the basicity index BN of this lubricant.

(12) The transmittance Tr of a liquid is defined as the ratio I/I.sub.0, where I is the intensity of the beam F detected by the receiver 14 when this beam F traverses both the reservoir 4 and the sample E of this liquid, and I.sub.0 is the same intensity when the beam F with the reservoir 4 is empty of sample, therefore containing air, or with the reservoir removed. In this case where the reservoir does not contain any sample or has been removed, this is called an empty measurement, since there is no sample in the facility 2. In practice, the transmittance T.sub.r is measured for a liquid with different values of the wave number N of the beam F, over the range 1900 cm.sup.1900 cm.sup.1 cited above.

(13) Calculation of the Basicity Index

(14) At the beginning of use of the facility 2, a prior step z is carried out during which the intensity I.sub.0(N) of the beam F captured by the receiver 14 is determined for different wave numbers N, when the reservoir 4 is removed or emptied of any sample. In this example, this determination takes place for 128 wave numbers N. One thus creates a set of 128 empty intensity values I.sub.0(N) for the different values of wave numbers N. This is shown by step z in FIG. 2.

(15) This step z is carried out a single time, even if several samples E are next studied using the steps described below. Thus, it is not necessary to have a blank with the facility 2 before each measurement.

(16) The number p of wave numbers N for which the measurement is done can be chosen to be different from 128, for example equal to 64 or 256, based on the desired precision. This number is greater than or equal to 2.

(17) When the basicity index of the lubricant L must be determined on-line, a quantity of this lubricant is introduced into the reservoir 4 to make up the sample E, within the measuring line shown in FIG. 1 as shown in FIG. 1 [sic], and the intensity I(N) of the beam F detected by the receiver 14 is measured, when this beam F has traversed both the reservoir 4 and the sample E of lubricant L for each of the p wave numbers. This is done during a first step a of the inventive method.

(18) One then calculates, for each number of waves N, the value of the transmittance Tr(N) as being equal to the ratio I(N)//I.sub.0(N) for this number of waves. This takes place during a step b and makes it possible to build the transmittance spectrum Tr of the sample measured with the facility 2, in the form of a matrix with one row and p columns that can be written as follows:
Tr.sub.(1p)=[tr.sub.1tr.sub.2 . . . tr.sub.p](equation 1)
where p is the number of waves taken into account, this number being greater than or equal to 2, as explained above, and for example equal to 128.

(19) When this transmittance matrix Tr is known, one uses, in a subsequent step c of the inventive method, a model calculated in the laboratory and that comprises a unidirectional matrix M.sub.(p1) with p rows and one column. This matrix M.sub.(p1) is in turn made up of weight m.sub.i values for the p wave numbers, where i is a natural integer between 1 and p. It is expressed according to the following relationship:

(20) M ( p 1 ) = [ m 1 .Math. m p ] ( equation 2 )

(21) The method for calculating these weight values m.sub.i is described below, in the calculation of the model section.

(22) The basicity index of the lubricant L, often called BN (base number), or TBN (total base number), is calculated in this step c by the following matricial relationship:
BN=Tr.Math.M.sub.(p1)+(equation 3)
where BN is the basicity index, Tr is the transmittance spectrum of the sample, M.sub.(p1) is the matrix of the model, and R is a residue, i.e., an accepted error of the model, which is expressed in the form of a number.

(23) Thus, the method according to the invention, which uses equation 3 to calculate the basicity index BN, can be automated, in particular done in the unit 10, without the user needing any particular skills and having to spend a long period studying hard-to-read reference tables.

(24) In other words, steps b and c mentioned above can be carried out automatically once the lubricant sample E is in place in the reservoir 4, which makes it possible to calculate the basicity index quickly and reliably and to display a value directly readable by the user, or even to send this value automatically to a control member of the engine from which the lubricant L is taken. In other words, all of the calculation steps are integrated and the sensor only returns the final value of the basicity index via a specific industrial communication protocol. No outside intervention or manipulation is necessary.

(25) In the aforementioned step a), the valve 6 is closed and the intensity I(N) of the beam F is measured while the liquid is at rest in the reservoir 4. Alternatively, this measurement may take place in passing, i.e., when the liquid flows in the reservoir 4, which then acts as a pipe segment, while the valve 6 is open.

(26) Calculation of the Model

(27) The calculation of the model takes place during the performance of steps a to c mentioned above and seeks to determine the matrix M.sub.(p1) and the residue R. Once this model is calculated, it can be used to determine the basicity index of several samples, using steps a to c, as explained above.

(28) To calculate the model, one proceeds from n lubricant samples whose basicity index can be measured using a known technique, n being an integer greater than or equal to 2.

(29) First, transmittance spectrums of these n samples are acquired using the transmitter 12 and the sensor or receiver 14. To that end, a first step 1 is carried out during which the intensity of the signal formed by the beam F is detected empty, when the reservoir 4 is removed or is present but does not contain any sample. This step 1 is the same as step z mentioned above regarding the definition of the transmittance. In practice, step 1 can be carried out during the calculation of the model, and its result can be used during step b mentioned above. Step z mentioned above is therefore optional.

(30) A second step 2 is also carried out, during which the intensity of the signal formed by the beam F is detected through each of the n samples and the reservoir 4. This step 2 is of the same type as step , except that it is done with the n reference samples. After carrying out steps 1 and 2, the unit 10 automatically carries out a step 3 during which the transmittance Tr of each of the n samples is calculated for each of the p considered wave numbers.

(31) This makes it possible to generate, in a following step 4, a first set of reference data X.sup.0 that is built in the form of a matrix with n rows and p columns, expressed in the form:

(32) X ( n p ) 0 = [ x 11 0 x 12 0 .Math. x 1 p 0 x 21 0 x 22 0 .Math. x 2 p 0 .Math. .Math. .Math. x n 1 0 x n 2 0 .Math. x np 0 ] , ( equation 4 )

(33) In this matrix, each row gives the transmittance values of a sample for the p wave numbers and each column gives the transmittance values of the n samples for a wave number.

(34) Secondly, during a step 5, a laboratory analysis is done for these n samples. The basicity index of each of the samples is measured using the ASTM D2896 method.

(35) Alternatively, another method for measuring the basicity index can be implemented, for example potentiometric titration, or ASTM D5984 or ASTM D974 colorimetric indicator titration.

(36) This measurement in step 5 makes it possible to generate, in a following step 6, a second set of reference data Y.sup.0 that is built in the form of a unidirectional matrix with n rows and 1 column and that is expressed in the form:

(37) Y ( n 1 ) 0 = [ y 1 0 .Math. y n 0 ] ( equation 5 )

(38) Alternatively, steps 5 and 6 are carried out before steps 1 to 4, or at the same time.

(39) From the sets of reference data X.sup.0 and Y.sup.0, the method calculates, in a step 7, the values of the matrix M.sub.(p1) and the residue R. This step 7 is shown in FIG. 3 with steps 1 to 6 and, with these steps, constitutes the preliminary part of the inventive method. Step 7 is shown in detail in FIG. 4.

(40) During this step 7 and from the sets X.sup.0 and Y.sup.0 of reference data, it is possible to build, respectively in two steps 1 and 2, two sets of calculation data, which are respectively images of the sets X.sup.0 and Y.sup.0, in the form of matricial variables X and Y defined as follows:

(41) X ( n p ) = [ x 11 x 12 .Math. x 1 p x 21 x 22 .Math. x 2 p .Math. .Math. .Math. x n 1 x n 2 .Math. x np ] , ( equation 6 ) Y ( n 1 ) = [ y 1 .Math. y n ] ( equation 7 )
where X.sub.(np) is a matrix representing n spectrums of transmittance values with p wave numbers and Y.sub.(n1) is a matrix representing values of the basicity index BN corresponding to the n samples. X is an input variable and Y is an output variable for equation 3, since Y corresponds to the basicity index or BN values.

(42) It is desirable to be able to use equation 3, by writing the output variable Y corresponding to the basicity index values BN of the n samples, as a function of the input variable X corresponding to the associated transmittance spectrums.

(43) The aim of the calculation is therefore to write:
Y=X.Math.B+(equation 8)

(44) where B is a matrix with p rows and one column and is a residue.

(45) In other words, the aim is to find a relationship between these two properties X and Y that is expressed as the relationship of equation 3 that one wishes to use in step c. This makes it possible to consider that the matrix B of equation 8 is equal [to] the matrix M and that the value c is equal to the residue R. The writing of equation 8 therefore seeks to determine the matrix M.sub.(p1) of the model and its residue R.

(46) To that end, new variables T and C are created by performing a linear transform of the properties X and Y, respectively during a step 3 and a step 4, in the form:
T=X.Math.W(equation 9)
and
C=Y.Math.U(equation 10)
where W and U are weight coefficients for the variables X and Y.

(47) The transform of the properties X and Y during steps 3 and 4 is done to maximize the covariance between the new created variables T and C with the aim of finding the correlation between the properties X and Y as described in equation 8. The covariance Cov(T,C) of the variables T and C is expressed in the following form:

(48) Cov ( T , C ) = Cov ( XW , YU ) = 1 n - 1 t W t XYU ( equation 11 )

(49) In other words, one seeks to calculate the weight coefficients W and U that maximize equation 11.

(50) The resolution of this problem is done using an iterative method, considering successive values W.sub.k and U.sub.k of the weight coefficients, where k is the iteration. It consists of the following steps, which will be repeated K times, K being an integer greater than or equal to 2:

(51) Initially, one has X=X.sup.0 and Y=Y.sup.0.

(52) In a step 5, one calculates W.sub.k and U.sub.k for k comprised between 1 and K.

(53) According to AgnarHskuldsson (PLS regression methods. Journal of chemometrics, 2:221-228, 1988), the solutions W.sub.k and U.sub.k of equation 11 have the following form:
W.sub.k=.sup.tX.sub.k-1Y.sub.k-1.sup.tY.sub.k-1X.sub.k-1(equation 12)
and
U.sub.k=.sup.tY.sub.k-1X.sub.k-1.sup.tX.sub.k-1Y.sub.k-1(equation 13)

(54) This makes it possible to calculate T.sub.k and C.sub.k as follows:
T.sub.k=X.sub.k-1W.sub.k(equation 14)
and
C.sub.k=Y.sub.k-1U.sub.k(equation 15)

(55) One then proceeds, respectively during a step 6 and during a step 7, with a regression of X.sub.k-1 on T.sub.k and C.sub.k, so as to be able to estimate X.sub.k-1 and Y.sub.k-1 with the new variables T.sub.k and C.sub.k, and more particularly to estimate X.sub.k-1 and Y.sub.k-1 as a function of T.sub.k according to the relationships:
X.sub.k-1=T.sub.k.sup.tp.sub.k+X.sub.k.sub.k(equation 16)
and
Y.sub.k-1=T.sub.k.sup.tq.sub.k+Y.sub.k.sub.k(equation 17)

(56) The regression on C.sub.k is not used to calculate the model itself, but to assess its performance.

(57) One therefore calculates, during these steps 6 and 7, regression coefficients p.sub.k and q.sub.k corresponding to the regression of X.sub.k and Y.sub.k respectively on T.sub.k, using the method of least squares. These regression coefficients p.sub.k and q.sub.k are matrices with p rows and q columns. One obtains:

(58) p k = X k - 1 t T k T k t T k and ( equation 16 ) q k = Y k - 1 t T k T k t T k ( equation 17 )

(59) Alternatively, a regression method other than that of least squares can be used. In particular, it is possible to perform an estimate using the maximum likelihood method or the Bayesian interference method.

(60) During a following step 8, the result of the regression is used to calculate an estimated value X.sub.k of the property X with iteration rank k, according to the following relationship:
X.sub.k=T.sub.k.sup.tp.sub.k(equation 18)

(61) Likewise, during a following step 9, an estimated value Y.sub.k is calculated of the property Y with iteration rank k, according to the following relationship:
Y.sub.k=T.sub.k.sup.tq.sub.k(equation 19)

(62) From equations 18 and 19, one deduces, in two subsequent steps 10 and 11, the actual value X.sub.k and Y.sub.k of the properties X and Y with iteration rank k, using the following equations:
X.sub.k=X.sub.k-1X.sub.k=X.sub.k-1T.sub.k.sup.tp.sub.k(equation 20)
where X.sub.k-1 is the actual calculated value with iteration rank k1 and X.sub.k or T.sub.k.sup.tp.sub.k is the estimated value with iteration rank k, and
Y.sub.k=Y.sub.k-1Y.sub.k=Y.sub.k-1T.sub.k.sup.tq.sub.k(equation 21)
where Y.sub.k-1 is the actual calculated value with iteration rank k1 and Y.sub.k or T.sub.k.sup.tq.sub.k is the estimated value with iteration rank k.

(63) This therefore results in writing X.sub.k-1 and Y.sub.k-1 as a function of the new variable T.sub.k, or:
X.sub.k-1=T.sub.k.sup.tp.sub.k+X.sub.k(equation 22)
and
Y.sub.k-1=T.sub.k.sup.tq.sub.k+Y.sub.k(equation 23)

(64) One next increments the value of k, then reiterates steps 5 to 11, using, as initial values for each iteration k+1, the values X.sub.k and Y.sub.k, obtained during the previous iteration k through equations 20 and 21.

(65) These calculations steps 5 to 11 are reiterated K times until obtaining a satisfactory correlation between the measured output values of the model Y.sub.(n1).sup.0 and the input values corresponding to the measurements done X.sub.(np).sup.0 when these properties are linked by the relationship of equation 8, in the following form:
Y.sub.(n1).sup.0=X.sub.(np).sup.0.Math.B+(equation 24)

(66) This satisfactory correlation is considered to be achieved when the residue in this equation 24 has a value below a predetermined threshold value V.sub.0 as a function of the desired precision for the method for calculating the basicity index. If this is the case, equation 24 is considered to be satisfied and the iteration is stopped in a step 12. Otherwise, the iteration continues, returning to steps 3 and 4. A calculation of the mean quadratic error also makes it possible to determine K and stop the iteration in step 12.

(67) Below, the first two iterations of steps 5 to 12 are explained in detail, as an example.

(68) By defining equations 6 and 7, one has:

(69) 0 X ( n p ) = [ x 11 x 12 .Math. x 1 p x 21 x 22 .Math. x 2 p .Math. .Math. .Math. x n 1 x n 2 .Math. x np ] , Y ( n 1 ) = [ y 1 .Math. y n ]

(70) 1 Iteration 1: For k=1 X=X.sup.0 and Y=Y.sup.0

(71) 1.1 Calculation of T.sub.1 in Step 3 and C.sub.1 in Step 4

(72) T 1 = X 0 W 1 = [ x 11 0 x 12 0 .Math. x 1 p 0 x 21 0 x 22 0 .Math. x 2 p 0 .Math. .Math. .Math. x n 1 0 x n 2 0 .Math. x np 0 ] [ w 11 w 12 .Math. w 1 p w 21 w 22 .Math. w 2 p .Math. .Math. .Math. w p 1 w p 2 .Math. w pp ] T 1 = [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] C 1 = Y 0 U 1 = [ y 1 0 .Math. y n 0 ] [ U 1 ] = [ c 1 .Math. c n ]

(73) 1.2 Calculation of W.sub.1 and U.sub.1 in Step 5

(74) W 1 = X 0 t Y 0 Y 0 t X 0 W 1 = [ x 11 0 x 21 0 .Math. x n 1 0 x 12 0 x 22 0 .Math. x n 2 0 .Math. .Math. .Math. x 1 p 0 x 2 p 0 .Math. x np 0 ] [ y 1 0 .Math. y n 0 ] [ y 1 0 .Math. y n 0 ] [ x 11 0 x 12 0 .Math. x 1 p 0 x 21 0 x 22 0 .Math. x 2 p 0 .Math. .Math. .Math. x n 1 0 x n 2 0 .Math. x np 0 ] W 1 = [ w 11 w 12 .Math. w 1 p w 21 w 22 .Math. w 2 p .Math. .Math. .Math. w p 1 w p 2 .Math. w pp ] U 1 = X 0 t X 0 X 0 t Y 0 U 1 = [ y 1 0 .Math. y n 0 ] [ x 11 0 x 12 0 .Math. x 1 p 0 x 21 0 x 22 0 .Math. x 2 p 0 .Math. .Math. .Math. x n 1 0 x n 2 0 .Math. x np 0 ] [ x 11 0 x 21 0 .Math. x n 1 0 x 12 0 x 22 0 .Math. x n 2 0 .Math. .Math. .Math. x 1 p 0 x 2 p 0 .Math. x np 0 ] [ y 1 0 .Math. y n 0 ] U 1 = [ U 1 ]

(75) 1.3 Calculation of the Regression Coefficients p.sub.1 in Step 6 And q.sub.1 in Step 7

(76) p 1 = X 0 t T 1 T 1 t T 1 = ( T 1 t T 1 ) - 1 X 0 t T 1 p 1 = IV 1 ( p p ) [ x 11 0 x 12 0 .Math. x 1 p 0 x 21 0 x 22 0 .Math. x 2 p 0 .Math. .Math. .Math. x n 1 0 x n 2 0 .Math. x np 0 ] [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] p 1 = [ p 11 p 12 .Math. p 1 p p 21 p 22 .Math. p 2 p .Math. .Math. .Math. p p 1 p p 2 .Math. p pp ] q 1 = Y 0 t T 1 T 1 t T 1 = Y 0 t T 1 ( T 1 t T 1 ) - 1 = [ y 1 0 .Math. y n 0 ] [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] IV 1 ( p p ) q 1 = [ q 1 .Math. q p ]

(77) In the preceding, the notation IV.sub.1(pp) corresponds to the result of the calculation of the reverse matrix of .sup.tT.sub.1T.sub.1 in the preceding formula. In involves a square matrix.

(78) 1.4 Regression of X.sub.1 and Y.sub.1 in steps 6 and 7

(79) X 1 = X 0 - T 1 p 1 t X 1 = [ x 11 0 x 12 0 .Math. x 1 p 0 x 21 0 x 22 0 .Math. x 2 p 0 .Math. .Math. .Math. x n 1 0 x n 2 0 .Math. x np 0 ] - [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] [ p 11 p 12 .Math. p 1 p p 21 p 22 .Math. p 2 p .Math. .Math. .Math. p p 1 p p 2 .Math. p pp ] Y 1 = Y 0 - T 1 q 1 t Y 1 = [ y 1 0 .Math. y n 0 ] - [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] [ q 1 .Math. q p ]

(80) 2 Iteration 2: For, k=2.Math.X=X.sub.1 and Y=Y.sub.1

(81) 2.1 Calculation of T.sub.2 in step 3 and C.sub.2 in step 4

(82) T 2 = X 1 W 2 = [ x 11 x 12 .Math. x 1 p x 21 x 22 .Math. x 2 p .Math. .Math. .Math. x n 1 x n 2 .Math. x np ] [ w 11 w 12 .Math. w 1 p w 21 w 22 .Math. w 2 p .Math. .Math. .Math. w p 1 w p 2 .Math. w pp ] T 2 = [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] C 2 = Y 1 U 2 = [ y 1 .Math. y n ] [ U 1 ] = [ c 1 .Math. c n ]

(83) 2.2 Calculation of W.sub.2 and U.sub.2 in Step 5

(84) W 2 = X 1 t Y 1 Y 1 t X 1 W 2 = [ x 11 x 21 .Math. x n 1 x 12 x 22 .Math. x n 2 .Math. .Math. .Math. x 1 p x n 2 .Math. x np ] [ y 1 .Math. y n ] [ y 1 .Math. y n ] [ x 11 x 12 .Math. x 1 p x 21 x 22 .Math. x 2 p .Math. .Math. .Math. x n 1 x n 2 .Math. x np ] W 2 = [ w 11 w 12 .Math. w 1 p w 21 w 22 .Math. w 2 p .Math. .Math. .Math. w p 1 w p 2 .Math. w pp ] U 2 = Y 1 t X 1 X 1 t Y 1 U 2 = [ y 1 .Math. y n ] [ x 11 x 12 .Math. x 1 p x 21 x 22 .Math. x 2 p .Math. .Math. .Math. x n 1 x n 2 .Math. x np ] [ x 11 x 21 .Math. x n 1 x 12 x 22 .Math. x n 2 .Math. .Math. .Math. x 1 p x n 2 .Math. x np ] [ y 1 .Math. y n ] U 2 = [ U 2 ]

(85) 2.3 Calculation of the Regression Coefficients p.sub.2 in Step 6 and q.sub.2 Step 7

(86) p 2 = X 1 t T 2 T 2 t T 2 = ( T 2 t T 2 ) - 1 X 1 t T 2 p 2 = IV 2 ( p p ) [ x 11 x 12 .Math. x 1 p x 21 x 22 .Math. x 2 p .Math. .Math. .Math. x n 1 x n 2 .Math. x np ] [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] p 2 = [ p 11 p 12 .Math. p 1 p p 21 p 22 .Math. p 2 p .Math. .Math. .Math. p p 1 p p 2 .Math. p pp ] q 2 = Y 0 t T 1 T 1 t T 1 = Y 0 t T 1 ( T 1 t T 1 ) - 1 = [ y 1 .Math. y n ] [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] IV 1 ( p p ) q 2 = [ q 1 .Math. q p ]

(87) 2.4 Regression of X.sub.2 and Y.sub.2 on T.sub.2 in Steps 6 and 7

(88) X 2 = X 1 - T 2 p 2 t X 2 = [ x 11 x 12 .Math. x 1 p x 21 x 22 .Math. x 2 p .Math. .Math. .Math. x n 1 x n 2 .Math. x np ] - [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] [ p 11 p 12 .Math. p 1 p p 21 p 22 .Math. p 2 p .Math. .Math. .Math. p p 1 p p 2 .Math. p pp ] Y 2 = Y 1 - T 2 q 2 t Y 2 = [ y 1 .Math. y n ] - [ t 11 t 12 .Math. t 1 p t 21 t 22 .Math. t 2 p .Math. .Math. .Math. t n 1 t n 2 .Math. t np ] [ q 1 .Math. q p ]

(89) The following iterations are deduced from the first two, based on the preceding explanations.

(90) When iteration K has been reached in step 12, one obtains, during a synthesis step 1, the following general equation 25, by successively applying equation 23 for k going from 1 to K:
Y=Y.sup.0=T.sub.1.sup.t+T.sub.2.sup.tq.sub.2+ . . . +T.sub.K.sup.tq.sub.K+Y.sub.K=T.sup.tq+Y.sub.K(equation 25)
where the notation T.sup.tq means .sub.1.sup.KT.sub.k.sup.tq.sub.k

(91) By replacing T with its definition from equation 9, or T=X.Math.W, one obtains the relationship:

(92) Y = Y 0 = X 1 W 1 q 1 t + X 2 W 2 q 2 t + .Math. + X K W K q K t + Y K = XW t q + Y K ( equation 26 )
where the notation W.sup.tq means .sub.1.sup.KW.sub.k.sup.tq.sub.k

(93) By comparison between equations 8 and 26, one obtains, in a second synthesis step 2, the matrix B and the corresponding residue , with the relationships:
B=W.sup.tq=.sub.1.sup.KW.sub.k.sup.tq.sub.k(equation 27)
=Y.sub.K(equation 28)

(94) Thus, the method of steps 1 to 7 makes it possible to determine a matrix B and a residue that can be used like the matrix M.sub.(p1) and the residue R in equation 3, during step c. In other words, the weight values m.sub.i and the residue R of the model are determined during steps 1 to 7.

(95) Steps 1 to 12, 1 and 2 are in fact sub-steps of step 7.

(96) Setting aside, optionally, the introduction of samples into the reservoir 4, the calculation of the model can be done automatically by the electronic unit 10. In other words, steps 1 to 7 and the sub-steps of step 7 can be automated, like steps a to c.

(97) The invention is described above in the case of its use for a ship propulsion engine. It is, however, applicable to other equipment, for example an auxiliary engine or accessory of a ship, such as a transmission, in particular a marine or wind turbine transmission, or an internal combustion engine of an electrical plant.

(98) In the second embodiment shown in FIGS. 5 and 6, the steps similar to those of the first embodiment bear the same references.

(99) Below, we describe only what distinguishes this second embodiment from the previous one.

(100) In this second embodiment, the step b) for calculating the transmittance value T.sub.r comprises two successive elementary steps. A first elementary step b1) consists of calculating, for each wave number N, the ratio Tr(N) of the intensity I(N) of the infrared signal F passing through the sample E to the empty intensity I.sub.0(N). This elementary step b1) is comparable to step b) of the first embodiment, but does not lead directly to the determination of the transmittance.

(101) Indeed, step b) of this second embodiment comprises a second elementary step for actual calculation of the transmittance Tr(N) as a corrected value of the ratio Tr(N). The correction consists of expressing the value of the transmittance Tr(N) for a wave number N using a function f whose variable is the ratio Tr(N), in the form
TN(N)=f(Tr(N))(equation 29)

(102) The correction done during step b2), by applying the function f, may consist of recalibrating the value of the ratio Tr(N) by removing a baseline, which amounts to declaring the value of the ratio Tr(N) a constant or variable value as a function of the wave numbers. Alternatively or additionally, the correction done during elementary step b2) consists of filtering the value of the ratio Tr(N), or in other words, smoothing.

(103) In this embodiment and as shown in FIG. 6, the prior step 3 is also broken down into two elementary steps, namely a first elementary step 31) comparable to step 31) of the first embodiment and in which a ratio Tr(N) comparable to that mentioned above is calculated, and a second elementary step 32) in which the transmittance value Tr(N) is calculated in the form of a corrected value of this ratio. The correction consists of expressing the value of the transmittance Tr(N) for a wave number N using a function g whose variable is the ratio Tr(N), in the form
Tr(N)=g(Tr(N))(equation 30)

(104) The function g is preferably identical to the function f, although this is not mandatory.

(105) The correction of the elementary step 32) may assume the form of filtering and/or the removal of a baseline, as considered above for step b2).

(106) Steps b2) and 32) may be considered pre-processing steps for the raw data Tr(N) to provide the processed data Tr(N).