본문 펼치기
### ARTICLE
DOI: 10.1038/s41467-018-05761-w OPEN
## Accelerated discovery of stable lead-free hybrid organic-inorganic perovskites via machine learning
Shuaihua Lu <sup>1</sup>, Qionghua Zhou <sup>1</sup>, Yixin Ouyang <sup>1</sup>, Yilv Guo <sup>1</sup>, Qiang Li <sup>1</sup> & Jinlan Wang <sup>1</sup>
Rapidly discovering functional materials remains an open challenge because the traditional
trial-and-error methods are usually inefficient especially when thousands of candidates are
treated. Here, we develop a target-driven method to predict undiscovered hybrid organic
inorganic perovskites (HOIPs) for photovoltaics. This strategy, combining machine learning
techniques and density functional theory calculations, aims to quickly screen the HOIPs
based on bandgap and solve the problems of toxicity and poor environmental stability in
HOIPs. Successfully, six orthorhombic lead-free HOIPs with proper bandgap for solar cells
and room temperature thermal stability are screened out from 5158 unexplored HOIPs and
two of them stand out with direct bandgaps in the visible region and excellent environmental
stability. Essentially, a close structure-property relationship mapping the HOIPs bandgap is
established. Our method can achieve high accuracy in a flash and be applicable to a broad
class of functional material design.
1 School of Physics, Southeast University, Nanjing 211189, China. These authors contributed equally: Shuaihua Lu, Qionghua Zhou. Correspondence and
requests for materials should be addressed to J.W. (email: [jlwang@seu.edu.cn)](mailto:jlwang@seu.edu.cn)
he development of functional materials is the cornerstone
of innovations in industry, and discovering materials with
targeted property has always been a hotspot in science. The
# T
emergence of advanced techniques, such as high-throughput
calculations based on density functional theory (DFT) has
accelerated the search process at certain level <sup>1–4</sup> . However, the
increasing scale of practical problems and complexity of materials
require more sophisticated and effective methods for enormous
database. Fortunately, the rapid development of material genome
project <sup>5</sup> and artificial intelligence technology has brought exciting
hope to this dilemma <sup>6–8</sup> . Most recently, machine learning (ML)
technology has been made significant progress in the rational
material design, such as efficient molecular organic light-emitting
diodes <sup>9</sup>, low thermal hysteresis shape memory alloys <sup>10</sup>, piezoelectrics with large electrostrains <sup>11</sup> and so on. Bypassing complex
quantum mechanics, ML technology can not only greatly accelerate materials design with high accuracy, but also learn trends
within materials’ basic composition from big material data.
While ML technology sheds light on in the field of material
design on inorganic perovskites <sup>12–15</sup>, the discovery of hybrid
organic–inorganic perovskites (HOIPs) has never been reported
yet in this way. HOIPs, as one of the most promising photovoltaic
materials, have attracted tremendous interest recently. The most
distinguished virtues of HOIPs includethe high power conversion
efficiency (PCE), low-cost experimental synthesis and tunable
bandgaps <sup>16–20</sup> . Since the first successful application of
CH3NH3PbX3 (X = Cl, Br) with a PCE of 3.8% in 2009 by Kojima
et al. <sup>21</sup>, great efforts have continually been devoted to improve
their PCE. Currently, the PCE of solar cells based on HOIPs has
been boosted up to 22.1% <sup>22</sup> . Despite the great progress of HOIPbased solar cells, two key challenges limit the emerging materials
for large scale commercial applications. One of the serious issues
is toxicity, due to the element of lead (Pb), which contributes to
most of the HOIP-based solar cells with high PCEs <sup>23,24</sup> . The
other well-known factor is that their environmental stability is
particularly poor, even with strict protection procedures. Therefore, it is of paramount importance to find stable Pb-free HOIPs
with high PCE and sustainable air stability <sup>25–28</sup> . Unfortunately,
due to the complexity and diversity of HOIPs structures (they are
composed of organic molecules and inorganic metal frames),
DFT-based high throughput calculations are too expensive and
time consuming, not to mention experiments.
Here, we develop a target-driven method to discover stable Pbfree HOIPs based on ML technique and DFT calculations. We
first train our ML model from 212 reported HOIPs’ bandgap
values, and predict the bandgaps of 5158 unexplored possible
HOIPs. A close structure-property relationship mapping HOIPs’
bandgap is concurrently excavated out from ML data, in which
the ranges of tolerance factor, octahedral factor, metal electronegativity, and polarizability of organic molecules are defined for
ideal HOIP-based solar cells. After further screening, six stable
Pb-free HOIPs are selected as promising solar cells materials with
proper bandgap.
Results
Design framework. Our multi-stage material design approach is
schematically illustrated in Fig. 1, and the prediction engine
consists of three integral components: input HOIPs data, ML
algorithm, and DFT calculations. As a common ML procedure,
an input dataset of HOIPs, each of which is described by features,
is built for training and testing ML model. With that, feature
engineering is needed in the first place to remove redundant
features and establish a structure-property relationship. Once the
input feature set is fixed, the best hyper-parameters will be
selected using grid searching technique and five-cross-validation
procedures (the selection details are given in Methods) <sup>29</sup> . After
that, we apply the trained ML model to the prediction dataset.
Finally, DFT calculations are performed to study the thermal and
environmental stabilities and electronic properties of HOIPs
candidates screened out from ML simulations.
Dataset. The input data for this study, containing 346 HOIPs, is
obtained from previous high throughput first-principles calculations <sup>30,31</sup> . For data consistency and accuracy of ML predictions,
we only select orthorhombic-like crystal structures with bandgap
calculated using the Perdew-Burke-Ernzerh (PBE) functional.
Therefore, 212 selected HOIP compounds are included in this
engine, which completely belong to the family of perovskites of
chemical formula ABX3, as explicitly shown in Fig. 2a. In this
structure, the halogen atoms X (X = F, Cl, Br, I) occupy the
vertices of regular corner-sharing BX6 octahedron, while 32 different divalent metal cations B <sup>2+</sup> sit at the center of the octahedron, and 11 kinds of monovalent cations A <sup>+</sup> fill in the cavity
formed by the adjacent octahedrons. In the flow chart, we construct a dataset visualized in the form of plots between tolerance
factor and bandgap Eg <sup>PBE</sup> of HOIPs, in which they are divided into
a training dataset (80%) and a test dataset (20%) after one
thousand test (see Fig. 2b and Supplementary Fig. 1). As we can
see from the data distribution, the input HOIPs dataset is made
up of three parts: metals (zero bandgap), semiconductors
(bandgap between 0 and 3.5 eV) and insulators (bandgap larger
than 3.5 eV).
In fact, there are plenty of choices for the sites A and B in a
HOIP. For A-site, we collect other 21 kinds of organic molecular
cations A <sup>+</sup>, all of which have been considered in the
literature <sup>20,32,33</sup> (see Supplementary Fig. 2). Meanwhile, we
substitute the B-site with 43 divalent cations across the Periodic
Table. Consequently, 5504 different possible HOIP compounds
(32 A-site cations, 43 B-site cations and 4 X-site anions) are
obtained. Considering that 346 HOIPs have been studied, we
explore the rest 5158 potential candidates in this work.
Feature engineering. For any ML method that targets toward a
prespecified material property, it usually depends on a certain
amount of features (descriptors). The features not only uniquely
define each material in input dataset, but also relate to its desired
physical and chemical properties. Although there may be many
factors that affect the targeted property of materials, the number
of features must be reasonable. The best strategy is to choose
features that perfectly represent the materials’ property and the
number of features should be far less than the number of materials in input dataset to avoid the curse of dimensionality <sup>34</sup> .
In this work, 30 initial features (the total features are in
Supplementary Table. 1 and their sources are given in
Supplementary Note. 1) such as ionic radii, tolerance factor and
electronegativity are chosen to describe HOIPs in the chemical
space collectively. In order to understand the relationship
between features and targeted property, we evaluate the initial
features via the gradient boosting regression (GBR) algorithm <sup>35</sup> .
Furthermore, we incorporate a “last-place elimination” into the
GBR algorithm to efficiently exclude the features that have less
impact on the bandgap (the computational details are given in
Methods). A detailed description of the feature selection
procedure is given in and Supplementary Fig. 3 and Supplementary Note. 2. Finally, 14 most important features are sorted out
and constitute as an optimal feature set. The new feature set
contains structural features (tolerance factor Tf, octahedral factor
Of) as well as the elemental properties of A-, B- and X-site ions
(total number of ionic charge ICB, p orbital electron Xp-electron,
ionization energy IEB, electronegativity χB, electron affinity EAB,
Input dataset Targeted property
Proper bandgap for
30 initial material features
optoelectronics
212 HOIPs (0.9–1.6 eV
Global optimization
(DFT)
Bandgap calculation
(DFT-PBE)
Dynamic stability
(DFT)
Environmental stability
(DFT)
Feature engineering
14 selected material features
Statistical inference & ML
5158 possible HOIPs
Structure-property relationship
Design and optimization:
choice of candidates for
next calculation
Tolerance factor
Octahedral factor
Stability & toxicity
Proper bandgap
Candidate HOIPs
Fig. 1 Lead-free HOIPs design framework. The material design framework combined with ML and DFT to efficiently search for stable Pb-free HOIPs with
proper bandgap. The blue boxes represent the material screening process based on the ML algorithm generated from historical HOIP data. Then electronic
properties and stability evaluation of these selected candidates are further calculated using DFT, which are shown in the green boxes
a b
Mg Si P Ca Sc Ti V Ni
Train set
Test set
Insulator
Semiconductor
Metal
0.9 1.0 1.1 1.2 1.3 1.4 1.5
Tolerance factor
Cu Ge As Sr Y Zr Nb
Mo
B-site divalent metals
CH3CH2NH3+ (CH3)2CHNH3+
CH3C(NH2)2+
Rh Pd Ag Cd In Sn Sb Ba
Hf Ta
W Re Au Ti Pb Bi
6
5
4
3
2
1
0
0.8
(CH3)2NH2+
C(NH2)3+ (CH3)3NH <sup>+</sup>
+ CH3NH3+ NH2NH3+
HC(NH2)2
CH3NH3+ NH2NH3+
+
X-site halide elements
F CI Br I
(CH3)4N <sup>+</sup> C3H5N2+
A-site organic cations
Fig. 2 HOIPs input dataset for training and testing. a 212 high throughput HOIP structures. The combination of 11 small organic molecular species (A-site)
and 32 divalent metals (B-site) constitutes the input samples of our ML model. X is a typical halide. b Data visualization in training (blue dots) and test (red
dots) of tolerance factor and bandgap Eg <sup>PBE</sup> of HOIPs. The entire dataset consists of metals, semiconductors, and insulators
ionic polarizability (PB, PA), sum of the s and p orbital radii rs+p
B <sup>,</sup> <sup>iron</sup> <sup>radii</sup> <sup>(r</sup> B <sup>,</sup> <sup>r</sup> A <sup>),</sup> <sup>the</sup> <sup>highest</sup> <sup>occupied</sup> <sup>molecular</sup> <sup>orbital</sup> <sup>and</sup>
the lowest unoccupied molecular orbital of A site cations
(HOMOA, LUMOA).
As shown in Fig. 3a, the tolerance factor Tf plays the most
important role to HOIPs’ bandgap, followed by the total number
of ionic charge ICB and the octahedral factor Of. Interestingly, the
properties of B-site elements such as ionization energy IEB,
electronegativity χB and electron affinity EAB show greater
influence on the bandgap of HOIPs than those of A- and X-site
ions. Pearson correlation coefficient matrices are calculated to
identify the positive and negative correlations between pairs of
features (Fig. 3b). The low linear correlations for most of features
indicate that we have successfully removed redundant and
irrelevant features, which will significantly improve the performance of the ML model.
Model inference. In ML method, an appropriate ML algorithm is
important. Currently, several supervised ML regression algorithms have been successfully used in material science, such as
GBR <sup>32</sup>, artificial neural network <sup>36,37</sup>, and kernel ridge regression
(KRR) <sup>38</sup> . These regression algorithms provide both material
property prediction with DFT accuracy and atomic level chemical
insights. In this work, we employ six different ML regression
algorithms, i.e., GBR, KRR, support vector regression, gaussian
process regression, decision trees regression, and multilayer perceptron regression. Each training model is based on a subset of
the whole data, known as training data, and the model will be
used to predict other new data after training. To evaluate the
performance of each ML model, three indexes are chosen to
estimate the prediction errors: coefficient of determination (R <sup>2</sup> ),
Pearson coefficient (r), and mean square error (MSE) (the computational details are given in Supplementary Methods). By
comparing the three indexes, GBR algorithm reproduces best
agreement to the true bandgap values (see details in Supplementary Fig. 4 and 5). Then, we perform a statistical test on R <sup>2</sup>
values from 10,000 executions of each model at the 95% confidence level (see details in Supplementary Table. 2 and 3). Evident differences are observed between GBR and other five
algorithms. Furthermore, we put standard deviations on the R <sup>2</sup>
and MSE values. It is found that GBR algorithm presents more
reliable results than other five algorithms (see details in Supplementary Fig. 6 and Supplementary Note. 3). Additionally, the
a b
25
20
15
10
5
_EA_ B
_�_ B
_IE_ B
_P_ A
_Xp_ -electron
_O_ f
_IC_ B
_LUMOA_
_r_ B
_r_ A
_HOMOA_
s+ _p_
_r_ Bs+
_P_ B
1.00
0.66
0.32
–0.02
–0.36
0 _T_ f –0.70
Fig. 3 Importance and correlation of the selected features. a The 14 selected features are ranked using GBR algorithm. b The heat map of Pearson
correlation coefficient matrix among the selected features for HOIPs
GBR algorithm evolves from the combination of boosting
methods and regression trees, which makes it suitable for effectively mining features and feature engineering <sup>39</sup> . Therefore, GBR
is chosen to establish a nonlinear mapping between the input
features and bandgaps and subsequently predicts bandgaps of
unexplored HOIPs.
The test results of the GBR model are presented in Fig. 4a. The
subplot clearly shows that the training/test set deviance declines
gradually with the increase of the boosting iteration numbers.
Eventually, R <sup>2</sup>, r, and MSE of test data is 97.0%, 98.5%, and 0.086,
respectively, witnessing the outstanding performance of our GBR
model. Then, the trained GBR model is applied to the 5158
HOIPs to predict their bandgaps, and the prediction results (dark
gray dots) are illustrated in Fig. 4b, together with train dataset
(blue dots) and test dataset (red dots). We notice that the
distribution of post predicted bandgaps is very close to the
original input dataset. This proves the reasonability and reliability
of our ML model, providing guarantee for further analysis.
Furthermore, data analysis and visualization are performed to
unravel hidden trends and periodicities within the HOIPs data.
We divide the predicted dataset into four parts according to
the X-site elements, i.e., F, Cl, Br, and I in Fig. 4c-f. As seen from
the figure, the bandgap of HOIPs tends to increase as the X-site
halogen radius reduces and the bandgaps of F- and Cl- HOIPs are
too large for photovoltaics applications. Therefore, HOIPs
containing Br and I (ABBr3 and ABI3) with promising prospect
for photovoltaic applications are mainly focused in the following
discussion. Considering the structural stability for HOIPs, the
given features should be restricted in certain ranges. Specifically,
tolerance factor Tf, which has been used extensively to predict the
stability of the perovskite structure, should be between 0.8 and 1.2
(Fig. 4c). In terms of the octahedral factor Of, the appropriate
range for solar cells is between 0.2 and 0.7 (Fig. 4d). However, the
octahedral factor should not be too small for structural stability,
so the values are better ranging from 0.4 to 0.7 <sup>33,40,41</sup> . Moreover,
in order to design HOIPs with proper bandgap, we should select
weak polarized organic molecules and the polarization PA varies
between 1 × 10 <sup>−40</sup> and 5 × 10 <sup>−40</sup> C m <sup>2</sup> V <sup>−1</sup> (see Fig. 4e). Finally,
the electronegativity of B-site also plays important roles on the
bandgap and it needs to be within the range from 1.4 to 2.2
(Fig. 4f). We also analyze the mapping between other eight
features with the bandgaps of HOIPs and less obvious correlations are observed (see Supplementary Fig. 7).
Model validation. We have predicted bandgaps Eg for all the
possible HOIP structures in the search space via ML technology.
To discover stable HOIPs, further screening of the predicted
dataset is necessary. 1669 HOIPs are first screened out from the
total 5158 HOIPs with ML predicted bandgaps according to the
structural stability (Tf between 0.8 and 1.2, Of between 0.4 and
0.7). These 1669 HOIPs are likely stable and have different
potential applications in light of their bandgap values. For
examples, HOIPs with small bandgaps (less than 0.9 eV) can be
used in infrared sensors <sup>42,43</sup> and large gap HOIPs (larger than 3
eV) may serve as good insulating materials <sup>44,45</sup> . For solar cells,
HOIPs with bandgap between 0.9 and 1.6 eV are ideal candidates <sup>46,47</sup> . Therefore, 218 HOIPs with proper bandgap are
selected (see full list in Supplementary Table. 4). Since the Brbased HOIPs are more accessible in experiment <sup>19</sup>, 22 Br-based
HOIPs (i.e., ABBr3) are further selected. Additionally, toxicity of
HOIPs will block widespread commercial application and the
compounds containing toxic metal elements are excluded as well.
To the end, six orthorhombic HOIPs stand out and further
thermal and environmental stability evaluation and electronic
property exploration are performed by first-principle calculations.
The step-by-step screening process are shown in Supplementary
Fig. 8 and Supplementary Note 4.
A comparison between ML-predicted and DFT-calculated
results of six selected HOIPs is presented in Fig. 5a, with relevant
statistics summarized in Table 2. Excellent agreement (ΔEg no
larger than 0.1 eV) is found between the ML predicted and DFT
calculated bandgap values, verifying the great superiority of the
current ML technology. It takes only a few seconds for all the
5158 HOIPs’ bandgaps to be predicted by the ML method.
However, if the DFT calculation is adopted, it will take a few days
for each HOIP structure. Therefore, we conclude that our current
ML scheme provides a possibility of achieving DFT accuracy in a
flash and has great priority in complex systems like HOIPs.
Electronic structures of six selected HOIPs. DFT optimizations
show that all these six HOIPs hold typical perovskite structures,
and corresponding lattice constants are listed in Table 1. The
nonbonding electrons of B-site ions lower the coordination
symmetry around the cations and lead to the slightly distorted
BX6 octahedral. Sorted by B site metal, the six candidates can be
divided into two groups: four AInBr3 and two ASnBr3. Further
electronic band structures show that the four indium HOIPs have
indirect bandgap between Γ and M/R point in the Brillouin zone
(Supplementary Fig. 9 and 10), while the other two tin HOIPs
have direct bandgap at Γ point (Fig. 5c). Additionally, the spinorbital-coupling (SOC) effect is considered for the six selected
HOIPs (see details in Supplementary Fig. 11 and Supplementary
a 6 b
7
6
5
4
3
2
1
0
6
_R_ <sup>2</sup> = 0.969
5 Peason’s _r_ = 0.985
5 Peason’s _R_ <sup>2</sup> _r_ = 0.969 = 0.985 6 Prediction setTrain setTest set
4
3
2
1
0
–1
0 1 2 3 4 5 6 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2
1
MSE = 0.085
Training set deviance
1.5 Test set deviance
1.0
0.5
0.0
0 20 40 60 80 100
Boosting iterations
5
6
2
3
4
Test bandgap _E_ gPBE (eV)
Tolerance factor
c d
F
Cl
Br
I
6
5
4
3
2
1
0
6
5
4
3
2
1
0
F
Cl
Br
I
0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2
Tolerance factor
0.0 0.2 0.4 0.6 0.8 1.0 1.2
Octahedral factor
e f
6
5
4
3
2
1
0
F
Cl
Br
I
0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6
Electronegativity _�_ B
6
5
4
3
2
1
F
Cl
Br
I
0
0 2 4 6 8 10 12 14 16 18
_P_ A (10 <sup>–40</sup> ·Cm <sup>2</sup> ·V <sup>–1</sup> )
Fig. 4 Results and insights from ML model. a The fitting results of test bandgaps Eg <sup>PBE</sup> and predicted bandgaps Eg <sup>ML.</sup> <sup>Coefficient</sup> <sup>of</sup> <sup>determination</sup> <sup>(R2),</sup>
Pearson coefficient (r) and mean squared error (MSE) are computed to estimate the prediction errors. The subplot is the convergence of model accuracy
for five cross-validation split of the data. b Scatter plots of tolerance factors against the bandgaps for the prediction dataset from trained ML model (blue,
red and dark gray plots represent train, test and prediction set, respectively). Data visualization of predicted bandgaps for all possible HOIPs (one color
represents a class of halogen perovskites) with (c) tolerance factor, (d) octahedral factor, (e) ionic polarizability for the A-site ions, and (f)
electronegativity of B-site ions. The dotted box represents the most appropriate range for each feature
Fig. 4 Results and insights from ML model. a The fitting results of test bandgaps Eg <sup>PBE</sup>
g <sup>PBE</sup> and predicted bandgaps Eg <sup>ML</sup>
Note 5) and the influence to the band structure is not
pronounced.
As typical electronic structures of ASnBr3 and AInBr3, the
valence band maximums are mainly contributed by the p orbital
of the halogen atoms and partly contributed by the s orbital of the
metal atom, while the conduction band minimums are dominated
by p orbitals of the metal atom (Fig. 5d and Supplementary Fig. 9
and 10). In fact, as a result of the indirect bandgap of AInBr3, the
absorption coefficient will be relatively low. Therefore, a relatively
thick absorbent layer is required, which definitely increases the
material costs, especially with the high cost of rare metal indium.
Hence, two ASnBr3 HOIPs are better choices as light-harvesting
materials in photovoltaic devices with suitable direct bandgaps
and relatively low material costs.
Thermal and environmental stabilities of six selected HOIPs.
The thermal and environmental stabilities are important to the
practical application of HOIPs, and most reported structures with
high PCEs suffer from degradation in ambient. We first perform
ab initio molecular dynamics (AIMD) simulations to evaluate the
thermal stability of the six selected HOIPs. As shown in Fig. 5e
and Supplementary Fig. 9 and 10, the time-dependent evolutions
of total energies are oscillating within a very narrow range,
indicating that these HOIPs can maintain their structural integrity at room temperature. In the next step of evaluating the
environmental stabilities, the adsorption energies (ΔEads) of
molecular water and oxygen on (001) surfaces of these six HOIPs
are calculated and listed in Table 2 (the computational details can
be found in Supplementary Fig. 12). Comparing with MAPbI3
whose adsorption energies of water and oxygen are −0.48 and
−0.15 eV, C2H5OInBr3, C2H5OSnBr3, and C2H6NSnBr3 show
better environmental stability against both oxygen and water.
Although the degradation mechanism of HIPO is still under
discussion, it is widely accepted that water acts as the reactive
source for the collapse of the framework. We attribute the significant reduction in adsorption energy of the three systems for
water to the weaker polarity of C2H5O <sup>+</sup> and C2H6N <sup>+</sup> comparing
with MA <sup>+</sup> radical, which present strong interaction with water
a b
1.4
Machine learning
1.2 PBE
1.0
0.8
0.6
0.4
0.2
3
2
1
_E_ g = 1.051 eV
_E_ g = 1.140 eV
0
–1
–2
C2H5O
SnBr3
C2H5OSnBr3
C2H6N NH3NH2 C2H5O NH4 C2H6N
C2H5OSnBr3 C2H6NSnBr3
NH4
InBr3
C2H6N
SnBr3
InBr3
NH3NH2
InBr3
c
d
e
–840
0.0
C2H5O
InBr3
3
2
1
0
–1
–2
G X M G Z R A Z X R M A G X M G Z R A Z X R M A
30 2.0
30
Total
Sn- _s_
Sn- _p_
Sn- _d_
1.5
1.0
0.5
Total
Sn- _s_
Sn- _p_
Sn- _d_
C2H5O
Br- _s_
Br- _p_
20
1.0
0.8
0.6
0.4
0.2
Br- _s_
Br- _p_
20 0.5 Br-C2H _p_ 5O 20 0.40.2 Br-C2H _p_ 6N
0.0
0 1
Energy (eV)
0.0
0 1
Energy (eV)
10
10
0
–3 –2 –1 0 1 2 3
0
–2 –1 0 1 2 3
–3 –2 –1 0 1 2 3
Energy (eV)
Energy (eV)
–840 –940
–845 –945
–850 –950
–955
–855 –960
–860 1 ps 2 ps 3 ps 4 ps –965
–865 –970
–975
1 ps 2 ps 3 ps 4 ps –965 1 ps 2 ps 3 ps 4 ps
–870
1
2 3 4 5
Time (ps)
1 2 3 4 5
Time (ps)
C2H5OSnBr3 C2H6NSnBr3
Fig. 5 Comparison with DFT calculations. a A comparison between ML-predicted and DFT-calculated results of six selected HOIPs. b Optimized structures,
c band structures, d projected density of states (PDOS), e total energy during 5 ps AIMD simulations for C2H5OSnBr3 and C2H6NSnBr3 at 300 K. The
subplots in d are the PDOS near the Fermi level
Table 2 Six selected HOIPs with relevant statistics
Table 1 Lattice constants of six selected HOIPs
<u>HOIPs</u> <u>a</u> <u>(Å)</u> <u>b</u> <u>(Å)</u> <u>c</u> <u>(Å)</u> <u>α</u> <u>(°)</u> <u>β</u> <u>(°)</u> <u>γ</u> <u>(°)</u>
C2H5OInBr3 8.44 11.46 8.48 91.63 91.76 91.58
C2H6NInBr3 8.50 11.7 8.12 92.17 90.35 88.52
NH3NH2InBr3 8.33 11.68 7.67 88.71 89.73 88.69
C2H5OSnBr3 8.52 11.60 8.52 91.32 89.74 89.88
NH4InBr3 7.92 11.53 7.88 90.42 90.00 90.43
C2H6NSnBr3 8.63 11.95 8.26 91.78 89.42 88.58
a, b, and c are lattice length. α, β, and γ are lattice angle
HOIPs Tf Of E <sup>ML</sup> g(eV) Eg <sup>PBE</sup> ΔEH2Oads ΔEO2 ads
<u>(eV)</u> <u>(eV)</u> <u>(eV)</u>
C2H5OInBr3 1.04 0.50 0.90 0.91 −0.301 −0.071
C2H6NInBr3 1.04 0.50 0.97 1.07 −0.630 −0.152
NH3NH2InBr3 0.99 0.50 1.06 1.09 −0.497 −0.110
C2H5OSnBr3 0.99 0.57 1.10 1.05 −0.163 −0.071
NH4InBr3 0.82 0.50 1.18 1.13 −0.566 −0.090
C2H6NSnBr3 0.99 0.57 1.22 1.14 −0.134 −0.093
Tf and Of is tolerance factor and octahedral factor respectively. Eg <sup>ML</sup> and Eg <sup>PBE</sup> are ML-predicted
and DFT-calculated results respectively. ΔEg is the absolute value of the difference between Eg <sup>ML</sup>
and Eg <sup>PBE</sup> . ΔEH2O ads and ΔEO2 ads is the adsorption energy of H2O and O2, respectively
HOIPs Tf Of E <sup>ML</sup> g(eV) Eg <sup>PBE</sup>
<u>(eV)</u>
ΔEH2Oads
<u>(eV)</u>
through hydrogen bond. Therefore, the weak hygroscopicity of
C2H5OInBr3, C2H5OSnBr3, and C2H6NSnBr3 suggests that the
H2O molecules are reductant to aggregate on the surface, and
increase the energy barrier of the H2O penetration process in the
meantime, preventing the hydration degradation effectively.
Discussion
Combining with ML technology and DFT calculations, we have
developed an extremely fast target-driven method to discover
HOIPs. Three stable Pb-free HOIPs with proper bandgaps and
excellent thermal and environmental stabilities have been successfully selected out from 5158 HIOPs for solar cells. More
importantly, a close structure-property map of HOIPs has been
well established from the ML predicted big dataset and four
stringent conditions in terms of tolerance factor, octahedral factor, electronegativity of metal ions, and polarizability of organic
molecules are defined to be ideal HOIP-based solar cells.
Differently from those high-throughput screening methods
which the whole chemical space should be searched at DFT level,
the current ML and DFT combined scheme only needs to compute the most promising HOIPs at DFT level, which greatly saves
the computational resources. Note that the screenings described
above are very strict, and in fact, the screening conditions can be
adjusted according to targeted goal to find suitable candidates for
experimental synthesis. The target-driven method we developed
here overcomes a major obstruction in traditional trial-error
method. Meanwhile, as this ML technology employs a “last-place
elimination” feature selection procedure based on GBR algorithm,
it can not only achieve DFT accuracy in a flash (even faster than
the popular neural network algorithm), but also works with a
small dataset. This means we can achieve accurate prediction with
a relatively small training data. Here we only apply this intelligent
method to accurately predict the bandgaps of thousands of
HOIPs and get over the problem of toxicity and poor environmental stability in HOIPs. In fact, it is applicable to other functional material design and discovery, if the computational or
experimental material data are enough to train the ML model.
Methods
Gradient boosted regression. GBR <sup>35,48</sup>, a flexible non-parametric statistical
machine leaning algorithm in the open-source scikit-learn package <sup>49</sup>, is implemented to predict bandgaps of undiscovered HOIPs. The learning principle of this
method is to improve the accuracy of the final regression results by gradually
reducing the algorithm generated by the training process. The final regression
algorithm is the weighted sum of several weak regression algorithms obtained by
each training, as
perform (100). The values in parentheses represent the best results for each hyperparameter.
Last-place elimination feature selection procedure. We employ a “last-place
elimination” feature selection procedure into GBR algorithm to optimize the most
relevant features. Thirty initial features, which are commonly employed in ML
algorithm or structure features of HOIPs, are considered and first ranked by GBR
algorithm according to the relative importance. Then we remove the least
important feature (i.e., the 30th feature) out of the feature set and the rest 29
features constitute a new dataset for the next step feature selection. After that, we
rank the remaining features again and repeat the above step. Finally, we train the
ML model using different datasets for twenty-nine times (see workflow in Supplementary Fig. 3). We record the model score (R <sup>2</sup> ) of each trained model and the
ML model performs best when the feature set only includes fourteen features.
Density functional theory. All DFT calculations for selected HOIPs are carried
out using the projector-augmented wave method with the generalized gradient
approximation, implemented in the Vienna Ab initio Simulation Package package <sup>50</sup> . The exchange-correlation functional is described by PBE <sup>51</sup> functional considering it reproduces more consistent results with the experiments for HOIPs due
to fortuitous error–error offset <sup>52,53</sup> . DFT-D3 method is adopted for the van der
Waals correction <sup>54</sup> . AIMD simulations are performed at room temperature by
using the Nosé-Hoover method <sup>55,56</sup> to verify the thermal stability of selected
materials. The environmental stability of selected HOIPs are further evaluated by
the adsorption energy calculations. More DFT calculation details can be found in
Supplementary Methods.
Data availability. The datasets generated during and/or analyzed during the
current study are available from the corresponding author on reasonable request.
Received: 27 April 2018 Accepted: 7 July 2018
References
1. Curtarolo, S. et al. The high-throughput highway to computational materials
design. Nat. Mater. 12, 191–201 (2013).
2. Chakraborty, S. et al. Rational design: a high-throughput computational
screening and experimental validation methodology for lead-free and
emergent hybrid perovskites. ACS Energy Lett. 2, 837–845 (2017).
3. Kuhar, K. et al. Sulfide perovskites for solar energy conversion applications:
computational screening and synthesis of the selected compound LaYS3.
Energy Environ. Sci. 10, 2579–2593 (2017).
4. Mounet, N. et al. Two-dimensional materials from high-throughput
computational exfoliation of experimentally known compounds. Nat.
Nanotech. 13, 246–252 (2018).
5. Materials Genome Initiative for Global Competitiveness. https://www.
whitehouse.gov/sites/default/files/microsites/ostp/
materials_genome_initiativefinal.pdf (2011).
6. Le, T., Epa, V. C., Burden, F. R. & Winkler, D. A. Quantitative structureproperty relationship modeling of diverse materials properties. Chem. Rev.
112, 2889–2919 (2012).
7. Tabor, D. P. et al. Accelerating the discovery of materials for clean energy in
the era of smart automation. Nat. Rev. Mater. 3, 5–20 (2018).
8. Balachandran, P. V., Kowalski, B., Sehirlioglu, A. & Lookman, T. Experimental
search for high-temperature ferroelectric perovskites guided by two-step
machine learning. Nat. Commun. 9, 1668 (2018).
9. Gomez-Bombarelli, R. et al. Design of efficient molecular organic lightemitting diodes by a high-throughput virtual screening and experimental
approach. Nat. Mater. 15, 1120–1127 (2015).
10. Xue, D. et al. Accelerated search for materials with targeted properties by
adaptive design. Nat. Commun. 7, 11241 (2016).
11. Yuan, R. et al. Accelerated discovery of large electrostrains in BaTiO3 -based
piezoelectrics using active learning. Adv. Mater. 30, 1702884 (2018).
12. Pilania, G. et al. Machine learning bandgaps of double perovskites. Sci. Rep. 6,
19375 (2016).
13. Geoffroy, H. et al. Finding nature’s missing ternary oxide compounds using
machine learning and density functional theory. Chem. Mater. 22, 3762–3767
(2010).
14. Seko, A., Hayashi, H., Nakayama, K., Takahashi, A. & Tanaka, I.
Representation of compounds for machine-learning prediction of physical
properties. Phys. Rev. B 95, 144110 (2017).
15. Schmidt, J. et al. Predicting the thermodynamic stability of solids combining
density functional theory and machine learning. Chem. Mater. 29, 5090–5103
(2017).
FMðxÞ ¼
XM
m¼1
Tðx; θmÞ; ð1Þ
where m is the times of training, x is the input data, and θm is the distribution
weight vector. The model is trained M times, and each time it produces a weak
regression function T. The loss function of every weak classifier, is defined as
^θm ¼ arg min
θm
XN
i¼1
Lðyi; Fm�1ðxiÞ þ Tðxi; θmÞÞ; ð2Þ
where Fm-1(xi) is the current model, and GBR determines the parameters of the
next weak classifier through empirical risk minimization. This work uses ML to
analyze a small dataset based on DFT calculation to construct a predictive model.
Hyper-parameters selection. In the ML algorithm, the hyper-parameter is the
parameter set before the learning process, rather than that obtained through
training model. In general, it is necessary to select a set of optimal hyperparameters for the learning machine to improve the efficiency and generalization
performance of the model. Here, six hyper-parameters in the GBR model are
optimized by grid searching method: loss function (least squares), learning rate
(0.2), maximum depth of the individual regression estimators (12), the number of
features to consider when looking for the best split (0.7), the minimum number of
samples required to be at a leaf node (3) and the number of boosting stages to
16. Ball, J. M. & Petrozza, A. Defects in perovskite-halides and their effects in
solar cells. Nat. Energy 1, 16149 (2016).
17. Li, F. et al. Ambipolar solution-processed hybrid perovskite phototransistors.
Nat. Commun. 6, 8238 (2015).
18. Chen, B., Zheng, X., Bai, Y., Padture, N. P. & Huang, J. Progress in tandem
solar cells based on hybrid organic–inorganic perovskites. Adv. Energy Mater.
7, 1602400 (2017).
19. Huang, J., Yuan, Y., Shao, Y. & Yan, Y. Understanding the physical properties
of hybrid perovskites for photovoltaic applications. Nat. Rev. Mater. 2, 17042
(2017).
20. Li, W. et al. Chemically diverse and multifunctional hybrid organic–inorganic
perovskites. Nat. Rev. Mater. 2, 16099 (2017).
21. Kojima, A. et al. Organometal halide perovskites as visible-light sensitizers for
photovoltaic cells. J. Am. Chem. Soc. 131, 6050–6051 (2009).
22. Yang, W. S. et al. Iodide management in formamidinium-lead-halide-based
perovskite layers for efficient solar cells. Science 356, 1376–1379 (2017).
23. Noel, N. K. et al. Lead-free organic–inorganic tin halide perovskites for
photovoltaic applications. Energ. Environ. Sci. 7, 3061–3068 (2014).
24. Le, T. C. & Winkler, D. A. Discovery and optimization of materials using
evolutionary approaches. Chem. Rev. 116, 6107–6132 (2016).
25. Ju, M. G., Dai, J., Ma, L. & Zeng, X. C. Lead-free mixed tin and germanium
perovskites for photovoltaic application. J. Am. Chem. Soc. 139, 8038–8043
(2017).
26. Shi, Z. et al. Lead-free organic–inorganic hybrid perovskites for photovoltaic
applications: recent advances and perspectives. Adv. Mater. 29, 1605005 (2017).
27. Nie, R. et al. Mixed sulfur and iodide-based lead-free perovskite solar cells. J.
Am. Chem. Soc. 140, 872–875 (2018).
28. Zhao, X. G. et al. Design of lead-free inorganic halide perovskites for solar cells
via cation-transmutation. J. Am. Chem. Soc. 139, 2630–2638 (2017).
29. Boser, B. E., Guyon, I. M. & Vapnik, V. N. Proceedings of the Fifth Annual
ACM Workshop on Computational Learning Theory (ACM Press, New York,
1992)
30. Nakajima, T. & Sawada, K. Discovery of Pb-free perovskite solar cells via highthroughput simulation on the K computer. J. Phys. Chem. Lett. 8, 4826–4831
(2017).
31. Kim, C., Huan, T. D., Krishnan, S. & Ramprasad, R. A hybrid
organic–inorganic perovskite dataset. Sci. Data 4, 170057 (2017).
32. Kieslich, G., Sun, S. & Cheetham, A. K. An extended tolerance factor approach
for organic–inorganic perovskites. Chem. Sci. 6, 3430–3433 (2015).
33. Becker, M., Klüner, T. & Wark, M. Formation of hybrid ABX3 perovskite
compounds for solar cell application: first-principles calculations of effective
ionic radii and determination of tolerance factors. Dalton Trans. 46,
3500–3509 (2017).
34. Nasrabadi, N. M. Pattern Recognition and Machine Learning CH. vol. 14
(Springer Press, New York, 2016).
35. Friedman, J. H. Greedy function approximation: a gradient boosting machine.
Ann. Stat. 29, 1189–1232 (2001).
36. Li, Z., Wang, S., Chin, W. S., Achenie, L. E. & Xin, H. High-throughput
screening of bimetallic catalysts enabled by machine learning. J. Mater. Chem.
A 5, 24131–24138 (2017).
37. Janet, J. P., Chan, L. & Kulik, H. J. Accelerating chemical discovery with
machine learning: simulated evolution of spin crossover complexes with an
artificial neural network. J. Phys. Chem. Lett. 9, 1064–1071 (2018).
38. Zhuo, Y., Tehrani, A. M. & Brgoch, J. Predicting the band gaps of inorganic
solids by machine learning. J. Phys. Chem. Lett. 9, 1668–1673 (2018).
39. Isayev, O. et al. Universal fragment descriptors for predicting properties of
inorganic crystals. Nat. Commun. 8, 15679 (2017).
40. Hoefler, S. F., Trimmel, G. & Rath, T. Progress on lead-free metal halide
perovskites for photovoltaic applications: a review. Monash. Chem. 148,
795–826 (2017).
41. Travis, W. et al. On the application of the tolerance factor to inorganic and
hybrid halide perovskites: a revised system. Chem. Sci. 7, 4548–4556 (2016).
42. Dou, L., Liu, Y., Hong, Z., Li, G. & Yang, Y. Low-Bandgap near-IR conjugated
polymers/molecules for organic electronics. Chem. Rev. 115, 12633–12665
(2015).
43. Lin, C., Grassi, R., Low, T. & Helmy, A. S. Multilayer black phosphorus as a
versatile mid-infrared electro-optic material. Nano. Lett. 16, 1683–1689 (2016).
44. Liu, Q., Zhang, X., Abdalla, L. B., Fazzio, A. & Zunger, A. Switching a normal
insulator into a topological insulator via electric field with application to
phosphorene. Nano. Lett. 15, 1222–1228 (2015).
45. Usman, M., Mendiratta, S. & Lu, K. L. Semiconductor metal-organic
frameworks: future low-bandgap materials. Adv. Mater. 29, 201605071 (2017).
46. Shockley, W. & Queisser, H. J. Detailed balance limit of efficiency of p–n
junction solar cells. J. Appl. Phys. 32, 510–519 (1961).
47. Sun, Q., Wang, J., Yin, W. J. & Yan, Y. Bandgap engineering of stable lead-free
oxide double perovskites for photovoltaics. Adv. Mater. 30, 1705901 (2018).
48. Friedman, J. Stochastic gradient boosting. Comput. Stat. Data. Anal. 38,
367–378 (2009).
49. Machine Learning in Python. http://scikit-learn.org/stable/modules/ ensemble.
html# regression (2007).
50. Kresse, G. & Furthmüller, J. Efficiency of ab-initio total energy calculations for
metals and semiconductors using a plane-wave basis set. Comput. Mater. Sci.
6, 15–50 (1996).
51. Perdew, J. P., Burke, K. & Ernzerhof, M. Generalized gradient approximation
made simple. Phys. Rev. Lett. 77, 3865 (1996).
52. Motta, C. et al. Revealing the role of organic cations in hybrid halide
perovskite CH3NH3PbI3. Nat. Commun. 6, 7026 (2015).
53. Colella, S. et al. MAPbI3−xClx mixed halide perovskite for hybrid solar cells:
the role of chloride as dopant on the transport and structural properties.
Chem. Mater. 25, 4613–4618 (2013).
54. Lee, K., Murray, É. D., Kong, L., Lundqvist, B. I. & Langreth, D. C. Higheraccuracy van der Waals density functional. Phys. Rev. B 82, 081101
(2010).
55. Nose, S. A unified formulation of the constant temperature molecular
dynamics methods. J. Chem. Phys. 81, 511–519 (1984).
56. Hoover, W. G. Canonical dynamics: equilibrium phase-space distributions.
Phys. Rev. A 31, 1695–1697 (1985).
Acknowledgements
This work is supported by the National Key Research and Development Program of
China (2017YFA0204800), Natural Science Foundation of China (21525311, 21773027),
Jiangsu 333 project (BRA2016353), and the Fundamental Research Funds for the Central
Universities of China. The authors thank the computational resources at the SEU and
National Supercomputing Center in Tianjin.
Author contributions
J.W. conceived the project. S.L. and Q.Z. contributed equally to this work. S.L. did ML
prediction and Q.Z. carried out DFT calculations. S.L., Q.Z., and J.W co-wrote the paper
with all authors contributing to the discussion and preparation of the manuscript.
Additional information
Supplementary Information accompanies this paper at [https://doi.org/10.1038/s41467-](https://doi.org/10.1038/s41467-018-05761-w)
[018-05761-w.](https://doi.org/10.1038/s41467-018-05761-w)
Competing interests: The authors declare no competing interests.
Reprints and permission information is available online at [http://npg.nature.com/](http://npg.nature.com/reprintsandpermissions/)
[reprintsandpermissions/](http://npg.nature.com/reprintsandpermissions/)
Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in
published maps and institutional affiliations.
Open Access This article is licensed under a Creative Commons
Attribution 4.0 International License, which permits use, sharing,
adaptation, distribution and reproduction in any medium or format, as long as you give
appropriate credit to the original author(s) and the source, provide a link to the Creative
Commons license, and indicate if changes were made. The images or other third party
material in this article are included in the article’s Creative Commons license, unless
indicated otherwise in a credit line to the material. If material is not included in the
article’s Creative Commons license 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 license, visit [http://creativecommons.org/](http://creativecommons.org/licenses/by/4.0/)
[licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/)
© The Author(s) 2018