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

Deep Reinforcement Learning Optimizes Graphene Nanopores for Efficient Desalination

간접 관련 필름·전자재료 · (18) VENT(방수통기 부품) (5) 연료전지용 수분제어장치(가습기)(6) PEM(고분자전해질막)

기본 정보

저자
  1. Wang, Yuyang
  2. Cao Zhong-lin
  3. Farimani, Amir Barati
DOI
10.48550/arxiv.2101.07399
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
1
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.2101.07399
토픽
Membrane Separation Technologies
OpenAlex ID
W6891795794

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (18) VENT(방수통기 부품)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
graphene nanopores, water desalination, water flux, ion rejection, deep reinforcement learning
판단 근거
그래핀 나노기공을 이용한 수처리(해수 담수화) 연구이나, 핵심 원리인 나노 기공의 투과성 및 선택적 이온 차단 메커니즘은 코오롱인더스트리의 수소연료전지용 분리막(5, 6) 및 방수통기용 멤브레인(18)의 기공 제어 기술과 공학적 원리가 유사합니다.
R&D 활용 포인트
AI(DRL/CNN)를 활용한 고분자/나노 소재의 기공 구조 최적화 설계 기법을 연료전지용 이온교환막이나 기능성 멤브레인의 투과 성능 개선 R&D에 응용 가능함.
평가 입력
본문 51,285자 중 30,032자 발췌

초록

Two-dimensional nanomaterials, such as graphene, have been extensively studied because of their outstanding physical properties. Structure and geometry optimization of nanopores on such materials is beneficial for their performances in real-world engineering applications, like water desalination. However, the optimization process often involves very large number of experiments or simulations which are expensive and time-consuming. In this work, we propose a graphene nanopore optimization framework via the combination of deep reinforcement learning (DRL) and convolutional neural network (CNN) for efficient water desalination. The DRL agent controls the growth of nanopore by determining the atom to be removed at each timestep, while the CNN predicts the performance of nanoporus graphene for water desalination: the water flux and ion rejection at a certain external pressure. With the synchronous feedback from CNN-accelerated desalination performance prediction, our DRL agent can optimize the nanoporous graphene efficiently in an online manner. Molecular dynamics (MD) simulations on promising DRL-designed graphene nanopores show that they have higher water flux while maintaining rival ion rejection rate compared to the normal circular nanopores. Semi-oval shape with rough edges geometry of DRL-designed pores is found to be the key factor for their high water desalination performance. Ultimately, this study shows that DRL can be a powerful tool for material design.

본문 51,285자

