원시데이터 수집 시스템
선정목록으로

Convolutional network learning of self-consistent electron density via grid-projected atomic fingerprints

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (10) 아라미드(21) 에폭시수지

기본 정보

저자
  1. R. W. Lee — School of Electrical Engineering, Korea Advanced Institute of Science and Technology (KAIST), 291 Daehak-ro, Yuseong-gu, Daejeon, 34141, Korea
  2. Yong‐Hoon Kim — School of Electrical Engineering, Korea Advanced Institute of Science and Technology (KAIST), 291 Daehak-ro, Yuseong-gu, Daejeon, 34141, Korea
DOI
10.1038/s41524-024-01433-0
저널
npj Computational Materials
발행년도
2024
발행기관
Nature Portfolio
피인용수
6
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41524-024-01433-0
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4403703801

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(10) 아라미드, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
density functional theory, machine learning, polyethylene, graphene, electronic structure
판단 근거
이 논문은 딥러닝(CNN)을 이용해 물질의 전자 밀도를 예측하는 DeepSCF 모델을 다루며, 검증 과정에서 폴리에틸렌(polyethylene)과 그래핀(graphene) 구조를 사용했습니다.
R&D 활용 포인트
고분자(PE, PA 등) 및 신소재의 전자 구조 및 화학적 결합 특성을 시뮬레이션하는 데 활용하여, 신규 컴파운드나 기능성 수지의 물성을 분자 수준에서 예측하는 R&D 효율화에 기여할 수 있습니다.
평가 입력
본문 41,225자 중 30,032자 발췌

초록

The self-consistent field (SCF) generation of the three-dimensional (3D) electron density distribution (ρ) represents a fundamental aspect of density functional theory (DFT) and related first-principles calculations, and how one can shorten or bypass the SCF loop represents a critical question in electronic structure theory from both practical and fundamental standpoints. Herein, a machine learning strategy, DeepSCF, is presented in which the map between the SCF ρ and the initial guess density (ρ0) constructed by the summation of neutral atomic densities is learned using 3D convolutional neural networks (CNNs). High accuracy and transferability of DeepSCF are achieved by first encoding ρ0 on a 3D grid and then expanding the input features to include atomic fingerprints beyond ρ0. The prediction of the residual density (δρ) rather than ρ itself is targeted, and given that δρ is indicative of chemical bonding information, a dataset of small-sized organic molecules featuring diverse bonding characters is adopted. The fidelity of DeepSCF is finally enhanced by subjecting the atomic geometries of the dataset to random rotations and strains. The effectiveness of DeepSCF is demonstrated using a complex carbon nanotube-based DNA sequencer model. This work evidences that the nearsightedness in electronic structure can be optimally represented via the spatial locality in CNNs, offering insight into the success of various machine learning-based atomistic materials simulations.

본문 41,225자

