# Patent

## Title
Method for conductivity calculation in a treatment fluid upstream and downstream a filtration unit in apparatuses for the blood treatment

## Abstract

A method for conductivity calculation in a treatment fluid downstream a filtration unit in a blood treatment apparatus is provided. The conductivity calculation is then used for clearance and fistula flow determination. A flow of treatment fluid is created in the filtration unit; a change in the conductivity of the treatment fluid at the inlet of the filtration unit is imposed to cause an induced conductivity change in the fluid at the outlet of the filtration unit; a predetermined number of conductivity values Cdo downstream from the filtration unit are measured. The measured conductivity values define a curve the pattern of which is estimated by means of one interpolating mathematical function in an interval of time after the occurrence of the induced conductivity change; a characteristic measuring time tcalcclr is determined. The value of the interpolating mathematical function at the characteristic measuring time tcalcclr represents the conductivity value Cdo2 of the treatment fluid downstream from the filtration unit after the induced conductivity change.

## Background
BACKGROUND OF INVENTION
The present invention relates to a method for conductivity calculation in a treatment fluid upstream and downstream a filtration unit in apparatuses for the blood treatment.
The invention also relates to a method for clearance and fistula flow determination using the above process for conductivity calculation.
It is known in the art to use conductivity measures for determination of parameters indicative of the filter efficiency during treatment, i.e. clearance or dialysance, and for determination of patient parameters, such as fistula flow.
EP 547025 shows a first method for determining clearance starting from a perturbation of the conductivity of the upstream dialysis liquid which creates corresponding response in the conductivity of the liquid downstream the dialysis unit.
Measures of the conductivity allow determination of downstream response and calculation of the clearance.
It is also known from EP 658352 an alternative method to calculate conductivity values for clearance calculation a short time perturbation.
It is also known to determine fistula flow by making a step like perturbation in the upstream conductivity and reversing the lines in the extracorporeal circuit during the step perturbation.
Measuring the conductivities in the spent dialysate across the flow reversal it is possible to arrive at fistula flow determination.
SUMMARY OF INVENTION
While the fistula flow calculation according to the above methods quite acceptable, it would be highly desirable to increase accuracy trying to reduce the time of the step like perturbation. More in general it is a goal of the invention to devise a method for conductivity determination in the spent dialysate upon a perturbation in the upstream liquid, increasing the accuracy, while keeping an acceptable measurement time.
It is also an aim of the present invention to render conductivity detections as much as possible independent from the step size, from the operating conditions and from the presence of undesired disturbances or noises.
These and other aims besides which shall be made clearer in the course of the following description, are substantially attained by a method for determining the conductivity of a treatment fluid downstream from a filtration unit in blood processing machines, as described in the accompanying claims.



BRIEF DESCRIPTION OF DRAWINGS
Further features and advantages will become more readily apparent from the detailed description of a preferred, but not exclusive, embodiment of a process for determining the treatment fluid conductivity according to the invention.
Such description shall be made hereafter with reference to the accompanying drawings, provided purely by way of non-limiting indication:
FIG. 1 shows the conductivity curves of the conductivity values upstream and downstream from the filtration unit in their time development;
FIG. 2 shows a computer model generated curve of the dialysate outlet conductivity (Cdo);
FIG. 3 shows real data dialysate inlet conductivity (Cdi);
FIG. 4 shows a representation of the dialysate outlet conductivity curve when there is a big difference between the set conductivity and the patient conductivity;
FIG. 5 shows a dialysate outlet conductivity curve part before the induced conductivity change;
FIG. 6 shows a computer model representation of function unit_f;
FIG. 7 shows a computer model representation of functions f_norm and f_norm_est;
FIG. 8 shows a schematic representation of the dialysate inlet and outlet conductivity curve;
FIG. 9 shows the effect of the flow reversal in the dialysate outlet conductivity as a small step;
FIG. 10a shows a representation of function unit_facc;
FIG. 10b shows the area associated to function unit_facc;
FIG. 11 again shows the inlet and outlet conductivity curves and relevant steps used for calculating access flow;
FIG. 12 shows two different line fits made to the Cdo curve.
FIG. 13 shows a blood treatment machine.



DETAILED DESCRIPTION
The present invention relates to a technique for determining the conductivity of a treatment fluid downstream from a filtration unit in blood processing machines and also describes one technique of calculating clearance and access flow.
The method is based on studying the dialysate outlet conductivity response that follows a rising of the dialysis solution conductivity and a shifting of the blood flow connections to the patient.
The response of a dialysis solution conductivity step is dependent on many factors. It is therefore difficult to extract the asymptotic components needed for calculation of the clearance.
This is true even more so for the access flow step, since the change in dialysate outlet conductivity, due to the reversal of the blood flow direction, is really small.
The algorithm described below has shown to be the one that gives the best results for both clinical data as well as data generated by a computer model.
The various variables used in the specification and in the claims later on are below defined in the table 1.
When relevant, the time interval from which data shall be extracted and processed for calculating the variable is given.
Some of the definition are also illustrated in FIG. 1, FIG. 2 and FIG. 9 as annexed.









TABLE 1









Data interval [minutes]










Variable
Description
Start point
End point





Ke
Clearance (effective)


Cdi
Dialysis solution conductivity



(dialyser inlet)


Cdi1 = Cdipre, mean
Inlet pre step conductivity needed
t0Cdi − (3 +
t0Cdi −



for the clearance calculation.
UFCal—time)
UFCal—time


Cdi2 = Cdistep, mean
Inlet step conductivity needed for
t0Cdi + 3
tfCdi − 1



the clearance calculation.


Cdistep, set
The set value of Cdi during the



condstep.


Cdo
Dialysate conductivity (dialyser



outlet)


Cdocorr
Adjusted Cdo data.
t0cdi + 0.5
tfcdi − 0.5












Data interval










Variable
Description
Start point
End point





Cdo1
Outlet pre step conductivity



needed for the clearance



calculation.


Cdo2
Outlet step conductivity needed for



the clearance calculation.


Cdo2est
An estimation of Cdo2 taken at



t0Cdo. Used for adjusting data.


Cdopre, mean
Outlet pre step conductivity mean
t0Cdo − (3 +
t0Cdo −



value
UFCal—time +
(UFCal—time +




Cdo_Cdi_delay)
Cdo_Cdi_delay)


Cdon
Outlet pre reversal conductivity



needed for the access flow



calculation.


Cdor
Outlet post reversal conductivity



needed for the access flow



calculation.


t0Cdi
Calculated estimated time of when



Cdi starts to raise.



The area calculation, uses data
0.5 minutes
Point when



between
before end of
machine takes




UF calibration.
the Cdi down.



The line fit is done on area data
0.5 minutes
1 minute prior




after end of 
to the end of




UF calibration
the Cdi pulse


tfCdi
Time when Cdi starts to drop back



to normal.


t0Clr
Calculated estimated time of when



Cdo starts to raise.


UFCal—time
The UF calibration takes some 45



seconds and is done prior to the



raise in Cdi. Data during this



period should not be used. Time



set with a 15 seconds margin to 1



minute.


Cdo_Cdi_delay
How much Cdo is delayed (t0Cdo −



t0Cdi)


tCalcclr
Time at which the conductivities



Cdo1 and Cdo2 are taken


tCalcacc
Time at which the conductivities



Cdon and Cdor are taken