본문 펼치기
# Deep Reinforcement Learning Optimizes Graphene Nanopores for Efficient Desalination #### Yuyang Wang, †, ¶ Zhonglin Cao, †, ¶ and Amir Barati Farimani ∗, †, ‡ _†Department_ _of_ _Mechanical_ _Engineering,_ _Carnegie_ _Mellon_ _University,_ _PA_ _15213,_ _USA_ _‡Department_ _of_ _Chemical_ _Engineering,_ _Carnegie_ _Mellon_ _University,_ _PA_ _15213,_ _USA_ _¶Joint_ _First_ _Authorship_ E-mail: barati@cmu.edu Abstract Two-dimensional nanomaterials, such as graphene, have been extensively studied because of their outstanding physical properties. Structure and geometry optimization of nanopores on such materials is beneficial for their performances in real-world engi neering applications, like water desalination. However, the optimization process often involves very large number of experiments or simulations which are expensive and time consuming. In this work, we propose a graphene nanopore optimization framework via the combination of deep reinforcement learning (DRL) and convolutional neural net work (CNN) for efficient water desalination. The DRL agent controls the growth of nanopore by determining the atom to be removed at each timestep, while the CNN predicts the performance of nanoporus graphene for water desalination: the water flux and ion rejection at a certain external pressure. With the synchronous feedback from CNN-accelerated desalination performance prediction, our DRL agent can optimize the nanoporous graphene efficiently in an online manner. Molecular dynamics (MD) sim ulations on promising DRL-designed graphene nanopores show that they have higher water flux while maintaining rival ion rejection rate compared to the normal circular nanopores. Semi-oval shape with rough edges geometry of DRL-designed pores is found to be the key factor for their high water desalination performance. Ultimately, this study shows that DRL can be a powerful tool for material design. 1 ### Introduction Single-layer graphene, as an iconic two-dimensional (2D) material, has drawn much scien tific attention in recent decades. Because of its ultrathin thickness and outstanding me chanical properties, graphene with artificial pores has been demonstrated to have great potentials in many engineering applications such as effective hydrogen gas separator, <sup>1–3</sup> next-generation energy storage or supercapacitor building, <sup>4,5</sup> and high-resolution DNA se quencing. <sup>6–8</sup> Given the potential imminent global water scarcity crisis, another important application for nanoporus graphene is energy-efficient water desalination. <sup>9,10</sup> Equipped with nanoporous 2D material membranes like graphene, reverse osmosis (RO) water desalination process can expect 2-3 orders improvement in water flux compared with traditional poly meric membranes. <sup>9–13</sup> In RO, the geometry of nanopores in 2D materials plays a determinant role in water desalination performance. <sup>9,11</sup> In general, a large pore that allows high water flux is likely to perform poorly in rejecting ions; a small pore that rejects 100% undesired ions, on the other hand, usually have limited water flux. Thus, an optimal nanopore for water desalination is expected to allow as high water flux as possible while maintaining a high ion rejection rate. However, finding the optimal nanopore geometry on graphene can be challenging due to high computational and experimental cost associated with extensive experiments, i.e., there are millions of possible shapes for a pore on a 4nm _×_ 4nm graphene membrane, but evaluating the water flux and ion rejection of a single pore using 10ns MD simulation takes roughly 36 hours on a 56-core CPU cluster. Given this time benchmark, evaluating the water desalination performance of 1000 graphene nanopores can take more than 4 years. Therefore, to design the optimal nanopore geometry for water desalination, an efficient nanopore optimization method and a fast nanopore water desalination performance predictor (performance predictor in short) are needed. Inspired by the recent success of deep learning <sup>14</sup> and reinforcement learning, <sup>15</sup> we combined the state-of-art deep reinforcement learning (DRL) algorithm with convolutional neural network (CNN) to solve this challenge. The main idea of reinforcement learning (RL) <sup>16</sup> is to train an agent to find an optimal 2 policy which maximizes the expected return in the future through actively interacting with the environment to achieve a goal. Recently, DRL, <sup>15,17</sup> which models the RL agent with artificial neural networks, has proven to be an efficient tool in material-related engineering fields, such as material design <sup>18–20</sup> and molecule optimization. <sup>21</sup> In this work, we designed and implemented an artificial intelligence framework consisting of DRL, which is capable of designing the nanopore on a single-layer graphene membrane to reach optimal water desalination performance. By a series of decisions on whether or not to remove carbon atoms and which atom to be removed, the DRL agent can eventually create a pore that allows the highest water flux while maintaining ion rejection rate above an acceptable threshold. Such precisely controlled atom-by-atom removal nanopore synthesis can be conducted by electrochemical reaction (ECR). <sup>22,23</sup> During training, the DRL agent updates the neural network weights through back-propagation from the reward given by the water desalination performance. In our case, the evaluation of desalination performance is the water flux and ion rejection rate of the nanoporus graphene generated by the DRL agent at each timestep. However, conventional methods to calculate desalination performance, like MD simulation, are too time-consuming to be implemented in our DRL model. To evaluate DRL-designed nanopores fast and accurately, we implemented a CNN-based <sup>24–27</sup> model that uses the geometry of porous graphene membrane to directly predict the water flux and ion rejection rate under certain external pressure. To this end, a ResNet <sup>27</sup> model is trained on the dataset we collected through MD simulation of water desalination using various nanoporus graphenes. With the CNN-accelerated desalination performance prediction, the DRL model can rapidly optimize graphene nanopore for water desalination. MD simulations on promising DRL-designed nanoporus graphenes prove that they have higher water flux while maintaining similar ion rejection rate comparing to the circular nanopores. Further investigation of molecular trajectories illustrates why DRL-designed nanopores outperform the conventional nano-structures and provides insights for optimal nanopore design for water desalination. 3 ### Method Figure 1: Overview of CNN accelerated DRL nanopore design model. At each timestep, the nanoporous graphene structure is transformed into geometrical features, which is fed into a performance prediction network to predict water flux and ion rejection rate. The reward is then calculated based on the predicted water flux and ion rejection. Also, the geometrical features extracted from the performance predictor are concatenated with the fingerprint and atom coordinates for the current state. Given the current graphene structure, candidate atoms are picked from those locate at the edge of the nanopore. The DRL agent constructed upon Deep Q-network takes the reward, candidate atoms, and state as input to determine the next atom to remove from the graphene. The graphene nanopore optimization framework for water desalination consists of a DRL agent incorporated with a CNN-based water desalination performance predictor (Fig. 1). At each timestep, the DRL agent generates a new nanopore by removing one atom from the graphene sheet, and the CNN model poredicts the water flux/ion rejection rate of the nanopore, such that the DRL agent can get instantaneous feedback on its action. Given the featurized information of the nanoporous graphene sheet (Morgan fingerprint, Cartesian coordinates of each atom, and geometrical features of graphene membrane from the CNN 4 model) and predicted water flux and ion rejection, the DRL agent was trained to create a pore on graphene sheet with the goal to maximize its performance in the water desalina tion process. The dataset used to train CNN performance predictor is generated by MD simulations of various nanoporus graphenes for water desalination. #### Molecular Dynamic Simulation MD simulations were conducted using LAMMPS package, <sup>28</sup> where porous graphene mem branes simulated were either created using Visual Molecular Dynamics <sup>29</sup> or automatically generated by deep reinforcement agent (samples from early stage of training). A regular sim ulation system consists of four different sections: a graphene piston that applied constant external pressure; a saline water section containing potassium chloride as solute; a single layer graphene membrane with the pore of different geometries; and a freshwater section which functioned as a reservoir of filtered water(Fig. 2a). The molarity of the saline water in this work is _∼_ 2.28 M, which is higher than normal seawater for the sake of computational efficiency. The dimension of the simulation box is approximately 4 nm _×_ 4 nm _×_ 13 nm in _x_, _y_, and _z_ direction, respectively. A periodic boundary condition was applied to all three dimensions. All water molecules in this work were simulated using SPC/E model, <sup>30</sup> with SHAKE <sup>31</sup> algorithm to constrain the bond length and angles. Lennard-Jones (LJ) potentials (Supple mentary Information Table S1) along with long-range Coulombic electrostatics potentials were adopted as interatomic potentials in the MD simulation. The cutoff for the interatomic potentials was set to be 12 A. <sup>�</sup> Lorentz-Berthelot rules were employed for the calculation of LJ potentials between different kinds of atoms. Particle-particle particle-Mesh (PPPM) Ewald sovler <sup>32</sup> with 0.005 root-mean-squared error was used for long-range Coulombic po tential correction. The porous graphene membrane and piston were each regarded as an entity during the simulation (internal interatomic potentials were not calculated) in order to reduce the computational cost. 5 In the first stage of each individual simulation, the internal energy of the system was mini mized for 1000 iterations. The system then ran for 5 ps under the _NPT_ (isothermal-isobaric) ensemble at 300 K after the velocities of molecules were initialized based on Gaussian distri bution. After the equilibrating, the system under _NPT_ ensemble, the system was switched to _NV T_ (canonical) ensemble to run for another 10 ns. The temperature was maintained at 300 K by Nos´e-Hoover thermostat <sup>33,34</sup> with a time constant of 0.5 ps. At this stage, a _z_ -direction constant external pressure of 100 MPa was applied on saline water by the piston to mimic the reverse osmosis process in water desalination. Since the relationship between water flux and external pressure in reverse osmosis process was generally linear, <sup>9,11–13</sup> the performance of pores under 100 MPa could be extrapolated to lower pressures. Therefore, we chose to run simulations under 100 MPa external pressure to rapidly collect meaningful data. Molecular trajectories of each simulation were collected every 5 ps for data processing. #### Dataset and Data Augmentation The two major performance indicators of a membrane in water desalination: water flux, and ion rejection rate, were calculated by post-processing the MD simulation trajectories. The slope of the fitted least square regression line on filtered water with respect to the simulation time curve was calculated to be the water flux of each membrane (Fig. 2b). The ion rejection rate of each membrane was calculated by dividing the number of ions in the freshwater section by the total number of ions. The total number of different simulated porous graphene is 185. Since the reward of DRL agent in our model was calculated based on the water flux/ion rejection prediction of performance predictor (Eq.1 and 2, Supplementary Information Fig.S2), highly accurate prediction must be achieved to ensure the quality of DRL training. A much larger training dataset was necessary for the optimization of CNN model. The method employed in our study to substantially increase the size of the dataset was data augmentation. <sup>35,36</sup> Given that the water desalination performance of a graphene pore depended on its size and geometry, 6 #### ? (b) Piston Saline water Membrane Fresh water (a) Original Flip Translate Flip + Translate (c) (d) Figure 2: Dataset generation using MD simulation and data processing. (a) Graphene nanoporous membrane water desalination system in MD simulation. (b) Number of filtered water molecules with respect to simulation time for pores with different number of atoms removed. The slope of the least-squared regression line of each curve is the water flux. (c) Two data augmentation techniques: flip and translation. (d) Water flux and ion rejection rate distribution of the final training dataset for predictive CNN model. Red dashed line represents a reverse sigmoid curve fitted in terms of water flux and ion rejection rate. we could assume that a flipped or translated pore on the same graphene membrane would demonstrate identical water flux/ion rejection rate of the original pore (Proven by MD simulations in Supplementary Information Fig.S3). Therefore, copies of original pores were created by being flipped along _x_ or _y_ axis and/or translating in -4A to 4 <sup>�</sup> A in <sup>�</sup> _x_ and _y_ directions (Fig. 2c). The water desalination performance of pore copies are random variable with normal distribution ( _µ_ = original pore performance, _σ_ = 1% of original pore performance). In order to improve CNN’s prediction accuracy on the performance of pores created by the DRL agent, we augmented DRL-generated pores 32 times. Among the other pores, the ones with 7 zero water flux (too small to allow water transport) were augmented 6 times, and the rest of the pores were augmented 24 times. Data augmentation was conducted using the Atomic Simulation Environment (ASE) package. <sup>37</sup> The final dataset used for CNN training contains 3937 samples (Fig. 2d). A reverse sigmoid function was fitted to the distribution of samples to show the general relationship between the water flux and ion rejection rates. #### Water Desalination Performance Predictor To facilitate the reward estimation of DRL, a CNN model was trained to make an instan taneous prediction of water flux and ion rejection rates of a specific nanoporous graphene membrane. CNN is widely known as a universal feature extractor. Given that the water desalination performance of a graphene nanopore depends on its geometrical features, CNN can be the most suitable model to recognize geometrical features and make predictions based on them. There were 2 steps in the CNN modeling, including extracting features from the ge ometry of graphene nanoporous membrane and making predictions through a fully-connected multi-layer perceptron (MLP) regression model (Fig.1). First of all, the geometrical features of a graphene nanoporous membrane is extracted to a 380 _×_ 380 pixels representation. Color was applied on top of each atom, and all geometrical features were resized to the dimension of 224 _×_ 224 pixels. The processed geometrical features was then fed into a CNN. Multi ple CNN models, including ResNet18, ResNet50, <sup>27</sup> and VGG16 <sup>26</sup> with batch normalization were benchmarked based on the mean squared error (MSE) and _R_ <sup>2</sup> of their resulting water flux/ion rejection rate predictions. An extracted feature vector with dimension of 1000 was output from the CNN model. Finally, given the feature vector, the MLP was able to make predictions of flux and ion rejection rates. The MLP used in this work consisted of 2 layers with 256 and 64 neurons in the first and second layer, respectively. A residual block <sup>27</sup> and ReLU <sup>38</sup> activation function were added after each layer of MLP. Two CNN models were trained: one for the prediction of water flux, and the other for ion rejection rate. We compared the performance of CNN-based deep learning models with XGBoost, <sup>39</sup> a 8 widely-used shallow machine learning model, was also trained to predict the water flux/ion rejection rate. The advantage of XGBoost model is that it requires much less of time for training compared to CNN. Before the training of XGBoost model, the graphene membrane was featurized into one-hot-encoded Morgan fingerprint <sup>40</sup> vector of dimension 1024 using RDKit package, <sup>41</sup> with a cutoff distance of 5A. <sup>�</sup> The Morgan fingerprint vector was then fed in the XGBoost regression model as input. A random search was conducted on the hyperparameter grid (Supplementary Information Table S2) for model optimization. In training the CNN models, we used gradient-based Adam <sup>42</sup> optimizer with the learning rate 0 _._ 0001 and 0 _._ 001 for pretrained convolutional layers and the MLPs, respectively. To evaluate the performance of each model, the whole dataset was split into a training set and a test set with the ratio of 4:1. All models were trained only on the training set and tested on the test set. Raw values of water flux and ion rejection rate were standardized before fed into prediction models for training. CNN models were trained for 600 epochs, and the early stopping threshold of the XGBoost model was set as 1000 rounds. The model with the best performance was selected to be retrained on the whole dataset and utilized in the DRL framework. #### DRL Nanopore Optimization Agent Our goal was to design the optimal geometry of graphene nanopore for energy-efficient water desalination, which simultaneously demanded high flux and high ion rejection under certain external pressure. In order to optimize the nanopore, an agent was expected to remove atoms sequentially until a desired pore geometry was developed. To this end, the agent was set to interact with nanoporous graphene in a sequence of actions _at_, states _st_, and rewards _rt_ within an episode of length _T_ . The goal of the agent was to select the action such that it could maximize the future discounted return _Rt_ = <sup>�</sup> _t_ <sup>_T_</sup> =1 <sup>_γt−_</sup> <sup>1</sup> <sup>_rt_</sup> <sup>in</sup> <sup>the</sup> <sup>finite</sup> <sup>Markov</sup> <sup>decision</sup> process (MDP) setting. In our case, we set the discount factor _γ_ to be 1. At timestep _t_, given the nanoporous graphene _Gt_, the agent observed the state _st_, which 9 was composed of Morgan fingerprint, <sup>40</sup> coordinates of all the atoms, along with CNN extracted graphene geometrical features. The graphene geometry _gt_ <sup>_′_</sup> <sup>was</sup> <sup>fed</sup> <sup>into</sup> <sup>the</sup> <sup>flux</sup> and ion rejection predictor, respectively. The geometrical features were the concatenation of last layer before output of the performance predictors. Once an atom was removed, its coordinate was set to the origin since MLP required a homogeneous input dimension. The predicted flux _ft_ and ion rejection _it_ were leveraged to compute the reward signal _rt_ for the agent, as given in Eq. 1 and Eq. 2: _<u>K −</u>_ _<u>A</u>_ _σ_ ( _x_ ) = _A_ + ( _C_ + _Qe_ <sup>_−Bx_</sup> ) <u>1</u> (1) _ν_ <sup>_,_</sup> _rt_ = _αft_ + _σ_ ( _it_ ) _−_ _σ_ (1) _,_ (2) where _σ_ ( _·_ ) is the generalized logistic function <sup>43</sup> and _α_ is the coefficient for flux term. In our setting, _α_ was set to be 0 _._ 01, and _A_ = _−_ 15 _,_ _K_ = 0 _,_ _B_ = 13 _,_ _Q_ = 100 _,_ _ν_ = 0 _._ 01 _,_ _C_ = 1 for the logistic function. A linear term of flux reward encouraged the agent to expand nanopores, which would allow higher water flux. Since low ion rejection rate was not favored in wa ter desalination, a generalized logistic function _σ_ ( _·_ ) was leveraged to penalize ion rejection term. When _it_ was high, _σ_ ( _it_ ) was close to zero, allowing the growth of the nanopores. However, when _it_ was low, _σ_ ( _it_ ) fiercely penalized the agent by outputting a large negative value(Supplementary Information Fig.S2). Besides, an extra 0 _._ 05 reward was given to the agent when it chose to remove an atom at timestep _t_ to encourage pore growth at an early stage. Given state _st_ and reward _rt_, the agent intended to choose the action _at_ for next step. However, due to the high dimensionality of possible action space (all the atoms in the graphene fragment), it was computationally expensive for the agent to efficiently and thoroughly explore the possible actions and to learn an optimal design. Therefore, only a subset of _M_ atoms was selected as candidates _ct_ . Atoms on the edge of pore were picked based on the rank of their proximity to the pore center, if the number exceeds _M_, only the first _M_ atoms closest to the center of pore were selected. However, when the number of 10 edge atoms was less than _M_, non-edge atoms closest to the center of pore were selected as possible candidates to maintain the size of _ct_ . Given the state _st_, reward _rt_, and candidate _ct_, the agent learned to pick the action aiming to maximize future rewards. To train the agent, deep Q-learning <sup>15</sup> with experience replay was implemented. Our task only considered deterministic environment, namely given ( _s, c_ ), the pair ( _s_ <sup>_′_</sup> _, c_ <sup>_′_</sup> ) at the next time-step was unique. Based on Bellman equation, <sup>16</sup> the optimal action-value function _Q_ <sup>_∗_</sup> ( _s, c_ ) in the deterministic environment was defined as: _Q_ <sup>_∗_</sup> ( _s, c_ ) = _r_ + _γ_ max _Q_ <sup>_∗_</sup> ( _s_ <sup>_′_</sup> _, c_ <sup>_′_</sup> ) (3) _c_ <sup>_′_</sup> To model the Q function, the Q-network parameterized by _θ_ and target network parameter ized by _θ_ <sup>_′_</sup>, two fully connected networks with the identical architecture were built. During training, only the parameters _θ_ in the Q-network were updated through backpropagation from loss function. The parameters _θ_ <sup>_′_</sup> in the target network were updated with _θ_ every 10 steps and are kept fixed otherwise. The input to the network was the pair of graphene state and action candidates, ( _s, c_ ), and the output was the Q values of all the actions in the candidate. The agent then picked the action with the highest Q value. In addition, the agent’s experience ( _s, c, r, s_ <sup>_′_</sup> ) in the episodes were stored to a replay buffer _D_, <sup>15</sup> such that the experience can be leveraged to update the network parameters multiple times. During training, a mini-batch of samples was drawn uniformly at random from the replay buffer ( _s, c, a, r, s_ <sup>_′_</sup> ) _∼_ _U_ ( _D_ ). The loss function (Eq. 4) measured the difference between the target Q value _Q_ <sup>_∗_</sup> ( _s_ <sup>_′_</sup> _, c_ <sup>_′_</sup> ; _θi_ <sup>_′_</sup> <sup>)</sup> <sup>and</sup> <sup>the</sup> <sup>prediction</sup> <sup>of</sup> <sup>current</sup> <sup>Q</sup> <sup>network</sup> <sup>_Q_</sup> <sup>(</sup> <sup>_s, c_</sup> <sup>;</sup> <sup>_θi_</sup> <sup>):</sup> _i_ <sup>_′_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_Q_</sup> <sup>(</sup> <sup>_s, c_</sup> <sup>;</sup> <sup>_θi_</sup> <sup>)</sup> �2 <sup>�</sup> (4) _Li_ ( _θi_ ) = E( _s,c,r,s′_ ) _∼U_ ( _D_ ) �� _r_ + _γ_ max max _Q_ ( _s_ <sup>_′_</sup> _, c_ <sup>_′_</sup> ; _θi_ <sup>_′_</sup> _a_ <sup>_′_</sup> In our setting, we use Adam optimizer <sup>42</sup> with learning rate 0 _._ 001. The replay buffer is of capacity 10000 and batch size is set to 128. 11 ### Results The mean squared error (MSE) and coefficient of determination ( _R_ <sup>2</sup> ) are used as metrics to evaluate the performance predictions of models. The water flux and ion rejection labels are standardized before fed into the property prediction models. Thus the metrics tabulated are based on standardized water flux or ion rejection rate(Table 1). Since the accuracy of per formance predictor directly influence how accurately the DRL agent is rewarded/penalized during training, the model with least MSE and highest _R_ <sup>2</sup> values was chosen to be used for reward estimation. ResNet <sup>27</sup> significantly outperformed other models on both metrics, and the fined-tuned ResNet50 model reaches the highest accuracy in predicting both water flux and ion rejection rate. Therefore, a ResNet50 (retrained using the whole dataset) is used to predict the water desalination performance of various nanoporous graphenes to accelerate the DRL training. Table 1: Performance of different models for graphene property prediction. Values based on standardized water flux/ion rejection. <u>Model</u> <u>Flux</u> <u>MSE</u> <u>Flux</u> _<u>R</u>_ <sup><u>2</u></sup> <u>Ion</u> <u>rejection</u> <u>MSE</u> <u>Ion</u> <u>rejection</u> _<u>R</u>_ <sup><u>2</u></sup> XGBoost <sup><u>39</u></sup> 0.011 0.988 0.008 0.992 VGG16 <sup>26</sup> 0.0448 0.957 0.0156 0.985 ResNet18 <sup>27</sup> 0.0024 0.998 0.0039 0.996 <u>ResNet50</u> <sup>27</sup> <u>0.0022</u> <u>0.998</u> <u>0.0038</u> <u>0.996</u> We trained the DRL agent with 10 random seeds to generate various graphene nanopores. In the DRL agent training processes with different random seeds (Fig.3), the red curves indicate mean values and the blue shadows represent standard deviations. The accumulated reward for each episode increases during training the DRL agent (Fig. 3a). Initially the policy is noisy and the accumulated rewards are low, because the DRL agent has not yet learned to stop expanding the pore before receiving enormous penalty for low ion rejection rate. During the training, the DRL agent gradually learns a stable policy through maximizing the rewards (balancing the trade-off between water flux and ion rejection rate).The performance of DRL agent after 2000 episodes of training is demonstrated in Fig. 3(b)-(e). The DRL 12 (a) (b) (c) (d) Step: 0 Step:10 Step: 20 Step: 30 Step: 40 Step: 50 (e) Step: 60 Step: 70 Step: 80 (f) Figure 3: Training results for 10 DRL agents. (a) Summation of reward in each timestep vs. episode, where the red line is the running average of the reward with window size 21 and the blue shadow represents the standard deviation. (b) Summation of reward in each timestep vs. timestep. (c) Number of removed atoms vs. timestep. (d) Predicted water flux vs. timestep. (e) Predicted ion rejection vs. timestep. Fig. 3(b)-(e) show the results of DRL agents after trained for 2000 episodes, where the red line indicates the mean and the blue shadow is the standard deviation. (f) Evolution of a graphene nanopore designed by DRL agent. 13 agent generates nanopore which brings positive reward at each timestep, and the agent also automatically learns to stop enlarging the nanopore to avoid low ion rejection rate (Fig. 3b and 3c). For example, the evolution of a DRL generated pore (Fig. 3f, animated in Supplementary Movie) shows that DRL stops removing atom from the edge of graphene nanopore after 50th timestep, because it determines that higher water flux reward brought by further removing atoms is not worth the penalty for low ion rejection rate. Based on the prediction of the performance predictor, the DRL generated nanoporus graphenes have averaged _∼_ 40 # _/_ ns water flux and _∼_ 96% ion rejection rate (Fig. 3d and 3e). 38.59 100.0 90.15 100.0 (b) 85.64 301.97 259.21 150.14 20.80 123.06 83.33 154.08 46.22 0.00 369.89 (a) 50.35 73.42 0.6 97.73 Figure 4: (a) T-SNE <sup>44</sup> visualization of features extracted from water flux prediction model. (b) T-SNE <sup>44</sup> of features extracted from ion rejection rate prediction model. Black colored are DRL generated membranes and blue ones are from training dataset. The collection of both DRL generated nanoporous graphene membranes (7999 samples) and membranes in the training dataset (3937 samples) is visualized using T-SNE <sup>44</sup> algorithm (Fig. 4a and 4b). T-SNE is a dimensionality reduction tool that is capable of mapping high dimensional data to lower-dimension form while preserving the similarities between data points. In another words, membranes that are more similar to each other will have a higher tendency of being clustered. In this work, using CNN extracted features from each graphene 14 membrane, T-SNE successfully clustered samples with similar water flux or ion rejection. This result indicates that features extracted from CNN models have a strong correlation with the water flux and ion rejection rate. The water desalination performances of all nanopores (DRL generated and training dataset) are compared in Fig. 5a. It is worth noting that the process of generating 7999 nanopores using DRL and predicting their water flux/ion rejection rate takes less than a single week; however, evaluating the performance of the same amount of nanopores using MD simulation will take _∼_ 33 years (average 36 hours on each sample, using one 56-core CPU node). Among the nanopores with the same level of ion rejection rate, some nanopores discovered by DRL allow much higher water flux. One common feature shared by those high-performance nanopores is the semi-oval geometry with rough edges. We set 90% ion rejection rate as the threshold to determine if a nanopore can effectively reject ions. The water flux histogram (Fig. 5b) shows that given the baseline ion rejection rate as 90%, DRL can extrapolate from the training dataset and discover graphene nanopores that generally allow higher water flux. Further MD simulations are conducted with DRL generated membranes that show high predicted performances to evaluate how the DRL helps in optimizing graphene nanopore for water desalination (Simulation process recorded in Supplementary Movie). Although DRL generated pores generally have lower water flux compared with circular pores with the same area, they have much higher ion rejection rate (Fig. 5c, 90% threshold of ion rejection rate is marked by a red dashed line). For example, when the pore area is 113A <sup>�</sup> 2, DRL generated nanopore maintained over 90% ion rejection rate while the circular pore rejects only approximately 65% of ions. A pore with high water flux but a very low ion rejection rate is not desirable in water desalination application. Moreover, the comparison between 113A <sup>�</sup> 2 DRL generated nanopore with 88A�2 circular pore shows that DRL generated pore can reject more ions when achieving same water flux: they both have approximately 125 # _/_ ns water flux while 113A <sup>�</sup> 2 DRL generated pore can reject approximately 7% more ions. The 15 (a) (c) (b) Circular, 88 Å <sup>2</sup> DRL, 113 Å <sup>2</sup> (d) Circular DRL (e) Figure 5: (a) Predicted water flux (ns <sup>_−_</sup> <sup>1</sup> ), and ion rejection rate (%) of all graphene nanopores (7999 DRL generated + 3937 in training dataset). Zoom-in window shows the geometries of high-performance nanopores. (b) Histogram of water flux of nanopores with _>_ 90% ion rejection rate. (c) Comparison of water desalination performance (under 100 MPa pressure) of circular and DRL generated graphene nanopores. Each data point is obtained by averaging the ion rejection and water flux of 4 MD simulations. The error bars represent one standard deviation. (d) Distribution of water molecules (aqua blue) and ions (red) when they are inside of the nanopores (Left: circular, area = 88A <sup>�</sup> 2; Right: DRL generated, area = 113A�2). (e) Schematic showing how ions are blocked by DRL generated pore due to the steric effect. Ions with their hydration shell (Blue dashed circle) are too large to pass through the corner area (Red dashed circle) in the DRL generated pore, thus rendering that area an ion-free zone 16 comparison between simulation results proves that DRL tends to prioritize the ion rejection rate over water flux, which makes it capable of maximizing the water flux of nanopores while maintaining a valid ion rejection rate. To gain deeper understanding about the reason behind the high ion rejection rate of DRL generated pores, distribution of water molecules and ions inside of 113A <sup>�</sup> 2 DRL generated pore and 88A <sup>�</sup> 2 circular pore have been visualized (Fig. 5d). From the ion distribution (marked by red dots), we can observe that ions can traverse the circular pore evenly through the entire central area of the pore. The distributions of water molecules (marked by aqua blue color) and ions in the circular pore are in a homogeneous pattern. However, the corners inside of DRL generated nanopore are small enough to block the passage of ions while being large enough to accommodate the transport of water molecules. With the knowledge that ions are covered by hydration shell during the transport through nanopore, it can be seen that ion free zones (corners) inside of DRL generated nanopore obstruct the traversing of ions with hydration shell by steric effect (Fig. 5e). This is the reason why high-performance nanopores (zoom-in Fig. 5a, more high-performance DRL-generated pores shown in Supplementary Information Fig.S5) all have rough edges. Discovers and utilizes this special geometry, DRL designs nanopores that can reject most ions while allowing high water transport. ### Conclusion In this work, we propose a graphene nanopore optimization framework based on the DRL agent accelerated by the water desalination performance predictor. In particular, we fo cus on the optimal design of nanoporous graphene for water desalination. The DRL agent takes the current graphene geometrical features and the candidate atoms as inputs to deter mine which atom to remove at each timestep. Trained with the DQN algorithm, the agent learns to generate nanopores that allow high water flux while maintaining high ion rejec tion. ResNet50, a widely used CNN model, is trained on a nanoporous graphene dataset 17 to instantly predict the water flux and ion rejection rate under certain pressure. Such pre diction by the ResNet50 enables the real-time interaction between the DRL agent with the graphene nanopores, as well as the online optimization of the DRL agent. CNN accelerated DRL training significantly expedites the exploration of graphene nanopores: 7999 different nanopores are designed and evaluated for water desalination performance during one-week training of DRL. Evaluating the same amount of graphene nanopores using MD simulation can take approximately 33 years with a 56-cores CPU cluster. When we set the baseline ion rejection rate to be 90%, DRL shows the capability of extrapolating from existing training dataset to discover nanopore with higher water flux. Further MD simulations confirm that DRL generated nanopores outperform circular nanopores in term of ion rejection rate when they have approximately the same water flux. The better water desalination performance of DRL generated pores can be attributed to DRL’s utilization of rough edges and small corners to block ions with hydration shell. In conclusion, DRL shows the capability of designing op timal graphene nanopores for water desalination. Moreover, with only minor modification, this framework can be directly extended to many other fields concerning nanopore design. With a well-trained machine learning property predictor, the DRL can automatically learn to design the optimal material structure effectively and efficiently. ### Acknowledgement The authors thank the supercomputing resource Arjuna provided by the Pittsburgh Super computing Center (PSC). This work is supported by the start-up fund provided by CMU Mechanical Engineering. 18 ### References (1) Jiang, D.-e.; Cooper, V. R.; Dai, S. Porous graphene as the ultimate membrane for gas separation. _Nano_ _letters_ 2009, _9_, 4019–4024. (2) Li, H.; Song, Z.; Zhang, X.; Huang, Y.; Li, S.; Mao, Y.; Ploehn, H. J.; Bao, Y.; Yu, M. Ultrathin, molecular-sieving graphene oxide membranes for selective hydrogen separation. _Science_ 2013, _342_, 95–98. (3) Kim, H. W.; Yoon, H. W.; Yoon, S.-M.; Yoo, B. M.; Ahn, B. K.; Cho, Y. H.; Shin, H. J.; Yang, H.; Paik, U.; Kwon, S., et al. Selective gas transport through few-layered graphene and graphene oxide membranes. _Science_ 2013, _342_, 91–95. (4) Wang, Y.; Shi, Z.; Huang, Y.; Ma, Y.; Wang, C.; Chen, M.; Chen, Y. Supercapacitor devices based on graphene materials. _The_ _Journal_ _of_ _Physical_ _Chemistry_ _C_ 2009, _113_, 13103–13107. (5) Liu, C.; Yu, Z.; Neff, D.; Zhamu, A.; Jang, B. Z. Graphene-based supercapacitor with an ultrahigh energy density. _Nano_ _letters_ 2010, _10_, 4863–4868. (6) Farimani, A. B.; Min, K.; Aluru, N. R. DNA base detection using a single-layer MoS2. _ACS_ _nano_ 2014, _8_, 7914–7922. (7) Barati Farimani, A.; Dibaeinia, P.; Aluru, N. R. DNA Origami–Graphene Hybrid Nanopore for DNA Detection. _ACS_ _Applied_ _Materials_ _&_ _Interfaces_ 2017, _9_, 92–100. (8) Schneider, G. F.; Kowalczyk, S. W.; Calado, V. E.; Pandraud, G.; Zandbergen, H. W.; Vandersypen, L. M.; Dekker, C. DNA translocation through graphene nanopores. _Nano_ _letters_ 2010, _10_, 3163–3167. (9) Cohen-Tanugi, D.; Grossman, J. C. Water desalination across nanoporous graphene. _Nano_ _letters_ 2012, _12_, 3602–3608. 19 (10) Surwade, S. P.; Smirnov, S. N.; Vlassiouk, I. V.; Unocic, R. R.; Veith, G. M.; Dai, S.; Mahurin, S. M. Water desalination using nanoporous single-layer graphene. _Nature_ _nanotechnology_ 2015, _10_, 459–464. (11) Heiranian, M.; Farimani, A. B.; Aluru, N. R. Water desalination with a single-layer MoS 2 nanopore. _Nature_ _communications_ 2015, _6_, 1–6. (12) Cao, Z.; Liu, V.; Barati Farimani, A. Water Desalination with Two-Dimensional Metal– Organic Framework Membranes. _Nano_ _letters_ 2019, _19_, 8638–8643. (13) Cao, Z.; Liu, V.; Barati Farimani, A. Why Single-layer MoS2 is a More Energy Efficient Membrane for Water Desalination? _ACS_ _Energy_ _Letters_ 2020, (14) LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. _nature_ 2015, _521_, 436–444. (15) Mnih, V.; Kavukcuoglu, K.; Silver, D.; Rusu, A. A.; Veness, J.; Bellemare, M. G.; Graves, A.; Riedmiller, M.; Fidjeland, A. K.; Ostrovski, G., et al. Human-level control through deep reinforcement learning. _Nature_ 2015, _518_, 529–533. (16) Sutton, R. S.; Barto, A. G., et al. _Introduction_ _to_ _reinforcement_ _learning_ ; MIT press Cambridge, 1998; Vol. 135. (17) Mnih, V.; Kavukcuoglu, K.; Silver, D.; Graves, A.; Antonoglou, I.; Wierstra, D.; Riedmiller, M. Playing atari with deep reinforcement learning. _arXiv_ _preprint_ _arXiv:1312.5602_ 2013, (18) Popova, M.; Isayev, O.; Tropsha, A. Deep reinforcement learning for de novo drug design. _Science_ _advances_ 2018, _4_, eaap7885. (19) Karamad, M.; Magar, R.; Shi, Y.; Siahrostami, S.; Gates, I. D.; Farimani, A. B. Orbital Graph Convolutional Neural Network for Material Property Prediction. _arXiv_ _preprint_ _arXiv:2008.06415_ 2020, 20 (20) Yao, Z.; Sanchez-Lengeling, B.; Bobbitt, N. S.; Bucior, B. J.; Kumar, S. G. H.; Collins, S. P.; Burns, T.; Woo, T. K.; Farha, O.; Snurr, R. Q., et al. Inverse Design of Nanoporous Crystalline Reticular Materials with Deep Generative Models. 2020, (21) Zhou, Z.; Kearnes, S.; Li, L.; Zare, R. N.; Riley, P. Optimization of molecules via deep reinforcement learning. _Scientific_ _reports_ 2019, _9_, 1–10. (22) Russo, C. J.; Golovchenko, J. A. Atom-by-atom nucleation and growth of graphene nanopores. _Proceedings_ _of_ _the_ _National_ _Academy_ _of_ _Sciences_ 2012, _109_, 5953–5957. (23) Feng, J.; Liu, K.; Graf, M.; Lihter, M.; Bulushev, R. D.; Dumcenco, D.; Alexan der, D. T.; Krasnozhon, D.; Vuletic, T.; Kis, A., et al. Electrochemical reaction in single layer MoS2: nanopores opened atom by atom. _Nano_ _letters_ 2015, _15_, 3431–3438. (24) LeCun, Y.; Bottou, L.; Bengio, Y.; Haffner, P. Gradient-based learning applied to document recognition. _Proceedings_ _of_ _the_ _IEEE_ 1998, _86_, 2278–2324. (25) Krizhevsky, A.; Sutskever, I.; Hinton, G. E. Imagenet classification with deep convo lutional neural networks. Advances in neural information processing systems. 2012; pp 1097–1105. (26) Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. _arXiv_ _preprint_ _arXiv:1409.1556_ 2014, (27) He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. Pro ceedings of the IEEE conference on computer vision and pattern recognition. 2016; pp 770–778. (28) Plimpton, S. _Fast_ _parallel_ _algorithms_ _for_ _short-range_ _molecular_ _dynamics_ ; 1993. (29) Humphrey, W.; Dalke, A.; Schulten, K., et al. VMD: visual molecular dynamics. _Journal_ _of_ _molecular_ _graphics_ 1996, _14_, 33–38. 21 (30) Mark, P.; Nilsson, L. Structure and dynamics of the TIP3P, SPC, and SPC/E water models at 298 K. _The_ _Journal_ _of_ _Physical_ _Chemistry_ _A_ 2001, _105_, 9954–9960. (31) Ryckaert, J.-P.; Ciccotti, G.; Berendsen, H. J. Numerical integration of the cartesian equations of motion of a system with constraints: molecular dynamics of n-alkanes. _Journal_ _of_ _computational_ _physics_ 1977, _23_, 327–341. (32) Plimpton, S.; Pollock, R.; Stevens, M. Particle-Mesh Ewald and rRESPA for Parallel Molecular Dynamics Simulations. PPSC. 1997. (33) Nos´e, S. A unified formulation of the constant temperature molecular dynamics meth ods. _The_ _Journal_ _of_ _chemical_ _physics_ 1984, _81_, 511–519. (34) Hoover, W. G. Canonical dynamics: Equilibrium phase-space distributions. _Physical_ _review_ _A_ 1985, _31_, 1695. (35) Perez, L.; Wang, J. The effectiveness of data augmentation in image classification using deep learning. _arXiv_ _preprint_ _arXiv:1712.04621_ 2017, (36) Van Dyk, D. A.; Meng, X.-L. The art of data augmentation. _Journal_ _of_ _Computational_ _and_ _Graphical_ _Statistics_ 2001, _10_, 1–50. (37) Larsen, A. H.; Mortensen, J. J.; Blomqvist, J.; Castelli, I. E.; Christensen, R.; Du�lak, M.; Friis, J.; Groves, M. N.; Hammer, B.; Hargus, C., et al. The atomic sim ulation environment—a Python library for working with atoms. _Journal_ _of_ _Physics:_ _Condensed_ _Matter_ 2017, _29_, 273002. (38) Nair, V.; Hinton, G. E. Rectified linear units improve restricted boltzmann machines. ICML. 2010. (39) Chen, T.; Guestrin, C. Xgboost: A scalable tree boosting system. Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining. 2016; pp 785–794. 22 (40) Rogers, D.; Hahn, M. Extended-connectivity fingerprints. _Journal of chemical informa-_ _tion_ _and_ _modeling_ 2010, _50_, 742–754. (41) Landrum, G. Rdkit: Open-source cheminformatics software. _GitHub_ _and_ _SourceForge_ 2016, _10_, 3592822. (42) Kingma, D. P.; Ba, J. Adam: A method for stochastic optimization. _arXiv_ _preprint_ _arXiv:1412.6980_ 2014, (43) Richards, F. A flexible growth function for empirical use. _Journal_ _of_ _experimental_ _Botany_ 1959, _10_, 290–301. (44) Maaten, L. v. d.; Hinton, G. Visualizing data using t-SNE. _Journal of machine learning_ _research_ 2008, _9_, 2579–2605. (45) Dulac-Arnold, G.; Evans, R.; van Hasselt, H.; Sunehag, P.; Lillicrap, T.; Hunt, J.; Mann, T.; Weber, T.; Degris, T.; Coppin, B. Deep reinforcement learning in large discrete action spaces. _arXiv_ _preprint_ _arXiv:1512.07679_ 2015, (46) Lalitha, M.; Nataraj, Y.; Lakshmipathi, S. Calcium decorated and doped phosphorene for gas adsorption. _Applied_ _Surface_ _Science_ 2016, _377_, 311–323. (47) Sheberla, D.; Bachman, J. C.; Elias, J. S.; Sun, C.-J.; Shao-Horn, Y.; Dinc˘a, M. Con ductive MOF electrodes for stable supercapacitors with high areal capacitance. _Nature_ _materials_ 2017, _16_, 220–224. (48) Barati Farimani, A.; Aluru, N. R. Spatial diffusion of water in carbon nanotubes: from fickian to ballistic motion. _The_ _Journal_ _of_ _Physical_ _Chemistry_ _B_ 2011, _115_, 12145– 12149. (49) Joung, I. S.; Cheatham III, T. E. Determination of alkali and halide monovalent ion pa rameters for use in explicitly solvated biomolecular simulations. _The_ _journal_ _of_ _physical_ _chemistry_ _B_ 2008, _112_, 9020–9041. 23 (50) Bradski, G. The OpenCV Library. _Dr._ _Dobb’s_ _Journal_ _of_ _Software_ _Tools_ 2000, 24 ### Lennard-Jones potentials for MD simulations The 12-6 Lennard-Jones (LJ) potentials used in MD simulations for generating dataset are tabulated as below. Force field between different types of atoms are calculated using Lorentz Berthelot rule. Table S1: 12-6 Lennard-Jones potentials <u>Interaction</u> _<u>σ</u>_ <u>(A)</u> <sup><u>�</u></sup> _<u>ϵ</u>_ <u>(kcal</u> <u>mol</u> <sup>_−_</sup> <sup>1</sup> <u>)</u> C-C <sup><u>48</u></sup> 3.3900 0.0692 O-O <sup>48</sup> 3.1656 0.1554 H-H <sup>48</sup> 0.0000 0.0000 K-K <sup>49</sup> 2.8384 0.4297 <u>Cl-Cl</u> <sup>49</sup> <u>4.8305</u> <u>0.0128</u> ### Details of XGBoost Regression Model For XGBoost, <sup>39</sup> 100 iterations of random search with 5-fold cross validation was applied on the hyperparameter grid tabulated as below. The hyperparameters of best XGBoost models for both water flux and ion rejection rate prediction are also recorded. Table S2: Hyperparameter grid <u>Hyperparameter</u> <u>Value</u> learning rate _α_ 0.01, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3 max depth 3, 5, 7, 9, 10, 12, 15 min child weight 1, 2, 3, 4, 5, 6 gamma _γ_ 0.0, 0.1, 0.2, 0.3, 0.4 <u>colsample</u> ~~<u>b</u>~~ <u>ytree</u> <u>0.3,</u> <u>0.5,</u> <u>0.7,</u> <u>0.9,</u> <u>1,</u> <u>1.2</u> Table S3: Best hyperparameters for XGBoost models <u>Best</u> <u>hyperparameter</u> <u>Water</u> <u>flux</u> <u>model</u> <u>Ion</u> <u>rejection</u> <u>model</u> learning ~~r~~ ate _α_ 0.2 0.1 max ~~d~~ epth 7 12 min ~~c~~ hild ~~w~~ eight 1 5 gamma _γ_ 0.0 0.0 <u>colsample</u> <u>bytree</u> <u>0.3</u> <u>1</u> 25 ### Details of DRL agent Deep Q network <sup>15,17</sup> is utilized to model the DRL agent, which takes as input the graphene state representation and candidate atoms(Fig. S1). The state representation is consisted of three components: graphene geometrical features, Morgan finger fingerprint <sup>40</sup> and atom coordinates. The geometrical features are extracted from both the water flux and ion rejec tion prediction CNN models. <sup>26,27</sup> All the three components are mapped to 64-dimensional vectors via MLPs. Besides, the candidate atoms are represented with a 608-dimensional vector where each element corresponds one removable atom. Each entry of the vector is set to one if the corresponding atom is a candidate and zero elsewhere, and is mapped to a 16-dimensional representation through an embedding layer. The embedding is then mapped to a 64-dimensional vector and fed into a MLP in combination of state representations to predict the Q values of all the candidate actions. During test time, the action with the max imum Q value is executed to interact with the graphene. However, to encourage exploration of the DRL agent during training, the action is selected based on _ϵ_ -greedy. <sup>16</sup> Namely, with probability _ϵ_, the agent will randomly pick an action from the candidates. In our setting, _ϵ_ is initially set to 0 _._ 9 and decayed to 0 _._ 05 linearly after 1000 episodes. Also, the generalized logistic function <sup>43</sup> utilized in the reward function for penalizing ion rejection is illustrated in Fig. S2. When the ion rejection is greater than 95%, the function returns a near-zero value. Therefore, given that DRL agent receives positive reward for removing atoms and generating water flux, it tends to aggressively remove atoms at the beginning of each episode. While the ion rejection drops below 90%, the function gives a harsh penalty to the agent. Such reward function strongly discourage the agent from creating a nanoporus graphene with low ion rejection rate, which is inefficient in real-world water desalination. 26 Figure S1: Overview of deep Q network architecture. The numbers below each box illustrates the dimensions. (a) (b) Figure S2: (a) Water flux vs. corresponding reward value. (b) Ion rejection vs. corresponding reward value ### Comparison between original and augmented pores MD simulations are run with a human-designed pore and its flip-translate augmented version. Each data point is calculated by averaging water flux and ion rejection rate of 4 simulations. Error bar represent the value of one standard deviation. The water flux difference between the original pore and augmented pore is 3.17 #/ns (approximately 2%) and the ion rejection rate difference is 0.6%. All differences are within the error bar of the result of 4 simulations. 27 From this result, we can conclude that the augmentation method implemented in this work is valid. Figure S3: Comparison between the water desalination performance of original humandesigned graphene nanopore (left, blue membrane) and its augmented copy version (right, black membrane). The performance difference between them is minimum and within the error bar. ### Pore area calculation The area of graphene nanopores mentioned in this work is calculated using computer vision method (OpenCV package <sup>50</sup> ). For each nanoporous graphene membrane, all of its atoms which locate in the area of 0A <sup>�</sup> _≤_ _x_ _≤_ 40A <sup>�</sup> and 0A <sup>�</sup> _≤_ _y_ _≤_ 40A <sup>�</sup> are plotted with radius as _σ_ (3.39A <sup>�</sup> used in this paper) of carbon (Fig. S4a). The graphene membrane image dimension in pixel is 360 _×_ 360. The OpenCV package is then used to detect the pore from the image (Fig. S4b), and the area of the pore in terms of pixel is calculated. Further, The area of pore in terms of A <sup>�</sup> 2 can be calculated using the ratio: 1 pixel = (40 _/_ 360)2 A�2. 28 (a) (b) Figure S4: (a) Plot nanoporous graphene membrane (b) Detecting pore area and calculate its size using computer vision method ### Compilation of DRL generated pores with high pre- dicted performance The compilation of 64 DRL generated pores with predicted water flux _>_ 120 #/ns and ion rejection rate _>_ 90% are demonstrated in (Fig. S5). One common trait of those grpahene nanopores is that they tend to have narrow cavities. Those narrow cavities in pore allow the passage of water molecules but are small enough to restrict the transport of ions along with their hydration shell. DRL gradually learned the importance of narrow cavity and applied it during the optimization of graphene nanopores. 29 Figure S5: DRL generated pores with predicted water flux _>_ 120 #/ns and ion rejection rate _>_ 90%. 30

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.