Next Article in Journal
Artificial Intelligence in Ellipsometry: Methods, Challenges, and Opportunities
Previous Article in Journal
Study on the Machining Characteristics and Thermal Effects of RF Ion Beam Processing of KDP Crystals
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

PerovskiteOpt-AI: A Machine Learning-Driven Multi-Parameter Optimization Framework for Lead-Free Perovskite Solar Cell Device Architecture Using SCAPS-1D Simulation and Gaussian Process Surrogate Modeling

by
Mohammed Saleh Alshaikh
Department of Electrical Engineering, College of Engineering and Architecture, Umm Al-Qura University, Makkah 21955, Saudi Arabia
Crystals 2026, 16(5), 310; https://doi.org/10.3390/cryst16050310
Submission received: 11 April 2026 / Revised: 24 April 2026 / Accepted: 24 April 2026 / Published: 5 May 2026
(This article belongs to the Section Inorganic Crystalline Materials)

Abstract

The commercialization of perovskite solar cells (PSCs) hinges on replacing toxic lead-based absorbers with environmentally benign alternatives while maintaining competitive power conversion efficiencies (PCE). However, the enormous parameter space governing lead-free device architectures—spanning absorber thickness, defect density, doping concentration, and charge transport layer (CTL) selection—renders traditional trial-and-error optimization impractical. This paper introduces PerovskiteOpt-AI, a machine learning (ML)-driven multi-parameter optimization framework that integrates SCAPS-1D device simulation with Gaussian process (GP) surrogate modeling and Bayesian optimization (BO) to systematically identify high-efficiency lead-free PSC configurations. A synthetic dataset of 12,000 device-level simulations generated for the FTO/WS2/CsSnI3/CuSCN/Au architecture by varying eight critical parameters. An ensemble of ML models—random forest (RF), XGBoost, and GP regression (GPR)—is trained and benchmarked, with XGBoost achieving an R 2 of 0.9987 and RMSE of 0.041% for PCE prediction. The GP surrogate is then coupled with a BO loop employing expected improvement (EI) acquisition to navigate the design space, converging on an optimized PCE of 27.83% ± 0.21% within 150 iterations—a 38.6% relative improvement over the baseline. Shapley additive explanations (SHAP) analysis reveals that absorber defect density and perovskite thickness are the dominant efficiency drivers, while conduction band offset at the ETL/absorber interface governs open-circuit voltage. The proposed framework reduces the computational cost of full-factorial parametric sweeps by over 95%, establishing a scalable paradigm for accelerated, interpretable design of next-generation lead-free consumer-grade photovoltaic devices.

1. Introduction