본문 펼치기
Published in partnership with the Shanghai Institute of Ceramics of the Chinese Academy of Sciences https://doi.org/10.1038/s41524-024-01433-0 # Convolutional network learning of self-consistent electron density via grid-projected atomic fingerprints [Check for updates](http://crossmark.crossref.org/dialog/?doi=10.1038/s41524-024-01433-0&domain=pdf) Ryong-Gyu Lee & Yong-Hoon Kim The self-consistent field (SCF) generation of the three-dimensional (3D) electron density distribution (ρ) represents a fundamental aspect of density functional theory (DFT) and related first-principles calculations, and how one can shorten or bypass the SCF loop represents a critical question in electronic structure theory from both practical and fundamental standpoints. Herein, a machine learning strategy, DeepSCF, is presented in which the map between the SCF ρ and the initial guess density (ρ0) constructed by the summation of neutral atomic densities is learned using 3D convolutional neural networks (CNNs). High accuracy and transferability of DeepSCF are achieved by first encoding ρ0 on a 3D grid and then expanding the input features to include atomic fingerprints beyond ρ0. The prediction of the residual density (δρ) rather than ρ itself is targeted, and given that δρ is indicative of chemical bonding information, a dataset of small-sized organic molecules featuring diverse bonding characters is adopted. The fidelity of DeepSCF is finally enhanced by subjecting the atomic geometries of the dataset to random rotations and strains. The effectiveness of DeepSCF is demonstrated using a complex carbon nanotube-based DNA sequencer model. This work evidences that the nearsightedness in electronic structure can be optimally represented via the spatial locality in CNNs, offering insight into the success of various machine learning-based atomistic materials simulations. The mean field or self-consistent field (SCF) method represents a ubiquitous computational approach to deal with complex scientific problems formulated as several coupled differential equations and appear in a wide range of contexts such as the Landau theory for phase transitions <sup>1</sup>, Bogoliubov-de Gennes equations for superconductivity <sup>2</sup>, Gummel’s equations for semiconductor devices <sup>3</sup>, and Kohn-Sham density functional theory (DFT) for ab initio electronic structure calculations <sup>4,5</sup>, to name a few. In the case of DFT, which has become the standard computational tool for a wide range of science and engineering fields, the SCF solutions of the Kohn-Sham (KS) equations identify the three-dimensional (3D) ground-state electron density ρ ~ðrÞ and, in doing so, obtain the variationally minimized total energy. Despite its success, the applicability of DFT calculations is typically limited to a few hundred to thousand atoms due to the cubic scaling of the computational cost with respect to the number of atoms. To enable large-scale DFT calculations, advanced algorithms to accelerate SCF cycles have been devised <sup>6</sup> and in parallel several routes to reformulate DFT in the context of order-N and orbital-free DFT methods have also been explored <sup>5,7</sup> . More recently, machine learning (ML) techniques have emerged as promising alternatives, and much effort is presently being devoted in developing ML strategies that predict DFT secondary output such as total energy and atomic forces <sup>8</sup> or DFT primary output such as the exchange-correlation functional <sup>9–11</sup>, wavefunctions <sup>12</sup>, local density of states <sup>13</sup>, density matrix <sup>14</sup>, and electron density. Limiting ourselves to the electron density prediction, arguably the most straightforward and flexible route in the latter category and is true to the spirit of the Hohenberg–Kohn theorem, it can be broadly categorized into the models based on basis functions <sup>15–18</sup> and those based on grid representations <sup>19–24</sup> . The basis functions-based models generate ρð ~rÞ by expanding it in terms of usually atom-centered basis functions and the coefficients learned by fitting the dataset. On the other hand, grid-based models learn the map between input fingerprints and the ρð ~rÞ represented on a 3D real-space mesh. However, current methods still suffer from several shortcomings: The performance of the former strongly depends on the quality of basis functions and the models developed for a specific set of basis functions are less transferable to other basis School of Electrical Engineering, Korea Advanced Institute of Science and Technology (KAIST), 291 Daehak-ro, Yuseong-gu, Daejeon, 34141, Korea. [e-mail: y.h.kim@kaist.ac.kr](mailto:y.h.kim@kaist.ac.kr) Fig. 1 | Overview of the DeepSCF model. a The DFT calculation (orange box) and DeepSCF scheme (blue box) to predict the electronic structure of a material with atomic geometry ðRIÞ and chemical composition ðξIÞ. b The grid-projected atomic features extracted from the R and ξ are encoded into the initial layers of the U-Net block, and its output δeρML and ρ0 at the initial layer are summed (denoted by ⨁) and normalized by ρ0, producing the final output ðeρMLÞ. c The neural networks architecture of the DeepSCF model is based on a U-Net block, which consists of encoder (blue box) and decoder (orange box), and finetuning (gray box) blocks (see Supplementary Note 1 for details). d The performance of input atomic features. The 1, 2, and 3 number of input layers respectively represent {ρ0}, {ρ0, ρion}, and {ρ0, ρion, ρs} features. e Comparison between the ρ-learning scheme ① and the δρ-learning (DeepSCF) approach ②. For the former, the DeepSCF architecture was modified at the final finetuning block by removing the dotted box part in (b) (left panel). The performance of the two D E approaches estimated in by Ep for both training and test datasets. functions. For the latter group, the currently implemented approaches attempted to construct neural networks attached to each grid point, requiring substantial computational resources and quickly becoming impractical as the system size increases. Accordingly, modern state-ofthe-art computer vision approaches, such as the convolutional neural network (CNN), could not be employed. In this work, partly motivated by our earlier work on the multigrid acceleration of the SCF cycle within DFT <sup>25,26</sup>, we develop the DeepSCF scheme that learns the map between atomic fingerprints encoded on a 3D mesh and the converged SCF density based on CNN model (Fig. 1). One central implication of the nearsightedness of electronic structure assertedby Walter Kohn is that local properties like chemical bonding and functional groups are transferable from one environment to another <sup>27</sup>, and we hypothesized that this nearsightedness principle could be particularly well mapped to the spatial locality (or local connectivity) in CNNs <sup>28</sup> . This is to our knowledge the first successful demonstration of directly predicting ρð ~rÞ using the CNN algorithm, where advanced neural network architectures suchasU-Netisavailable <sup>29</sup> .Torealizethisgoal,weencodethestructuraland chemical signatures of target materials into 3D real-space grid by augmenting the summation of (modified) neutral atomic densities ρ0 ~ðrÞ, typically used as the initial guess electron density, with additional gridprojected atomic fingerprints. Given that the density difference δρ between ρ0 and ρ is information the SCF cycle generates and corresponds to the chemical bonding information (in practice, the correspondence is usually approximate due to the modification of neutral atomic densities), we devise a new U-Net-based architecture that includes a skip connection to learn the residual δρ. We train our model by adopting a molecular database that includes diverse chemical bonding configurations and additionally enhancing the training dataset by randomly rotating and straining molecular geometries. We will confirm that the quality of our DeepSCF or non-SCF DFT calculations is comparable to that of fully SCF DFT counterparts and demonstrate its size-extensibility and transferability using crystalline polyethylene and graphene, and a large-scale carbon nanotube-based DNA sequencer model. The possibility of highly accurate ML-based prediction of ρ suggests the mechanistic origins of the outstanding performance of higher-level ML-based materials simulation methods such as neural network force fields. Results Key features of the DeepSCF model In Fig. 1b, we show the schematics of the DeepSCF framework that learns the map between the summation of neutral atomic densities ρ0 ~ðrÞ and the SCF electron density ρ ~ðrÞ based on the CNN (For details, see Supplementary Note 1). We first project on a 3D mesh ρ0 ~ðrÞ and other atomic orbitals-related fingerprints, which will be detailed below. They encode the atomic geometry R and chemical composition ξ while effectively differentiating various chemical environments. Then, these input features are applied to the CNN model and converted into the final product eρML. As the CNN architecture, we employed the U-Net, which consists of encoding and decoding blocks composed of repeated sets of the convolution layers and rectified linear unit (ReLU) operations <sup>29</sup> . The encoding (decoding) blocks utilize the max-pooling (deconvolution) operations to decrease (increase) the resolution of hidden features. In addition, to integrate the output features from the encoding block into the decoding block, these blocks were linked by skip-connections (dotted arrows) (Fig. 1c; for details, see Supplementary Fig. 1 and Supplementary Table 1). As will be detailed later, rather than directly predicting eρML, we used the U-Net block to generate the residual δeρML. We added it to ρ0 and normalized ρ0 þ δeρML by the total number of electrons to prepare the final feature eρML. The electronic structure is then obtained by a single-shot KS diagonalization over the eρML without the SCF loop. Fig. 2 | Input and output features of the carbon dioxide example. a For the carbon dioxide molecule, we visualize the one-dimensional and two-dimensional cross-sections (① and ②) of the spatial distributions of output b ρ and c δρ and input features d ρ0, e ρion and f ρs through the molecular bond axis. In evaluating the prediction accuracy, we introduced the absolute percentage error in the predicted density where the V <sup>local</sup> I is the local pseudopotential of atom I, and (iii) the atomic orbital overlap density ρs ~ðrÞ ¼ X μν ϕ <sup>�</sup> ν <sup>ð~rÞϕ</sup> μ <sup>ð~rÞ;</sup> ð3Þ Epð%Þ ¼ 100 × R d~r��ρð ~rÞ � eρMLð~rÞ�� ~~R~~ ��ρð ~rÞ � eρMLð~rÞ�� ~~R~~ ð1Þ d~rρð ~rÞ and used it together with the errors in the total energy, atomic forces, and highest occupied molecular orbital (HOMO), and lowest unoccupied molecular orbital (LUMO) values. In addition, since different systems i contain different numbers of electrons N <sup>i</sup> e <sup>, we estimated the average pre-</sup> dictionaccuracyforadatasetincludingseveralstructuresusingtheweighted wherethe μ, ν arethelabelsforatomicbasisorbitals,projectedonagrid with a uniform grid spacing of 0.25 Å. In Fig. 1d, in predicting the dataset as will be detailed later, we indeed find that, with the increasing number of input D E be detailed later, we indeed fi D E fingerprints applied to the initial layers, the error Ep of trained models e <sup>i</sup> <sup>Ei</sup> p D E formula, i.e., Ep PN decreaseforbothtrainingandtestdatasets.Thisresultshowsthateachinput feature contributes to the capture of the final target, demonstrating their fidelity in encoding the 3D electronic structure. In terms of the learning target of DeepSCF, as mentioned above, we selected rather than the density ρ itself the residual density δρ ~ðrÞ ¼ ρð~rÞ � ρ0ð~rÞ as the target of ML prediction <sup>9</sup> . First of all, it directly corresponds to the information the SCF cycle acquires. Numerically, δρ ~ðrÞ is more smoothly distributed on a spatial grid than ρð ~rÞ (compare, e.g., Fig. 2b, c), effectively reducing the requirement on grid resolution and thus enhancing the computational efficiency. From the theoretical viewpoint, δρ encodes the electron transfer between constituent atoms. In other words, while the correspondence typically becomes approximate due to the modifications of neutral atomic densities, δρ corresponds to the chemical bond information. To validate that the learning of δρ instead of ρ indeed allows more accurate prediction of various chemical environments, we prepared the ρ-based architecture ① and δρ-based architecture ② of the DeepSCF model (Fig. 1e,left panel), in the latter of which the final feature becomes the summation of ρ0 and δeρML (dotted arrow in Fig. 1b). Testing both models,D E ð%Þ ¼ 100 × <u>i</u> <sup>N</sup> e <sup>i</sup> <u>i</u> <sup>N</sup> <sup>i</sup> p Ne ; where the Ne is the number of electrons in the total dataset. Input and output features We next discuss in more detail the input and output features of DeepSCF, which we designed to capture the essential features of the ρ0 ~ðrÞ to ρ ~ðrÞ map (Fig. 2; see also Supplementary Fig. 2). To apply the CNN algorithm to firstprinciples electronic structure calculations, for theoretical and practical reasons, we propose to project ρ0 ~ðrÞ and other atomic signatures on a 3D real-spacegrid.Variouswell-tested atomisticquantitiesarealreadyavailable in established DFT codes, and here we employed the SIESTA package based on the confined numerical atomic orbital basis set <sup>30</sup> and adopted in addition to (i) the summation of atomic electron densities ρ0ð~rÞ ¼ <sup>P</sup> I <sup>ρatom</sup> I ð~rÞ, I <sup>ρatom</sup> I to (i) the summation of atomic electron densities ρ0ð~rÞ ¼ <sup>P</sup> I <sup>ρatom</sup> I ð~rÞ, where ρ <sup>atom</sup> I is the neutral atomic density of atom I, (ii) the diffuse ion charge density summation of ρ0 and δeρML (dotted arrow in Fig. 1 D E we confirmed that the δρ-learning architecture ② gives lower Ep <sup>local</sup> I ð~rÞ; ð2Þ values ρion ~ðrÞ ¼ � <sup><u>1</u></sup> 4π X I ∇ <sup>2</sup> V <sup>local</sup> I than its ρ-learning counterpart ① for both training and test datasets (Fig. 1e right panel; see Supplementary Table 2 for detail). Fig. 3 | Dataset enhancement. a The Ep distributions (left panels) and corresponding total energy error ΔEtot distributions (right panels) for rotated guanine structures are shown together with the definition of rotation directions (top panel). From top to bottom: results from the Org, R-only, R + S, and (R + S) × 3 models. b The Ep (middle panel) and ΔEtot distributions (bottom panel) obtained by Dataset enhancement Given that we target to predict δρ that approximately corresponds to the chemical bond information, another essential ingredient of the DeepSCF model is the preparation of a proper dataset that can cover diverse chemical bonding cases. For this purpose, we used the TABS datasetwhich consists of molecules including various chemical species <sup>31</sup> (see “Methods” for details). However, while the CNN is equivariant to the translation of input features (Supplementary Fig. 3a), it is inherently not equivariant to the rotation of input features. Indeed, upon considering differently oriented guanine structures, we found that the model derived from the original dataset that consists of the molecular geometries lying on the xy-plane results in much larger Ep for the molecules rotated from the xy-plane (Supplementary Fig. 3b). Moreover, the original dataset only contains the optimized structures, from which we found that the derived ML models become inefficient in predicting the conditions beyond the equilibrium geometries (Supplementary Fig. 3c). To address these problems, we considered the possibilities of randomly rotating and straining the ground-state geometries and additionally increasing the dataset size. To systematically demonstrate the dataset enhancement effects, in addition to the original the xyplane-lying ground-state geometry dataset (Org), we prepared the comparison models that were trained on the rotated (R-only) structures and the simultaneously rotated and −2% ~ +2% strained (R + S) structures. In addition, we tripled the size of the R + S dataset by creating additional two copies of molecules with different rotations and strains [(R + S) × 3]. To test the performance of different models, we considered a guanine molecule that was not included in the TABS dataset. First, rotating the ground-state geometry guanine, we obtained for the Org, R-only, R + S, and (R + S) × 3 models the average Ep values applying the strain ϵ ranging from −1 to +1% to the guanine structures of θ = −150° and φ = −90° (top panel). The black diamonds, red circles, blue crosses and green triangles correspond to the results obtained from the Org, R-only, R + S, and (R + S) × 3 models, respectively. of 3.18%, 2.82%, 2.59%, and 1.79%, respectively (Fig. 3a, left panels). For the total energy, we again observed the trend of systematic improvements by obtaining the error ΔEtot values of 0.05 eV/atom, 0.03 eV/atom, 0.03 eV/atom, and 0.02 eV/atom for the Org, R-only, R + S, and (R + S) × 3 models, respectively (Fig. 3a, right panels). It should also be emphasized that, unlike the Org model (Fig. 3a, top panel), the enhanced R-only, R + S, and (R + S) × 3 models exhibit uniform Ep and ΔEtot distributions over all rotation directions, representing their capability to equivariantly predict differently orientated molecules. Similarly, by straining a guanine molecule with the strain ϵ ranging from −1% to +1%, we again observed that the Org, R-only, R + S, and (R + S) × 3 models provide the average Ep values of 3.37%, 2.71%, 2.42%, and 1.80%, respectively (Fig. 3b), with the corresponding ΔEtot values of 0.09 eV/atom, 0.04 eV/atom, 0.03 eV/atom, and 0.02 eV/atom. We thus concluded that within DeepSCF the rotationequivariant and highly accurate prediction properties are obtained by applying random rotations and strains to the Org dataset and then increasing the dataset size. Accordingly, we will below exclusively adopt the (R + S) × 3 model (see Supplementary Fig. 4 and Supplementary Table 3 for details). Model performance For the test dataset, we confirmed that the eρML fits ρ well with hEpi of 1.67%, corresponding to 0.99 of the coefficient of determination (R <sup>2</sup> ) score. As a reference, the hEpi value of the initial condition ρ0 was 13.83%, quantifying the drastic improvement in prediction accuracy achieved within DeepSCF. Fig. 4 | Model performance. The posterior a total energy (purple), b F <sup>I</sup> x <sup>(cyan), FI</sup> y <sup>(magenta), and F</sup> z <sup>I</sup> (yellow), c HOMO (red), and d LUMO (blue) derived from the DeepSCF calculations are compared with corresponding DFT calculation results. Gray circles are the prediction results from ρ0. <sup>I</sup> x <sup>(cyan), FI</sup> y <sup>I</sup> y <sup>(magenta), and F</sup> z <sup>I</sup> In addition, we obtained the mean-absolute-errors (MAEs) of 0.01 eV/ atom, 0.17 eV/Å, 0.14 eV, and 0.11 eV, for the predicted total energy (Etot), the average of atomic forces on the atoms I along the x-, y-, and z-directions ðF <sup>I</sup> x <sup>; FI</sup> y <sup>; and FI</sup> z <sup>Þ, the lowest unoccupied molecular orbital (LUMO), and the</sup> highest occupied molecular orbital (HOMO) levels, respectively. Again, as references, the adoptation of ρ0 resulted in the prediction MAEs of Etot, average atomic forces, LUMO, and HOMO at the levels of 0.38 eV/atom, 1.35 eV/Å, 2.84 eV, and 3.30 eV, respectively (Fig. 4a–d), quantifying the excellent accuracy of the DeepSCF approach. In Supplementary Fig. 5, we discuss the specific cases of pyridinium chloride (C5H6NCl) and bromopyruvic acid (C3H3BrO3) molecules included in the test dataset. Next, we consider the computational efficiency of the DeepSCF approach. In DeepSCF calculations, the computational time for predicting eρML (blue)requiresonlyabout0.6%ofthetotalcomputationaltime,making the computational speed-up approximately corresponds to the number of SCF steps. In Supplementary Fig. 6, we first summarized the computational times of full-SCF and DeepSCF DFT calculations for the TABS test dataset. The average computational times were 258.6 sec. and 22.5 sec. for the fullSCF DFT (black) and DeepSCF DFT calculations (red), respectively, representing an approximately 1150% speed-up. In addition, we applied the DeepSCF approach to random-sequence stretched single-stranded DNA models with the size ranging from 128 atoms (4 nucleobases) to 2096 atoms (64 nucleobases) (see Supplementary Fig. 7). Here, as the system size and complexity increases, we observed the number of SCF steps increases from 11 to 131 and the full-SCF DFT computational time concomitantly increases from120 sec.to 727131 sec.On the otherhand, the computational time within the DeepSCF approach increased from 11 sec. to 5551 sec., representing on the average 5610% speed-up in the computational time. Next, we consider the size-extensibility and transferability, which would be essential in predicting unseen materials beyond the molecular training dataset. As a critical advantage of adopting a CNN architecture, the DeepSCF model can handle any size of input feature, and the sizeextensibility should be naturally extended to crystalline systems by applying periodicboundaryconditions.InFig. 5,wepresentthe DeepSCF calculation results obtained for butane, polyethylene, and graphene, which are not present in the TABS dataset. Note that, while butane has a finite structure like other molecular systems in the training dataset, polyethylene and graphene are crystalline systems that are periodically extended along the onedimensional (1D) and two-dimensional (2D) directions, respectively (Fig. 5a). Nonetheless, the accuracies of the DeepSCF-predicted eρML as well as the eρML -derived density of states (DOS) obtained for periodic polyethylene and graphene comparable to that for isolated butane (Fig. 5b–d). Finally, to demonstrate the capability of handling complex, large-scale systems that involve a wide range of chemical and bonding environments, we considered the 1644-atom nano-carbon electrode-based DNA sequencer model in which a single-stranded DNA (ssDNA) composed of 30 randomly distributed nucleobases is positioned between two capped metallic(6,6)carbonnanotube(CNT)electrodes(Fig. 6aandsee “Methods” for details) <sup>32–34</sup> . We obtain the eρML prediction error Ep of 2.10%, which is comparable to that of 1.67% for the training dataset (Fig. 6b). Analyzing the source of errors, we predict that the performance could be further improved by adding molecules that contain phosphorus elements (Fig. 6b, red arrow) and/or weak dispersion interactions (Fig. 6b, blue arrow) to our dataset. Performing non-SCF calculation based on this eρML, we also evaluated the DOS and atomic forces. We find that the DOS calculated from eρML are comparable to DFT data (Fig. 6c). Moreover, the eρML-derived atomic forces arealsoinexcellentagreementwithDFTresultswiththeMAEof1.35 eV/Å, 1.07 eV/Å, and 1.26 eV/Å for F <sup>I</sup> x <sup>;</sup> <sup>FI</sup> y <sup>;</sup> <sup>and FI</sup> z <sup>, respectively (Fig. 6d).</sup> Discussion To summarize, we introduced the DeepSCF scheme, which leverages the 3D U-Net CNN architecture to predict the map between 3D grid-projected atomic fingerprints and the SCF residual density δρ. We achieved the high accuracy and transferability of the DeepSCF model by expanding the 3D mesh-encoded input features to include atomistic fingerprints beyond ρ0, targeting the learning of δρ rather than ρ itself, adopting a dataset of smallsized organic molecules featuring diverse bonding characters, and subjecting <sup>I</sup> x <sup>; FI</sup> y <sup>I</sup> y <sup>; and FI</sup> z <sup>I</sup> y <sup>;</sup> <sup>and FI</sup> z <sup>I</sup> z <sup>, respectively (Fig. 6d).</sup> Fig. 5 | Isolated and periodic structures. a The butane (left), polyethylene (center) and graphene (right) structures. Two-dimensional cross-sections of b eρML and c eρML � ρ through the center of each structure along the y–z and x–y planes. The color scale is in units of e/Å <sup>3</sup> . d The comparison between DOS obtained from DeepSCF (dashed lines) and full DFT calculations (shaded curves). Fig. 6 | The CNT-based DNA sequencer model. a The DNA sequencer model was prepared by sandwiching a ssDNA between two CNT electrodes, periodically extended along the z and x directions, respectively. b The plane-averaged eρML � ρ (left panel), where the color scale is in units of e/Å <sup>3</sup> . On the right panels, for the ① and ② regions, the 3D contour plots of eρML � ρ overlaid over the atomic structures are shown. Here, red and blue arrows highlight the positions of phosphorous atoms and the contacts between the ssDNA and CNT electrodes, respectively. The isosurface level for 3D contour plots is 0.03 e/Å <sup>3</sup>, <sup>where the red and green colors</sup> indicate positive and negative values. c The comparison between DOS obtained from DeepSCF (dashed line) and the full DFT calculation (shaded curve). d The comparison between atomic forces on each atom I, F <sup>I</sup> x <sup>(cyan), FI</sup> y <sup>(magenta), and FI</sup> x <sup>(yel-</sup> <sup>I</sup> x <sup>(cyan), FI</sup> y <sup>I</sup> y <sup>(magenta), and FI</sup> x each atom I, F <sup>I</sup> x <sup>(cyan), FI</sup> y <sup>(magenta), and FI</sup> x <sup>(yel-</sup> low), obtained from DeepSCF and the full DFT calculation. the dataset geometries to random strains and rotations. We then demonstrated the size-extensibility and transferability of the DeepSCF model using molecules,periodicpolyethyleneandgraphene,andalarge-scaleCNT-based DNAsequencermodel.Thisdevelopmentnotonlyofferspracticalguidelines for applying CNNs and related computer vision ML methods to accelerate demanding DFT calculations but also establishes the correspondence between the nearsightedness in electronic structure and the spatial locality in CNNs. We thus provided insights into the mechanistic underpinnings of the success of various higher-level ML-based atomistic materials simulation strategies such as neural network forcefields. Promising follow-up research directions include, e.g., the synergistic use of DeepSCF method components in accelerating ab initio molecular dynamics simulations. Methods Dataset To train the DeepSCF model, we adopted the TABS database <sup>31</sup>, which consistsof1641moleculeswith24differentfunctionalgroupcategories.The molecules all contain one or more C atoms and may have one or more H, N, O, F, S, Cl, and Br atoms. For the molecules within the database, we first performed DFT geometry optimizations and created a ground-state geometry dataset. Based on the ground-state dataset, we then generated additional datasets for R-only, R + S, (R + S) × 2 and (R + S) × 3 models by randomly rotating the atomic geometries, and additionally applying the straining (R + S) and also augmenting the dataset size ((R + S) × 2 and (R + S) × 3 model). For all molecular cases, we adopted the cubic unit cell with lattice parameters a = b = c = 20 Å. Each dataset was divided into 80% for the training set and 20% for the test set. To examine the model performance, we additionally considered guanine, butane, polyethylene and graphene structures. For guanine, we again adopted the cubic unit cell with a = b = c = 20 Å. For butane and polyethylene, we adopted a tetragonal unit cell with a = b = 20 Å and c = 15 Å. The polyethylene structure was periodically connected along the c-axis direction. For the graphene structure periodically repeated along the a-b plane, we adopted a tetragonal unit cell with lattice parameters a = 30 Å, b = 32 Å, and c = 15 Å. For the CNT-based DNA sequencer model, we positioned a ssDNA is positioned between two capped metallic (6,6) CNT electrodes. The ssDNA structure consists of the backbone and 30 nucleobases: adenine (A), cytosine (C), guanine (G), thymine (T).Asthenucleobase sequence,weadopted a randomlygenerated configuration (ATTAGCCGAT) and repeated it three times. The final ssDNA structure contains 984 atoms with C, H, N, O, and P elements. Each of capped (6,6) CNT electrodes contains 330 C atoms. For the CNT-based DNA sequencer model, we adopted a tetragonal unit cell with lattice parameters a = 80 Å, b = 32 Å, and c = 96 Å. DFT calculations For all above datasets, density functional theory (DFT) calculations were carried out using the SIESTA package <sup>30</sup> within the generalized gradient approximation (GGA) <sup>35</sup> . Troullier-Martins-type norm-conserving pseudopotentials <sup>36</sup> were employed with the numerical atomic orbital basis sets of double-ζ-plus-polarization quality. The Monkhorst–Pack <sup>~</sup> k-point grid of 1 × 1 × 15, 2 × 2 × 1, and 2 × 1 × 2 was sampled in the Brillouin zone for the polyethylene, graphene supercell, and nano-carbon-based DNA sequencer models, respectively. The atomic geometries of TABS database which were optimized using B3LYP functional <sup>37–39</sup> were reoptimized within GGA-level until the Hellmann–Feynman ionic forces acting on each atom were below 0.02 eV/Å. The posterior electronic structures were obtained fromthenon-self-consistent fieldcalculationswithinSIESTApackage.DFT calculations for the DeepSCF model development were performed on an Intel Xeon® E5620 CPU with 4 cores and 32GB of RAM. The total computational time of performing the DFT calculations for the Org, R-only, R + S, (R + S) × 2, and (R + S) × 3 molecular datasets were 421301.6, 433168.9, 433168.9, 804043.9, 1280305.9 s, respectively. For the CNT-based DNA sequencer model, DFT calculations was performed on an Intel Xeon® Gold 6226 R CPU with 16 cores and 192GB of RAM. Total computational times for the full-SCF DFT calculation and DeepSCF calculation (including eρML prediction step) were 60580.9 and 2873.6 s, respectively. Model training We implemented the DeepSCF model within Pytorch framework <sup>40</sup> . Then, we trained the model to training set using the ADAM optimizer <sup>41</sup> by minimizing the mean-square error loss function �eρML� ¼ <sup><u>1</u></sup> (kernel size and the number of channels in first layers) which show the smallest test errors for the Org model trained over 50 epochs (see Supplementary Table 1 for detail). Using these optimized hyperparameters, the models (the Org, R-only, R + S, and (R + S) × 3) were trained over 100 epochs. The average computational time for training the Org, Ronly, R + S, (R + S) × 2, and (R + S) × 3 molecular datasets per single epoch are 818.2, 817.7, 818.3, 1638.0, 2535.1 s, respectively, corresponding to the 0.6 seconds of average training time per molecule. All training and evaluation for DeepSCF were performed on an NVIDIA GeForce GTX 3090 GPU with 24GB of RAM. Data availability [The TABS database can be found at https://doi.org/10.1016/j.comptc.2014.](https://doi.org/10.1016/j.comptc.2014.05.010) [05.010. The atomic geometries of molecular datasets generatedbased on the](https://doi.org/10.1016/j.comptc.2014.05.010) TABS database and tested example materials (butane, polyphenylene, graphene,andnano-carbon-basedDNAsequencer)areprovidedat [https://doi.](https://doi.org/10.5281/zenodo.10073810) [org/10.5281/zenodo.10073810.](https://doi.org/10.5281/zenodo.10073810) These atomic geometries can be used to generate the input and target features of DeepSCF using the SIESTA package which is available at [https://github.com/siesta-project.](https://github.com/siesta-project) The input and targetfeatureusedfortheOrgmodelat [https://doi.org/10.5281/zenodo.](https://doi.org/10.5281/zenodo.10075554) [10075554.](https://doi.org/10.5281/zenodo.10075554) Code availability The Python source code of the DeepSCF package and utility codes to post[process the input and output features are available at Github.](https://github.com/yhkimlab/DeepSCF) Received: 30 May 2024; Accepted: 6 October 2024; References 1. Kadanoff, L. P. More is the same; phase transitions and mean field theories. J. Stat. Phys. 137, 777–797 (2009). 2. De Gennes, P. G. Superconductivity of Metals And Alloys. (Springer, 2000). 3. Gummel, H. K. A self-consistent iterative scheme for one-dimensional steady state transistor calculations. IEEE Trans. Electron Devices 11, 455–465 (1964). 4. Kohn, W. & Sham, L. J. Self-consistent equations including exchange and correlation effects. Phys. Rev. 140, A1133–A1138 (1965). 5. Martin, R. M. Electronic Structure: Basic Theory and Practical Methods. 2nd edn (Cambridge University Press, 2020). 6. Woods, N. D., Payne, M. C. & Hasnip, P. J. Computing the selfconsistent field in kohn-sham density functional theory. J. Phys. Condens. Matter 31, 453001 (2019). 7. Mi, W., Luo, K., Trickey, S. B. & Pavanello, M. Orbital-free density functional theory: an attractive electronic structure method for largescale first-principles simulations. Chem. Rev. 123, 12039–12104 (2023). 8. Mills, K. et al. Extensive deep neural networks for transferring small scale learning to large scale systems. Chem. Sci. 10, 4129–4140 (2019). 9. Dick, S. & Fernandez-Serra, M. Machine learning accurate exchange and correlation functionals of the electronic density. Nat. Commun. 11, 3509 (2020). 10. Nagai, R., Akashi, R. & Sugino, O. Completing density functional theory by machine learning hidden messages from molecules. npj Comput. Mater. 6, 43 (2020). 11. Pederson, R., Kalita, B. & Burke, K. Machine learning and density functional theory. Nat. Rev. Phys. 4, 357–358 (2022). 12. Schutt, K. T., Gastegger, M., Tkatchenko, A., Muller, K. R. & Maurer, R. J. Unifying machine learning and quantum chemistry with a deep neural network for molecular wavefunctions. Nat. Commun. 10, 5024 (2019). 13. Fiedler, L. et al. Predicting electronic structures at any length scale with machine learning. Npj Comput. Mater. 9, 115 (2023). 14. Hazra, S., Patil, U. & Sanvito, S. Predicting the one-particle density matrix with machine learning. J. Chem. Theory Comput. 20, 4569–4578 (2024). MSE eρML N XN i¼1 ρ <sup>i</sup> DFT <sup>�</sup> <sup>eρ</sup> ML <sup>i</sup> �2; ð4Þ ρ <sup>i</sup> <sup>i</sup> DFT <sup>�</sup> <sup>eρi</sup> where N is the total number of models. To avoid the overfitting problem, we randomly divided each dataset into 80% of training set and 20% of test set. To determine the model architecture, we chose the hyperparameters 15. Brockherde, F. et al. Bypassing the Kohn-Sham equations with machine learning. Nat. Commun. 8, 872 (2017). 16. Lewis, A. M., Grisafi, A., Ceriotti, M. & Rossi, M. Learning electron densities in the condensed phase. J. Chem. Theory Comput. 17, 7203–7214 (2021). 17. Briling, K. R., Fabrizio, A. & Corminboeuf, C. Impact of quantumchemical metrics on the machine learning prediction of electron density. J. Chem. Phys. 155, 024107 (2021). 18. Rackers, J. A., Tecot, L., Geiger, M. & Smidt, T. E. A recipe for cracking the quantum scaling limit with machine learned electron densities. Mach. Learn. 4, 015027 (2023). 19. Alred, J. M., Bets, K. V., Xie, Y. & Yakobson, B. I. Machine learning electron density in sulfur crosslinked carbon nanotubes. Compos. Sci. Technol. 166, 3–9 (2018). 20. Chandrasekaran, A. et al. Solving the electronic structure problem with machine learning. Npj Comput. Mater. 5, 22 (2019). 21. Fowler, A. T., Pickard, C. J. & Elliott, J. A. Managing uncertainty in data-derived densities to accelerate density functional theory. J. Phys. Mater. 2, 034001 (2019). 22. Gong,S. et al.Predictingchargedensitydistributionof materialsusing a local-environment-based graph convolutional network. Phys. Rev. B 100, 184103 (2019). 23. Jørgensen, P. B. & Bhowmik, A. Equivariant graph neural networks for fast electron density estimation of molecules, liquids, and solids. Npj Comput. Mater. 8, 1–10 (2022). 24. Focassio, B., Domina, M., Patil, U., Fazzio, A. & Sanvito, S. Linear jacobi-legendre expansion of the charge density for machine learning-accelerated electronic structure calculations. npj Comput. Mater. 9, 87 (2023). 25. Kim, Y.-H., Lee, I.-H. & Martin, R. M. Object-oriented construction of a multigrid electronic-structure code with fortran 90. Comput. Phys. Commun. 131, 10–25 (2000). 26. Lee, I.-H., Kim, Y.-H. & Martin, R. M. One-way multigrid method in electronic-structure calculations. Phys. Rev. B 61, 4397–4400 (2000). 27. Prodan, E. & Kohn, W. Nearsightedness of electronic matter. Proc. Natl Acad. Sci. USA 102, 11635–11638 (2005). 28. Alzubaidi, L. et al. Review of deep learning: concepts, cnn architectures, challenges, applications, future directions. J. Big Data 8, 53 (2021). 29. Ronneberger, O., Fischer, P. & Brox, T. U-net: Convolutional networks for biomedical image segmentation. In Proceedings of 18th International Conference on Medical Image Computing and Computer-Assisted Intervention. 234–241 (Springer, 2015). 30. Soler, J. M. et al. The siesta method for ab initio order-n materials simulation. J. Phys. Condens. 14, 2745–2779 (2002). 31. Blair, S. A. & Thakkar, A. J. Tabs: a database of molecular structures. Comput. Theor. Chem. 1043, 13–16 (2014). 32. Kim,H.S.&Kim,Y.-H.Recentprogressinatomisticsimulationofelectrical current DNA sequencing. Biosens. Bioelectron. 69, 186–198 (2015). 33. Kim, H. S., Lee,S. J. & Kim, Y.-H. Distinctmechanismsof DNA sensing based on n-doped carbon nanotubes with enhanced conductance and chemical selectivity. Small 10, 774–781 (2014). 34. Jung, S. W., Kim, H. S., Cho, A. E. & Kim, Y.-H. Nitrogen doping of carbon nanoelectrodes for enhanced control of DNA translocation dynamics. ACS Appl. Mater. Interfaces 10, 18227–18236 (2018). 35. Perdew, J. P. Accurate density functional for the energy: real-space cutoff of the gradient expansion for the exchange hole. Phys. Rev. Lett. 55, 1665–1668 (1985). 36. Troullier, N. & Martins, J. L. Efficient pseudopotentials for plane-wave calculations. Phys. Rev. B 43, 1993–2006 (1991). 37. Kassel, L. S. The limiting high temperature rotational partition function of nonrigid molecules I. General theory. II. Ch4, c2h6, c3h8, ch(ch3)3, c(ch3)4 and ch3(ch2)2ch3. III. Benzene and its eleven methyl derivatives. J. Chem. Phys. 4, 276–282 (1936). 38. Lee, C., Yang, W. & Parr, R. G. Development of the colle-salvetti correlation-energy formula into a functional of the electron density. Phys. Rev. B 37, 785–789 (1988). 39. Becke, A. D. Density‐functional thermochemistry. III. The role of exact exchange. J. Chem. Phys. 98, 5648–5652 (1993). 40. Paszke, A. et al. Pytorch: an imperative style, high-performance deep learning library. Adv. Neural Inf. Process. Syst. 32, 8024–8035 (2019). 41. Kingma, D. P. & Ba, J. Adam: A method for stochastic optimization. The 3rd International Conference on Learning Representations (ICLR, 2015). Acknowledgements This work was supported by the National Research Foundation of Korea (2023R1A2C2003816 and RS-2023-00253716). Computational resources were provided by KISTI Supercomputing Center (KSC-2023-CRE-0476). Author contributions Y.-H.K. formulated and oversaw the project. R.G.L. developed the computational framework and carried out calculations. Y.-H.K. and R.G.L. analyzed the computational results and co-wrote the paper. Competing interests The authors declare no competing interests. Additional information Supplementary information The online version contains supplementary material available at [https://doi.org/10.1038/s41524-024-01433-0.](https://doi.org/10.1038/s41524-024-01433-0) Correspondence and requests for materials should be addressed to Yong-Hoon Kim. Reprints and permissions information is available at [http://www.nature.com/reprints](http://www.nature.com/reprints) Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, 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 you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. 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 isnot includedin thearticle’s CreativeCommons licenceandyour 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-](http://creativecommons.org/licenses/by-nc-nd/4.0/) [nc-nd/4.0/.](http://creativecommons.org/licenses/by-nc-nd/4.0/) © The Author(s) 2024

