ORIGINAL RESEARCH article

Front. Genet., 29 January 2025

Sec. Computational Genomics

Volume 15 - 2024 | https://doi.org/10.3389/fgene.2024.1483490

Quadratic descriptors and reduction methods in a two-layered model for compound inference

  • 1. Department of Applied Mathematics and Physics, Graduate School of Informatics, Kyoto University, Kyoto, Japan

  • 2. Department of Mathematics, Quaid-i-Azam University, Islamabad, Pakistan

  • 3. Graduate School of Advanced Integrated Studies in Human Survivability (Shishu-Kan), Kyoto University, Kyoto, Japan

  • 4. Bioinformatics Center, Institute for Chemical Research, Kyoto University, Uji, Japan

Abstract

Compound inference models are crucial for discovering novel drugs in bioinformatics and chemo-informatics. These models rely heavily on useful descriptors of chemical compounds that effectively capture important information about the underlying compounds for constructing accurate prediction functions. In this article, we introduce quadratic descriptors, the products of two graph-theoretic descriptors, to enhance the learning performance of a novel two-layered compound inference model. A mixed-integer linear programming formulation is designed to approximate these quadratic descriptors for inferring desired compounds with the two-layered model. Furthermore, we introduce different methods to reduce descriptors, aiming to avoid computational complexity and overfitting issues during the learning process caused by the large number of quadratic descriptors. Experimental results show that for 32 chemical properties of monomers and 10 chemical properties of polymers, the prediction functions constructed by the proposed method achieved high test coefficients of determination. Furthermore, our method inferred chemical compounds in a time ranging from a few seconds to approximately 60 s. These results indicate a strong correlation between the properties of chemical graphs and their quadratic graph-theoretic descriptors.

1 Introduction

In recent years, extensive studies have been done on the design of novel molecules using various machine learning techniques (; ; ). Computational molecular design also has a long history in the field of chemo-informatics and has been studied under the names of quantitative structure-activity relationship (QSAR) () and inverse quantitative structure-activity relationship (inverse QSAR) (; ; ). This design problem has also become an important topic in both bioinformatics and machine learning.

The purpose of QSAR is to predict chemical activities from given chemical structures (). In most QSAR studies, a chemical structure is represented as a vector of real numbers called features or descriptors, and then a prediction function is applied to the vector, where a chemical structure is given as a chemical graph, which is defined by an undirected graph with an assignment of chemical elements to vertices and an assignment of bond multiplicities to edges. A prediction function is usually obtained from existing structure–activity relationship data. To this end, various regression-based methods have been utilized in traditional QSAR studies, whereas machine learning-based methods, including artificial neural network (ANN)-based methods, have recently been utilized (; ; ).

Conversely, the purpose of inverse QSAR is to predict chemical structures from given chemical activities (; ; ; ), where additional constraints may often be imposed to effectively restrict the possible structures. In traditional inverse QSAR, a feature vector is computed by applying some optimization or sampling method on the prediction function obtained by standard QSAR, and then chemical structures are reconstructed from the feature vector. However, the reconstruction itself is quite difficult due to the vast number of possible chemical graphs (). In fact, inferring a chemical graph from a given feature vector, except for some simple cases, is an NP-hard problem (). Due to this inherent difficulty, most existing methods employ heuristic methods for the reconstruction of chemical structures and thus do not guarantee optimal or exact solutions. On the other hand, one of the advantages of ANNs is that generative models, such as autoencoders and generative adversarial networks, are available. Furthermore, graph-structured data can be directly handled by using graph convolutional networks (). Therefore, it is reasonable to try to apply ANNs to inverse QSAR (). Various ANN models, including recurrent networks, autoencoders, generative networks, and invertible flow models, have been applied in this context (; ; ; ; ; ; ). However, the optimality or exactness of the solutions provided by these methods is not yet guaranteed.

A novel two-phase framework based on mixed-integer linear programming (MILP) and machine learning methods has been developed to infer chemical graphs (; ; ; ). The first phase constructs a prediction function for a chemical property, and the second phase infers a chemical graph with a target value of the property based on the function . For a chemical property , we define as a data set of chemical graphs such that the observed value of property for every chemical graph is available.

In the first phase, we introduce a feature function for a positive integer , where the descriptors of a chemical graph are defined based on local graph structures by using a two-layered model () so that the inverse of can be modeled by MILP in the second phase. The prediction function aims to produce an output based on the feature vector for each . This output serves as a predicted value for the real value .

The task of the second phase is to infer desired chemical graphs. This phase consists of three steps. For a given set of rules called topological specification and a range of the target property value, the aim of the first step is to infer chemical graphs that satisfy the rules and (see Figure 1 for an illustration). For this, we formulate an MILP that represents (i) the computation process of from a chemical graph in the feature function ; (ii) that of from a vector in the prediction function ; and (iii) the constraint , where denotes the set of all chemical graphs that satisfy the rules in . Given an interval with , we solve the MILP to find a feature vector and a chemical graph such that and (if the MILP instance is infeasible, this suggests that does not contain such a desired chemical graph). See for a full description of the framework.

FIGURE 1

In the second and third steps of the process, we employ different techniques to generate additional desired chemical graphs based on the initial solution . These techniques include a dynamic programming algorithm () and a neighbor search method (). The dynamic programming algorithm operates by decomposing into trees and generating their isomers. These isomers are then combined to produce a set of isomers that belong to the desired chemical graph space . These isomers are referred to as the recombination solutions of . The idea of the neighbor search method is to generate new desired chemical graphs that have a slightly different feature vector than that of . For this purpose, we solve an augmented MILP obtained by with an additional set of linear constraints. The resulting graphs obtained through this process are referred to as the neighbor solutions of .

