1. Introduction
Multiparticle tracking is a crucial quantitative analysis tool for microscopic images for many applications. The ability to obtain images from different types of instruments at different scales has enabled the incorporation of algorithms to monitor and characterize process images for applications such as DNA dynamics [
1], cell culture monitoring [
2,
3], microbiology characterization [
4,
5], and fluid and sediment velocimetry [
6,
7].
Microfluidic devices for trapping and sorting cells (and other bioparticles) are ideal candidates for image processing due to the relative ease of obtaining and storing information using conventional light microscopy within the micrometric scale and the interest in monitoring the time-lapse behavior downstream.
Advancements attained in hardware and software enable a new generation of highly integrated sensors capable of processing multiple substances of interest concurrently in real time [
8,
9]. Beyond the direct progress made in transducer subsystems, efforts have been carried out to increase the efficiency of sensors by engineering the handling of the sample. There is an inherent reagent consumption saving on shifting from macroscale fluid management toward microfluidic-based devices [
10]. However, within these operational conditions, the viscous forces become significant, and the laminar flow regime must be considered during the system’s design. Hence, microfluidic device designers have deliberatively incorporated technologies to stir and process samples for the pretreatment of samples in chemical synthesis and analysis, drug discovery, and medical diagnosis.
The mixing process is vital to provide optimal performance for setups where the mass transport of suspended particles is under low Reynolds numbers [
11]. Laminar flow is typical for lab-on-a-chip (LoC) and point-of-care (PoC) devices because they operate with channels whose dimensions are under 1 mm. Considering that sample preparation enables subsequential steps for analytical tasks, combining and blending samples efficiently with reagents or other testing agents has a significant impact on the footprint, velocity for processing, and performance of microfluidic devices [
12]. Different micromixer designs have been developed and evaluated using multiple metrics such as the length required to achieve mixing, residence time, and mass fraction variance. Machine vision can be used to characterize LoC devices with the parameters mentioned above with high-precision measurements and without human error involved. Furthermore, image-based analysis has the advantage that it can be deployed for high-throughput screening for single-cell and multivariable image analysis [
13,
14].
Numerous studies have focused on additive manufacturing to produce devices with features below the millifluidic range (0.5–1.0 mm on a feature). The implementation of layer-by-layer manufacturing enables hollow features that have increased the degree of complexity available to manipulate the fluid flows under low Reynolds numbers without the employment of external energy input. These configurations are denominated passive micromixers and rely on increasing the contact area and the contact time between different fluids. Flow can be split, stretched, and folded using periodic structures to achieve homogeneity. Researchers have identified different categories and mixing mechanisms, depending on whether the micromixer design is bidimensional or three-dimensional and whether it includes split-and-recombine (SAR) strategies, patterned grooves, or SAR with two-layer crossing channels. Bayareh et al. have identified a more general taxonomy for passive micromixers, which includes parallel lamination, multilamination, obstacle-based, curved channel, convergence–divergence-based, and asymmetrical configurations [
11].
The evaluation of micromixing performance is not a trivial matter. Diffusion or the net movement of molecules from a region of higher to lower concentration ensures that two miscible fluids eventually will be homogeneous with enough time or space. While researchers have reported frequent performances above 90% for active and passive micromixers using measurements based on the intensity profiles, characterizing the degree of mixing over time or footprint restrictions requires the employment of dimensionless numbers such as the Peclet or Reynolds number [
15]. Furthermore, with the vast availability of types of micromixing designs and their unique advantages and disadvantages, the comparison among these solutions is not straightforward. While there is a prevalent mixing index (M) in the literature that has been used to characterize the efficiency of microfluidic designs, it has some shortcomings for experimental applications. For example, the index cannot discern a mixing efficiency when there are more than two inlets or when the fluid manipulation requires mixing more than two reagents in a particular sequence.
The characterization of the mixing performance has been mostly underestimated by researchers. There are various techniques to characterize the mixing process, and the applications in which it is applied are in both the macrometric and micrometric scales. In the work of Baqersad et al. [
16], a technique based on the frequency histograms of images with linear discriminate analysis (LDA) is used to determine whether the asphalt is segregated or not. Particle mixing in a multiple-spouted bed is studied in the work of Zhang et al. [
17] by measuring the tracer particle concentration. The work of Fei et al. [
18] presents a method for assessing the uniformity and mixing time of bubbles in a direct contact heat exchanger. This method associates the uniformity coefficient with the local discrepancy of a set of bubbles, which allows a way to characterize the mixture homogeneity and mixing time with the use of a series of images. A comparison of two image analysis methods is carried out in the work of Liu et al. [
19] to measure mixing time on rotary drums. The first method uses the concentration variance of the system. The second one, called the contact method, quantifies the mixing quality by counting the interfaces (contacts) of different components on the pixel level. Open-source software (ImageJ, version 1.54f), in the work of Kaspar et al. [
20], is used for evaluation of droplet diameter and mixing performance on a microfluidic device. Here, mixing intensity was calculated for every droplet region of interest based on the mean and standard deviation of pixel intensity. In the work of López et al. [
21], the mixing efficiency of periodic disturbance mixers is measured based on the ratio of intensity of color on a cross-section of interest and a cross-section reference (beginning of the channel). Recently, a methodology was presented for determining the mixing index based on minimum and maximum red, green, and blue values (RGB) and tested on T- and Y-shaped micromixers [
22]. Some of these methods operate at the macrometric scale but can be easily adapted for the micrometric scale with the appropriate process images.
Integral software solutions have been offered on different platforms. For instance, Winer et al. [
23] reported the implementation of a particle-tracking algorithm. The authors designed Diatrack, freeware particle-tracking software based on Matlab for particle and cell tracking. However, this software does not provide mixing quantification.
In this work, we present a mixing characterization methodology based on particle-tracking algorithms as an alternative to the commonly used dyes to characterize mixing performance. The presented methodology is based on the open-source software (MIQUOD version 2.0) implemented as an App for Android devices. The open-source software reports measures related to the reduction in the segregation of concentration (mixing index), the reduction in the scale of segregation (mean length scale and index of dispersion), and the potential of change in mixing performance (exposure). The experimental data collected by the proposed method were validated through COMSOL simulations.
2. Materials and Methods
2.1. Mixing Quantification
Mixing can be defined as the process to combine different substances into a single substance. Mixing is easily performed at the macroscale. However, at the microscale it is challenging to achieve a good mixture because of the laminar flow regime present in most microfluidic systems. Given that, in terms of chemical reactions, a homogeneous mixture is required to achieve better results, there is a demand for novel and effective mixing techniques. Currently, the literature is limited in terms of techniques for characterization of these novel micromixing techniques.
There is no definite way to go from a conceptual definition of a mixture to equations that can quantify the mixture and experiments that directly measure this definition. A quantitative method for expressing the grade of mixing is required and the first proposal can be tracked to the work of Danckwerts [
24] and was further discussed by Zwietering [
25] in the 1950s. This work suggested that the features of mixing can be defined by the intensity and the scale of segregation. Assuming the mixture as a composition of two mutually soluble liquids and uniform in texture, Danckwerts’ intensity of segregation (
) represents an inverse measure of the effectiveness of the mixing. The following equation defines it as:
where
is the concentration of a liquid
at a point in space and an instant in time,
is the mean concentration of
in the mixture,
is the number of measurement locations, and
is the variance of concentration of
.
For a large 2D data set, the work of Kukukova et al. [
26] proposed an alternative approach. According to this work, three measures were directly related to mixing and these are the reduction in the segregation of concentration, the reduction in the scale of segregation, and/or a mixing time scale. These metrics are based on the two statistically defined quantities of Danckwerts and concepts of spatial statistics. They can be evaluated, as shown in [
27], using two types of data: concentration field data and particle-tracking data.
2.1.1. Mixing Quantification Using Concentration Field Data
When processing images, the data obtained are an array of pixel colors and intensities. The intensities can be associated with the concentration for evaluating the mixing performance and the concentration field data can be expressed as an
matrix of concentration
as in Equation (2).
This metric is related to the homogeneity and uniformity. It is commonly quantified by the standard deviation of the concentrations within a target area (
). In Equation (3),
is defined relative to the concentration data and the scale of resolution of the measurement, where
is the number of measured points at the target area,
is the mass fraction measured at the point, and
is the mean mass fraction of the target area.
Also, the coefficient of variation (
) allows meaningful comparisons between two or more magnitudes of variation, even if they have different means or different scales of measurement. It is defined, in Equation (4), as the ratio of the standard deviation and the mean value. When evaluating concentration profiles in a microchannel with a continuous flow, it is expected that
, but there is the possibility of having
and it requires the normalization of the
by dividing by the initial
at the entrance of the mixer by the value provided by an unmixed condition.
In this work, the mixing index
defined in Equation (5) is based on the coefficient of variation and it is used to define efficiency in micromixers.
- 2.
Scale of segregation
The intensity of segregation is not enough to completely define mixing. Therefore, Danckwerts proposed the concept of reduction in the scale to complement the quantification. The scale of segregation evaluates how concentrations are distributed as a function of distance. The correlogram proposed is a plot of the coefficient of correlation of concentration versus the distance separating the data points. Various methods for the calculation of the scale of segregation have been proposed in a wide spectrum of disciplines. Kukukova et al. [
28] showed 4 methods to extract length scales from mixing data, but the variogram was selected and it shows the spatial variability or continuity of the underlying concentration data set. The variogram is calculated from:
where
is the total number of pairs of data separated by a distance
and
the standarized concentration value at location
. When
, the variability at
has reached the variance of the whole data set and there is no remaining spatial correlation in the data.
- 3.
Exposure
Kukukova’s third performance metric is related to mixing time scale and quantifies the rate of change in segregation. Exposure may be considered as the potential of change in mixing performance. This measure considers the potential to increase mixing regarding contact areas and concentration gradients.
is quantified as:
where
, or
which are the number of neighbors,
is the strength of interaction (analogous to the molecular diffusivity),
is the contact area per side, and
is the concentration difference between two consecutive neighbors. Exposure’s definition is a simplified calculation of the rate of mass transfer across an interface.
2.1.2. Mixing Quantification Using Particle-Tracking Data
Particle tracking is the observation of the motion and position of individual particles within a medium. The particle-tracking data refer to a matrix
of dimensions
, that contains all the positions of the particles and it is defined in Equation (9).
To measure homogeneity and uniformity of concentration,
is also used for particle-tracking data. Here, concentration profiles are needed rather than positions of particles, so a sampling method is used to extract the concentration data set from particle positions. Kukukova et al. [
29] suggested a way of performing the required sampling method based on quadrants for determining
. The concentration (
) in a rectangular segment is measured considering Equation (10):
where
is the number of particles within a square segment of area
. Having in mind that a rectangle area
can be divided in
quadrants, Equation (4) can be rewritten as:
where
is the number of particles within a quadrant of area
.
- 2.
Scale of segregation
The maximum striation thickness and the point-to-nearest-neighbor (PNN) distribution methods were selected for processing particle-tracking data. The variance of the PNN distribution is used to evaluate the deviation of the spatial arrangement of particles with respect to the expected homogeneous distribution defined by points of a grid. Kukukova et al. [
28] proposed a filtered point–particle variance (
) where the minimum value of the PNN distribution is
and the distance from each particle is
. The variance is calculated as:
The work of [
30] proposed an index of dispersion (
) to quantitatively measure the clustering and departure from complete spatial randomness (CSR). The index is the ratio between the variance of the PNN distribution and the mean of the distribution.
2.2. Device Characterization
The most common mixing performance metrics include the Reynolds number (
Re), mixing index, mixing length, and mixing time. The Re is a dimensionless number that measures the ratio of inertial to viscous forces. The Re is an important measure because it allows comparison with other micromixers and its effects on the efficiency of the mixing process. The mixing length is defined as the distance to achieve a full mixing condition and the mixing time is the average time that a particle takes to move from the unmixed position to the fully mixed position [
31]. The Re can be calculated by Equation (13):
where
is the characteristic length that usually depends on the cross-section and the perimeter of the microchannel,
is the average velocity of the flow,
is the density of water, and
is the water viscosity.
The characterization of micromixers can be achieved by analyzing the concentration fluctuations through measurements using transects or target areas in the mixing field. These are usually carried out in simulations. The most common form to characterize mixing performance is by evaluating the intensity profiles in an image obtained through machine vision systems.
2.3. Machine Vision
Machine vision can be defined as the use of optical sensing devices to receive and interpret an image of a real scene. This process involves processing an image and carrying out high-precision measurements to be used to perform some activity. Illumination, camera type, and computational power are keys for good performance. Given that digital images must be processed, higher-resolution images require strong computational power; but this also implies an increase in performance. Filters can be used to enhance an image as a pre-processing step, so a balance point must be found between the quality of the camera and the amount of pre-processing applied to the image.
2.4. Mixing Quantification Software
The image processing was performed using the custom software MIQUOD (version 2.0) presented in a thesis work [
27]; here, the software comprises among other things two libraries. The first library, AForge. Imaging, incorporates the image-processing routines and filters, and the other library, AForge. Video, is a set of libraries for video processing. The source code of the project is available under the terms of GNU (General Public License). MIQUOD is focused on quantifying mixing using machine vision systems and reports measures directly related to the reduction in the segregation of concentration, the reduction in the scale of segregation, and the potential of change in mixing performance. The concentration data type is an array of concentrations associated with pixel intensities and the particle-tracking data are a matrix of particle positions within a target area. MIQUOD processes each type of data separately.
A second version of the custom software (version 1.0) is also programmed in Python. This open-source language is widely used, so a big amount of documentation can be found on different types of platforms. Here, the video and image processing can be achieved with OpenCV Python bindings, a library licensed under two different licenses, 3-clause BSD or Apache 2, depending on the version of the library. These bindings provide a common infrastructure for computer vision applications. This language also allows an easy way to migrate between devices in which the software can be executed.
A third option is programmed in an application for Android devices. Android Studio, the official IDE for Android development, includes everything needed to build Android apps. One programming language for developing apps is Kotlin. It can be interoperable with Java and other languages, which allows an easy way to adapt our previous software. The interfaces (Fragments) for the app were developed with Jetpack Compose which is based in Kotlin. The app is compiled for an API level of at least 30.
2.4.1. Concentration Data
The algorithm to calculate the different metrics varies according to the type of data, but that for concentration field data is shown in
Figure 1 and follows the following steps:
Load image(s) for pre-processing and filtering.
Define target areas (areas of interest) to evaluate/quantify without cropping the channel walls.
Perform a calibration (optional in the main software).
Calculate a concentration array of targets.
Compute different measures related to:
Intensity of segregation
Scale of segregation
Exposure ()
2.4.2. Particle-Tracking Data
For particle-tracking data, the algorithm is similar in most of the steps for concentration field data (
Figure 2). The main change is in the maximum striation thickness that is now calculated instead of the concentration array of targets. Also, the measures obtained now are:
Intensity of segregation
- ○
Mean concentration
- ○
Standard deviation ()
- ○
Coefficient of variation ()
- ○
Mixing index ()
Scale of segregation
- ○
Maximum striation thickness
- ○
Filtered point–particle deviation ).
- ○
Index of dispersion ()
The work reported by [
17] shows a reduction in metrics
,
, and the
as the particles are more randomly distributed in the patterns, which implies a better mixing process. Resolution of the images can influence the performance metrics. Therefore, it is appropriate to normalize them to provide a type of calibration with respect to an initial measurement (unmixed sample) and to be able to better visualize them in a range from 0 to 1. We propose a mixing index for particles (
) as shown by the following equation:
where
,
, and
are the values calculated for the unmixed sample. An index of dispersion (
) less than 1 indicates a well-dispersed and organized distribution of particles,
indicates the presence of significant clusters of particles, and
indicates a good mixing performance is achieved (random distribution). Following this concept and restricted only to
, the proposed metric is equal to 1 when the particles are randomly distributed in the image, indicating a mixed sample. Otherwise, it is equal to 0 which implies an unmixed sample.
2.5. Experimentation and Simulation
Testing the performance of the algorithms can be carried out by characterizing either simulations or real experiments as long as an RBG image can be obtained from the process. Simulations were performed first to obtain preliminary results prior to manufacturing the device, so corrections could be made if required. After that, the manufactured ASAR micromixer was tested with dyes and fluorescent microspheres for mixing efficiency and particle-tracking features, respectively. Images were captured from this process and analyzed by the software.
2.5.1. Mixer Designs
Three different micromixer designs are used, as shown in the Results section. The first design is a basic Y intersection with three inlets. The next microdevice considered is a sinusoidal micromixer with helicoidal grooves in the cross-section. The third design is based on a previous design [
32] that consists in an asymmetric split and recombine (ASAR) micromixer. The micromixer designs assessed in this paper have been employed in several applications for biosensors and sample processing that employ several mixing stages or multiple inlets [
33,
34,
35]. Furthermore, these micromixer designs were selected to showcase a range of manufacturing complexities.
2.5.2. COMSOL Simulation
A finite element numerical simulation was performed in COMSOL Multiphysics software. The modules employed were Laminar Flow, Transport of Diluted Species, and Particle Tracing. The fluid is described by the Navier–Stoke equations and the parameters were set, considering water properties, as follows: density (
) was considered as 0
and the dynamic viscosity (
) as
according to temperature conditions at
°C. Diffusion and concentration coefficients are needed because max flux is given by diffusion and convection. To evaluate the degree of mixing, concentration was set at
in the upper half of the inlet while the lower half was set to zero. The concentration then was assessed at the end of the mixers. The diffusion coefficient was set at
. All the parameters were set as reported before in [
22].
Figure 3 shows an example of particle-tracking simulation displayed as a phase portrait of the cross-section of the microchannels at the inlet (a) and outlet (b) of the sinusoidal mixer. The figure shows a helical microchannel that has two semicircular grooves.
2.5.3. MIQUOD Experiments
The algorithm was implemented in three different programming languages (C#, Python, Kotlin). Each programming language has its pros and cons. Therefore, we tested three different versions of the software.
2.6. Device Manufacturing
To fabricate the microdevices in this work, we used a standard soft lithography process, following these steps:
First, the mold parts were 3D printed using a Formlabs Form 3 SLA-LF printer (Formlabs, Somerville, MA, USA) with a resolution of 100 microns and Clear V04 material.
Then, we removed the mold parts from the scaffold platform and cleaned them of uncured resin with isopropyl alcohol. We then post-processed the molds according to the recommended settings: 15 min at 60 °C and 1 h of UV light exposure.
After that, we mixed the PDMS Sylgard 184 (Dow Corning, Midland, MI, USA) curing agent and polymeric base in a 10:1 ratio and poured it into the assembled mold. We degassed the PDMS in a vacuum chamber and then cured it overnight on a hot plate.
Then, the cured PDMS slab was detached from the mold using manual tools (a knife and tweezers).
Finally, we placed the PDMS slab and a microscope glass slide (76 × 52 × 1 mm) into an Expanded Plasma Cleaner (Harrick Plasma, Ithaca, NY, USA) for surface treatment. The plasma removed organic contamination and activated the PDMS surface for glass bonding.
After these steps, we attached the electronic components to the microdevice and made the necessary connections for testing. A CAD, the finished microdevice, and the measurements are shown in
Figure 4. More details about the manufacturing can be found in the literature [
32,
33,
36].
The 3D micromixer was inspired by the design presented by Tachibana et al. [
37]. That design has a helical microchannel fabricated by lost-wax casting. However, given our manufacturing process capabilities, we followed the procedure presented by Hu et al. [
38] to obtain a 3D micromixer based on two 2D micromixers.
4. Discussion
Figure 8a shows that, among the assessed geometries, the sinusoidal three-dimensional micromixer was the most efficient setup (M = 88.7%), followed by the ASAR micromixer (M = 70%) and the Y-shaped micromixer (M = 64%). The 3D micromixer setup displayed the most uniform distribution at the observation zone. In contrast, for the ASAR micromixer, the dyes are easily discernible by the naked eye. These results agree with the numerical data obtained with the CFD software (COMSOL Multiphysics 5.4) (see
Figure 6).
For the particle data, the maximum striation thickness decreases from the input to the observation zone, showing the distance (pixels) of the biggest cluster formed within a striation. Furthermore, the sample downstream has a low filtered point–particle deviation and index of dispersion. Hence, the particles are more dispersed and less aggregated. This behavior is consistent, considering that clusters are broken by the inertial forces and secondary flows induced by the features within the microchannel. Furthermore, the mixed sample displays a higher spatial resolution, meaning that the particles are more evenly distributed. Overall, the data suggest that the mixing process can be characterized by considering how geometrical features of the micromixer influence the dispersion and concentration of particles suspended in fluids in particular regions.
The proposed index (
) was shown to be useful when comparing changes between two states of
considering the differences in the image resolutions, number of particles detected, and target area sizes.
Table 1 describes the significant changes in the parameters for the red, blue, and green particles before and after being rearranged. These changes could be emphasized by selecting target areas that better comprise the interfaces of the fluids.
For the proposed algorithm, we can assume that, eventually, the particles will be thoroughly mixed (
). However, beyond this point, a micromixing device can also cause clustering (regardless of whether the sample is properly mixed). For example,
Figure 3b shows some accumulation of particles that could be interpreted as poor device performance.
Conventional mixing index determination methods rely on dye-based concentration field data, which are inherently limited by the reliance on pixel intensity measurements. This restriction obstructs the assessment of mixing efficiency for multiple input streams. A particle detection approach, on the other hand, was shown to be effective in characterizing the mixing of multiple inputs. This method, in conjunction with the proposed mixing index, offers a practical solution for evaluating complex mixing scenarios.
MIQUOD serves as a straightforward alternative for assessing dye-based mixing performance. Additionally, the particle-tracking capability provides an enhanced descriptive layer for intricate samples. In this type of detection, color filtering, morphological operations (erosion and dilation), and image resolution play crucial roles in achieving the necessary sensitivity for detecting a substantial number of particles.
The availability of higher-resolution images allows the implementation of cores for the morphological filters (usually multiple iterations of the same filter). In contrast, low-resolution images require smaller operator cores (in some cases, this operation is impossible due to the limited size of the file).
The effective image resolution for particle detection and concentration analysis depends on the specific application. For particle detection, high-resolution images are preferred when the particles are small relative to the pixel size. In these cases, high resolution allows for more accurate identification of individual particles. However, lower-resolution images can be sufficient for detection with particles that are significantly larger than the pixel size. Particles can be detected by identifying blobs within pixels. However, they cannot be detected if multiple particles occupy a single pixel. For concentration analysis, the optimal image resolution depends on the microchannel’s dimensions. While higher-resolution images are generally preferred, there is no specific resolution requirement. Considering that numerical and experimental image acquisition conditions are different, a fair comparison between simulations and experimental data is difficult. Therefore, we present the as an alternative to normalize and compare performances.
It should be noted that the MIQUOD software can run with limited computational resources. However, the time required to calculate the parameters may vary, considering the size of the particles, the image resolution, and the number of particles. Depending on the experiment conditions, the Android or PC versions can be more fitting.
5. Conclusions
The paper proposes a new method for particle-tracking and micromixing performance characterization. The proposed method is demonstrated via a microdevice with several approaches for mixing three independent inputs. Custom-built open-source software (MIQUOD) was shown to be an effective way to characterize the micromixers’ performance, working with dyes and particles. The sinusoidal 3D micromixer shows the best mixing performance, followed by the ASAR micromixer and the T-shaped micromixer.
The software MIQUOD is effective in characterizing mixing performance when using dyes. However, when operating under a particle-tracking regime, there are additional considerations for a good result. For example, the color pre-processing filter is essential to detect an adequate and significant number of particles.
High-resolution images allow the use of larger cores for the morphological filter and usually require multiple iterations of the same filter. In contrast, low-resolution images require small operator cores, sometimes even restricting the operation to be performed. The relation between the size of the particles and the resolution will determine the number of particles detected and hence the required time. The use of multiple app versions (different languages) allows customization of the results. The proposed index () allows a simple way to visualize changes among different micromixer designs and operating conditions.