섹션 본문 26문단 · 26,464자

(제목 없음)

1The self-consistent field (SCF) generation of the three-dimensional (3D) electron density distribution () represents a fundamental aspect of density functional theory (DFT) and related first-principles calculations, and how one can shorten or bypass the SCF loop represents a critical question from both practical and fundamental standpoints.Herein, a machine learning strategy DeepSCF is presented in which the map between the SCF and the initial guess density ( 0 ) constructed by the summation of neutral atomic densities is learned using 3D convolutional neural networks (CNNs).High accuracy and transferability of DeepSCF are achieved by expanding the input features to include atomic fingerprints beyond 0 and encoding them on a 3D grid.The prediction of the residual density (δ) rather than itself is targeted, and, since δ corresponds to chemical bonding information, a dataset of small-sized organic molecules featuring diverse bonding characters is adopted.After enhancing the fidelity of the method by subjecting the atomic geometries in the dataset to random strains and rotations, the effectiveness of DeepSCF is finally demonstrated using a complex large carbon nanotube-based DNA sequencer model.This work evidences that the nearsightedness in electronic structures can be optimally represented via the local connectivity in CNNs.

INTRODUCTION

2The mean field or self-consistent field (SCF) method represents a ubiquitous computational approach to deal with complex scientific problems formulated as several coupled differential equations and appear in a wide range of contexts such as the Landau theory for phase transitions [1] , Bogoliubov-de Gennes equations for superconductivity [2] , Gummel's equations for semiconductor devices [3] , and Kohn-Sham density functional theory (DFT) for ab initio electronic structure calculations [4][5] , to name a few.In the case of DFT, which has become the standard computational tool for a wide range of science and engineering fields, the SCF solution of the Kohn-Sham (KS) equations identifies the three-dimensional (3D) electron density and at the same time variationally minimizes the total energy.Behind the success of DFT lies the Hohenberg-Kohn theorem, which simplifies the complex many-electron problem to the prediction of the 3D ground-state electron density ( ⃗).Despite its success, the applicability of DFT calculations is typically limited to a few hundred to thousand atoms due to the cubic scaling of the computational cost with respect to the number of atoms.To enable large-scale DFT calculations, advanced algorithms to accelerate SCF cycles have been devised [6] and in parallel several routes to reformulate DFT in the context of order-N and orbital-free DFT methods have been also explored [5,[7][8] .More recently, machine learning (ML) techniques have emerged as promising alternatives, and much efforts are presently being devoted to develop the ML strategies that bypass the iterative solutions of KS equations by predicting the electron density [9][10][11][12][13][14][15][16][17][18][19][20][21][22] or local density of states [23][24] or the KS Hamiltonian [25][26][27][28][29][30][31] .The ( ⃗) prediction approach, which arguably represents the most straightforward and flexible route in view of the basis set dependence and other implementation considerations, can be broadly categorized into the models based on basis functions [9,13,16,[18][19]21] and those based on grid representations [10-12, 14-15, 17, 20, 22] . Thetypically atom-centered basis functions-based models generate ( ⃗) by expanding it in terms of basis functions together with the coefficients learned by fitting the dataset.On the other hand, grid-based models learn the map between input fingerprints and the ( ⃗) represented on a 3D real-space mesh.However, current methods still suffer from several shortcomings: The performance of the former strongly depends on the quality of basis functions and the models developed for a specific set of basis functions would be less transferable to other basis functions. For the latter group, the urrently implemented approaches attempted to construct neural networks attached to each grid point, requiring huge computational resources and quickly becoming impractical as the system size increases.Importantly, modern state-of-the-art computer vision approaches such as the convolutional neural network (CNN) have not been applied yet.