Contribution: The feature vector of a chemical graph in this framework consists of the descriptors that extract the local information of the interior and exterior parts of the graph obtained from the two-layered model. These simple descriptors play a crucial role in deriving compact MILP formulations for the inference of a desired chemical graph. However, for certain chemical properties, the prediction functions constructed based on the feature function could not achieve evaluation scores in the acceptable range. To improve the evaluation score, we introduce new quadratic descriptors (or . This drastically increases the number of descriptors, which would take extra running time for learning or lead to overfitting of the data set. Moreover, computed quadratic descriptors cannot be directly formulated as a set of linear constraints in the original MILP. For this, we introduce a method of reducing a set of descriptors into a smaller set that delivers a prediction function with a higher performance. We also design an MILP formulation to represent a quadratic term . Based on the same MILP formulation proposed by , we implemented the framework to treat the feature function with quadratic descriptors. From the results of our computational experiments on more than 40 chemical properties, we observe that our new method of utilizing quadratic descriptors has improved the performance of a prediction function for many chemical properties.

2 Quadratic descriptors and their approximation in an MILP

In the framework with the two-layered model (), the feature vector consists of graph-theoretic descriptors that are mainly the frequencies of atoms, bonds, and edge configurations in the interior and exterior of the chemical compounds. See for the details of the interior and exterior of chemical compounds and all the descriptors , which are called linear descriptors, respectively. There are some chemical properties for which the performance of a prediction function constructed with this feature vector remains rather low. To improve the learning performance in the two-layered model, we introduce quadratic terms (or ) and as a new descriptor, where we assume that each is normalized between 0 and 1 by using the min-max normalization. Note that computing quadratic descriptors cannot be directly formulated as a set of linear constraints in the original MILP used in the two-layered model. Therefore, this section introduces an MILP formulation that approximates the product of two descriptors in a MILP.

Given two real values and with and , the process of computing the product can be approximately formulated as the following MILP. First, regard as an integer with a binary expression of bits, where denotes the value of the -th bit. Then, compute , which becomes the -th bit of .

Constants:

  • - : reals with ;

  • - : a positive integer;

variables:

  • - , : reals with ;

  • - : binary variables;

constraints:

Note that the necessary number of integer variables for computing for one pair of and is . In this article, we set in our computational experiment. The relative error by in the above method is at most , which is approximately .

3 Methods for reducing descriptors

The number of descriptors in the two-layered model increases drastically due to the quadratic descriptors. More precisely, if denotes the set of linear descriptors, and denotes the set of quadratic descriptors constructed over a data set for a property , then the total number of descriptors are . This large number of descriptors would increase the running time to construct prediction functions or lead to overfitting of the data set. To address these issues, we propose methods for reducing descriptors in this section.

Let be a given set of chemical compounds, be a descriptor set obtained using the two-layered model, and be the size of a set of selected descriptors.

For given , and a real number , we denote by Des-set-LLR the subset of such that for and the hyperplane constructed by the LLR procedure LLR.

3.1 A method based on lasso linear regression

Because the lasso linear regression finds some number of descriptors with in the output hyperplane , we can reduce a given set of descriptors by applying the lasso linear regression repeatedly. Choose parameters and so that LLR can be executed in a reasonable running time when and . Let be an integer for the number of descriptors that we choose from a given set of descriptors.

LLR-Reduce

:

  • Input: A data set and a set of descriptors;

  • Output: A subset with .

  • Initialize ;

  • whiledo

  •  Partition randomly into disjoint subsets such that

  • for each ;

  • for each do

  •   Choose a subset with of randomly;

  • Des-set-LLR for some

  • end for;

  • end while;

  • Output after adding to extra descriptors from the previous

  • set when by using the K-best method.

In this article, we set , , and if in our computational experiment.

3.2 A method based on the backward stepwise procedure

A backward stepwise procedure () reduces the number of descriptors one by one, choosing the one removal that maximizes the learning performance and outputs a subset with the maximum learning performance among all subsets during the reduction iteration.

For a subset and a positive integer , let denote the median of the coefficient of determination test score of a prediction function by MLR constructed during times 5-fold cross-validations. We define a performance evaluation function for an integer such that . The backward stepwise procedure with this function is described as follows.

BS-Reduce

:

  • Input: A data set , a set of descriptors, an integer , and a performance evaluation function defined above;

  • Output: A subset .

  • Compute ; Initialize ;

  • whiledo

  •  Compute for each descriptor ;

  •  Set to be a descriptor that maximizes over all ;

  •  Update: ;

  • ifthen update and end if

  • end while;

  • Output .

Based on the lasso linear regression and the backward stepwise procedure, we design the following method for choosing a subset of a given set of descriptors. We are given a set of 17 real numbers and a set of 16 real numbers close to each number . The method first chooses a best parameter to construct a prediction function by LLR and then chooses a subset for each by the backward stepwise procedure. The procedure takes iterations, which may take a large amount of running time. We introduce an upper bound on the size of an input descriptor set for the backward stepwise procedure. Let , , and be integer parameters that control the number of executions of cross-validations to evaluate the learning performance in the method.

Select-Des-set

:

  • Input: A data set , a set of descriptors, a set of different values of , and a set of real numbers close to each ;

  • Output: A subset of .

  • for each do

  •  Compute Des-set-LLR and

  • end for;

  • Set to be a that maximizes ; Denote by ;

  • for each do

  •  Compute Des-set-LLR and let be the hyperplane obtained by this LLR;

  • ifthen

  • else

  •   Let consist of descriptors that have the largest absolute

    values in the weight sets of the hyperplane

  • end if;

  • BS-Reduce;

  • end for;

  • Output to be a set that maximizes .

In the computational experiment in this article, we set {, }, for each , , and .

4 Results and discussion

With our new method of choosing descriptors and formulating an MILP to treat quadratic descriptors in the two-layered model, we implemented the framework for inferring chemical graphs and conducted experiments to evaluate the computational efficiency.

4.1 Chemical properties

In the first phase, we used the following 32 chemical properties of monomers and ten chemical properties of polymers.

For monomers, we used the following data sets: biological half-life (BHL), boiling point (Bp), critical temperature (Ct), critical pressure (Cp), dissociation constants (Dc), flash point in closed cup (Fp), heat of combustion (Hc), heat of vaporization (Hv), octanol/water partition coefficient (Kow), melting point (Mp), optical rotation (OptR), refractive index of trees (RfIdT), vapor density (Vd) and vapor pressure (Vp) provided by HSDB from ; electron density on the most positive atom (EDPA) and Kovats retention index (Kov) provided by ; entropy (ET) provided by ; heat of atomization (Ha) and heat of formation (Hf) provided by ; surface tension (SfT) by ; viscosity (Vis) provided by ; isobaric heat capacities liquid (LhcL) and isobaric heat capacities solid (LhcS) provided by ; lipophilicity (Lp) provided by ; flammable limits lower of organics (FlmLO) provided by ; molar refraction at 20° (Mr) provided by ; and solubility (Sl) provided by ESOL (), and energy of highest occupied molecular orbital (Homo), energy of lowest unoccupied molecular orbital (Lumo), the energy difference between Homo and Lumo (Gap), isotropic polarizability (Alpha), heat capacity at 298.15 K (Cv), internal energy at 0 K (U0), and electric dipole moment (mu) provided by ESOL (), where the properties from Homo to mu are based on a common data set QM9.

The data set QM9 contains more than 130,000 compounds. In our experiment, we used a set of 1,000 compounds randomly selected from the data set. For the Hv property, we removed the chemical compound with the compound identifier (CID) as an extremal outlier from the original data set.

For polymers, we used the following data provided by : experimental amorphous density (AmD), characteristic ratio (ChaR), dielectric constant (DieC), dissipation factor (DisF), heat capacity in liquid (HcL), heat capacity in solid (HcS), mol volume (MlV), permittivity (Prm), refractive index of polymers (RfIdP), and glass transition (Tg), where we excluded from our test data set every polymer whose chemical formula could not be found by its name in the book (). A summary of these properties is given in Tables 1, 2. We remark that the previous learning experiments for { ChaR, RfIdP} based on the two-layered model proposed by and excluded some number of polymers as outliers. In our experiments, we do not exclude any polymer from the original data set as outliers for these properties.

TABLE 1

Biological half life (BHL) ()5145, 360.03, 732.9926101166
Boiling point (Bp) ()3704, 67−11.7, 470.022130184
Boiling point (Bp) ()4444, 67−11.7, 470.026163230
Critical pressure (Cp) ()1314, 63, 5.52879119
Critical temperature (Ct) ()1254, 6356.1, 3607.5876113
Critical temperature (Ct) ()1324, 6356.1, 3607.5881121
Dissociation constants (Dc) ()1415, 440.5, 17.112062111
Dissociation constants (Dc) ()1615, 440.5, 17.112569130
Entropy (ET) ()175, 1264.34, 96.2151753
Flash point in closed cup (Fp) ()3684, 67−82.99, 300.020131183
Flash point in closed cup (Fp) ()4244, 67−82.99, 300.025161229
Flammable limits lower of organics (FlmLO) ()10461, 490.185, 4.334282376
Heat of vaporization (Hv) ()944, 1619.12, 210.31263105
Kovats retention index (Kov) ()5211, 161422.0, 1919.093364
Octanol/water partition coefficient (Kow) ()6844, 58−7.5, 15.625166223
Octanol/water partition coefficient (Kow) ()8994, 69−7.5, 15.637219303
Lipophilicity (Lp) ()6156, 60−3.62, 6.8432116186
Lipophilicity (Lp) ()9366, 74−3.62, 6.8444136231
Melting point (Mp) ()4674, 122−185.33, 300.023142197
Melting point (Mp) ()5774, 122−185.33, 300.032176255
Optical rotation (OptR) ()1475, 44−117.0, 165.02155107
Optical rotation (OptR) ()1575, 69−117.0, 165.02562123
Refractive index of trees (RfIdT) ()1914, 260.919, 1.61317115168
Solubility (Sl) ()6734, 55−9.332, 1.1127154217
Solubility (Sl) ()9154, 55−11.6, 1.1142207300
Surface tension (SfT) ()2475, 3312.3, 45.11191128
Viscosity (Vis) ()2825, 36−0.64, 1.631288126
Energy of highest-occupied molecular orbital (Homo) ()9776, 9−0.3335, −0.158359190297
Energy of lowest-unoccupied molecular orbital (Lumo) ()9776, 9−0.1144, 0.102659190297
The energy difference between Homo and Lumo (Gap) ()9776, 90.1324, 0.411759190297
Isotropic polarizability (Alpha) ()9776, 950.9, 99.659190297
Heat capacity at 298.15 K (Cv) ()9776, 919.2, 44.059190297
Electric dipole moment (mu) ()9776, 90.04, 6.89759190297

Results of setting data sets for monomers.

TABLE 2

Experimental amorphous density (AmD) ()864, 450.838, 1.34162583
Experimental amorphous density (AmD) ()934, 450.838, 1.45183094
Characteristic ratio (ChaR) ()304, 183.7, 15.9151768
Characteristic ratio (ChaR) ()324, 183.7, 15.9151871
Characteristic ratio (ChaR) ()354, 183.7, 15.9182183
Dielectric constant (DieC) ()364, 222.13, 3.4111867
Dissipation factor (DisF) ()1324, 45, 0.07151878
Permittivity (Prm) ()1124, 452.23, 4.91141569
Permittivity (Prm) ()1324, 452.23, 4.91151878
Refractive index of polymers (RfIdP) ()924, 290.4899, 1.683153596
Refractive index of polymers (RfIdP) ()1254, 290.4899, 1.6831950124
Refractive index of polymers (RfIdP) ()1354, 290.4899, 1.712356144
Glass transition (Tg) ()2044, 58171, 6731936101
Glass transition (Tg) ()2324, 58171, 6732143118

Results of setting data sets for polymers.

4.2 Experimental setup and setting data set

We executed the experiments on a PC with a Core i7-9700 (3.0 GHz; 4.7 GHz at the maximum processor and 16 GB RAM DDR4 memory. Prediction functions were constructed using scikit-learn version 1.0.2 with Python 3.8.12, and MLPRegressor and rectified linear unit (ReLU) activation function were used for learning based on ANN. The prediction functions constructed by different machine learning models were evaluated using the coefficient of determination . We performed 10 rounds of 5-fold cross-validation, calculated the training and testing scores for each cross-validation, and recorded the median of the testing scores across all 50 cross-validations.

For each property , we first selected a set of chemical elements and then collected a data set on chemical graphs over the set of chemical elements. To construct the data set , we eliminated chemical compounds that did not satisfy one of the following: the graph is connected, the number of carbon atoms is at least four, and the number of non-hydrogen neighbors of each atom is at most four.

We set a branch-parameter to be 2, introduce linear descriptors defined by the two-layered graph in the chemical model without suppressing hydrogen, and use the set of linear and quadratic descriptors (see for the details). We normalize the range of each linear descriptor and the range of property values by using the min–max normalization.

Among the above properties, we found that the median of the test coefficient of determination of the prediction function constructed by LLR () or ALR () exceeds 0.98 for the following nine properties of monomers (resp., three properties of polymers): EDPA, Hc, Ha, Hf, LhcL, LhcS, Mr, Vd, and U0 (resp., HcL, HcS, and MlV). We excluded the above properties from further analysis because they already achieved excellent predictive performance, and further improvement would not provide additional insights. The remaining 23 chemical properties of monomers and seven chemical properties of polymers were used in the following experiments.

Tables 1

,

2

show the size and range of data sets that we prepared for each chemical property to construct a prediction function, where we denote the following:

  • - : the name of a chemical property used in the experiment.

  • - : a set of selected elements used in the data set ; is one of the following 19 sets:

  • {H,C,O}; {H,C,O, N}; {H,C,O, Si(4) }; {H,C,O, N,S(2),F}; {H,C,O, N, Cl, Pb}; {H,C,O, N,Si(4),Cl,Br}; {H,C,O, N,S(2),S(6),Cl}; {H,C,O, N,S(2),S(4),S(6),Cl}; {H, C(2),C(3),C(4),C(5),O, N(1), N(2), N(3), F}; {H,C,O, N,P(2),P(5),Cl}; {H, C, O(1), O(2), N}; {H, C, O, N, Cl}; {H, C, O, N, Cl, S(2) }; {H, C, O(1), O(2), N, Cl, Si(4), F}; {H,C,O(1), O(2), N, Si(4),Cl,F

  • S(2), S(6),Br}; {H, C, O(2), N, Cl, P(3), P(5), S(2), S(4), S(6), Si(4), Br, I}, where a(i) for a chemical element a, and an integer means a chemical element a with valence .

  • - : the size of data set over for the property .

  • - : the minimum and maximum values of the number of non-hydrogen atoms in the compounds in .

  • - : the minimum and maximum values of for over the compounds in .

  • - : the number of different edge-configurations of interior edges over the compounds in .

  • - : the number of non-isomorphic chemical rooted trees in the set of all 2-fringe-trees in the compounds in .

  • - : the size of a set of linear descriptors, where holds.

4.3 Results on the first phase of the framework

For each chemical property

, we construct a prediction function by one of the following four methods (i)–(iv) and compare their results.

  • (i) LLR: use lasso linear regression on the set of linear descriptors (see for the details of the implementation);

  • (ii) ANN: use ANN on the set of linear descriptors (see for the details of the implementation);

  • (iii) ALR: use adjustive linear regression on the set of linear descriptors (see for the details of the implementation); and

  • (iv) R-MLR: apply our method (see ) of reducing descriptors to the set of linear and quadratic descriptors, and use multi-linear regression for the resulting set of descriptors.

For methods (i)–(iii), we use the same implementation described in and and omit the details.

In method (iv), we apply LLR-Reduce to compute of size 5000 if for a monomer property . In the other case, we set . Then, apply Select-Des-set to get , which is used to construct prediction functions based on MLR.

Results of the learning experiments are listed in

Tables 3

,

4

, where:

  • - : the property name;

  • - : the chemical element set of ;

  • - LLR, ANN, ALR, R-MLR: the median of test score in ten times 5-fold cross-validations for functions obtained by methods (i), (ii), (iii), and (iv), respectively;

  • - the best score for each property among LLR, ANN, ALR, and R-MLR is indicated by “*”;

  • - : the number of reduced linear descriptors and the number of reduced quadratic descriptors in used in MLR.

TABLE 3

LLRANNALRR-MLR
BHL0.4830.6220.265*0.6590, 27  
BP0.5990.7650.816*0.9351, 59  
BP0.6630.7200.832*0.8990, 38  
CP0.5550.7270.690*0.8410, 67  
CT0.0370.3570.900*0.9371, 47  
CT0.0480.357*0.8950.8600, 13  
DC0.4890.6510.488*0.9080, 58  
DC0.5740.6220.602*0.8290, 26  
ET0.1320.4790.464*0.9960, 13  
FP0.5890.7460.719*0.8990, 42  
FP0.5710.7450.684*0.8460, 32  
FIMLO0.8190.9280.604*0.9490, 77  
HV0.8640.7780.816*0.9700, 22  
KOV0.6770.7270.838*0.9532, 19  
KOW0.9530.9520.964*0.9670, 55  
KOW0.9270.937*0.9520.9500, 64  
LP0.8560.8670.844*0.9280, 89  
LP0.8400.8590.807*0.9140, 109
MP0.8100.8000.831*0.8730, 51  
MP0.8100.8200.807*0.8980, 58  
OPTR0.8250.9180.876*0.9700, 85  
OPTR0.8250.8780.870*0.9700, 69  
RFIDT0.0000.4530.425*0.7750, 43  
SL0.8080.8480.784*0.8940, 82  
SL0.8080.8610.828*0.8970, 74  
SFT0.9270.8590.847*0.9410, 36  
VIS0.8930.9290.911*0.9730, 43  
HOMO*0.8410.6890.6890.8040, 87  
LUMO0.8410.8600.833*0.9200, 102
GAP0.7840.7950.755*0.8760, 83  
ALPHA0.9610.8880.953*0.9800, 104
CV0.9700.9110.966*0.9780, 83  
MU0.3670.4090.403*0.6450, 112

Results of constructing prediction functions for monomers.

TABLE 4

LLRANNALRR-MLR
AMD0.9140.885*0.9330.9060, 5  
AMD0.9180.8240.917*0.9530, 6  
CHAR0.2100.6420.863*0.9380, 10
CHAR0.0880.6400.835*0.9240, 9  
CHAR−0.0730.5270.766*0.9500, 12
DEIC0.7610.6410.918*0.9563, 41
DISF0.6230.8010.308*0.9061, 23
PRM0.8010.8010.505*0.9670, 26
PRM0.7840.7350.489*0.9770, 34
RFIDP0.1040.4230.853*0.9622, 52
RFIDP0.3730.5600.848*0.9532, 43
RFIDP0.3460.4920.883*0.9475, 53
TG0.9020.8830.923*0.9581, 33
TG0.8940.8600.927*0.9570, 32

Results of constructing prediction functions for polymers. The negative value shows that the respective model is arbitrarily worse.

The computation times of finding and constructing functions by our method (iv) were in the ranges of seconds and seconds, respectively.

Tables 3, 4 show that method (iv) significantly increased the learning performance of several properties and achieved the best scores among methods (i)–(iii) for 43 of 47 data sets. We also noticed that most of the selected descriptors in are quadratics, which confirms the effectiveness of the proposed quadratic descriptors.

4.4 Results on the second phase of the framework

To execute the second phase, we used a set of seven instances , , , and based on the seed graphs prepared by . We here present their seed graphs (see ) for the details of , , , and ).

The seed graph of (resp., of ) is illustrated in Figure 2.

FIGURE 2

Instance is introduced to infer an intermediate graph , which preserves

- the core part of : CID 24822711 given in Figure 3A; and

FIGURE 3

- the frequencies of all edge-configurations of : CID 59170444 given in Figure 3B.The seed graph of this instance is depicted in gray in Figure 3A).

