Abstract
Amorphous calcium carbonate (ACC) plays an important role in the crystallization pathways of calcite and its polymorphs influencing many natural and anthropogenic processes, such as carbon sequestration. Characterizing the dissolution rate of ACC in presence of additives of contaminants in favor of crystalline phases is challenging as such reactions occur readily in bulk solution. Droplet microfluidics offers a solution by confining ACC within a droplet, enabling a quantification of the transformation rate of ACC into crystalline phases. However, accurate quantification of this transformation requires analyzing more than thousands of droplets identifying the different polymorphs of calcium carbonate during an experiment, which is labor-intensive. Here we develop a visual-based machine learning method, combining cascading U-Net and K-Means clustering, to allow efficient analysis of droplet microfluidics experiment results. Using our method, we accurately inspect 11,288 droplets over 6 hours of experimental time to identify the polymorphs, using a CPU core in a laptop for only 42 minutes. This is achieved with manual labeling of 11 experimental microscopy images before augmentations. From our analyses the transformation rate of ACC into its crystalline phases can be inferred. The transformation rate indicates an increasing stability of the ACC phase in confinement. Our method is generalizable and can be applied to different setups of droplet microfluidics experiments, facilitating efficient experimentation and analysis of complex crystallization processes.
Similar content being viewed by others
Introduction
Calcium carbonate is ubiquitous in both natural and anthropogenic environments and is by far the most studied solid phase1,2,3,4,5. It occurs in various anhydrous crystalline phases: calcite (trigonal structure, space group R\(\overline{3}\)c), vaterite (hexagonal structure, space group \(\text {P6}_{3}\)/mmc), and aragonite (orthorhombic structure, space group Pmcn)4,5. Additionally, it forms hydrated phases such as monohydrocalcite (trigonal, space group \(\text {P3}_{1}\)12) and hexahydrocalcite (ikaite, monoclinic, space group C2/c), as well as amorphous (hydrous) calcium carbonate (ACC), with the latter being a potential precursor for the crystalline phases4,5. ACC can transform via dissolution and re-precipitation mechanisms, a pathway that often results in significant morphological changes in the final crystalline phase, or through solid-state transformation, which can preserve intricate hierarchical structures1,2. The transformation of ACC via dissolution and re-precipitation mechanisms is governed by equilibrium partition coefficients, maintaining the chemical composition of the aqueous solution. In contrast, during solid-state transformation, chemical redistribution can deviate significantly from equilibrium partitioning, preserving the original chemical composition of ACC in the crystalline end product6. Thus, each transformation pathway has a significantly different effect on element partitioning into the final crystalline phase6. Furthermore, the transformation of ACC to crystalline phases can result from a combination of solid-state transformation and dissolution-precipitation mechanisms7. Understanding calcium carbonate mineral formation from ACC precursors is highly relevant for various systems, not only for the biomineralization of marine calcifiers, which represents one of the long-term sinks of carbon on Earth3,7, but also for other environmental applications8. Indeed, the lack of selectivity with respect to trace element incorporation compared to crystalline calcium carbonate phases, along with the co-precipitation of trace elements via the formation of ACC precursors, make calcium carbonate formed via ACC a good candidate as a scavenger for various heavy metals9, including radionuclides10,11.
The fascinating transformation of ACC into complex shell and skeletal structures has triggered the exploration of bio-inspired crystal engineering approaches for controlling the transformation of ACC to its different crystalline phases as well as their morphology4,5,12,13. Given its critical importance, the characterization of ACC and the factors influencing its stabilization remains an active field of research14. Beside water15,16,17, impurities such as magnesium and phosphate are also known to affect the stability of ACC18,19. Other studies have shown that ACC is metastable in confinement even in the absence of additives20,21,22,23. The stabilization of ACC in confinement and in the presence of additives has significant implications for porous media research and subsurface remediation applications. For example, recent studies have shown that the addition of alkaline-earth metals, such as Ba, increases the stability of ACC in porous media, leading to unexpected precipitation patterns occurring in regions not characterized by the highest saturation ratio with respect to calcite10. Quantifying the metastability of ACC in the presence of additives and in confinement is crucial for understanding the transformation rate of ACC to crystalline phases, which in turn provides valuable insights for tailoring calcium carbonate phases for biomedical, bioengineering, and environmental remediation applications5,24. The determination of the transformation rate of ACC as a measure of its metastability can be used to quantitatively compare the effects of various environmental conditions, such as confinement, temperature, gas fugacities, or the presence/absence of other ions/additives, on its transformation25.
Microfluidics-based screening and lab-on-chip have emerged as powerful tools to investigate mineral dissolution and crystallization processes26,27,28, including minerals with highly radioactive elements e.g. radium-bearing barite29. These techniques can include in-situ spectroscopic techniques, such as Raman spectroscopy30,31,32 or synchrotron-based XRD33,34, to monitor phase transformations. Particularly, droplet microfluidics have been proposed as a high-throughput methodology to investigate ACC transformation22,23. This technique involves the formation of a series of aqueous droplets in a continuous phase (oil or air), with each droplet serving as an individual micro-batch experiment. Droplet microfluidics has been successfully applied to determine nucleation rates of various minerals34,35, including calcium carbonate21, and the transformation rate of ACC25. However, a significant challenge in deploying droplet microfluidics is the analysis of experimental results, which typically requires labor-intensive image segmentation to identify multiple crystals within droplets and track changes over time35,36. Here, we propose the use of visual-based machine learning methods to assist in this analysis.
In the context of droplet microfluidics, visual-based machine learning methods, such as Convolutional Neural Networks (CNN) and ResNet, have often been employed to optimize droplet generation in real time37,38,39,40,41. However, there has been less focus on using machine learning methods for evaluating experimental results, where analyzing the content of numerous droplets is required. This is particularly important for conducting multiple experiments under varying conditions to assess their impact on ACC transformation. A recent study uses a CNN model, trained and validated with a library containing 92,000 images, to identify bacterial growth in 3,000 droplets in an 20-minute experiment42. Similarly, another CNN model YOLOv5 is trained and validated with 643 droplet images and 2,063 cancer-cell images to identify PC3 cancer cells in 20 droplets per image43. These approaches, however, require a large number of manually labeled samples for the machine learning training.
In this study, we combine multiple U-Nets, namely the cascading U-Net method, the K-Means clustering method, and our identification algorithm (see Algorithm 2) to assist with analysis. The cascading U-Net method facilitates fast image segmentation, enabling accurate identification of droplets and multiple crystals over time with a small number of training samples required for training the machine learning models. To our knowledge, this is the first application of the cascading U-Net method for the fast identification of multiple crystals in droplet microfluidics experiments. The K-Means clustering method quantifies changes in minerals and droplets by analyzing the clustered colors in the segmented images produced by U-Net. Meanwhile, we develop an algorithm for tracking droplets containing ACC over time to infer its transformation rate. This approach is anticipated to reduce the laborious effort required for analyzing droplet microfluidic experimental results, thereby providing a toolbox for experimentalists to rationalize multiple experiments under different conditions.
Methods
Experimental setup
The droplet-microfluidic experimental setup follows that of our previous study35 and consists of a microfluidic reactor, an inverted microscope Eclipse Ti2 (NIKON, Tokyo) with a CFI Plan Fluor DL \(\times\)10 objective (numerical aperture 0.3; working distance 16 mm, Nikon, Tokyo), a high-resolution camera from Zyla (sCMOS, Andor, Belfast), and a pressure pump with flow controller (Fluigent, Jena). The microfluidic reactor is a commercial droplet generator chip with an integrated storage platform made out of TOPAS® COC (cyclic olefin copolymer; Fluidic 719 from Microfluidic ChipShop, Jena) (see Figure 1a). A commercial chip is chosen over an in-house design for our experiments and analysis to make our developed visual-based, data-driven machine learning method more accessible to the geochemistry community. Two inlets are dedicated for the injection of the oil phase (NovecTM 7500 fluorinated oil, Fluigent Le Kremlin-Bicetre) and two for the injection of the dispersed (aqueous) phase, i.e., a 10 mM calcium chloride (\(\text {CaCl}_{2}\)) solution and a solution of 10 mM of sodium carbonate (\(\text {Na}_{2}\text {CO}_{3}\)) to trigger the precipitation of \(\text {CaCO}_{3}\) (see Figure 1a). The flow rates used for the experiment are 1 \(\mu\)L \(\text {min}^{-1}\) for both \(\text {CaCl}_{2}\) and \(\text {Na}_{2}\text {CO}_{3}\) solutions and 20 \(\mu\)L \(\text {min}^{-1}\) for the oil phase, resulting in droplets of about 170 \(\mu\)m diameter and c. 2 nL volume (calculated using the formulation in dos Santos et al. (2018)44). The storage platform includes droplet traps.
Experimental setup, Raman spectra, and snapshots of experimental result. (a) A detailed view of the inlet side consisting of two inlets (blue arrow: \(\text {CaCl}_{2}\) and orange arrow: \(\text {Na}_{2}\text {CO}_{3}\)) dedicated for injection of aqueous solutions and two channels (red arrows) for oil circulation. The purple box shows the location where monitoring was performed to ensure well mixing the reactants at the nozzle. Several droplet traps are installed on the storage platform to trap the droplets during the monitoring process. The unlabelled channels are not used during the experiments, denoted by X marks. (b) Raman spectra confirming the three different phases and their associated morphologies, with the spectrum of the oil in the reactor shown in cyan. (c) Snapshot of the droplet storage channel after 40 minutes, with droplets numbered 1-11 indicating presence of crystalline phases. (d) Snapshot of the droplet storage channel after 360 minutes with additional droplets numbered 12-20 on top of the ones in (c) where ACC has transformed into crystalline phases. (e) Zoomed-in view of the yellow box (\(800\,\upmu\)m width) from (d), providing better visualization of the calcium carbonate phases: ACC phase (irregular shape), vaterite crystal (spherical shape), and calcite crystal (rhombohedral shape).
The experiment was conducted at room temperature (\(22\,^{\circ }\)C) which was continuously monitored throughout the experimental duration. The experimental setup was housed within an enclosed cabinet designed to minimize fluctuations in temperature, mechanical vibrations, and exposure to cosmic rays35. Under these conditions, no observable shrinkage in droplet volume occurred, indicating that the droplets remained stable throughout the duration of the experiments. The solution viscosity is 1 \(\times \,10^{-3}\) Pa\(\cdot\)s.
The fabrication of droplets was enabled for 20 minutes and carefully monitored by the experimentalist, ensuring well mixing of the reactants at the nozzle (see purple box in Figure 1a) and consistent droplet generation, using the live camera of the microscope. After 30 minutes, the mineralogical transformations were monitored using time-lapse microscopy for 6 hours. Raman spectra, using a detailed protocol described in our previous study10 were collected to determine the polymorphism of the newly formed precipitates, see Figure 1b. The Raman spectroscopy was performed probing precipitates inside the droplets (at least 10 spectra collected for each morphology) using a Witec alpha300 Ri inverted confocal microscope with a Nikon CF plan 100\(\times\) objective of numerical aperture 0.95. The instrument is equipped with a Nd:YAG laser (\(\lambda\) = 532 nm), a thermoelectrically cooled CCD Camera, and a Ultra-High-Throughput Spectrometer UHTS300. Raman spot measurements were collected using a grating of 1800 grooves per mm at a laser power of 20 mW collecting 100 measurements each lasting 0.5 s for amorphous phases and 50 measurements each lasting 0.5 s for the crystalline phases. These measurement were collected after 24 hours.
In our analysis, we define \(t_{0} =\) 30 minutes which denotes the start of the monitoring period using time-lapse microscopy. We further provide Supplementary Information 1 containing snapshots captured at \(t_{0}\), demonstrating well mixing condition and absence of vacant droplets. For higher resolution snapshots, we encourage readers to access our data repository https://doi.org/10.26165/JUELICH-DATA/RZ8RZ3.
Linking Raman spectroscopy and crystal morphology
In our experiment, three distinct phases - amorphous calcium carbonate, vaterite, and calcite - were visually identified (see Figure 1c to e) and further confirmed using Raman spectroscopy (see Figure 1b). The calcite is characterized by the \(v_{4}\) in-plane bending mode of \(\text {CO}_{3}^{2-}\) at 712 \(\text {cm}^{-1}\), the \(v_{1}\) symmetric stretching mode of \(\text {CO}_{3}^{2-}\) at 1085 \(\text {cm}^{-1}\), and the \(v_{3}\) antisymmetric stretching mode of \(\text {CO}_{3}^{2-}\) at 1436 \(\text {cm}^{-1}\)45. Morphologically, calcite is identified by its characteristic rhombohedral shape46. The vaterite can be distinguished from calcite by the doubling of the \(v_{1}\) band, which produces peaks at 1074 and 1090 \(\text {cm}^{-1}\)45. It is visually characterized by a spherical shape23. The ACC phase, on the other hand, is readily distinguished by the absence of a sharp \(v_{1}\) band, exhibiting instead a broader and less intense band45. This phase is visually identified by its irregular morphology47. This link between Raman spectral signatures and the visual morphologies of the solid phases enables the application of visual-based machine learning methods to further analyze our experimental results. Note that given the high concentration of reactants used in our experiment, ACC is instantaneously formed in all droplets upon fabrication.
Cascading U-Net and K-Means clustering method
We use a visual-based, data-driven machine learning method to enable fast analysis of droplet microfluidic experiment results, distinguishing between droplets, vaterite, and calcite. Our strategy for inferring the number of droplets containing the ACC phase is based on counting the number of droplets containing either vaterite or calcite crystals, as all droplets initially contain the ACC phase (see Supplementary Information 1). Additionally, ACC has lower color contrast (see the ACC phase in Figure 1e), making it challenging for image segmentation.
We rely on the U-Net48 as the backbone of our approach for segmentation. Three U-Nets, as shown in Figure 2, are employed to accurately identify the droplets, vaterite, and calcite crystals, respectively. This three-U-Net approach, namely cascading U-Net method, addresses the issue of feature imbalance, where vaterite and calcite- our primary segmentation targets-occupy a maximum of only three pixels, whereas droplets cover significantly more pixels (see Figure 1c). Additionally, there are high-contrast backgrounds that must be handled during segmentation. These conditions can obscure the vaterite and calcite crystals, leading to a trained model biased toward the dominant feature (i.e. the droplets). As a result, accurately distinguishing vaterite and calcite crystals becomes challenging without a large number of training samples49,50,51. However, generating such a large number of training samples would be labor-intensive. Our proposed method reduces the need for an extensive number of training samples while still providing accurate predictions.
The approach begins with the first U-Net model, which is used to segment RGB experimental snapshots obtained through optical microscopy, specifically for identifying the droplets (see the output of the first U-Net model in Figure 2). This model takes RGB images as inputs and produces binary images, where droplets are represented in white and the background in black.
After obtaining the optimally trained first U-Net model, the next step is to overlay the predictions onto the input images, as illustrated by the blue ”+” sign in Figure 2. This overlay process follows Algorithm 1. The purpose of this step is to remove contrast from the background, allowing the subsequent segmentation to focus solely on the features within the droplets. Without this step, the issue of feature imbalance would persist.
The results of the overlay process are then used as inputs for the second and third U-Net models. Since these two models operate independently, they can be trained in parallel. The outputs of the second and third U-Net models are vaterite and calcite, respectively, represented as white pixels, with the droplets and background in black, as shown in Figure 2. The construction of the U-Net models and the generation of training samples are described in detail in Supplementary Information 2.
After training all U-Net models, we can now obtain binary outputs for identifying droplets, vaterite, and calcite. These outputs are then fed into the K-Means clustering algorithm to determine the number of droplets, and vaterite and calcite crystals. In this setup, the calculation of clusters is straightforward, as there are clearly two clusters, white-pixel and black-pixel clusters. We use the centers of the white-pixel cluster to calculate the number of droplets and crystals.
By stacking the binary outputs of droplet, vaterite, and calcite segmentation (overlay operation shown in Figure 2 with purple color), we achieve a complete segmentation of the original input images, as shown in Figure 2, with the background in black, droplets in white, vaterite in red, and calcite in green. These stacked images are useful for determining the transformation rate of ACC using Algorithm 2. The main purpose of Algorithm 2 is to calculate the number of droplets over time that contain ACC. This algorithm relies on a finding-contours and minimum-enclosing-circle algorithm provided by the OpenCV Python library52.
The cascading U-Net combined with the K-Means clustering method is general and can be extended to other problems. To apply this approach to different problems, the first step is to identify the dominant features that might obscure the minor features of interest. If multiple dominant features are present, the first U-Net model can be expanded into several U-Net models. The overlay operation then removes the dominant features before proceeding to segment the minor features. The number of U-Net models for minor feature segmentation can also be adjusted based on the number of minor features present among the dominant features. Once all U-Net models are trained, the K-Means clustering method can be applied to the output of each model to facilitate quantitative analysis. All implementations described here are within our open-source Python library, Chip Analyzer and Calculator (cac). The library can be downloaded from our Github repository https://github.com/FZJ-RT/cac.git.
An important consideration is the resolution of the input images to the U-Net models. The images must provide sufficient clarity of both crystal and droplet features, preserve spatial information, and balance the computational cost of model training. A cut-and-resize approach (see Supplementary Information 2) is recommended for handling high-resolution optical images (e.g. 7975\(\times\)16381\(\times\)3 pixels in our case study). However, we advise limiting the number of cuts to a maximum of two to reduce artifacts during the reconstruction process after segmentation. The resizing dimensions should be then chosen to maintain adequate feature clarity while considering the computational efficiency of the U-Net models training.
Results
Cascading U-Net results
We conducted a droplet microfluidics experiment over 6 hours, capturing multiple snapshots from 16 different locations (each covering an area of 3 mm \(\times\) 1.5 mm) at 17 time steps per location, with each snapshot containing approximately 50 droplets. For generating training samples, we used snapshots from 4 different locations. At one location, we manually labeled snapshots from 5 time steps, representing half of the experimental period. For the other three locations, we labeled only 2 time step snapshots each. The locations and time steps are randomly selected. We then split the data into training and validation sets, with an 80:20 ratio. We also ensure that the selected 4 locations and their corresponding 17 time steps are excluded from the prediction samples.
Figure 3 shows the prediction result at time = 22.72 minutes, combining two prediction outputs from the cascading U-Net method. The first U-Net model successfully captures most of the droplet boundaries. This accurate segmentation for each cut image results in a smooth and well-merged final image. While the second U-Net model slightly overpredicts the number of vaterite crystals, the third U-Net model accurately identifies the location and quantity of calcite crystals. For the remaining 191 optical microscopy images and for high resolution images, we encourage readers to visit our data repository https://doi.org/10.26165/JUELICH-DATA/RZ8RZ3. Based on these results, we are confident in using our trained U-Net models for further analysis of the transformation rate of ACC.
An exemplary segmentation result using our cascading U-Net method. It contains 54 droplets out of 11,288 droplets (in total): (a) the experimental snapshot at time = 22.72 minutes, (b) the ground truth, and (c) the prediction result. The presented images (a) to (c) are combined images after going through the cutting process in Figure S2.1 in Supplementary Information 2. The green pixels indicate calcite crystals, red pixels indicate vaterite crystals, and bubbles without both red and green pixels are classified as containing the ACC phase.
Table 1 outlines the performance of each U-Net model used in the cascading U-Net method. All three U-Net models exhibit similar offline and online processing times, reflecting their comparable architectures and hyperparameter setups. An offline time refers to the time needed for constructing a machine learning model and optimizing its hyperparameters, while an online time for deploying trained machine learning models for prediction. The variation in error magnitude is due to the different amounts of features (white pixels) each model must segment. For example, the first U-Net model has a larger error than the second because it segments more white droplet pixels compared to the vaterite pixels. However, these errors are acceptable, as demonstrated by similarity of the prediction result shown in Figure 3c and the ground truth in Figure 3b. All U-Net models are trained using a GPU in the JURECA High-Performance Computing (HPC) infrastructure at Forschungszentrum Jülich, utilizing a GPU-equipped node with 2 \(\times\) AMD EPYC 7742 processors (2 \(\times\) 64 CPU cores at 2.25 GHz), 512 GB of RAM, and 4 \(\times\) NVIDIA A100 GPUs per node. The online phase is computationally cheap, running on a CPU in a Dell Latitude 7440 Laptop equipped with Gen 13th Intel i7-1365U containing 12 CPU cores at 1.8 GHz and 32 GB RAM. We can produce the result in Figure 3c in approximately 7 seconds. Using this method, we can analyze 11,288 droplets (in total), along with vaterite and calcite identification, across 192 optical microscopy images in 42 minutes.
Clustering and counting results
Table 2 presents the performance of each K-Means clustering method. The offline phase is relatively short because, unlike the U-Net models, the K-Means method does not involve as many weights and parameters to optimize. The online phase is also quick, enabling fast analysis to estimate the transformation rate of ACC.
Figure 4 presents the analysis results using the K-Means clustering method and Algorithm 2. The blue dots at each time step represent the number of droplets containing the ACC phase, calculated across 12 locations (dedicated for the online phase). Since the snapshots of these 12 locations are taken sequentially, the time discrepancies are shown as bars, with the blue dots indicating the mean time. Overall, the data points follow an exponential decay trend. We fit the data with the following equation:
or for the ratio format:
where \(\text {N}_{d,\text {ACC}}\) denotes the number of droplets containing ACC, \(\text {N}_{d}\) denotes the total number of droplets, and t denotes time in minutes. The transformation rate obtained from fitting equation is 0.027 \(\text {min}^{-1}\). The results show that approximately 90% of the total droplets still contain the ACC phase at the end of the experimental duration (6 hours). This suggests that ACC is stable for 6 hours experimental time.
The analysis results of 11,288 droplets (in total) across 192 optical microscopy images. The gray bars represent the time discrepancies resulting from the sequential operation of taking the snapshots, while the blue dots indicate the total number of droplets containing the ACC phase, as analyzed from the cascading U-Net method outputs. The presented graphs are (a) the droplet count containing the ACC phase and (b) the ratio between then number of droplets containing the ACC phase and the initial number of droplets.
To further confirm that the ACC remains stable over a long period in confinement, we take additional snapshots at 12 designated prediction locations after 24 hours and perform manual counting. Readers are encouraged to check it in Supplementary Information 3 or in our data repository in https://doi.org/10.26165/JUELICH-DATA/RZ8RZ3. We identify 653 droplets, a difference of 11 droplets compared to our proposed approach (this difference can be attributed to the error in the cascading U-Net method due to over prediction), with 443 droplets containing the ACC phase. This results in a ratio \(\frac{\text {N}_{d,\text {ACC}}}{\text {N}_{d}}\) of 0.678. Therefore, the half-life is greater than 24 hours.
Discussion
Using the droplet microfluidics setup, we are able to quantify ACC transformation rate in a confined volume of aqueous solution. As shown in Figure 4 and indicated by the manual counting results after 24 hours, a significant portion of the ACC phase remains stable throughout the experiment. This result aligns with previous studies which demonstrated similar stabilization of ACC21 and the preferential formation of the less stable crystalline phase, vaterite22,23. This stability is due to the confinement effect imposed by the droplet, placing the ACC phase in a metastable equilibrium with the solution inside the droplet21. For a comparison, without imposing any confinement, the lifetime of ACC phase is less than 20 minutes observed in micronized batch experiments10. The metastability of aqueous solutions is often observed in confinement35. For instance, no precipitation of barite occurs in droplet experiments, despite the solution being supersaturated with respect to barite35. An explanation for this metastability is the limited availability of aqueous ions required for the formation of crystals, reducing the driving force required to surpass the energy barrier for the formation of more stable phases22. This effect diminishes as the droplet size increases35. In the presented experiment, stabilization of the ACC phase is influenced by factors such as droplet size and the presence of additives of trace elements21,25,56, which can be further studied and quantified using the presented experimental setup using the commercial chip used here and accompanying analysis method. It should be noted that comparing experimental results using different chip designs may lead to varying outcomes, as the fluid injection rates, nozzle sizes, and droplet volumes are known to affect fluid mixing and, consequently, precipitation rates22. Therefore, for consistent comparison of the effects of additives, temperature, and other variables on ACC stability, the chip design should remain uniform across experiments.
The combined cascading U-Net and K-Means clustering method achieves accurate segmentation and identification results with a small number of manually labeled training samples. In contrast, the DeepLabV3+ model57, a widely used approach for multi-label segmentation, shows limitations with the same number of manually labeled samples (see Supplementary Information 4). The DeepLabV3+ model necessitates a significantly larger number of labeled training samples, which is less desirable due to the labor-intensive nature of manual labeling. Our method is also efficient, featuring a fast online phase and reasonable resource requirements for the offline phase. Moreover, accuracy can be further enhanced by incorporating additional manually labeled samples.
Our method is general and can be applied to various droplet microfluidic experimental setups. The key is to first separate the droplet features and then use multiple U-Net models to identify crystal features. In the future, we plan to extend our experiments by investigating the effect of stabilizing agents and different droplet sizes on the ACC transformation rate. These enhancements will also enable us to conduct more comprehensive analyses using the combined cascading U-Net and K-Means clustering method and further validate the effectiveness of the method.
Data availability
The data for training is published on https://doi.org/10.26165/JUELICH-DATA/RZ8RZ3. The Chip Analyzer and Calculator (cac) Python library is in our Github repository https://github.com/FZJ-RT/cac.git. The deeplab Python library is also available in our Github repository https://github.com/FZJ-RT/deeplab.git.
References
Nicholas, T. C. et al. Geometrically frustrated interactions drive structural complexity in amorphous calcium carbonate. Nat. Chem. 16, 36–41 (2024).
Addadi, L., Raz, S. & Weiner, S. Taking advantage of disorder: Amorphous calcium carbonate and its roles in biomineralization. Adv. Mater. 15, 959–970 (2003).
Mergelsberg, S. T. et al. Metastable solubility and local structure of amorphous calcium carbonate (ACC). Geochim. Cosmochim. Acta 289, 196–206 (2020).
Rodriguez-Navarro, C., Kudłacz, K., Cizer, Ö. & Ruiz-Agudo, E. Formation of amorphous calcium carbonate and its transformation into mesostructured calcite. Cryst. Eng. Comm. 17, 58–72 (2015).
Wu, W. et al. Bioinspired stabilization of amorphous calcium carbonate by carboxylated nanocellulose enables mechanically robust, healable, and sensing biocomposites. ACS Nano 17, 6664–6674 (2023).
Otter, L. et al. Growth dynamics and amorphous-to-crystalline phase transformation in natural nacre. Nat. Commun. 14, 2254 (2023).
Goffredo, S. et al. Biomineralization control related to population density under ocean acidification. Nat. Climate Change 4, 593–597 (2014).
De Yoreo, J. J. et al. Crystallization by particle attachment in synthetic, biogenic, and geologic environments. Science 349, aaa6760 (2015).
Kim, J. J. et al. Carbonate coprecipitation for Cd and Zn treatment and evaluation of heavy metal stability under acidic conditions. Environ. Sci. Technol. 57, 3104–3113 (2023).
Poonoosamy, J. et al. The use of microfluidic platforms with raman spectroscopy for investigating the co-precipitation of metals and radionuclides in carbonates. Minerals 13, 636 (2023).
Ait-Mouheb, N. et al. Retention of \(^{226}\)Ra in the sandy Opalinus Clay facies from the Mont Terri rock laboratory, Switzerland. Appl. Geochem. 170, 106048 (2024).
Meldrum, F. C. & Cölfen, H. Controlling mineral morphologies and structures in biological and synthetic systems. Chem. Rev. 108, 4332–4432 (2008).
Gilbert, P. U. et al. Biomineralization: Integrating mechanism and evolutionary history. Sci. Adv. 8, eabl9653 (2022).
Zou, Z. et al. Additives control the stability of amorphous calcium carbonate via two different mechanisms: Surface adsorption versus bulk incorporation. Adv. Funct. Mater. 30, 2000003 (2020).
Raiteri, P. & Gale, J. D. Water is the key to nonclassical nucleation of amorphous calcium carbonate. J. Am. Chem. Soc. 132, 17623–17634 (2010).
Du, H. et al. Amorphous CaCO\(_{3}\): Influence of the formation time on its degree of hydration and stability. J. Am. Chem. Soc. 140, 14289–14299 (2018).
Zou, Z., Xie, J., Macias-Sanchez, E. & Fu, Z. Nonclassical crystallization of amorphous calcium carbonate in the presence of phosphate ions. Crystal Growth & Design 21, 414–423 (2020).
Molnár, Z., Dódony, I. & Pósfai, M. Transformation of amorphous calcium carbonate in the presence of magnesium, phosphate, and mineral surfaces. Geochim. Cosmochim. Acta 345, 90–101 (2023).
Albéric, M. et al. The crystallization of amorphous calcium carbonate is kinetically governed by ion impurities and water. Adv. Sci. 5, 1701000 (2018).
Stephens, C. J., Ladden, S. F., Meldrum, F. C. & Christenson, H. K. Amorphous calcium carbonate is stabilized in confinement. Adv. Funct. Mater. 20, 2108–2115 (2010).
Cavanaugh, J., Whittaker, M. L. & Joester, D. Crystallization kinetics of amorphous calcium carbonate in confinement. Chem. Sci. 10, 5039–5043 (2019).
Meldrum, F. C. & O’Shaughnessy, C. Crystallization in confinement. Adv. Mater. 32, 2001068 (2020).
Yashina, A., Meldrum, F. & Demello, A. Calcium carbonate polymorph control using droplet-based microfluidics. Biomicrofluidics 6, 022001 (2012).
Li, S. & Lian, B. Application of calcium carbonate as a controlled release carrier for therapeutic drugs. Minerals 13, 1136 (2023).
Whittaker, M. L., Sun, W., Duggins, D. O., Ceder, G. & Joester, D. Dynamic barriers to crystallization of calcium barium carbonates. Crystal Growth & Design 21, 4556–4563 (2021).
Poonoosamy, J. et al. A lab on a chip experiment for upscaling diffusivity of evolving porous media. Energies 15, 2160 (2022).
Poonoosamy, J. et al. A lab-on-a-chip approach integrating in-situ characterization and reactive transport modelling diagnostics to unravel (Ba, Sr) SO\(_{4}\) oscillatory zoning. Sci. Rep. 11, 23678 (2021).
Zhang, Z. et al. Investigating the nucleation kinetics of calcium carbonate using a zero-water-loss microfluidic chip. Crystal Growth & Design 20, 2787–2795 (2020).
Poonoosamy, J. et al. A radiochemical lab-on-a-chip paired with computer vision to unlock the crystallization kinetics of (Ba, Ra)SO\(_{4}\). Sci. Rep. 14 (2024).
Lönartz, M., Yang, Y., Deissmann, G., Bosbach, D. & Poonoosamy, J. Capturing the dynamic processes of porosity clogging. Water Resources Research 59 (2023).
Boyd, V. et al. Influence of Mg\(^{2+}\) on CaCO\(_{3}\) precipitation during subsurface reactive transport in a homogeneous silicon-etched pore network. Geochim. Cosmochim. Acta 135, 321–335 (2014).
Yoon, H., Chojnicki, K. N. & Martinez, M. J. Pore-scale analysis of calcium carbonate precipitation and dissolution kinetics in a microfluidic device. Environ. Sci. Technol. 53, 14233–14242 (2019).
Deng, H., Fitts, J. P., Tappero, R. V., Kim, J. J. & Peters, C. A. Acid erosion of carbonate fractures and accessibility of arsenic-bearing minerals: In operando synchrotron-based microfluidic experiment. Environ. Sci. Technol. 54, 12502–12510 (2020).
Radajewski, D. et al. An innovative data processing method for studying nanoparticle formation in droplet microfluidics using x-rays scattering. Lab on a Chip 21, 4498–4506 (2021).
Poonoosamy, J. et al. Microfluidic investigation of pore-size dependency of barite nucleation. Commun. Chem. 6, 250 (2023).
Poonoosamy, J. et al. Microfluidic flow-through reactor and 3D raman imaging for in situ assessment of mineral reactivity in porous and fractured porous media. Lab Chip 20, 2562–2571 (2020).
Hou, Y., Chen, S., Zheng, Y., Zheng, X. & Lin, J.-M. Droplet-based digital pcr (ddpcr) and its applications. TrAC Trends in Anal. Chem. 158, 116897 (2023).
Chagot, L. et al. Surfactant-laden droplet size prediction in a flow-focusing microchannel: A data-driven approach. Lab Chip 22, 3848–3859 (2022).
Yiannacou, K., Sharma, V. & Sariola, V. Programmable droplet microfluidics based on machine learning and acoustic manipulation. Langmuir 38, 11557–11564 (2022).
Solanki, S. et al. Machine learning for predicting microfluidic droplet generation properties. Comput. Fluids 247, 105651 (2022).
Lashkaripour, A. et al. Machine learning enables design automation of microfluidic flow-focusing droplet generation. Nat. Commun. 12, 25 (2021).
Riti, J. et al. Combining deep learning and droplet microfluidics for rapid and label-free antimicrobial susceptibility testing of colistin. Biosensors and Bioelectron. 257, 116301 (2024).
Gardner, K. et al. Deep learning detector for high precision monitoring of cell encapsulation statistics in microfluidic droplets. Lab Chip 22, 4067–4080 (2022).
Dos Santos, E. C., Ładosz, A., Maggioni, G. M., von Rohr, P. R. & Mazzotti, M. Characterization of shapes and volumes of droplets generated in pdms t-junctions to study nucleation. Chem. Eng. Res. Design 138, 444–457 (2018).
Wehrmeister, U., Jacob, D., Soldati, A., Hager, T. & Hofmeister, W. Vaterite in freshwater cultured pearls from china and japan. J. Gemmol. 30, 399 (2007).
Darkins, R. et al. Calcite kinetics for spiral growth and two-dimensional nucleation. Crystal Growth & Design 22, 4431–4436 (2022).
Wang, Y.-W., Kim, Y.-Y., Stephens, C., Meldrum, F. & Christenson, H. In situ study of the precipitation and crystallization of amorphous calcium carbonate (ACC). Crystal Growth & Design 12, 1212–1217 (2012).
Ronneberger, O., Fischer, P. & Brox, T. U-net: Convolutional networks for biomedical image segmentation. In Medical image computing and computer-assisted intervention–MICCAI 2015: 18th international conference, Munich, Germany, October 5-9, 2015, proceedings, Part III 18, 234–241 (Springer, 2015).
Saini, M. & Susan, S. Tackling class imbalance in computer vision: A contemporary review. Art. Intell. Rev. 56, 1279–1335 (2023).
Zhong, Z. et al. Understanding imbalanced semantic segmentation through neural collapse. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 19550–19560 (2023).
Santoso, R., He, X. & Hoteit, H. Application of machine-learning to construct simulation models from high-resolution fractured formation. In Abu Dhabi International Petroleum Exhibition and Conference, D021S060R004 (SPE, 2019).
Bradski, G. & Kaehler, A. Learning OpenCV: Computer vision with the OpenCV library (“O’Reilly Media, Inc.”, 2008).
Pedregosa, F. et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011).
van der Walt, S. et al. scikit-image: Image processing in Python. PeerJ 2, e453 (2014).
Harris, C. R. et al. Array programming with NumPy. Nature 585, 357–362 (2020).
Whittaker, M. L., Dove, P. M. & Joester, D. Nucleation on surfaces and in confinement. MRS Bull. 41, 388–392 (2016).
Chen, L.-C., Zhu, Y., Papandreou, G., Schroff, F. & Adam, H. Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European conference on computer vision (ECCV), 801–818 (2018).
Jülich Supercomputing Centre. JURECA: Data Centric and Booster Modules implementing the Modular Supercomputing Architecture at Jülich Supercomputing Centre. JLSRF 7, 1–9 (2021).
Acknowledgements
The main research leading to these results has received funding from the European Research Council through the project GENIES (ERC, grant agreement 101040341). The authors also acknowledge funding from the Helmholtz AI project through the T6 project (ZT-1-PF-5-084). The authors gratefully acknowledge computing time on the supercomputer JURECA58 at Forschungszentrum Jülich under grant no. paj2406, tripm, and jiek63. We would also like to thank Abdulmonem Obaied for the fruitful discussions.
Funding
Open Access funding enabled and organized by Projekt DEAL.
Author information
Authors and Affiliations
Contributions
RS contributes in conceptualization, methodology, software, formal analysis, validation, visualization, and writing. LG contributes in methodology and data curation. GD contributes in supervision, computational resources, and writing. JP contributes in conceptualization, data curation, experiments, funding, supervision, and writing.
Corresponding author
Ethics declarations
Conflicts of interest
There are no conflicts to declare.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Santoso, R., Guignon, L., Deissmann, G. et al. Investigating the metastability of amorphous calcium carbonate by droplet microfluidics experiments using machine learning. Sci Rep 15, 20178 (2025). https://doi.org/10.1038/s41598-025-05984-0
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-025-05984-0