2. Mathematical model of the analyzer of mechanical impurities in a liquid medium
Photometric-counting analyzers of mechanical impurities in liquid media are widely used in many industries, performing dispersed analysis of process particles with a low weight concentration. The main parameters in determining a heterogeneous system are the concentration and particle sizes (PS) of the dispersed system (DS). Let us consider an analyzer based on the photometric-counting (PC) method of analyzing particles suspended in liquid technological media, which uses photometry of light pulses scattered by a single particle. The analyzer consists of a light source (LS) and an optical circuit for forming a light flow of a certain intensity and configuration. The photodetector channel includes an optical circuit of registration of radiation and a photodetector. One of the most important units of PC analyzers is a measuring cuvette, in which a counting zone (CZ) is formed. There is a sample preparation and feeding unit for homogenization and introduction of the analyzed medium into the hydrodynamic channel of the device with the least distortions. For this purpose, the medium is stirred and a certain volume is dosed. Particles are counted by size channels in a given measurement range and displayed on a digital display.
The distortion of the analysis results is caused by the influence of various factors affecting the measured value. Among them, it is necessary to note the error of sample preparation, part of the dispersed phase is lost when the medium flows through the supply channels and tubes. Losses are also caused by the adhesion of the analyzed particles to the walls of the channels under the influence of Stokes sedimentation and adhesion. These losses reduce the true value of the initial particle content, especially large fractions. An increase in the initial concentration can be caused by the presence of gas bubbles in the medium, which will be counted along with the DS particles. In addition, the distortion of the measurement results can be facilitated by the influence of the particle coincidence factor in the counting zone.
Based on the random nature of all factors of distortion of measurement results in the FC-analyzer, its mathematical model is designed in the form of a conditional probability distribution density of the latter with the specified number and sizes of the measured particles [
8]. In
Figure 1 schematically shows the process of forming measuring information in the FC-analyzer, taking into account all the noisy factors.
Let the true values of the suspended particle sizes be , and the measured values be . Due to the merging, disappearance of true values and appearance of false values, the output of the measuring device will contain not measured values, but , where , is the number of false measurements; is the number of missing measurements; is the number of merged measurements; is the number of groups obtained as a result of merging.
Let us assume that measurements located close to each other merge with probability , which depends on the number of merged points and the distance between them. After merging closely located measurements, one measurement remains with a mathematical expectation equal to the arithmetic mean of the mathematical expectations of the merged measurements. The disappearance of both true measurements and measurements obtained after merging occurs with the same probabilities , i.e. at the output of this block, measurements appear with probability . Thus, the disappearance occurs according to Bernoulli's law with probability . The appearance of false measurements occurs uniformly, regardless of the merged and missing points. Such an assumption is made for simplicity of reasoning. In fact, the intensity of the appearance of false measurements depends on the location of the true measurements, as well as on their proximity, i.e. in the vicinity after the merger of the obtained measurement there will be a greater number of false measurements.
Let
and be known the value of
. According to the multiplication theorem, it is true
Let us calculate the probability
Based on the multiplication theorem
Substituting (3) into (2), and the resulting expression into (1), we find
Let us now define the probability value
, where
is the number of false measurements. After the merger and disappearance,
true measurements will remain, the total number of different combinations of which, with
actually existing particles, is determined by the number of combinations
. Taking the disappearance of different combinations as equally probable events, we write
where
‚
, is the set of all possible non-missing combinations. In the index
(
)
indicates the number in all possible combinations of not missing particles
, and
is the number of elements in these combinations.
Of the total number of elements, are false; the number of all possible combinations of false elements is . We consider all these combinations to be equally probable. Let us assume that the last elements are false, then in combinations the elements with numbers will be true, and with numbers will be false. We introduce the general index , , . When , the index corresponds to true measurements, and when , to false ones.
According to the above, expression (5) takes the form
where
is the probability of the corresponding measurement being false.
Assuming that the particles in the measuring channel follow randomly and that all possible permutations are equally probable, (6) can be rewritten as follows:
Here is the distribution density of a single measurement; the index indicates the th permutation in the th combination.
Let us determine the probability
from expression (4). According to the multiplication theorem
Let us assume that false points appear according to Poisson's law with intensity
over the time interval
, i.e.
We assume that first the merging occurs, then the disappearance of points. The points obtained on the basis of merging may also disappear. In this case, the probability
obeys Bernoulli's law with probability
, i.e.
where
is the probability that
measured values have merged. There are a total of such combinations equal to
. Considering all these combinations to be equally probable, we obtain
where
,
, is the set of all possible merged combinations of
measurements;
is the number of combinations of merged measurements;
is the number of elements in these combinations.
Let us define the summation limits in (9). The expression takes place only when no merging occurs, and when all measurements merge and form one.
Substituting expressions (11) and (10) into (9), taking into account the above, we obtain
Substitute (12) and (8) into (7). Then
Taking into account (13) and (8), expression (4) takes the form
Let us determine the limits of change of , i.e. the number of false points.
It is obvious that
,
,
. Therefore, the final expression (14) can be written as follows:
The probability distribution density of measurement information (15) is obtained taking into account all noisy factors (measurement errors, omitted measurements, occurrence of false measurements, merging of close measurements) with maximum approximation to the real situation.
Expression (15) is extremely cumbersome, and in this form it is practically impossible to use it to estimate the number and sizes of particles suspended in a liquid. Therefore, we formulate a set of conditions under which the expression for the probability distribution density has a comparatively simple form. These conditions cover the indicated noisy factors in a simplified form and reflect the real situation in some idealized form.
The action of noisy factors is described by the following models: true measurements form a Poisson flow with intensity over time , where is the length of the section on the time axis containing all the measurements of interest to us; errors in measuring particle sizes are assumed to be additive normal with zero mathematical expectations and with variance ; missing measurements occur independently for each single measurement with probability ; false measurements form a Poisson flow with intensity over time , where , the non-resolution is described by the probability of obtaining one measurement for two particles, the time distance between which satisfies the inequality , i.e. the merging of measurements from two particles depends not on the moment of their passage into the working zone, but on the distance between them.
Given the fact that true measurements form a Poisson flow with intensity
, the probability of merging measurements from two particles is equal to the probability that two particles appear in the measurement zone during the time
, i.e.
After the merging of two measurements, the moments of appearance of the resulting measurement and the first particle coincide, the mathematical expectation of the unresolved signal is equal to , and the variance is .
Let us formulate the conditions under which the probability distribution density of the flow is sought. At the output of the measuring channel there is a set of measurements obtained in the presence of particles with sizes . At the same time: 1) the measurements are far from each other, i.e. , , (this assumption is close to reality if the non-resolution threshold of the measuring device is less than the interval between neighboring particles); 2) in the vicinity of each measurement either there are no particles, i.e. the measurement is false, or there is one particle, then the measurement corresponds to an existing particle, or there are two particles, then the measurement is obtained from an unresolved group of two particles; 3) in areas where there are no measurements, there are no groups of two or more particles. The last condition means, in particular, that a measurement can be missed only for a single particle, and a group of two sufficiently close particles necessarily gives a measurement, which apparently corresponds to reality. As follows from these conditions, groups of three or more particles are not taken into account.
Let us assume that there are
situations satisfying the condition of having true measurements,
situations satisfying the condition of having merged measurements,
situations satisfying the condition of having false measurements,
situations satisfying the condition of having missing measurements. Then the probability distribution density of measurements can be approximately represented as follows
where
is the probability of the measured value disappearing.
The expression (16) is also very complicated, its use to assess the number and dimensions of particles suspended in the liquid requires the use of a powerful computing technology. Therefore, we will take the next step along the path of simplifying the task. We will solve it in two stages. At the first stage, based on measuring information obtained in measuring channels, we will estimate the true number of particles in the time interval , and on the second stage, independently of each other, we will estimate the true size of the particles according to the registered values in the channels.
The probability distribution density of the registered number of particles in the
th measurement channel (
) for the time interval
is determined as follows:
Suppose that measurements in each channel are carried out independently of each other and all the noisy factors in each channel also act independently of each other. Then the estimates for
,
,
,
can be found by maximizing the probability distribution density (
17), that is, by solving a fairly simple problem
where
,
,
,
,
,
are the given sets of positive integers.
Let us now consider the process of registering the true measurements and assessment of the dimensions of particles suspended in the liquid based on -channel meter. We accept that the registration of particles is carried out using photo-registers that receive light signals either from one light source through one counting zone, or from light sources installed along the channel of the course of the analyzed liquid and acting the same type. In the first case, the registration of the same particle in all receivers is carried out at the same time, in the second - there will be known temporary shifts between them, which can always be compensated and measurements from the same particles to perceive as received in all receivers at the same moment.
In each measurement channel, a random number of measurements are obtained at random times. It is obvious that true measurements related to the same particle in all channels appear at the same time. Since we assume that the noise factors in each channel act independently of each other, it is obvious that false measurements in different channels will appear with a higher probability at different times, and measurements will also disappear and merge at different times.
Based on the above, we will construct the following algorithm for registering true measurements and estimating particle sizes. Let measurements
(
) be registered in
channels at a given time
. It is necessary to decide whether these measurements are false and should be ignored or whether most of them are true and it is necessary to estimate particle sizes based on them. Since the probability that false measurements appear in all channels at the same time is small, and the probability of missing measurements in all channels at the same time is also insignificant, we choose the following decision rule: if
then a decision is made that the measurements in the channels are obtained from a suspended particle, otherwise, that the measurements are false (
). The threshold
is chosen so that
where the condition in probability indicates the presence of a suspended particle.
To determine , we find the distribution density of the random variable . If there is a particle in the counting zone, we have , where is the number of missing measurements due to merging with the measurement from a neighboring particle; is the number of missing measurements in the absence of a particle in the counting zone. In the latter case, , where is the number of false measurements in channels.
If it is necessary not to overestimate the concentration of suspended particles in a liquid, we select the decision rule as follows:
given that
Otherwise, we solve the problem
given that
To solve the problem (20), (21) or (22), (23) it is necessary to find the probability distribution densities
and
. Let the probability of a false measurement appearing in the
th channel be equal to
. Then the probability that at
moment of time a false measurement appeared in
channels is equal to
and condition (21) takes the form
Obviously, condition (24) is not satisfied for any values of and . This means that for different the limits of the achievable quality of non-registration of false measurements are different. Therefore, based on the value in different channels of registration of suspended particles, it is necessary to select the thresholds for registering signals in such a way that condition (21) is satisfied.
Let us assume that the loss of a measurement in the
th channel due to merging can only occur by merging this measurement with the closest one in time, i.e.
and the probability of each dimension being missing is the same and equal to
. According to the multiplication theorem
where the index
indicates the
th permutation in the
th combination. After receiving
measurements in
channels at the moment of time
, it is true
Taking into account (26) - (28), expression (25) takes the form
and taking into account (29), condition (23) will be written as follows:
Similar to condition (24), inequality (30) is not satisfied for any values of , and . This means that for given and it is impossible to achieve any quality of measurement. Therefore, it is necessary to select such characteristics of the measurement channels that the corresponding values of and satisfy (30). Expressions that allow us to calculate , and for a single-channel FC-analyzer are given below.
Thus, rule (18), where
is defined as stated above, makes it possible to make a decision regarding the presence of a particle in the counting zone at a time
. Let us denote the measurement result in the
th channel at a time
by
. Two approaches are possible to estimate the true size of this particle: the first is averaging all the measurements obtained
the second - under the assumption that true measurements form a compact group, and false ones are likely to be removed from the center of the compact group; we use formula (31) only for measurements from this compact group.
Thus, for a joint assessment of the number and size of particles suspended in a liquid, several (more than one) measuring channels are required. Developing an optimal algorithm for such an assessment, taking into account all the noise factors, is a practically unsolvable problem. Constructing a quasi-optimal estimate of the number of true measurements in a given time interval based on measurement information obtained in one measuring channel is feasible, but requires the use of powerful computing equipment. The construction of an optimal decision rule that makes it possible, based on the measurement information obtained in () channels, regardless of the information at other times, to detect the presence of a particle in the measurement zone and determine its size is not difficult. Its implementation is possible on the basis of microprocessor technology.
3. Simulation model of the analyzer of mechanical impurities in a liquid medium
The purpose of mathematical models of measuring instruments is to minimize the material and time costs of their development, as opposed to natural modeling. At the same time, achieving a global optimum in the task of optimizing the device in the first case is quite possible, while in the second case it is practically unrealizable in the foreseeable future due to the large number of decision-making options. Therefore, when developing mathematical models, it is necessary to strive to make them as simple, compact, and clear as possible, and at the same time to correspond as much as possible to the real processes occurring in the phenomena under study.
It is obvious that due to their bulkiness and complexity, expressions (15), (17) are unsuitable for estimating the number and size of suspended particles in a liquid. In addition, they do not include the technical characteristics of the device (structural, optical, electrical, etc.), so they cannot be used for optimal design of the device.
To eliminate the noted shortcomings, simulation models of the analyzer under consideration have been developed, in which the operation of individual units and their interrelationship are simulated based on formalized regularities. These regularities include the technical characteristics of the analyzer as parameters. The latter allows one to formulate and solve the problem of optimizing the methodological and technical solutions implemented in the device, using the measure of discrepancy between the laws of particle size distribution in the analyzed medium and at the device output as an optimization criterion.
Depending on the given law of probability distribution of sizes (diameters) of particles analyzed in a liquid medium , the optimal value of the number of fractions and the average values of diameters for each fraction are calculated. Then, a Poisson flow of true particles is generated with the parameter , where is the duration of the analysis, is the intensity of the Poisson flow, depending on the concentration of particles in the analyzed medium and the velocity of the liquid flow through the counting zone, determined on the basis of experimental data for a specific medium; the total number of true particles , the number of particles that fall into the th fraction, and, of course, the frequency of particles falling into the th fraction are calculated.
For given <!-- MathType@Translator@5@5@MathML2 (no namespace).tdl@MathML 2.0 (no namespace)@ -->
, and probability
, according to [
9],
is determined, where
,
,
. Here
is the maximum possible number of particles registered in the CZ during time
;
is the minimum possible particle diameter;
is the minimum signal duration, which is selected from the boundary conditions imposed by the electronic circuit;
is the volume of the CZ;
is the volumetric flow rate.
Assuming that the liquid flow channel is quadratic, from the condition
,
, we calculate
, where
,
and
are the width, length, and height of the CZ of a channel, respectively;
is the CZ area determined from the condition
;
is the area corresponding to the minimum diameter of a particle suspended in the liquid. Next, we calculate the “dead time” value
, i.e. the time during which, after a particle passes through the CZ, the photodetector does not respond to the signal of the next particle,
, where
is the duration of the impulse, which can be recalculated from its amplitude and shape;
is the impulse amplitude,
;
is the level of discrimination,
(
is the threshold value of the diameter). The volume of the
th particle is
. Taking into account
, a value
is selected depending on the noise level in the electrical circuit based on the ratio
For the given value
, due to random fluctuations in the electrical circuit, false measurements may occur, i.e.
Assuming that in the electrical scheme there is white noise with variance
, (32) is rewritten in the form
For a given
by the choice of
, the probability value
can be made arbitrarily small. The value
must be chosen so that it holds
for
, where
is calculated [
9]:
The probability of merging measurements from different particles in the analyzer under consideration is determined by the relation
, where
merging threshold
is determined by ratio
Assuming that more than one particle can appear in the CZ for
, which form a Poisson flow, we can write
In this case, equation (33), solved with respect to
, is rewritten as follows:
The diameter of the particle that appears as a result of merging two other particles at moments in time and is determined by the dependence .
The intensity of false measurements is determined depending on the concentration of interfering components in the studied medium (gas bubbles, photodiode noise impulses, etc.). Multiple experimental data confirm that the distribution of photodiode noise impulses by amplitude obeys the normal law, and in time - the Poisson law [
10].
The intensity of noise impulses is determined by the formula
, where
is the number of registered noise signal impulses;
is the time of measuring the intensity of noise impulses. The variance of the amplitudes of noise impulses is determined by experimental data [
10].
The simulation of the process of formation of measurement information in the analyzer is carried out according to the following algorithm. In a given time interval , a Poisson flow with intensity is simulated, i.e. random moments of time are determined, at which particles suspended in a liquid medium are measured. The probability distribution density of the Poisson flow is denoted by . The sizes of suspended particles are simulated according to a given law . For example, with the normality of this law , where is the mathematical expectation of the sizes of suspended particles, is the variance of these sizes.
Particles that appear at adjacent moments of time , and for which the condition is satisfied merge: instead of two particles, one is simulated at the moment of time with diameter . The diameters of the simulated particles are compared with the threshold value and particles for which disappear, i.e., the measurement disappears at the corresponding moment of time .
In the time interval , a Poisson flow of false measurements with intensity is modeled: random moments of time are determined at which false measurements appear. We denote the probability density of this flow by . Impulses from false measurements are modeled according to the law . In cases where , instead of two measurements, one true and one false, there remains one measurement at the time with the value .
When modeling the intensity of Poisson flows and , the values of thresholds and , the distribution parameters and , the values of probabilities , and are set as described above.