Instance has been introduced in order to infer a chemical graph such that

- is monocyclic (where the seed graph of is given by in Figure 2(i)); and

- the frequency vector of edge configurations in is a vector obtained by merging those of chemical graphs : CID 10076784 and : CID 44340250 in Figures 3C, D, respectively.

4.4.1 Solving an MILP for the inverse problem

We executed the stage of solving an MILP to infer a chemical graph for two properties {Bp, Dc}.

For the MILP formulation

, we use the prediction function

for each

{

Bp, Dc

} by method (iv), R-MLR that attained the median test

in

Table 3

. To solve an MILP with the formulation, we used

CPLEX

version 12.10.

Tables 5

,

6

show the computational results of the experiment in this stage for the two properties, where we denote the following:

  • - : a lower bound on the number of non-hydrogen atoms in a chemical graph to be inferred;

  • - : lower and upper bounds on the value of a chemical graph to be inferred;

  • - v (resp., c): the number of variables (resp., constraints) in the MILP;

  • - I-time: the time (sec.) to solve the MILP;

  • - : the number of non-hydrogen atoms in the chemical graph inferred by solving the MILP;

  • - : the number of interior vertices in the chemical graph ; and

  • - : the predicted property value of the chemical graph .

TABLE 5

inst.vcI-timeD-time-LB
30225, 23510,50210,2404.294926233.920.07233
35285, 29510,5077,7932.273510286.520.03466
45365, 37513,00010,91311.94925370.700.143202100
45305, 31512,78810,9207.074825309.390.226,304100
45260, 27012,57610,92810.74927266.260.17376100
50340, 3507,5158,2700.8675033344.980.01922
40320, 3306,1357,7738.224523329.858.36,733,440100