The following calculation method is particularly adapted for blood-treatment apparatuses having at least a filtration unit 10 with a first compartment 12 for the circulation of blood and a second compartment 14 for the circulation of the treatment fluid; the first and second compartments 12 and 14 are separated by interposition of at least a semi-permeable membrane 16 known in the art.
The machine also comprises means for changing the conductivity of the treatment fluid upstream from the filtration unit 10 such as a sodium reservoir 18 and a controlled pump 19 capable of injecting predetermined quantities of conductive fluid in the dialysate fluid up the filtration unit 10.
Obviously the treatment machine also comprises at least a first sensor 20 and a second sensor 22 for measuring, respectively, the conductivity of the process fluid upstream and downstream from the filtration unit 10.
A control unit 24 governs said devices in order to change the conductivity of the process fluid and is able to receive the conductivity signals from the aforementioned first and second sensors 20 and 22 allowing the calculation of the conductivity of the fluid as hereafter explained.
From a general point of view, after creating a flow of treatment fluid through the second compartment 14 of the filtration unit, a change in the conductivity of the treatment fluid at the inlet of the filtration unit 10 is imposed for a predetermined time interval.
The step in the Cdi curve is clearly shown in FIG. 1.
Such a step cause thereby an induced conductivity change in the fluid at the outlet of said filtration unit (see again FIG. 1—Cd0 curve).
After a predetermined time interval following the step in the inlet conductivity the blood flow to the fistula is reversed causing recirculation in the fistula and the consequent change in the conductivity curve downstream from the filtration unit (see the second step in the Cd0 curve—FIG. 1).
The method allows firstly to determine the conductivity value Cdo2 of the process fluid downstream from the filtration unit after the induced conductivity change used for clearance calculation and then allows to calculate also access flow.
Clearance is calculated by studying the first part of the step response curve. FIG. 2 shows a computer model generated curve of that part. The conductivity change imposed in the inlet fluid is a known change in value remaining constant over time, said change particularly being a positive change in conductivity (an increase in conductivity). The size of the step in the inlet conductivity is 1 [mS/cm] (from 14 to 15 [mS/cm]). The time points illustrated in the figure will be elucidated in the text below.
The measurement procedure is activated by the operator. Thereafter no changes to the treatment parameters are allowed in order to create stable conditions for the measurement. In a period of three minutes before the known Ultra filtration (UF) calibration, Cdo and Cdi-data are being collected. These data are necessary for the estimation of Cdo1 and Cdi1.
In connection to the UF-calibration, in fact at the end of it, a step in Cdi is initiated. After about 1 minute the response in Cdo is beginning show. After an additional time of 5 minutes the operator is prompted to reverse the blood flow direction to the patient. Should the operator not have reversed the flow within 2 minutes, the measurement should be aborted.
From the time when having reversed the blood flow direction, it again takes some 1 minute until the effects start to show in the Cdo-curve. Just before the effects start to show we have reached as far in the measurement as to plot the curve that is seen in FIG. 2. From this part of the curve, the effective clearance (Ke) can be calculated. The steps needed to obtain it, are described in the following part.
Fluctuations in Cdi create fluctuations in Cdo. Since we want to study the effects in Cdo of a raise in Cdi it would have been optimal if Cdi had been constant. Of course Cdi is not constant, but one way of “making it appear constant”, is to compute the deviation that Cdi does from its mean value over the pulse, and then adjust the Cdo in proportion to it. Through this, we will expect a Cdo-curve close to the one we would have got if the response in Cdi had been equal to the actual pulse mean value.
To be able to perform this adjustment the two curves must be made synchronous. We therefore have to find the starting point of the curves and move one of them to the starting point of the other.
The synchronization process then allows to compare the conductivity curves upstream and downstream from the filtration unit after they have been synchronized in order thereby to determine one or more downstream conductivity values.
Finding the start of the Cdi pulse, is quite straightforward. It is done by assessing how the area under the step develops (should be an almost straight line), make a line fit to the pulse area “line” and see at what time it has its zero value (tACdi). Since the Cdi curve goes up quite steeply, this time point corresponds to the sought starting point of the Cdi-curve (t0Cdi).
In other words the characteristic time (t0Cdi) of the upstream conductivity curve is calculated by estimating an area defining below the inlet conductivity curve; such a characteristic time is coincident with the instant at which the area under the curve takes on an average value greater than a predetermined threshold.
The point when Cdi goes back to normal, tfCdi, is also needed in the calculations later on. It could be found using the same technique as when finding t0Cdi. tfCdi is only used for referring of other time points. We can therefore equally well use the time when the machine goes back to the set value it had before the step.
The determination of the characteristic time t0Cdo of the conductivity curve downstream from the filtration unit comprises a step consisting in a preliminary estimation of the value of the characteristic time and the preliminary estimate is subsequently corrected.
When finding t0Cdo we basically fit a curve to the initial data of the Cdo step, and where this curve intersects with Cdopre we find t0Cdo.
FIG. 4 shows what the Cdo pulse may look like when there is a big difference between the set conductivity and the patient conductivity. The point t0Cdo is located somewhere at 1 but could easily be pointed out to lie at 2 if data are not carefully handled.
Prior to 3 a UF calibration was made. As can be seen, the UF calibration will result in a “bump”. The bump might be quite big if, as in this case, there is a big difference between the patient conductivity and the set conductivity. What is shown here is quite extreme, but it shows an important case.
We know that the raise in conductivity is not made until the UF calibration is finished. This occurs when the bump is on its way downwards, i.e. at 3. Data prior to this point in time shall therefore not be used. We also know that it will take some minute before the raise in Cdi will start to show in Cdo. Therefore we can actually exclude another half a minute of data after the end of the UF calibration. We do not exclude the full 1 minute since we need to have some margin.
After any UF calibration there is always a “recoil effect”, before Cdo returns to the course it had before the UF calibration. This means that we have some data, between 3 and 1 that should not be used either. If we do, we will, in the case described by FIG. 4, end up finding t0Cdo at 2. We must therefore confine the data to fulfill the condition Cdo>Cdopre if the step is made upwards and Cdo<Cdopre if the step is made downwards.
If the patient conductivity is larger than the set conductivity, the “bump” will go downwards and the recoil effect will accordingly go upwards. This means that the condition above is not enough. In this situation, when having followed the steps above, we would get Cdo-data that has a minimum at 1 (FIG. 4). Data prior to 1 will, if the bump is big, cause problems in the subsequent calculation of t0Cdo. Therefore we need to exclude data prior to this point.
By excluding these data we have almost solved the problem. We are however not there yet, since we might in fact get the minimum at the “wrong end”. FIG. 5 (left) shows a situation where we have cut out a piece of the Cdo curve around the minimum. If the curve, after the recoil, passes Cdopre a second time, the minimum might lie at 1 or 2 depending on how the sampling has been done. In the chosen example, the minimum will be found at 1, which is not what we want. We want 2.
We must therefore first check if there are any points lying below (or above if the step goes downwards) Cdopre. If so, we check which of them that has the latest time stamp. That one gives us the point we are looking for.
Furthermore, it can happen that all data are above Cdopre as in FIG. 5 (right). Several “minimum values” might be found, e.g. if the same value has been recorded. Again the one with the latest time stamp gives us the point we are looking for.
The case described by FIG. 5 (left) could probably be excluded if one always performs the step according to the difference between Cdi and Cdo prior to the step. I.e. if Cdo<Cdi the step is done upwards. Downwards if Cdo>Cdi. However, before performing a step downwards one must think about what that might do to the patient. Lowering the sodium is considered “dangerous”.
The data that now remains represents the step response and the very first data point of these data could, probably in most cases, with good enough result, be used as t0Cdo.
In other words the preliminary estimation of the value of the characteristic time of the conductivity curve downstream from the filtration unit is made by determining the average conductivity at the outlet of the filtration unit Cdopre,mean prior to the effects of the change in conductivity (the determination is made on the basis of an average, i.e. arithmetic mean, of the measured conductivity values Cdo prior to the effects of the change).
Subsequently the measured conductivity values are compared with previously determined average outlet conductivity value Cdopre,mean and then the instant which measured the conductivity values Cdo that appear constantly greater than the previously calculated average outlet conductivity value Cdopre,mean is estimated.
As above stated where the measured conductivity values Cdo exceed the average outlet conductivity value Cdopre,mean a number of times, the preliminary estimate of the characteristic time t0Cdo of the conductivity curve downstream from the filtration unit, is the instant of the first condition in which the measured conductivity values Cdo are greater than the average outlet conductivity value Cdopre,mean.
We shall however undertake some “additional” steps to find an even better t0Cdo and therefore the step of correcting the preliminary estimate of the characteristic time may be performed.
We start by creating the natural logarithm function f=ln(sign*(Cdistep,set−Cdo)). The values of Cdo to use, are the ones starting at t0Cdo and extending up to the point in time when the reversion of the flow direction to the needles is done. Cdi is the step set value, Cdistep,set, and not its actual values. The function f is scaled, by “potential”, so that it corresponds to a unit step. We call the new function unit_f (unit_f=ln(sign*(Cdistep,set−Cdo)/potential)). The reason for scaling is of course that the calculations should be the same independently of the step size or how the patient conductivity relates to the set conductivity. FIG. 6 shows an example of unit_f.
We then make a least mean square line fit to function f between t=(tRev−1.5 minutes) and t=tRev. This range represents a part of the curve where the transients have died out. The estimation is called Cdo—1nclr (Cdo—1nclr=Cdiset,step−sign*(exp(cclr(1)*t+cclr(2))), cclr(1) and cclr(2) being the coefficients from the fit). We now construct a function f2clr=Cdo—1nclr−Cdo which express the short time behavior of the pulse. We standardize f2clr and get f_norm=(f2clr−min(f2clr))/max(f2clr−min(f2clr)). Again this procedure enables us to utilize the data independently of the curve form, potential and the step size. An example of the f_norm curve is shown in FIG. 7.
The next step is to make a least mean square line fit to ln(f_norm) in the range 0.2<f_norm<0.8, i.e. the initial part of the curve (different ranges might be used e.g. 0,1:0,9). An estimation of f_norm, f_norm_est, is then given by f_norm_est=exp(cclr(3)*t+cclr(4)) where cclr(3) and cclr(4) are the coefficients generated by the line fit.
By having performed the selection of data as described above, we know that f_norm=1 corresponds to Cdo=Cdopre. This means that when f_norm_est equals the value 1 we are at what we define as t0Cdo. t0Cdo is therefore easily calculated as t0Cdo=−cclr(4)/cclr(3).
We have now got the needed t0 values and can start adjusting the data. We start by synchronizing the two curves (i.e. moving the Cdo data so that t0Cdo coincide with t0cdi).
The mean value of Cdi during the step is calculated. To get the most appropriate mean value we use data between (t0Cdi+3 minutes) and (tfCdi−1 minute). This excludes any overshoot effects and possible end effects and focuses on data being the base for the clearance and access flow estimations. The mean value is denoted Cdistep,mean.
Also a value representing the pre step Cdo parameter is needed. We will here use a mean value of the data. It is denoted Cdopre,mean.
We are interested mainly in the big variations in Cdi and will therefore filter the signal quite hard. Only data between t=(t0Cdi+0.5 minutes) and t=(tfCdi−0.5 minutes) is filtered. The filter used is an exponential one, Cdifilt,i=(N−1)/N*Cdifilt,j-1+1/N*Cdii-1. The filter factor N used for the used data is between 150 and 250 and in detail 200. The mean sampling interval for these data is between 0.01 and 0.1 and in detail 0.033 minutes, which corresponds to a time constant of about 6.6 minutes. As start value for the filter we use Cdistep,set. The difference Cdidiff=Cdifilt−Cdistep,mean is created. A variation (ΔCdi) around the mean value is believed to give raise to a corresponding variation in Cdo (ΔCdo), see the simplified case shown in FIG. 8. Such a variation in Cdi can be seen as a small step in the inlet conductivity and shall, governed by the clearance, give a corresponding variation in Cdo. We assume therefore that the following is true: (raise in Cdo (Cdo2−Cdo1) due to raise in Cdi)/(raise in Cdi (Cdi2−Cdi1))=(variation in Cdo (ΔCdo))/(variations in Cdi (ΔCdi)). This gives us the corrected Cdo values as: Cdocorr=Cdo+(Cdo2−Cdopre,mean)*Cdidiff/step size. Here we encounter a small problem. The value of Cdo2 will not be known until we are ready to calculate the clearance. Therefore we use an estimate of it, called Cdo2est, which is the value that the above assessed function Cdo—1nclr gives at t=t0Cdo. Another problem is that the correction is actually only valid when the needles are in the normal position. In the reverse position the clearance is lower and the correction should hence have been somewhat smaller. Since the difference between Kn and Kr is quite small and since we are discussing only the correction, which is small, we assume that the error we introduce is very small.
Now that we have adjusted the data the method further comprises a step of consisting in mathematical computation of the conductivity curve downstream from the filtration unit in order thereby to determine a characteristic time tStartCF beyond which the conductivity curve has stabilized after undergoing the effects of the imposed change in conductivity. Said characteristic time tStartCF is given by the sum of two terms, a first term ttarget which is function of the conductivity curve and a second term tcbf which is function of the blood flow.
In determination of the first term ttarget for calculating the characteristic time we first estimate an intermediate time tAclr and we then derive the first term ttarget as following explained.
We will firstly obtain what we call tAclr which is a time representative of the effects of the transient due the conductivity change in the upstream liquid. Indeed tAclr depends upon several factors among which we can mention the filter volume, blood and dyalisis liquid flows, the conductivity step and so on depending on which tAclr moves near or far from the terminal instant of the transient. For obtaining tAclr we use Cdocorr data between t0Cdo and tRev. The procedure is similar to what was described for finding t0Cdi but instead of trying to find a “baseline” towards which the area under Cdocorr should be created we instead use the function unit_f above. The area referred to is therefore the one restrained by unit_f and the t-axis. We make a least mean square fit to the area data in the interval t=(tRev−1.5 minutes) and t=tRev. tAclr is then defined as the point where the line crosses the t-axis, i.e. where the line has its zero value. Since the area function is nice, i.e. very little noise, one could (to get less calculations) instead of making a least mean square fit, use a line going through the endpoints of the interval.
The next step is to construct a line going through the points (t0Cdo, Cdo0) and (tAclr, CdoA), see FIG. 2. This line is extrapolated to a conductivity equal to Cdopre+step size. The time point then obtained is called ttarget. Where, in time, this point is located, compared to t0Cdo, is dependent on the shape of the curve, i.e. the dialyser used, blood flow, dialysis solution flow and also parameters origin from the patient. It expresses a sort of time constant for the curve.
To ttarget we will add a time, dependent on the blood flow (tcbf=16/60+260/Qb). The reason is that it is shown by the modeling work that the concentration in the body, Cvv (venous blood concentration), develops with a time delay of this size. This time is, since it is based on the blood flow, also linked to the shape of the Cdo curve. In the modeling work, the time used was about 1 minute. Also for clinically recorded data 1 minute was a good choice.
The time tcbf has two uses. The first is adding it to ttarget. By that, we will get to a position on the Cdo curve where most of the initial effects have decayed. The time point obtained (tstartCF) is the one from which we start using Cdo data for the subsequent estimation. The second use is for finding the best time for the clearance calculation (see below).
We choose to make the line fit to data between t=tstartCFclr and t=(tstartCFclr+1.5 minutes). We assume that, by using a fixed range relative to tstartCFclr, we are using data from the same part of the curve independently of whatever parameters having influenced the curve. The line fit is the same as described above, i.e. we create the function f=ln(sign*(Cdistep,mean−Cdocorr)) and make a least mean square fit to it. Observe that the Cdi used is now the step mean value of Cdi. As before we create Cdo—1nclr=Cdistep,mean−sign*exp(c(1)*t+c(2)), where c(1) and c(2) are the coefficients from the fit. The function Cdo—1nclr will then give us the sought Cdo2 needed for the clearance calculation.
Should it not be possible to use data up to t=(tstartCFclr+1.5 minutes) for the curve fitting, i.e. tRev is passed, the rise is considered to slow and no calculation should be performed. The operator should be informed about it and what actions to take. The clearance (effective) is calculated through the expression:




  
    K
    e
  
  =
  
    
      (
      
        
          Q
          d
        
        +
        
          Q
          UF
        
      
      )
    
    ·
    
      (
      
        1
        -
        
          
            
              Cdo
              ⁢
              
                
              
              ⁢
              2
            
            -
            
              Cdo
              ⁢
              
                
              
              ⁢
              1
            
          
          
            
              Cdi
              ⁢
              
                
              
              ⁢
              2
            
            -
            
              Cdi
              ⁢
              
                
              
              ⁢
              1
            
          
        
      
      )
    
  