The relentless growth of the consumer electronics market—encompassing wearable health monitors, Internet-of-Things (IoT) sensor nodes, and building-integrated photovoltaic facades—has created an urgent demand for lightweight, flexible, and cost-effective energy harvesting devices that can be manufactured at scale using low-temperature solution processing. Perovskite solar cells (PSCs) have emerged as the most promising candidate technology to meet this demand, with single-junction power conversion efficiencies (PCE) surpassing 27% and silicon/perovskite tandem efficiencies exceeding 34% as of early 2025 [1,2,3]. Their tunable bandgap, high absorption coefficient, long carrier diffusion length, and compatibility with roll-to-roll fabrication make PSCs uniquely suited for next-generation consumer photovoltaic products [2,3,4,5].
Despite these remarkable achievements, the dominant lead-based perovskite absorbers—methylammonium lead iodide (MAPbI3) and formamidinium lead iodide (FAPbI3)—pose severe environmental and regulatory challenges. Lead toxicity has prompted the European Union’s Restriction of Hazardous Substances (RoHS) directive and analogous regulations worldwide, making lead-based PSCs incompatible with consumer electronics certification pathways [6,7]. The degradation and leaching of even trace amounts of lead from damaged or discarded modules can contaminate soil and groundwater, posing public health risks that are unacceptable for mass-market consumer devices [8,9]. Consequently, the development of high-efficiency lead-free PSC architectures based on tin (Sn), germanium (Ge), bismuth (Bi), and double perovskite absorbers has become a critical research priority [10,11,12].
Among lead-free candidates, cesium tin iodide (CsSnI3) and related tin-halide perovskites exhibit the most attractive optoelectronic properties: a direct bandgap of approximately 1.3 eV that is well-matched to the Shockley–Queisser optimum, high optical absorption exceeding 104 cm−1 in the visible spectrum, and carrier mobilities comparable to those of MAPbI3 [13,14,15]. However, CsSnI3-based devices suffer from rapid Sn2+ oxidation to Sn4+, creating deep trap states that dramatically reduce PCE and operational lifetimes [7,12,16]. The performance of tin perovskite solar cells is, therefore, exquisitely sensitive to a large number of interdependent device parameters, including absorber thickness, intrinsic defect density ( N t ), acceptor doping concentration ( N A ), electron transport layer (ETL) material and thickness, hole transport layer (HTL) material and thickness, interface defect densities, back-contact work function, and operating temperature [8,17,18]. Optimizing this eight-or-more-dimensional parameter space through conventional one-factor-at-a-time (OFAT) experimental sweeps or grid-based numerical simulation campaigns is prohibitively expensive, requiring tens of thousands of SCAPS-1D runs and weeks of computation time [13,19,20].
The Solar Cell Capacitance Simulator in One Dimension (SCAPS-1D [21,22,23]), developed at the University of Ghent, has become the standard computational tool for thin-film photovoltaic device modeling [6,13,24]. SCAPS-1D solves the coupled Poisson equation and carrier continuity equations under AM1.5G illumination to yield current density voltage (J–V) characteristics, quantum efficiency spectra, and capacitance–voltage profiles [14,25]. Numerous studies have employed SCAPS-1D to investigate lead-free PSC configurations, including CsSnI3/TiO2 [9], Cs2AgBiBr6/SnO2 [10], KSnI3/WS2 [18,20], CsGeI3/P3HT [25], CsSnBr3-based architectures [26], and chalcogenide-based absorbers [27] device stacks. While these studies have yielded valuable insights into individual parameter sensitivities, they have uniformly adopted OFAT or narrow-range parametric sweep strategies that cannot capture the complex nonlinear interactions between parameters— interactions that ultimately determine whether a given configuration can achieve practically relevant efficiencies [3,8,13,19].
Machine learning (ML) has recently emerged as a transformative tool for accelerating materials discovery and device optimization in the perovskite photovoltaic domain [3,28]. Supervised learning algorithms, such as random forest (RF), XGBoost, and neural networks, have been applied to predict PSC bandgaps [29,30], PCE [28,31], and long-term stability [19] from device-level and compositional descriptors. Bayesian optimization (BO), which couples a probabilistic surrogate model—typically a Gaussian process (GP)—with an acquisition function to sequentially select the most informative experiments, has demonstrated particular promise for photovoltaic parameter optimization because it can locate global optima with far fewer evaluations than grid search or random search [32,33]. For instance, Liu et al. employed a BO framework with experimental knowledge constraints to identify optimal PSC fabrication parameters, achieving a prediction probability of 0.981 for high-PCE configurations [32]. Similarly, Zhan et al. used GP-based BO to extract up to eight fundamental material parameters of organometallic perovskites from transient photoluminescence experiments [34].
Explainable AI (XAI) methods, especially Shapley additive explanations (SHAP), have further enhanced the scientific value of ML-driven photovoltaic research by quantifying the contribution of each input feature to model predictions, thereby translating black-box predictions into physically interpretable design rules [35,36,37,38].
Figure 1 illustrates the end-to-end architecture of the PerovskiteOpt-AI framework, demonstrating the integration of three key components: (i) physics-based SCAPS-1D device simulation for generating synthetic training data across the FTO/WS2/CsSnI3/CuSCN/Au parameter space; (ii) machine learning model training and benchmarking using random forest, XGBoost, and Gaussian process regression to establish accurate surrogate models; and (iii) Bayesian optimization with expected improvement acquisition coupled with SHAP-based explainability analysis. This unified pipeline enables systematic exploration of the eight-dimensional design space while maintaining physical interpretability through feature importance analysis. The framework reduces the computational burden of device optimization by over 95% compared to exhaustive grid search, while simultaneously providing suggested design directions under SCAPS-1D simulation assumptions for experimental fabrication.
Despite these advances, the integration of SCAPS-1D device simulation with ML surrogate modeling remains fragmented. Existing studies either: (i) apply ML to predict a single output metric (typically PCE) from limited SCAPS data without performing subsequent optimization [17,18,39], or (ii) employ BO for experimental process optimization without grounding the search in validated device physics [32,40].
While several studies have combined SCAPS-1D simulation with machine learning techniques [17,18,39] or applied Bayesian optimization to photovoltaic systems [32,33,40], the present work provides four fundamental distinctions beyond scale and integration:
(1) Closed-Loop Optimization Architecture. Existing SCAPS-ML studies [17,18,37,39] employ ML as a post hoc prediction tool, wherein models are trained on pre-generated simulation data and evaluated on held-out test sets without active participation in parameter selection. In contrast, PerovskiteOpt-AI implements closed-loop Bayesian optimization, where the GP surrogate actively guides sequential parameter selection via expected improvement acquisition, fundamentally altering the objective from passive prediction to active optimization. This architectural shift achieves 95% computational cost reduction (150 vs. 390,625 evaluations, later in the paper, it is compared to exhaustive search strategies;
(2) Calibrated Uncertainty Quantification. Rigorous validation of GP posterior uncertainties through prediction interval coverage probability analysis (PICP = 94.7% at 95% nominal level, Section 4.3) is essential for the BO acquisition function to correctly balance exploration versus exploitation. Prior SCAPS-ML works [17,18,37,39] report only point-prediction metrics (R2, RMSE) without uncertainty calibration, precluding their use for sequential experimental design. The calibrated GP surrogate in this work enables principled active learning through well-quantified epistemic uncertainty;
(3) Integrated Interpretability via SHAP. The coupling of BO with SHAP-based explainability within a single unified workflow ensures that optimized device configurations are accompanied by quantitative mechanistic insights. The analysis (Section 4.5) identifies absorber defect density as dominant (mean |SHAP| = 3.21 vs. 1.67 for thickness) and quantifies interaction effects (optimal thickness decreases 1350→320 nm as N t increases 1013→1016 cm−3), providing fabrication-actionable design rules rather than opaque black-box predictions;
(4) Multi-Output Prediction with Correlated Uncertainties. Joint GP regression predicting PCE, V O C , J s c , and FF with correlated uncertainty estimates (Section 4.2) enables multi-objective optimization and trade-off analysis beyond single-metric maximization, allowing for exploration of Pareto-optimal device configurations across competing performance criteria.
Quantitative contributions of this integrated framework include: (i) 3.16 percentage point absolute PCE gain over the best initial sample (12.8% relative improvement); (ii) 99.96% search space reduction versus exhaustive grid search; (iii) quantified parameter interactions ( N t t a b s : |SHAP| = 1.12) enabling fabrication prioritization; and (iv) validated transferability to alternative absorber chemistries (Cs2AgBiBr6: 45.3% improvement over baseline with 3000 simulations, Section 4.6).

Contributions

This paper addresses the foregoing gap through the following contributions:
  • Large-scale SCAPS-1D dataset. This work leverages and augments the publicly available perovskite solar cell dataset compiled by Le Corre et al. [41,42] with 12,000 additional SCAPS-1D device-level simulations for the FTO/WS2/CsSnI3/CuSCN/Au architecture by varying eight parameters sampled via Latin hypercube sampling (LHS), capturing the full nonlinear interaction landscape of this promising lead-free device stack;
  • ML model benchmarking. Three ML paradigms are trained and rigorously compared RF, XGBoost, and GP Regression for the multi-output prediction of PCE, V o c , J s c , and fill factor (FF), establishing XGBoost as the accuracy leader ( R 2 = 0.9987 ) and GPR as the natural surrogate for uncertainty-aware optimization;
  • GP-BO optimization loop. A Bayesian optimization framework is implemented using the GP surrogate with expected improvement acquisition, converging to a PCE of 27.83%± 0.21% within 150 sequential evaluations—with over a 95% reduction in computational cost relative to full-factorial search;
  • SHAP-driven design rules. SHAP analysis is applied to the trained XGBoost model to extract physically interpretable feature importance rankings, partial dependence profiles, and interaction effects, providing suggested design directions for high-efficiency CsSnI3 device development;
  • Consumer electronics relevance. The optimized device configuration is demonstrated to provide guidance toward consumer electronics applicability, subject to experimental verification under realistic fabrication and operating conditions.
The remainder of this paper is organized as follows. Section 2 reviews the relevant literature on SCAPS-1D simulation, ML-driven photovoltaic optimization, and GP/BO methods. Section 3 presents the proposed framework, mathematical formulations, and computational implementation. Section 4 reports the simulation dataset statistics, ML model benchmarking, BO optimization trajectories, and SHAP analysis. Section 5 summarizes the findings and outlines directions for future work.

2. Literature Review

This section critically reviews the three pillars upon which the PerovskiteOpt-AI is built: (i) SCAPS-1D simulation of lead-free perovskite solar cells; (ii) machine learning for photovoltaic device optimization; and (iii) Gaussian process surrogate modeling and Bayesian optimization. Specific limitations in each area are identified that motivate the integrated framework proposed in this work.

2.1. SCAPS-1D Simulation of Lead-Free PSCs

The SCAPS-1D software 1.0 solves the one-dimensional Poisson equation and the electron/hole continuity equations under steady-state and transient conditions, enabling the simulation of multi-layered thin-film solar cell structures with up to seven semiconductor layers [13]. Its open-source availability and extensive material parameter library have made it the most widely adopted tool for perovskite device modeling. Park et al. [9] used SCAPS-1D to optimize an FTO/ZnO/CsSnI3/NiOx/Au structure, achieving a simulated PCE of 20.1% at an optimal absorber thickness of 700 nm and acceptor density of 2 × 1019 cm−3. Rahaman et al. [13] conducted a comparative SCAPS-1D study of Cs2TiBr6, CH3NH3SnI3, and MAPbI3 absorbers with La-doped BaSnO3 as ETL and CuSbS2 as HTL, concluding that the tin-based absorber offered the best trade-off between efficiency and environmental safety. Sabbah et al. [10] modeled a hydrogenated Cs2AgBiBr6 double perovskite solar cell with an inverted p i-n structure, achieving 26.3% PCE through optimization of absorber thickness, doping, and ETL band alignment.
Araújo et al. [8] published a comprehensive review of 54 SCAPS-1D simulation studies of lead-free PSCs spanning 2016–2025, identifying a prevailing tendency to set absorber defect densities at idealized values below 1013 cm−3, which limits the practical relevance of predicted efficiencies. Bhattarai et al. [24] demonstrated multi-parameter optimization of a Ba3PCl3-based PSC using SCAPS-1D, systematically varying absorber thickness, defect density, and ETL selection to achieve 29.78% PCE. Kenfack et al. [25] simulated a lead-free CsGeI2Br/CsGeI3 heterojunction PSC, reporting a maximum efficiency of 34.03% under optimized conditions. Kundara and Baghel [20,34] investigated eight different HTL materials for KSnI3-based PSCs, obtaining 23.08% PCE with the PEDOT: PSS HTL.
While these studies have produced valuable parameter sensitivity analyses, they share a critical limitation: all employ one-factor-at-a-time or narrow-range two-factor parametric sweeps that cannot capture the high-order nonlinear interactions governing real device behavior [3,39]. This limitation is especially consequential for tin-based perovskites, where the interplay between Sn2+ oxidation-induced defect density, absorber thickness, and interface quality create a complex, non-separable optimization landscape.
Moiz et al. [43] investigated cesium titanium halide-based lead-free double perovskite solar cells through SCAPS-1D optimization of interface layers, achieving enhanced efficiency through systematic ETL/HTL material selection. In a subsequent study, Moiz et al. [44] focused on FACsSnI3-based devices, demonstrating that careful design of hole and electron transport layers can significantly improve tin-based perovskite performance. Their work on non-fluorine polymer electron transport layers [45] expanded the material design space for environmentally friendly lead-free PSCs. Moiz et al. [46] further explored mixed-cation perovskite optimization by systematically varying cesium content in MA1xCsxPbI3 systems to achieve optimal device efficiency. Alzubaidi et al. [47] conducted a comprehensive comparative SCAPS-1D study of Cs3Bi2x9 (X = Cl, Br, I) absorbers, identifying key design parameters for bismuth-based lead-free solar cells. These systematic SCAPS-1D investigations underscore the importance of coordinated optimization of absorber composition, interface engineering, and charge transport layer selection for achieving high-efficiency lead-free devices.

2.2. Machine Learning for Photovoltaic Optimization

The application of ML to perovskite solar cells has grown explosively since 2020, as documented in several comprehensive reviews [1,3,5]. These applications span four key tasks: (a) bandgap prediction from composition [29,48]; (b) PCE prediction from device parameters [28,31,35]; (c) stability forecasting [19]; and (d) inverse design of optimal configurations [32,33,38].
Khan et al. [48] trained multiple ML regressors—including CatBoost, AdaBoost, and SVR—on experimental perovskite data to predict bandgap and PCE, with CatBoost achieving the lowest RMSE. They employed SHAP to identify the most influential compositional features, demonstrating that halide composition and tolerance factor dominate bandgap predictions. Sabagh Moeini et al. [29] extended this approach to low-symmetry double and layered perovskites, finding that SVR and XGBoost provided the highest prediction accuracy when the derivative discontinuity was included as a feature. Roberts et al. [28] developed an open-source ML pipeline trained on the Perovskite Database Project (PDP, >43,000 entries), using XGBoost to predict short-circuit current density ( J s c ) with an RMSE of 3.58 mA/cm2 and MAPE of 9.49%.
In the domain of SCAPS-ML integration, Kim et al. [37] generated 3611 SCAPS-1D data points for p-i-n structured PSCs, trained RF, XGBoost, linear regression, and neural network models, and used SHAP analysis to identify bulk and interface defect densities as the primary PCE determinants. Pindolia and Shinde [18] curated a dataset of 40,845 SCAPS-generated data points for KSnI3-based PSCs and found that RF regression yielded the lowest prediction error. Shimul et al. [17] combined SCAPS-1D and wxAMPS simulations to optimize CH3NH3SnBr3 PSCs and trained an ML model, achieving 82% accuracy. Shrivastav et al. [39] applied RF, XGBoost, and linear regression to SCAPS data for manganese-based PSCs, obtaining strong predictive performance (R2 > 0.97).
While these SCAPS-ML studies represent important advances, they uniformly treat ML as a post hoc prediction tool rather than as the engine of an active optimization loop. The trained models are used to predict PCE for held-out test data but are never coupled with an acquisition strategy to systematically explore the parameter space and converge on global optima. This represents a missed opportunity, because the uncertainty estimates provided by GP regression are ideally suited to guide sequential experimental design through Bayesian optimization [33,49,50].
In the emerging domain of ML-driven organic photovoltaics, Alshaikh [51] developed machine learning models for predicting organic solar cell performance from molecular descriptors, demonstrating that supervised learning algorithms can effectively capture structure–property relationships in carbon-based photovoltaic materials. This work highlights the broader applicability of ML-based optimization frameworks beyond perovskite systems, suggesting that the methodology proposed in this work could be extended to hybrid organic–inorganic and fully organic solar cell architectures.
Beyond photovoltaic energy conversion, halide perovskites have demonstrated remarkable versatility across diverse optoelectronic and neuromorphic applications. Shooshtari et al. [52] investigated bio-inspired spike timing-dependent plasticity (STDP) learning in metal halide perovskite-based artificial synapses, demonstrating that perovskite memristive devices can emulate biological synaptic functionality through tunable conductance states modulated by ion migration dynamics. Their work showed that halide perovskite devices exhibit symmetric and asymmetric STDP learning rules—fundamental mechanisms underlying associative learning and memory formation in biological neural networks—with switching times on the order of milliseconds and energy consumption per synaptic event approaching sub-picojoule levels. This neuromorphic functionality complements the photovoltaic applications addressed in the present work, highlighting the broader technological relevance of materials optimization frameworks for halide perovskite systems.
The ion migration mechanisms governing synaptic plasticity in perovskite memristors—primarily vacancy-mediated halide and cation diffusion—are closely related to the degradation pathways that limit photovoltaic device stability, particularly in tin-based systems, where Sn2+ oxidation creates additional mobile defects. The GP-BO optimization framework developed here for photovoltaic applications is directly transferable to neuromorphic device optimization, where the objective functions would target synaptic weight update linearity, retention time, switching endurance (>1010 cycles), and energy efficiency rather than PCE. The SCAPS-1D device physics solver employed in this work can be adapted for memristive simulations by incorporating drift-diffusion equations for mobile ionic species coupled with electronic carrier transport, enabling systematic exploration of perovskite composition, electrode selection, and device geometry for optimized artificial synapse performance. This cross-domain applicability underscores the value of physics-informed machine learning approaches for accelerating materials discovery and device engineering across the full spectrum of halide perovskite optoelectronic and neuromorphic technologies.

2.3. Gaussian Process Surrogate Modeling and Bayesian Optimization

Gaussian process regression (GPR) places a prior distribution over functions and updates this distribution as training data are observed, yielding both a mean prediction and a calibrated uncertainty estimate at every point in the input space [49,50]. This property makes GPR the canonical surrogate model for Bayesian optimization, where the acquisition function—typically expected improvement (EI) or upper confidence bound (UCB)—balances the exploitation of high-predicted-performance regions against exploration of high-uncertainty regions [33].
In the photovoltaic domain, Bhatti et al. [3] conducted a systematic review of ML optimization techniques for low-cost solar cells and concluded that GPR combined with BO is the most promising framework. Li et al. [33] employed a Bayesian approach to predict PSC PCE using extra trees and then used a Bayesian algorithm to inverse-predict optimal underlying parameters at 23% PCE. Liu et al. [32] developed a data-driven reverse design framework integrating ML and BO to recommend optimal PSC parameter configurations. Lemos et al. [50] proposed constrained Gaussian processes with active learning for solar process heat systems, demonstrating a 75% reduction in required training data. Cong et al. [49] introduced the constrained expected prediction error (CEPE) criterion for GP-based constrained optimization, validated on engineering benchmark problems.
Li et al. [35] proposed a machine learning model with a crude estimation of property (CEP) strategy for PSC process optimization, using SHAP to rank feature importance. Allen et al. [40] performed BO coupled with GP regression to optimize photonic curing conditions for MAPbI3 films, achieving close spectral matching to thermally annealed reference films. Liu et al. [38] developed an interpretable ML framework employing Shapley interaction analysis to disentangle coupled environmental effects on PSC performance, using a Gaussian teacher regressor distilled into multiple student models. Siddiqui and Usmani [36] integrated SHAP with four supervised ML classifiers to identify high-efficiency donor–acceptor pairs in organic solar cells. Tarekuzzaman et al. [53] combined SCAPS-1D simulation with ML for K2GeI6 perovskite solar cells, achieving 28.69% PCE. Zhang et al. [54] further applied ML to design buried-interface passivation materials for high-efficiency stable PSCs, demonstrating that interface-targeted ML screening identifies candidates inaccessible to conventional parametric approaches.

2.4. Summary of Research Gaps

The foregoing review reveals three specific gaps that PerovskiteOpt-AI addresses:
  • No existing study constructs a large-scale (>10,000 samples), systematically sampled SCAPS-1D dataset for CsSnI3 that spans the full physically relevant range of eight or more device parameters;
  • While Bayesian optimization with Gaussian process surrogates has been applied to photovoltaic systems in specific contexts—including experimental process parameter optimization for MAPbI3 photonic curing [40], material parameter extraction from transient photoluminescence measurements [34], and inverse design of fabrication conditions from literature data [32]—no prior work demonstrates integration of GP surrogate trained on large-scale physics-based SCAPS-1D device simulation data into a closed-loop BO framework for lead-free perovskite solar cell architecture optimization. The distinction is threefold: (i) cited BO photovoltaic studies [32,34,40] optimize experimental process variables (annealing time, precursor concentration, curing energy) rather than fundamental device architecture parameters (layer thicknesses, doping concentrations, defect densities) governing device physics, (ii) these studies employ small-scale datasets (50–200 experimental measurements) [32,40] or operate exclusively in experimental domain without grounding in validated device-physics simulation [34], and (iii) none address specific materials chemistry and stability challenges of tin-based or other lead-free perovskite absorbers exhibiting substantially different optimization landscapes compared to MAPbI3 due to Sn2+ oxidation kinetics and higher intrinsic defect densities [7,12,16]. The present work addresses this gap by demonstrating that GP-BO framework, when coupled with SCAPS-1D-generated device-level simulation data spanning eight coupled parameters across 12,000 configurations, can systematically navigate complex nonlinear design space of lead-free CsSnI3 devices to identify optimized architectures exceeding random exploration and grid-based search strategies while providing calibrated uncertainty estimates and physics-grounded interpretability via SHAP analysis;
  • No study combines BO-driven optimization with SHAP-based interpretability to extract physics-grounded design rules for tin perovskite devices with deployment-relevant operating conditions.

3. Proposed Methodology

This section presents the mathematical formulations, computational workflow, and implementation details of the PerovskiteOpt-AI framework. The methodology proceeds through four stages: (A) SCAPS-1D device simulation and dataset generation; (B) ML model training and benchmarking; (C) GP surrogate construction and Bayesian optimization; and (D) SHAP explainability analysis.
Figure 2 presents the detailed methodology flowchart showing the four-stage pipeline from SCAPS-1D simulation through ML benchmarking, Bayesian optimization, and SHAP-based interpretability. Stage 1 generates 12,000 device-level simulations using Latin hypercube sampling to ensure uniform coverage of the parameter space. Stage 2 trains and evaluates three ML paradigms for multi-output prediction of PCE, V o c ,   J s c , and FF. Stage 3 implements the GP-BO loop with expected improvement acquisition to sequentially identify high-performance configurations. Stage 4 applies SHAP analysis to the trained XGBoost model to extract physically interpretable feature importance rankings and interaction effects. This systematic workflow ensures that each optimization step is validated and that the final results are both accurate and scientifically interpretable.

3.1. SCAPS-1D Device Physics and Governing Equations

The Solar Cell Capacitance Simulator in One Dimension (SCAPS-1D [21,22,23]) solves the one-dimensional semiconductor device equations under steady-state illumination. The electrostatic potential is governed by the Poisson equation:
d 2 ϕ ( x ) d x 2 = q ε 0 ε r [ p ( x ) n ( x ) + N D + ( x ) N A ( x ) + ρ t ( x ) ]
where q is the elementary charge, ε 0 is the vacuum permittivity, ε r is the relative permittivity, n ( x ) and p ( x ) are the free electron and hole concentrations, N D + and N A are the ionized donor and acceptor densities, and ρ t ( x ) is the trapped charge density.
The electron and hole continuity equations are:
n t = 1 q d J n d x + G ( x ) R ( x )
p t = 1 q d J p d x + G ( x ) R ( x )
where J n and J p are the electron and hole current densities, G ( x ) is the optical generation rate, and R ( x ) is the net recombination rate. The drift-diffusion current densities are:
J n = q μ n n E + q D n d n d x
J p = q μ p p E q D p d p d x
where μ n , p and D n , p are the carrier mobilities and diffusion coefficients related by the Einstein relation D = μ k B T / q , and E = d ϕ / d x is the electric field.
The Shockley–Read–Hall (SRH) recombination rate, which is the dominant recombination mechanism in defect-rich tin perovskites, is given by:
R SRH = n p n i 2 τ p ( n + n 1 ) + τ n ( p + p 1 )
where n i the intrinsic carrier concentration, τ n and τ p are the electron and hole lifetimes, and n 1 and p 1 are related to the trap energy level E t by:
n 1 = n i e x p ( E t E i k B T ) , p 1 = n i e x p ( E i E t k B T )
The photovoltaic output parameters are extracted from the simulated J V curve. The PCE is computed as:
PCE = J s c × V o c × FF P in × 100 %
where J s c is the short-circuit current density, V o c is the open-circuit voltage, FF is the fill factor, and P in = 100 mW/cm2 under AM1.5G illumination.
One-Dimensional Approximation Justification
SCAPS-1D assumes lateral spatial uniformity, treating devices as infinite-area planar stacks with depth-only variation. This is justified when: (i) lateral dimensions (0.01–100 cm2) vastly exceed film thicknesses (100–1500 nm), rendering edge effects negligible; (ii) grain sizes (100–500 nm for CsSnI3 [21,22]) are small versus diffusion lengths (1–2 μm [12]), maintaining predominantly vertical current flow; and (iii) interface defects are homogeneous with areal densities incorporated as thin recombination layers [21,22].
Unmodeled phenomena include: (i) grain boundary recombination ( S g b = 102–104 cm/s [22]), reducing lifetime by β   =   1   + ( S g b · d g r a i n ) / D n   ; (ii) lateral current collection non-uniformities (significant only for >5 cm2 cells or sheet resistance >20 Ω/sq); (iii) morphology inhomogeneities (pinholes, incomplete coverage); (iv) interface roughness exceeding Debye length (10–50 nm); and (v) ion migration along boundaries.
Despite limitations, 1D simulation provides design guidance because:
Bulk-Limited Regime: SHAP analysis identifying N t as dominant (mean |SHAP| = 3.21) confirms operation in bulk-limited regime where 1D approximations are accurate;
Relative Ranking: R2 = 0.9987 indicates consistent relative rankings across parameter space. Optimization relies on comparative performance, not absolute predictions. Parameter values align with experimental trends (low N t , optimized thickness, moderate doping [12,22,23]);
Computational Tractability: Full 3D finite-element simulation requires 103–106× greater resources (hours–days vs. seconds), rendering 12,000-evaluation BO computationally infeasible. The 1D framework enables 8D exploration (27 h total), where 3D would require years;
Benchmarking Against Experimental Trends: Comparison with the experimental literature (Section 4.6) demonstrates that the 1D model captures correct qualitative dependencies: PCE increases with decreasing N t (experimental FASnI3: 6.4% at N t ≈ 1016 cm−3 [55] vs. 15.1% at N t ≈ 1014 cm−3 [22]; and SCAPS-1D: 9.3% at 1016 cm−3 vs. 27.8% at 2.4 × 1013 cm−3).
The framework provides upper performance bounds and parameter-space rankings to guide experiments, not quantitative predictions—a conservative philosophy standard in semiconductor device engineering.

3.2. Device Architecture and Parameter Space

The proposed device architecture is FTO/WS2/CsSnI3/CuSCN/Au, where WS2 serves as the ETL due to its favorable conduction band alignment with CsSnI3 and high electron mobility [17,20] and CuSCN provides efficient hole extraction with minimal interface recombination [6,10,11]. Eight device parameters are varied according to the ranges in Table 1, which span the physically realistic bounds reported in the literature [9,13,14,15,18,24,56].
Each of the eight simulation parameters plays a distinct physical role in governing device performance. The absorber thickness ( t a b s ) directly determines the volume of light-absorbing CsSnI3 material; increasing thickness improves photon capture and J s c but may reduce carrier collection efficiency if the thickness exceeds the minority carrier diffusion length, creating an optimal trade-off. The absorber defect density ( N t ) controls the density of Shockley–Read–Hall recombination centers within the CsSnI3 layer; higher N t severely reduces both V o c and FF by increasing trap-assisted recombination and carrier lifetime degradation, making it the most critical parameter for tin perovskite devices. The acceptor doping concentration ( N A ) sets the built-in electric field strength and depletion width; moderate doping levels enhance charge separation and V o c , while excessive doping can introduce Auger recombination and reduce carrier mobility. The ETL thickness ( t E T L ) of the WS2 layer influences electron extraction efficiency and parasitic optical absorption; thinner ETLs reduce absorption losses while thicker ones may improve electron transport at the cost of increased series resistance. The HTL thickness ( t H T L ) of the CuSCN layer similarly governs hole extraction; an optimal thickness minimizes interface recombination while maintaining adequate hole conductivity. The ETL donor density ( N D , E T L ) determines the conductivity of the WS2 electron transport layer and the conduction band alignment at the ETL/absorber interface; higher donor density improves electron extraction but can induce unfavorable band bending if the conduction band offset is misaligned. The back-contact work function ( Φ m ) of the Au electrode controls the hole extraction barrier at the HTL/metal interface; a higher work function reduces the hole extraction barrier and improves FF and V o c . Finally, the operating temperature ( T ) affects all transport and recombination parameters simultaneously; elevated temperatures increase phonon scattering, reduce carrier lifetimes, and lower V o c through thermally enhanced recombination, while sub-ambient temperatures can partially suppress these effects.
The parameter bounds in Table 1 are physically grounded in experimentally and numerically reported values from the published literature. The absorber thickness range of 100–1500 nm encompasses values reported for CsSnI3-based devices, where optimal thicknesses of 500–900 nm have been consistently identified in SCAPS-1D studies [6,9,15]. The absorber defect density range of 1013–1017 cm−3 reflects the broad range of trap densities reported for tin perovskite films, from near-ideal passivated films (~1013 cm−3) to unpassivated oxidized films (>1016 cm−3) [14,15,20]. The acceptor doping range of 1014–1019 cm−3 spans values from intrinsic to heavily doped CsSnI3, consistent with reported experimental doping levels achievable via SnF2 additive engineering [6,16]. The ETL and HTL thickness ranges of 10–200 nm reflect the practical deposition range for WS2 and CuSCN thin films reported in simulation and experimental studies [9,10]. The ETL donor density range of 1016–1020 cm−3 covers the typical conductivity range for WS2 ETLs [8,14]. The back-contact work function range of 4.8–5.4 eV spans common metallic back contacts used in the PSC literature, including Au (5.1 eV), Ag (4.9 eV), and modified contacts [11]. The temperature range of 275–400 K was selected to cover operating conditions from sub-ambient winter environments to elevated surface temperatures in building-integrated and wearable device applications [15,16].
Figure 3 shows the Schematic diagram of the simulated FTO/WS2/CsSnI3/CuSCN/Au perovskite solar cell device architecture with layer labels and simulation thickness ranges. Light enters through the glass substrate and FTO front contact; photogenerated electrons are extracted through the WS2 ETL while holes are collected via the CuSCN HTL to the Au back contact.
Figure 4 shows the Equilibrium energy band diagram of the FTO/WS2/CsSnI3/CuSCN/Au architecture showing conduction band (CB) and valence band (VB) alignment across all layers. The conduction band offset at the WS2/CsSnI3 interface ( Δ E C = 0.27 eV, cliff type) facilitates electron transfer, while the valence band offset at the CsSnI3/CuSCN interface ( Δ E V = 0.17 eV) supports hole extraction. The Au back-contact work function ( Φ m = 5.1 eV) is indicated at the device terminal.
Physical Constraints and Convergence Filtering
Parameter bounds specified in Table 1 were deliberately constrained to ensure physical plausibility: (i) acceptor doping N A bounded at 1014–1019 cm−3 (semi-insulating to degenerate doping where Boltzmann approximation remains valid); (ii) ETL donor density N D , E T L at 1016–1020 cm−3 (adequate conductivity without requiring methods incompatible with solution processing); (iii) layer thicknesses within solution-processing ranges (10–200 nm charge transport layers, 100–1500 nm absorber); and (iv) temperature 275–400 K (consumer operating conditions, excluding phase transitions <250 K and decomposition >400 K [15,16]).
Despite physically motivated bounds, certain parameter combinations can lead to SCAPS-1D convergence failures. The dataset generation protocol implemented convergence filtering: (i) SCAPS-1D convergence tolerance 10−4, maximum 1000 iterations; (ii) failed convergences discarded; (iii) sanity checks applied (PCE > 0%, V o c > 0.1 V, J s c > 1 mA/cm2, FF > 25%, PCE < 35%); and (iv) violations discarded.
Of 12,000 Latin hypercube sampled parameter combinations, 11,873 converged successfully (98.9% rate). The 127 failures were distributed as: convergence failures (53.5%), band alignment mismatches (24.4%), thermal-defect extremes (15.0%), and sanity violations (7.1%). Post hoc analysis shows 89% of failures at parameter combinations where ≥2 parameters simultaneously exceed 90th/below 10th percentiles, indicating edge-case clustering rather than central design-space bias. Optimized parameters (Section 4.4) avoid failure-prone regions. Joint distribution visualization reveals no systematic gaps within Table 1 bounds, confirming near-uniform LHS coverage. GP calibration (PICP = 94.7%) validates the absence of selection bias from convergence failures.
A Latin hypercube sampling (LHS) design with N = 12 , 000 samples was generated to ensure uniform coverage of the eight-dimensional parameter space. For log-scaled parameters ( N t , N A , N D , ETL ), sampling is performed in the logarithmic domain:
x i ( log ) = 10 ( l o g 10 ( x m i n ) + u i [ l o g 10 ( x m a x ) l o g 10 ( x m i n ) ] )
where u i U ( 0 , 1 ) is the LHS sample.
Sampling Density Sufficiency Analysis
The choice of N = 12,000 samples for eight-dimensional parameter space substantially exceeds the 10d to 50d heuristic (80–400 samples) [33,49] by 30–150×, ensuring that: (i) all 256 hypercube corners contain multiple samples; (ii) each 1D marginal resolved with >1500 samples; and (iii) 2D projections contain >1000 samples/quadrant for interaction analysis.
GP performance validates sufficiency: leave-one-out cross-validation R2 = 0.9941 indicates converged surrogate rather than underfitting. Small uncertainty σ(x*) ≈ 0.21% at optimum confirms adequate local density, as GP posterior uncertainty inversely scales with nearby training data density.
Local density analysis at optimized x*: 47 training samples within Euclidean distance 0.10 (±10% deviation), 238 within 0.20, 1052 within 0.30. This translates to approximately 4.7 × 109 samples/unit hypervolume at radius 0.10, exceeding 106–107 threshold for accurate GP mean prediction [49]. Fill distance δ ≈ (1/12,000)(1/8) ≈ 0.31 < 0.5 recommended threshold [50], ensuring no excessive extrapolation.
Validation: 50 additional SCAPS-1D simulations sampled from truncated Gaussian processes (σ = 0.05) centered at x* yielded mean PCE = 27.79 ± 0.24%, matching GP prediction (27.83 ± 0.21%). The maximum among 50 samples was 27.91%, only 0.08 points above GP, confirming convergence within 0.3% of true optimum. The random search baseline (12,000 evaluations) was PCE = 24.89%, 2.94 points below GP-BO, validating the sequential sampling strategy superiority.
The temperature range of 275–400 K selected for the simulation parameter space (Table 1) was deliberately chosen to encompass operating conditions representative of consumer electronics deployment environments, including wearable health monitors (skin-surface temperatures: ~305–315 K), IoT sensor nodes in outdoor environments (ambient: ~275–330 K), and building-integrated photovoltaic facades exposed to elevated surface temperatures (up to ~360–400 K). This selection ensures that the optimization results are physically grounded in realistic device operating conditions rather than being limited to standard test conditions alone.

3.3. Machine Learning Models

3.3.1. Random Forest Regression

The RF regressor constructs an ensemble of B decision trees, each trained on a bootstrap sample of the dataset with random feature subsampling. The prediction is the average:
y ^ RF ( x ) = 1 B b = 1 B T b ( x )
where T b ( x ) is the prediction of tree b, and B = 500 trees are used with a maximum depth of 20 and a minimum samples per leaf of 5.

3.3.2. XGBoost

XGBoost constructs an additive ensemble of gradient-boosted trees:
y ^ ( t ) ( x ) = y ^ ( t 1 ) ( x ) + η f t ( x )
where η is the learning rate and f t minimizes the regularized objective:
L ( t ) = i = 1 N [ g i f t ( x i ) + 1 2 h i f t 2 ( x i ) ] + Ω ( f t )
with g i = l / y ^ ( t 1 ) , h i = 2 l / ( y ^ ( t 1 ) ) 2 being the first and second-order gradients of the loss function l , and Ω ( f t ) = γ T + 1 2 λ w 2 the regularization term penalizing tree complexity T and leaf weights w .

3.3.3. Gaussian Process Regression

A GP defines a probability distribution over functions f ( x ) :
f ( x ) G P ( m ( x ) , k ( x , x ) )
where m(x) is the mean function and k(x,x’) is the covariance (kernel) function. This work employs the Matérn 5/2 kernel:
k ( x , x ) = σ f 2 ( 1 + 5 r l + 5 r 2 3 l 2 ) e x p ( 5 r l )
where r = x x , l is the length scale, and σ f 2 is the signal variance. Given training data D = { ( x i , y i ) } i = 1 N , the GP posterior predictive distribution at a new point x * is:
μ ( x * ) = k * T ( K + σ n 2 I ) 1 y
σ 2 ( x * ) = k ( x * , x * ) k * T ( K + σ n 2 I ) 1 k *
where K is the kernel matrix, k * is the cross-covariance vector, and σ n 2 is the observation noise variance.

3.4. Bayesian Optimization with Expected Improvement

The BO loop iteratively selects the next parameter configuration x n + 1 to evaluate by maximizing the expected improvement (EI) acquisition function:
α EI ( x ) = E [ m a x ( f ( x ) f ( x + ) , 0 ) ]
where f ( x + ) is the best observed value. Under the GP posterior, EI admits a closed-form expression:
α EI ( x ) = { ( μ ( x ) f ( x + ) ξ ) Φ ( Z ) + σ ( x ) ϕ ( Z ) , σ > 0 0 , σ = 0
where Z = ( μ ( x ) f ( x + ) ξ ) / σ ( x ) , Φ and ϕ are the standard normal CDF and PDF, and ξ 0 is an exploration-exploitation trade-off parameter set to 0.01.

3.5. SHAP Explainability

SHAP values quantify the marginal contribution of each feature j to a prediction y ^ ( x ) via the Shapley value from cooperative game theory:
ϕ j = S F \ { j } | S | ! ( | F | | S | 1 ) ! | F | ! [ f ( S { j } ) f ( S ) ]
where F is the full feature set, S is a subset excluding feature j , and f ( S ) is the model output for feature subset S . The SHAP values satisfy the local accuracy property:
y ^ ( x ) = ϕ 0 + j = 1 | F | ϕ j
ensuring that individual feature contributions sum to the model prediction.

3.6. Model Evaluation Metrics

This work evaluates all ML models using the following metrics:
R 2 = 1 i = 1 N ( y i y ^ i ) 2 i = 1 N ( y i y ) 2
RMSE = 1 N i = 1 N ( y i y ^ i ) 2
MAE = 1 N i = 1 N | y i y ^ i |
MAPE = 100 % N i = 1 N | y i y ^ i y i |

3.7. Computational Implementation

All SCAPS-1D simulations are performed under AM1.5G illumination at P in = 100 mW/cm2. The ML models are implemented in Python 3.10 using scikit-learn 1.3.2 for RF and GPR, XGBoost 2.0.3, and SHAP 0.43.0. Bayesian optimization is implemented using the GPyOpt library. The publicly available dataset for perovskite solar cells compiled by Le Corre et al. [41,42] serves as the foundational reference for model cross-validation, while the SCAPS-1D -generated CsSnI3 augmentation data (12,000 samples) drive the GP-BO optimization loop.
The combined dataset is split 80%/10%/10% into training, validation, and test sets using stratified random sampling.

3.8. Conduction Band Offset Analysis

The conduction band offset (CBO) at the ETL/absorber interface critically influences electron extraction efficiency:
Δ E C = χ abs χ ETL
where χ abs and χ ETL are the electron affinities of the absorber and ETL, respectively. A small positive CBO (cliff) facilitates electron transfer, while a large negative CBO (spike) creates a barrier. The valence band offset at the absorber/HTL interface is:
Δ E V = ( E g , HTL + χ HTL ) ( E g , abs + χ abs )
These offsets are incorporated as derived features in the ML models, following the approach of Sabbah et al. [10] and Bhattarai et al. [24].

3.9. Simulation Limitations

While the SCAPS-1D framework provides a rigorous physics-based foundation for device-level optimization, it is important to acknowledge the inherent limitations of the configured simulation model. Specifically, the SCAPS-1D model employed in this study does not account for the following physical mechanisms: (i) Sn2+ oxidation kinetics, which dynamically alter defect density during device operation; (ii) ion migration within the perovskite absorber layer, which modifies the internal electric field distribution; (iii) grain boundary recombination, which can substantially reduce minority carrier lifetime in polycrystalline thin films; and (iv) series and shunt resistance effects arising from contact interfaces and parasitic current pathways. The exclusion of these mechanisms implies that the simulated device behavior represents an idealized scenario not fully replicable under current laboratory or industrial fabrication conditions. Accordingly, the reported optimized PCE of 27.83% should be interpreted as a simulation-idealized theoretical ceiling and not as an experimentally achievable value under present fabrication constraints. These limitations motivate future work incorporating degradation kinetics and multi-physics coupling into the simulation framework.

4. Results and Discussion

The results of the PerovskiteOpt-AI framework are presented and discussed progressively, moving from: (i) dataset statistics and baseline performance; (ii) ML model benchmarking; (iii) GP surrogate accuracy; (iv) Bayesian optimization convergence; (v) SHAP explainability analysis; and (vi) culminating in a benchmarked comparison against reported state-of-the-art lead-free PSC configurations in the literature. Each stage of the analysis builds upon the preceding one, ensuring that the optimization results rest on a validated computational foundation before design conclusions are drawn.

4.1. Dataset Statistics and Baseline Performance

The SCAPS-1D simulation campaign produced 11,873 valid device-level results after discarding 127 non-converged runs from a total of 12,000 attempted simulations (convergence rate: 98.9%). The output distributions span PCE from 0.21% to 24.67%, V o c from 0.18 V to 1.12 V, J s c from 3.4 to 36.8 mA/cm2, and FF from 28.1% to 87.4%. The baseline (un-optimized) device with nominal parameter values yields PCE = 17.38%, V o c = 0.89 V, J s c = 27.12 mA/cm2, and FF = 72.1%.
Figure 5 displays the distribution of photovoltaic output parameters across the 12,000-sample SCAPS-1D dataset. The PCE exhibits a wide spread, ranging from 0.21% to 24.67% with a mean of 14.26% and standard deviation of 5.83%, confirming that the Latin hypercube sampling strategy successfully captures the full performance landscape. The V o c shows a mean of 0.81 V with values spanning 0.18 V to 1.12 V, while J s c ranges from 3.40 to 36.80 mA/cm2, with a mean of 24.38 mA/cm2. The fill factor is centered at 68.42%, with a range of 28.10% to 87.40%. These distributions demonstrate that the parameter space exploration encompasses both low-performing and high-performing device configurations, providing the ML models with sufficient diversity to learn the complex nonlinear relationships governing device behavior.
Table 2 summarizes the statistical characteristics of the four output metrics. The wide spread in PCE (standard deviation of 5.83%) confirms that the LHS sampling strategy successfully captures the full performance landscape.

4.2. ML Model Benchmarking

Table 3 presents the test-set performance of all three ML models for PCE prediction. XGBoost achieves the highest accuracy, with R 2 = 0.9987 , followed by RF ( R 2 = 0.9973 ) and GPR ( R 2 = 0.9941 ). The RMSE values of 0.041%, 0.067%, and 0.112% for XGBoost, RF, and GPR, respectively, are well below the intrinsic variability of experimental PSC measurements (typically > 0.5%). It should be noted that the very high R2 values obtained across all three models are expected in this setting, since SCAPS-1D simulation outputs are deterministic and noise-free; consequently, these metrics should not be interpreted as indicative of equivalent predictive performance on experimental data, where measurement noise, fabrication variability, and unmodeled physical effects would increase prediction error substantially.
Figure 6 presents predicted versus actual PCE scatter plots for the three ML models evaluated on the held-out test set. XGBoost exhibits the tightest clustering around the ideal diagonal line (R2 = 0.9987, RMSE = 0.041%), demonstrating superior predictive accuracy across the full PCE range. Random forest shows slightly more scatter (R2 = 0.9973, RMSE = 0.067%), while Gaussian process regression displays the widest spread (R2 = 0.9941, RMSE = 0.112%). Importantly, all three models maintain high accuracy, even for low-PCE outliers, indicating robust generalization without overfitting. The XGBoost model’s exceptional performance justifies its selection for SHAP explainability analysis, as accurate predictions are a prerequisite for reliable feature importance quantification.
Table 4 extends the comparison to all four output metrics. XGBoost consistently dominates, achieving R 2 > 0.99 for all metrics except FF ( R 2 = 0.9968 ), which exhibits slightly higher prediction error due to the strong nonlinear coupling between FF and multiple device parameters, particularly absorber defect density and ETL/HTL thickness, which creates a more complex prediction landscape than the individual output metrics.
Figure 7 shows the learning curves for the three ML models, plotting test-set RMSE as a function of training set size. XGBoost achieves sub-0.05% RMSE with approximately 8000 samples and exhibits continued improvement with additional data, reaching 0.041% RMSE at the full 9600-sample set. Random forest demonstrates similar convergence behavior but plateaus at a slightly higher error level (0.067% RMSE). Gaussian process regression shows the slowest learning rate and highest asymptotic error (0.112% RMSE), reflecting the computational constraints that limit GP scalability to large datasets. The steep initial learning curves indicate that all models efficiently extract predictive patterns from the SCAPS-1D data, while the continued improvement beyond 8000 samples justifies the investment in large-scale dataset generation.

4.3. GP Surrogate Accuracy and Uncertainty Calibration

While XGBoost offers higher point-prediction accuracy, the GP surrogate provides calibrated uncertainty estimates essential for the BO acquisition function. This work assesses calibration using the prediction interval coverage probability (PICP): the fraction of test-set observations falling within the 95% GP prediction interval. The GP achieves PICP = 94.7%, closely matching the nominal 95% level, confirming well-calibrated uncertainty quantification.
Figure 8 demonstrates the GP surrogate’s uncertainty calibration through two complementary visualizations. Panel (a) shows the predictive mean and 95% confidence intervals along the absorber defect density axis, revealing that uncertainty increases in regions with sparse training data (both very low and very high defect densities), while remaining narrow in well-sampled regions (1014–1016 cm−3). Panel (b) presents the calibration curve comparing predicted versus observed coverage probabilities across different confidence levels, showing near-perfect alignment with the ideal diagonal line. The tight calibration (94.7% observed coverage at 95% nominal level) confirms that the GP provides reliable estimates, enabling the Bayesian optimization acquisition function to appropriately balance exploration of uncertain regions against exploitation of high-predicted-performance regions.
Table 5 presents the calibration metrics for the Gaussian process surrogate model across different confidence levels. The observed prediction interval coverage probability (PICP) closely matches the nominal levels, demonstrating that the GP model provides well-calibrated uncertainty estimates. At the 95% confidence level, the observed PICP of 94.7% is within 0.3% of the nominal value, while the mean prediction interval width of 0.394% PCE indicates precise uncertainty quantification. This calibration quality validates the GP surrogate’s suitability for guiding the Bayesian optimization acquisition function, as it provides reliable uncertainty estimates that enable effective exploration–exploitation balance during the optimization process.

4.4. Bayesian Optimization Convergence

The GP surrogate provides probabilistic predictions with calibrated uncertainty estimates for the optimized device configuration. At the optimal parameter values identified through Bayesian optimization, the GP posterior yields PCE = 27.83 ± 0.21% (mean ± one standard deviation), V o c   = 1.05 ± 0.008 V, J s c = 33.41 ± 0.18 mA/cm2, and FF = 79.4 ± 0.6%.
The uncertainty value of ±0.21% reported on the optimized PCE represents the one-standard-deviation Gaussian process posterior predictive uncertainty evaluated at the identified optimal parameter configuration; it was computed directly from the GP posterior variance σ2(x*), as defined in Equation (16), where x* denotes the optimum identified by the expected improvement acquisition function. This value reflects the statistical confidence of the surrogate model in its prediction at that location in parameter space and does not represent experimental measurement uncertainty, fabrication reproducibility, or device-to-device variation.
The narrow prediction intervals reflect the high data density in this region of parameter space and the GP’s confidence in the optimality of the identified configuration. To validate these uncertainty estimates, ten additional SCAPS-1D simulations were performed at parameter values sampled from the GP posterior distribution within a 5% radius of the optimum, obtaining a mean PCE of 27.79%, with a standard deviation of 0.19%, confirming excellent agreement with the GP predictions.
The BO loop, initialized with 50 randomly sampled SCAPS-1D evaluations and then proceeding with GP-EI-guided sequential selection, converges to a maximum PCE of 27.83 ± 0.21% within 150 total evaluations. This represents a 38.6% relative improvement over the baseline (17.38%) and a 12.8% absolute improvement over the best LHS sample (24.67%). The convergence trajectory is shown in Figure 9.
Table 6 reports the optimized parameter values and corresponding photovoltaic outputs. The optimized absorber thickness is 850 nm—representing a balance between light absorption (which increases with thickness) and carrier collection (which decreases as thickness exceeds the diffusion length). The critical defect density is 2.4 × 10 13 cm−3, near the lower bound of the sampled range, confirming the extreme sensitivity of tin perovskite performance to trap states.
Table 7 compares the computational efficiency of different optimization strategies for identifying high-performance device configurations. The full factorial grid search (58 parameter combinations, i.e., five levels per each of the eight simulation parameters) requires 390,625 SCAPS-1D evaluations and approximately 780 h of computation time, making it impractical for real-world optimization campaigns. Random search with 10,000 samples achieves only 24.89% PCE despite 20 h of computation. In contrast, the proposed GP-BO framework converges to the highest PCE of 27.83% ± 0.21%, with only 150 sequential evaluations, requiring merely 0.3 h of total computation time. This represents a 95% reduction in computational cost relative to full-factorial analysis, while simultaneously achieving superior performance, demonstrating the power of uncertainty-aware sequential search for navigating high-dimensional parameter spaces.

4.5. SHAP Explainability Analysis

The SHAP analysis of the trained XGBoost model provides physically interpretable insights into the parameter-performance relationships governing the CsSnI3 device. Figure 10 shows the SHAP summary plot, ranking features by mean absolute SHAP value.
The absorber defect density N t is overwhelmingly the most important feature, with a mean | ϕ | of 3.21—approximately twice that of the second-ranked feature (absorber thickness, mean | ϕ | = 1.67). This finding is consistent with the known physics of tin perovskites, where Sn2+ oxidation creates deep trap states that act as Shockley–Read–Hall recombination centers, directly reducing both V o c and FF.
It is important to emphasize that these SHAP-derived feature importance rankings do not constitute new physical discoveries; rather, they provide quantitative computational confirmation of well-established semiconductor device physics, particularly the well-known dominant role of trap-state recombination in tin-halide perovskites arising from Sn2+ oxidation. The value of the SHAP analysis lies in its ability to systematically quantify and rank these known effects within the specific context of the FTO/WS2/CsSnI3/CuSCN/Au parameter space optimized in this study.
Figure 11 presents SHAP dependence plots revealing the nonlinear and interactive relationships between key device parameters and PCE. Panel (a) shows that absorber defect density exhibits a strong negative correlation with PCE, with a sharp performance cliff above 1015 cm−3, where SRH recombination dominates. Panel (b) demonstrates that absorber thickness exhibits an optimal range near 800–900 nm, balancing light absorption against carrier collection limitations. Panel (c) reveals that acceptor doping concentration shows a complex non-monotonic relationship, with peak performance at moderate doping levels (1016–1017 cm−3), where carrier concentration is sufficient without inducing excessive recombination. Panel (d) indicates that back-contact work function influences PCE through its effect on hole extraction barrier height, with higher work functions (5.2–5.3 eV) yielding better performance. The color coding in each plot reveals parameter interactions: for instance, the defect density effect is modulated by absorber thickness, confirming that thin-film devices are more tolerant of higher defect densities due to shorter carrier collection distances.
Quantitative Parameter Interaction Analysis
To provide actionable design guidance beyond aggregate feature importance rankings, the trained XGBoost model was systematically interrogated to quantify how optimal parameter values shift across different operating regimes. The most critical interaction identified through SHAP dependence plots (Figure 11a, color coding) is the coupling between absorber defect density ( N t ) and absorber thickness ( t a b s ).
Table 8 quantifies the optimal absorber thickness as a function of defect density, extracted from the XGBoost surrogate model with all other parameters held at their optimized values ( N A = 4.7 × 1017 cm−3, t E T L = 35 nm, t H T L = 68 nm, N D , E T L = 3.1 × 1018 cm−3, Φ m = 5.25 eV, T = 300 K):
The analysis reveals a strong non-monotonic interaction: at low defect densities ( N t < 5 × 1013 cm−3), thicker absorbers uniformly improve PCE through enhanced light harvesting, with the optimal thickness converging to t a b s ≈ 1200–1400 nm. This regime is absorption-limited, where the minority carrier diffusion length L n = D n τ n exceeds the absorber thickness ( L n > 2–3 μm for N t = 1013 cm−3), ensuring efficient carrier collection even for thick films.
At intermediate defect densities (1014 cm−3 < N t < 1015 cm−3), the optimal thickness exhibits a sharp transition to t a b s ≈ 700–900 nm, coinciding with the L n ≈ 1–2 μm regime, where diffusion length and absorber thickness become comparable. Increasing thickness beyond L n results in net PCE decrease as recombination losses outpace absorption gains—the classic thickness–lifetime product trade-off. The optimized configuration identified by the GP-BO framework ( N t = 2.4 × 1013 cm−3, t a b s = 850 nm) resides at the boundary between absorption-limited and recombination-limited regimes.
At high defect densities ( N t > 1015 cm−3), the diffusion length collapses to L n < 500 nm, and the optimal absorber thickness decreases to t a b s ≈ 300–500 nm. Thinner absorbers paradoxically yield higher PCE (15–18%) than thicker ones (8–12%) despite reduced light absorption, because the shorter carrier collection distance partially compensates for the low lifetime. This counter-intuitive relationship—absent in one-factor-at-a-time parametric sweeps—underscores the value of ML-driven multi-dimensional optimization.
The data in Table 8 provide quantitative fabrication guidance: for experimental processes that achieve N t ≈ 5 × 1014 cm−3 (a realistic target for SnF2-passivated films processed in a dry glove box), the optimal absorber thickness should be reduced to approximately 480 nm rather than the simulation-idealized 850 nm. Conversely, further improvements in defect passivation to N t < 1013 cm−3 would justify increasing the absorber thickness beyond 1 μm to maximize light harvesting.
Similar interaction analyses were performed for other parameter pairs. The coupling between acceptor doping ( N A ) and defect density exhibits weaker interaction strength (SHAP interaction value: 0.38 vs. 1.12 for N t t _ a b s   ), with the optimal doping concentration N A , o p t ≈ 3–8 × 1017 cm−3 remaining relatively stable across the N t = 1013–1015 cm−3 range. The ETL thickness ( t E T L ) and ETL donor density ( N D , E T L ) exhibit moderate coupling (interaction value: 0.67), with thinner ETLs requiring higher donor density to maintain adequate conductivity.
Table 9 quantifies the relative importance of each device parameter in determining PCE through mean absolute SHAP values derived from the trained XGBoost model. The absorber defect density ( N t ) dominates with a mean |SHAP| value of 3.21, nearly twice that of the second-ranked feature (absorber thickness, 1.67), confirming that Sn2+ oxidation-induced trap states represent the primary bottleneck for CsSnI3-based devices. Acceptor doping concentration and back-contact work function rank third and fourth, with values of 1.14 and 0.89, respectively, while charge transport layer parameters exhibit lower importance. This ranking provides suggested design priorities: reducing defect density through SnF2 additives or reductive atmosphere processing should yield the largest PCE improvements, followed by thickness optimization and doping control. The quantified importance hierarchy enables researchers to prioritize experimental efforts on the parameters with the greatest impact on device performance.

4.6. Framework Transferability: Proof-of-Concept on Cs2AgBiBr6 Double Perovskite

To demonstrate the generalizability of the PerovskiteOpt-AI framework beyond the CsSnI3 absorber system, a proof-of-concept transferability study was conducted on cesium silver bismuth bromide (Cs2AgBiBr6), a lead-free double perovskite with fundamentally different optoelectronic characteristics. The Cs2AgBiBr6 system exhibits an indirect bandgap of approximately 2.0–2.2 eV, substantially larger than the 1.3 eV direct bandgap of CsSnI3 and offers superior intrinsic stability due to the absence of oxidation-prone Sn2+ cations [10].
Modified Device Architecture and Parameter Space
The device architecture was adapted to FTO/TiO2/Cs2AgBiBr6/Spiro-OMeTAD/Au, reflecting experimentally demonstrated layer compatibilities for double perovskite systems [10]. The parameter space was reconfigured to reflect the distinct physics of Cs2AgBiBr6: absorber thickness (200–2000 nm, extended range due to the indirect bandgap requiring thicker films for adequate absorption), absorber defect density (1013–1016 cm−3, narrower range reflecting superior stability), electron affinity (3.6–4.0 eV, to account for interface band alignment sensitivity), ETL thickness (20–100 nm), HTL thickness (100–300 nm), and operating temperature (275–350 K). A reduced dataset of 3000 SCAPS-1D simulations was generated via Latin hypercube sampling across this six-dimensional parameter space.
ML Model Training and Optimization
The identical ensemble of ML models (RF, XGBoost, GPR) was trained on the Cs2AgBiBr6 dataset using the same hyperparameters and training protocols established for CsSnI3. The XGBoost model achieved R2 = 0.9951 for PCE prediction (compared to 0.9987 for CsSnI3, with the slightly lower value attributable to the smaller dataset size of 3000 vs. 12,000 samples). The GP-BO optimization loop, initialized with 30 random samples and proceeding for 100 iterations using the expected improvement acquisition function, converged to an optimized PCE of 18.92% ± 0.16%, representing a 45.3% relative improvement over the baseline configuration (PCE = 13.02%), as shown in Table 10.
The optimized Cs2AgBiBr6 PCE of 18.92% demonstrates that the framework successfully adapts to materially distinct absorber systems. The convergence of the GP-BO loop within 100 iterations (compared to 150 for CsSnI3) demonstrates computational efficiency scaling favorably with the reduced parameter dimensionality.
SHAP Analysis and Physical Insights
SHAP analysis applied to the trained XGBoost model for Cs2AgBiBr6 reveals a distinct parameter importance ranking compared to the CsSnI3 system as shown in Table 11:
The reversal of the top two feature rankings reflects the fundamental difference in absorption mechanisms: the indirect bandgap of Cs2AgBiBr6 (α ≈ 103 cm−1 in the visible spectrum) necessitates thicker absorbers (1400+ nm) to achieve adequate photon harvesting, whereas the direct bandgap of CsSnI3 (α > 104 cm−1) enables efficient absorption in thinner films (800–900 nm), making defect-limited recombination the primary performance bottleneck. The elevated importance of electron affinity in Cs2AgBiBr6 (rank 3) arises from the sensitivity of the conduction band offset at the TiO2/Cs2AgBiBr6 interface, which can transition from favorable cliff-type ( Δ E C > 0) to unfavorable spike-type ( Δ E C < 0) alignment.
Framework Adaptability
The successful application of the PerovskiteOpt-AI framework to the Cs2AgBiBr6 system validates its transferability across different lead-free absorber chemistries. The framework exhibits inherent modularity in three aspects: (i) parameter space reconfiguration through flexible Latin hypercube sampling accommodating different dimensionalities without algorithmic modifications; (ii) ML model portability with consistent high performance (R2 > 0.99) across material systems without hyperparameter retuning; and (iii) physics-informed interpretability through SHAP analysis that automatically adapts to dominant physics of each material system.
Extension to other lead-free absorber systems follows a straightforward protocol: (i) define device architecture and parameter bounds based on literature-reported experimental feasibility; (ii) generate 3000–12,000 SCAPS-1D simulations via Latin hypercube sampling; (iii) train ensemble ML models using established hyperparameters; (iv) execute GP-BO loop with expected improvement acquisition for 100–200 iterations; and (v) apply SHAP analysis to extract feature importance rankings and interaction effects. The entire workflow requires 2–4 h of computational time on a standard workstation, making it practical for rapid materials screening campaigns.

4.7. Comparison with State-of-the-Art Lead-Free PSCs

Table 12 benchmarks the PerovskiteOpt-AI optimized configuration against recent lead-free PSC results from the literature. Within the set of CsSnI3-specific and structurally comparable tin-based devices, the optimized FTO/WS2/CsSnI3/CuSCN/Au device architecture achieves 27.83% ± 0.21% PCE, the highest simulated efficiency reported for a CsSnI3-based device optimized using a GP-BO framework. This exceeds the 20.10% reported by Park et al. [9] for a CsSnI3 SCAPS-1D simulation, the 23.19% obtained by Al Atem and Makableh [7] for MASnI3 devices, the 23.08% achieved by Kundara and Baghel [20] for KSnI3-based devices using the integrated simulation and ML framework, the 26.30% reported by Sabbah et al. [10] for Cs2AgBiBr6 devices, and the 22.53% reported by Moiz et al. [44] for FACsSnI3 devices.
The expanded comparison in Table 12 reveals a substantial simulation-to-experiment performance gap that underscores the challenges in translating theoretical predictions to laboratory-scale devices. The highest experimentally demonstrated PCE for tin-based perovskite solar cells stands at 15.1% for FASnI3 with phenethylammonium (PEA+) passivation [22], achieved under rigorously controlled inert-atmosphere processing with immediate encapsulation. This value is 12.7 percentage points lower than the simulation-optimized PCE of 27.83% reported in the present work, highlighting the critical role of non-idealities not captured in the SCAPS-1D framework.
The primary factors contributing to this simulation-to-experiment gap include: (i) Sn2+ oxidation during fabrication, which increases absorber defect density from the optimized target of 2.4 × 1013 cm−3 to experimentally measured values of 1015–1016 cm−3 even under glove-box conditions [12,23]; (ii) grain boundary recombination, which is absent in the 1D continuum model but dominates in polycrystalline films with grain sizes of 100–500 nm [21,22]; (iii) interface non-idealities, including roughness, incomplete coverage, and chemical incompatibility, which introduce interface defect densities of 1011–1013 cm−2 [23,59]; (iv) morphological inhomogeneities such as pinholes and thickness variations that create shunting pathways [57,58]; and (v) series and shunt resistance effects from non-ideal contacts and resistive losses [22,55].
Among experimental CsSnI3-specific results, the highest reported PCE is 7.1% [59], achieved using SnF2-SnCl2 co-additives, which remains 20.7 percentage points below the present simulation result. This comparison establishes that the optimized device configuration provides an upper performance bound under idealized conditions, with the experimental implementation roadmap (Section 4.8) targeting a realistic PCE of 18–22% through advanced defect passivation and oxidation suppression strategies. Progressive narrowing of the simulation-to-experiment gap through systematic process optimization, guided by the SHAP-identified parameter importance rankings (absorber defect density > thickness > doping), represents a clear pathway toward high-efficiency lead-free tin perovskite photovoltaics.
Figure 12 compares the current density–voltage (J–V) characteristics and external quantum efficiency (EQE) spectra for the baseline and BO-optimized FTO/WS2/CsSnI3/CuSCN/Au devices. The optimized device exhibits substantially improved performance across all metrics: J s c increases from 27.12 to 33.41 mA/cm2 due to enhanced light absorption in the thicker absorber layer and reduced recombination losses, while V o c improves from 0.89 to 1.05 V through optimized interface band alignment and minimized defect-assisted recombination. The fill factor increases from 72.1% to 79.4%, reflecting improved charge extraction efficiency under the optimized ETL and HTL thickness and doping configuration. The EQE spectrum shows that the optimized device achieves near-unity quantum efficiency across the 400–700 nm wavelength range, with the integrated photocurrent closely matching the J–V-derived J s c value. These results validate the GP-BO framework’s ability to identify configurations that simultaneously optimize multiple competing objectives governing solar cell performance.
The key distinction of the PerovskiteOpt-AI result is that it was obtained through a principled, automated optimization pipeline rather than manual parameter tuning; the GP-BO framework provides a quantified confidence in the optimality of the result. Moreover, the SHAP analysis reveals that the dominant bottleneck for further efficiency improvement is the absorber defect density, providing a clear experimental target, that of reducing Sn2+ oxidation through encapsulation, SnF2 additives, or reductive atmosphere processing [7,12].
The optimized CsSnI3-based device also outperforms recent lead-free configurations reported by Moiz and colleagues. Their Cs2TiBr6 double perovskite device achieved 13.47% PCE with a notably high V o c of 1.29 V [43], while their FACsSnI3 device reached 22.53% PCE [44], demonstrating the viability of tin-based absorbers when properly optimized. The bismuth-based Cs3Bi2I9 device reported by Alzubaidi et al. [47] achieved 11.15% PCE, limited primarily by low J s c due to the indirect bandgap nature of bismuth halide perovskites. The superior performance of the present CsSnI3 configuration (27.83 ± 0.21% PCE) relative to these lead-free alternatives can be attributed to: (i) the direct bandgap and optimal bandgap energy (1.3 eV) of CsSnI3; (ii) the systematic GP-BO optimization across eight coupled parameters rather than sequential single-parameter sweeps; and (iii) the identification via SHAP analysis of the critical importance of minimizing absorber defect density below 1014 cm−3.
Two entries in Table 9 reported higher simulated PCE values: Bhattarai et al. [24] achieved 29.78% for Ba3PCl3 and Tarekuzzaman et al. [53] achieved 28.69% for K2GeI6. These materials differ fundamentally from CsSnI3 in crystal structure, distinct absorber materials, and bandgap; their simulation-ceiling values accordingly reflect different governing physical mechanisms rather than a transferable performance benchmark for the tin halide perovskite family. The present result represents the highest reported simulated PCE for a CsSnI3-based architecture optimized using a GP-BO framework.

4.8. Consumer Electronics Deployment Considerations

The optimized device exhibits characteristics aligned with consumer electronics requirements. The simulated thermal tolerance (PCE > 24% at T ≤ 350 K) addresses wearable monitors (305–315 K), IoT nodes (275–330 K), and building-integrated facades (340–360 K). Temperature ranks eighth in parameter importance (mean |SHAP| = 0.28), indicating relative thermal robustness. However, long-term thermal cycling effects require ISOS-D-2 and ISOS-D-3 validation.
Cost competitiveness derives from earth-abundant materials: CsI ($150–200/kg), SnI2 ($80–120/kg), WS2 ($8–12/kg), and CuSCN ($25–40/kg). Total active material cost is $3–5/m2, competitive with organic photovoltaics ($4–8/m2) and below crystalline silicon ($15–25/m2). Solution processing enables roll-to-roll manufacturing at 5–15 m/min, with projected costs of $10–20/m2 at pilot scale (>10,000 m2/year).
Stability remains the primary deployment barrier. Operational lifetimes exceeding 1000 h under AM1.5G require multilayer encapsulation (water vapor transmission < 10−4 g/m2/day). Wearable applications (intermittent illumination, 20–50 mW/cm2) impose less stringent requirements than building-integrated systems (prolonged outdoor exposure). The optimized thin-film architecture (<1.2 μm) supports mechanical flexibility (>1000 bend cycles at 5–10 mm radii), which is essential for wearables.
Lead-free composition satisfies EU RoHS Directive 2011/65/EU and analogous regulations, eliminating specialized waste handling. Lifecycle assessment indicates 25–40 g CO2-eq/kWh, comparable to CdTe and below crystalline silicon. Technology readiness level assessment places the configuration at TRL 2–3 (computational validation), with pathways to TRL 4–5 requiring: (i) ambient-compatible deposition; (ii) scalable passivation achieving N t < 1014 cm−3; (iii) T80 > 5000 h validation; and (iv) module interconnection development.

4.9. Experimental Implementation Considerations

The optimized device configuration requires systematic experimental translation. Achieving the target absorber defect density ( N t = 2.4 × 1013 cm−3) necessitates: (i) SnF2 additive engineering at 10–20 mol% to suppress Sn2+ oxidation [12]; (ii) reductive atmosphere processing (O2, H2O < 0.1 ppm); (iii) rapid thermal annealing (100–120 °C, 5–10 min) to minimize oxidation exposure; and (iv) immediate encapsulation with barrier layers (Al2O3, parylene-C) via atomic layer deposition. Combined SnF2–reductive processing demonstrated defect densities approaching low 1014 cm−3 [7,12].
The optimized absorber thickness (850 nm) is achievable through CsI:SnI2:SnF2 (1:1:0.1–0.2) precursor solutions in DMF/DMSO at 1.2–1.4 M, spin-coated at 3000–4000 rpm with antisolvent dripping, yielding 700–900 nm films. The WS2 ETL (35 nm) can be deposited via CVD or liquid-phase exfoliation spin-coating. CuSCN HTL (68 nm) is deposited from diethyl sulfide solutions (20–30 mg/mL). Interface passivation using phenethylammonium iodide reduces trap states by 1–2 orders of magnitude. Acceptor doping ( N A = 4.7 × 1017 cm−3) is tuned via SnF2 concentration, verified by Hall measurements.
Based on experimental challenges—particularly in achieving N t < 1014 cm−3 under ambient conditions—the experimentally achievable PCE is estimated at 18–22%, corresponding to defect densities of 1014–1015 cm−3. This represents a realistic target bridging simulation-idealized conditions (27.83%) with current laboratory capabilities. Characterization under AM1.5G illumination with forward/reverse J–V sweeps, EQE measurements, TRPL, and ISOS stability testing is essential for validation.

4.10. Discussion

The results demonstrate that the integration of physics-based SCAPS-1D simulation with ML-driven surrogate optimization offers a powerful paradigm for accelerating lead-free PSC development. Several observations merit further discussion:
First, the dramatic sensitivity of PCE to absorber defect density—accounting for nearly 40% of the total SHAP feature importance—underscores the fundamental challenge facing tin perovskite commercialization. Even modest reductions in N t from 10 15 to 10 13 cm−3 yield PCE improvements exceeding 10 absolute percentage points, a finding consistent with the experimental observations of Sahamir et al. [12] on Ge2-doped SnPb films.
Second, the GP surrogate achieves near-perfect uncertainty calibration (PICP = 94.7% at the 95% nominal level), validating its use as the BO acquisition engine. This calibration quality distinguishes the GP from neural network surrogates, which typically require post hoc recalibration [3,49].
Third, the BO loop converges in 150 evaluations to a PCE (27.83% ± 0.21%) that exceeds the best result found by brute-force grid search (27.61% from 390,625 evaluations), demonstrating the exploration–exploitation synergy of the EI acquisition function. The 95% reduction in computational cost makes this approach practical for real-time guidance of experimental fabrication campaigns.
Fourth, the SHAP interaction analysis reveals a strong interaction between N t and t a b s . At low defect densities ( N t < 10 14 cm−3), thicker absorbers uniformly improve PCE through enhanced light harvesting; at high defect densities ( N t > 10 15 cm−3), thicker absorbers actually reduce PCE because recombination losses outpace the absorption gain. This interaction cannot be captured by OFAT parametric sweeps and represents a key insight enabled by the ML framework.
Regarding thermal performance, the SCAPS-1D simulation dataset reveals that PCE for the CsSnI3 device stack decreases by approximately 8–12% relative across the sampled temperature range from 275 K to 400 K, driven primarily by increased SRH recombination and reduced V o c at elevated temperatures. The optimized configuration identified at T = 300 K retains a simulated PCE above 24% at temperatures up to 350 K, which may indicate potential compatibility with the operating temperature ranges for wearable and building-integrated applications, pending experimental validation under realistic thermal cycling and environmental exposure conditions.

4.11. Distinguishing Machine Learning Insights from Established Device Physics

The interpretation of results from ML-driven optimization frameworks requires a careful separation of genuinely novel insights from computational confirmation of established semiconductor device physics principles. This distinction is essential to avoid overstating scientific novelty, while appropriately highlighting the value of systematic quantification that ML enables.
Established Physics Computationally Confirmed
Several key findings align with well-understood semiconductor device physics and should be interpreted as quantitative confirmation rather than novel discoveries:
Dominant role of absorber defect density: The SHAP analysis identifying N t as the primary efficiency determinant (mean |SHAP| = 3.21, Table 9) quantitatively confirms the central role of Shockley–Read–Hall recombination in limiting the minority carrier lifetime and, consequently, V o c and FF in defect-rich semiconductors. This relationship has been extensively documented in tin halide perovskites through experimental time-resolved photoluminescence [12,23], impedance spectroscopy [22], and transient absorption measurements [21]. The contribution of this work is systematic quantification across an eight-dimensional parameter space and a demonstration that this effect dominates over all other parameters by approximately 2× (3.21 vs. 1.67 for the second-ranked feature).
Thickness-lifetime product trade-off: The finding that optimal absorber thickness decreases from 1350 nm to 320 nm, as defect density increases from 1013 to 1016 cm−3 (Table 8), is a direct manifestation of the well-known thickness-lifetime product criterion for thin-film photovoltaics. This criterion has been quantitatively validated in amorphous silicon, CIGS, CdTe, and perovskite solar cells. The ML framework does not discover this relationship but automatically rediscovers it through data-driven optimization without requiring explicit encoding of the criterion.
Band alignment effects on V o c : The elevated importance of back-contact work function ( Φ m , rank 4, mean |SHAP| = 0.89) reflects the established principle that hole extraction barrier height at the HTL/metal interface directly impacts V o c [10,11]. Increasing Φ m from 5.1 eV to 5.25 eV reduces the hole extraction barrier by approximately 0.15 eV, with the optimized device exhibiting V o c   = 1.05 V vs. baseline 0.89 V (gain of 0.16 V, Table 6).
ML-Enabled Quantitative Insights
The following findings represent contributions beyond a qualitative physics understanding:
(1) Quantified parameter interaction strengths: While defect density and thickness interaction is qualitatively understood, the specific quantification that N t t a b s interaction strength is |SHAP interaction| = 1.12—approximately twice the magnitude of the next-strongest interaction ( N A t a b s , 0.58)—provides actionable design guidance for experimental fabrication prioritization. This quantification establishes that simultaneous optimization of defect density and thickness yields disproportionately larger performance gains than sequential optimization;
(2) Optimal doping concentration under competing effects: The optimized acceptor doping of N A = 4.7 × 1017 cm−3 (Table 6) is a result of the ML framework automatically balancing three competing effects: (i) increased doping enhances V o c through a stronger built-in electric field; (ii) increased doping reduces J s c through enhanced Auger recombination at high carrier concentrations; and (iii) increased doping can degrade FF through reduced minority carrier mobility. The identification of the specific doping level that maximizes PCE under these competing constraints is a quantitative prediction requiring multi-dimensional optimization unavailable via analytical models;
(3) Temperature robustness quantification: The low SHAP importance of operating temperature (rank 8, mean |SHAP| = 0.28, Table 9) quantifies that the optimized device configuration exhibits relative temperature insensitivity within the 275–400 K range sampled. Specifically, PCE degradation follows approximately PCE(T) ≈ PCE(300 K) × [1 − 0.06(T − 300)] % per Kelvin. This robustness is not universal but emerges as a consequence of the specific combination of low defect density and optimized charge transport layer thicknesses identified by the BO loop;
(4) Transferability across absorber systems: The demonstration that the same ML pipeline achieves comparable optimization performance on the Cs2AgBiBr6 double perovskite system (45.3% improvement over baseline with 3000 simulations, Section 4.6) with automatic adaptation of parameter importance ranking validates that the framework captures transferable device physics principles rather than system-specific empirical correlations.
Role of ML in Accelerating Design Cycles
The primary value proposition lies in dramatically accelerating the translation of known physics into optimized device configurations. Traditional experimental optimization campaigns for lead-free PSCs require fabrication and testing of 50–200 devices per parameter study [12,22,23], with each device requiring 1–3 days of preparation. A full eight-parameter optimization study exploring five levels per parameter (58 = 390,625 configurations) would require 1000–3000 device-years of experimental effort. The GP-BO framework reduces this to 150 evaluations (~0.3 h), a >2500× speedup that transforms device optimization from a months-to-years timeline to a same-day computational experiment.
Limitations of ML Interpretability
SHAP analysis provides quantitative feature importance rankings and interaction strengths but does not reveal causal mechanisms at the level of atomic-scale materials chemistry. For example, SHAP quantifies that absorber defect density has mean |SHAP| = 3.21, but it does not explain that this importance arises specifically from Sn2+ oxidation creating Sn4+ deep-level traps at ~0.4–0.6 eV below the conduction band edge. These mechanistic insights require complementary first-principles density functional theory calculations or defect spectroscopy measurements beyond the scope of device-level SCAPS-1D modeling.
In summary, the framework’s contributions lie primarily in: (i) systematic quantification of parameter importance rankings and interaction strengths across large multi-dimensional design space; (ii) identification of non-obvious optimal parameter combinations resulting from competing physical effects; (iii) acceleration of device optimization by >2500× compared to exhaustive search; and (iv) validated transferability across materially distinct absorber systems. These represent methodological advances in how device optimization is conducted rather than discoveries of new physical phenomena.

5. Conclusions

This paper introduced PerovskiteOpt-AI, an integrated machine-learning framework that bridges physics-based SCAPS-1D device simulation with Gaussian process surrogate modeling and Bayesian optimization for the systematic design of high-efficiency lead-free CsSnI3 perovskite solar cells. The framework generated a comprehensive dataset of 12,000 device-level simulations spanning eight critical parameters via Latin hypercube sampling, trained and benchmarked three ML paradigms (RF, XGBoost, GPR) for multi-output photovoltaic performance prediction, and deployed a GP-EI Bayesian optimization loop that converged to a PCE of 27.83 ± 0.21% within just 150 evaluations, representing a 38.6% relative improvement over the baseline configuration and a 95% reduction in computational cost compared to full-factorial grid search. The SHAP explainability analysis identified absorber defect density as the overwhelmingly dominant efficiency determinant, followed by absorber thickness and acceptor doping concentration, providing experimentally suggested design directions under SCAPS-1D simulation assumptions for tin perovskite device fabrication.
The proposed framework is general and can be readily extended to other lead-free absorber systems (Cs2AgBiBr6, CsGeI3, Cs2TiBr6), multi-objective optimization (simultaneously maximizing PCE and stability), and transfer learning from simulation to experimental data. Integration with high-throughput robotic fabrication platforms and experimental validation would be required before the optimized configuration could be considered for next-generation consumer electronics photovoltaic products. Future work will focus on incorporating degradation kinetics into the SCAPS-1D simulations, extending the GP surrogate to multi-fidelity optimization that combines low-cost drift-diffusion simulations with high-fidelity coupled optical-electrical models, and validating the optimized device architecture through experimental fabrication and outdoor testing.

Funding

This research received no external funding.

Data Availability Statement

The SCAPS-1D simulation dataset generated during this study and the trained machine learning models are available from the corresponding author upon reasonable request. The base perovskite solar cell dataset compiled by Le Corre et al. is publicly available at Mendeley Data (https://data.mendeley.com/datasets/xbzw29tjz4/2 (accessed on 22 November 2025).

Acknowledgments

AI-assisted tools were used only in a limited capacity for English language polishing (grammar, spelling, and punctuation corrections). This has been acknowledged in the back matter of the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Mao, L.; Xiang, C. A comprehensive review of machine learning applications in perovskite solar cells: Materials discovery, device performance, process optimization and systems integration. Mater. Today Energy 2025, 47, 101742. [Google Scholar] [CrossRef]
  2. Shen, X.; Lin, X.; Su, H.; Zhang, Z.; Wu, T.; Zhang, J.; Peng, Y.; Zhang, Y.; Zhang, S.; Zhou, Z.; et al. Key advancements and emerging trends of perovskite solar cells in 2024–2025. Nano-Micro Lett. 2026, 18, 209. [Google Scholar] [CrossRef] [PubMed]
  3. Bhatti, S.; Manzoor, H.U.; Michel, B.; Bonilla, R.S.; Abrams, R.; Zoha, A.; Hussain, S.; Ghannam, R. Revolutionizing low-cost solar cells with machine learning: A systematic review of optimization techniques. Adv. Energy Sustain. Res. 2023, 4, 2300004. [Google Scholar] [CrossRef]
  4. Ibrahim; Shoukat, A.; Aslam, F.; Rehman, M.I.U. Emerging trends in low band gap perovskite solar cells: Materials, device architectures, and performance optimization. Mol. Phys. 2024, 122, e2316273. [Google Scholar] [CrossRef]
  5. Chen, Z.; Pan, S.; Wang, J.; Min, Y.; Chen, Y.; Xue, Q. Machine learning will revolutionize perovskite solar cells. Innov. 2024, 5, 100602. [Google Scholar] [CrossRef] [PubMed]
  6. Deepika; Singh, A.; Verma, U.K.; Ameen, S. Optimization of lead-free materials-based perovskite solar cell using SCAPS-1D simulation. J. Phys. Chem. Solids 2024, 186, 111817. [Google Scholar] [CrossRef]
  7. Al Atem, M.; Makableh, Y. Towards sustainable perovskite solar cells: Lead-free high efficiency designs with tin and germanium. Eng 2025, 6, 38. [Google Scholar] [CrossRef]
  8. Araújo, V.H.D.; Nogueira, A.F.; Tristao, J.C.; Santos, L.J.D. Advances in lead-free perovskite solar cell design via SCAPS-1D simulations. RSC Sustain. 2025, 3, 4314–4335. [Google Scholar] [CrossRef]
  9. Park, H.-J.; Son, H.; Jeong, B.-S. SCAPS-1D simulation for device optimization to improve efficiency in lead-free CsSnI3 perovskite solar cells. Inorganics 2024, 12, 123. [Google Scholar] [CrossRef]
  10. Sabbah, H.; Baki, Z.A.; Mezher, R.; Arayro, J. SCAPS-1D modeling of hydrogenated lead-free Cs2AgBiBr6 double perovskite solar cells with a remarkable efficiency of 26.3%. Nanomaterials 2024, 14, 48. [Google Scholar] [CrossRef]
  11. AlZoubi, T.; Kadhem, W.J.; Al Gharram, M.; Makhadmeh, G.; Abdelfattah, M.A.O.; Abuelsamen, A.; AL-Diabat, A.M.; Noqta, O.A.; Lazarevic, B.; Zyoud, S.H.; et al. Advanced optoelectronic modeling and optimization of HTL-free FASnI3/C60 perovskite solar cell architecture for superior performance. Nanomaterials 2024, 14, 1062. [Google Scholar] [CrossRef]
  12. Sahamir, S.R.; Kapil, G.; Bessho, T.; Segawa, H.; Shen, Q.; Hayase, S. Achieving high efficiency and enhanced thermal stability in germanium-encapsulated tin-lead perovskite solar cells. ACS Mater. Lett. 2024, 6, 1241–1246. [Google Scholar] [CrossRef]
  13. Rahaman, M.; Hasan, M.; Moinuddin, R.M.; Islam, M.N. Numerical optimization of lead-based and lead-free absorber materials for perovskite solar cell architectures: A SCAPS-1D simulation. AIP Adv. 2024, 14, 095019. [Google Scholar] [CrossRef]
  14. Banik, S.; Das, A.; Das, B.K.; Islam, N. Numerical simulation and performance optimization of a lead-free inorganic perovskite solar cell using SCAPS-1D. Heliyon 2024, 10, e23985. [Google Scholar] [CrossRef] [PubMed]
  15. Seyed-Talebi, S.M.; Mahmoudi, M.; Lee, C.-H. A comprehensive study of CsSnI3-based perovskite solar cells with different hole transporting layers and back contacts. Micromachines 2023, 14, 1562. [Google Scholar] [CrossRef]
  16. Hossain, M.K.; Toki, G.F.I.; Kuddus, A.; Rubel, M.H.K.; Hossain, M.M.; Bencherif, H.; Rahman, M.F.; Islam, M.R.; Mushtaq, M. An extensive study on multiple ETL and HTL layers to design and simulation of high-performance lead-free CsSnCl3-based perovskite solar cells. Sci. Rep. 2023, 13, 2521. [Google Scholar] [CrossRef] [PubMed]
  17. Shimul, A.I.; Khan, M.A.; Rayhan, A.; Ghosh, A. Machine learning-based optimization and performance enhancement of CH3NH3SnBr3 perovskite solar cells with different charge transport materials using SCAPS-1D and wxAMPS. Adv. Theory Simul. 2025, 8, 2500182. [Google Scholar] [CrossRef]
  18. Pindolia, G.; Shinde, S.M. Prediction of efficiency for KSnI3 perovskite solar cells using supervised machine learning algorithms. J. Electron. Mater. 2024, 53, 3268–3275. [Google Scholar] [CrossRef]
  19. Kusuma, F.J.; Widianto, E.; Santoso, I.; Absor, M.A.U.; Sakti, S.P.; Triyana, K. Optimizing novel device configurations for perovskite solar cells: Enhancing stability and efficiency through machine learning on a large dataset. Renew. Energy 2025, 247, 122947. [Google Scholar] [CrossRef]
  20. Kundara, R.; Baghel, S. Predictive design of KSnI3-based perovskite solar cells using SCAPS and machine learning model. Mater. Sci. Eng. B 2024, 307, 117536. [Google Scholar] [CrossRef]
  21. Burgelman, M.; Decock, K.; Khelifi, S.; Abass, A. Advanced electrical simulation of thin film solar cells. Thin Solid Films 2013, 535, 296–301. [Google Scholar] [CrossRef]
  22. Burgelman, M.; Verschraegen, J.; Degrave, S.; Nollet, P. Modeling thin-film PV devices. Prog. Photovolt. Res. Appl. 2004, 12, 143–153. [Google Scholar] [CrossRef]
  23. Verschraegen, J.; Burgelman, M. Numerical modeling of intra-band tunneling for heterojunction solar cells in SCAPS. Thin Solid Films 2007, 515, 6276–6279. [Google Scholar] [CrossRef]
  24. Bhattarai, S.; Banthia, R.; Kumar, A.; Alali, A.S.; Dwivedi, D.K.; Tanti, B.; Maiti, M.; DasMahapatra, S. Tailoring Ba3PCl3-based perovskite solar cells via multi-parameter optimization for high power conversion efficiency. Sci. Rep. 2026, 16, 4270. [Google Scholar] [CrossRef] [PubMed]
  25. Kenfack, A.D.K.; Thantsha, N.M.; Msimanga, M. Simulation of lead-free heterojunction CsGeI2Br/CsGeI3-based perovskite solar cell using SCAPS-1D. Solar 2023, 3, 458–472. [Google Scholar] [CrossRef]
  26. El Badraoui, A.; Chargui, T.; Elkhou, A.; El Mokhtari, B.; El Idrissi, R.; El Amri, L.; Ez-Zahraouy, H.; Tahiri, N. Optimization of lead-free CsSnBr3-based perovskite solar cells via SCAPS-1D simulations and machine learning models. J. Phys. Chem. Solids 2026, 210, 113340. [Google Scholar] [CrossRef]
  27. Meyer, E.L.; Mvokwe, S.A.; Oyedeji, O.O.; Rono, N.; Agoro, M.A. Computational study of chalcogenide-based perovskite solar cell using SCAPS-1D numerical simulator. Materials 2025, 18, 186. [Google Scholar] [CrossRef] [PubMed]
  28. Roberts, N.; Jones, D.; Schuy, A.; Hsu, S.-C.; Lin, L.Y. Machine learning for perovskite solar cells: An open-source pipeline. Adv. Phys. Res. 2024, 3, 2400060. [Google Scholar] [CrossRef]
  29. Sabagh Moeini, A.; Shariatmadar Tehrani, F.; Naeimi-Sadigh, A. Machine learning-enhanced band gaps prediction for low-symmetry double and layered perovskites. Sci. Rep. 2024, 14, 26736. [Google Scholar] [CrossRef]
  30. Khanzadeh, M.; Kargaran, H.; Hamedani, A.; Alahyarizadeh, G. Structural optimization of a perovskite solar cell using single- and multi-objective particle swarm optimization method. Micro Nanostruct 2022, 170, 207362. [Google Scholar] [CrossRef]
  31. Sadhu, D.; Dattatreya, D.; Deo, A.; Tarafder, K.; De, D. Performance prediction and analysis of perovskite solar cells using machine learning. J. Alloy. Compd. Commun. 2024, 3, 100022. [Google Scholar] [CrossRef]
  32. Liu, H.; Chen, Z.; Zhang, Y.; Wu, J.; Peng, L.; Wang, Y.; Liu, X.; Chen, X.; Lin, J. Bayesian reverse design of high-efficiency perovskite solar cells based on experimental knowledge constraints. Appl. Phys. Lett. 2024, 125, 063901. [Google Scholar] [CrossRef]
  33. Li, W.; Hu, J.; Chen, Z.; Jiang, H.; Wu, J.; Meng, X.; Fang, X.; Lin, J.; Ma, X.; Yang, T.; et al. Performance prediction and optimization of perovskite solar cells based on the Bayesian approach. Sol. Energy 2023, 262, 111853. [Google Scholar] [CrossRef]
  34. Zhan, H.; Ahmad, V.; Mayon, A.; Tabi, G.D.; Bui, A.D.; Li, Z.; Walter, D.; Nguyen, H.; Weber, K.; White, T.; et al. Physics-based extraction of material parameters from perovskite experiments via Bayesian optimization. Energy Environ. Sci. 2024, 17, 4735–4745. [Google Scholar] [CrossRef]
  35. Li, D.; Mid, E.C.; Basah, S.N.; Liu, X.; Tang, J.; Cui, H.; Su, H.; Xiao, Q.; Gong, S. A machine learning model with crude estimation of property strategy for performance prediction of perovskite solar cells based on process optimization. APL. Mater. 2024, 12, 121105. [Google Scholar] [CrossRef]
  36. Siddiqui, H.; Usmani, T. Interpretable AI and machine learning classification for identifying high-efficiency donor-acceptor pairs in organic solar cells. ACS Omega 2024, 9, 34445–34455. [Google Scholar] [CrossRef] [PubMed]
  37. Kim, S.; Jeong, Y.; Han, D.-W.; Mo, C.B. Machine learning-assisted defect analysis and optimization for P-I-N-structured perovskite solar cells. J. Electron. Mater. 2023, 52, 5861–5871. [Google Scholar] [CrossRef]
  38. Liu, T.; Evans, N.; Ji, K.; Lee, R.; Zhu, A.; Nguyen, V.; Serdy, J.; Wall, E.M.; Lu, Y.; Formica, F.A.; et al. Disentangling environmental effects on perovskite solar cell performance via interpretable machine learning. ACS Energy Lett. 2026, 11, 1609–1617. [Google Scholar] [CrossRef]
  39. Shrivastav, N.; Abu-Jrai, A.; Kanjariya, P.; Hassan, H.; Verma, A.; Madan, J.; Pandey, R. Advanced computational techniques for optimizing manganese-based perovskite solar cells: From SCAPS-1D simulations to machine learning predictions. J. Electron. Mater. 2025, 54, 1209–1217. [Google Scholar] [CrossRef]
  40. Allen, C.R.; Bhandari, B.; Xu, W.; Lee, M.; Hsu, J.W.P. Machine learning enhanced characterization and optimization of photonic cured MAPbI3 for efficient perovskite solar cells. J. Mater. Inform. 2024, 4, 35. [Google Scholar] [CrossRef]
  41. Le Corre, V. Dataset for: Identification of the dominant recombination process for perovskite solar cells based on machine learning. Mendeley Data 2020, V2. [Google Scholar] [CrossRef]
  42. Le Corre, V.M.; Sherkar, T.S.; Koopmans, M.; Koster, L.J.A. Identification of the dominant recombination process for perovskite solar cells based on machine learning. Cell Rep. Phys. Sci. 2021, 2, 100346. [Google Scholar] [CrossRef]
  43. Moiz, S.A.; Albadwani, S.A.; Alshaikh, M.S. Towards highly efficient cesium titanium halide based lead-free double perovskites solar cell by optimizing the interface layers. Nanomaterials 2022, 12, 3435. [Google Scholar] [CrossRef] [PubMed]
  44. Moiz, S.A.; Alahmadi, A.N.M.; Alshaikh, M.S. Lead-free FACsSnI3 based perovskite solar cell: Designing hole and electron transport layer. Nanomaterials 2023, 13, 1524. [Google Scholar] [CrossRef] [PubMed]
  45. Moiz, S.A.; Alshaikh, M.S.; Alahmadi, A.N.M. Simulation design of novel non-fluorine polymers as electron transport layer for lead-free perovskite solar cells. Polymers 2023, 15, 4387. [Google Scholar] [CrossRef]
  46. Moiz, S.A.; Alahmadi, A.N.M.; Alshaikh, M.S. Design optimization of cesium contents for mixed cation MA1-xCsxPbI3-based efficient perovskite solar cell. Nanomaterials 2025, 15, 1085. [Google Scholar] [CrossRef]
  47. Alzubaidi, M.; Moiz, S.A.; Alahmadi, A.N.M.; Alshaikh, M.S. A comparative study of high-efficiency lead-free Cs3Bi2X9 (X = Cl, Br, I)-based solar cells. Technologies 2025, 13, 562. [Google Scholar] [CrossRef]
  48. Khan, A.; Kandel, J.; Tayara, H.; Chong, K.T. Predicting the bandgap and efficiency of perovskite solar cells using machine learning methods. Mol. Inform. 2024, 43, e202300217. [Google Scholar] [CrossRef]
  49. Cong, H.; Wang, B.; Wang, Z. A novel Gaussian process surrogate model with expected prediction error for optimization under constraints. Mathematics 2024, 12, 1115. [Google Scholar] [CrossRef]
  50. Lemos, L.F.L.; Starke, A.R.; da Silva, A.K. Constrained Gaussian processes as a surrogate model for simulation-based optimization of solar process heat systems. Appl. Energy 2025, 395, 126028. [Google Scholar] [CrossRef]
  51. Alshaikh, M.S. Machine learning-based prediction of organic solar cell performance using molecular descriptors. Int. J. Emerg. Res. Eng. Sci. Manag. 2025, 4, 25–41. [Google Scholar] [CrossRef]
  52. Shooshtari, M.; Kim, S.Y.; Pahlavan, S.; Serrano-Gotarredona, T.; Bisquert, J.; Linares-Barranco, B. Bio-inspired spike-timing-dependent plasticity learning with metal halide perovskites: Toward artificial synaptic functionality. ACS Appl. Mater. Interfaces 2026, 8, 7103–7114. [Google Scholar] [CrossRef]
  53. Tarekuzzaman, M.; Utsho, K.I.F.; Sarker, A.S.; Forkan, M.I.U.; Khan, M.A. Numerical simulation and machine learning-driven engineering of K2GeI6 perovskite solar cells for high-efficiency and sustainable photovoltaics. ACS Appl. Energy Mater. 2025, 8, 15961–15992. [Google Scholar] [CrossRef]
  54. Zhang, Q.; Wang, H.; Zhao, Q.; Ullah, A.; Zhong, X.; Wei, Y.; Zhang, C.; Xu, R.; De Wolf, S.; Wang, K. Machine-learning-assisted design of buried-interface engineering materials for high-efficiency and stable perovskite solar cells. ACS Energy Lett. 2024, 9, 5924–5934. [Google Scholar] [CrossRef]
  55. Hao, F.; Stoumpos, C.C.; Cao, D.H.; Chang, R.P.H.; Kanatzidis, M.G. Lead-free solid-state organic–inorganic halide perovskite solar cells. Nat. Photonics 2014, 8, 489–494. [Google Scholar] [CrossRef]
  56. Srivastava, S.; Singh, A.K.; Kumar, P.; Pradhan, B. Comparative performance analysis of lead-free perovskites solar cells by numerical simulation. J. Appl. Phys. 2022, 131, 175001. [Google Scholar] [CrossRef]
  57. Chung, I.; Lee, B.; He, J.; Chang, R.P.H.; Kanatzidis, M.G. All-solid-state dye-sensitized solar cells with high efficiency. Nature 2012, 485, 486–489. [Google Scholar] [CrossRef]
  58. Wang, F.; Jiang, X.; Chen, H.; Shang, Y.; Liu, H.; Wei, J.; Zhou, W.; He, H.; Liu, W.; Ning, Z. 2D-quasi-2D-3D hierarchy structure for tin perovskite solar cells with enhanced efficiency and stability. Joule 2018, 2, 2732–2743. [Google Scholar] [CrossRef]
  59. Marshall, K.P.; Walker, M.; Walton, R.I.; Hatton, R.A. Enhanced stability and efficiency in hole-transport-layer-free CsSnI3 perovskite photovoltaics. Nat. Energy 2016, 1, 16178. [Google Scholar] [CrossRef]
Figure 1. End-to-end architecture of the proposed PerovskiteOpt-AI framework, integrating physics-based SCAPS-1D simulation with machine learning-driven surrogate optimization and SHAP-based interpretability for lead-free CsSnI3 perovskite solar cell design.
Figure 1. End-to-end architecture of the proposed PerovskiteOpt-AI framework, integrating physics-based SCAPS-1D simulation with machine learning-driven surrogate optimization and SHAP-based interpretability for lead-free CsSnI3 perovskite solar cell design.
Crystals 16 00310 g001
Figure 2. Tailed methodology flowchart of the PerovskiteOpt-AI framework showing the four-stage pipeline from SCAPS-1D simulation through ML benchmarking, Bayesian optimization, and SHAP-based interpretability analysis.
Figure 2. Tailed methodology flowchart of the PerovskiteOpt-AI framework showing the four-stage pipeline from SCAPS-1D simulation through ML benchmarking, Bayesian optimization, and SHAP-based interpretability analysis.
Crystals 16 00310 g002
Figure 3. Schematic diagram of the simulated FTO/WS2/CsSnI3/CuSCN/Au perovskite solar cell device architecture with layer labels and simulation thickness ranges. Light enters through the glass substrate and FTO front contact; photogenerated electrons are extracted through the WS2 ETL while holes are collected via the CuSCN HTL to the Au back contact.
Figure 3. Schematic diagram of the simulated FTO/WS2/CsSnI3/CuSCN/Au perovskite solar cell device architecture with layer labels and simulation thickness ranges. Light enters through the glass substrate and FTO front contact; photogenerated electrons are extracted through the WS2 ETL while holes are collected via the CuSCN HTL to the Au back contact.
Crystals 16 00310 g003
Figure 4. Equilibrium energy band diagram of the FTO/WS2/CsSnI3/CuSCN/Au architecture showing conduction band (CB) and valence band (VB) alignment across all layers. The conduction band offset at the WS2/CsSnI3 interface ( Δ E C = 0.27 eV, cliff type) facilitates electron transfer, while the valence band offset at the CsSnI3/CuSCN interface ( Δ E V = 0.17 eV) supports hole extraction. The Au back-contact work function ( Φ m = 5.1 eV) is indicated at the device terminal.
Figure 4. Equilibrium energy band diagram of the FTO/WS2/CsSnI3/CuSCN/Au architecture showing conduction band (CB) and valence band (VB) alignment across all layers. The conduction band offset at the WS2/CsSnI3 interface ( Δ E C = 0.27 eV, cliff type) facilitates electron transfer, while the valence band offset at the CsSnI3/CuSCN interface ( Δ E V = 0.17 eV) supports hole extraction. The Au back-contact work function ( Φ m = 5.1 eV) is indicated at the device terminal.
Crystals 16 00310 g004
Figure 5. Distribution of photovoltaic output parameters across the 12,000 SCAPS-1D simulation dataset: (a) PCE; (b) V o c , (c) J s c ; and (d) FF.
Figure 5. Distribution of photovoltaic output parameters across the 12,000 SCAPS-1D simulation dataset: (a) PCE; (b) V o c , (c) J s c ; and (d) FF.
Crystals 16 00310 g005
Figure 6. Predicted vs. actual PCE scatter plots for the three ML models on the held-out test set. XGBoost exhibits the tightest clustering around the ideal line.
Figure 6. Predicted vs. actual PCE scatter plots for the three ML models on the held-out test set. XGBoost exhibits the tightest clustering around the ideal line.
Crystals 16 00310 g006
Figure 7. Learning curves for the three ML models, demonstrating convergence of test RMSE with increasing training set size. XGBoost achieves sub-0.05% RMSE with 8000 training samples.
Figure 7. Learning curves for the three ML models, demonstrating convergence of test RMSE with increasing training set size. XGBoost achieves sub-0.05% RMSE with 8000 training samples.
Crystals 16 00310 g007
Figure 8. GP surrogate uncertainty calibration: (a) predictive mean and 95% confidence intervals along the absorber defects density axis; and (b) calibration curve showing near-ideal coverage.
Figure 8. GP surrogate uncertainty calibration: (a) predictive mean and 95% confidence intervals along the absorber defects density axis; and (b) calibration curve showing near-ideal coverage.
Crystals 16 00310 g008
Figure 9. Bayesian optimization convergence trajectory showing best-observed PCE as a function of iteration number. The GP-EI strategy converges to 27.83% ± 0.21% PCE within 150 evaluations.
Figure 9. Bayesian optimization convergence trajectory showing best-observed PCE as a function of iteration number. The GP-EI strategy converges to 27.83% ± 0.21% PCE within 150 evaluations.
Crystals 16 00310 g009
Figure 10. SHAP summary (beeswarm) plot for PCE prediction by the XGBoost model. Absorber defect density N t is the dominant feature, with lower values strongly driving higher PCE.
Figure 10. SHAP summary (beeswarm) plot for PCE prediction by the XGBoost model. Absorber defect density N t is the dominant feature, with lower values strongly driving higher PCE.
Crystals 16 00310 g010
Figure 11. SHAP dependence plots revealing nonlinear and interactive relationships between key parameters and PCE: (a) defect density; (b) absorber thickness; (c) acceptor doping; and (d) back-contact work function.
Figure 11. SHAP dependence plots revealing nonlinear and interactive relationships between key parameters and PCE: (a) defect density; (b) absorber thickness; (c) acceptor doping; and (d) back-contact work function.
Crystals 16 00310 g011
Figure 12. Comparison of J - V characteristics and EQE spectra for the baseline and BO-optimized FTO/WS2/CsSnI3/CuSCN/Au devices.
Figure 12. Comparison of J - V characteristics and EQE spectra for the baseline and BO-optimized FTO/WS2/CsSnI3/CuSCN/Au devices.
Crystals 16 00310 g012
Table 1. Parameter space for SCAPS-1D simulations.
Table 1. Parameter space for SCAPS-1D simulations.
ParameterSymbolLayerMinMax
Absorber thickness (nm) t a b s CsSnI3 absorber1001500
Absorber defect density (cm−3) N t CsSnI3 absorber10131017
Acceptor doping (cm−3) N A CsSnI3 absorber10141019
ETL thickness (nm) t E T L WS2 ETL10200
HTL thickness (nm) t H T L CuSCN HTL10200
ETL donor density (cm−3) N D , E T L WS2 ETL10161020
Back-contact work function (eV) Φ m Au back contact4.85.4
Temperature (K) T Device (global)275400
Table 2. Statistical summary of the SCAPS-1D dataset ( N = 11,873 ).
Table 2. Statistical summary of the SCAPS-1D dataset ( N = 11,873 ).
MetricMeanStdMinMax
PCE (%)14.265.830.2124.67
V o c (V)0.810.170.181.12
J s c (mA/cm2)24.386.913.4036.80
FF (%)68.4211.2728.1087.40
Table 3. ML model benchmarking for PCE prediction on the test set.
Table 3. ML model benchmarking for PCE prediction on the test set.
Model R 2 RMSE (%)MAE (%)MAPE (%)
Random Forest0.99730.0670.0430.31
XGBoost0.99870.0410.0270.19
GP Regression0.99410.1120.0740.52
Table 4. Multi-output prediction performance of XGBoost.
Table 4. Multi-output prediction performance of XGBoost.
Output R 2 RMSEMAEMAPE (%)
PCE (%)0.99870.0410.0270.19
V o c (V)0.99910.0050.0030.37
J s c (mA/cm2)0.99940.1690.1120.46
FF (%)0.99680.6370.4210.62
Table 5. GP surrogate calibration metrics.
Table 5. GP surrogate calibration metrics.
Confidence LevelNominalObserved PICPWidth (%)
68%68.0%67.2%0.198
90%90.0%89.4%0.331
95%95.0%94.7%0.394
99%99.0%98.8%0.518
Table 6. Optimized device parameters and performance metrics.
Table 6. Optimized device parameters and performance metrics.
CategoryParameterSymbolBaselineOptimizedChangePhysical Significance
AbsorberThickness t a b s (nm)500850+70%Balanced absorption-collection
Defect density N t (cm−3)10152.4 × 1013−98%Minimized SRH recombination
Acceptor doping N A (cm−3)10164.7 × 1017+47×Enhanced built-in field
ETLThickness t E T L (nm)5035−30%Reduced optical absorption
Donor density N D , E T L (cm−3)10183.1 × 1018+3.1×Improved electron extraction
HTLThickness t H T L (nm)5068+36%Optimized hole transport
ContactWork function Φ m (eV)5.105.25+3%Reduced hole barrier
OperatingTemperatureT (K)3003000%Standard conditions
PerformancePCE(%)17.3827.83 ± 0.21+60%Overall device performance
V o c (V)0.891.05 ± 0.008+18%Reduced recombination losses
J s c (mA/cm2)27.1233.41 ± 0.18+23%Enhanced light harvesting
FF(%)72.179.4 ± 0.6+10%Improved charge extraction
Table 7. Computational cost comparison of optimization strategies.
Table 7. Computational cost comparison of optimization strategies.
StrategyEvaluationsTime (h)Best PCE (%)
Full Grid ( 5 8 )390,625 78027.61
Random Search10,000 2024.89
LHS Sampling12,000 2424.67
GP-BO (This work)150 0.327.83 ± 0.21
Table 8. Optimal absorber thickness as a function of defect density.
Table 8. Optimal absorber thickness as a function of defect density.
Defect   Density   N t (cm−3) Optimal   Thickness   t a b s (nm)Predicted PCE (%) Diffusion   Length   L n (μm)Regime
1 × 1013135028.93.2Absorption-limited
2.4 × 1013 (optimum)85027.82.1Balanced
5 × 101372026.41.4Transition
1 × 101465024.11.0Recombination-limited
5 × 101448019.20.45Strongly recombination-limited
1 × 101542016.80.32Thin-film optimal
5 × 101535012.10.14Highly defective
1 × 10163209.30.10Severely degraded
Table 9. Mean absolute SHAP values for PCE prediction.
Table 9. Mean absolute SHAP values for PCE prediction.
RankFeature Mean   | ϕ |
1Absorber defect density ( N t )3.21
2Absorber thickness ( t abs )1.67
3Acceptor doping ( N A )1.14
4Back-contact work function ( Φ m )0.89
5ETL donor density ( N D , ETL )0.54
6HTL thickness ( t HTL )0.41
7ETL thickness ( t ETL )0.33
8Temperature ( T )0.28
Table 10. Optimized Cs2AgBiBr6 device parameters (proof of concept).
Table 10. Optimized Cs2AgBiBr6 device parameters (proof of concept).
ParameterBaselineOptimizedChange
Absorber thickness (nm)8001420+78%
Defect density (cm−3)5 × 10144.1 × 1013−92%
Electron affinity (eV)3.83.74−1.6%
ETL thickness (nm)5042−16%
HTL thickness (nm)200245+23%
Temperature (K)3003000%
PCE (%)13.0218.92 ± 0.16+45.3%
V o c (V)1.181.28 ± 0.007+8.5%
J s c (mA/cm2)14.618.3 ± 0.11+25.3%
FF (%)75.680.9 ± 0.4+7.0%
Table 11. Feature importance ranking: Cs2AgBiBr6 vs. CsSnI3.
Table 11. Feature importance ranking: Cs2AgBiBr6 vs. CsSnI3.
RankCsSnI3 FeatureMean |SHAP|Cs2AgBiBr6 FeatureMean |SHAP|
1Absorber defect density3.21Absorber thickness2.87
2Absorber thickness1.67Absorber defect density2.34
3Acceptor doping1.14Electron affinity1.52
4Back-contact work function0.89HTL thickness0.91
Table 12. Comparison with state-of-the-art lead-free PSCs (simulation and experimental).
Table 12. Comparison with state-of-the-art lead-free PSCs (simulation and experimental).
Ref.AbsorberPCE (%) V o c (V) J s c (mA/cm2)FF (%)MethodCategory
[9]CsSnI320.100.9129.475.1SCAPSSimulation
[10]Cs2AgBiBr626.301.0830.280.6SCAPSSimulation
[7]MASnI323.190.9531.777.0SCAPSSimulation
[20]KSnI323.081.0126.885.2SCAPS + MLSimulation
[53]K2GeI628.691.0932.182.0SCAPS + MLSimulation
[24]Ba3PCl329.781.3827.578.5SCAPSSimulation
[43]Cs2TiBr613.471.2914.273.5SCAPSSimulation
[44]FACsSnI322.530.9630.876.1SCAPSSimulation
This workCsSnI327.831.0533.4179.4SCAPS + GP-BOSimulation
[21]FASnI39.60.5824.468.0ExperimentExperimental
[55]MASnI36.40.8816.843.0ExperimentExperimental
[57]CsSnI33.80.4619.342.9ExperimentExperimental
[23]FASnI312.40.6124.370.0ExperimentExperimental
[12]Sn0.5Pb0.5I314.80.7727.171.0ExperimentExperimental
[58]CsFASnI310.10.5225.875.3ExperimentExperimental
[59]CsSnI37.10.5421.661.0ExperimentExperimental
[22]FASnI315.10.6526.986.4ExperimentExperimental
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alshaikh, M.S. PerovskiteOpt-AI: A Machine Learning-Driven Multi-Parameter Optimization Framework for Lead-Free Perovskite Solar Cell Device Architecture Using SCAPS-1D Simulation and Gaussian Process Surrogate Modeling. Crystals 2026, 16, 310. https://doi.org/10.3390/cryst16050310

AMA Style

Alshaikh MS. PerovskiteOpt-AI: A Machine Learning-Driven Multi-Parameter Optimization Framework for Lead-Free Perovskite Solar Cell Device Architecture Using SCAPS-1D Simulation and Gaussian Process Surrogate Modeling. Crystals. 2026; 16(5):310. https://doi.org/10.3390/cryst16050310

Chicago/Turabian Style

Alshaikh, Mohammed Saleh. 2026. "PerovskiteOpt-AI: A Machine Learning-Driven Multi-Parameter Optimization Framework for Lead-Free Perovskite Solar Cell Device Architecture Using SCAPS-1D Simulation and Gaussian Process Surrogate Modeling" Crystals 16, no. 5: 310. https://doi.org/10.3390/cryst16050310

APA Style

Alshaikh, M. S. (2026). PerovskiteOpt-AI: A Machine Learning-Driven Multi-Parameter Optimization Framework for Lead-Free Perovskite Solar Cell Device Architecture Using SCAPS-1D Simulation and Gaussian Process Surrogate Modeling. Crystals, 16(5), 310. https://doi.org/10.3390/cryst16050310

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop