선정목록으로
Data-driven microstructural optimization of Ag-Bi-I perovskite-inspired materials
간접 관련 필름·전자재료 · (15) 디스플레이 패널재료 (11) 배리어 필름(16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.1038/s41524-025-01701-7
- 저널
- npj Computational Materials
- 발행년도
- 2025
- 발행기관
- Nature Portfolio
- 피인용수
- 1
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41524-025-01701-7
- 토픽
- Quantum Dots Synthesis And Properties
- OpenAlex ID
- W4411975150
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 필름·전자재료 · (15) 디스플레이 패널재료
- 부 분야
- (11) 배리어 필름, (16) CPI(투명 폴리이미드)
- R&D 측면
- 공정·제조
- 확신도
- 0.80
- 근거 용어
- thin-film semiconductors, microstructural optimization, AI-driven materials optimization, synthesis conditions, SEM image analysis
- 판단 근거
- 본 논문은 AI(강화학습 및 컴퓨터 비전)를 활용하여 박막 반도체(Perovskite-inspired materials)의 미세구조를 최적화하고 합성 조건을 제어하는 프레임워크를 다룹니다. 이는 코오롱인더스트리의 디스플레이용 박막 소재(15) 및 기능성 필름(11, 16) 개발 시 공정 최적화 및 품질 분석 기법으로 응용 가능합니다.
- R&D 활용 포인트
- AI 기반의 자율 주행 실험실(Self-driving lab) 개념을 코오롱의 고분자 필름 및 디스플레이 소재 합성 공정에 도입하여, 미세구조(결함, 결정립 크기)를 제어하고 신소재 개발 기간을 단축하는 데 활용할 수 있습니다.
- 평가 입력
- 본문 67,641자 중 30,032자 발췌
초록
Abstract Microstructural design is crucial yet challenging for thin-film semiconductors, creating barriers for new materials to achieve practical applications in photovoltaics and optoelectronics. We present the Daisy Visual Intelligence Framework (Daisy), which combines multiple AI models to learn from historical microscopic images and propose new synthesis conditions towards desirable microstructures. Daisy consists of an image interpreter to extract grain and defect statistics, and a reinforcement-learning-driven synthesis planner to optimize thin-film morphology. Using Ag-Bi-I perovskite-inspired materials as a case study, Daisy achieved over 120× and 87× acceleration in image analysis and synthesis planning, respectively, compared to manual methods. Processing parameters for AgBiI 4 were optimized from over 1700 possible synthesis conditions within 3.5 min, yielding experimentally validated films with no visible pinholes and average grain sizes 14.5% larger than the historical mean. Our work advances computational frameworks for self-driving labs and shedding light on AI-accelerated microstructure development for emerging thin-film materials.
본문 67,641자
본문 펼치기
Published in partnership with the Shanghai Institute of Ceramics of the Chinese Academy of Sciences
https://doi.org/10.1038/s41524-025-01701-7
# Data-driven microstructural optimization of Ag-Bi-I perovskite-inspired materials
[Check for updates](http://crossmark.crossref.org/dialog/?doi=10.1038/s41524-025-01701-7&domain=pdf)
Kshithij Mysore Nandishwara <sup>1</sup>, Shuan Cheng <sup>1</sup>, Pengjun Liu <sup>2</sup>, Huimin Zhu <sup>2,3</sup>, Xiaoyu Guo <sup>2</sup>,
Fabien C.-P. Massabuau <sup>3</sup>, Robert L. Z. Hoye <sup>2</sup> & Shijing Sun <sup>1</sup>
Microstructural design is crucial yet challenging for thin-film semiconductors, creating barriers for new
materials to achieve practical applications in photovoltaics and optoelectronics. We present the Daisy
Visual Intelligence Framework (Daisy), which combines multiple AI models to learn from historical
microscopic images and propose new synthesis conditions towards desirable microstructures. Daisy
consists of an image interpreter to extract grain and defect statistics, and a reinforcement-learningdriven synthesis planner to optimize thin-film morphology. Using Ag-Bi-I perovskite-inspired materials
as a case study, Daisy achieved over 120× and 87× acceleration in image analysis and synthesis
planning, respectively, compared to manual methods. Processing parameters for AgBiI4 were
optimized from over 1700 possible synthesis conditions within 3.5 min, yielding experimentally
validated films with no visible pinholes and average grain sizes 14.5% larger than the historical mean.
Our work advances computational frameworks for self-driving labs and shedding light on AIaccelerated microstructure development for emerging thin-film materials.
Thin-film semiconductors are key enablers of next-generation photovoltaics, optoelectronics, microelectronics, and quantum information
technologies <sup>1–5</sup> . Over the past decade, lead-halide perovskite semiconductors have attracted significant attention for their high solar-toelectricity power conversion efficiencies, lightweight properties, and compatibilitywithlow-temperature,cost-effectivefabricationprocesses <sup>6–9</sup> .More
recently, driven by increasing sustainability needs, significant efforts have
been focused on developing new materials to address degradation challengesbyreplacingvolatile organicspeciesinalkylammoniummetalhalides
with inorganic counterparts, such as Cs, Rb and Ag <sup>10</sup>, as well as mitigating
toxicity by substituting Pb with Sn, Bi, Sb, or Cu <sup>11</sup> . However, achieving highquality thin films using lead-free perovskite-inspired materials remains
challenging, creating a significant gap between materials discovery and
realization of their device performance potential. A critical missing link here
is microstructural design, where morphological features such as grain size
and defectcoverage of thin-filmsemiconductorsdictate theiroptoelectronic
properties, ranging from charge-carrier mobility, recombination rates, to
overall device efficiency <sup>12</sup> . As an example, we can consider Ag-Bi-I compounds (e.g., AgBiI4, Ag2BiI5 or Ag3BiI6), which have gained interest for
indoor photovoltaics applications because of their high optical limits in
efficiencies exceeding 50% white light emitting diode illumination <sup>13–16</sup> . As
with other thin film materials, improved charge-carrier transport, and
improved photovoltaic performance are achieved with larger grains,
continuous filmmorphology,andlowerdefectdensities <sup>17,18</sup> .However,thisis
challenging to achieve, and the performance of Ag-Bi-I-based devices have
fallen well below their theoretical limits <sup>14</sup> . A new approach to accelerate the
development of defect-free, uniform, and large-grained thin films is therefore crucial for shortening the lab-to-market timeline transitioning new
semiconducting materials to practical applications <sup>19</sup> .
Microstructural design is inherently complex and labor intensive,
requiring advanced characterization to reveal film morphology and deep
understanding of the process-microstructure relationships across large
synthetic spaces. For emerging lead-free perovskite-inspired materials,
state-of-the-art solution-processed thin film optimization workflows typically involves applying precursor/substrate preheating (i.e., hot casting),
spin coating speed profile tuning, or antisolvent addition during synthesis,
followed by examining the film morphology, for example with scanning
electron microscopy (SEM) <sup>20</sup> . Taking characterization feedback to develop
optimization strategies for subsequent synthesis remains a significant ratelimiting step, hindering the development of emerging lead-free perovskiteinspired materials, and the exploration of new compositions. Traditionally,
extracting scientific insights from microscopy images is performed by
materials scientists, relying on expert judgment, sample-by-sample, to
identify defective features and grain statistics. However, manual interpretationisinherentlyslow,non-scalable,andpronetohumanbias.Todate,
some progress has been made through computer vision using machine
1Department of Mechanical Engineering, University of Washington, Seattle, WA, USA. 2Inorganic Chemistry Laboratory, Department of Chemistry, University of
Oxford, South Parks Road, Oxford, UK. <sup>3</sup> Department of Physics, SUPA, University of Strathclyde, Glasgow, UK. [e-mail: robert.hoye@chem.ox.ac.uk;](mailto:robert.hoye@chem.ox.ac.uk)
[shijing@uw.edu](mailto:shijing@uw.edu)
learning(ML) modelstoautomateimageanalysis <sup>21</sup> .Forinstance,Chenetal.
implemented a logistic regression-based classifier for edge detection in SEM
images of perovskite films, outperforming traditional non-ML methods like
Canny Edge Detections <sup>22</sup> . Zhang et al. developed a U-Net-based convolutional neural network (CNN) to quantify individual grain surface areas in
perovskite films, using a Voronoi-inspired post-processing method to
improve accuracy and uncover statistically reliable grain descriptors linked
to device performance <sup>23</sup> . Beyond perovskite semiconductors, Barakati et al.
introduced a physics-based reward-driven image analysis framework,
leveraging Bayesian optimization and reward functions to optimize
microscopy workflows dynamically <sup>24</sup> . This approach enables real-time
optimization of complex analysis tasks, offering improved precision and
efficiency compared to deep CNNs, particularly in noisy imaging conditions. Existing data-driven image analysis primarily focuses on postsynthesis analysis based on pre-labeled image databases, nevertheless, there
is a lack of mechanisms to translate characterization results into actionable
guidance for adjusting synthesis parameters in response to observed
microstructures. Several studies to date have reported predictive modeling
that takes synthetic parameters as input to generate the expected microstructural outcome <sup>25–27</sup> . However, a significant gap exists in the intelligent
generation of synthetic plans based on automated learning from visual
information at a microscale, which is a an essential capability for realizing
the full potential of self-driving laboratories and achieving full automation.
In this work, we present a new visual intelligence framework, namely
the Daisy Framework (Daisy), which integrates advanced computer vision
techniques with an optimization agent to build the feedback loop between
characterizationandnextroundsynthesis,effectivelymovingtowardsaselfdriving lab paradigm for accelerated thin-film microstructure optimization.
The Daisy framework was trained on the existing experimental data collected entirely by the authors over several months, which includes synthesis
and SEM characterization of AgBiI4, Ag2BiI5, and Ag3BiI6, demonstrating
direct learning of an AI agent from historical laboratory data (see Fig. S1 for
workflow overview). The framework is designed to contain two sub-systems: a goal-oriented image interpreter and a one-shot synthesis planner.
Being trained on 161 SEM images of Ag-Bi-I thin films synthesized inhouse, the Daisy image interpreter consists of three interconnected AI
models that perform segmentation, classification and clustering tasks,
respectively, allowing automated quantification of grain characteristics and
defect coverage without manual labeling and a 97% accuracy was achieved.
The Daisy synthesis planner consists of an offline reinforcement learning
(RL) agent that takes the results from the image interpreter and searches for
optimal processing parameters towards defect-free, large grain thin films.
Our case study applying the Daisy synthesis planner to AgBiI4 was
experimentally validated, where the AI agent identified an unexplored
region in the processing parameter spaceshowing desirable microstructural
features. This discovery led to an AgBiI4 film with a 0% visible defect percentage and a 14.5% increase in grain size compared to the mean grain size
of all defect-free samples within the historical dataset. Our approach is
broadly applicable beyond Ag-Bi-I semiconductors, offering a key
advancement in AI-driven materials optimization. By leveraging visual data
forautonomousdecision-making,itrepresentsatransformativesteptoward
fully automated microstructural design for early-stage thin-film
semiconductors.
Results
Daisy image interpreter
TypicalSEMimagesofAg-Bi-Ithin filmsshowdenselypackedsub-micronscale grains separated by irregularly circular grain boundaries, punctuated
by regions devoid of the semiconductor, called “pinholes”. These pinholes
cause shunting and severe reductions in photovoltaic device performance,
and it is critical to minimize or eliminate them. The primary objective of the
Daisy Image Interpreteris to extract grain-specific characteristics from each
SEM image. To avoid the tedious manual labeling process for model
training, we developed three interconnected models, namely, Daisy segmentation, classification, and clustering, respectively, to collectively
automate the information extraction processes. Following initial data preprocessing steps (as detailed in Methods), we first fine-tuned the Segment
Anything Model (SAM) for image segmentation, dividing each image into
hundreds of grain regions for detailed analysis <sup>28</sup> . SAM generates segmentation masks by identifying areas with distinct visual characteristics, such as
texture and intensity. To enhance segmentation accuracy, we refined SAM
through iterative adjustments, specifically by tuning parameters like points
per side and Intersection-over-Union (IoU) thresholds, which allowed us to
capture finer structural details and increase mask stability <sup>29,30</sup> . We also
applied dynamic filtering to remove segments exceeding 10% of the total
imagearea,focusingattentiononmicrostructuralfeaturesat thelength scale
of single grains. The outcome of our model refinements is illustrated inside
the red block in Fig. 1a, where the segmented image displays a significantly
largernumberofdetectedregions,representedindifferentcolors,compared
to the initial segmentation output without fine tuning.
The results from image segmentation show that grain-level information has been successfully extracted from SEM images; however, information at this stage remains incomplete. We found that many SEM images
contain defects, i.e., pinholes, as illustrated in Fig. 2a, c. Without domainspecific labeling, segmentation algorithms identify grains and defects as
individual features without distinguishing between them. In other words,
microscopic features were isolated but not recognized in the materials science context. To address this, we developed a data-driven approach consisting of two steps: first, a classification model was trained to distinguish
between SEM images with and without defects. Images identified as defectfree proceed directly to grain analysis without the additional clustering step,
thereby saving computational time. For images identified as containing
defects, a subsequent clustering algorithm was applied to the segmented
images, which enables differentiation between defective features such as
pinholes and irregular grains in each SEM image. Our clustering method
was able to effectively distinguish grains from defects and here we employed
unsupervised ML to avoid the need for pre-training labeling, which both
saved significant data preparation time and allowed the model transferability to apply the same approach to new, unlabeled datasets readily. As
shown in the yellow block in Fig. 1a, the Daisy clustering algorithm was
applied to all images classified as “with defects”. Using feature maps generated by the fine-tuned SAM, the clustering algorithm employed k-means
clustering to iteratively partition pixels into clusters, each corresponding to
distinct microstructural elements. By refining clusters according to size
thresholds and filtering out noise-related clusters as detailed in the Methods
section, we achieved effective separation of grains and defect areas.
Prior to clustering, the distinction between SEM images with and
without defects was achieved by a separate Daisy classification model.
Unlike segmentation and clustering algorithms that were applied to all
pixels in a SEM image, the classification model generates a single label of
“defective” and “no defect” for each SEM image. To construct the training
dataset for classification, 141 images were selected from the 161 historical
dataset of SEM images on Ag-Bi-I thin films, excluding low-quality defocused images. Each of these 141 SEM images was then divided into 4 × 4
patches, resulting in a total of 2256 patches. Additionally, 146 full SEM
images were also included in the training dataset. A key point detection
algorithm, as detailed in Methods section, was employed in defect-prone
regions to categorize images as “defective” or “non-defective”, with the
identified key points represented by green dots in Fig. 1b. This approach
provided an effective alternative to manual labeling. Three neural network
architectures were evaluated for their classification performance. VGG16, a
16-layer deep neural network developed by the Visual Geometry Group,
features a straightforward architecture, as shown in Fig. 1b <sup>31</sup> . VGG16 was
able to extract hierarchical features and outperformed the other two models
when fine-tunedforourdataset,achievinganaccuracyof97%onthetestset,
as shown in Fig. 1c.The resultsfor the other two neural networks, ResNet50
and MobileNet, can be found in Fig. S2.
By integrating Daisy segmentation, classification, and clustering
models in this study, the Daisy Image Interpreter was configured to output
two numerical metrics from each SEM image: the overall defect percentage
Fig. 1 | Workflow of the Daisy Image Interpreter. a Workflow showing the integration of Daisy segmentation, classification, clustering models, and the data
extraction process of grains and defects from scanning electron microscopy (SEM)
images. Blue blocks indicate the model’s input and output, red blocks represent the
Segment Anything Model (SAM) for segmentation, green block denotes the classification algorithm, and yellow block signifies the clustering algorithm. b Workflow
Fig. 2 | Representative results from the Daisy
Image Interpreter. a Scanning electron microscopy
(SEM) image of an AgBiI4 thin film, showing segmented defects highlighted in color, covering 5.2%
of the total area. The image, captured at a magnification of 51,390×, was processed by the Daisy Image
Interpreter in 29 s. b Grain area distribution corresponding to the thin film in (a), with the red dashed
line indicating the kernel density estimation of the
distribution. c SEM image of another AgBiI4 thin
film, showing segmented defects highlighted in
color, covering 18.3% of the total area. The image,
captured at a magnification of 45,360×, was processed by the Daisy Image Interpreter in 38 s.
d Grain area distribution corresponding to the thin
film in (c), with the red dashed line indicating the
kernel density estimation of the distribution.
illustrating the model architecture in the Daisy classification algorithm.
c Classification confusion matrix for the Daisy classification model. Each entry in the
confusion matrix is represented in the format of A / B/ C, where A is the number of
image patches on the training set (80% of data), B is on the validation set (10% of
data), and C is on the test set (10% of data).
and a distribution of individual grain areas. These metrics were selected due
to their critical importance for optimizing Ag-Bi-I semiconductor film
morphology. Our demonstration aims to highlight examples of the informationthat canbeextracted usingthe DaisyImage Interpreter.As shownin
Fig. 2, we present two examples of defective SEM images processed by the
Daisy Image Interpreter, showcasing the framework’s flexibility in handling
SEM images across different magnifications. In practice, the framework can
be readily adapted to extract additional grain statistics as needed, as
demonstrated in Fig. S3, where we show the distribution of equivalent grain
radii. Notably, Daisy processes each of these images in ~30 s, making it far
more efficient than manual counting, which takes roughly an hour, and 120
times faster than state-of-the-art manual grain size characterization using
X-ray diffraction (XRD), which requires about an hour for measurements
Fig. 3 | Overview of the full dataset analyzed in this study. a Schematic representation of the multi-step processing of thin film semiconductors via spin coating
inside a N2-filled glovebox. b–e The preheat temperature (for both substrate and
precursor), composition, spin coating speed, and antisolvent used in this study. A
and Pawley fitting to determine grain sizes. Furthermore, when we
attempted to segment Fig. 2c using ImageJ <sup>32</sup>, the process was also significantly slower, taking around 25 min, and the results were notably
inferior to those produced by the Daisy Image Interpreter, as shown in Fig.
S4a, further underscoring the necessity of our model for accurate and reliable image segmentation.
Processing – microstructure relationships
The microscopy dataset used in this study to train the Daisy Image Interpreter consists of historical images collected over several months by three of
theauthorsattheUniversityofOxfordfollowingthefourprocessingstepsof
substrate and percussor preheating, spin coating, antisolvent addition, and
annealing, as illustrated in Fig. 3a. Figure 3b–e show the diverse range of
temperature of 25 °C indicates that no preheating was employed. f, g Distribution of
average grain size area and defect percentage, extracted using Daisy image interpreter, with the red dashed line representing the kernel density estimation of the
distribution.
synthetic conditions of each processing step employed, leading to the formation of various microstructural features observed in the 161 SEM images
in this study. Each image captures a spin-coated Ag-Bi-I thin film sample,
synthesized by one of the 27 distinct combinations of synthetic conditions
across three compositions, AgBiI4, Ag2BiI5 and Ag3BiI6. Detailed spin
coating parameters used in the synthesis of Ag-Bi-I thin-film semiconductorscanbefoundintheGitHubrepositorylinkedtothismanuscript.
Figure 3bshowsthatthemostfrequentlyusedpreheattemperaturesforboth
substrate and precursor, each exceeding 10% of the total samples, were
110 °C and 25 °C. Figure 3c illustrates the compositions of the fabricated
thin films, with the majority of efforts focusing on AgBiI4. Figure 3d details
the spin coating speeds, with the combination of 1000 rpm for 2 s followed
by 6000 rpm for 30 s being the most common protocol. Figure 3e outlines
the antisolvents used, showing that while most samples were synthesized
without an antisolvent, a substantial subset employed isopropyl alcohol
(IPA),toluene,orchlorobenzene.Thisdiversityinantisolventusageallowed
for an examination of its impact on grain boundary formation and defect
modulation.
Using the Daisy Image Interpreter, we extracted the grain area distribution and defect percentage for each thin-filmsample from the 161 SEM
images. Although the grain area histograms in Fig. 2b, d exhibit a moderate
right skew, the arithmetic mean remains a reliable descriptor since it
accounts for every data point in the distribution and is widely used in the
literature to correlate grain size with optoelectronic performance <sup>33–35</sup> .
Accordingly,wecalculatedtheaveragegrainareaforeachsampleandadded
this metric together with the defect percentage to our dataset. The distributions of these values are illustrated in Fig. 3f, g, and the relationship
between these metricsand each synthesisparameter can be visualized inFig.
S5. Most samples showed an average grain size area ranging from 0.02 µm <sup>2</sup>
to 0.06 µm <sup>2</sup> and exhibited minimal defect percentages. However, some
display substantially larger grain sizes, reaching up to 0.22 µm <sup>2</sup>, or higher
defectpercentages, exceeding 30%, which underscores the variability in film
quality throughout the dataset. This variation highlights the critical
importanceofoptimizingsynthesisparameterstoconsistentlyachievehighquality thin-film solar cells.
Daisy synthesis planner
Identifying optimal conditions for each step of the solution process, from
precursorandsubstratepreheating,spincoatingspeedsetting,toantisolvent
dripping, is fundamentally a multi-objective optimization problem. Two
distinct challenges make such optimization challenging by direct learning
from the historical data. First, unlike brute-force screening, manual
experimental data collected tends to skew toward a limited set of synthesis
conditions that are deemed promising based on human intuition. However,
the overall search space is vast. For instance, with 12 different temperatures
for both substrate and solution preheating respectively, 3 spin coating
speeds, and 4 antisolvent-dropping conditions, there are 1728 possible
parameter combinations to explore. Given that fabricating 10 films takes
around an hour and acquiring 5 SEM images requires another hour, we can
process synthesize and characterize 20 films per day on average. Additionally, scheduling the necessary equipment requires about a week in
advance. At this rate, completing all experiments would take at least
87 weeks. Second, the heterogeneity in the data structure of synthetic conditions adds complexity to data analysis and decision-making. For instance,
some experiments in the dataset involve a single spin coating speed, such as
6000 rpm for 30 seconds, while others employ a two-stage coating process,
such as 1000 rpm for 2 s followed by 6000 rpm for 30 s (Fig. 3d). There is no
simple way to numerically represent how one synthesis condition is different from another, which complicates pattern recognition and optimizationproblemframing.Inthiswork,weformulatedtheprocessingparameter
optimization in an offline RL setting, with the agent learning exclusively
from a static, pre-collected dataset of synthetic conditions and microstructure metrics, treating each condition as categorical data. RL has
increasingly been explored in chemistry and materials science for tasks
ranging from compositedesign topredictive synthesis using simulated data.
Sui et al. applied deep RL to automate materials design, where a deep
Q-network (DQN) architecture was used to optimize composite structures
based on finite element analysis simulations, achieving significant
improvements over genetic algorithms <sup>36</sup> . In a recent study of growing
monolayer MoS2 via chemical vapor deposition, an offline RL agent was
trained on synthesis simulations to predict reaction conditions for phasepure materials <sup>37</sup> . Despite these advances, RL has not yet been applied to
optimize the microstructure of thin-film semiconductors trained on
experimentaldata.AsshowninFig. 4a,b,intheDaisySynthesisPlanner,the
RL agent iteratively interacts with the parameter space environment by
selecting actions (i.e., synthesis conditions) from three processing steps:
preheating, spin coating, and antisolvent addition, and receiving feedback
via a reward function designed to evaluate film quality (see Methods section
fordetails).Wedefinetheexperimentalparameterspaceastheenvironment
for the agent to learn from, enabling it to search for optimal solutions as the
agentidentifiessetsofconditionsassociatedwithhighrewards.Theprimary
parameter space, illustrated in Fig. 4b, includes the choices of the preheat
temperatures of the substrate and precursors, spin coating speed, and
antisolvent usage, which forms the design space for microstructure optimization. A model-free RL, deep Q-learning, was employed, which enables
the agent to train within the experimental parameter space without
requiring prior knowledge of the processing - microstructure relationships.
Given that each target composition has a unique processing window, we
focus on optimizing the film morphology of AgBiI4 as a case study for the
development of the Daisy Synthesis Planner. The RL agent’s primary
objective is to propose optimal processing windows that yield desirable
microstructures, as defined by maximizing average grain sizes and minimizing the percentage of defect coverage. We used static weighting of grains
(70%) and defects (30%), as assigned by chemists in our team based on
domainexperts.Inaddition,toassesstherobustnessofthisweighting,weset
two parallel RL agents using alternative weightings of 90%/10% and 50%/
50% (grains/defects), with more details provided in Supplementary Information (Fig. S6 and Table S1).
Two distinct approaches are implemented for the RL agent: the first,
serving as the baseline for implementing the exploratory RL algorithm,
focuses on learning from existing synthesis condition combinations,
treating the completion of three processing steps of preheating, spin
coating, and antisolvent addition as a single action, which is illustrated in
Fig. S7, while the second approach, the true exploration-focused implementation, explores new regions in parameter space, where each processing step is considered independently, as shown in Fig. 4d. In the RL
baseline approach, the agent is trained using the existing experimental
dataset of AgBiI4, evaluating only the parameter combinations explicitly
shown in Fig. 4b. Rewards are assigned based on the quality of each set of
synthesis conditions, allowing the agent to learn the processingmicrostructure relationships by interacting with the existing combinations of synthesis conditions in the historical dataset. The exploratory RL
algorithm extends this search by evaluating the contributions of each
process step by step, in pursuit of new combinations of synthesis conditions. Unlike the RL baseline, which assigns an immediate reward
based on a chosen set of preheat temperatures, spin coating speed and
antisolvent selection, the exploratory RL employs a weighted sum of
individual rewards for each processing step, enabling greater flexibility in
generating new combinations of synthetic parameters. Figure 4c shows
the correlations among synthesis parameters across different processing
steps, demonstrating minimal interdependence, which supports the
independent optimization of each parameter in the exploratory RL. In
both approaches, the agent balances exploration and exploitation,
updating a Q-table, a matrix mapping state-action pairs to expected
rewards, at each episode to iteratively refine its decision-making strategy
based on past experiences (see Methods for details on its calculation). In
the exploratory RL, the agent further enhances this process by dynamically adjusting reward weights to optimize decision-making.
The results of the two approaches implemented by the RL agent are
summarized in Fig. 5. Figure 5a highlights the progression of total rewards
Fig. 4 | Reinforcement learning (RL) algorithm used for synthetic optimization.
a Schematic illustration of the general concept of the RL algorithm. Specifically, this
RL algorithm was used to identify the processing parameters of AgBiI4 that yield the
largest grain size and no pinholes. In this study, only samples with a composition of
AgBiI4 were considered within the parameter space, so the composition parameter
was not included in the optimization process. b Material synthesis conditions used
for optimization, with each connected line representing one combination of
across episodes for the RL baseline, where the stabilization of rewards over
iterative optimization indicates convergence after 1000 episodes. The
optimization outcome closely aligns with the historical dataset’s best sample
identified by the Daisy image interpreter, exhibiting only minor deviations
(seeTable 1),whichconfirmstheagent’sabilityinidentifyingoptimalsetsof
synthesis combinations. In contrast, the exploratory RL explores a broader
design space, identifying new optimal synthesis conditions at each processing step beyond the existing combinations. Since the progression of it
exhibits an oscillatory pattern, likely due to the limited dataset of only 27
distinct combinations compared to the 1728 possible ones, the reward
distribution is plotted in Fig. 5b, and the RL agent’s 1000-episode
exploration of the design space is visualized via principal component analysis (PCA) for dimension reduction in Fig. 5c. These visualizations
synthesis conditions in the dataset. In the “Spin Coating Speed” column, (1)
represents 6000 rpm for 30 s, (2) represents 1000 rpm for 2 s then 6000 rpm for 30 s,
and (3) represents 1000 rpm for 2 s then 4000 rpm for 30 s. c Correlation heatmap of
the three synthesis steps employed for optimization. d Detailed workflow showing
how the RL agent systematically explores the full combinatorial space of synthesis
conditions to achieve optimization beyond the original dataset.
highlight the discovery of parameter combinations yielding the highest
rewards, a process that takes about 3.5 min by the RL agent operated on
Google Colab. To visualize the optimal processing windows identified by
both approaches, we also performed a second PCA on the full parameter
dataset encompassing all three compositions, AgBiI4, Ag2BiI5, and Ag3BiI6,
as shown in Fig. 5d and Fig. S8. The optimal processing window identified
by the RL baseline, which consists of three synthesis conditions from the
preheating, spin coating, and antisolvent addition steps respectively, are
close to the top-performing window in the historical dataset in the reduced
two-dimensional space, which yielded the largest average grains detected
experimentally. The exploratory RL, on the other hand, uncovers a significantly different set of synthesis conditions leading to the suggestion of a
new processing window in Table 1. Our results demonstrate RL’s ability to
Fig. 5 | Optimization and validation of AgBiI4 synthesis conditions using the
reinforcement learning (RL) algorithm. a Total reward progression as a function of
episodes for the RL baseline (detailed in Fig. S7), demonstrating RL performance
over time. The synthesis conditions are optimized as the reward peaks, indicating
convergence. b Reward distribution across 1000 training episodes for the exploratory RL (described in Fig. 4d), where the optimal synthesis conditions align with the
highest reward values. c Principal component analysis (PCA) visualization of all
unique synthesis conditions explored by the RL agent over 1000 training episodes.
Each point represents a unique condition, colored by its corresponding reward. Gray
points in the background represent the full design space of 1728 possible parameter
combinations, illustrating that the agent selectively explores a subset of this space
explore new regions of parameter space and identify novel synthesis
pathways.
To validate the new processing window suggested by RL, a new round
of synthesis experiments was conducted using the AI-suggested optimal
conditions. Two independent AgBiI4 films were fabricated at the optimal
conditions, and three SEM images were acquired for each sample. A
representative SEMimage,shown at the bottom of Fig. 5d, was compared to
the films produced under the best synthesis conditions identified in the
training dataset. Qualitatively, all three SEM images show similar grain sizes
during training. d Comparison and validation of the best synthesis conditions
identified by both the RL baseline and exploratory RL against the historical dataset’s
top-performing condition with the largest average grains detected. The upper panel
visualizes synthesis conditions in the parameter space, analyzed via PCA on the
original full dataset containing all three compositions: AgBiI4, Ag2BiI5, and Ag3BiI6.
The lower panel presents the scanning electron microscopy (SEM) images of solar
cells fabricated withthe respective synthesis parameters, and their average grain sizes
are specified in Table 1. To facilitate direct visual comparison, the SEM image for the
“Highest Reward in RL”, originally acquired at a different magnification, was
cropped and rescaled to match the scale of the other two images.
and minimal visible defects. Quantitative analysis using the Daisy image
interpreter confirmed that all three synthesis conditions produced films
with nearly identical grain area distributions (Fig. S9). Moreover, the newly
fabricatedAgBiI4 filmexhibited no detectable pinholes and an average grain
size comparable to the top-performing samples in the historical dataset.
These results are summarizedin Table 1 and Table S2, which highlights that
the new set of synthesis conditions proposed by RL achieves pinhole-free,
large grain films, thereby demonstrating the utility of this agentic approach
in synthesis planning based on historical data. Considering that fabricating
and imaging the optimal sample takes an additional 2 h, and scheduling the
equipment requires about a week, this validation process of RL was 87 times
faster than the brute-force synthetic screening over the 1728 possible
synthesis conditions. If we exclude the equipment scheduling and waiting
time and assume continuous experimental operations, the difference in the
experimental time needed between RL one-shot learning and the manual
synthetic screening exceeds 500-fold, highlighting the significant potential
of the Daisy framework in accelerating microstructure development for
thin films.
Discussion
In this study, we integrated computer vision techniques with an offline
RL agent to intelligently optimize synthesis parameters based on
microstructural feedback from a historical dataset. Unlike traditional
approaches that treat these tasks separately, the integration of automated
image analysis and synthesis planning into a single framework exemplifies assembling compound models into an AI agent with greater
autonomy and decision-making capability, allowing the adaptability and
efficiency in the microstructure optimization process. The multi-step
process optimization in this context is challenging due to the nature of
the training dataset, which includes categorical parameters and inherent
biases. Specifically, synthesis parameters, such as preheat temperature,
spin coating speed, and antisolvent type, as illustrated in Fig. 4b, are
categorical, lacking intrinsic numerical relationships. This complexity
renders traditional gradient-based methods unsuitable. The dataset is
significantly imbalanced, with certain parameter combinations overrepresented. For example, spin coating speeds like “6000 rpm for 30 s”
occur far more frequently than other combinations, while the antisolvent
column is heavily skewed toward “None”, with limited diversity in other
solvents. This imbalance restricts the generalizability of predictive
models, as they are trained on a narrow and biased distribution of
parameter combinations, limiting their ability to extrapolate to underrepresented conditions. In this section, we discuss several methods that
could potentially be used for the optimization task, and by comparing
them, we found RL achieves superior results, as presented in the previous
section.
One common approach for machine-learning-guided design of
experimenthasbeenBayesianoptimizaiton(BO),whichleveragessurrogate
models to balanceexploration and exploitation <sup>38</sup> . BO can handle categorical
variables by encoding them as discrete inputs and iteratively refines its
exploration of the parameter space <sup>39</sup>, making it more efficient than
exhaustive search methods. However, the effectiveness of BO is heavily
dependent on the quality of the surrogate model <sup>40</sup> . Gaussian processes,
commonly used in BO, are well-suited for handling uncertainty but struggle
with interdependencies between parameters and imbalanced datasets <sup>41,42</sup>, as
the case in this study, shown in Fig. S10. Given the limitations of Gaussian
processes in such contexts, identifying a suitable surrogate model is a
nontrivial and resource-intensive task, further constraining BO’s applicability here. Meanwhile, while tree-based methods such as Random Forests
(RF) offer an alternative by naturally accommodating categorical
variables <sup>43,44</sup>, their performance is highly sensitive to data imbalances <sup>45</sup>, with
the results shown in Fig. S11 highlighting significant discrepancies in our
attempts to model the average grain size area and defect percentage using
RF, as further discussed in the Supplementary Information. In this study,
RL’s model-free architecture eliminates the need for surrogate model
selection, as required in BO <sup>46</sup> . Through iterative learning, RL adapts to the
environment represented by the dataset and explores underrepresented
parameter combinations using an ε-greedy strategy <sup>47,48</sup> . This exploration
mitigates the effects of dataset imbalance, allowing the RL agent to consider
rare but impactful parameter combinations during training. By incorporating a reward mechanism based on defect percentage and grain size at the
same time, the framework ensured these rare combinations were not
overlooked. Moreover, as shown in Fig. 5a, RL’s loop structure enables
cumulative optimization, allowing decisions to adapt dynamically based on
earlier results and prioritizing parameters with the greatest impact on the
quality of material synthesis. Although RL is typically applied to large
datasets and can become unstable or overfit when training samples are
sparse <sup>49,50</sup>, our study still demonstrates its effectiveness with fewer than
200 samples, a feasibility also validated by Qin et al. <sup>51</sup> . Notably, Q-learning’s
flexibility and model-free approach make it suited for optimization tasks in
this data-limited environment <sup>52</sup> . This is supported by prior work from
Kaliappan et al. where Q-learning effectively managed home energy consumption by dynamically learning optimal appliance usage policies without
requiring a predefined model, demonstrating its adaptability to complex,
real-time decision-making scenarios <sup>53</sup> . Nevertheless, because our RL agent
was trained on a relatively sparse dataset, it has not fully converged to the
deterministic optimum and its generalizability to untested regions remains
uncertain; instead, its chief merit in this context is the ability to propose
novel synthesis conditions outside the previously explored space and was
able to achieve similarly high rewards. Future investigations are expected to
focus on expanding the experimental dataset broadening the agent’s
applicability.
In summary, we developed Daisy, a computational framework that
serves as a key component of future fully autonomous self-driving laboratories, consisting of compound AI models to collectively learn from historical visual microscopic images and propose new synthesis conditions for
Ai-Bi-I perovskite-inspired thin-film semiconductors. Daisy’s image interpreter achieved 97%indefect defection accuracyand over 120× acceleration
in extracting grain and pinhole information from SEM images compared to
manual methods, followed by an additional 87× acceleration in synthesis
planning compared to brute force screening, by using an offline RL agent to
suggest next experiments from historical synthesis and characterization
data.Overall,asself-drivinglabsevolvewithevermoresophisticatedrobotic
workflows and real-time analytics, Daisy stands poised to accelerate the
development of high-efficiency indoor photovoltaics across a wider range of
compositions,andtheAIimageinterpreterandsynthesisplannerdeveloped
in this study can be readily applied to other material classes.
Methods
Thin-film synthesis
AgBiI4 thin films were prepared in a nitrogen-filled glovebox by dissolving
silver iodide (AgI) powder (99.98%, Sigma-Aldrich) and bismuth iodide
(BiI3) (99.9%, Alfa Aesar) in a 1:1 molar ratio using dimethyl sulfoxide
(DMSO, anhydrous, 99.99%, Sigma-Aldrich) as the solvent. The solution
was stirred overnight at 70 °C and then filtered through a 0.2 µm polytetrafluoroethylene (PTFE) filter (Fisher Scientific).
For Ag2BiI5 and Ag3BiI6 thin films, AgI powder (Premion®,
99.999%, Thermo Scientific) and BiI3 (Puratronic®, 99.999%, Thermo
Scientific) were mixed without further purification. To prepare a 34%
(weight ratio) solution, DMSO (anhydrous, ≥99.9%, Sigma-Aldrich) and
N, N-dimethylformamide (DMF, anhydrous, 99.8%, Sigma-Aldrich)
were added in a 10:1 volume ratio. The solution was stirred for 2 h at
70 °C and filtered with the same PTFE filter as above.
Before spin coating, glass substrates were cleaned through sequential
sonication in deionized (DI) water, acetone, and isopropanol, followed by
UV-ozone treatment (ATG Scientific, UVC1014) for 15 min after each step
to ensure thorough surface preparation. After that, both the solution and
substrateswerepreheatedtothetemperaturesspecifiedinthedatasetusinga
stirring hotplate (Radleys TECH). A 200 μL aliquot of the solution was then
pipetted onto the substrate and spin coated. For certain thin films, 1 mL of
an antisolvent, either chlorobenzene (anhydrous, 99.8%, Merck), IPA
(99.5%,Sigma-Aldrich),ortoluene(anhydrous,99.8%,Sigma-Aldrich),was
dripped onto the substrate 20 seconds into the second stage of spin coating
using a 1 mL pipette. The final thin films were annealed at the designated
temperature and time as per the dataset.
Scanning electron microscopy (SEM)
SEM imaging was conducted using a Zeiss Merlin - Analytical system,
performed at an electron energy of 10 keV, with the chamber pressure
maintained at approximately 10 <sup>−5</sup> Pa. Depending on the experiment, some
sampleswere grounded usingcarbontapeorsilverpasteto minimizecharge
accumulation. Slight charge buildup and sample drift were observed in
ungrounded samples. No conductive coating was sputtered onto the thin
films before SEM imaging.
Data preprocessing of SEM images
To ensure consistency and relevance in the analysis, a comprehensive
preprocessing pipeline was implemented for the SEM images. This pipeline
encompassed file renaming, metadata extraction, and image cropping to
standardize the data and isolate regions of interest. The SEM image dataset,
acquired under varying experimental conditions, was organized into distinct folders reflecting synthesis parameters. A Python-based automation
script was developed to trace these parameters systematically by parsing
folder names. Metadata, including critical synthesis parameters such as spin
coating speed, temperature, chemical composition, and antisolvent, were
extracted using a rule-based mapping algorithm derived from predefined
associations provided with the dataset.
To focus the analysis on pertinent regions, the bottom 10% of each
image, typically containing extraneous background artifacts, was cropped.
This operation was carried out using the Python Imaging Library (PIL) <sup>54</sup>,
ensuring that the original aspectratio was preserved while standardizing the
field of view across all samples. These preprocessing steps facilitated a
uniform and targeted dataset for subsequent analysis described in the
manuscript.
Segment Anything model (SAM)
SAM, developed by Meta, was utilized to achieve precise and automated
segmentation of SEM images, eliminating the need for manual
intervention <sup>28</sup> . A pre-trained Vision Transformer (ViT) model (using the
vit_l configuration) was employed, executed on a Google Colab A100 GPU
to leverage advanced hardware acceleration for computational efficiency.
The initial implementation used SAM’s default configuration with
standard model parameters designed for general-purpose segmentation
tasks, establishing a baseline for segmentation quality and serving as a
benchmark for further improvements. SEM images were first converted to
RGB format using the OpenCV package to meet SAM’s input
requirements <sup>55</sup> . The model then generated segmentation masks for each
image, which were visualized by overlaying semi-transparent masks on the
original images. To improve interpretability, the visualization function
sorted masks by area to prioritize larger regions, assigned random colors for
differentiation, and presented them as overlays, as shown in the red block in
Fig. 1a.
To enhance precision, specific model parameters, as outlined in Table
2, were later optimized using a random search approach, mirroring the
structured methodology of the initial implementation. This iterative
refinement ensured robust segmentation performance across diverse image
features,providingasolidfoundationfordownstreamanalysesandinsights.
Key point detectors
To automate the identification of regions exhibiting specific morphological
features, such as pinholes and gaps, a key point detection methodology was
developed to replace manual labeling efforts in SEM image analysis. The
images were first processed in grayscale to emphasize intensity-based features, which are essential for detecting morphological variations. A global
thresholding technique was then appliedto isolate darker regions, which are
often indicative of potential defects. The threshold values were dynamically
determined based on the overall intensity and brightness characteristics of
each SEM image. Following thresholding, the Harris Corner Detector was
employed to identify key points within the images <sup>56</sup> . The resulting response
map was normalized, and key points were extracted by applying a threshold
to the normalized response. These key points, which represent regions of
interest, were visualized as green dots overlaid on the original grayscale
images, as depicted in Fig. 1b. In the final step, images with extracted key
points were labeled as defective, while those without were categorized as
non-defective.
Table 2 | Parameters used for fine tuning of the Segment Anything Model (SAM), along with their corresponding descriptions and
implications
<u><mark>Parameter</mark></u> <u><mark>Description</mark></u> <u><mark>Implication</mark></u>
points_per_side Number of sampling points along each side of the
image grid.
Higher values improve granularity but increase computation.
pred_iou_thresh Minimum IoU threshold for mask predictions. Stricter thresholds (e.g., 0.7–0.9) enhance precision but may exclude
valid masks.
stability_score_thresh Filters masks based on their stability across
scales.
crop_n_layers Number of hierarchical cropping layers for
segmentation.
crop_n_points_downscale_factor Downscales the number of points sampled in
cropped regions.
Higher values (e.g., 0.9–0.95) favor stable masks but risk discarding borderline
regions.
More layers improve segmentation of small objects but increase
processing time.
Smaller factors preserve resolution but increase computational cost.
min_mask_region_area Minimum size of mask regions Filters small noisy masks. Set this based on object size in your dataset (e.g.,
around 0.1–1% of image resolution).
VGG16 classification algorithm
The VGG16 architecture, pre-trained on ImageNet, was utilized as the
backbone for the classification task <sup>31,57,58</sup> . As depicted in Fig. 1b, custom
layers were integrated on top, consisting of a global average pooling layer, a
denselayerwith256neuronsandrectifiedlinearunit(ReLU)activation,and
a dropout layer with a rate of 0.5. The output layer featured a single neuron
with a sigmoid activation function, designed for binary classification
(between “with defects” and “no defect”). During the initial training phase,
the VGG16 base layers were frozen to leverage pre-trained weights, minimizing training time and reducing the risk of overfitting. Only the custom
layers were trained at thisstage, achievinga validation accuracyof 95.83% in
theearlyepochs.Tofurtherenhanceperformance,thebaselayersofVGG16
were unfrozen, allowing fine-tuning across the entire network. The model
wasrecompiledwitha reduced learningrateof 1 × 10 <sup>−5</sup> toretainpre-trained
features while adapting to our SEM dataset. This fine-tuning step improved
the model’s generalization, yielding a test accuracy of 97.1% with a test loss
of 0.121, demonstrating a robust and well-calibrated classifier.
Daisy clustering algorithm
K-means clustering was applied to the segmented images to classify regions
into defects and grains. For each image, the mean intensity of pixels within
each segmentation maskwascomputed byapplyingthemaskto the original
grayscale SEM image. These mean intensities formed the feature set for
clustering. Using the K-means algorithm from the scikit-learn library <sup>59</sup>, the
segmentation masks were grouped into two clusters, corresponding to
darkerregions(defects)andlighterregions(grains),aligningwiththegoalof
distinguishing between defective and grain areas.
Furthermore, to eliminate redundant representations, overlapping
masks were evaluated using the IoU metric. Masks with an IoU exceeding 0.5
wereconsideredredundant,andinsuchcases,thelargermask(basedonarea)
was retained, while the smaller overlapping masks were discarded. This step
ensured that each region was represented by a unique, non-redundant mask.
The lighter masks, classified as grains, underwent additional filtering.
Masks occupying more than 10% of the total image area were excluded,
based on domain-specific knowledge of typical grain sizes. Finally, the
refined masks were visualized (as shown in the yellow block in Fig. 1a) to
verify their spatial alignment with observed defects and ensure accurate
representation of the regions of interest.
Reinforcement learning (RL) algorithm
A Q-learning-based offline RL algorithm was employed to optimize the
synthesis conditions for spin coating AgBiI4 thin films, using two distinct
approaches illustrated in Fig. 4d and Fig. S7. The RL agent was trained in
1000 episodes, with each episode consisting of 200 steps corresponding to
parameter adjustments. At the beginning of each step, the training initiated
from a random state within the unexplored parameter space of the current
episode. The agent followed an ε-greedy exploration strategy, where, with
probability ε, it explored new parameter sets by selecting a random action,
and with probability 1−ε, it exploited its learned policy by selecting the
action expected to maximize the reward. For the RL baseline, the action
modified the combination of multiple parameters simultaneously, while for
the exploratory RL, the action adjusted one parameter at a time. After
performing the action, the agent transitioned to a new state and evaluated
the reward associated with this transition.
The reward calculation ensured a balanced trade-off between the
objectives of maximizing grain size and minimizing defect coverage by
applying normalization to scale the raw values of these metrics into the
range [0, 1] following Eq. (1).
<u>x �</u> <u>xmin</u>
xnormalized ¼ ð1Þ
xmax � xmin
And the reward was then calculated as
-
r ¼ 0:7 × grain size
-
normalized <sup>�</sup> <sup>0:3 ×</sup> <sup>defect</sup> <sup>percentage</sup>
normalized ð2Þ
For the RL baseline, the reward calculated by Eq. (2) was directly used
asthe finalreward forthestep.FortheexploratoryRL,Eq.(2)wasapplied to
evaluate the reward for each individual parameter, and a weighted summation of these rewards was computed as
rtotal ¼
X
i
wiri ð3Þ
Where wi represents the weight associated with each parameter, which was
dynamically updated after every step.
Afterwards, the Q-value for each state-action pair was updated in the
Q-table using the Bellman equation
- Qðs; aÞ ¼ Qðs; aÞ þ α r þ γ max Qðs <sup>0</sup> ; a <sup>0</sup> Þ � Qðs; aÞ ð4Þ
Where s and a represent the current state and action, Qðs <sup>0</sup> ; a <sup>0</sup> Þ represents the
estimated future reward for the next state-action pair, α is the learning rate,
and γ is the discount factor. Simultaneously, the weight wi, which was
crucial for the reward calculation in the exploratory RL, was dynamically
adjusted to prioritize parameters with greater influence on the reward. This
adjustment was based on
-
<u>Ei</u>
~~P~~ - wi;old ð5Þ
<u>Ei</u>
wi;new ¼ wi;old þ η ~~P~~
i <sup>E</sup> i
- wi;old
where η was the learning rate for weight adjustment, and Ei quantifies the
impact of the i <sup>th</sup> parameter on the reward, defined as
Ei ¼ ��ri � rtotal�� ð6Þ
After every episode, the exploration rate ε in the ε-greedy strategy
decayed by 0.5%, encouraging the agent to shift from exploration to
exploitation as training progressed.
Principal Component Analysis (PCA)
The PCA analysis is implemented using the PCA class from scikit-learn <sup>59</sup>,
with categorical variables first encoded via one-hot encoding using scikitlearn’s OneHotEncoder. This transforms categorical variables into a binary
matrix, where each category is represented as a unique binary vector. The
high-dimensional binary data is then processed through PCA, which
involves several steps: mean centering by subtracting the mean of each
feature to prevent bias, computing a covariance matrix to measure feature
relationships, performing eigen decomposition to obtain eigenvalues
(representing variance) and eigenvectors (defining principal axes), and
projecting the data onto the top k eigenvectors. In our case, the data is
reduced to two principal components, PC1 and PC2, as shown in Fig. 5c, d,
which preserves key patterns while filtering out noise, providing an interpretable 2D representation of the high-dimensional data.
Data availability
All image data used in this manuscript are available from the Oxford
[Research Archive (https://doi.org/10.5287/ora-ovqa54yn1).](https://doi.org/10.5287/ora-ovqa54yn1)
Code availability
The code used in this study together with all image support data (in Excel
files) are openly accessible on GitHub [(https://github.com/uwsunlab/](https://github.com/uwsunlab/Daisy.git)
[Daisy.git).](https://github.com/uwsunlab/Daisy.git)
Received: 12 March 2025; Accepted: 13 June 2025;
References
1. Brabec, C. J. Organic photovoltaics: technology and market. Sol.
Energy Mater. Sol. Cells 83, 273–292 (2004).
2. Qiu, X. et al. Room temperature two-dimensional lead halide
perovskite thin-film transistors with high stability. Cell Rep. Phys. Sci.
4, 101217 (2023).
3. Zhao, J. et al. Recent developments of truly stretchable thin film
electronic and optoelectronic devices. Nanoscale 10, 5764–5792
(2018).
4. Fortunato, E., Barquinha, P. & Martins, R. Oxide semiconductor thinfilm transistors: a review of recent advances. Adv. Mater. 24,
2945–2986 (2012).
5. Shan, Q. et al. Perovskite quantum dots for the next-generation displays:
progress and prospect. Adv. Funct. Mater. 34, 2401284 (2024).
6. Powalla, M. et al. Thin-film solar cells exceeding 22% solar cell
efficiency: an overview on CdTe-, Cu(In,Ga)Se2-, and perovskitebased materials. Appl. Phys. Rev. 5, 041602 (2018).
7. Zhang, Y., Ng, S.-W., Lu, X. & Zheng, Z. Solution-processed
transparent electrodes for emerging thin-film solar cells. Chem. Rev.
120, 2049–2122 (2020).
8. Ramos-Terrón, S., Camacho, L., Correa-Baena, J. P., Perini, C. A. &
de Miguel, G. Chelating diamine surface modifier enhances
performance and stability of lead halide perovskite solar cells. Mater.
Today 85, 60–68 (2025).
9. Hu, H. et al. Enhanced photostability of lead halide perovskite
nanocrystals with Mn <sup>3+</sup> incorporation. ACS Appl. Mater. Interfaces 16,
17946–17953 (2024).
10. Li, N. et al. Microscopic degradation in formamidinium-cesium lead
iodide perovskite solar cells under operational stressors. Joule 4,
1743–1758 (2020).
11. Priyadarshini, P., Senapati, S. & Naik, R. Lead-free organic inorganic
hybrid halide perovskites: An emerging candidate for bifunctional
applications. Renew. Sustain. Energy Rev. 186, 113649 (2023).
12. Gegevičius, R., Franckevičius, M. & Gulbinas, V. The role of grain
boundaries in charge carrier dynamics in Polycrystalline metal halide
perovskites. Eur. J. Inorg. Chem. 2021, 3519–3527 (2021).
13. Pecunia, V., Occhipinti, L. G. & Hoye, R. L. Z. Emerging indoor
photovoltaic technologies for sustainable internet of things. Adv.
Energy Mater. 11, 2100698 (2021).
14. Zhu, H. et al. Progress and applications of (Cu–)Ag–Bi–I
semiconductors, and their derivatives, as next-generation lead-free
materialsfor photovoltaics, detectorsand memristors. Int. Mater. Rev.
69, 19–62 (2024).
15. Turkevych, I., Kazaoui, S., Shirakawa, N. & Fukuda, N. Potential of
AgBiI4 rudorffites for indoor photovoltaic energy harvesters in
autonomous environmental nanosensors. Jpn. J. Appl. Phys. 60,
SCCE06 (2021).
16. Grandhi, G. K. et al. Promises and challenges of indoor photovoltaics.
Nat. Rev. Clean Technology 1, 132–147 (2025).
17. Wang, S. et al. Grain engineering for improved charge carrier transport
in two-dimensional lead-free perovskite field-effect transistors.
Mater. Horiz. 9, 2633–2643 (2022).
18. Cao, W. et al. Defects and doping engineering towards high
performance lead-free or lead-less perovskite solar cells. J. Energy
Chem. 68, 420–438 (2022).
19. MacLeod, B. P. et al. Self-driving laboratory for accelerated discovery
of thin-film materials. Sci. Adv. 6, eaaz8867 (2020).
20. Evans, L. M., Sözümert, E., Keenan, B. E., Wood, C. E. & Du Plessis, A.
A Review of Image-Based Simulation Applications in High-Value
Manufacturing. Arch. Comput. Methods Eng. 30, 1495–1552 (2023).
21. Roberts, G. et al. Deep learning for semantic segmentation of defects
in advanced STEM images of steels. Sci. Rep. 9, 12744 (2019).
22. Chen, T., Zhou, Y. & Rafailovich, M. Application of machine learning in
perovskite solar cell crystal size distribution analysis. MRS Adv. 4,
793–800 (2019).
23. Zhang, Y. & Zhou, Y. Machine learning quantification of grain
characteristics for perovskite solar cells. Matter 7, 255–265 (2024).
24. Barakati, K., Yuan, H., Goyal, A. & Kalinin, S. V. Physics-based reward
driven image analysis in microscopy. Digital Discov. 3, 2061–2069
(2024).
25. Pretto, T., Baum, F., Gouvêa, R. A., Brolo, A. G. & Santos, M. J. L.
Optimizing the synthesis parameters of double perovskites with
machine learning using a multioutput regression model. J. Phys.
Chem. C. 128, 7041–7052 (2024).
26. Tao, Q., Xu, P., Li, M. & Lu, W. Machine learning for perovskite
materials design and discovery. npj Comput. Mater. 7, 23 (2021).
27. Hu, J. et al. Interpretable machine learning predictions for efficient
perovskite solar cell development. Sol. Energy Mater. Sol. Cells 271,
112826 (2024).
28. Kirillov, A. et al. Segment anything. In Proc. IEEE/CVF Int. Conf.
Comput. Vis. 4015–4026 (2023).
29. Anwai, A. et al. Segment anything for microscopy. Nat. Methods 22,
1–13 (2025).
30. Zhuo, Z. et al. Segment anything for dendrites from electron
microscopy. In Proc. IEEE Int. Conf. Image Process. Appl. Syst. 1–6
(2025).
31. Simonyan, K. & Zisserman, A. Very deep convolutional networks for
large-scale image recognition. In Proc. 3rd Int. Conf. Learn.
Represent. 1–14 (2015).
32. Schneider, C. A., Rasband,W. S. & Eliceiri, K. W. NIH Imageto ImageJ:
25 years of image analysis. Nat. Methods 9, 671–675 (2012).
33. Kim, H. D., Ohkita, H., Benten, H. & Ito, S. Photovoltaic performance of
perovskite solar cells with different grain sizes. Adv. Mater. 28,
917–922 (2016).
34. Adhyaksa, G. W. P. et al. Understanding detrimental and beneficial
grain boundary effects in halide perovskites. Adv. Mater. 30, 1804792
(2018).
35. Chu, Z. et al. Impact of grain boundaries on efficiency and stability of
organic-inorganic trihalide perovskites. Nat. Commun. 8, 2230 (2017).
36. Sui, F., Guo, R., Zhang, Z., Gu, G. X. & Lin, L. Deep reinforcement
learning for digital materials design. ACS Mater. Lett. 3, 1433–1439
(2021).
37. Rajak, P. et al. Autonomous reinforcement learning agent for chemical
vapor deposition synthesis of quantum materials. npj Comput. Mater.
7, 108 (2021).
38. Lu, Q., Polyzos, K. D., Li, B. & Giannakis, G. B. Surrogate modeling for
bayesian optimization beyond a single gaussian process. IEEE Trans.
Pattern Anal. Mach. Intell. 45, 11283–11296 (2023).
39. Garrido-Merchán, E. C. & Hernández-Lobato, D. Dealing with
categorical and integer-valued variables in Bayesian Optimization
with Gaussian processes. Neurocomputing 380, 20–35 (2020).
40. Wilson, A., Fern, A. & Tadepalli, P. Using trajectory data to improve
bayesian optimization for reinforcement learning. J. Mach. Learn. Res.
15, 253–282 (2014).
41. Sui, Y., Zhuang, V., Burdick, J. & Yue, Y. Stagewise safe bayesian
optimization with gaussian processes. in Proc. 35th International
Conference on Machine Learning 80 4781–4789 (PMLR, 2018).
42. Nikolaidis, P. & Chatzis, S. Gaussian process-based Bayesian
optimization for data-driven unit commitment. Int. J. Electr. Power
Energy Syst. 130, 106930 (2021).
43. De’ath, G. & Fabricius, K. E. Classification and regression trees: a
powerful yet simple technique for ecological data analysis. Ecology
81, 3178–3192 (2000).
44. Gomes, C. M. A. & Jelihovschi, E. Presenting the regression tree
method and its application in a large-scale educational dataset. Int. J.
Res. Method Educ. 43, 201–221 (2020).
45. Breiman, L. Random Forests. Mach. Learn. 45, 5–32 (2001).
46. Lockwood, O. & Si, M. A review of uncertainty for deep reinforcement
learning. AIIDE 18, 155–162 (2022).
47. Pei, Z., Rojas-Arevalo, A. M., De Haan, F. J., Lipovetzky, N. &
Moallemi, E. A. Reinforcement learning for decision-making under
deep uncertainty. J. Environ. Manag. 359, 120968 (2024).
48. Kuang, N. L. & Leung, C. H. C. Performance effectiveness of
multimedia information search using the epsilon-greedy algorithm. In
2019 18th IEEE International Conference On Machine Learning And
[Applications (ICMLA) 929–936. https://doi.org/10.1109/ICMLA.2019.](https://doi.org/10.1109/ICMLA.2019.00160)
[00160 (IEEE, 2019).](https://doi.org/10.1109/ICMLA.2019.00160)
49. Zeng, X., He, S., Liu, K. & Zhao, J. Large scaled relation extraction with
reinforcement learning. In Proc. AAAI Conf. Artif. Intell. 32, 5658–5665
(2018).
50. Humphreys, P. et al. Large-scale retrieval for reinforcement learning.
Adv. Neural Inf. Process. Syst. 35, 20092–20104 (2022).
51. Qin, Y., Zhao, C. & Gao, F. An intelligent non-optimality self-recovery
method based on reinforcement learning with small data in big data
era. Chemometrics Intell. Lab. Syst. 176, 89–100 (2018).
52. Clifton, J. & Laber, E. Q-Learning: Theory and Applications. Annu.
Rev. Stat. Appl. 7, 279–301 (2020).
53. Kaliappan, A. T., Sathiakumar, S. & Parameswaran, N. Flexible power
consumptionmanagementusingQlearningtechniquesinasmarthome.
In 2013 IEEE Conference on Clean Energy and Technology (CEAT)
[342–347. https://doi.org/10.1109/CEAT.2013.6775653 (IEEE, 2013).](https://doi.org/10.1109/CEAT.2013.6775653)
54. Clark, J. A. Pillow (PIL Fork) Documentation. Release 11.2.1, Read the
Docs, 1–336 (2025).
55. Zelinsky, A. Learning OpenCV–Computer Vision with the OpenCV
Library (Bradski, G.R. et al.; 2008)[On the Shelf]. IEEE Robot. Autom.
Mag. 16, 100–100 (2009).
56. Derpanis, K. G. The harris corner detector (York University, 2004).
57. Deng, J. et al. ImageNet: A large-scale hierarchical image database. In
2009 IEEE Conference on Computer Vision and Pattern Recognition
[248–255. https://doi.org/10.1109/CVPR.2009.5206848 (IEEE, Miami,](https://doi.org/10.1109/CVPR.2009.5206848)
2009).
58. Russakovsky, O. et al. ImageNet large scale visual recognition
challenge. Int. J. Comput. Vis. 115, 211–252 (2015).
59. Pedregosa, F. et al. Scikit-learn: machine learning in Python. J. Mach.
Learn. Res. 12, 2825–2830 (2011).
Acknowledgements
TheauthorsthankYoung-JaeRyuandZuyangYeforfruitfuldiscussionsand
proof reading. S.S. thanks support from Royalty Research Fund, University
of Washington and the National Science Foundation through the University
of Washington Materials Research Science and Engineering Center, DMR2308979. R.L.Z.H., P.L. and X.G. would like to thank UK Research and
Innovation for a Frontier Grant (no. EP/X022900/1), awarded through the
2021 ERC Starting Grant scheme. In addition, the authors thank the Henry
Royce Institute for funding through the Industrial Collaborative Programme,
funded by the Engineering and Physical Sciences Research Council
(EPSRC, no. EP/X527257/1). R.L.Z.H. thanks the Science & Technology
Facilities Council and Royal Academy of Engineering for funding through a
Senior Research Fellowship (no. RCSRF2324-18-68). H.Z. and F.C.P.M.
thank Iberdrola through the ‘Energy for Future (E4F) Postdoctoral Fellowship’ (Marie Skłodowska).
Author contributions
S.S. and R.L.Z.H conceptualized the project. K.M.N. developed the ML
models and the optimization agent in Daisy frameworks. K.M.N and S.C.
performed data analysis and drafted the manuscript. P.L., H.Z. and X.G.
synthesized the Ag-Bi-I thin films, supervised by R.L.Z.H. and F.C.P.M. S.S.
and R.L.Z.H. supervised the overall project. All authors contributed to the
discussion and completion of this manuscript.
Competing interests
The authors declare no competing interests.
Additional information
Supplementary information The online version contains
supplementary material available at
[https://doi.org/10.1038/s41524-025-01701-7.](https://doi.org/10.1038/s41524-025-01701-7)
Correspondence and requests for materials should be addressed to
Robert L. Z. Hoye or Shijing Sun.
Reprints and permissions information is available at
[http://www.nature.com/reprints](http://www.nature.com/reprints)
Publisher’s note Springer Nature remains neutral with regard to
jurisdictional claims in published maps and institutional affiliations.
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/.](http://creativecommons.org/licenses/by/4.0/)
© The Author(s) 2025
섹션 본문
섹션 본문이 없습니다.
참고문헌 51건
- Organic photovoltaics: technology and market Solar Energy Materials and Solar Cells · Elsevier BV · 2004 10.1016/j.solmat.2004.02.030
- Oxide Semiconductor Thin‐Film Transistors: A Review of Recent Advances Advanced Materials · 2012 10.1002/adma.201103228
- Learning OpenCV---Computer Vision with the OpenCV Library (Bradski, G.R. et al.; 2008)[On the Shelf] IEEE Robotics & Automation Magazine · Institute of Electrical and Electronics Engineers · 2009 10.1109/mra.2009.933612
- CLASSIFICATION AND REGRESSION TREES: A POWERFUL YET SIMPLE TECHNIQUE FOR ECOLOGICAL DATA ANALYSIS Ecology · Wiley · 2000 10.1890/0012-9658(2000)081[3178:cartap]2.0.co;2
- NIH Image to ImageJ: 25 years of image analysis Nature Methods · Nature Portfolio · 2012 10.1038/nmeth.2089
- ImageNet: A large-scale hierarchical image database 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2009 10.1109/cvpr.2009.5206848
- ImageNet Large Scale Visual Recognition Challenge International Journal of Computer Vision · Springer Science+Business Media · 2015 10.1007/s11263-015-0816-y
- Photovoltaic Performance of Perovskite Solar Cells with Different Grain Sizes Advanced Materials · Wiley · 2015 10.1002/adma.201504144
- Impact of grain boundaries on efficiency and stability of organic-inorganic trihalide perovskites Nature Communications · Nature Portfolio · 2017 10.1038/s41467-017-02331-4
- Flexible power consumption management using Q learning techniques in a smart home 2013 10.1109/ceat.2013.6775653
- Large Scaled Relation Extraction With Reinforcement Learning Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2018 10.1609/aaai.v32i1.11950
- Recent developments of truly stretchable thin film electronic and optoelectronic devices Nanoscale · Royal Society of Chemistry · 2018 10.1039/c7nr09472h
- An intelligent non-optimality self-recovery method based on reinforcement learning with small data in big data era Chemometrics and Intelligent Laboratory Systems · Elsevier BV · 2018 10.1016/j.chemolab.2018.03.010
- Dealing with categorical and integer-valued variables in Bayesian Optimization with Gaussian processes Neurocomputing · Elsevier BV · 2019 10.1016/j.neucom.2019.11.004
- Understanding Detrimental and Beneficial Grain Boundary Effects in Halide Perovskites Advanced Materials · Wiley · 2018 10.1002/adma.201804792
- Thin-film solar cells exceeding 22% solar cell efficiency: An overview on CdTe-, Cu(In,Ga)Se2-, and perovskite-based materials Applied Physics Reviews · American Institute of Physics · 2018 10.1063/1.5061809
- Random Forests Machine Learning · Springer Science+Business Media · 2001 10.1023/a:1010933404324
- Application of Machine Learning in Perovskite Solar Cell Crystal Size Distribution Analysis MRS Advances · Springer Science+Business Media · 2019 10.1557/adv.2019.145
- Presenting the Regression Tree Method and its application in a large-scale educational dataset International Journal of Research & Method in Education · Routledge · 2019 10.1080/1743727x.2019.1654992
- Deep Learning for Semantic Segmentation of Defects in Advanced STEM Images of Steels Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-49105-0
- Solution-Processed Transparent Electrodes for Emerging Thin-Film Solar Cells Chemical Reviews · American Chemical Society · 2020 10.1021/acs.chemrev.9b00483
- Performance Effectiveness of Multimedia Information Search Using the Epsilon-Greedy Algorithm 2021 20th IEEE International Conference on Machine Learning and Applications (ICMLA) · 2019 10.1109/icmla.2019.00160
- Q-Learning: Theory and Applications Annual Review of Statistics and Its Application · Annual Reviews · 2020 10.1146/annurev-statistics-031219-041220
- Self-driving laboratory for accelerated discovery of thin-film materials Science Advances · American Association for the Advancement of Science · 2020 10.1126/sciadv.aaz8867
- Microscopic Degradation in Formamidinium-Cesium Lead Iodide Perovskite Solar Cells under Operational Stressors Joule · Elsevier BV · 2020 10.1016/j.joule.2020.06.005
- Machine learning for perovskite materials design and discovery npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00495-8
- Gaussian process-based Bayesian optimization for data-driven unit commitment International Journal of Electrical Power & Energy Systems · Elsevier BV · 2021 10.1016/j.ijepes.2021.106930
- Potential of AgBiI <sub>4</sub> rudorffites for indoor photovoltaic energy harvesters in autonomous environmental nanosensors Japanese Journal of Applied Physics · Institute of Physics · 2021 10.35848/1347-4065/abf2a5
- Emerging Indoor Photovoltaic Technologies for Sustainable Internet of Things Advanced Energy Materials · Wiley · 2021 10.1002/aenm.202100698
- The Role of Grain Boundaries in Charge Carrier Dynamics in Polycrystalline Metal Halide Perovskites European Journal of Inorganic Chemistry · Wiley · 2021 10.1002/ejic.202100360
- Autonomous reinforcement learning agent for chemical vapor deposition synthesis of quantum materials npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00535-3
- Deep Reinforcement Learning for Digital Materials Design ACS Materials Letters · American Chemical Society · 2021 10.1021/acsmaterialslett.1c00390
- Defects and doping engineering towards high performance lead-free or lead-less perovskite solar cells Journal of Energy Chemistry · Elsevier BV · 2021 10.1016/j.jechem.2021.12.002
- Grain engineering for improved charge carrier transport in two-dimensional lead-free perovskite field-effect transistors Materials Horizons · Royal Society of Chemistry · 2022 10.1039/d2mh00632d
- A Review of Uncertainty for Deep Reinforcement Learning Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment · Association for the Advancement of Artificial Intelligence (AAAI) · 2022 10.1609/aiide.v18i1.21959
- Room temperature two-dimensional lead halide perovskite thin-film transistors with high stability Cell Reports Physical Science · Elsevier BV · 2023 10.1016/j.xcrp.2022.101217
- A Review of Image-Based Simulation Applications in High-Value Manufacturing Archives of Computational Methods in Engineering · Springer Science+Business Media · 2023 10.1007/s11831-022-09836-2
- Surrogate Modeling for Bayesian Optimization Beyond a Single Gaussian Process IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2023 10.1109/tpami.2023.3264741
- Lead-free organic inorganic hybrid halide perovskites: An emerging candidate for bifunctional applications Renewable and Sustainable Energy Reviews · Elsevier BV · 2023 10.1016/j.rser.2023.113649
- Machine learning quantification of grain characteristics for perovskite solar cells Matter · Elsevier BV · 2023 10.1016/j.matt.2023.10.032
- Segment Anything 2023 10.1109/iccv51070.2023.00371
- Progress and applications of (Cu–)Ag–Bi–I semiconductors, and their derivatives, as next-generation lead-free materials for photovoltaics, detectors and memristors International Materials Reviews · Taylor & Francis · 2024 10.1177/09506608231213065
- Perovskite Quantum Dots for the Next‐Generation Displays: Progress and Prospect Advanced Functional Materials · Wiley · 2024 10.1002/adfm.202401284
- Enhanced Photostability of Lead Halide Perovskite Nanocrystals with Mn<sup>3+</sup> Incorporation ACS Applied Materials & Interfaces · American Chemical Society · 2024 10.1021/acsami.4c03356
- Interpretable machine learning predictions for efficient perovskite solar cell development Solar Energy Materials and Solar Cells · Elsevier BV · 2024 10.1016/j.solmat.2024.112826
- Optimizing the Synthesis Parameters of Double Perovskites with Machine Learning Using a Multioutput Regression Model The Journal of Physical Chemistry C · American Chemical Society · 2024 10.1021/acs.jpcc.3c06801
- Reinforcement learning for decision-making under deep uncertainty Journal of Environmental Management · Elsevier BV · 2024 10.1016/j.jenvman.2024.120968
- Physics-based reward driven image analysis in microscopy Digital Discovery · Royal Society of Chemistry · 2024 10.1039/d4dd00132j
- Promises and challenges of indoor photovoltaics Nature Reviews Clean Technology · 2025 10.1038/s44359-024-00013-1
- Chelating diamine surface modifier enhances performance and stability of lead halide perovskite solar cells Materials Today · Elsevier BV · 2025 10.1016/j.mattod.2025.02.015
- Segment Anything for Dendrites from Electron Microscopy 2025 10.1109/ipas63548.2025.10924514