Abstract
The aim of computational molecular design is the identification of promising hypothetical molecules with a predefined set of desired properties. We address the issue of accelerating the material discovery with state-of-the-art machine learning techniques. The method involves two different types of prediction; the forward and backward predictions. The objective of the forward prediction is to create a set of machine learning models on various properties of a given molecule. Inverting the trained forward models through Bayes’ law, we derive a posterior distribution for the backward prediction, which is conditioned by a desired property requirement. Exploring high-probability regions of the posterior with a sequential Monte Carlo technique, molecules that exhibit the desired properties can computationally be created. One major difficulty in the computational creation of molecules is the exclusion of the occurrence of chemically unfavorable structures. To circumvent this issue, we derive a chemical language model that acquires commonly occurring patterns of chemical fragments through natural language processing of ASCII strings of existing compounds, which follow the SMILES chemical language notation. In the backward prediction, the trained language model is used to refine chemical strings such that the properties of the resulting structures fall within the desired property region while chemically unfavorable structures are successfully removed. The present method is demonstrated through the design of small organic molecules with the property requirements on HOMO-LUMO gap and internal energy. The R package iqspr is available at the CRAN repository.
Electronic supplementary material
The online version of this article (doi:10.1007/s10822-016-0008-z) contains supplementary material, which is available to authorized users.
Keywords: Inverse-QSPR, Molecular design, Bayesian analysis, Small organic molecules, Natural language processing, SMILES
Introduction
Computational molecular design has a great potential to promote enormous savings in time and cost in the discovery and development of functional molecules and assembles including drugs, dyes, solvents, polymers, and catalysis. The objective is to computationally create promising molecules that exhibit desired properties of various kinds, simultaneously. For instance, the chemical space of small organic molecules is known to consist of more than candidates. The problem entails a considerably complicated multi-objective optimization where it is impractical to fully explore the vast landscape of structure-property relationships. In general, the molecular design process involves two different types of prediction; the forward prediction is aimed at predicting physical, chemical and electric properties of a given molecular structure, and the backward prediction is to inversely identify appropriate molecular structures with the given desired properties. While the former design process is referred to as the quantitative structure-property relationship (QSPR) analysis, the latter is known as the inverse-QSPR analysis [1–9]. In this study, a Bayesian perspective is employed to unify the forward and backward prediction processes. Therefore, the present method is called the Bayesian molecular design.
In cheminformatics or an emerging new research field called materials informatics, there have been extensive studies on the forward prediction; however, there has been considerably less progress made in the backward prediction. An obvious approach to the inverse problem is the use of combinatorial optimization techniques. The objective is to minimize the difference between given desired properties and those attained by the designed molecules. Some previous studies tackled this issue with genetic algorithms (GAs) [2, 4–7, 10–13] and molecular graph enumeration [8, 9, 14]. Graph enumeration is generally less effective due to the combinatorial complexity of the design space. To narrow down the candidates, several ways to use a restricted class of molecular graphs have been investigated [9, 14]. Using GAs [15], which have been more intensively studied, searches for optimal or suboptimal designs by successively modifying chemical structures with genetic operators consisting of mutation, crossover, and selection.
The major difficulty of using a GA lies in the procedure of mutating molecules such that unfavorable structures are successfully excluded, for instance, unfavorable and/or unrealistic chemical bonds such as F–N and C=O=C. This issue is common to the graph enumeration. To avoid the emergence of unfavorable structures, exclusion rules were employed in some studies, particularly those aimed at the design of drug-like molecules [16, 17]. However, such rules might be incomprehensive, and it is impractical to establish a general rule of chemically favorable structures. A promising alternative is fragment assembly methods [4–7, 13, 18–20]. In a structure manipulation step of these methods, randomly chosen substructures are replaced by fragments of existing compounds. While the fragment assembly methods have a certain appeal, as is evident from their widespread use, they suffer from critical disadvantages: (i) the design space is restricted to possible combinations of collected fragments, (ii) the use of a vast amount of fragments entails unacceptably large computational loads to homology search in the fragment exchange operation, and (iii) mutation and crossover operations require computationally intractable graph manipulations. The proposed method circumvents all these issues.
The Bayesian molecular design begins by obtaining a set of machine learning models that forwardly predict properties of a given molecule for multiple design objectives. These forward models are inverted to the backward model through Bayes’ law, combined with a prior distribution. This gives a posterior probability distribution for the backward prediction, which is conditioned by a desired property region. Exploring high-probability regions of the posterior with the Sequential Monte Carlo (SMC) method [21], molecules that exhibit the desired properties are computationally created. The most distinguished feature of this workflow lies in the backward prediction algorithm. In this study, a molecule is described by an ASCII string according to the SMILES chemical language notation. To reduce the emergence of chemically unfavorable structures, a chemical language model is trained, which acquires commonly occurring patterns of chemical substructures by the natural language processing of the SMILES language of existing compounds. The trained model is used to recursively refine SMILES strings of seed molecules such that the properties of the resulting molecules fall in the desired property region while eliminating the creation of unfavorable chemical structures.
The key contributions of the newly proposed method are summarized below.
String-based structure refinement The string representation of molecules enables much faster structure refinements in the backward prediction than those based on graph representation.
Generator for chemically favorable structures The method is designed according to a fragment-free strategy. Structural patterns of known compounds or implied contexts of ‘chemically favorable structures’ are captured by the probabilistic model. Afterward, the resulting SMILES generator will be shown to be very effective in creating chemically plausible hypothetical molecules. The trained model serves as a substitute for a fragment library. This model also forms the prior distribution in the Bayesian analysis.
The forward and backward predictions are pipelined with the R package iqspr which is provided through the CRAN repository [22]. The present method is illustrated through the design of small organic molecules exhibiting properties within prescribed ranges of HOMO-LUMO gap and internal energy.
Methods
Outline
The objective of the backward prediction is to create a chemical structure S with p properties lying in a desired region U. The Bayesian molecular design relies on the statement of Bayes’ law, which is sometimes called the inverse law of conditional probability,
1 |
This law states that the posterior distribution is proportional to the product of the likelihood and the prior p(S). Exploring high-probability regions of the posterior, we aim to identify promising hypothetical structures S that exhibit the desired U.
Along with Eq. (1), three internal steps linking the forward and backward analyses are outlined (see also Fig. 1):
Forward prediction A set of QSPR models on the p properties is trained with structure-property relationship data. This defines the forward prediction model on the right-hand side of Eq. (1).
Prior. The prior distribution p(S) serves as a regularizer that imposes low probability masses on chemically unfavorable structures in the posterior distribution.
Backward prediction Bayes’ law inverts the forward model to the backward in which a desired property U is specified for the conditional. A Monte Carlo calculation is conducted to generate a random sample of molecules of size R according to the posterior distribution.
In this study, a chemical structure is described by a SMILES string. As will be detailed, a chemical language model defines the conditional distribution to which the current structure S is randomly modified to a new . By the machine learning of the SMILES language in tens of thousands of existing compounds, structural patterns of real molecules are compressed to the probabilistic language model. In combination with SMC, the trained model, which acquires the implicit meaning of ‘chemically unfavorable structures’, is utilized to modify SMILES strings under a given U while reducing the emergence of structures unlikely to occur. Furthermore, the trained language model serves as the prior in Eq. (1).
Forward prediction
A structure-property data set on property j is given where and consist of the ith sample. With the N observations, a QSPR model is trained by a linear regression with a d-dimensional fingerprint descriptor . To simplify the notation, the property index j is temporally omitted. The noise is independently and identically distributed according to the normal distribution . The unknown parameters consist of the coefficient vector and the noise variance . Putting the normal prior , and the inverse gamma prior on the unknowns, we derive the predictive distribution on the property Y with respect to an arbitrary input S:
where and . Here, denotes the identity matrix, and denotes the density function of the t-distribution with mean , scale and the degree of freedom . The predicted value of the property is given by the mean of the predictive distribution.
The prediction models on the p properties, (), are obtained individually from the respective training sets. We then define the likelihood in Bayes’ law with a desired property region as
2 |
For brevity, we write .
Though a simple instance of QSPR models is described here, we can exploit more advanced techniques of supervised learning such as state-of-the art deep learning or a class of the ensemble learning algorithms. When dealing with a discrete-valued property, the regression should be replaced by a classification model. This study is developed along the use of conventional fingerprints as the descriptor, but it is highly beneficial in practice to use more advanced descriptors, for example, molecular graph kernels coupled with kernel machine learning [23–25].
Chemical language model
With the SMILES chemical language, a molecule is translated to a linearly arranged string of length g. A string of the SMILES encoding rules consists entirely of symbols that indicate element types, bond types, and the start and terminal for ring closures and branching components. The start and terminal of a ring closure is designated by a common digit, ‘1’, ‘2’, and so on. A branch is enclosed in parentheses, ‘(’ and ‘)’. Substrings corresponding to multiple rings and branches can be nested or overlapped. In addition to the formal rule of SMILES, all strings are revised as ending up with the termination code ‘$ ’. Inclusion of this symbol is necessary to automatically terminate a recursive string elongation process. For instance, once a string pattern ...CCC=O is present, any further elongation is prohibited and should be terminated at once by appending ‘$ ’. In addition, digits indicating the starts and terminals of rings are represented by ‘&’. The revised representation rule is listed in Table 1. Appendix 1 in Supplementary Materials provides an illustrative example.
Table 1.
Type | Original | Modified |
---|---|---|
Start of a ring closure | n | & |
End of a ring closure | n (same to the start) | & for the ith ring terminators to the last of a string |
Bond followed by atom A | =A (double), #A (triple) | =A or #A form a single character |
Terminal character of a molecule | N/A | $ |
String in a square bracket | [abcde] | [abcde] form a single character |
With no loss of generality, the prior p(S) can be expressed as the product of the conditional probabilities:
3 |
The occurrence probability of character depends on the preceding . In general, the non-canonical SMILES encodes a chemical structure into many equivalent forms that correspond to different atom orderings. We treat such structurally equivalent strings as different S.
The fundamental idea of the chemical language modeling is as follows: (i) the conditional probability is estimated with the observed frequencies of substring patterns in known compounds, and (ii) the trained model is anticipated to successfully learn an implied context of the chemical language. For a given substructure , the model is used to modify the rest of the components: until the termination code appears, subsequent characters are recursively added according to the conditional probabilities while putting the acquired chemical reality into the resulting structure.
The SMILES generator should create grammatically valid strings. In particular, we focus on two technical difficulties to be addressed, which are relevant to the rules of grammar on the expression of rings and branching components.
-
(i)
Unclosed ring and branch indicators must be prohibited. For instance, any strings extended rightward from a given should contain two closing characters, ‘)’, somewhere in the rest.
-
(ii)
Neighbors in a chemical string are not always adjacent in the original molecular graph. Consider a structure expressed by CCCCC(CCCCC)C. The substring in the parentheses is a branch of the main chain. The main chain consists of six tandemly arranged carbons that are split into before and after the branch. In this case, the occurrence probability of the final character should be affected more by characters in the main chain than those in the branch. In other words, the conditional probability of should depend selectively on a preferred subset of the conditional according to the overall context of and . The same holds when one or more rings appear in the conditional, e.g., c1ccc2ccccc2c1C.
To remedy these issues, the conditional probability is modeled as
4 |
where denotes the indicator function which takes value one if the argument is true and zero otherwise. One of the 20 different models () becomes active when the state of the preceding sequence falls into any of the mutually exclusive “conditions” (). The 20 () conditions are classified according to the presence or absence of unclosed branches and the numbers of unclosed ring indicators in . For instance, if contains two unclosed ring indicators, e.g., CCCC(CC(, the corresponding models should be probabilistically biased toward producing the two terminal characters ‘)’ in subsequent characters. In addition, the substring selector is introduced for the treatment of the second problem. The definition is as follows:
Contraction Suppose that contains a substring enclosed by the closed parentheses such that t itself is never enclosed by any other closed parentheses. In other words, t is a substring inside of the outermost closed parentheses. The substring is then reduced to be by removing all characters in t except for the first character, . In other words, is the character that is the right-hand neighbor of the opening ‘(’ of the outermost closed parentheses.
Extraction The selector outputs the last characters in the reduced string of .
The substring selector is illustrated with several examples in Fig. 2. This operation reduces a substring in any nested closed parentheses to a single character that indicates the atom adjacent to the branching point. The occurrence probability of is then conditioned by its preceding characters in the reduced strings that correspond to neighbors in the molecular graph.
Under the maximum likelihood principle, the conditional probability for in Eq. 4 is estimated by the relative frequency of co-occurring n-gram, and , in training instances of known compounds. Let denote the count of the n-grams in which the conditional string is in condition . We then conduct the back-off procedure [26] separately with all possible substrings whose the conditionals belong to :
where denotes the set of all possible characters. This is a recursive formula across . In the upper formula, the estimate is given by the relative frequency of each instance of an n-gram in the -conditioned substrings. If there are no instances, the estimate at the previous -gram is substituted as in the lower formula.
Backward prediction
The objective of the backward prediction is to generate chemical strings from the posterior distribution in Eq. (1), conditioned on a desired property region U. The forward models and the trained chemical language model define the posterior as in Eqs. (2) and (3). The SMC algorithm that we developed is shown in Algorithm 1.
In general, diverse molecules exhibit significantly high probabilities in the posterior. In order to better capture the diversity of promising structures, we create a series of tempered target distributions, (), with a non-decreasing sequence of inverse temperatures .
The likelihood function becomes flatter as the inverse temperature decreases, and vice versa. The algorithm begins with a small . The series of target distributions monotonically approaches as the iteration number increases, and bridges to the posterior at , .
At the initial step , R structures are created by some means. For each subsequent t, a currently obtained structure is mutated randomly to () according to a structure manipulation model with a set of parameters, , as detailed below. A new population is then produced by conducting the resampling of with the selection probabilities, (), which involve the current tempered distribution . The greater the likelihood a mutated structure achieves, the higher the chance it survives and the more the offspring it leaves. In general, this continues until the population has been updated hundreds or thousands of times. The present algorithm is essentially the same as a GA. The crucial difference lies in the mutation operator .
The structure manipulation model is designed with the trained SMILES generator as summarized below.
-
(i)
Draw a uniform random number . If S is grammatically correct and z is less than the reordering execution probability (=0.2), reorder the string of length g, otherwise set the unprocessed string to . With the first character chosen randomly using a uniform distribution, Open Babel 2.3.2 [27] is used from the command line with an argument ‘-xf’ for the reordering.
-
(ii)
Discard the rightmost m characters of the reordered string to derive . The deletion length m is sampled from the binomial distribution with binomial probability (=0.5 by default) and the maximum length L (=5 by default).
-
(iii)
Extend the reduced string by sequentially adding a new character to the terminal point times. A newly added character follows the trained language model . Once the termination code appears, the elongation is stopped, and then we have .
The reordering of strings plays a key role in preventing a series of designed molecules from getting stuck in local states. Note that temporally, the SMC algorithm can create structures containing unclosed rings and branching components. Then, the corresponding start codes for the unclosed rings or branches are temporally removed to avoid the syntax error when obtaining a descriptor for the likelihood calculation. In addition, the atom order is rearranged only when a current string is grammatically valid.
Software
The iqspr package can be installed thorough the CRAN repository. Installation of Open Babel 2.3.2 is required for getting started. The package consists of a set of functions to perform the QSPR model building (QSPRpred reference class) with molecular fingerprints in the rcdk package [28], the inverse-QSPR prediction (SmcChem reference class), and the training and simulation of the chemical language generator (ENgram reference class) with user-specified input SMILES strings. Currently, the chemical language modeling and the inverse analysis cannot deal with isomers, or ionic compounds. A sample code is given in Appendix 2 in Supplementary Materials.
Results and discussion
Data set
The molecular design process is demonstrated through the creation of small organic molecules with the design objective intended to the HOMO-LUMO gap () [29, 30] and the internal energy (). With the quantum chemistry calculation based on DFT, the two properties were obtained for 16,674 chemical instances which were selected randomly from PubChem [31] (available at Supplementary Data 1). The data set does not contain molecules including one or more inorganic elements which are surrounded by square brackets in the SMILES notation, or atomic symbols with chiral specification @. Strings including either ‘+’ or ‘-’, representing ionic elements, were also excluded. Because of its performance and suitability for our parallel computer facilities, the Gaussian09 suite of program codes [32] was used to carry out all the present DFT simulations. The corresponding molecular structures were obtained via the PubChemQC project [33], which were fully optimized at the B3LYP/6-31+G(d) level of theory though using GAMESS [34, 35]. We found that further optimization at the same level with Gaussian09 leaves the GAMESS geometries unchanged for some preliminary cases. Therefore, the two target properties were evaluated for all the cases from the single-point B3LYP/6-31+G(d) calculations.
In the forward analysis, the entire set was divided into 10,000 and 6674 instances for training and testing, respectively. The chemical language model was trained with 50,000 organic compounds without chiral specification @ or ionic elements ‘+’ and ‘-’, which were selected randomly from the PubChem database. The performance of the backward prediction was tested on three different property regions of : (i) , (ii) , and (iii) . Designed hypothetical molecules were validated with the DFT calculation as to whether or not their physical properties fall within each desired range.
Forward prediction
As shown in Table 2, eight different descriptors were derived by using six types of molecular fingerprints in combination; which these fingerprints are implemented in the R package rcdk [28]. The mean of the predictive distribution was employed as the predicted value of each property. The parameters of the normal and gamma priors in regression were set as and . The performance of the trained models was assessed with the mean absolute error (MAE). As shown, the augmented descriptor that combined the ‘standard’, ‘extended’, ‘circular’ and ‘pubchem’ fingerprints delivered the highest predictive accuracy. However, the average runtime for the likelihood calculation per 100 molecules (7.71 s) was significantly greater than the others because the translation into the PubChem fingerprint involves an intractable graph pattern matching. This led to a significant increase in the runtime of the backward prediction. We therefore employed the second-best descriptor containing ‘standard’, ‘extended’ and ‘circular’, which delivered relatively small MAEs, 0.54 eV and 23.5 kcal/mol, for the HOMO-LUMO gap and internal energy, respectively. With this, the runtime was reduced by nearly (to 1.61 s per 100 molecules), compared with the best performing model.
Table 2.
Fingerprint | Energy (kcal/mol) | HOMO-LUMO gap (eV) | Runtime (s) |
---|---|---|---|
1 | 32.6 | 0.53 | 0.50 |
2 | 30.4 | 0.54 | 0.41 |
3 | 29.3 | 1.37 | 2.57 |
4 | 28.3 | 1.66 | 0.36 |
5 | 22.1 | 0.55 | 5.32 |
6 | 46.8 | 0.84 | 0.39 |
1,2,4 | 23.5 | 0.54 | 1.61 |
1,2,4,5 | 18.9 | 0.50 | 7.71 |
The six fingerprints in the rcdk package (bottom) and their combinations were tested. The last column denotes the average runtime for the QSPR score (likelihood) calculation per 100 molecules. The runtimes were measured on an Intel Xeon 2.0 GHz processor with 128 GB memory using the iqspr package
1. ‘standard’: paths of a default length (1024 bits)
2. ‘extended’: the ‘standard’ fingerprint is modified such that ring and atomic properties are taken into account (1024 bits)
3. ‘maccs’: MDL MACCS keys (166 bits)
4. ‘circular’: ECFP6 fingerprint (1024 bits)
5. ‘pubchem’: PubChem fingerprint (881 bits)
6. ‘graph’: ‘standard’ is modified by taking into account connectivity (1024 bit)
Chemical language model
To determine the order n of the chemical language model and to verify its learning ability in the chemical language context, ten training sets of 1000 compounds were randomly produced from the PubChem compounds. Each set was halved for training and testing . The selected model was learned all over again with 50,000 different training compounds for the inverse-QSPR prediction.
The models with varying orders, , were trained with two different procedures, the back-off (BO) and the Kneser–Nay smoothing (KN) methods [26]. As a control group in the comparison, we added a conventional n-gram that learned the -order Markov relationship among the chemical strings simply without using the stratification () and the substring selector . Model performances were evaluated with two criteria: the perplexity measure [36] and the grammatical validity of produced chemical strings.
Perplexity is a commonly used measure in the natural language processing that evaluates the generalization capability of a language model with the trained probability function in Eq. 3,
For each model, the goodness-of-fit, i.e., the likelihood, to the 1000 test instances was measured. As shown in Fig. 3a, the models resulting from BO outperformed the others in terms of perplexity. In the comparison among the BO-derived models with the different orders, there were no significant differences in the generalization capability. Furthermore, this experiment showed the significance of the stratification () and the substring selector , as significant improvements of perplexity were observed in the extended models relative to the conventional models.
In light of grammatical validity, the syntax error rates were evaluated for 1000 hypothetical molecules generated from each of the ten trained models. The grammar check was done with the SMILES parser function ‘parse.smiles’ in the rcdk package with the option ‘kekulise = TRUE’. As shown in Fig. 3a, the error rate was monotonically reduced with an increase in the Markov order in the extended models. The minimum error rate (2.7 %) was attained at . The performances of the BO and KN algorithms were much the same. In conclusion, we selected the BO-derived model with based on perplexity and grammatical validity.
To further validate the learning ability of the BO-derived model with , randomly created 50 molecules were associated with PubChem compounds in which the training compounds were removed. Approximately of the 50 virtual molecules exhibited extensive similarities to one or more existing compounds meeting the acceptance criterion of the Tanimoto coefficient 0.9 on the PubChem fingerprint. Figure 3b shows five instances of the created molecules; these instances indicate the great ability of the chemical language model. Conventional structure generators could never reproduce such structurally complex molecules.
Backward prediction
Table 3 summarizes the parameters of the backward prediction. Phenol ’c1cccccc1O’ was assigned to the 100 initial structures () which were refined across with as a desired property region was sought. The movies in Supplementary Movie 1–3 show the processes of transforming structures aimed at the given property regions, , and , respectively. Figure 4a shows snapshots of these processes. The created molecules underwent substantial changes in size, geometry and composition. A visual inspection of the movies verifies that backward calculation prevents structures from getting stuck in locally high-probability regions.
Table 3.
Process | Description | Parameter |
---|---|---|
Forward prediction | Number of training data | |
Fingerprint descriptor | 1, 2, 4 | |
The normal prior | ||
The Gamma prior | ||
Chemical language model | Number of training data | 50,000 |
Markov-order | ||
Estimation algorithm | Back-off method | |
Backward prediction | Size of population | |
Number of iterations | ||
Reordering probability | ||
Binomial probability | ||
Trial number | ||
Cooling schedule | for , for | |
Threshold on ESS | ||
Initial structures | Phenol c1ccccc1O |
Figure 4b illustrates the early stages () of the property refinements, during which they are moving in toward their respective target regions. For each t, a non-redundant set of created molecules is shown: molecules ranked in the top 10 by the likelihood score were selected from a ranking list in which a molecule was removed from the list if its Tanimoto coefficient on the PubChem fingerprint exceeded 0.9 with respect to any of the higher ranking molecules. The reported HOMO-LUMO gap and internal energy correspond to the means of the predictive distributions for the trained forward models. At , the properties were very far from the desired regions. As the calculation proceeds, the resulting properties approached the targets quite rapidly. At , almost all of the created molecules had properties falling within their respective target region, , , or . This observation indicates that the proposed method is capable of drastic and rapid refinements of the properties of seed molecules.
Figure 4c shows the properties of molecules created at and 500 with their verifications by the DFT calculation. In the same way described above, 50 non-redundant molecules were selected from the likelihood-based prioritized list of 25,000 candidates: similar to the results shown in Fig. 4b, 50 non-redundant molecules were selected, in this case selected from a prioritized list of the 25,000 candidates corresponding to the 100 particles produced between and 500. The physical properties were evaluated by the QSPR models and the DFT calculation. For the DFT calculation, the created SMILES strings were first converted into the 3D structures by using OpenBabel with the ‘-gen3d’ option. Such initial conformations were fully optimized using Gaussian09 with B3LYP/6-31+G(d). Finally, the electronic properties at the equilibrium geometries were computed at the same level of theory. As shown, all the QSPR-derived properties of the created molecules fell within the respective desired regions. However, in the verification by the DFT calculation, the arrival rates for and were significantly reduced to 25/50 and 7/50, while the high rate (45/50) was maintained on . The cause of the performance depression in the former cases is apparent. As shown in Fig. 4c, the number of known compounds used for the training was fairly small in neighborhoods of and . By necessity, the trained forward models had much lower accuracies in prediction in neighborhoods of and relative to . The ability of the backward prediction therefore declined as the desired properties were placed within regions where data are sparsely populated. The proposed method has a great ability to discover molecules when a desired property lies within a region where enough data are given, but the creation of truly novel molecules that reside in a far tail of the distribution of known molecules is an issue yet to be addressed. This will be discussed more in the “Concluding remarks” section.
The novelty of derived molecules was investigated by seeking structurally similar compounds in PubChem. For a created S that appeared in in terms of DFT, we calculated the Tanimoto coefficient on the PubChem fingerprint with respect to all PubChem compounds after removing the training instances. Under the acceptance criterion , significantly similar known compounds were identified for S. Figure 4d illustrates an instance of promising hypothetical molecules and the results of the similarity search. Thus, it has been confirmed that the proposed method can reproduce the highly complex and diverse molecules in the database. As expected, molecules that emerged in and were less well matched to existing compounds. More importantly, it has been proved that various types of molecules can exist in the same property region and that many of these have yet to be identified. In practice in science and industry, such molecules could be truly important candidates for further testing and synthesis.
The backward prediction algorithm was run on an Intel Xeon 2.0 GHz processor with 128 GB memory using the iqspr package. The average execution time was about five seconds per step in SMC. The essential part of the current implementation was all developed in the R language and does not support parallel processing. The development of more advanced software is a future subject.
Concluding remarks
This study presented a principled approach to computational molecular design thorough a unified Bayesian perspective to the forward and backward predictions in the structure-property relationship analysis. The method was demonstrated with multi-objective molecular design for the prescribed regions of the HOMO-LUMO gap and internal energy. The presented analyses can be performed with the R package iqspr that we developed. The structure-property data set generated from the high-throughput DFT calculation has been made available online. Despite potentially great impacts on science and industry, the use of computer-aided molecular design methods has not been widely adopted. The lack of easy-to-access software and benchmark data has restrained the proliferation of the use of inverse-QSPR and the growth of methodologies and tools has been hampered due to the difficulty of performance competition.
The main contribution of this study lies in the newly developed structure refinement algorithm based on the chemical language model. As mentioned earlier, most existing methods utilize chemical fragments of real compounds for the reduction of creating chemically unfavorable molecular graphs. The drawback of the fragment-based methods is the limited diversity of the created structures. To enhance diversity and novelty, a vast number of fragments should be used, but this makes the operation of structure transformation in the fragment exchange process and similarity search on the large fragment library much more computationally expensive. The present study showed the great promise of a fragment-free strategy based on a chemical language model. The trained model acquired the implicit meaning of ‘chemically favorable structures’ and succeeded in the creation of seemingly realistic molecules. Surprisingly, more than of the generated molecules had significantly similar known compounds, and in addition, some of these were structurally very complex to the point that no conventional structure creators would ever be able to reproduce them. The proposed method demonstrated a new way to make computationally efficient structure refinements based on the string representation of molecules. It is important to see that the acquired context of the chemical language is not well defined, but rather is ambiguous. Possibly, the trained language model did not recognize higher-level chemical knowledge such as chemical stability, synthesizability, and drug-likeliness. The creation of much more realistic and valid structures is an important consideration in future work. It should be remarked that more recently, a research group has proposed a molecular generator that relies on a neural network trained on SMILES instances of real molecules [37]. This generator was designed to achieve the same purpose as our study.
As demonstrated, the backward method is enormously powerful in the exploration when enough data are observed in a neighborhood of a specified property region. However, the prediction ability declines as the desired properties are placed around regions where data are sparsely populated. The ultimate goal of computational molecular design is the creation of truly novel molecules that reside in an exceedingly far tail of the distribution of known molecules. The apparent cause of the limited ability is that the trained forward models become less accurate in property prediction in far tails of the training set. This is an issue common to all existing methods but less attention has been paid to this important problem. Ultimately, we wish to arrive in yet-unexplored property regions where no one has gone before. In Supplementary Fig. 1, we have provided snapshots of the property refinement process that explored a yet-unexplored property region, to emphasize the significance of overcoming this limitation. Within early steps, the resulting properties approached the desired region quite rapidly, but the search trajectories became more disperse as they got closer to the target.
A promising solution to this problem might be the integration of computer experiments and the backward prediction algorithm with experimental design techniques. Once created molecules get fairly close to an unexplored property region, a new set of structure-property data could be produced in a neighborhood of the region by conducting, for instance, a first-principle calculation with respect to a preferred subset of the currently created structures. Then, one could refine the forward models using the newly added data. Possibly, the query points of the computer experiment should rationally be selected under a sequential design strategy by maximizing the expected improvement of prediction under a given constraint of computational costs. The refined backward prediction might acquire a greater ability to move a step closer to the target region. The integration of the backward prediction algorithm and rationally designed adaptive data production is the next challenge in future work.
Electronic supplementary material
Below is the link to the electronic supplementary material.
Acknowledgements
This work was supported in part by the “Materials research by Information Integration Initiative” (MII) project of the Support Program for Starting Up Innovation Hub from Japan Science and Technology Agency (JST), Grant-in-Aid for Scientific Research (B) 15H02672 from the Japan Society for the Promotion of Science (JSPS), Grant-in-Aid for JSPS Fellows 16J09205, JST PRESTO, and The KAITEKI Institute, Inc. The quantum chemistry simulation in this work has been mostly performed using SGI Altix UV1000 of the Center for Information Science in JAIST.
References
- 1.Brown N, McKay B, Gasteiger J. A novel workflow for the inverse QSPR problem using multiobjective optimization. J Comput Aided Mol Des. 2006;20:333–341. doi: 10.1007/s10822-006-9063-1. [DOI] [PubMed] [Google Scholar]
- 2.Nicolaou CA, Apostolakis J, Pattichis CS. De novo drug design using multiobjective evolutionary graphs. J Chem Inf Model. 2009;49:295–307. doi: 10.1021/ci800308h. [DOI] [PubMed] [Google Scholar]
- 3.Kawashita N, et al. A mini-review on chemoinformatics approaches for drug discovery. J Comput Aided Chem. 2015;16:15–29. doi: 10.2751/jcac.16.15. [DOI] [Google Scholar]
- 4.Venkatasubramanian V, Chan K, Caruthers JM. Computer-aided molecular design using genetic algorithms. Comput Chem Eng. 1994;18:833–844. doi: 10.1016/0098-1354(93)E0023-3. [DOI] [Google Scholar]
- 5.Venkatasubramanian V, Chan K, Caruthers JM. Evolutionary design of molecules with desired properties using the genetic algorithm. J Chem Inf Comput Sci. 1995;35:188–195. doi: 10.1021/ci00024a003. [DOI] [Google Scholar]
- 6.Kawai K, Nagata N, Takahashi Y. De novo design of drug-like molecules by a fragment-based molecular evolutionary approach. J Chem Inf Model. 2014;54:49–56. doi: 10.1021/ci400418c. [DOI] [PubMed] [Google Scholar]
- 7.Miyao T, Hiromasa K, Funatsu K. Inverse QSPR/QSAR analysis for chemical structure generation (from y to x) J Chem Inf Model. 2016;56:286–299. doi: 10.1021/acs.jcim.5b00628. [DOI] [PubMed] [Google Scholar]
- 8.Miyao T, Arakawa M, Funatsu K. Exhaustive structure generation for inverse-QSPR/QSAR. Mol Inform. 2010;29:111–125. doi: 10.1002/minf.200900038. [DOI] [PubMed] [Google Scholar]
- 9.Wong WW, Burkowski FJ. A constructive approach for discovering new drug leads: using a kernel methodology for the inverse-QSAR problem. J Cheminform. 2009;1:1–4. doi: 10.1186/1758-2946-1-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Douguet D, Thoreau E, Grassy G. A genetic algorithm for the automated generation of small organic molecules: drug design using an evolutionary algorithm. J Comput Aided Mol Des. 2000;14:449–466. doi: 10.1023/A:1008108423895. [DOI] [PubMed] [Google Scholar]
- 11.Nachbar RB. Molecular evolution: a hierarchical representation for chemical topology and its automated manipulation. Genet Program Evol M. 1998;1:246–253. [Google Scholar]
- 12.Lameijer EW, Kok JN, Bäck T, Ijzerman AP. The molecule evoluator. An interactive evolutionary algorithm for the design of drug-like molecules. J Chem Inf Model. 2006;46:545–552. doi: 10.1021/ci050369d. [DOI] [PubMed] [Google Scholar]
- 13.Mannodi-Kanakkithodi A, et al. Machine learning strategy for accelerated design of polymer dielectrics. Sci Rep. 2016;6:20952. doi: 10.1038/srep20952. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Akutsu T, Nagamochi H. Comparison and enumeration of chemical graphs. Comput Struct Biotechnol J. 2013;5:e201302004. doi: 10.5936/csbj.201302004. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Whitley D. A genetic algorithm tutorial. Stat Comput. 1994;4:65–85. doi: 10.1007/BF00175354. [DOI] [Google Scholar]
- 16.Huang Q, Li LL, Yang SY. PhDD: a new pharmacophore-based de novo design method of drug-like molecules combined with assessment of synthetic accessibility. J Mol Graph Model. 2010;28:775–787. doi: 10.1016/j.jmgm.2010.02.002. [DOI] [PubMed] [Google Scholar]
- 17.Kawai K, Yoshimaru K, Takahashi Y. Generation of target-selective drug candidate structures using molecular evolutionary algorithm with SVM classifiers. J Comput Chem Jpn. 2011;10:79–87. doi: 10.2477/jccj.H2309. [DOI] [Google Scholar]
- 18.Dey F, Caflisch A. Fragment-based de novo ligand design by multiobjective evolutionary optimization. J Chem Inf Model. 2008;48:679–690. doi: 10.1021/ci700424b. [DOI] [PubMed] [Google Scholar]
- 19.Schneider G, Fechner U. Computer-based de novo design of drug-like molecules. Nat Rev Drug Discov. 2005;4:649–663. doi: 10.1038/nrd1799. [DOI] [PubMed] [Google Scholar]
- 20.Fechner U, Schneider G. Flux (1): a virtual synthesis scheme for fragment-based de novo design. J Chem Inf Model. 2006;46:699–707. doi: 10.1021/ci0503560. [DOI] [PubMed] [Google Scholar]
- 21.Del Moral P, Doucet A, Jasra A. Sequential Monte Carlo samplers. J R Stat Soc B. 2006;68:411–436. doi: 10.1111/j.1467-9868.2006.00553.x. [DOI] [Google Scholar]
- 22.The Comprehensive R Archive Network. https://cran.r-project.org/
- 23.Ralaivolaa L, Swamidassa SJ, Saigo H, Baldi P. Graph kernels for chemical informatics. Neural Netw. 2005;18:1093–1110. doi: 10.1016/j.neunet.2005.07.009. [DOI] [PubMed] [Google Scholar]
- 24.Mohr JA, Jain BJ, Obermayer K. Molecule kernels: a descriptor- and alignment-free quantitative structure-activity relationship approach. J Chem Inf Model. 2008;48:1868–1881. doi: 10.1021/ci800144y. [DOI] [PubMed] [Google Scholar]
- 25.Yamashita H, Higuchi T, Yoshida R. Atom environment kernels on molecules. J Chem Inf Model. 2014;54:1289–1300. doi: 10.1021/ci400403w. [DOI] [PubMed] [Google Scholar]
- 26.Chen SF, Goodman J. An empirical study of smoothing techniques for language modeling. Comput Speech Lang. 1998;13:359–394. doi: 10.1006/csla.1999.0128. [DOI] [Google Scholar]
- 27.O’Boyle NM, et al. Open Babel: an open chemical toolbox. J Cheminform. 2011;3:33. doi: 10.1186/1758-2946-3-33. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Guha R. Chemical informatics functionality in R. J Stat Softw. 2007;18:1–16. doi: 10.18637/jss.v018.i05. [DOI] [Google Scholar]
- 29.Gómez-Bombarelli R, et al. Design of efficient molecular organic light-emitting diodes by a high-throughput virtual screening and experimental approach. Nat Mater. 2016;15:1120–1127. doi: 10.1038/nmat4717. [DOI] [PubMed] [Google Scholar]
- 30.Hansen K, et al. Machine learning predictions of molecular properties: accurate many-body potentials and nonlocality in chemical space. J Phys Chem Lett. 2015;6:2326–2331. doi: 10.1021/acs.jpclett.5b00831. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Kim S, et al. PubChem substance and compound databases. Nucleic Acids Res. 2015;44:D1202–1213. doi: 10.1093/nar/gkv951. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Frisch MJ et al (2009) Gaussian 09 revision D.01. Gaussian Inc., Wallingford
- 33.The PubChemQC project. http://pubchemqc.riken.jp
- 34.Schmidt MW, et al. General atomic and molecular electronic structure system. J Comput Chem. 1993;14:1347–1363. doi: 10.1002/jcc.540141112. [DOI] [Google Scholar]
- 35.Gordon MS, Schmidt MW. Advances in electronic structure theory: GAMESS a decade later. In: Dykstra CE, Frenking G, Kim KS, Scuseria GE, editors. Theory and applications of computational chemistry. Amsterdam: Elsevier; 2005. pp. 1167–1189. [Google Scholar]
- 36.Jurafsky D, Martin JH (2009) Speech and language processing: an introduction to natural language processing, computational linguistics, and speech recognition, 2nd edn. Prentice-Hall
- 37.Gómez-Bombarelli R et al (2016) Automatic chemical design using a data-driven continuous representation of molecules. arXiv:1610.02415 [DOI] [PMC free article] [PubMed]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.