Abstract
Optoelectronic stability of halide perovskite material in hostile conditions such as water is rather limited, preventing them from further industrial deployment. Here, we optimize and perform machine learning analysis on CH3NH3PbI3 materials with additives, solvents and post-treatment molecules using combined experimental and data-driven methods. A champion system consisting of a compatible tertiary molecular combination ‘calcein+PbBr2 + DMSO’ active at diverse surfaces is identified, delivering a large aqueous photoelectrochemical (PEC) photocurrent of 10-5 A/cm2 and an improved aqueous stability of 92.5%. Subsequently, machine interpretation is provided to decouple the multi-molecule contributions with the assistance of genetic programming (GP) and extra-trees (ET) machine learning models, highlighting the intricate molecular features for the target outputs. The post-hoc density functional theory (DFT) calculation suggests the presence of multiple hydrogen bond and anion··π surface interactions to stabilize the interfacial structures. The present ‘PEC + GP + ET + DFT’ approach is suggested to be an effective approach to design and comprehensively evaluate molecule-modified materials.
Similar content being viewed by others
Introduction
Hybrid organic-inorganic halide perovskite materials with prototypical formula ABX3 (where X is halogen) enjoy exceptional optoelectronic properties and have found extensive applications in solar cells, photodetectors, light-emitting diodes, scintillators, photo-catalysts and photo-batteries1,2,3. The halide perovskite materials are solution-processable and the fabrication routes are cost-effective, which are in vast difference with traditional semiconducting inorganic materials such as silicon and GaAs. However, they are still far from practical industrial deployment because of several notorious issues including lead contamination and material instability.
Unlike silicon or graphene, the halide perovskites are extremely unstable in the ambient conditions4,5,6. For example, the halide perovskite materials degrade quickly in the presence of atmospheric molecules such as oxygen and water vapors, debilitating the resulting device performance. A similar situation happens when the halide perovskite materials are in contact with acidic and basic chemical species. The interactions between perovskite and water tend to have adverse impacts on both the materials and devices, leading to diminished stability in operational conditions. Numerous studies have examined the stability of materials and devices under elevated temperatures and humidity levels7,8,9,10. Due to the inherent ionic nature, the interactions between perovskites and water lead to significant stability challenges, which represent a fundamental barrier to the practical utilization of perovskites. The deterioration of halide perovskites when exposed to water is associated with hydration, phase transition, degradation, and dissolution11,12. In certain instances, however, small amounts of water have proven beneficial, aiding in regulating the crystallization process to achieve superior-quality perovskite films and enhanced device performance13,14. The challenge is exacerbated in the environment of aqueous solution: if a cutting-edge CH3NH3PbI3 halide perovskite film is placed in contact with water, the corresponding optoelectronic conversion process deactivates instantaneously and the water-induced bleaching phenomenon occurs15.
Various materials engineering approaches have been devised to address the ‘aquaphobia’ issue of halide perovskite materials and improve their aqueous stability. Dimensional tailoring methods16,17,18,19,20 have been found to be practical, which is attributed to the intrinsic stable structural nature of the low-dimensional systems and can be further improved via hydrophobic surface groups. The inorganic substitution is another versatile method to improve the stability of halide perovskite materials, yet suffering from inferior optoelectronic properties. In contrast, researchers have employed various compatible organic molecules21,22,23 and surface species to stabilize the hybrid perovskite systems, offering balanced optoelectronic properties and overall structural stability. Photoelectrochemical properties of halide perovskite materials refer to their behavior and performance in photoelectrochemical processes, where light is used to drive chemical reactions at the material surface. The photoelectrochemical properties of perovskite materials are related to their photovoltaic and light-emitting performance. Understanding and optimizing these photoelectrochemical properties are crucial for the development of halide perovskite materials for efficient and sustainable energy conversion and storage technologies, including solar cells, water-splitting systems, photocatalysts, and environmental sensors. Given the highly complex and multi-dimensional virtual design space of molecule- and surface-engineered halide perovskites, more comprehensive and systematic investigations should be carried to obtain optimal molecule/perovskite composite systems delivering decent optoelectronic properties and aqueous stability in hostile conditions such as the aqueous solution.
Machine learning approaches are versatile to accelerate material design process in an inverse manner24,25. However, many issues still remain regarding this type of research paradigm including the dark-box model offering insufficient scientific interpretation. Recently, the scientific machine learning with emphasis on providing scientific interpretation is receiving significant attention in physical science and materials communities26,27, given the accessibility of a series of machine learning algorithms and molecular descriptors that can potentially decouple the molecular and structural factors. To this end, alternative machine learning methods are still required to further improve the machine accuracy and interpretability, including genetic algorithms28,29 that are able to construct mathematical equations to intuitively describe the target output from materials inputs.
Density functional theory (DFT) calculations20,30,31,32,33 are versatile methods to reveal salient structural inputs and optoelectronic properties of materials via considering the electron density in Schrödinger Equations. The detailed calculations include band structures, density of states, frontier orbitals etc. deduced from eigenvalues and wavefunctions with the assistance of density functionals in a Jacob’s ladder, facilitating the interpretation of experimental results of molecules and materials as well as the establishment of structure-property relationships in atomic and electronic levels.
In this study, we systematically investigate aqueous photoelectrochemical stability of CH3NH3PbI3 films modified by multiple molecules functioning at diverse surfaces. This results in the discovery of an effective multi-molecule perovskite material system ‘calcein+PbBr2 + DMSO+CH3NH3PbI3’ (PbBr2 as additive, DMSO as solvent and calcein as post-treatment molecule) affording outstanding aqueous photocurrent stability. A large aqueous photocurrent of 10−5 A/cm2 (103 times the output of CH3NH3PbI3) and an improved aqueous stability of 92.5% are achieved. The experimental aqueous photoelectrochemical properties of the molecularly modified perovskite materials are subsequently examined via genetic algorithms and extra tree-based Shapley Additive Explanations (SHAP) analysis to provide machine interpretation and decouple molecular contributions, highlighting the importance of synergy effects of these compatible molecules and their hydrophilicity/lipophilicity for the target outputs. The post-hoc DFT calculation suggests the presence of hydrogen bonds and anion··π surface interactions for stabilizing the interfacial structures. The overall workflow to evaluate the halide perovskite stability via photoelectrochemical, machine learning, and DFT models is depicted in Fig. 1. The data distribution, experimental variables, and fabrication steps are displayed in Fig. 2.
Results and Discussion
Aqueous photocurrents of molecules/CH3NH3PbI3
The systematic aqueous photoelectrochemical measurement highlights the interplay among solvents, additives, and post-treatment molecules for the resulting optoelectronic properties, which is in distinctive contrast with the bare halide perovskite film that produces negligible photocurrent in the aqueous solution. For example, the solvent and additives molecules mainly modified the halide perovskite surface near the electron transporting layer (TiO2) and perovskite/perovskite grain boundary regions, while the post-treatment molecules predominantly control the perovskite surface in the solid/liquid (aqueous solution) boundary. The experimental data of 96 diverse perovskite materials with variable precursor solvent ratio, additive and post-processing dye molecules (Fig. 3a–t), in an effort to obtain an optimal molecular combination to stabilize aqueous optoelectronic properties of perovskites. Four measurements at different water immersion time (70 s, 110 s, 150 s, and 190 s) are carried out to account for the time-dependent water degradation, since the water molecules can swiftly infiltrate into MAPbI3 film within seconds even at a low relative humidity of 10%12. The photocurrents of the molecule-modified halide perovskite film in aqueous solution are obtained with a light on/off interval of 20 s and a total of 200 s measurement period. The water immersion time is associated the water stability of the halide perovskite film with the molecular modification. Interestingly, the calcein dye offers improved optoelectronic properties of CH3NH3PbI3 when it is employed as the post-treatment species, which is attributed to the optimal light absorption properties and minimized hydrophilic groups in the calcein dye molecule (vide infra). Additionally, the solvent ratio of 1:1 for the precursor solution is optimal for the target output; this is ascribed to the modest intermolecular interactions and surface compact layer formation when both DMF and DMSO are present. Furthermore, the contribution of additive in the precursor solution is non-negligible, with NH4Cl leading to an inferior aqueous photocurrent (< 20 μA) attributed to the lack of metallic species that results in poorer Lewis acid-base interactions in the molecule/perovskite surface. The comprehensive aqueous photoelectrochemical study witnesses a champion system based on the combination of “DMSO+PbBr2+calcein”, with an aqueous photocurrent reaching 34 μA and a retention rate of 92.50% within 200 s (Fig. 3o), signifying balanced optoelectronic property and aqueous stability. The superior aqueous performance of this hybrid system is owing to the intricate contributions such as appropriate intermolecular bonding, hydrophilicity, charge state, and molecular topology revealed in the machine learning models and DFT calculations (vide infra). Apart from “DMSO+PbBr2+calcein”, alternative high-ranking hybrid systems are available, preferring the incorporation of the calcein dye as the post-treatment species, namely “DMSO + CsBr + calcein”, “DMF + DMSO + calcein” and “DMSO + LiCl + calcein”. To sum up, the systematic aqueous photoelectrochemical measurement highlights the efficacy of multiple surface molecules to activate the aqueous photocurrents of the perovskite material, and calls for a global optimization strategy that comprehensively address diverse surfaces and interfaces in the perovskite photoelectrodes.
Machine learning
An accurate machine learning model describing the photoelectrochemistry of the multi-molecule-modified perovskites is constructed using the extra-trees algorithm based on the molecular and experimental features surviving the RFE process (Fig. 4a). The extra-trees model achieves a large area-under-curve (AUC) value of 0.86 for the test dataset in the receiver operating characteristic (ROC) plot; the corresponding confusion matrix further demonstrates the accurate stability classification model, with 100 samples correctly classified (82 true positive and 18 true negative samples). Furthermore, the AUC value of the train set displays a high accuracy of 0.94, with the confusion matrix indicating that 253 true samples are correctly identified (Fig. 4b, c). In conclusion, the extra-trees model presents a high accuracy in assessing the aqueous performance of the molecule-modified lead halide perovskites and establishes a solid foundation for the subsequent SHAP-based feature analysis.
Genetic model
In order to provide alternative machine interpretability and complement the black-box machine learning model, a genetic model clearly revealing the structure of the machine learning model via mathematical equations relating the descriptors and the photoelectrochemical stability is constructed. This gives rise to the following molecule-photocurrent stability relationship:
where the detailed explanations of the variables are provided in the Supplementary Table 2. The genetic model demonstrates decent accuracies (i.e., 83% for the test set and 86% for the train set) to describe the photoelectrochemical outputs. The following chemical and materials insights can be provided by the genetic model:
-
The mathematical equation describing the aqueous photocurrents of the hybrid systems consists of multiple terms (joint contribution from both molecular and experimental details) connected by at least seven mathematic operators (+, −, ×, ÷, √, tan, cos, and log).
-
f1 corresponds to the surface area in a molecule with a specific electrotopological state of halide additive in the precursor solution (i.e., AEV), and the feature AEV has a negative impact on residue index (the larger value of AEV, the poorer photocurrent stability). We attribute this to the undesirable perovskite crystal formation process in the presence of additives with larger surface area (represented by higher AEV value) in the precursor solution, with a tendency to form less compact layers that is detrimental to the aqueous stability. In addition, the presence of ALA in the denominator with two subtraction operations suggest the negative correlation with the target stability, which is attributed to the larger surface area that leads to more significant interaction with the neighboring solvent molecules (ALA describes the molecular solubility via measuring the surface area on the compound molecule exposed to a solvent). To sum up, the first term (f1) describing the perovskite photoelectrochemical stability is a sophisticated interplay among the three types of surface molecules (solvent, precursor and post-treatment dye), especially the intricacies of electrotopological and surface area exposed to solvents for the target property.
-
f2 is another critical factor revealed in the genetic model (the second term) focusing on the Sv feature, with negative influence on the perovskite stability. The Sv parameter in f2 is associated with the hydrophilicity of the post-treatment molecule, and higher value implies a higher solubility of dye molecules in water, which may ultimately lead to weaker surface layer protection and thus poorer stability. This can be confirmed by the optimal combination “DMSO+PbBr2+calcein” which has a lower value of AEV and Sv. In addition, f2 is negatively correlated with the stability output because of the negative first derivative (slope) of the function cos SV–SV (0 + 2kπ < Sv < π + 2kπ where k = 5). As a result, the aqueous stability of the molecularly modified perovskite material can be decoupled into f2 which highlights the negative correlation of the hydrophilicity of the post-treatment molecule to the material stability, which agrees with chemical intuition.
-
f3 is associated with the experimental parameter T and is negatively correlated with the stability output as demonstrated in the last term (\(-\sqrt{\tan T}-\tan T\)); this agrees with experimental instinct where T corresponds to the water immersion time and the prolonged water immersion leads to more dramatic degradation of the photoelectrode materials. As a result, the third mathematical term in the genetic model represents the experimental observation that longer water immersion severely degrades the halide perovskite materials.
Feature analysis
The SHAP method is utilized to understand the molecular contribution and structural importance based on the extra-trees machine learning model (Supplementary Fig. 3). The top three most important features using the SHAP method are APV, DR, and ASV (Fig. 5a), and the complete feature ranking for aqueous photocurrent is: APV > DR > ASV > AM > AK3 > AEVS > TPSA > AHA > ALA > VE8 > SV > AK1 > FDM1 > FDM2 > MAPC > MEI > T > MPC. It is interesting to observe that most molecular descriptors exhibit much higher ranking than the important experimental factor T (T is negatively correlated with the target output), indicating the strong influence of these structural, topological and property descriptors of the multi-molecules in diverse surfaces and interfaces on aqueous photocurrent. The temperature T survives after the RFE feature selection step. Importantly, it is only minor compared with other survived feature, but is much more important than most features before the RFE feature selection step. As a result, the temperature should not be eliminated in the post-hoc machine learning analysis. In the summary plot of SHAP, the lower values (blue points) of the features APV, ASV, AEVS, TPSA, AHA, ALA, VE8, SV, and AK1 distribute on the positive side of the SHAP values (the color of dots represents the magnitude of SHAP values, with a darker red color representing higher values), specifying that judicious selection of surface molecules with lower values of these features benefits the water stability of the lead halide perovskite film. The highest-ranking feature APV is related to the atomic charge distribution and functional group of additives, signifying the strength of the connection of the molecules to an actual charged atom; as a result, the additive molecules with higher APV values are associated with more charged regions that benefit the connections to the charged species in the precursor solution and thus lead to improved quality of the perovskite film. ASV is another high-ranking molecular feature, which is associated with the hydrophilicity of molecular additives; as a result, lower values of ASV are desirable to mitigate the interaction with the air-water interface and subsequent material degradation. In order to design aqueous stable halide perovskite materials, it is recommended to choose halide additives with lower ASV and APV values suggested in the SHAP analysis. On the other hand, the larger values (red dots) of the features DR and AM distribute on the positive side of the SHAP values, indicating that larger values of these features are preferred to designing water-stable perovskites. DR corresponds to the ratio between DMF and DMSO, suggesting the solvent concentration of both solvents should be considered in the materials design process. AM is referred to the degree of lipophilicity of the compound and the larger value is favored to alleviate water solubility. This agrees with the experimental intuition to improve optoelectronic stability via minimizing water contact and infiltration. The SHAP feature analysis highlights the hydrophilicity and lipophilicity of the organic molecules for the perovskite aqueous optoelectronic stability. Hydrophilicity refers to the tendency of a substance to interact favorably with water, while lipophilicity refers to the tendency to interact favorably with lipids or non-polar solvents. The van der Waals surface area has been demonstrated to be strongly related to lipophilicity and the negative SlogP_VSA2 is related to high hydrophobicity to alter the perovskite dimensionality34,35,36. Apart from that, the higher-ranking features in the importance histogram according to SHAP (Fig. 5b) are not solely contributed any particular molecules in a single surface/interface; rather, the aqueous photocurrent generation of the perovskite film is contributed by solvents, precursor additives, and post-treatment molecules in a synergistic manner, with the hydrophilicity and lipophilicity of the organic surface modifiers playing critical role.
Post-hoc DFT calculation
DFT is employed to uncover the detailed intermolecular interactions of the champion system (DMSO+cacein+PbBr2) on MAPbI3 surface (Fig. 6a, b) presuming an adsorption model with molecular adsorbates. In addition, a H2O molecule is introduced to the molecule-modified perovskite supercell surface system (Fig. 6c, d) to better understand the aqueous influence on the halide perovskite surface structure and optoelectronic properties. The calculation identifies the co-existence of anion···π, halide bond and hydrogen bond molecular interactions to stabilize the overall molecule-perovskite interfacial structure (Fig. 6e). The calcein molecule displays a hydrogen bond of 4.65 Å with the perovskite surface lead species, and an anion···π interaction between the DMSO molecule and the perovskite surface iodine species at a distance of 4.27 Å; additionally, a hydrogen bond of 3.90 Å forms between the calcein adsorbate (hydroxyl hydrogen) and perovskite surface (iodine). Moreover, DMSO forms a hydrogen bond of 3.27 Å with the perovskite surface; PbBr2 demonstrates a halogen bond of 3.64 Å with the perovskite surfaces iodine, and a hydrogen bond of 4.42 Å with the calcein molecule. It is noteworthy that the H2O molecule does not disrupt the structure integrity of the interfacial perovskite surface system; this is attributed to the presence of complex intermolecular bonding among the organic molecules in addition to the adsorbate···adsorbent interactions, which form a compact self-assembled multilayer37 to prevent direct damage to the perovskite system by water molecules.
The projected density of states (PDOS) spectra are determined to reveal the joint contributions of post-treatment calcein molecule, additive PbBr2, and precursor solvent DMSO in the electronic properties of the perovskite system (Fig. 6f). The adsorbed molecules contribute strongly to both conduction band and valence band of the perovskite system via their p orbitals. In particular, the PbBr2 adsorbate contributes more significantly to the conduction band edges while the calcein molecule contributes extensively to both conduction and valence band edges in the PDOS spectra, signifying possible chemical bond formation and intimate physical contacts via effective hybridization between the p orbitals of the post-treatment chromophore and neighboring materials.
The simulated UV-vis absorption spectra (Fig. 6g) demonstrate the improved light-harvesting performance of the molecule-modified perovskite system (Supplementary Fig. 4) compared with the bare system in terms of visible light (400 nm ~ 800 nm) conversion into electrons, which aligns with the experimental findings38,39. This suggests the possibility of simultaneous improvement in the light absorption properties and insulation against water damage when these adsorbent molecules are present on the halide perovskite substrate. Furthermore, the molecule-modified hybrid system has a smaller work function (5.44 eV) than the bare system (5.98 eV), indicating that the champion system can emit photoelectrons at a smaller excitation energy in addition to decent conductivity (Fig. 6h, i). Moreover, the incorporation of these adsorbed molecules results in a reduction of band gap in the perovskite system: the band gap of the molecule-modified system is reduced to 1.439 eV (c.f., the bare system has a band gap of 1.795 eV) (Table 1), favouring a promoted energy transition from occupied energy levels to occupied ones for valence electrons. Noteworthily, the incorporation of the molecules does not introduce unnecessary in-gap states corresponding to detrimental deep-level defects, which is in vast difference with those undesirable molecular adsorbate systems in the literature40,41. The potential plot and density of states spectra of the perovskite systems without water adsorption are also obtained via the DFT calculation, suggesting larger work function of both bare and molecule-modified perovskite systems in the presence of water. In addition, the water adsorption leads to larger band gap, which is detrimental to the optical properties (Supplementary Fig. 5). To sum up, the presence of calcein, DMSO and PbBr2 on CH3NH3PbI3 surface leads to a stable interfacial structure via multiple intermolecular bonds with improved optoelectronic properties and absence of deep-level defects.
Shockley Queisser (S-Q) and spectroscopic limited maximum efficiency (SLME) values are calculated to evaluate the application for photovoltaic device of molecule-modified perovskite system. The theoretical S-Q efficiency of the bare perovskite system is only 27.2% (Fig. 7); when the incident light enters the perovskite system, 53.6% of energy is not absorbed, 10.9% is lost due to thermalization, 8.2% is lost due to extraction and only 27.9% energy of incident light is available for absorption. Additionally, the bare system only has an SLME efficiency of 26.84%, which is slightly larger than the S-Q counterpart because the latter method neglects the absorption process and only considers the band gap contribution. In contrast, the theoretical S-Q efficiency of the molecule-modified system is 32.9%, which is 1.2 times higher than that of the bare system; the corresponding deconvolution demonstrates 35.1% of the coming light energy is not absorbed, 19.9% is lost due to thermalization, 12.1% is lost due to extraction and 32.9% available for subsequent energy conversion. Meanwhile, the SLME efficiency of the molecule-modified system is 32.27%, which improves by 20% compared with that offered by the bare system. Besides, the presence of water molecule leads to inferior SLME and S-Q efficiency, which agrees with chemical intuition (Supplementary Table 2 and Supplementary Fig. 6). To sum up, both S-Q and SLME efficiency estimation methods confirm the superiority of the molecule-modified perovskite systems to offer enhanced solar energy conversion performance.
A comprehensive photoelectrochemical investigation on 96 different molecule-modified CH3NH3PbI3 halide perovskite materials is performed, which helps evaluate the molecular influence (solvent molecule ratios, halide additives and post-treatment molecules) on the halide perovskite aqueous optoelectronic stability. A champion system based on ‘calcein+PbBr2 + DMSO’ is identified; it delivers a large aqueous photocurrent (3 × 10−5 A/cm2) and an improved aqueous stability (retention index) of 92.5% after 200 s water immersion. An accurate extra-tree machine learning model is constructed, with SHAP feature analysis highlighting the hydrophilicity and lipophilicity of the organic molecules for the perovskite aqueous optoelectronic stability. An accurate genetic model is provided to offer alternative machine interpretability and address the ‘black-box’ issue. A more approachable machine learning model with the mathematical expression of Stability = f1+f2−f3 is designed to describe the perovskite stability. The resulting expression decouples the molecular contributions into hydrophilicity, electrotopology and surface areas of the tri-molecules. The post-hoc DFT calculation suggests the possibility of multiple surface intermolecular bonds, such as hydrogen bonds and anion··π surface interactions in the self-assembled layer to stabilize the interfacial structures in the champion system. The calculation suggests the absence of deep-level defects, improved light harvesting properties and higher S-Q and SLME efficiencies in the ‘calcein+PbBr2 + DMSO’ system. The present study confirms the efficacy of the proposed ‘global optimization’ strategy to address the aqueous instability issue of halide perovskite materials, and calls for more multi-mode modeling studies to comprehensively evaluate the molecule-modified materials.
Methods
Photoelectrochemical experiments
The TiO2 film (18NR-T, Greatcell Solar) is transferred onto TiO2 via doctor-blade method, which is sintered at 450 °C for two hours. Three types of molecules are considered in the surface molecular design process, including solvents, additives and post-treatment species. A precursor solution containing CH3NH3I (MAI) and PbI2 is prepared based on DMSO and DMF with different ratio, and halide additives such as NH4Cl, LiCl, PbBr2 and CsBr with a concentration of 0.02 mol/L are introduced into the solution. Subsequently, the halide perovskite precursor solution is introduced on TiO2 film and heated at 90 °C, and a post-treatment solution consisting of 0.002 mol/L organic molecules (represented by solvent red 24, solvent blue 97, calcein and solvent black 5 chromophores) (Fig. 2a) is drop-cast onto the surface after the halide perovskite film darkens. Finally, the halide perovskite film is continuously heated at 90 °C and the resulting halide film is cooled down slowly to the room temperature. This leads to the presence of molecular residues that functionalize diverse surfaces. The molecule-modified halide perovskite thin film material is subsequently illuminated by a light source (Ailike) with a 2000 lm intensity, which is positioned 5 cm away from the photoelectrode. The photocurrents of the molecule-modified halide perovskite film in aqueous solution are obtained with a light on/off interval of 20 s and a total of 200 s measurement period. A three-electrode potentiostat (CHI660E, Chenhua) is employed to obtain aqueous photocurrents to reflect their aqueous optoelectronic properties, consisting of the molecule-engineered perovskite film as the working electrode, Ag/AgCl as the reference electrode, Pt as the counter electrode, and a 0.1 M Na2SO4 aqueous solution as the electrolyte. Specifically, the experimental variables consist of solvent concentration ratios (DMF: DMSO = 1:1, 1:4, 0:4 and 4:0), halide additives (LiCl, NH4Cl, CsBr, PbBr2 and none) and post-treatment dye molecules (solvent red 24, solvent blue 97, calcein, solvent black 5 and none) (Fig. 2). The detailed fabrication steps follow the those described in the literature42.
Genetic and machine learning models
Output label
binary classification is carried out to label the material as ‘stable’ or ‘unstable’ in water. In total, 384 experimental data entries are obtained based on 96 different molecularly modified materials and 4 measurements at different water immersion time. The residue index describing the aqueous stability is calculated according to the following equation:
where Jinitial is the starting aqueous photocurrent, Jend is the final aqueous photocurrent. The materials are assumed to be ‘stable’ if 0.9 < residue index < 1.1 (marked as label ‘1’), while the others (residue index ≥ 1.1 or ≤ 0.9) are considered as ‘unstable’ and are marked as label ‘0’ (Fig. 2b). As a result, the photocurrent data are classified into two groups (‘stable’ and ‘unstable’) to represent the aqueous optoelectronic stability of the thin film materials. The label ‘1’ represents the ‘stable’ hybrid materials if 0.9 < residue index < 1.1, while the others (residue index ≥ 1.1 or ≤ 0.9). The threshold values (0.9 and 1.1) are chosen because: (1) decent gap regions exist near 0.9 and 1.1, which help classify the stability; (2) if the retention index is either too large or too small, it is more probable to display undesirable structural disintegration and material dissolution is water43.
Feature selection
70 raw descriptors from RDKit (Supplementary Table 1) related to connectivity, constitutional and topological details of organic molecules are selected as the initial features. These raw descriptors are mutually dependent and repetitive (Supplementary Fig. 1); in order to avoid redundancy and overfitting issues, recursive feature elimination (RFE) is employed to conduct feature selection to screen proper descriptors. RFE is a feature selection method to recursively select the most important subset of features from a given feature set, gradually eliminating the low-ranking features until either the desired number of features (Supplementary Table 2 and Supplementary Fig. 2) or a threshold of feature importance is reached.
Machine learning
two machine learning methods are employed to decouple the molecular contributions on the aqueous stability of the materials. (1) The SHAP method based on Extremely Randomized Trees (extra-trees) Classifier algorithm is utilized to assist in interpreting the photoelectrochemical data. The extra tree classifier is an ensemble learning technique that aggregates the results of multiple decorrelated decision trees collected in a forest to output classification results, and SHAP is based on cooperative game theory and calculates the contribution of each feature towards the prediction, offering scientific insights using the present extra-trees model. (2) Genetic algorithm, inspired by the principles of biological evolution, is introduced to unveil the interconnections among features and investigate their impact on the aqueous stability of the halide perovskite material. The symbolic classification using the genetic programming algorithm simulates the genetic evolutionary processes to search for optimal mathematical expressions with terminals (molecular features) and operators (+, −, ×, ÷√, sin, cos, exp, and log). The hyperparameters of the extra-trees and genetic models are provided in the supporting information (Supplementary Table 3). The datasets, machine learning models and codes are openly accessible on the website: https://github.com/huangyiru123/global_optimization_molecules.
Density functional theory
Density functional theory (DFT) calculations are carried out in CASTEP44. The functional is Perdew-Burke- Ernzerhof (PBE) and the cutoff energy is 430 eV. A surface system of CH3NH3PbI3 (MAPbI3) is cleaved along the representative (001) direction and terminated with the PbI2 non-polar surface layer based on an orthorhombic crystal. A 2 × 2 × 1 supercell is constructed to accommodate the dye molecule, halide additive, solvent molecule, and H2O adsorbates. In order to reduce unnecessary interactions between slabs, a 20 Å vacuum layer is constructed. The convergence criteria of energy, force, and displacement are set to 1 × 105 eV, 0.03 eV/Å, and 0.001 Å for the geometrical optimization. Additionally, in order to avoid the erroneous estimation of band gaps by PBE, HSE06 functional is utilized to calculate band structure of the halide perovskite surface system with a k-point set of 2 × 2 × 1. The Tkachenko-Scheffler (TS) scheme45 is included to account for van der Waals interactions.
Data availability
The datasets, models and codes are publicly available and provided in the GitHub website: https://github.com/huangyiru123/global_optimization_molecules. The datasets after feature selection are provided in: https://github.com/huangyiru123/Global_optimization_perovskite/blob/main/18features.csv. The machine learning model is provided in: https://github.com/huangyiru123/Global_optimization_perovskite/blob/main/ET.dat.
Code availability
The machine learning codes are publicly available and provided in: https://github.com/huangyiru123/Global_optimization_perovskite/blob/main/machine-learning.ipynb. The SHAP codes are provided in https://github.com/huangyiru123/Global_optimization_perovskite/blob/main/SHAP.ipynb. The genetic codes are provided in https://github.com/huangyiru123/Global_optimization_perovskite/blob/main/Symbolic_classification.ipynb.
References
Ye, F. et al. Roles of MACl in sequentially deposited bromine‐free perovskite absorbers for efficient solar cells. Adv. Mater. 33, 2007126 (2021).
Li, N. et al. Liquid medium annealing for fabricating durable perovskite solar cells with improved reproducibility. Science 373, 561–567 (2021).
Hassan, Y. et al. Ligand-engineered bandgap stability in mixed-halide perovskite LEDs. Nature 591, 72–77 (2021).
Leijtens, T. et al. Overcoming ultraviolet light instability of sensitized TiO2 with meso-superstructured organometal tri-halide perovskite solar cells. Nat. Commun. 4, 1–8 (2013).
Mathieson, A. et al. Ruddlesden popper 2D perovskites as Li-ion battery electrodes. Mater. Adv. 2, 3370–3377 (2021).
Cai, X. et al. Discovery of lead-free perovskites for high-performance solar cells via machine learning: ultrabroadband absorption, low radiative combination, and enhanced thermal conductivities. Adv. Sci. 9, 1–15 (2022).
Zhao, H., Kordas, K. & Ojala, S. Recent advances in synthesis of water-stable metal halide perovskites and photocatalytic applications. J. Mater. Chem. A 11, 22656–22687 (2023).
Il Jake Choi, J. et al. Pathways of water-induced lead-halide perovskite surface degradation: insights from in situ atomic-scale analysis. ACS Nano 17, 25679–25688 (2023).
Sun, K., Müller-Buschbaum, P. Shedding light on the moisture stability of halide perovskite thin films. Energy Technol. 11, 2201475 (2023).
Hidalgo, J. et al. Synergistic role of water and oxygen leads to degradation in formamidinium-based halide perovskites. J. Am. Chem. Soc. 145, 24549–24557 (2023).
Cheng, S. & Zhong, H. What happens when halide perovskites meet with water? J. Phys. Chem. Lett. 13, 2281–2290 (2022).
Zhang, L., Xu, L., Su, J., Lu, D. & Li, J. Molecular engineering of the lead iodide perovskite surface: case study on molecules with pyridyl groups. J. Phys. Chem. C 121, 24612–24617 (2017).
Hu, M. et al. Water additives improve the efficiency of violet perovskite light-emitting diodes. Matter 6, 2356–2367 (2023).
Das, A. & Debnath, T. Water‐triggered chemical transformation of perovskite nanocrystals. Chem. – A Eur. J. 29, e202202475 (2023).
Domanski, K., Alharbi, E. A., Hagfeldt, A., Grätzel, M. & Tress, W. Systematic investigation of the impact of operation conditions on the degradation behaviour of perovskite solar cells. Nat. Energy 3, 61–67 (2018).
Azmi, R. et al. Damp heat–stable perovskite solar cells with tailored-dimensionality 2D/3D heterojunctions. Science 376, 73–77 (2022).
Yoo, Y. et al. Tailoring the Structure of low‐dimensional halide perovskite through a room temperature solution process: role of ligands. Small Methods 5, 2100054 (2021).
Cheng, L. et al. Tailoring interlayer spacers for efficient and stable formamidinium‐based low‐dimensional perovskite solar cells. Adv. Mater. 34, 2106380 (2022).
Zhang, L. & Lin, S. Dimensional tailoring of halide perovskite: a case study on Cs4PbBr6/CsPbBr3 hybrid with molecular halide perovskite. Sol. Energy Mater. Sol. Cells 204, 110237 (2020).
Shenoy, V. B., Frey, N. C., Akinwande, D. & Jariwala, D. Machine learning-enabled design of point defects in 2d materials for quantum and neuromorphic information processing. ACS Nano 14, 13406–13417 (2020).
Heo, Y. J. et al. Enhancing performance and stability of tin halide perovskite light emitting diodes via coordination engineering of lewis acid–base adducts. Adv. Funct. Mater. 31, 2106974 (2021).
Yang, Z. et al. Multifunctional phosphorus‐containing lewis acid and base passivation enabling efficient and moisture‐stable perovskite solar cells. Adv. Funct. Mater. 30, 1910710 (2020).
Wang, S. et al. Lewis acid/base approach for efficacious defect passivation in perovskite solar cells. J. Mater. Chem. A 8, 12201–12225 (2020).
Myung, C. W. et al. Challenges, opportunities, and prospects in metal halide perovskites from theoretical and machine learning perspectives. Adv. Energy Mater. 12, 2202279 (2022).
Lyu, R., Moore, C. E., Liu, T., Yu, Y. & Wu, Y. Predictive design model for low-dimensional organic–inorganic halide perovskites assisted by machine learning. J. Am. Chem. Soc. 143, 12766–12776 (2021).
Hu, Y.-C. Data-driven prediction of the glass-forming ability of modeled alloys by supervised machine learning. J. Mater. Inform. 3, 1 (2023).
Chen, Z. & Yang, Y. Data-driven design of eutectic high entropy alloys. J. Mater. Inform. 3, 10 (2023).
Yokoyama, T. et al. An efficient ab initio scheme for discovering organic–inorganic hybrid materials by using genetic algorithms. J. Phys. Chem. Lett. 12, 2023–2028 (2021).
Pan, Z., Zhou, Y. & Zhang, L. Photoelectrochemical properties, machine learning, and symbolic regression for molecularly engineered halide perovskite materials in water. ACS Appl. Mater. Interfaces 14, 9933–9943 (2022).
Tong, Q. et al. Combining machine learning potential and structure prediction for accelerated materials design and discovery. J. Phys. Chem. Lett. 11, 8710–8720 (2020).
Van der Ven, A., Deng, Z., Banerjee, S. & Ong, S. P. Rechargeable alkali-ion battery materials: theory and computation. Chem. Rev. 120, 6977–7019 (2020).
Devereux, L. R., Vázquez-Mayagoitia, Á., Sternberg, M. G., Cole, J. M. In-silico device performance prediction of cosensitizer dye pairs for dye-sensitized solar cells. Adv. Energy Mater. 13, 2203536 (2023).
Curtarolo, S. et al. The high-throughput highway to computational materials design. Nat. Mater. 12, 191–201 (2013).
Yuan, S. et al. Accurate dimension prediction for low-dimensional organic–inorganic halide perovskites via a self-established machine learning strategy. J. Phys. Chem. Lett. 14, 7323–7330 (2023).
Jung, M.-H. Hydrophobic perovskites based on an alkylamine compound for high efficiency solar cells with improved environmental stability. J. Mater. Chem. A 7, 14689–14704 (2019).
Lu, T., Li, M., Lu, W. & Zhang, T.-Y. Recent progress in the data-driven discovery of novel photovoltaic materials. J. Mater. Inform. 2, 7 (2022).
Zhang, L., Liu, X., Rao, W. & Li, J. Multilayer dye aggregation at Dye/TiO2 Interface via π…π stacking and hydrogen bond and its impact on solar cell performance: a DFT analysis. Sci. Rep. 6, 35893 (2016).
Maity, P. et al. Exceeding 100 µs charge carrier separation in perovskite mediated by rhodamine 6G. Adv. Opt. Mater. 12, 2300941 (2024).
Cortés‐Villena, A., Caminos, D. A., Galian, R. E., Pérez‐Prieto, J. Singlet sensitization of a BODIPY rotor triggered by marriage with perovskite nanocrystals. Adv. Opt. Mater. 11, 2300138 (2023).
Li, B. et al. Fundamental understanding of stability for halide perovskite photovoltaics: the importance of interfaces. Chem 10, 35–47 (2024).
Shen, X. et al. Passivation strategies for mitigating defect challenges in halide perovskite light-emitting diodes. Joule 7, 272–308 (2023).
Huang, Y., Li, S. & Zhang, L. Accelerated multisolvent prediction for aqueous stable halide perovskite materials. ACS Appl. Mater. Interfaces 15, 48771–48784 (2023).
Zhang, L. & Lin, S. Cosensitization-based halide perovskite in aqueous solution: a photoelectrochemical and first-principles investigation. Mater. Res. Bull. 141, 10–1016 (2021).
Segall, M. D. et al. First-principles simulation: ideas, illustrations and the CASTEP code. J. Phys. Condens. Matter 14, 2717–2744 (2002).
Tkatchenko, A. & Scheffler, M. Accurate molecular van der waals interactions from ground-state electron density and free-atom reference data. Phys. Rev. Lett. 102, 073005 (2009).
Acknowledgements
This work was supported by the Jiangsu Provincial Science and Technology Project Basic Research Program (Natural Science Foundation of Jiangsu Province) (No. BK20211283).
Author information
Authors and Affiliations
Contributions
L.Z. supervised the overall investigation and wrote the manuscript. S.W. produced the data-driven results and provided funds. Y.H. and H.W. discussed the machine-learning results and materials case studies. All authors wrote and commented on the manuscript and figure.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Wang, S., Huang, Y., Hu, W. et al. Data-driven optimization and machine learning analysis of compatible molecules for halide perovskite material. npj Comput Mater 10, 114 (2024). https://doi.org/10.1038/s41524-024-01297-4
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41524-024-01297-4