Results of inferring a chemical graph and generating recombination solutions for Bp with .

TABLE 6

inst.vcI-timeD-time-LB
300.55, 0.6010,19497873.9141250.5580.06922
351.10, 1.1510,4157,3684.7335111.1040.101616
456.00, 6.0512,97610,48157.445256.040.122040100
451.45, 1.502,76710,48839.749261.4880.2821,600100
456.10, 6.1512,55810,49426.446256.100.02722
5012.35, 12.407,2077,8191.75503412.380.02022
403.15, 3.2058277,32514.941233.1990.07918,952100

Results of inferring a chemical graph and generating recombination solutions for Dc with .

Figure 4A illustrates the chemical graph inferred from with of Bp in Table 5.

FIGURE 4

Figure 4B (resp., Figure 4C) illustrates the chemical graph inferred from with (resp., with ) of Dc in Table 6.

In this experiment, we prepared several different types of instances: instances and have restricted seed graphs, the other instances have abstract seed graphs, and instances and have restricted sets of fringe trees. From Tables 5, 6, we observe that an instance with many variables and constraints takes more running time than those with a smaller size in general. All instances in this experiment are solved in a few seconds to approximately 60 s with our MILP formulation.

4.4.2 Generating recombination solutions

Let be a chemical graph obtained by solving the MILP for the inverse problem. We here execute a stage of generating recombination solutions of such that .