where Cdi2 is equal Cdistep,mean (alternatively also the set values Cdiset,step may be used) and Cdi1 is equal to Cdipre,mean (alternatively also the set values Cdiset,pre may be used); it is also clear that, due to the symmetry of the clearance calculation expression, values of both Cdi2 and Cdi1, Cdo2 and Cdo1 may be inverted.

Cdo2 is the value that Cdo—1nclr gives at t=tCalcclr=tAclr+tcbf.
Cdo1 is given by function Cdopre, extended and taken at tCalcclr. Cdopre is created by performing a line fit to Cdo data in the same interval as is used when assessing Cdopre,mean. One may wonder why we are not creating and using an exponential function also for these data, but the reason is that it is difficult when Cdo and Cdi are close in value. Qd and Quf are the flow rates of the dialysis solution and the UF respectively.
Above is described the case where a fixed time of 1.5 minutes is used for fitting a curve to Cdo-data in order to get Cdo2. This gives, as an average, a better value on the effective clearance Ke. However, from a standard deviation of Ke point of view (if possible), it could perhaps be better to use as much data as possible from the step. If this is done we need however to move the calculation point somewhat towards the left since the whole curve and hence also Cdo2 otherwise becomes a bit too high.
As shown in FIG. 12 two line fits have been made to the Cdo curve, Cdo_fit1 and Cdo_fit2 when creating Cdo_fit1 we used data of an interval of 1.5 minutes; viceversa the line fit according to Cdo_fit2 required an interval of 5 minutes (i.e. more data have been used). As can be seen the Cdo_fit2 curve is then lifted some (1) and hence giving somewhat higher conductivity values. Also the horizontal line Cdo2 has been drawn.
Assuming that we got the conductivity value Cdo2 from the first line fit at time t=112.1 min, to get the same Cdo2 value from the second line fit we need to move towards the left, to t=118 min.
In the real case, if, for stability reason, we would choose to use more data this would represent the second curve fit. Consequently we should move the calculation point to the left. One choice is to use t0Cdo; this is of course not the proper point but it is one that is already in the algorithm.
The access flow is calculated from the step one get when shifting the blood flow to the needles, i.e. blood taken out upstream is shifted with blood entering downstream. This creates a recirculation in the fistula, which affects the efficiency of the dialysis. Ke becomes less. How much the flow reversal reduces the efficiency is dependent on the access flow. The effect of the flow reversal is seen in the Cdo-curve as a small step (FIG. 9). The size of the step, along with the clearance gives the access flow.
The procedure for the access step calculations could theoretically be the same as for the clearance step. However, the noise is making this approach difficult since this step is much smaller than the clearance one. Therefore we need to do somewhat differently. We are going to describe two ways of finding the parameters needed. One that gives a more correct point for calculation of the access flow, but which might result in a larger variation. The second approach gives results which are the other way around.
The method for calculating fistula flow generally comprises the step of determining the filter clearance as above described, when reversing the blood flow direction to the fistula and determining, by means of mathematical calculation, an outlet conductivity prior the reversal of the blood flow Cdon; furthermore the method includes the step of determining a conductivity of the outlet process fluid Cdor following the reversal in blood flow and setting or estimating an inlet conductivity Cdi after the imposition of a change in conductivity.
If the switching of the blood flow to the fistula is made manually one should choose t0acc as the point in time at which the conductivities for the access flow calculation, should be taken. When shifting manually, an overshoot in Cdo is induced. Dependent on how the shift is done (e.g. how long it takes) the overshoot will vary from time to time. t0acc is independent of how the shifting is done. Therefore, the variations in Qa become less. As in the clearance step, the correct time lies some time after t0acc.
We want our method to find consistent values of t0acc independently of if the reversion is made manually or automatically. Since the Cdo curve, in these two cases, behave differently; the method of using the area does not lead to this consistency. Therefore, the route of using the “derivative” has been chosen.
One problem of using derivatives of signals is that they usually become noisy. The first action is therefore to filter Cdocorr. The variable is called Cdo_flt. The same filter as described above is used. The difference is that the N is now 20 (with a sample time of 0.033 min this reflects a time constant of about 40 seconds).
We create the function f_flt=ln(sign*(Cdistep,mean−Cdo_flt)) and make a least mean square line fit to it between the time points t=(tfCdi−4 minutes) and t=(tfCdi−1 minute). This range represents a part of the curve where the transients have died out. The fit gives us an estimation of the of Cdo curve called Cdo—1nacc,est (Cdo—1nacc,est=Cdistep,mean−sign*exp(cacc,est(1)*t+cacc,est(2)), cacc,est(1) and cacc,est(2) being the coefficients from the fit). We now construct a function f2acc=Cdo—1nacc,est−Cdo_flt, which express the short time behavior of the pulse. Further we derive the difference function of f2acc i.e. diff_f2acc=f2acc(i)−f2acc(i−1), i being the sample number. Standardizing diff_f2acc gives us the standardized derivative of f2acc, f2der—norm=diff_f2acc/min(diff_f2acc). The function ranges from 0 to 1. In f2der—norm we search for the point in time when the value for its first time becomes >0.5 (called t0acc,est). By having filtered the data, Cdo_flt is somewhat delayed compared to the original Cdo data. Therefore, we make an adjustment of t0acc,est and get t0acc=t0acc,est−0.1 minute.
By using the f2acc function also on its way downwards one could get a better estimate of when the transients have died out. This means that we can find a good estimate of when to start using data for the line fit of Cdocorr during the reverse flow period. The point we are going to search for is the one obtained when f2der—norm, after having passed its maximum, gets below 0.2. This point in time plus a margin of 0.5 minutes gives us the time t=tstartCFacc.
How the access flow is calculated is described below.
If the switching of the blood flow to the fistula is made automatically, a somewhat better point in time to use for the access flow calculation is tAacc.
tAacc is derived in the same way as was tAclr. We create the function unit_f for data between t0acc and tfCdi−1 minute (unit_facc=ln(sign*(Cdistep,mean−Cdocorr)/potential)). We derive the area function. The area referred to is the one restrained by unit_facc and the t-axis. We then make a least mean square fit to the area data in the interval t=tstartCFacc and t=tfcdi−1 minute. tAacc is then defined as the point where the line crosses the t-axis, i.e. where the line has its zero value.
In FIG. 10 are shown example plots of unit_facc and the associated area.
The access flow is calculated using the expression




  
    Q
    aw
  
  =
  
    
      (
      
        
          K
          e
        
        +
        
          Q
          UF
        
      
      )
    
    ·
    
      (
      
        
          Cdor
          -
          Cdi
        
        
          Cdon
          -
          Cdor
        
      
      )
    
  