3In this work, partly motivated by our earlier work on the multigrid acceleration of the SCF cycle within DFT [32][33] , we develop the DFT DeepSCF scheme that learns the map between atomic fingerprints encoded on a 3D mesh and the converged SCF density based on CNN model (Figure 1).One central implication of the nearsightedness of electronic structure asserted by Kohn is that local properties like chemical bonding and functional groups are transferable from one environment to another [34] , and we hypothesized that this nearsightedness principle could be particularly well mapped to the spatial locality (or local connectivity) in CNNs [35] .This is to our knowledge the first successful demonstration of directly predicting ( ⃗) using the CNN algorithm, where advanced neural network architectures such as U-Net is available [36] .To achieve this objective, we encode the structural and chemical fingerprints of target materials into 3D real-space grid by augmenting the summation of neutral atomic densities 0 ( ⃗), typically used as the initial guess electron density, with additional grid-projected atomic fingerprints.Given that the density difference δ between 0 and corresponds to the chemical bonding information (in practice, the correspondence is typically approximate due to the modification of neutral atomic densities), we devise a new U-Net-based architecture that includes a skip connection to learn the residual δ and achieve an enhanced prediction accuracy.In addition, to maximize the model transferability or incorporate diverse chemical bonding information, we train our model by adopting a molecular database that includes different chemical bonding configurations and then training neural networks with randomly strained geometries.Since the CNN model does not give equivariant results under the rotation of input features, we additionally enhance the training dataset by randomly rotating molecular geometries.Examining the electronic structures of the test dataset obtained from the single-shot KS diagonalization over the predicted ( ⃗), we confirm that the quality of our DeepSCF or non-SCF DFT calculations is comparable to that of fully SCF DFT counterparts.Finally, we demonstrate the size-extensibility and transferability of the DeepSCF model with butane, crystalline polyethylene, graphene, and composite DNAcarbon nanotube structures.

