Open Access Article
Adedire D. Adesiji
a,
Dylan J. Balter
a,
Zhaoji Yang
b,
Kelsey L. Snapp
d,
Joseph M. Palomba
d and
Keith A. Brown
*abc
aDepartment of Mechanical Engineering, Boston University, Boston, MA, USA. E-mail: brownka@bu.edu
bDivision of Materials Science & Engineering, Boston University, Boston, MA, USA
cPhysics Department, Boston University, Boston, MA, USA
dSoldier Protection Directorate, U.S. Army Combat Capabilities Development Command Soldier Center, Natick, MA, USA
First published on 3rd June 2026
Identifying processing conditions that yield optimal performance in polymer thin films remains challenging. Here we demonstrate a modular self-driving lab (SDL) for optimizing deposition conditions that produce strongly iridescent thin films. The platform combines a six-axis arm to move samples; a spray-coating station based on a re-engineered airbrush with independently actuated needle displacement, air-valve opening, and spray duration; an elliptical imaging station (EIS) that captures four viewing angles in a single image without moving components; and an indexer that sequentially positions wafers for automated transfer. To test this system, we maximized the iridescence of hydroxypropyl cellulose (HPC) thin films using Bayesian optimization. Within an experimental budget of 20 iterations, the SDL identified spray-coating parameters yielding the theoretical maximum iridescence of HPC on Si. Further analysis revealed that films thinner than ∼290 nm exhibit optical behavior consistent with thin-film interference, whereas thicker films deviate from this trend at a thickness corresponding to the minimum cholesteric pitch of HPC, implicating additional contributions from cholesteric ordering. The functionality of the optimized films as signage and optically responsive humidity sensors was verified. This work establishes a modular framework for systematically mapping processing-structure–property relationships in thin-film deposition and autonomous exploration of polymer processing.
Self-driving labs (SDLs) address this challenge by combining automation and machine learning in a closed-loop framework that autonomously selects, executes, and analyzes experiments. Over the past decade, SDLs have emerged as a tool for accelerating materials research.7–14 Several studies have demonstrated the effectiveness of SDLs, such as optimizing the stability of thin-film photovoltaics,15,16 nanoparticle synthesis,17,18 and catalytic activity of chemical compositions,19,20 achieving faster convergence toward desired material performance than conventional experimental methods. However, despite the ability of SDLs to significantly accelerate materials discovery, their widespread adoption remains limited.8,14,21 Many SDL platforms are built around rigid, workflow-specific architectures that rely on specialized robotic hardware and high-cost analytical instruments, limiting their adaptability to new experimental tasks.22,23 For broader application of SDLs, there is a growing need for modular low-cost platforms that retain the accuracy and precision of more specialized equipment.
Most existing SDLs have focused on optimizing material synthesis and composition,15,18,20,24–30 yet their application to polymer processing remains limited, even though processing conditions strongly influence structure and properties across multiple length scales. Rupnow et al. developed an SDL that optimized the spray-combustion synthesis of conductive palladium films, showing that closed-loop experimentation can effectively control complex deposition processes.31 However, SDLs have not yet been explored for polymer spray coating, where films form through physical deposition and solvent evaporation rather than reactive processes, directly linking deposition parameters to functional behavior.
In this work, we demonstrate a modular SDL for identifying spray conditions that produce strongly iridescent thin films. Iridescent thin films are technologically relevant due to their angle-dependent and tunable color response enabling applications in sensing,32,33 photonic coatings,34,35 and anti-counterfeiting.36,37 The SDL platform includes a spray-coating station based on a re-engineered artisan airbrush equipped with actuators to precisely control needle position, air valve opening, and spray duration. Optical characterization is performed using the elliptical imaging station (EIS), which captures images from multiple angles simultaneously without motorized components. A 3D-printer-based indexer stores wafers and advances them sequentially to a fixed retrieval location for automated transfer. As a model system, we investigate hydroxypropyl cellulose (HPC), a biocompatible polymer whose iridescence arises from thin-film interference and cholesteric ordering, making it highly sensitive to processing conditions.38,39 Within an active learning framework, the SDL tuned spray-coating parameters and identified conditions that reached the theoretical maximum iridescence strength in this three-dimensional parameter space with an experimental budget of 20 iterations. The optimal parameters were used to produce films that functioned as optically responsive humidity sensors and photonic signage. Collectively, this work extends the role of SDLs into polymer processing and demonstrates how modular, low-cost architectures can enable data-driven exploration of processing-structure–property relationships.
To enable rapid optical characterization of iridescent polymer films, the EIS was designed and constructed to capture multiple angles of a surface in a single photograph (Fig. 2). In addition to eliminating the need for moving parts, this design allows consistent lighting and imaging conditions to be applied to each angle for robust analysis. The design is based on the geometric property of an ellipse in which the sum of distances from any point M on the ellipse to its two foci F1 and F2 is constant, with each point M corresponding to a planar mirror positioned tangent to the ellipse, as expressed by
| |MF1| + |MF2| = 2a | (1) |
Ray-tracing analysis was performed to determine the optimal mirror placement and ensure non-overlapping reflection paths (Fig. 2B). The constructed EIS used a semi-major axis a = 279 mm and a semi-minor axis b = 273 mm; values selected to provide a compact geometry while enabling a good range of accessible θ including 20°, 40°, 60°, and 80°. Mirror coordinates (xm, ym) were defined using the ellipse equation
![]() | (2) |
Each mirror was oriented such that a light ray reflected from the sample at F1 would converge to the camera positioned at F2. The tangent to the ellipse at each mirror coordinate defines the mirror normal such that the incident and reflected rays satisfy the law of reflection, where the angle of incidence equals the angle of reflection relative to the normal of the mirror. Planar mirrors 50 × 50 mm2 in size were mounted at these positions. Four mirrors were mounted to direct the incident light, and four additional mirrors were mounted to direct the light reflected off the sample to the camera. A Logitech Litra Glow was used to create a uniform diffuse light source at F1. Images were collected using a Mokose UC40M equipped with a 3.2 mm focal-length lens providing an 85° field of view. All mounting components, including supports for the camera, sample holder, light source, and the elliptical frame, were designed to interlock as a single assembly to maintain alignment (Fig. 2C). The elliptical arch was machined from black high-density polyethylene (HDPE) and the rest of the components were additively manufactured using fused filament fabrication out of polylactic acid (PLA). The entire assembly was enclosed within a black box fitted with a sliding door to block external light and undesired internal reflections.
To interpret changes in reflected color with viewing angle, we developed a theoretical thin-film interference model using the transfer-matrix method, incorporating the wavelength-dependent refractive indices and thicknesses of the constituent layers.40 The computed reflectance spectra are then converted to perceptual color coordinates using the CIE 1931 standard observer under the D65 illuminant spectrum.41 The CIE XYZ tristimulus values were then transformed to the sRGB color space for visualization. This model allows us to simulate any film, as shown in Fig. 2D for Si/SiO2.42
As an evaluation of the EIS, we captured the iridescence of a 300 nm thick SiO2 film on a Si wafer (Fig. 2E). The EIS image revealed distinct regions corresponding to different θ. Color data were extracted across each region, and mean chromaticity coordinates were calculated along with their standard deviations. The resulting chromaticity points, plotted with error bars on the CIE 1931 diagram, closely matched the values predicted by the model. This measurement validates the EIS as a platform to simultaneously capture light from four angles and also verifies the optical model developed to interpret EIS data.
To achieve reproducible and precisely tunable polymer film deposition, a spray-coating station was developed (Fig. 3). We modified an artisan airbrush, originally designed to be operated manually, that employs a mechanically coupled trigger mechanism in which needle displacement regulates liquid flow while simultaneously releasing pressurized air for atomization. Using motorized linear actuators, the needle displacement and the nozzle air release were separated and automated, with optical end stops integrated to provide consistent positional referencing for precise motion control. To control the degree of atomization, a motorized ball valve was incorporated, with the compressed air supply upstream of the valve set to a maximum pressure of 30 psi using a regulator. Altogether, this configuration enables independent control of flow rate through needle displacement, spray duration through nozzle actuation, and air pressure via the ball valve (Fig. 3A). The operation of the system is coordinated through an Arduino microcontroller. The airbrush is mounted at a 45° angle relative to the horizontal in a rigid extruded aluminum frame. This orientation aligns the fluid reservoir vertically to retain the maximum solution and prevent leakage through the nozzle. The sample substrate is positioned perpendicular to and 12 cm from the nozzle for uniform deposition.
Prior to using the spray-coating system for polymer deposition, it is necessary to quantify the role of the control parameters. Three controllable parameters define the spray-coating behavior: the ball valve position xb, the needle position xn, and the spray duration (Fig. 3B). While spray duration directly determines the amount of deposited material, the combined effects of xb and xn govern the spray cone geometry. To visualize these effects, FD & C blue 1 food dye was sprayed onto white paper for 3 s at various combinations of xb and xn, and the resulting diameter d of the spray pattern was measured for each sample. The results show that d increased with both increasing xb and xn. The most notable changes occurred at small xb, where small adjustments led to measurable differences in d, indicating high control sensitivity in that regime. At higher xb, the relationship becomes more gradual, providing more stable control over d. The resulting contour map of d(xb, xn) shows that the spray geometry can be tuned continuously across this space (Fig. 3B).
To further quantitatively characterize and validate the spray system, the volumetric flow rate Q was measured as a function of both xb and xn using deionized water (Fig. 3C). For each trial, the mass of dispensed water collected over a 5 s spray duration was measured with a scale and converted to a volumetric flow rate. Across the range of xb, Q varied only slightly at fixed xn values of 0.2, 0.5, 0.7, and 1. Consequently, moderate changes in air pressure result in relatively small changes in flow rate due to the small aperture of the needle acting as the dominant resistance to flow. This indicates that the ball valve primarily influences droplet atomization rather than total volumetric flow. In contrast, when the valve was at fully open position, xb = 1, the dependence of Q on xn was measured in triplicate and followed a smooth monotonic relationship. Collectively, these results establish the spray-coating station as a robust platform that enables precise control over material deposition.
Following the validation of the spray-coating station and EIS, they were integrated with a sample indexer and robotic arm for sample transfer to enable an SDL workflow for optimizing film iridescence (Fig. 4A). The SDL operates as a fully coordinated system in which all modules are controlled by a central computer. The sample indexer is based on a 3D printer that was converted to enable sample transfer and storage, and it includes a 3D-printed cassette designed to hold twenty 50 mm diameter silicon wafers. The cassette is mounted on a repurposed MakerGear M3 printer with its motion bed programmed for automated wafer indexing. Following spray deposition and optical characterization, the robot returns the coated wafer to the storage section of the cassette, after which the bed advances the next wafer into the pickup position to begin the next cycle. This design eliminates the need for the robot to navigate multiple waypoints to find each sample, greatly simplifying motion planning and reducing positional errors compared to fixed cassettes. The modular, repurposed, and low-cost design demonstrates that SDL architectures can be adapted to other experimental workflows without specialized or expensive instrumentation.
In order to optimize the iridescence of polymer thin films, the SDL was operated in a closed-loop active-learning workflow (Fig. 4B). The system was tasked with maximizing the iridescence strength of hydroxypropyl cellulose (HPC) films deposited from a 1 wt% HPC solution in ethanol. HPC is a biopolymer whose reflected color arises from both thin-film interference and cholesteric ordering of its polymer chains.38,39 As a result, it is highly sensitive to processing conditions, making the optimization landscape complex and nonlinear. The SDL experiments were performed under ambient laboratory conditions at approximately 45–50% relative humidity. To enable quantitative feedback, the iridescence strength of each film was evaluated from its CIE 1931 chromaticity coordinates (x, y) extracted from EIS images captured at four grazing angles (θ = 20°, 40°, 60°, and 80°). The chromaticity coordinates (x, y) describe color independent of luminance and were therefore used to quantify angular shifts in perceived hue. The Euclidean color distance between adjacent viewing angles was calculated as
![]() | (3) |
| ΔH = d20−40 + d40−60 + d60−80 | (4) |
A higher ΔH value corresponds to a stronger color variation with viewing angles.
The optimization process was carried out over a limited experimental budget of 20 iterations to explore the design space defined by needle position, ball-valve opening, and spray duration. The first six experiments were selected using Latin hypercube sampling (LHS) to warm start the Bayesian optimization process by training the hyperparameters. After each spray-coating cycle, the resulting film was characterized using the EIS, and the resulting ΔH was fed into a Bayesian optimization algorithm based on a Gaussian process regression model. Bayesian optimization was performed using the built-in functions in MATLAB (The MathWorks Inc.) with a Matern 5/2 kernel without automatic relevance determination. Input variables were min–max normalized to the range [0, 1] prior to Gaussian process training and acquisition function evaluation. The model predicted the most promising experimental conditions by balancing exploration of uncertain regions and exploitation of high-performing areas using expected improvement as the acquisition function. Through this iterative, data-driven process, the SDL progressively learned the relationship between spray-coating parameters and the optical response of HPC, converging toward deposition conditions that produced strongly iridescent film (Fig. S2–S4). The implementation of the closed-loop workflow, including experiment orchestration and Bayesian optimization scripts, is provided in the code repository. The maximum ΔH achieved was 0.404 ± 0.012 (standard error of the mean from 9 sampling points); which was within error of the 0.397 theoretical limit predicted by the thin-film interference model for HPC films on Si, validating the effectiveness of this SDL in identifying optimal processing conditions.
To understand how the processing outcomes relate to optical response, we examined the dependence of ΔH on the thickness of the films produced from the optimization campaign (Fig. 5A). Thickness t was determined from the central 3 × 3 grid region of each wafer, corresponding to the same area analyzed for chromaticity in the EIS images. These values were extracted from thickness maps acquired using a Filmetrics F20 thin-film analyzer over a 7 × 7 grid centered on the wafer with 0.5 mm spacing between measurement points (Fig. S5). As shown in Fig. 5A, ΔH followed the trend predicted by the thin-film interference model up to ∼290 nm, beyond which the experimental data deviates from the model prediction. This transition coincides with literature reporting the minimum cholesteric pitch of HPC to be ∼280 nm,43,44 which sets the minimum thickness required for the emergence of cholesteric ordering in HPC films. Beyond the minimum cholesteric pitch, iridescence is representative of the combined effects of thin-film interference and cholesteric structural coloration within the regime explored in this study. This deviation from the simple thin film interference model is further evidence of the importance of processing on the properties of polymer thin films.
Following the optimization of spray-coating, we sought to explore functional uses of the resulting HPC films. HPC exhibits vivid structural color determined by the film's optical path length, and since it is hygroscopic, changes in ambient humidity cause the film to absorb moisture and swell, altering its thickness and effective refractive index. This variation shifts the interference condition of the reflected light, producing a visible and reversible change in color. To explore this response, an optimized HPC film was first observed under ambient laboratory conditions at 48% relative humidity and then placed inside a sealed Petri dish saturated with water vapor at 100% relative humidity. The film exhibited a pronounced color shift upon hydration and returned to its original appearance re-equilibrated to room humidity (Fig. 5B, top). To illustrate the potential for signage applications, films were deposited on silicon wafers under the optimized spray-coating conditions and patterned using a stencil. The resulting lettering “KABLAB” demonstrated strong color contrast under ambient illumination (Fig. 5B, bottom). In the top and bottom images, θ ∼ 90°.
This SDL establishes a minimal approach for extending autonomous experimentation into polymer processing, an area traditionally guided by trial-and-error approaches and human intuition. This proof of concept shows that it is possible to construct a fully automated system to optimize spray-coating of polymers for functional properties. This validation justifies the use of this and related systems for the exploration of much larger parameter spaces that would require hundreds or thousands of experiments. Indeed, the added value of such an SDL is drastically amplified when considering larger parameter spaces as manual experimentation becomes fully impractical. Future work can include incorporating in situ thickness and spectral monitoring, multi-material deposition, and complex active learning strategies to explore more convoluted structure-processing-property relationships, advancing the broader goal of intelligent, data-driven materials development.
| This journal is © The Royal Society of Chemistry 2026 |