where Ke is the effective clearance obtained as above. Quf is the UF. The conductivities are best described by FIGS. 9 and 11.

To get the values of the conductivities we create the function f in the same way as for the clearance step. We make a least mean square line fit to the function for data lying between t=tstartCFacc and t=tfcdi−1 minute. The resulting Cdo estimation then becomes Cdo—1nacc=Cdistep,mean−sign*exp(cacc(1)*t+cacc(2)), cacc(1) and cacc(2) being the coefficients from the fit. We do the same thing for the curve prior to the reversion. For this we use data between t=tstartCFclr and t=(t0acc−0.5 minutes). As result we get Cdo—1npre,mean−sign*exp(cpre,acc(1)*t+cpre,acc(2)).
Dependent on the situation of manual or automatic reversion of the blood flow, as described above, we use tAacc or t0acc as time point of when the conductivities are to be taken (=tCalcacc). Cdo—1npre,acc gives, at t=tCalcacc, Cdon. Cdo—1nacc gives at the same time point Cdor. Cdi is given by Cdistep,mean.
The access flow that has now been calculated is the blood water access flow Qaw. What we want is the whole blood access flow. With help from the book “Replacement of renal function by dialysis”, fourth edition, chapter 2, page 41 one can set up the following expression for the conversion:




  
    Q
    a
  
  =
  
    
      Q
      aw
    
    
      [
      
        
          
            (
            
              1
              -
              
                Hct
                100
              
            
            )
          
          *
          
            (
            
              1
              -
              
                Tp
                1000
              
            
            )
          
        
        +
        
          
            Hct
            100
          
          *
          Fr
        
      
      ]
    
  