Key features of the DeepSCF model

4In Figure 1B, we schematically show the framework of the DeepSCF model that learns the 0 to map based on the CNN.We first project on a 3D mesh the atomic orbital-related fingerprints, which encode the atomic geometry ℛ and chemical composition and at the same time effectively differentiate various chemical environment.Then, these input features are applied to the CNN model and converted into the final product � ML .As the CNN architecture, we employ the U-Net that consists of encoding and decoding blocks involving the repeated sets of the convolution layers and rectified linear unit (ReLU) operation [36] .The encoding (decoding) blocks utilize the maxpooling (deconvolution) operations to decrease (increase) the resolution of hidden features.In addition, to integrate the output features from encoding block into decoding block, these blocks were linked by skip-connections (dotted arrows) (Figure 1C; see Figure S1 and Table S1 for detail).As will be detailed later, rather than directly predicting � ML , we used the U-Net block to generate the residual � ML and added it to 0 and normalized 0 + � ML by the total number of electrons to prepare the final feature � ML .The electronic structure is then obtained by a single-shot KS diagonalization over the � ML without the SCF loop.

5In evaluating the prediction accuracy, since different systems contain different numbers of electrons , we introduced the absolute percentage error (ℰ )

6In addition, the average prediction accuracy for dataset including several structures was estimated using the weighted formula, i.e. 〈ℰ 〉(%) = 100 × (∑ ℰ )/ , where the e is the number of electrons in total dataset.

