3.1. Accuracy of CNN for Droplet Projection Area
The metrics applied to determine the measurement error of the AI algorithm are as follows. They are measured using the validation data set consisting of eight images. TP stands for true positive, where positive cases are identified as positive; true negatives as TN, where negative cases are identified as negative; false positives as FP, where negative cases are identified as positive and false negatives as FN, where positive cases are identified as negative. For example, when a pixel assigned to the class “background” is detected as “detached droplet”, this would be a false negative.
The trained network reaches a mean segmentation accuracy (Recall) of 99.5% on the validation data and 99.63% on the training data, see
Table 3. This translates to 477 wrongly labeled pixels out of 50,176 pixels in total (224 × 224 pixel image) on a single validation image. Additionally, the accuracy of 99.3% and precision score of 99.8% indicate a low failure rate for the neural network. As the Dice coefficient of 97.7% and the F1 contour of 97.8% matching score are the lowest scores, this already indicates that the biggest deviations of the network can be found on the contour lines of the different detected objects. This is an indicator of the very good generalization ability of the trained ResNet50 as the main areas of the different objects are detected highly accurately. A more graphic conception of this result is a line with a thickness of 1 pixel around the boundary of the originally labeled droplet, as depicted in
Figure 4.
From the visual analysis of the images, the prediction, based on the segmentation parameters, that the deviations mainly occur at the contour lines of the droplets can be confirmed. Moreover, a big portion of misdetections occurs on sticking droplets; therefore, the result for the detached droplets is even better than expected. This is very beneficial for the post-processing routine as it relies mainly on the accurate segmentation of the detached droplets.
In summary, it can be stated that the performance of the ResNet50 is already at a very high level. The overall performance is good (±2 px), with the AI-assisted segmentation typically being a little too large (±2 px).
3.2. Rising Velocities
The rising velocity
can be measured from the images of the video with a rising droplet, as depicted in
Figure 5.
The velocities are calculated based on the pixel differences (Δzup and Δzlow) between image frames, the frame rates (FPS), the measure of length ML and the difference in between the frames Δnframes. The measurements from the top and bottom are averaged to reduce the influence of droplet deformations in between the frames. In combination with the already known inner nozzle diameter, a measure of length ML for the single pixel in the image can be derived.
The measured values are compared to the calculated ones. The solution of the equation of motion with and without taking into consideration the wall effects is used for comparison.
This is derived from an equilibrium of forces for a rising droplet: the buoyancy force
Fb (11), the inertia force
Fi,r (12) and the drag force
Fd (13)
From the force balance, an expression for the difference in density Δ
ρ can be derived (13) where
Vp is the volume of the droplet. For the determination, it is assumed that the droplet is rotationally symmetric, and the projection area of the droplet is equal to the orthogonal area. The volume integral is calculated by a rotation around the
x-axis. To determine the volume, a volume integral is used. Therefore, an equation for the contour line of the droplet needs to be determined. This task is solved by an algorithm that uses the labels of the segmentation. It searches for droplets with the assigned label “detached droplet” and determines which labels can be seen in the 4-neighborhood of the analyzed pixel. If one pixel with the label “background” and one pixel with the label “detached droplet” is found in the 4-pixel-neighborhood it is assigned as a pixel of the contour line of the droplet. The positions of the pixels that form the contour line are stored, and afterward, a function consisting of lots of third-order polynomials is fitted through these points. The exact count of subsections depends on the size of the droplet.
As the density of the dispersed phase influences both sides, this equation has to be solved iteratively. The second equation for the difference in density (14) ensures continuity and is used to set up a system of equations which is solved by Newton’s method for multidimensional systems (15). Here
k is the iteration step and
J is the Jacobian matrix. The function
f is a differentiable function with
f: ℝ
2 → ℝ
2 [
16]. The problem is set up to find the zeros of the function
f by varying the difference in density and the density of the dispersed phase [
17].
Additionally, it should be mentioned that the resulting Jacobian matrix for the rising droplet only contains scalar values (17). Therefore, it is not necessary to update the Jacobian matrix in every iteration step; this reduces the complexity and, as a result, the computation time [
17].
To ensure the convergence of the procedure, the initial values are chosen, as shown in
Table 4. The selection includes that (14) is initially fulfilled, the values are non-negative and that the density of the dispersed phase is smaller than the density of the continuous phase. Moreover, it is considered that the dispersed phase in this work is also a liquid. Accordingly, the densities should be in a similar range.
For the density calculation with an iterative Newton method, initial values have to be chosen beforehand. For the density difference, a value of 0.25 times the density of the continuous phase is used. The calculation of the dispersed phase density is derived by the Newton method with an initial value of 0.75: the density of the continuous phase. The abort criterion is provided by an error estimate for the difference in density based on two sequential iteration steps (see (18)). As Newton’s method converges fast for reasonable initial conditions, due to local quadratic convergence, the abortion criterion is set to a relatively low value. The chosen criterion ensures that the error contributed by the iteration is minimal [
17] and it does not have a noticeable influence on the overall accuracy of the post-processing procedure as this mainly depends on the accuracy of the measured parameters.
Furthermore, the equation of motion for a droplet can be derived from the force balance (10). Together with Equation (19), it leads to an ordinary differential equation for the droplet’s velocity, as shown in Formula (20).
Additionally, an expansion of the force balance by a virtual mass term is possible for small droplets and low Reynolds numbers [
18]. The virtual mass force
is shown in Equation (21) and takes the acceleration of the surrounding fluid by the moving droplet into account [
19].
In this work, the velocity of the surrounding fluid
u is in good approximation equal to zero, which simplifies the equation. Moreover, it can be useful to add an acceleration factor α [
19] that can be used to increase the quality of the modeled velocity curves for a specific system. The implemented equation for the virtual mass force can be seen in (22).
The resulting differential equation for the droplet’s rising velocity is shown in (23).
The influence of the virtual mass force and the acceleration factor on the velocity curve of a spherical droplet in a tube is illustrated in
Figure 6. The curves are the solutions of Equation (23) for a droplet diameter of 4.4 mm and the system
n-butyl acetate (dispersed phase)/water (continuous phase) at 20 °C. The drag coefficient
was modeled by a correlation that takes the Reynolds number, the droplet shape and wall effects into account (see Equation (20)).
It can be seen that there is no influence of the virtual mass force and the acceleration factor on the terminal velocity, but the time until it is reached elongates because of a slower acceleration. The curve with α = 0 represents the case without the virtual mass force (20) and reaches the terminal velocity first. The data for
Figure 6 can be found in the Data Availability Statement.
The following diagram in
Figure 7 includes two correlations for comparison. The first upper boundary (indicated in red) depicts the solution of the equation of motion without the consideration of wall effects. The lower black boundary depicts the correlation including wall effects. However, this correlation was not set up for droplets originally.
By comparing the calculated data (○) with the two correlations (red and black lines), it becomes apparent that the calculated data points fit the correlation better without wall effects. However, by comparing the actual measured data with the solution of the equation of motion without the consideration of wall effects (black line), it becomes apparent that the data points fit the correlation including wall effects much better even if it is not for droplets but for spheres. Therefore, the use of this drag coefficient correlation (Equation (23)) seems reasonable.
It can be noted that the rising velocity linearly increases over time from 0 m s−1 in the beginning to 0.07 m s−1 after 0.22 s and follows a logarithmic course. Overall, the curve has a lightly periodic shape because the droplets perform an upward motion.
Moreover, a slight jump in the curve occurs between 0.02 and 0.04 s. That is precisely the moment when the droplet detaches. This leads to a sudden stop of detachment force on the cannula and thus an acceleration occurs followed by a velocity decrease as the droplet stabilizes its form.
3.3. Flow Resistance & Drag Coefficient
The flow resistance of a particle is mainly dependent on the combination of two components, the pressure resistance and the friction resistance [
1]. The pressure resistance results from the pressure difference between the stagnation point on the front of the droplet and the backside (see
Section 2.2). The resulting pressure force
(30) only depends on the pressure difference Δ
p and the orthogonal area
Aortho [
18]. Accordingly, small orthogonal areas are beneficial to decrease pressure resistance.
The second component of the overall flow resistance is friction, which results from the shearing of the fluid molecules of the surrounding fluid on the surface of the particle. The friction force
(31) depends on the shear stress at the surface
τs and the surface in contact
S. [
18]
The overall resistance force (drag)
results from the combination of these two components (32). A dimensionless form of this Equation (34) can be derived if it is divided by the dynamic pressure
(33) and the orthogonal area
[
18].
The dimensionless forces can be grasped as resistance coefficients (35), where
cd is the overall drag coefficient. The pressure influence is represented by
and the friction by
.
Depending on the particle’s shape and the surrounding flow, the influence of both components on the overall drag coefficient can rise or fall. In the case of droplets, additional effects such as surface deformation have to be taken into account. [
20] Therefore, the modeling of the flow resistance for a rising droplet is significantly more complex, but still very important, as the accurate determination of the drag coefficient
plays an important role. It directly influences the calculation of the dispersed phase’s density. The surface deformation of the moving droplet complicates the calculation and the correlations generally fail since a perfect sphere cannot be assumed. [
20] Still, there exists a wide variety of different empirical correlations to calculate the drag coefficients for free rising or sinking particles, especially for spheres. Overviews are given by Barati et al. [
21] and Kelbaliyev [
22]. The correlations often depend on the Reynolds number Re and have a validity range that also depends on the Reynolds number.
Three different correlations for the drag coefficient of a solid sphere (24), a solid ellipsoid (prolate) (37) and a free rising droplet (no wall effects included) (24) depending on the Reynolds number are shown below [
22]. Equation (26) was derived by fitting an exponential function on the data from Chang et al. (1992) [
23].
A comparison of these three correlations in the range of 80 < Re < 1530 is shown in
Figure A1. It can be seen that the curves of the solid sphere and solid prolate have a very similar course even if the absolute values of the drag coefficient
are smaller for the prolate. Both start with high values for the drag coefficient at lower Reynolds numbers and end with low values at higher Reynolds numbers. This follows from the flow separation. For increasing Re, the separation point of the flow moves from the backside closer to the front and therefore reduces the friction resistance. The difference in the absolute values of the drag coefficient for the prolate and the sphere results mainly from the smaller cross-sectional area in the direction of the flow in the case of the prolate (smaller pressure resistance, see
Figure 8) [
24]. The drag coefficients of droplets are even lower than the ones for prolate shapes at a low Re because of the flexible surface [
5]. For increasing Re, the drag coefficient rises again. This follows from the deformation of the droplet, which results in an oblate or a cap for a high Re (see
Figure 8). Accordingly, the flow resistance rises again as the cross-sectional area is bigger (pressure resistance rises) [
24].
The aspect ratio is calculated by dividing the width of the droplet by the height of the droplet, and thus the projected area of the rising droplet is described. On the other hand, the wall factor describes the influence of the tube wall concerning the flow around the droplet [
25].
The drag coefficient is one of the most important parameters since it influences the force balance directly and therefore impacts the calculation of the droplet’s density. To illustrate the influence of the drag coefficient, the shape factor is used, which is based on the aspect ratio shown in Equation (33).
The resulting shape factors are plotted against the aspect ratios
(Equation (34) droplet width divided by its height) shown in
Figure 9. All investigated liquid systems and nozzles are covered in the graph.
The black data points represent the medium nozzle; the resolution of 1080 p is represented by circles and 720 p by triangles. Moreover, the black circles represent a compressed version of all three liquid–liquid systems.
The black triangles are separate from the rest of the data points. This is not surprising, since at lower resolutions the measurement is more susceptible to minor changes and the weighting of a single pixel is higher. For all other measurements there is a trend that with higher aspect ratios, the shape factor decreases exponentially.
The red x markers are values generated by a correlation which only uses
n-butyl acetate measurements and is shown in Equation (35) [
24].
On the other hand, the black dotted line is also coming from a correlation that only uses measurements with a resolution of 1080 p. The correlation is shown in Equation (36).
It is remarkable that those two graphs are similar; it can be inferred that a transfer to other fluid systems is applicable [
25].
3.4. Density
The results for the calculation of the density of the dispersed phase of an
n-butyl acetate–water system is shown in
Figure 10.
The densities of the third and fourth frames after the reference frame are used to evaluate the densities. The reference frame is the first image which is detected by the search algorithm as a detached droplet. Since droplet formation takes time, the first frame after the reference frame and later frames should be avoided for evaluation because the potential to cause vast deviations is higher.
In the graphic, the red line illustrates the density value from the literature. Most of the points lie in a scope of ±5% around the literature value, where the maximum deviation lies in a range from −1.6% to 0.5%. Moreover, the graphic of the results shows that for the fourth image, the fluctuation around the literature value is much less than for the third image.
The mean, standard deviation and fluctuation margin are shown in
Table 5.
The results of the standard deviation prove that the densities captured in the third image after the reference frame scatter stronger than the fourth one. In comparison, online applications such as oscillating/vibration forks for density estimation have uncertainties in a range from ±0.1 kg m
−3 to 0.5 kg m
−3 [
27]. Since the density measurement working with the fourth picture indicates a standard deviation of 1.4 kg m
−3, a good starting point for a cheap and quick measurement approach is created. Problems in measurements can be caused by air bubbles.
3.5. Interfacial Tension
The interfacial tension is an effect which takes place at the interface of two immiscible liquids, in the specific case of this work, liquid–liquid systems [
28]. It is a result of the attractive and repulsive forces of the two phases.
In general, the interfacial tension can be described as force
F per length of the boundary
l, or ratio of energy increase Δ
E to surface increase Δ
S.
In this work, the main focus will be on the formation of static bubbles, or the region for Weber numbers below 2, as it is the basis for the development of the post-processing algorithm and the calculation of the interfacial tension in the investigated liquid–liquid systems. For the physical modeling of static droplet formation, a quasi-stationary force balance (38) between the buoyancy force
Fb (39), the viscous force
Fη (40), the inertia force
Fi (41) and the surface force
Fσ (42) is applicable. [
20,
29]
Figure 11 shows a schematic representation of the droplet formation at the nozzle and the acting forces. The size of the red arrows indicates the influence of the different forces on quasi-stationary droplet formation at low-volume flows.
The forces depend on various liquid parameters such as the interfacial tension, the viscosity
ηc and density
ρc of the continuous phase and the density of the dispersed phase
ρdisp. Moreover, geometric parameters such as the diameters of the nozzle
dn and particles
dp are relevant. Finally, the volume flow in the nozzle
and gravity
g are influential. Since the diameter of the particle is a third-order term, it exhibits the highest influence on the overall force balance.
This equation will be used to calculate the interfacial tension in the post-processing routine. Based on the force balance, an expression for the interfacial tension can be derived (43).
In
Figure 12, the third and fourth image after the reference image is used. The thick horizontal line indicates the literature value for the interfacial tension. The measurements of the third image overestimate and the measurements of the fourth image underestimate the marked literature value for the interfacial tension. All of the data points lie in a range from 12.75 mN m
−1 to 15.25 mN m
−1. The trueness of the investigated system thus is in a range from −1 to +0.4 mN m
−1 with a precision of ±0.3 to ±0.6 mN m
−1.