were Hct is the hematocrit, Tp is the total plasma protein content and Fr is the red cell water fraction (volume water in red cells/total volume of red cells). If we use average values for the different quantities (Hct=35%, Tp=70 g/l and Fr=0.72) the expression becomes Qa=1.168*Qaw 

The invention achieves important advantages.
First of all it is to be noted that the method for determining the conductivity according to the present invention allows to increase the accuracy of calculation of clearance and of access flow.
The method is adapted to be used with different blood treatment machines and gives good results for different patients in different conditions.
In other words the method is general.
The present method allows also to more accurately access a conductivity needed for calculation of the clearance and of access flow by giving better estimation of the time point when the transition effect starts and ends.
Finally the conductivity detections are as much as possible independent from the step size, the operating conditions and from the presence of undesired disturbances or noises.

## Claims

1. A method for determining a conductivity of a treatment fluid downstream from a filtration unit in a blood processing machine, said unit comprising a first compartment for the circulation of blood and a second compartment for the circulation of the treatment fluid, said second compartment being separated from the first compartment by interposing at least a semi-permeable membrane; said method comprising the steps of:
creating a flow of blood through the first compartment of the filtration unit;
creating a flow of treatment fluid through the second compartment of the filtration unit;
imposing, for a predetermined time interval, a change in the conductivity of the treatment fluid at an inlet of the filtration unit to cause an induced conductivity change in the fluid at an outlet of said filtration unit;
measuring a predetermined number of conductivity values Cdo downstream from the filtration unit, said conductivity values Cdo defining a downstream conductivity curve;
defining at least one interpolating mathematical function for estimating a pattern of said downstream conductivity curve in an interval of time after causing the induced conductivity change;
wherein the mathematical function has the form:


Cdo_lncir=Cdistep,mean−sign*exp(c(1)*t+c(2))

where c(1) and c(2) are coefficients derived from the least squares interpolation of the mathematical function and Cdistep,mean=an inlet conductivity value after the change in conductivity;

determining a characteristic measuring time tCalcclr, wherein said determination of said characteristic measuring time tCalcclr comprises the sub steps of estimating an intermediate time tAclr representative of a transient due to the induced conductivity change in the fluid, and correcting the intermediate time tAclr through an addition of a second time term tcbf, which is a function of the blood flow; and
calculating by means of a control unit a value of the interpolating mathematical function at said characteristic measuring time tCalcclr, said value representing a conductivity value Cdo2 of the fluid downstream from the filtration unit after the induced conductivity change, wherein the determination of the characteristic measuring time tcalcclr comprises the following sub steps:
estimation of the intermediate time tAclr representative of a transient due to the induced conductivity change in the fluid, said time tAclr depending on at least a filtration unit volume, blood and treatment fluid flows, and the change in the conductivity of the treatment fluid at the inlet of the filtration unit, and
correction of the intermediate time tAclr through the addition of the second time term tcbf, which is a function of blood flow rate, tcalcclr being defined as tcalcclr=tAclr+tcbf, the Cdo2 value being the value of the equation at t=tcalcclr.

2. A method according to claim 1, wherein the conductivity change imposed in the inlet fluid is a known change in value remaining constant over time, said conductivity change being a positive change in conductivity.

3. A method according to claim 1, wherein the characteristic measuring time tCalcclr is calculated using the equation: tCalcclr=tAclr+tcbf, where tcbf=16/60+260/Qb, Qb being the blood flowrate.

4. A method according to claim 1, wherein the intermediate time tAclr is calculated using the function: unit_f=ln(sign*(Cdistep,set−Cdo)/potential), where potential=Cdistep,mean−Cdopre,mean, and by performing an interpolation with a least squares estimation on the data of the area falling between said function and the x-coordinate time axis in a predetermined time interval, said intermediate time tAclr coinciding with the instant at which the interpolating function intersects the x-coordinate time axis.

5. A method according to claim 4, wherein the predetermined time interval for the least squares estimation of the function unit_f falls between a first instant of reversal in the blood line (tRev−1.5 min) and a second instant of reversal in the blood line tRev.

6. A method according to claim 1, further comprising the steps of:
measuring a predetermined number of conductivity values upstream from the filtration unit, said conductivity values defining an upstream conductivity curve;
determining a characteristic time t0Cdo of the downstream conductivity curve;
determining a characteristic time t0Cdi of the upstream conductivity curve;
synchronizing said downstream and upstream conductivity curves on the basis of the characteristic time of the downstream conductivity curve t0Cdo and the characteristic time of the upstream conductivity curve t0Cdi, to enable comparison of the respective conductivity values; and
comparing the downstream and upstream conductivity curves after the conductivity curves have been synchronized to determine one or more downstream conductivity values.

7. A method according to claim 6, wherein the characteristic time t0Cdi of the upstream conductivity curve coincides with the instant at which the change in conductivity occurs in the upstream conductivity curve, the characteristic time t0Cdo of the downstream conductivity curve corresponding to the instant at which the induced conductivity change downstream from the filtration unit occurs.

8. A method according to claim 7, wherein the characteristic time t0Cdi of the upstream conductivity curve is calculated by estimating an area defined below the upstream conductivity curve, the characteristic time t0Cdi coinciding with the instant at which the area under the upstream conductivity curve takes on an average value greater than a predetermined threshold.

9. A method according to claim 7, wherein the determination of the characteristic time t0Cdo of the downstream conductivity curve comprises a further step of making a preliminary estimate of the value of the characteristic time t0Cdo and subsequently correcting the preliminary estimate if incorrect.

10. A method according to claim 9, wherein the preliminary estimate of the value of the characteristic time of the downstream conductivity curve comprises the following sub steps: determining the average conductivity at the outlet of the filtration unit Cdopre,mean prior to the effects of the change in conductivity, said determination being made on the basis of an average of the measured conductivity values Cdo prior to the effects of the change; comparing the measured conductivity values at the outlet of the filtration unit Cdo with the average outlet conductivity value Cdopre,mean; estimating the instant at which the measured conductivity values Cdo appear constantly greater than the average outlet conductivity value Cdopre,mean.

11. A method according to claim 10, wherein the measured conductivity values Cdo exceed the average outlet conductivity value Cdopre,mean a number of times, causing the preliminary estimate of the characteristic time t0Cdo of the downstream conductivity curve to coincide with the instant of the last condition in which the measured conductivity values Cdo are greater than the average outlet conductivity value Cdopre,mean.

12. A method according to claim 9, wherein the step of correcting the preliminary estimate of the characteristic time t0Cdo value of the downstream conductivity curve comprises the following sub steps: creating an appropriate mathematical expression unit_f, which is a function of the conductivity values measured downstream from the filtration unit Cdo, and of the known change in the conductivity of the inlet fluid, Cdistep,set, said expression being normalized if necessary; and, performing a least squares estimation of said expression unit_f in a predetermined time interval.

13. A method according to claim 12, wherein the mathematical expression is calculated by the following equation: unit−f=ln(sign*(Cdistep,set−Cdo)/potential)), where potential=Cdistep,set−Cdopre,mean; Cdistep,set=value of the known change in conductivity at the filtration unit inlet; Cdo=conductivity values measured downstream from the filtration unit; Cdistep,mean=inlet conductivity value after the change in conductivity, and Cdopre,mean=average outlet conductivity value prior to the change in conductivity.

14. A method according to claim 13, wherein the least squares estimation is performed on the mathematical expression unit_f and the estimate is calculated by the following equation: Cdo—1nclr=Cdistep,set−sign*(exp(cclr(1)*t+cclr(2))), where cclr(1) and cclr(2) are coefficients derived from the least squares interpolation of the mathematical expression unit_f.