Input and output features

7We next discuss in more detail the input and output features of DeepSCF, which we designed to capture the essential features of the 0 ( ⃗) to ( ⃗) map (Figure 2).To apply the CNN algorithm for first-principles electronic structure calculations, for theoretical and practical reasons, we propose to project atomoriginated information on a 3D real-space grid.Various welltested atomistic quantities are already available in established DFT codes, and here we employed the SIESTA package based on the numerical atomic orbital basis set [37] and adopted (i) the summation of atomic electron densities 0 ( �⃗) = ∑ ( �⃗) , where is neutral atomic densities of separated atom , (ii) the diffuse ion charge density

8where the is the local pseudopotential of atom , and (iii) the atomic orbital overlap density

9where the , are the labels for the atomic basis orbitals, projected on a grid with a uniform grid spacing of 0.25 Å.In Figure 2C, in predicting the dataset that will be detailed later, we indeed find that, with the increasing number of input fingerprints applied to the initial layers, the error 〈 〉 of trained models decrease for both training and validation sets.This result shows that each input features contribute to capture the final target, demonstrating their fidelity in encoding the 3D electronic structure.

10In terms of the learning target of DeepSCF, we considered in addition to the density itself the learning of the residual density ( �⃗) = ( �⃗) − 0 ( �⃗) and confirmed several benefits of selecting as the target of ML prediction [38] .Numerically, the is more smoothly distributed on a spatial grid compared to the (compare, e.g., Figure 3B,C), effectively reducing the grid spacing and thus providing the computational efficiency to train the model.Moreover, the physically corresponds to the electron transfer between constituent atoms, reflecting the chemical bond information.To validate that the learning of instead of allows more accurate prediction of various chemical environments, we prepared the -based architecture ① and -based architecture ② of the DeepSCF model (Figure 1E left panel), in the latter of which the final feature becomes the summation of 0 and � ML (dotted arrow in Figure 2A).Testing both models, we confirmed that the -learning architecture ② gives lower 〈 〉 values than the -learning architecture ① for both training and test datasets (Figure 1E right panel; see Table S2 for detail).

Dataset enhancement: Applying random rotation/strain and increasing the dataset size

11Targeting to predict that approximately corresponds to the chemical bond information, another important ingredient of the DeepSCF model is the preparation of a proper dataset that can cover various chemical bonding cases.For this purpose, we used the TABS dataset which consists of molecules including various chemical species [39] (see Experimental Sections for detail).However, while the CNN is equivariant to the translation of input features (Figure 2A), it is inherently not equivariant to the rotation of input features.Indeed, upon considering differently oriented guanine structures, we found that the model derived from the original dataset that consists of the molecular geometries lying on the xy-plane results in much larger ℰ for the molecules rotated from the xy-plane (Figure 3B, top panel).Moreover, the original dataset only contains the optimized structures, from which we found that the derived ML models become inefficient in predicting the conditions beyond the equilibrium geometries (Figure S2C).

12To address these problems, we considered the possibilities of randomly rotating and/or straining the ground-state geometries, and additionally increasing the size of dataset.To systematically demonstrate the dataset enhancement effects, in addition to the original ground-state geometry dataset (Original), we prepared the comparison models that were trained on the rotated (R-only) structures and the simultaneously rotated and -2% ~ +2% strained (R+S) structures.In addition, by increasing the R+S dataset size three times, we prepared the augmented rotated and strained (R+S+A) structures.Then, by rotating a guanine molecule, we obtain for the Original, R-only, R+S, and R+S+A models the average ℰ values of 3.18%, 2.82%, 2.59%, and 1.79%, respectively (Figure 3B).It should be also noted that, unlike the model trained on the Original dataset (Figure 3B, top panel), the enhanced R-only, R+S, and R+S+A models exhibit uniform ℰ distributions over all rotation directions, representing their capability to equivariantly predict differently orientated molecules.Similarly, by straining a guanine molecule with the strain ϵ ranging from -1 % to +1 %, we again observe that the Original, R-only, R+S, and R+S+A models show the average ℰ values of 3.37%, 2.71%, 2.42%, and 1.80%, respectively (Fig- ure 3C).Consequently, by enhancing the dataset by applying random rotation and strain to the original dataset and then increasing the size of dataset, we achieved the rotation-equivariant and highly accurate prediction properties of DeeSCF.We will below exclusively apply the R+S+A model.

Model performance