We execute an algorithm for generating chemical isomers of up to 100 when the number of all chemical isomers exceeds 100. For this, we use a dynamic programming algorithm (). The algorithm first decomposes into a set of acyclic chemical graphs. Next, it replaces each acyclic chemical graph with another acyclic chemical graph that admits the same feature vector as that of , and finally, it assembles the resulting acyclic chemical graphs into a chemical isomer of . The algorithm can compute a lower bound on the total number of all chemical isomers without generating all of them.

Tables 5

,

6

show the computational results of the experiment in this stage for the two properties

{

Bp, Dc

}, where we denote the following:

  • - D-time: the running time (s) to execute the dynamic programming algorithm to compute a lower bound on the number of all chemical isomers of and generate all (or up to 100) chemical isomers ;

  • - -LB: a lower bound on the number of all chemical isomers of ; and

  • - : the number of all (or up to 100) chemical isomers of generated in this stage.

From Tables 5, 6, we observe the running time and the number of generated recombination solutions in this stage.

The chemical graph in , , and admits a large number of chemical isomers in some cases, where a lower bound -LB on the number of chemical isomers is derived without generating all of them. For the other instances, the running time for generating up to 100 target chemical graphs in this stage is less than 0.03 s. For some chemical graphs , the number of chemical isomers found by our algorithm was small. This is because some of the acyclic chemical graphs in the decomposition of have no alternative acyclic chemical graph other than the original one.