15. A method according to claim 12, wherein the step of correcting the preliminary estimate of the value of the characteristic time of the downstream conductivity curve comprises the additional sub steps of: creating a mathematical function f_norm, which is a function of coefficients cclr(1) and cclr(2) derived from the previous least squares interpolation, and a function of the known change in conductivity Cdistep,set of the inlet fluid and a function of the conductivity values downstream from the filtration unit Cdo, said mathematical function f_norm being normalized if necessary; and, performing a least squares interpolation on the mathematical function f_norm within a predetermined interval of values.

16. A method according to claim 14, wherein the step of correcting the preliminary estimate of the value of the characteristic time of the downstream conductivity curve comprises the additional sub steps of: creating a mathematical function f_norm, which is a function of coefficients cclr(1) and cclr(2) derived from the previous least squares interpolation, and a function of the known change in conductivity Cdistep,set of Cdi the inlet fluid and a function of the conductivity values downstream from the filtration unit Cdo, said mathematical function f_norm being normalized if necessary; and, performing a least squares interpolation on the mathematical function f_norm within a predetermined interval of values, wherein the mathematical function used is calculated using the following equation: f_norm=(f2clr−min(f2clr))/max(f2clr−min(f2clr)), where f2cir=Cdo—1nclr−Cdo.

17. A method according to claim 15, further comprising the sub step of creating a mathematical estimation function f_norm_est, which is a function of coefficients cclr(3) and cclr(4) derived from the least squares interpolation of the mathematical function.

18. A method according to claim 15, wherein the predetermined interval of values for performing the least squares interpolation on the mathematical function f_norm is between 0.1 and 0.9.

19. A method according to claim 17, wherein the corrected value t0Cdo of the characteristic time of the downstream conductivity curve coincides with the instant at which the mathematical estimation function f_norm_est takes on a value of 1.0.

20. A method according to claim 17, wherein the mathematical estimation function is calculated using the following equation: f_norm_est=exp(cclr(3)*t+cclr(4)), where cclr(3) and cclr(4) are a coefficients derived from the least squares interpolation of the natural logarithm of the mathematical function f_norm.

21. A method according to claim 20, wherein the corrected value of the characteristic time t0Cdo is obtained using the following formula: t0Cdo=−cclr(4)/cclr(3).

22. A method according to claim 12, wherein the predetermined time interval of the mathematical expression unit_f in which the interpolation is to be performed essentially falls between a first instant of reversal in the blood line (tRev−1.5 minutes) and a second instant of reversal in the blood line tRev.

23. A method according to claim 6, wherein the step of synchronizing the upstream and downstream conductivity curves entails a relative translation between the upstream and downstream conductivity curves, ascribed a value D, D being a function of the characteristic times t0Cdi and t0Cdo determined by the upstream and downstream curves.

24. A method according to claim 1, further comprising the step of determining average inlet conductivity after the imposed change in conductivity Cdistep,mean, said determination being based on an average of the measured conductivity values Cdi after the effects of the imposed change in conductivity.

25. A method according to claim 24, wherein the conductivity values Cdi used to determine the average inlet conductivity after the change in conductivity Cdistep,mean fall within a time interval between an instant at which a change in conductivity occurs in an upstream conductivity curve, t0Cdi+3 minutes, and an instant at which the effects of a change in conductivity cease in the same curve, tfCdi−1 minute.

26. A method according to claim 1, wherein an instant tfCdi, at which the effects of the change in conductivity cease in an upstream conductivity curve, is calculated by estimating an area defined below the upstream conductivity curve, said instant tfCdi being identified by the moment at which the area under the upstream conductivity curve takes on an average value below a predetermined threshold.

27. A method according to claim 1, wherein the conductivity values measured upstream from the filtration unit Cdi are filtered to eliminate long term fluctuations between such conductivity values.

28. A method according to claim 27, wherein only the inlet conductivity values Cdi measured within a significant time interval are filtered.

29. A method according to claim 27, wherein a mathematical filter is used to eliminate the long term fluctuations between the conductivity values measured upstream from the filtration unit Cdi, said filter being of the exponential type.

30. A method according to claim 29, wherein, after filtering, an upstream conductivity curve is determined by the following expression: Cdifilt,i=(N−1)/N*Cdifilt,i−1+1/N*Cdii−1, where N=filtering factor.

31. A method according to claim 30, wherein the filtering factor N is between 150 and 250 and a sampling frequency used to determine conductivity values Cdi ranges from 0.01 to 0.1 min.

32. A method according to claim 1, wherein the conductivity values measured downstream from the filtration unit Cdo are corrected on the basis of conductivity fluctuations generated in the conductivity values measured upstream from the filtration unit Cdi.

33. A method according to claim 1, wherein the conductivity values measured upstream from the filtration unit Cdi are filtered to eliminate long term fluctuations between the upstream conductivity values and wherein the conductivity values measured downstream from the filtration unit Cdo are corrected on the basis of the conductivity fluctuations generated in the conductivity values measured upstream from the filtration unit Cdi, the measured values of the downstream conductivity curve Cdo being corrected on the basis of the filtered conductivity values Cdifilt measured upstream.

34. A method according to claim 30, wherein the conductivity values measured downstream from the filtration unit Cdo are corrected on the basis of fluctuations generated in the conductivity values measured upstream from the filtration unit Cdi and wherein the corrected downstream conductivity curve is determined by the expression: Cdocorr=Cdo+(Cdo2−Cdopre,mean)*Cdidiff/step size, where Cdidiff=Cdifilt−Cdistep,mean; step size=Cdipre,mean−Cdistep,mean; Cdo2=conductivity value downstream from the filtration unit after the effects of the change in conductivity.

35. A method according to claim 14, wherein the conductivity values measured downstream from the filtration unit Cdo are corrected on the basis of the conductivity fluctuations generated in the conductivity values measured upstream from the filtration unit Cdi, wherein the corrected downstream conductivity curve fits the expression: Cdocorr=Cdo+(Cdo2−Cdopre,mean)*Cdidiff/step size, where Cdidiff=Cdifilt−Cdistep,mean; step size=Cdipre,mean−Cdistep,mean, Cdo2=conductivity value downstream from the filtration unit after the effects of the change in conductivity; and wherein, for the purpose of calculating Cdocorr, a preliminary estimate value of Cdo2 is used, said estimate being defined by the value that the function Cdo—1nclr assumes at the instant t=t0Cdo.

36. A method according to claim 1, further comprising the step of computing the downstream conductivity curve to determine a characteristic time tStartCF, beyond which the downstream conductivity curve has stabilized after undergoing the effects of the imposed change in conductivity.

37. A method according to claim 36, wherein said characteristic time tStartCF is given by the sum of two terms, a first term ttarget, which is a function of the conductivity curve, and a second term tcbf, which is a function of the blood flow.

38. A method according to claim 37, wherein the second term tcbf is determined by the following relation: tcbf=16/60+260/Qb, where Qb=blood flow.

39. A method according to claim 6, further comprising the step of computing the downstream conductivity curve to determine a characteristic time tStartCF, beyond which the downstream conductivity curve has stabilized after undergoing the effects of the imposed change in conductivity, and said characteristic time tStartCF is given by the sum of two terms, a first term ttarget, which is a function of the conductivity curve, and a second term tcbf, which is a function of the blood flow, the determination of the first term ttarget for calculating the characteristic time entailing the sub steps of: estimating an intermediate time tAclr, deriving the first term ttarget, said first term ttarget coinciding with the time that makes a straight line passing through points (t0Cdo; Cdo0) and (tAclr; Cd0A) take on the value Cdopre,mean+step size, where Cdo0 and CdoA are the values taken on by curve Cdo at instants t0Cdo and tAclr where Cdopre,mean is the average outlet conductivity prior to the effects of the change in conductivity.

40. A method according to claim 39, wherein the intermediate time tAclr is calculated using the function: unit_f=ln(sign*(Cdistep,set−Cdo)/potential), and performing an interpolation with a least squares estimation on the data of the area between said function and the time axis of the x-coordinates in a predetermined interval of time, said intermediate time tAclr coinciding with the instant at which the interpolating function intersects the time axis, thereby taking on a value of zero.