13Now, we discuss the performance of the DeepSCF model in capturing the electronic structures of test dataset (see Methods for details).We confirmed that the � ML fits well to with 〈ℰ 〉 of 1.67 %, which corresponds to 0.99 of the coefficient of determination (R 2 ) score (Figure S3).In addition, we obtained the mean-absolute-errors (MAE) of 0.01 eV/atom, 0.14 eV, 0.11 eV, 0.17 eV/Å, 0.17 eV/Å, and 0.17 eV/Å for the predicted total energy ( tot ), lowest unoccupied molecular orbital (LUMO), highest occupied molecular orbital (HOMO) levels, atomic forces of I atoms in each molecules along x-, y-, and z-directions ( , , and ), respectively (Figure 4B,C,D,F), confirming the excellent accuracy of the � ML -based non-SCF calculations in replacing the full SCF DFT calculations.In Figure S4A, we discuss the specific cases of pyridinium chloride (C5H6NCl) and bromopyruvic acid (C3H3BrO3) molecules included in the test dataset.

14We now demonstrate the size-extensibility and transferability properties of the DeepSCF model, which are essential in predicting unseen materials beyond the molecular training dataset.Due to the adaptation of the CNN architecture, the DeepSCF model can handle any size of input feature and the size-extensibility should be naturally extended to crystalline systems by applying periodic boundary conditions.In Figure 5, we present the calculation results obtained for butane, polyethylene, and graphene, which are not present in the dataset.Note that, while butane has a finite structure like other molecular systems in the training dataset, polyethylene and graphene are crystalline systems that are periodically extended along the one-and two-dimensional directions, respectively (Figure 5A).Nonetheless, the accuracies of the DeepSCF-predicted � ML as well as the � ML -derived density of states (DOS) obtained for periodic polyethylene and graphene comparable to that for isolated butane (Figure 5B,C).

15Finally, to demonstrate the capability of handling complex large-scale systems that involve a wide range of chemical and bonding environments, we applied the DeepSCF architecture to the 1644-atom nano-carbon electrode-based DNA sequencer model in which a single-stranded DNA (ssDNA) composed of 30 randomly distributed nucleobases is positioned between two capped metallic (6,6) carbon nanotube (CNT) electrodes (Figure 6A and see Experimental Sections for details) [40][41][42] .We obtain the � prediction error ℰ of 2.10 %, which is comparable to that of 1.67 % for the training dataset (Figure 6B,C).The performance could be further improved by including within our dataset molecules that contain phosphorus elements (Figure 6C, red arrow) and/or weak dispersion interactions (Figure 6C, blue arrow).Performing non-SCF calculation based on this � , we also evaluated the DOS and atomic forces .We find that the DOS calculated from � are comparable to DFT data (Figure 6D) and moreover the � -derived atomic forces are also in excellent agreement with the DFT results with the MAE of 1.35, 1.07, and 1.26 eV/Å along the x, y and z directions, respectively (Figure 6E).Such high accuracy of DeepSCF in deriving electronic structures from suggests the origins of the outstanding performance of ML-based methods to predict higher-level materials properties that include neural network force fields.

CONCLUSION

16To summarize, we introduced the DeepSCF scheme, which leverages the 3D U-Net CNN model to predict the map between 3D grid-projected atomic fingerprints and the SCF .The model first encodes the structural and chemical fingerprints of materials on a 3D mesh via the summation of neutral atomic densities ( 0 ) as well as other atomic fingerprints, and then uses a U-Net architecture designed to learn the residual density ().We have demonstrated that the residual learning model surpasses the counterpart that learns itself in terms of prediction accuracy and attributed the success to the encoding of the chemical bonding information within .Given that represents the chemical bonding information, this model was trained on a database of small-sized organic molecules encompassing a diverse range of chemical bonding configurations.Since the CNN model is not rotationally equivariant, we introduced random rotations to the molecular geometries within the dataset.To further increase the transferability and prediction accuracy of DeepSCF, we additionally applied random strains to the equilibrium geometries and finally expanded the dataset size.After verifying that the quality of the non-SCF DFT calculations is comparable to that of fully SCF DFT counterparts, we demonstrated the size-extensibility and transferability of DeepSCF model with butane, polyethylene, graphene and large-scale nano-carbonbased DNA sequencer model.This development not only provides practical guidelines for applying CNNs and related computer vistion machine learing methods to accelerate demanding DFT calculations but also establishes the correspondence between the nearsightedness in electronic structure and the spatial locality in CNNs, thereby providing insights into the mechanistic underpinnings of the success of various ML-based atomistic materials simulation strategies.

Dataset

17To train the DeepSCF model, we first create the ground-state geometry dataset by optimizing atomic geometries of molecules in TABS database [39] , which consists of 1641 molecules with 24 different functional categories including C, H, N, O, F, S, Cl, and Br atoms, performing the DFT calculation.We then generate the additional datasets for R-only, R+S, and R+S+A models by randomly rotating and straining atomic geometries of the ground-state dataset, and also increasing the size of dataset.In these datasets, each of molecule structures has cubic unit cell with 20 Å lattice parameters.For examining the model performance, guanine, butane, polyethylene and graphene structures were also constructed.The guanine molecule has cubic unit cell with 20 Å lattice parameters.Both butane and polyethylene inside tetragonal unit cell with lattice parameters a, b = 20 Å and c = 15 Å.The polyethylene is periodically connected along the c-axis direction.The graphene structure has tetragonal unit cell with lattice parameters a= 30 Å, b= 32 Å and c = 15 Å which is also periodically repeated along the a-b plane.The nano-carbon-based DNA sequencer model was also modeled, in which a ssDNA is positioned between two capped (6,6) CNT electrodes.The ssDNA structure consists of backbone and nucleobases: adenine (A), cytosine (C), guanine (G), thymine (T).We insert randomly generated nucleobases (ATTAGCCGAT), repeated three times, into the ssDNA structure containing 984 atoms with C, H, N, O, P chemical species.Each of capped (6,6) CNT electrodes contain 330 carbon atoms.The nano-carbon-based DNA sequencer model structure has tetragonal unit cell with lattice parameters a = 80 Å, b = 32 Å, and c = 96 Å.

DFT calculations

18For all above datasets, DFT calculations were carried out using the SIESTA package [37] within the generalized gradient approximation [43] .Troullier-Martins-type norm-conserving pseudopotentials [44] were employed with the numerical atomic orbital basis sets of double-ζ-plus-polarization quality.The Monkhorst-Pack �⃗ -point grid of 1 × 1 × 1, 1 × 1 × 15, and 2 × 1 × 2 was sampled in the Brillouin zone for the molecules, polyethylene and nano-carbon-based DNA sequencer models.The atomic geometries of TABS database which were optimized using B3LYP functional [45][46][47] were reoptimized within GGA-level until the Hellmann-Feynman ionic forces acting on each atom were below 0.02 eV/Å.The posterior electronic structures were obtained from the non-SCF calculations within SIESTA package.

Model training

19We implemented the DeepSCF model by modifying the U-Net architecture [36] within Pytorch framework [48] (see Figure S1 for detail).To avoid the overfitting problem, we randomly divided each dataset for the original, R-only, R+S, and R+S+A model into 80% of training set and 20% of test set.Then, we trained the model to training set using the ADAM optimizer [49] with the MSE loss function.We chose the hyperparameters (kernel size and the number of channels in first layers) which show the smallest test errors for the original model trained over 50 epochs (see Table S1 for detail).Using these optimized hyperparameters, we trained all models (the original, R-only, R+S, and R+S+A) over 100 epochs to reproduce all results of Figure 3,4,5,6.

20Y.-H.K. formulated and oversaw the project.R.G.L. developed the computational framework and carried out calculations.Y.-H.K. and R.G.L. analyzed the computational results and co-wrote the manuscript.the MAE of 0.01 eV/atom, 0.14 eV, 0.11 eV, 0.17 eV/Å, 0.17 eV/Å, and 0.17 eV/Å respectively.

Figure 1 .

21Figure 1.Overview of DeepSCF model.A) For material which can be represented by the atomic geometry ( ) and chemical composition ( ) where the I is atomic index, the conventional DFT calculation obtains SCF electron density () through the SCF iterations starting with initial condition of , in which KS Hamiltonian, wavefunction and electron density are repeatedly calculated until electron density is converged.On the other hands, DeepSCF scheme replaces the SCF iterations with the neural networks to learn the map between and prediction target � .For both methods, all ground-state electronic structure properties can be obtained after single diagonalization of the KS equation.B) The atomic orbital-based features extracted from each atomic configuration ( and ) are employed into the initial layers of U-Net block of DeepSCF model, and its output � and at initial layer are summed (denoted by ⨁) and normalized by and thus become final output ( � ).C) The model's neural networks architecture, including U-Net block which consists of encoder (blue box) and decoder (orange box).Then final (gray box) blocks then receive its output to provide final prediction output � (see Figure S1 for detail).D) The effects of input atomic orbital-based features on model performance.The 1, 2 and 3 number of input layers respectively represent { }, { , } and { , , } features.e, Comparison between and -learning approaches which employ different architectures (denoted by ① and ②) at final block in DeepSCF model (dotted box in (A)).The performance of the two approaches are presented by 〈 〉 for training and test datasets.