4.4.3 Generating neighbor solutions

Let be a chemical graph obtained by solving the MILP for the inverse problem. We executed a stage of generating neighbor solutions of .

We select an MILP for the inverse problem with a prediction function such that a solution of the MILP admits only two isomers in the stage of generating recombination solutions; that is, instance for property Bp with and instances , and for property Dc with .

In this experiment, we add to the MILP an additional set of two linear constraints on linear and quadratic descriptors as follows. For the two constraints, we use the prediction functions constructed by R-MLR for properties { Lp, Sl} with in Table 3.

Let denote the set of descriptors selected in the construction of prediction function for properties { Bp, Dc} with and { Lp, Sl} with in Table 3, and let { Bp, Dc} denote the union .

We regard each of

Lp

and

Sl

as a function from

to

for

{

Bp, Dc

}. We set

and let

consist of two linear constraints

Lp

and

Sl

. We set

or 0.05, which defines a two-dimensional grid space where

is mapped to the origin (see

for the details on the neighbors). In these experiments, we check the feasibility of 48 neighbors of the origin

in a grid in an increasing order w.r.t. the distance. The time limit of the solver is set to be 300 s. We do not check the feasibility of a neighbor

and ignore it if there exists a neighbor

for which the MILP formulation is infeasible and

is closer to

than

.The results of these experiments are listed in

Table 7

where

  • - (inst., ): specification and property ;

  • - : the number of atoms in the hydrogen-suppressed test instance;

  • - : the size of a sub-region in the grid;

  • - #sol: the number of new graphs inferred from 48 neighbors;

  • - #infs: the number of infeasible neighbors;

  • - #ign: the number of ignored neighbors;

  • - #TO: the number of neighbors for which the running time of the solver exceeds the time limit.

TABLE 7

(inst., )#sol#infs#ign#TO
(, Bp)500.151339
(, Dc)300.140107
(, Dc)450.120046
(, Dc)400.0500048

Results of generating neighbor solutions of .

The branch-and-bound method for solving an MILP sometimes takes an extremely large execution time for the same size of instances. We introduce a time limit to bound an entire running time to skip such instances when testing the feasibility of neighbors in . From Table 7, we observe that some number of neighbor solutions of the solution to the MILP could be generated for each of the four instances.

5 Conclusion

In the framework of inferring chemical graphs, the descriptors of a prediction function were mainly defined to be the frequencies of local graph structures in the two-layered model, and such a definition was important to derive a compact MILP formulation for inferring a desired chemical graph. To improve the performance of prediction functions in the framework, this article introduced a multiplication of two of these descriptors as a new descriptor and examined the effectiveness of the new set of descriptors. For this, we designed a method for reducing the size of a descriptor set to not lose the learning performance in constructing prediction functions and gave a compact formulation to compute a product of two values in an MILP. From the results of our computational experiments, we observe that a prediction function constructed by our new method performs considerably better than the prediction functions constructed by the previous methods for several chemical properties. Furthermore, the modified MILP, with the computation of quadratic descriptors, was able to infer desired chemical graphs with up to 50 non-hydrogen atoms.

Statements

Data availability statement

The original contributions presented in the study are included in the article/Supplementary Material; further inquiries can be directed to the corresponding author.

Author contributions

JZ: data curation, funding acquisition, software, validation, and writing–review and editing. NA: data curation, formal analysis, software, validation, and writing–review and editing. SC: software, validation, and writing–review and editing. RI: software, validation, and writing–review and editing. KH: data curation, software, and writing–review and editing. LZ: data curation, software, and writing–review and editing. HN: conceptualization, data curation, formal analysis, methodology, project administration, and writing–original draft. TA: conceptualization, data curation, funding acquisition, methodology, and writing–review and editing.

Funding

The author(s) declare that financial support was received for the research, authorship, and/or publication of this article. The publication cost of this article is funded by the Japan Society for the Promotion of Science, Japan, under grant numbers 22H00532, 22K19830, and 22KJ1979. The funding agency has no role in the conceptualization, design, data collection, analysis, decision to publish, or preparation of the manuscript.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