41. A method according to claim 40, wherein the predetermined time interval for the least squares estimation of the function unit_f falls between a first instant of reversal in the blood line (tRev−1.5 min) and a second instant of reversal in the blood line tRev.

42. A method according to claim 1, further comprising the step of calculating conductivity at the outlet of the filtration unit after the imposed change in conductivity.

43. A method according to claim 42, wherein the step of calculating conductivity at the outlet of the filtration unit further comprises a sub step consisting in the least squares interpolation of a mathematical curve f, which is a function of Cdistep,mean and Cdocorr, in a predetermined time interval.

44. A method according to claim 43, wherein the mathematical curve is determined by the following equation: f=ln(sign*(Cdistep,mean−Cdocorr)).

45. A method according to claim 43, wherein said predetermined time interval falls between tstartCFclr and tstartCFclr+1.5 min.

46. A method according to claim 43, wherein the step of calculating conductivity at the outlet of the filtration unit further comprises the sub step of creating an equation Cdo—1nclr, which is a function of Cdistep,mean and c(1) and c(2), where c(1) and c(2)=coefficients derived from the least squares interpolation of function f.

47. A method of calculating the filter clearance by means of a function relation of Cdo2, Cdo1, Cdi2 and Cdi1, said conductivities being calculated using the method according to claim 1.

48. A method according to claim 47, wherein the filter clearance is determined by the following equation:




  
    K
    e
  
  =
  
    
      (
      
        
          Q
          d
        
        +
        
          Q
          UF
        
      
      )
    
    ·
    
      (
      
        1
        -
        
          
            
              Cdo
              ⁢
              
                
              
              ⁢
              2
            
            -
            
              Cdo
              ⁢
              
                
              
              ⁢
              1
            
          
          
            
              Cdi
              ⁢
              
                
              
              ⁢
              2
            
            -
            
              Cdi
              ⁢
              
                
              
              ⁢
              1
            
          
        
      
      )
    
  



where Cdi2=Cdistep,mean or Cdiset,step, Cdi1=Cdipre,mean or Cdiset,pre, Cdo1=Cdopre(t=tCalcclr), Qd=flow of dialysate fluid, QUF=ultra filtration flow of dialysate fluids.

49. A method for calculating fistula flow, comprising the steps of: determining a filter clearance according to the method of claim 47; reversing blood flow inside the filtration unit, said reversal causing recirculation in the fistula and a consequent change in conductivity in the downstream conductivity curve; determining, by means of mathematical calculations, an outlet conductivity prior to the reversal of blood flow Cdon; determining a conductivity of the outlet process fluid Cdor following the reversal in blood flow; and, setting or estimating an inlet conductivity Cdi after the imposition of a change in conductivity.

50. A method according to claim 49, wherein the fistula flow is determined by the following formula:




  
    Q
    aw
  
  =
  
    
      (
      
        
          K
          e
        
        -
        
          Q
          UF
        
      
      )
    
    ·
    
      
        (
        
          
            Cdor
            -
            Cdi
          
          
            Cdon
            -
            Cdor
          
        
        )
      
      .

51. A method according to claim 50, wherein an actual fistula flow is obtained by correcting the value Qaw according to the following formula:




  
    Q
    a
  
  =
  
    
      Q
      aw
    
    
      [
      
        
          
            (
            
              1
              -
              
                Hct
                100
              
            
            )
          
          *
          
            (
            
              1
              -
              
                Tp
                1000
              
            
            )
          
        
        +
        
          
            Hct
            100
          
          *
          Fr
        
      
      ]
    
  



where Hct is the hematocrit, Tp is the total plasma protein content and Fr is the red cell water fraction=volume water in red cells/total volume of red cells.

52. A method according to claim 49, wherein the step of determining, by means of mathematical calculations, an outlet conductivity prior to the reversal in blood flow Cdon is achieved by creating a second function f as a function of Cdistep,set and Cdo.

53. A method according to claim 52, wherein the second function f is interpolated with a least squares estimation in a predetermined time interval.

54. A method according to claim 52, wherein the second function f is determined by the following equation: f=ln(sign*(Cdistep,set−Cdo)).

55. A method according to claim 52, wherein the step of determining outlet conductivity prior to the reversal in blood flow Cdon further comprises the sub step of estimating the downstream conductivity curve of the filter as a function of Cdistep,mean, and cpre,acc(1) and cpre,acc(2), where cpre,acc(1) and cpre,acc(2) are coefficients of the least squares interpolation performed on the second function f.

56. A method according to claim 55, wherein the sub step of estimation is made based on the relation: Cdo−1npre,acc=Cdistep,mean−sign*exp(cpre,acc(1)*t+cpre,acc(2)).

57. A method according to claim 53, wherein said predetermined time interval falls between t=tstartCFcrl and t=t0acc−[1⁄2] min.

58. A method according to claim 56, wherein the value Cdon is calculated by estimating the value of the function Cdo−1npre,acc at the instant t=tCalcacc.

59. A method according to claim 49, wherein the step of determining outlet conductivity after the reversal in blood flow Cdor is achieved by creating a second relation f as a function of Cdistep,set or Cdistep,mean and Cdo.

60. A method according to claim 59, wherein the second relation f is interpolated with a least squares estimation in a predetermined time interval.

61. A method according to claim 59, wherein the second relation f is determined by the following equation: f=ln(sign*(Cdistep,set−Cdo)) or f=ln(sign*(Cdistep,mean−Cdo)).

62. A method according to claim 59, wherein the step of determining, by means of mathematical calculations, the outlet conductivity after the reversal in blood flow Cdor further comprises the sub step of estimating a curve of the conductivity values at the filter outlet as a function of Cdistep,mean, cacc(1), and cacc(2), where cacc(1) and cacc(2) are coefficients of the least squares interpolation performed on the second relation f.

63. A method according to claim 62, wherein the sub step of estimating the conductivity curve is performed by means of the relation: Cdo1nacc=Cdistep,mean−sign*(exp(cacc(1)*t+cacc(2))).

64. A method according to claim 60, wherein said predetermined time interval falls between t=tstartCFacc and t=tfcCdi−1 minute.

65. A method according to claim 56, wherein the value Cdon is calculated by estimating the value of the function Cdo_lnpre,acc at the instant t=tCalcacc.

66. A method according to claim 65, wherein the reversal in blood flow is effected manually or automatically.

67. A method according to claim 66, wherein the calculation of tCalcacc comprises the following steps: filtering the current downstream conductivity curves; creating a mathematical relation f_flt, which is a function of Cdistep,mean and Cdo_flt; and, performing a least squares interpolation of said function in an established time interval.

68. A method according to claim 67, wherein the calculation of tCalcacc additionally comprises the steps of: creating a relation Cdo—1nacc,est, which is a function of Cdistep,mean, cacc,est(1), and cacc,est(2), caccest(1) and cacc,est(2) being coefficients derived from the interpolation of the mathematical relation f_flt; and, constructing a further relation f<2> acc, which is the difference between Cdo—1nacc,est and Cdo_flt.

69. A method according to claim 68, wherein the calculation of tCalcacc comprises the further sub steps of creating a difference function diff_f2acc=f2acc(i)−f2acc(i−1) and standardizing said difference function, if necessary, to obtain the function: f2der—norm=diff2acc/min(diff−f2acc).

70. A method according to claim 69, wherein t0acc,est is the instant at which f2der—norm first takes on a value greater than 0.5, t0acc preferably being defined as t0acc=t0acc,est−0.1 min.

71. A method according to claim 70, wherein in the case of a normal reversal in blood flow t0acc coincides with tCalcacc.

72. A method according to claim 69, wherein tStartCF is given by the sum of the instant at which f2der—norm, after peaking, falls below the value of 0.2, plus an increment of 0.5 min.

