arXiv:2610.39195cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39195

Analyzing Condensation on Patterned Surfaces via Deep Learning

Tae E. Cooper, Michael Gee, Sheila Whitman, Jemma Dengel, Anthony Katselas, Duygu Dengiz, Frank Keutsch, Joanna Aizenberg

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Dropwise condensation is key to power and water systems. State-of-the-art condensation surfaces are often inhomogeneous, either patterned by design or random defects. Inhomogeneous surface features dictate the rates of each stage of dropwise condensation–nucleation, growth, coalescence, and shedding. Characterizing these rates requires the precise detection of thousands of droplets. Yet, existing segmentation methods are unable to detect droplets on inhomogeneous surfaces. We developed TileSAM3, a universal droplet segmentation tool built on the Segment Anything Model 3 (SAM3). Hierarchical tiling with per-tile inference followed by post-processing extended SAM3's detection cap and raised the effective resolution of small droplets. We created two datasets: High Quality Droplet Dataset (N=365,826; HQDD) with homogeneous surfaces and Low Quality Droplet Dataset (N=63,577; LQDD) with patterned, defect-laden surfaces under adverse lighting. TileSAM3 closely reproduced thresholding annotations on HQDD, surpassed it over sixfold on LQDD (Average Precision 0.57 versus 0.088), and outperformed other deep learning models on all metrics evaluated. Combined with KD-tree tracking, TileSAM3 identified localized nucleation and coalescence in narrow active bands on a stiffness-patterned surface. TileSAM3 enables analysis of understudied inhomogeneous substrates with poor lighting and videography which facilitates faster, lower cost research of condensation materials.

1 Introduction

Dropwise condensation is a phase-change process in which vapor condenses into discrete droplets on a surface, rather than a continuous film [1]^{[1]}. This mode of condensation can substantially enhance heat transfer efficiency relative to filmwise condensation, and has drawn particular interest for applications in thermal power generation, chemical refining, water harvesting, desalination, refrigeration, and electronics cooling [2−4]^{[2-4]}. The efficiency of these processes is typically quantified through device-level metrics such as heat flux or collection rate [5]^{[5]}. These metrics, however, aggregate over the underlying kinetics of nucleation, growth, coalescence, and shedding, any of which can be rate-limiting. Clas-sical models make heat flux an explicit function of the drop size distribution[6,7]. Resolving the individual rates therefore requires precise droplet characterization, conventionally obtained by imaging the condensing surface and extracting droplet size distributions, with droplets identified through binary thresholding[8-11] or, more recently, learned detectors[12-16]. To date, demonstrations of these methods have been largely confined to liquid-infused surfaces[17], polymer brush coatings[18], and other substrates that are homogeneous at the length scale of the target droplet.

While homogeneous surfaces have been well characterized and studied, state-of-the-art condensation surfaces are patterned, whether through geometric texture[19] or chemical applications[20]. Such patterns can be tuned to alter the rate of one or more condensation component: designed asymmetric bumps, for example, direct droplet growth and shedding to speed transport and refresh the surface[21]. Industrially relevant substrates, by contrast, are shaped by defects rather than design. These arise during fabrication, when randomly distributed coating defects seed nucleation[22], and accumulate over time as micro- and nano-structures wear and degrade[23]. A representative case is the shrinkage cracks that form in inverse opal coatings during drying, which favor rapid condensate transport and surface renewal[24]. Resolving how these features govern droplet behavior requires quantifying spatial patterns in droplet size and distribution across a surface, yet to our knowledge no current image-based method can do this on patterned or defect-laden surfaces.

Analyzing droplet populations on such inhomogeneous surfaces is inherently difficult, as surface features appear in the image alongside the droplets. Patterns and defects cause variations in contrast and blur droplet boundaries, which makes it difficult for brightness-dependent threshold-based techniques[8-11] to reliably segment droplets from these surfaces. Specialized imaging with toroidal lighting and binary thresholding has enabled simultaneous measurement of heat flux and droplet population[8,9]. Pillared surfaces have been addressed through a segmentation algorithm tailored to that specific pattern[10]. Morphological operations have been applied to compensate for low image quality, yet this approach still produced droplet-count errors as high as 29%[11]. Motivated by the limitations of thresholding, recent research has

explored the use of deep learning-based methods for droplet segmentation[12-16]. Semi-supervised frameworks have been used to train convolutional neural networks to comprehensively evaluate droplet behavior during jumping-droplet condensation and frosting[12]. A super-resolution semantic segmentation model has been used to recover droplet masks from blurred, low-quality images, though for spray deposition rather than condensation[13]. A custom-trained Mask R-CNN has been combined with a tracking algorithm to spatially resolve droplet statistics and heat transfer on homogeneous surfaces[14]. The Segment Anything Model enabled zero-shot droplet segmentation by tuning only inference parameters[15]. Deep learning has also been used to detect droplets on specific patterned surfaces, such as a superhydrophobic lattice structure[16]. To our knowledge, however, these methods have been developed for surfaces that are homogeneous or that carry a single texture, and no droplet segmentation tool has been demonstrated across arbitrary patterning, random defects, and adverse lighting.

We present TileSAM3, a universal tool for segmenting droplets across a wide range of substrate patterning, defects, and lighting conditions. The core architecture of our model is the Segment Anything Model 3 (SAM3), a vision-transformer based foundation model for instance segmentation developed by Meta AI[25]. SAM3 is promptable with concepts (natural language or image exemplars) and was pre-trained on a large dataset of over 5 million images. Although SAM3 demonstrates strong zero-shot performance on general tasks, droplets are underrepresented in SAM3's training set, so general-purpose recognition is unlikely to transfer directly to them. Further, adopting SAM3 for droplet segmentation is constrained by two properties of its architecture: a detection cap per inference from its detector decoder, and downsampling in its image encoder that diminishes detection of small droplets.

To support the development of TileSAM3, two annotated datasets were created: (1) High Quality Droplet Dataset (HQDD), which enabled a comparison of models to binary thresholding on homogeneous surfaces, and (2) Low Quality Droplet Dataset (LQDD), which enabled an evaluation of segmentation performance on inhomogeneous surfaces. To overcome SAM3's detection limit and improve small droplet detection, our Tile-

Figure

Fig. 1 TileSAM3 Pipeline. a) Images were split into N hierarchical layers of tiling. b) SAM3 inference was run once per tile (prompt = "droplet"). Droplets that were missed in one tile may have been detected in another tile over the same region in a different layer. c) Post-processing repaired masks by removing disconnected components and filling holes in masks. d) Duplicate masks between tiles and small masks fully contained within larger masks (shown in red) were removed. e) All masks were combined, which yielded a high-quality detection of droplets in the image.

SAM3 pipeline repeats inference on hierarchical layers of crop tiling followed by two steps of post-processing: (1) automated mask repair through hole filling and removing disconnected components and (2) non-maximum suppression to filter repetitive masks between layers. TileSAM3 outperformed all other deep learning models benchmarked on LQDD across standard instance segmentation met-

rics. It also generalized to HQDD after training on LQDD. Unlike binary thresholding, TileSAM3 enables the analysis of droplet dynamics on patterned surfaces. A KD-tree tracking algorithm was used to track TileSAM3 predictions between frames of droplet formation on a surface with patterned stiffness gradients. These capabilities establish TileSAM3 as a single tool that accurately segments droplets regardless of surface quality or imaging conditions, enabling spatially resolved measurements of dropwise condensation on the inhomogeneous surfaces that have been inaccessible to existing methods.

References (28)