The author(s) declared that they were an editorial board member of Frontiers, at the time of submission. This had no impact on the peer review process and the final decision.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Glossary

  • Alpha

    isotropic polarizability

  • ALR

    adjustive linear regression

  • AmD

    experimental amorphous density

  • ANN

    artificial neural network

  • BHL

    biological half life

  • Bp

    boiling point

  • ChaR

    characteristic ratio

  • Cp

    critical pressure

  • Ct

    critical temperature

  • Cv

    heat capacity at 298.15 K

  • Dc

    dissociation constants

  • DieC

    dielectric constant

  • DisF

    dissipation factor

  • EDPA

    electron density on the most positive atom

  • ET

    entropy

  • FlmLO

    flammable limits lower of organics

  • Fp

    flash point in closed cup

  • Gap

    the energy difference between HOMO and LUMO

  • Ha

    heat of atomization

  • Hc

    heat of combustion

  • HcL

    heat capacity in liquid

  • HcS

    heat capacity in solid

  • Hf

    heat of formation

  • HOMO

    energy of highest-occupied molecular orbital

  • Hv

    heat of vaporization

  • Kov

    Kovats retention index

  • Kow

    octanol/water partition coefficient

  • LLR

    lasso linear regression

  • Lp

    lipophilicity

  • LUMO

    energy of lowest-unoccupied molecular orbital

  • MILP

    mixed-integer linear programming

  • MLR

    multidimensional linear regression

  • MlV

    mol volume

  • Mp

    melting point

  • Mr

    molar refraction at 20° degree

  • mu

    electric dipole moment

  • OptR

    optical rotation

  • Prm

    permittivity

  • QSAR

    quantitative structure–activity relationship

  • RfIdP

    refractive index of polymers

  • RfIdT

    refractive index of trees

  • SfT

    surface tension

  • Sl

    solubility

  • Tg

    glass transition

  • U0

    internal energy at 0 K

  • Vd

    vapor density

  • Vis

    viscosity

  • Vp

    vapor pressure