Figure 2 .

22Figure 2. Input and output features of carbon dioxide.A) Carbon dioxide model and one-and two-dimensional crosssection (① and ②) through its center to visualize the spatial distributions of output (B) and (C) and input features (D) 0 , (E) and (F) .

Figure 3 .

23Figure 3. Dataset enhancement.A) The Original dataset was enhanced by applying random rotations (θ, φ) in all directions (top) and/or random uniaxial strains (ϵ) ranging from -2% to +2% (middle).The dataset size was further increased by sampling additional rotated/strained geometries (bottom).(B)The ℰ distributions for the rotated guanine structures over the all direction.Top to bottom panels present ℰ distributions of the original, R-only, R+S, and R+S+A models, respectively.C) The ℰ distribution for the guanine structures ( = 0°, φ = 45°) strained by the ϵ ranging from -1 to +1%.The black diamond, red circle, blue cross and green triangle indicate the original, R-only, R+S, and R+S+A models, respectively.

Figure 4 .

24Figure 4. Model performance.Performing non-SCF calculations based on the ρ ML , the posterior electronic structures of (A) total energy, (B) HOMO, (C) LUMO, (D) , (E) , and (F) are presented with respect to DFT calculation results producing

Figure 5 .

25Figure 5. Isolated and periodic structures.A) The butane (left), polyethylene (center) and graphene (right) structures.Two dimensional cross-sections of (B) ML and (C) ML − through the center of (A) in x-y and z-x planes, in which color scale is in units of e/Å 3 .D) The comparison between DOS obtained from ML (red dashed line) and DOS obtained from DFT calculation (red shade) for the all cases.

Figure 6 .

26Figure 6.The nano-carbon-based DNA sequencer model.A) The ssDNA structure periodically extended along x and z-axis direction which is composed of 30 base pair.B) The plane-averaged � ML , where color scale is in units of e/Å 3 .C) The planeaveraged � ML − (left panel) and 3D contour plots for � ML − in ① and ② regions (right panel), overlaid over the atomic structure.In the ① and ②, red and blue arrows highlight the positions of phosphorous elements and the contacts between the ssDNA and CNT electrode, respectively.The isosurface level for 3D contour plots is 0.03 e/Å 3 , where the red and green colors indicate positive and negative values.E) The comparison between DOS obtained from ML (red dashed line) and the DFT results (red shade).The comparison between atomic forces of each atoms ( ) obtained from � ML and the DFT results along x-, y-and z-directions, respectively.

참고문헌 40건

  1. U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
  2. One-way multigrid method in electronic-structure calculations Physical review. B, Condensed matter · American Physical Society · 2000 10.1103/physrevb.61.4397
  3. A self-consistent iterative scheme for one-dimensional steady state transistor calculations IEEE Transactions on Electron Devices · Institute of Electrical and Electronics Engineers · 1964 10.1109/t-ed.1964.15364
  4. Distinct Mechanisms of DNA Sensing Based on N‐Doped Carbon Nanotubes with Enhanced Conductance and Chemical Selectivity Small · Wiley · 2013 10.1002/smll.201301225
  5. Accurate Density Functional for the Energy: Real-Space Cutoff of the Gradient Expansion for the Exchange Hole Physical Review Letters · American Physical Society · 1985 10.1103/physrevlett.55.1665
  6. Development of the Colle-Salvetti correlation-energy formula into a functional of the electron density Physical review. B, Condensed matter · American Physical Society · 1988 10.1103/physrevb.37.785
  7. Object-oriented construction of a multigrid electronic-structure code with Fortran 90 Computer Physics Communications · Elsevier BV · 2000 10.1016/s0010-4655(00)00056-4
  8. More is the Same; Phase Transitions and Mean Field Theories Journal of Statistical Physics · Springer Science+Business Media · 2009 10.1007/s10955-009-9814-1
  9. Efficient pseudopotentials for plane-wave calculations Physical review. B, Condensed matter · American Physical Society · 1991 10.1103/physrevb.43.1993
  10. Recent progress in atomistic simulation of electrical current DNA sequencing Biosensors and Bioelectronics · Elsevier BV · 2015 10.1016/j.bios.2015.02.020
  11. The Limiting High Temperature Rotational Partition Function of Nonrigid Molecules I. General Theory. II. CH4, C2H6, C3H8, CH(CH3)3, C(CH3)4 and CH3(CH2)2CH3. III. Benzene and Its Eleven Methyl Derivatives The Journal of Chemical Physics · American Institute of Physics · 1936 10.1063/1.1749835
  12. TABS: A database of molecular structures Computational and Theoretical Chemistry · Elsevier BV · 2014 10.1016/j.comptc.2014.05.010
  13. The SIESTA method for<i>ab initio</i>order-<i>N</i>materials simulation Journal of Physics Condensed Matter · IOP Publishing · 2002 10.1088/0953-8984/14/11/302
  14. Nearsightedness of electronic matter Proceedings of the National Academy of Sciences · National Academy of Sciences · 2005 10.1073/pnas.0505436102
  15. Density-functional thermochemistry. III. The role of exact exchange The Journal of Chemical Physics · American Institute of Physics · 1993 10.1063/1.464913
  16. Self-Consistent Equations Including Exchange and Correlation Effects Physical Review · American Institute of Physics · 1965 10.1103/physrev.140.a1133
  17. Bypassing the Kohn-Sham equations with machine learning Nature Communications · Nature Portfolio · 2017 10.1038/s41467-017-00839-3
  18. Nitrogen Doping of Carbon Nanoelectrodes for Enhanced Control of DNA Translocation Dynamics ACS Applied Materials & Interfaces · American Chemical Society · 2018 10.1021/acsami.8b04453
  19. Machine learning electron density in sulfur crosslinked carbon nanotubes Composites Science and Technology · Elsevier BV · 2018 10.1016/j.compscitech.2018.03.035
  20. Solving the electronic structure problem with machine learning npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0162-7
  21. Extensive deep neural networks for transferring small scale learning to large scale systems Chemical Science · Royal Society of Chemistry · 2019 10.1039/c8sc04578j
  22. Computing the self-consistent field in Kohn–Sham density functional theory Journal of Physics Condensed Matter · IOP Publishing · 2019 1010881361648xab31c0
  23. Predicting charge density distribution of materials using a local-environment-based graph convolutional network Physical review. B./Physical review. B · American Physical Society · 2019 10.1103/physrevb.100.184103
  24. Managing uncertainty in data-derived densities to accelerate density functional theory Journal of Physics Materials · IOP Publishing · 2019 10.1088/2515-7639/ab0b4a
  25. PyTorch: An Imperative Style, High-Performance Deep Learning Library arXiv (Cornell University) · Cornell University · 2019
  26. Unifying machine learning and quantum chemistry with a deep neural network for molecular wavefunctions Nature Communications · Nature Portfolio · 2019 10.1038/s41467-019-12875-2
  27. Completing density functional theory by machine learning hidden messages from molecules npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-0310-0
  28. Machine learning accurate exchange and correlation functionals of the electronic density Nature Communications · Nature Portfolio · 2020 10.1038/s41467-020-17265-7
  29. Bypassing the Kohn-Sham equations with machine learning Nature Communications · Nature Portfolio · 2017 10.1038/s41467-017-00839-3
  30. Computing the self-consistent field in Kohn–Sham density functional theory Journal of Physics Condensed Matter · IOP Publishing · 2019 10.1088/1361-648x/ab31c0
  31. Review of deep learning: concepts, CNN architectures, challenges, applications, future directions Journal Of Big Data · Springer Science+Business Media · 2021 10.1186/s40537-021-00444-8
  32. Impact of quantum-chemical metrics on the machine learning prediction of electron density The Journal of Chemical Physics · American Institute of Physics · 2021 10.1063/5.0055393
  33. Learning Electron Densities in the Condensed Phase Journal of Chemical Theory and Computation · American Chemical Society · 2021 10.1021/acs.jctc.1c00576
  34. Electronic Structure Cambridge University Press eBooks · Cambridge University Press · 2020 10.1017/9781108555586
  35. Machine learning and density functional theory Nature Reviews Physics · Nature Portfolio · 2022 10.1038/s42254-022-00470-2
  36. Equivariant graph neural networks for fast electron density estimation of molecules, liquids, and solids npj Computational Materials · Nature Portfolio · 2022 10.1038/s41524-022-00863-y
  37. Linear Jacobi-Legendre expansion of the charge density for machine learning-accelerated electronic structure calculations npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-01053-0
  38. Predicting electronic structures at any length scale with machine learning npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-01070-z
  39. Orbital-Free Density Functional Theory: An Attractive Electronic Structure Method for Large-Scale First-Principles Simulations Chemical Reviews · American Chemical Society · 2023 10.1021/acs.chemrev.2c00758
  40. Predicting the One-Particle Density Matrix with Machine Learning Journal of Chemical Theory and Computation · American Chemical Society · 2024 10.1021/acs.jctc.4c00042