73. A method of determining the conductivity of a process fluid downstream from a filtration unit in blood processing machines, said unit comprising a first compartment for the circulation of blood and a second compartment for the circulation of the process fluid, said method comprising the following steps:
creating a flow of fluid through the second compartment of a filtration unit;
imposing, for a predetermined time interval, a change in the conductivity of the process fluid at the inlet of the filtration unit in order to cause an induced conductivity change at the outlet;
measuring a predetermined number of conductivity values upstream and downstream from the filtration unit defining respectively upstream and downstream conductivity curves,
determining, by means of a control unit making mathematical calculations, at least a characteristic time t0Cdi of the upstream conductivity curve;
determining, by means of a control unit making mathematical calculations, a corresponding preliminary estimate of a characteristic time t0Cdo of the downstream conductivity curve, the preliminary estimate of the characteristic time t0Cdo of the downstream conductivity curve corresponding to the instant at which the induced conductivity change downstream from the filtration unit occurs, said preliminary estimate comprising the following sub-steps:
a) determining the average conductivity at the outlet of the filtration unit Cdopre,mean prior to the effects of the change in conductivity, said determination being made on the basis of an average of the measured conductivity values Cdo prior to the effects of the change;
b) comparing the measured conductivity values at the outlet of the filtration unit Cdo with the previously determined average outlet conductivity value Cdopre,mean;
c) estimating the instant at which the measured conductivity values Cdo appear constantly different than the previously calculated average outlet conductivity value Cdopre,mean;

correcting the preliminary estimate of the characteristic time t0Cdo value of the conductivity curve downstream from the filtration unit comprising:
a) creating a mathematical expression unit_f, which is a function of the conductivity values measured downstream from the filtration unit Cdo, and of the known change in the conductivity of the inlet fluid; the mathematical expression used being the following:


unit—f=ln(sign*(Cdistep,set−Cdo)/potential))

where potential=Cdistep,mean−Cdopre,mean;
where Cdistep,set=a value of the known change in conductivity at the filtration unit inlet;
where Cdo=conductivity values measured downstream from the filtration unit;
where Cdistep,mean=inlet conductivity value after the change in conductivity;
where Cdopre,mean=average outlet conductivity value prior to the change in conductivity; and
performing a least squares estimation of said expression unit_f in a predetermined time interval;

b) performing a least squares interpolation on said mathematical expression unit_f in a predetermined time interval; the least squares estimation being performed on the mathematical expression unit_f and the estimate being called


Cdo—1nclr=Cdiset,step−sign*exp(cclr(1)*t+cclr(2))

where cclr(1) and cclr(2) are coefficients derived from the least squares interpolation of the mathematical expression unit_f;

c) creating a mathematical function f_norm, which is a function of coefficients cclr(1) and cclr(2) derived from the previous least squares interpolation, a function of the known change in conductivity Cdistep,set of the inlet fluid and a function of the conductivity values downstream from the filtration unit Cdo, the mathematical function used being the following:


f_norm=(f2clr−min*(f2clr))/max(f2clr−min(f2clr))

where f2clr=Cdo—1nclr−Cdo

d) performing a least squares interpolation on the mathematical function f_norm within a predetermined interval of values,
e) creating a mathematical estimation function f_norm_est, which is a function of the coefficients cclr(3) and cclr(4) derived from the least squares interpolation of the mathematical function, the mathematical estimation function used being the following:


f_norm_est=exp(cclr(3)*t+cclr(4))

where cclr(3) and cclr(4) are the coefficients derived from the least squares interpolation of the natural logarithm of the mathematical function f_norm; the corrected value t0Cdo of the characteristic time of the conductivity curve downstream from the filtration unit coinciding with the instant at which the mathematical estimation function f_norm_est takes on a value of one;


synchronizing the upstream and downstream conductivity curves on the basis of the characteristic times t0Cdi and t0Cdo determined by the upstream and downstream curves to enable a comparison of the respective conductivity values; and
comparing the upstream conductivity curve and the downstream conductivity curve after the respective conductivity curves have been synchronized to determine one or more downstream conductivity values;
wherein the measured values of the downstream conductivity curve Cdo are corrected on the basis of conductivity fluctuations generated in the measured values of the upstream conductivity curve Cdi by computing the deviation that the upstream conductivity curve Cdi does from its mean value over the change in the conductivity, and then adjusting the downstream conductivity curve Cdo in proportion to said deviation.

74. A blood treatment machine comprising:
at least a filtration unit with a first compartment for the circulation of blood and a second compartment for the circulation of the treatment fluid, said first and second compartments being separated by interposing at least a semi-permeable membrane;
means for changing the conductivity of the treatment fluid upstream from the filtration unit;
at least a first sensor installed upstream from the filtration unit and a second sensor installed downstream from the filtration unit, wherein said first sensor measures the conductivity of a process fluid upstream from the filtration unit and said second sensor measures the conductivity of the process fluid downstream from the filtration unit; and
a control unit governing said devices in order to change the conductivity of the process fluid, said control unit being configured to receive conductivity signals from the first and second sensors, the control unit being configured to execute the steps of claim 1 for calculating the conductivity of the fluid downstream from the filtration unit.

75. A method according to claim 15, wherein the predetermined interval of values for performing the least squares interpolation on the mathematical function f_norm is between 0.2 and 0.8.

76. A method according to claim 27, wherein the significant time interval corresponds to the interval falling between an instant at which the change in conductivity occurs in the upstream conductivity curve, t0Cdi+0.5 minutes, and an instant at which the effects of the change in conductivity cease in the same curve, tfclr−0.5 minutes.

77. A method according to claim 30, wherein the filtering factor N is 200 and a sampling frequency used to determine conductivity values Cdi is 0.033 min.

78. A method for determining conductivity of a treatment fluid downstream from a filtration unit in blood processing machines, said unit comprising a first compartment for the circulation of blood and a second compartment for the circulation of the treatment fluid, separated from the first compartment by interposing at least a semi-permeable membrane; said method comprising the steps of:
creating a flow of treatment fluid through the second compartment of the filtration unit;
imposing, for a predetermined time interval, a change in the conductivity of the treatment fluid at the inlet of the filtration unit in order thereby to cause an induced conductivity change in the fluid at the outlet of said filtration unit;
measuring a predetermined number of conductivity values Cdo downstream from the filtration unit and belonging to a conductivity curve downstream from the filtration unit, wherein the method further comprises the steps of:
defining at least one interpolating mathematical function for the purpose of estimating the pattern of the conductivity curve Cdo downstream from the filtration unit in an interval of time after the occurrence of the induced conductivity change; wherein the mathematical function has the form:


Cdo_lnclr=Cdistep,mean−sign*exp(c(1)*t+c(2))

where c(1) c(2) are coefficients derived from the least squares interpolation of the mathematical function and Cdistep,mean=inlet conductivity value after the change in conductivity;

determining a characteristic measuring time tcalcclr;
calculating by means of a control unit the value of the interpolating mathematical function at said characteristic measuring time tcalcclr, said value representing the conductivity value Cdo2 of the process fluid downstream from the filtration unit after the induced conductivity change, wherein the determination of the characteristic measuring time tcalcclr comprises the following sub steps:
estimation of an intermediate time tAclr representative of a transient due to the induced conductivity change in the fluid, said time tAclr depending on at least a filtration unit volume, blood and treatment fluid flows and the change in the conductivity of the treatment fluid at the inlet of the filtration unit; wherein the intermediate time tAclr is calculated using the function:


unit—f=ln(sign*(Cdistep,set−Cdo)/potential)

where potential=Cdistep,mean−Cdopre,mean;
where Cdistep,set=a value of the known change in conductivity at the filtration unit inlet;
where Cdo=conductivity values measured downstream from the filtration unit;
where Cdistep,mean=inlet conductivity value after the change in conductivity;
where Cdopre,mean=average outlet conductivity value prior to the change in conductivity;

and by performing an interpolation with least squares estimation on the data of an area falling between said function and the x-coordinate time axis in a predetermined time interval, said intermediate time tAclr coinciding with the instant at which the interpolating function intersects the time axis, the area taking on a value of zero; and
correction of the intermediate time tAclr through the addition of a second time term tcbf, which is a function of blood flow, tcalcclr being defined as tcalcclr=tAclr+tcbf, Cdo2 value being the value of the equation at t=tcalcclr.