References

  • 1

    AkutsuT.FukagawaD.JanssonJ.SadakaneK. (2012). Inferring a graph from path frequency. Discrete Appl. Math.160, 1416–1428. 10.1016/j.dam.2012.02.002

  • 2

    AzamN. A.ZhuJ.HaraguchiK.ZhaoL.NagamochiH.AkutsuT. (2021a). “Molecular design based on artificial neural networks, integer programming and grid neighbor search,” in 2021 IEEE international Conference on Bioinformatics and biomedicine (BIBM) (IEEE), 360–363.

  • 3

    AzamN. A.ZhuJ.SunY.ShiY.ShurbevskiA.ZhaoL.et al (2021b). A novel method for inference of acyclic chemical compounds with bounded branch-height based on artificial neural networks and integer programming. Algorithms Mol. Biol.16, 18. 10.1186/s13015-021-00197-2

  • 4

    BiceranoJ. (2002). Prediction of polymer properties. Boca Raton: cRc Press.

  • 5

    BohacekR. S.McMartinC.GuidaW. C. (1996). The art and practice of structure-based drug design: a molecular modeling perspective. Med. Res. Rev.16, 3–50. 10.1002/(SICI)1098-1128(199601)16:1<3::AID-MED1>3.0.CO;2-6

  • 6

    CatacutanD. B.AlexanderJ.ArnoldA.StokesJ. M. (2024). Machine learning in preclinical drug discovery. Nat. Chem. Biol.20, 960–973.

  • 7

    CherkasovA.MuratovE. N.FourchesD.VarnekA.BaskinI. I.CroninM.et al (2014). Qsar modeling: where have you been? where are you going to?J. Med. Chem.57, 4977–5010. 10.1021/jm4004285

  • 8

    De CaoN.KipfT. (2018). Molgan: an implicit generative model for small molecular graphs. arXiv Prepr. arXiv:1805.

  • 9

    DraperN. R.SmithH. (1998). Applied regression analysis, 326. John Wiley and Sons.

  • 10

    DuchowiczP.CastroE. A.ToropovA. A. (2002). Improved qspr analysis of standard entropy of acyclic and aromatic compounds using optimized correlation weights of linear graph invariants. Comput. and Chem.26, 327–332. 10.1016/s0097-8485(01)00121-8

  • 11

    Gartner IIIT. E.FergusonA. L.DebenedettiP. G. (2024). Data-driven molecular design and simulation in modern chemical engineering. Nat. Chem. Eng.1, 6–9.

  • 12

    GhasemiF.MehridehnaviA.Pérez-GarridoA.Pérez-SánchezH. (2018). Neural network and deep-learning algorithms used in qsar studies: merits and drawbacks. Drug Discov. today23, 1784–1790. 10.1016/j.drudis.2018.06.016

  • 13

    Gómez-BombarelliR.WeiJ. N.DuvenaudD.Hernández-LobatoJ. M.Sánchez-LengelingB.SheberlaD.et al (2018). Automatic chemical design using a data-driven continuous representation of molecules. ACS central Sci.4, 268–276. 10.1021/acscentsci.7b00572

  • 14

    GoussardV.DupratF.GerbaudV.PloixJ.-L.DreyfusG.Nardello-RatajV.et al (2017). Predicting the surface tension of liquids: comparison of four modeling approaches and application to cosmetic oils. J. Chem. Inf. Model.57, 2986–2995. 10.1021/acs.jcim.7b00512

  • 15

    GoussardV.DupratF.PloixJ.-L.DreyfusG.Nardello-RatajV.AubryJ.-M. (2020). A new machine-learning tool for fast estimation of liquid viscosity. application to cosmetic oils. J. Chem. Inf. Model.60, 2012–2023. 10.1021/acs.jcim.0c00083

  • 16

    IdoR.CaoS.ZhuJ.AzamN. A.HaraguchiK.ZhaoL.et al (2021). A method for inferring polymers based on linear regression and integer programming. arXiv preprint arXiv:2109.02628.

  • 17

    IkebataH.HongoK.IsomuraT.MaezonoR.YoshidaR. (2017). Bayesian molecular design with a chemical language model. J. computer-aided Mol. Des.31, 379–391. 10.1007/s10822-016-0008-z

  • 18

    Jalali-HeraviM.FatemiM. H. (2001). Artificial neural network modeling of kovats retention indices for noncyclic and monocyclic terpenes. J. Chromatogr. A915, 177–183. 10.1016/s0021-9673(00)01274-7

  • 19

    KimJ.ParkS.MinD.KimW. (2021). Comprehensive survey of recent drug discovery using deep learning. Int. J. Mol. Sci.22, 9983. 10.3390/ijms22189983

  • 20

    KipfT. N.WellingM. (2016). Semi-supervised classification with graph convolutional networks. arXiv Prepr. arXiv:1609.02907.

  • 21

    KusnerM. J.PaigeB.Hernández-LobatoJ. M. (2017). “Grammar variational autoencoder,” in International conference on machine learning (Sydney, Australia: PMLR), 1945–1954.

  • 22

    LoY.-C.RensiS. E.TorngW.AltmanR. B. (2018). Machine learning in chemoinformatics and drug discovery. Drug Discov. today23, 1538–1546. 10.1016/j.drudis.2018.05.010

  • 23

    MadhawaK.IshiguroK.NakagoK.AbeM. (2019). Graphnvp: an invertible flow model for generating molecular graphs. arXiv preprint arXiv:1905.11600.

  • 24

    MiyaoT.FunatsuK. (2024). Data-driven molecular structure generation for inverse qspr/qsar problem. In Drug Development Supported by Informatics (Springer). 47–59.

  • 25

    MiyaoT.KanekoH.FunatsuK. (2016). Inverse qspr/qsar analysis for chemical structure generation (from y to x). J. Chem. Inf. Model.56, 286–299. 10.1021/acs.jcim.5b00628

  • 26

    MoleculeNet (2022). Available at: https://moleculenet.org/datasets-1.

  • 27

    NaefR. (2019). Calculation of the isobaric heat capacities of the liquid and solid phase of organic compounds at and around 298.15 k based on their “true” molecular volume. Molecules24, 1626. 10.3390/molecules24081626

  • 28

    PonceY. M. (2003). Total and local quadratic indices of the molecular pseudograph’s atom adjacency matrix: applications to the prediction of physical properties of organic compounds. Molecules8, 687–726. 10.3390/80900687

  • 29

    PubChem (2022). Annotations from hsdb. Available at: https://pubchem.ncbi.nlm.nih.gov/.

  • 30

    RoyK.SahaA. (2003). Comparative qspr studies with molecular connectivity, molecular negentropy and tau indices: Part i: molecular thermochemical properties of diverse functional acyclic compounds. J. Mol. Model.9, 259–270. 10.1007/s00894-003-0135-z

  • 31

    RupakhetiC.VirshupA.YangW.BeratanD. N. (2015). Strategy to discover diverse optimal molecules in the small molecule universe. J. Chem. Inf. Model.55, 529–537. 10.1021/ci500749q

  • 32

    SeglerM. H.KogejT.TyrchanC.WallerM. P. (2018). Generating focused molecule libraries for drug discovery with recurrent neural networks. ACS central Sci.4, 120–131. 10.1021/acscentsci.7b00512

  • 33

    ShiC.XuM.ZhuZ.ZhangW.ZhangM.TangJ. (2020). Graphaf: a flow-based autoregressive model for molecular graph generation. arXiv Prepr. arXiv:2001, 09382.

  • 34

    ShiY.ZhuJ.AzamN. A.HaraguchiK.ZhaoL.NagamochiH.et al (2021). An inverse qsar method based on a two-layered model and integer programming. Int. J. Mol. Sci.22, 2847. 10.3390/ijms22062847

  • 35

    TetkoI. V.EngkvistO. (2020). From big data to artificial intelligence: chemoinformatics meets new challenges. J. Cheminformatics12, 1–3. 10.1186/s13321-020-00475-y

  • 36

    XiaoN. (2017). Lipophilicity dataset - logd7, 4 of 1. 130 compounds.

  • 37

    XiongJ.XiongZ.ChenK.JiangH.ZhengM. (2021). Graph neural networks for automated de novo drug design. Drug Discov. today26, 1382–1393. 10.1016/j.drudis.2021.02.011

  • 38

    YangX.ZhangJ.YoshizoeK.TerayamaK.TsudaK. (2017). Chemts: an efficient python library for de novo molecular generation. Sci. Technol. Adv. Mater.18, 972–976. 10.1080/14686996.2017.1401424

  • 39

    YuanS.JiaoZ.QuddusN.KwonJ. S.-I.MashugaC. V. (2019). Developing quantitative structure–property relationship models to predict the upper flammability limit using machine learning. Industrial and Eng. Chem. Res.58, 3531–3537. 10.1021/acs.iecr.8b05938

  • 40

    ZhuJ.AzamN. A.CaoS.IdoR.HaraguchiK.ZhaoL.et al (2022a). Molecular design based on integer programming and quadratic descriptors in a two-layered model. arXiv Prepr. arXiv:2209.13527.

  • 41

    ZhuJ.AzamN. A.HaraguchiK.ZhaoL.NagamochiH.AkutsuT. (2022b). “A method for molecular design based on linear regression and integer programming,” in Proceedings of the 2022 12th international conference on bioscience, biochemistry and bioinformatics, 21–28.

  • 42

    ZhuJ.HaraguchiK.NagamochiH.AkutsuT. (2022c). Adjustive linear regression and its application to the inverse qsar. BIOINFORMATICS, 144–151. 10.5220/0010853700003123

Summary

Keywords

machine learning, integer programming, chemo-informatics, materials informatics, QSAR/QSPR, molecular design

Citation

Zhu J, Azam NA, Cao S, Ido R, Haraguchi K, Zhao L, Nagamochi H and Akutsu T (2025) Quadratic descriptors and reduction methods in a two-layered model for compound inference. Front. Genet. 15:1483490. doi: 10.3389/fgene.2024.1483490

Received

20 August 2024

Accepted

30 December 2024

Published

29 January 2025

Volume

15 - 2024

Edited by

Shoba Ranganathan, Macquarie University, Australia

Reviewed by

Yuansheng Liu, Hunan University, China

Tsung Fei Khang, University of Malaya, Malaysia

Updates

Copyright

*Correspondence: Naveed Ahmed Azam,

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics