Skip to main content
Nature Communications logoLink to Nature Communications
. 2021 Oct 12;12:5950. doi: 10.1038/s41467-021-26226-7

Coupling complementary strategy to flexible graph neural network for quick discovery of coformer in diverse co-crystal materials

Yuanyuan Jiang 1, Zongwei Yang 2, Jiali Guo 1, Hongzhen Li 2, Yijing Liu 3, Yanzhi Guo 1, Menglong Li 1, Xuemei Pu 1,
PMCID: PMC8511140  PMID: 34642333

Abstract

Cocrystal engineering have been widely applied in pharmaceutical, chemistry and material fields. However, how to effectively choose coformer has been a challenging task on experiments. Here we develop a graph neural network (GNN) based deep learning framework to quickly predict formation of the cocrystal. In order to capture main driving force to crystallization from 6819 positive and 1052 negative samples reported by experiments, a feasible GNN framework is explored to integrate important prior knowledge into end-to-end learning on the molecular graph. The model is strongly validated against seven competitive models and three challenging independent test sets involving pharmaceutical cocrystals, π–π cocrystals and energetic cocrystals, exhibiting superior performance with accuracy higher than 96%, confirming its robustness and generalization. Furthermore, one new energetic cocrystal predicted is successfully synthesized, showcasing high potential of the model in practice. All the data and source codes are available at https://github.com/Saoge123/ccgnet for aiding cocrystal community.

Subject terms: Cheminformatics, Crystal engineering, Self-assembly, Computational chemistry


Experimental determination of new cocrystals remains challenging due to the need of a systematic screening with a large range of coformers. Here the authors develop a flexible deep learning framework based on graph neural network demonstrated to quickly predict the formation of co-crystals.

Introduction

Cocrystals (CCs) are defined as a kind of single-phase crystalline materials composed of two or more neutral molecules assembled by noncovalent forces in definite stoichiometric ratio, which are neither solvates nor simple salts1. The co-crystallization could offer an opportunity to achieve novel properties for functional molecules through noncovalent bond synthesis with low cost, structural flexibility, and solution-processing capability2. Consequently, cocrystal engineering has been served as an effective design strategy in pharmaceutical, chemistry, and material fields. For example, CCs are used as means to address physicochemical, biopharmaceutical and mechanical properties and expand solid form diversity of Activate Pharmaceutical Ingredients (APIs)3. For organic functional materials, CCs have advanced optical, electrical and innovative functionalities4. Also, the cocrystal is an effective lever to improve the performance of explosives in order to achieve low-sensitivity and high-energy58.

Despite of the fascinating promises, how to choose coformer is a primary key in cocrystal engineering since the co-crystallization only occurs between some certain molecules9,10. Experimental determination of new co-crystals generally involves systematic screening with a large range of coformers, thus being costly in both time, effort and laboratory resources. To mitigate the problem, some computational approaches were proposed to predict co-formers likely to form CCs, for example, structural analysis using experimental data from the Cambridge Structural Database (CSD)11, network-based link prediction for cocrystal design12, thermodynamic characteristics of cocrystal formation13, molecular dynamics simulation14, intermolecular site pairing energy (ISPE)15, COSMO-RS (Conductor like Screening Model for Real Solvents) based on calculation of mixing enthalpy in a supercooled liquid phase16, and coformer screening based on cloud-computing crystal structure prediction (CSP) technology17. These methods above roughly follow knowledge-based1113 and physics-based1417 paradigms, which indeed provide useful guidelines for experimental designs. However, they are limited in the generalization for diversity of noncovalent interactions and molecular chemical structures. Therefore, it is highly desired to develop more general strategies with lower computation cost.

Recently, data-driven machine learning (ML) methods have become increasingly popular in chemical and material fields18 due to their optimization strategies that are automatically improved by empirical data from statistical perspectives, thus providing smart navigation in nearly infinite chemical space19. Several works already utilized the ML methods to make meaningful attempts to the cocrystal prediction, involving support vector machines (SVMs)20, Multivariate Adaptive Regression Splines21, Random Forest (RF), and Deep neural network (DNN)22. However, these ML methods coupled with the molecular descriptors or fingerprints only exhibited moderate accuracy for the cocrystal prediction. With rapidly accumulated data and booming of Graphic Processing Units (GPUs), deep learning (DL) has been far beyond conventional ML methods in many research domains2325. In particular, graph neural networks (GNNs), a subset of DL, has received increasing attentions due to great expressive power of graphs26. For GNN, end-to-end learning on the molecular graph replaces traditional feature engineering to model chemical properties27,28, which could avoid the conformational challenge from 3D representations of compounds29. Very recently, one GNN-based work on the cocrystal screening were reported to achieve ~97% accuracy for validation sets and ~80% for independent test sets30. Despite the performance on the validation set was boosted by GNN, the prediction accuracy on the independent test set that reflects the robustness and the generalization of the ML model to unseen samples is still moderate. However, improving the generalization ability has been considered to be one of the most difficult challenges for the ML31,32, which involves dataset, feature representation and model algorithm.

As accepted, the data-driven MLs mainly rely on the large amount of high-quality data. CSD33 contains a wealth of cocrystal structures that can supports the DL, but only be restricted to the positive samples (cocrystals) while there has been lack of invalid coformer combinations (negative sample) reported. Thus, Vriza et al.34 only used positive samples to construct one classification model to predict π–π co-crystals. In order to construct a balanced negative samples, Devogelaer and Wang combined two coformers into invalid co-crystals with the aid of some computational ways like network-based link prediction30 and molecular similarity-based method22. In the case of experimental data unavailable, the computation way is supposed to be a good alternative. However, for the CCs, there practically have been some negative samples reported by experiments despite of sparseness with respect to the positive samples, leading to an imbalanced dataset. ML on the imbalanced dataset is easily biased towards the majority group35,36, thus being difficult. However, in the real world, the problem of uneven data representation is often faced. Moreover, from the data mining perspective, the minority class is the one more important, as it may carry important and useful knowledge to determine the boundary between success and failure. Utilizing failed experiments, some ML-based works already achieved successes in assisting material synthesis37,38.

In addition, the feature representation characterizing the sample is also a key of the ML-based model, in particular for the imbalanced data. If both classes with high disproportion are well represented with non-overlapping distributions, good classification rates are still obtained by ML-based classifiers36. Conventional ML algorithms generally involve feature selections or optimizations (also called hand-engineering) to improve the model performance. While modern DL methods like GNNs often follow an “end-to-end” self-learning strategy, which emphasizes minimal a priori representational and computational assumptions to avoid “hand-engineering”. In other words, DL is isolated from potentially useful knowledge39. Theoretically, DL models can bypass “hand-engineering” features with sufficiently large data. However, the data available are often limited in many fields, which hardly support DL to learning sufficient knowledge characterizing the target property. In this case, it should be advocated for an approach that benefits from the complementary strength of “hand-engineering” and “end-to-end” learning40, just as biology uses nature and nurture cooperatively.

Motivated by the challenges above, we, in this work, reconstruct a reliable co-crystal dataset composed of 7871 samples, where 1052 negative samples are all collected from experimental reports to minimize the false negative and 6819 positive samples still come from CSD. To more completely capture the main driving force to the co-crystallization from the limited and imbalanced dataset, a complementary strategy is proposed for the co-crystal representation through combining the molecular graph and 12 molecular descriptors from priori knowledge that was revealed to make important contributions to the cocrystal formation11,41,42. With the feature representation, we explore a flexible GNN-based DL framework that effectively integrates the empirical knowledge into end-to-end learning on the molecular graph, which can be feasibly applied to the CCs that are significantly different from the training dataset through transfer learning. We name it as Co-Crystal Graph Network (CCGNet). To sufficiently evaluate its performance, seven competitive models were adopted to compare, including two traditional MLs and five DL models. In addition, different from the previous ML works that used one type of independent test similar to the training set, the robustness and generalization of CCGNet are strongly validated against three different types of co-crystal systems (pharmaceutical CCs, π–π CCs and energetic CCs) as unseen cases, which have been considered to be challenging for virtual screening of co-crystals30,34,43. Our model showcases high accuracy for the three independent testing sets, outperforming the competitive models. Based on the prediction result, a new energetic co-crystal predicted is successfully synthesized, further confirming the potential of CCGNet in practical application.

Results

Data collection and augmentation

Data availability is a critical bottleneck that limits applications of DL in cocrystal engineering and data quality is another key to the model performance. Thus, to obtain a reliable dataset, we construct a large dataset containing 7871 samples (called as CC dataset below), which are composed of 6819 positive samples (Supplementary Data 1) and 1052 negative ones (Supplementary Data 2). The positive samples come from CSD33, which contains more than one million crystal structures of small molecules and metal–organic molecular crystals resolved by X-ray and neutron diffraction experiments. As illustrated by Fig. 1a, the CCs are screened from CSD in terms of the following conditions:

  1. Only containing two chemically different polyatomic units.

  2. Having 3D structures and no disorder atoms to avoid low-quality structures.

  3. Not containing any of a set common solvents or small molecule9,44, which are liquid/gaseous at room temperature, as listed in the Supplementary Table 1.

  4. Only containing C, H, O, N, P, S, Cl, Br, I, F, and Si elements, ruling out metal elements.

  5. Molecular weight of each component <700, considering the fact that most organic CCs are generally small molecules.

  6. Being neutral components to exclude salts because most functional CCs are neutral/quasineutral45.

  7. Ruling out polymorphism to remove duplicate samples, considering that different crystal structures can be formed between the two same co-formers when the crystallization conditions change.

Fig. 1. Overview of CCGNet cocrystal-screening framework.

Fig. 1

a The flow chart of sample collection. Left: the collection of cocrystal positive samples. Right: the collection of cocrystal negative samples. b Sample Representation. c The architecture of the CCGNet model. Green and pink denote the calculation block at the message passing phase and the readout phase, respectively. d Customization of CCGBlock. Φu is the global state function realized by a single-layer feedforward neural network while Φv is a Graph-CNN layer to propagate and update node information. ρuv is a concatenation operation, which embeds hidden representation of u into atom vectors of each coformer. σ is activation function. e Illustration of the global attention. vi is node embedding. ai is the attention weight of each node. Uvu is a weighted summation of products of vi and ai.

Consequently, 6819 positive samples are obtained using CCDC python Application Programming Interface. Different from previous works that combined invalid co-crystal as negative samples merely using the computational rules22,30, our negative samples are collected from experimental reports scattered in ~186 pieces of literature (Supplementary Data 2) in order to minimize the false negative. For example, eutectics reported are taken as the negative samples since they are lack of long-range-order46. In addition, those that are failed to co-crystalize in the cocrystal-screening experiments are served as the negative samples. All coformer structures of the negative samples are downloaded from PubChem. Then, we use the PubChem Compound CID as the unique identification of each negative coformer to remove duplications. Taken together, we collected 1052 negative samples. The 7871 samples could support the DL training and also provides data resource for studying other properties of the CCs in the future. In addition, when the dataset is used to train the ML, we adopt a data augmentation strategy in order to enhance the robustness and the generalization ability of the model. The data augmentation strategy is usually advocated in DL31, in particular for the limited dataset. As the input of cocrystal involve a pair of coformers, we exchange their input orders to double the amount of the samples, in turn augmenting the dataset.

Representation of samples

As accepted, the sample representation is essential for the ML to fit the relationship between the molecular structure and its property. Different from traditional GNNs with samples characterized only by the molecular graph, we propose a complementary feature representation by combining priori knowledge and self-learning on the molecular graph to more completely capture the main driving force to co-crystallization from the limited dataset. Table 1 lists atomic and covalent bond features for the molecular graph used in the work. Twelve molecular descriptors are selected to represent priori knowledge since they were revealed by related studies to be highly associated with the cocrystal1ization11,41,42. Table 2 shows the 12 selected molecular descriptors involving the molecular shape, size, polarity, flexibility, and hydrogen bond tendency, which can be quickly calculated to facilitate high-throughput screening. As depicted by Fig. 1b, we take these molecular descriptors from the domain knowledge as global state u, which is embedded into a 2*12 matrix. The covalent bond information from the molecular graph is represented by an adjacency tensor A. Each slice Al is an adjacency matrix that represents one bond type, through which the other features besides the covalent bond also can be embedded into A as extra slices. The features of the atomic level from the molecular graph are transformed to the vertex matrix.

Table 1.

Atomic and bond attributes used in CCGNet.

Feature Description
Atom
 Atom type Cl, N, P, Br, B, S, I, F, C, O, H (one-hot)
 Hybridization SP2, SP3, SP, S (one-hot)
 Chirality None, R, S (binary)
 is_chiral True or False (binary)
 is_spiro True or False (binary)
 is_cyclic True or False (binary)
 is_aromatic True or False (binary)
 is_acceptor True or False (binary)
 is_donor True or False (binary)
 Explicitvalence Integer
 Implicitvalence Integer
 Formal charge Integer
 Degree Integer
 Total H number Integer
 Vdw radius Float
 Atomic_number Integer
Bond
 Bond type Single, double, triple, aromatic (one-hot)

Table 2.

Molecular descriptors used as the global state in CCGNet.

Molecular descriptor Description
S Short axis of an enclosing box (float)
S_L S/long axis of an enclosing box (float)
S_M S/medium axis of an enclosing box (float)
M_L Medium axis of an enclosing box/long axis of an enclosing box (float)
Globularity Surface of a sphere with the same volume as the molecule/area (float)
FrTPSA TPSA/SASA (float)
Fr_NO (n_N + n_O)/n_heavy (float)
Fr_AromaticAtoms n_ AromaticAtom/n_heavy (float)
HBA the number of H-bond acceptor (integer)
HBD the number of H-bond donor (integer)
RBN the number of rotatable bond (integer)
Dipole_Moment Dipole moment (float)

Construction of co-crystal graph network (CCGNet) model

With the complementary feature proposed, we accordingly construct a flexible graph neural network-based co-crystal prediction model named as CCGNet. Here, we formalize the CCGNet framework by introducing related concepts of Graph Nets (GNs)40 and Message Passing Neural Networks (MPNNs)47 paradigms. As shown in Fig. 1c, CCGNet is mainly composed of two stages, i.e., message passing phase and readout phase. The message passing is the core of MPNNs, which propagate vertex embedding to neighbors and update its embedding. As depicted by Fig. 1d, the message passing phase can be consist of N CCGBlocks (four CCGBlocks in this work), which are formalized by GN block. CCGBlock involves two trainable functions that are Φu and Φv. Herein, Φu is defined as a global state function and is constructed by a single-layer feedforward neural network, which computes a hidden representation of the global state associated with the 12 hand-selected molecular descriptors. Φv, a Graph-CNN layer48, is utilized to propagate and update information between nodes/atoms of the molecular graph using an adjacent tensor that represents the edges/bonds. ρuv is a concatenation operation, which is used to embed the hidden representation of u into the atom vector of each coformer.

In the readout phase, we also conduct the concatenate operation to further fuse the multilevel features, and introduce global attention mechanism49 into the readout function to calculate feature vectors from the molecular graph, which uses the weighting summation of the atom vectors instead of simply summing, as illustrated by Fig. 1e. To stabilize the learning process of self-attention and further optimize hidden embedding, we construct multi-head attention framework, which parallelly calculates k independent attention coefficients of each atom to produce k independent embeddings and then concatenate them to the vector for whole sample representation. After the global attention, we concatenate the hidden representation U of the global state with the graph embedding to further enrich the information. Finally, sequential dense layers are applied to the final prediction for co-crystal formation, as highlighted in the gray block in Fig. 1c. The details regarding the node update function, global state function, concatenation operation and readout function coupled with the attention mechanism are described in Methods.

Ablation experiments on feature representation and model architecture

We conduct some ablation studies on the feature representation and the model framework to investigate whether they are essential for the model performance. For the 12 molecular descriptors, seven are correlated with the 3D conformation, such as S, S_L, M_L, S_M, Globularity, FrTPSA and Dipole_Moment, which are labeled as 3D descriptors. The remaining five descriptors can be decided by the 2D structure, thus labeled as 2D ones. We separately remove the 2D descriptors, the 3D descriptors and all the 12 molecular descriptors from the global state and then test the impacts of the remaining features. Figure 2a shows their prediction performances on the tenfold cross-validation set, where the model only using the molecular graph presents the lowest accuracy (93.90% of BACC). After including the 2D descriptors, the prediction performance is slightly improved to be 94.16%. However, substantial improvement is achieved (97.68%) by alone embedding the seven 3D descriptors into the molecular graph. When the 12 molecular descriptors are all fused into the molecular graph, the prediction accuracy is further improved to be 98.54%. The result indicates that the self-learning of GNN on the molecular graph from the limited dataset hardly grasps sufficient structure information, in particular for the features associated with the 3D conformation. In the case, the feature complementary will alleviate the limitation.

Fig. 2. Ablation experiments on feature representation and model architecture.

Fig. 2

a Prediction performance for the network trained with different subsets of features and different concatenation ways for the tenfold cross-validation set. MG denotes only using Molecular Graph as input. MG + 2D denotes a combination of MG and the 2D descriptors while MG + 3D means a combination of MG and the 3D descriptors. MG + 2D + 3D represents the complementary input of MG, 2D, and 3D descriptors. CCGNet-simple denotes that the concatenation operation in each CCGBlock is removed, only retaining the concatenation at the readout phase. CCGNet-simple also uses the combination of MG, 2D and 3D descriptors as input. TPR, TNR, and BACC denote true positive rate, true negative rate and balanced accuracy (see Methods for details), respectively. b Illustration of two possible intermolecular interactions as new edge features for the molecular graph. The red dashes denote possible H-bonding (HB) and the yellow arrows represent the possible π–π stack (π–π). c Model performances of CCGNet trained with different edge representations for the tenfold cross-validation set. CB: the complementary features composed of the 12 molecular descriptors and the molecular graph only involving the covalent bond as the edge feature. CB + HB: introduction of the intermolecular H-bonding (HB) into the molecular graph of CB. CB + HB + π–π: adding HB and the intermolecular π–π interaction (π–π) into the molecular graph of CB. d Attention visualization for one representative cocrystal involving the intermolecular H-bonding and π–π interaction. The real co-crystal structure displayed by Mercury and the 2D structure is highlighted by the attention weights. The redder the color, the greater the attention weight. The cyan dash line denotes the intermolecular H-bonding. e t-SNE analysis on one representative fold of the tenfold cross-validation for CCGNet. Hidden representations are extracted after the concatenation operation in the readout phase. Red: Negative sample. Blue: Positive sample.

In addition, intermolecular H-bonds and π–π interactions have been considered to dominate the process of recognition and assembly for the co-crystallization4,50,51. Thus, we also investigate whether the prediction accuracy can be further improved by adding the two intermolecular interactions as two types of new edge features into the adjacency tensor for the molecular graph, as illustrated by Fig. 2b. Not expected, the model performance is not improved but dropping to some extent, as reflected by Fig. 2c. Practically, the 12 molecular descriptors involve the number of aromatic atoms and H-bond donors/acceptors, which are associated with the intermolecular H-bonding and π–π interaction. Furthermore, our CCGNet model also introduces the attention mechanism in the readout phase to further optimize the feature space. As reflected by Fig. 2d, a pair of coformers in the co-crystal structure exhibit –O5–H···N2, –O4–H···O3, and –O6–H···O1 H-bonding as well as π–π interaction between the benzene ring and the oxadiazole ring, while the attention weights just capture these groups involving the two intermolecular interactions. More examples and discussion are shown in Supplementary Fig. 1 and Supplementary Discussion. Therefore, the extra addition of the two edge features conversely increases the redundancy of features, making the model learning more difficult, in turn decreasing the prediction accuracy. Next, we perform an ablation experiment on the concatenation way that is crucial for the effectiveness of fusing the global state and the node feature, where we remove the concatenation (ρuv) in each CCGBlock and only retaining the concatenation at the readout stage (Supplementary Fig. 2). We call the framework as CCGNet-simple. It can be seen from Fig. 2a that CCGNet-Simple also get high accuracy, but still slightly lower than that including the concatenation at each CCGBlock. Finally, we use t-distributed stochastic neighbor embedding (t-SNE) analysis52 to visualize the input vectors of the dense layer for the tenfold cross-validation. Figure 2e representatively displays t-SNE of one-fold and the ten folds can be found in Supplementary Fig. 3. It is clear that the cocrystal embedding learned by CCGNet can well separate the positive and negative samples even in the unbalanced data distribution, which is benefited from the complementary feature and the reasonable model framework.

Performance of CCGNet and comparison with competitive models

To assess the performance of CCGNet, we also conduct a comparison study with seven competitive models involving classical ML (SVM and RF) and DL (GNN and DNN) algorithms. Herein, SVM and RF use our twelve molecular descriptors as input. For GNN, we focus on three frameworks solely using the molecular graph as input, including GCN30, enn-s2s47, and Graph-CNN48. As mentioned above, GCN exhibited a high performance on the validation set but moderate performance (~80%) for the independent test set of a balanced cocrystal dataset30. enn-s2s is a classic GNN based on the MPNN paradigm that was summarized from many GNNs by Gilmer et al.47 and showcased excellent performance in predicting some quantum chemical properties, while Graph-CNN as an extension of Convolutional Neural Network (CNN) in graph data achieved good accuracy in the binary classification task for the activity of compounds against cancer cell and the categories of enzymes48. Despite the fact that Graph-CNN48 and enn-s2s47 were not used in the cocrystal prediction, we still take them as the competitive models in order to more comprehensively gauge our model architecture and the feature complementary with respect to the classical GNN frameworks. It is noted that we did some modifications on the output layer of enn-s2s to meet the cocrystal prediction. In addition, two DNN models are considered in the comparison. One is constructed in terms of classical DNN paradigm only using the 12 molecular descriptors as input (labeled as DNN-des), through which we could further evaluate the performance of the DL only using the features from prior knowledge. The second DNN model coupled with the extended-connectivity fingerprints53 (ECFP) is derived from the cocrystal-screening work30, which is labeled as DNN-FP. All these models are retrained on our cocrystal dataset and Bayesian optimization is used to search their optimal hyper-parameters. Details regarding the construction of the seven competitive models and their Bayesian optimizations are described in Supplementary Methods. Supplementary Tables 2, 3 list the hyper-parameter spaces, while Supplementary Fig. 5 shows the best configurations determined by Bayesian optimization for the all the models including our CCGNet.

Table 3 depicts the performances of the models on the tenfold cross-validation set coupled with the data augmentation. It can be seen that all the competitive models give high prediction accuracies for the positive samples (TPRs), higher than 98%. But, their performances (86–90%) on the negative samples (TNRs) are significantly lower than TPRs. The observation is consistent with the prevalent problem that MLs on the unbalanced dataset is generally biased to the majority group (i.e., positive samples in the work). Thus, in the case, it is required to more carefully design the ML model. As expected, our CCGNet alleviates the challenge by means of the complementary feature and the flexible architecture, thus its accuracy on the negative samples (TNR) is still high up to 97.26% even in the uneven data distribution. Consequently, BACC of our CCGNet is highest (98.54%), greatly outperforming the seven competitive models (92.52–94.46%). In addition, Supplementary Table 4 exhibits the effect of the data augmentation on the prediction performances of all the models. It can be seen that most models present variances to the different input orders of a pair of coformers before the data augmentation. However, they become insensitive to the permutation order after using the data augmentation, and the overall prediction accuracies are to different extent improved, in particular for the GCN, DNN-FP, DNN-desc, RF and SVM models. In other words, the data augmentation could endow the ML model with invariance to some interferences, thus improving its robustness and performance.

Table 3.

Performances of the models on the tenfold cross-validation.

Model TPR (%) TNR (%) BACC (%)
SVMc 99.11 (±0.41) 89.81 (±3.55) 94.46 (±1.85)
RFc 99.82 (±0.15) 87.05 (±3.87) 93.44 (±1.89)
DNN-desc 99.55 (±0.19) 89.11 (±2.42) 94.33 (±1.25)
DNN-FPb,30 98.57 (±0.46) 86.48 (±4.86) 92.52 (±2.37)
enn-s2sa,47 98.63 (±0.38) 89.90 (±4.98) 94.27 (±2.41)
Graph-CNNa,48 98.94 (±0.39) 87.20 (±3.33) 93.07 (±1.60)
GCNa,30 98.98 (±0.43) 87.64 (±3.47) 93.31 (±1.76)
CCGNetd 99.82 (±0.14) 97.26 (±1.61) 98.54 (±0.79)

aModel input is the molecular graph.

bModel input is ECFP4.

cModel input is the twelve molecular descriptors.

dModel input is a combination of the molecular graph and the twelve molecular descriptors.

Verification and application of CCGNet

In order to validate generalization of CCGNet towards out-of-sample CCs (i.e., unseen CCs), we select three different types of co-crystals as independent test sets, which involve pharmaceutics, organic functional materials and energetic materials. For each type, we select some important cocrystal samples as representatives, which were reported to be challenging for the cocrystal screening. Figure 3a shows the number of positive and negative samples used in the three independent test sets. For achieving better prediction performance and stronger robustness, all the models adopt the ensemble learning strategy for these independent test sets, which combine the models from the tenfold cross-validation into an ensemble to “vote” on the prediction samples to obtain the final prediction result. As reported, the ensemble learning has been considered to be one of the most popular approaches for handling class imbalance36.

Fig. 3. Model performances on the independent test sets.

Fig. 3

a Samples of the independent test sets. Nico Nicotinamide, Carb Carbamazepine, Indo Indomethacin, Para Paracetamol. b The balanced accuracy for the four APIs. Cyan Nicotinamide, Orange Carbamazepine, Violet Indomethacin, Yellow Paracetamol, Green holistic performance of all APIs. c The prediction performance on the pyrene cocrystals. TPR, TNR, and BACC denote true positive rate, true negative rate and balanced accuracy, respectively. d The prediction performance on TNT with and without the transfer learning (pretraining). e The prediction performance on CL-20 with and without the transfer learning (pretraining). Green True Positive Rate (TPR), Orange True Negative Rate (TNR), Red Balanced Accuracy (BACC).

Independent testing for pharmaceutical co-crystals

Pharmaceutical co-crystals can improve the physicochemical properties of potential APIs and simultaneously preserve their pharmacological properties, thus playing important roles in the pharmaceutical industry. In order to test the generalization ability of our model in the pharmacological co-crystals, we collect four APIs as study cases, which include Nicotinamide, Carbamazepine, Indomethacin, and Paracetamol. Nicotinamide is a harmless and widely used food additive54,55 and is often used as a coformer for co-crystallization5658. Carbamazepine is used in the treatment of epilepsy and neuropathic pain. Due to limited bioavailability like low solubility, carbamazepine is generally needed to use a higher dose to achieve the desired therapeutic effect while co-crystallization is an effective method to improve its solubility5961. In addition, the co-crystal prediction on Indomethacin and Paracetamol exhibited poor performance in previously developed approaches, which was considered to the lack of account for the crystallinity contribution to cocrystal formation by Sun et al.17. To address this issue, they developed two virtual coformer screening approaches based on a modern cloud-computing CSP technology at a dispersion-corrected density functional theory (DFT-D) level, which significantly improved the prediction performance with respect to the other methods like Hansen Solubility Parameter, COSMO-RS, and SSIPS6264. However, the CSP method requires high computation cost, thus limiting its generalization in practice. In order to test whether our CCGNet model can achieve high accuracy, we also added the two challenging APIs (indomethacin and paracetamol) into the independent test sets (Fig. 3a). Supplementary Tables 58 show details regarding the positive and negative samples in the independent test set for the four APIs while Fig. 3b and Table 4 show the prediction performance on them. In addition, we sum the predictive score for the positive class over the CCGNet ensemble and sort them from high to low in Fig. 4 for visualization of the cocrystalization trend involving the four AIPs. In general, the higher the predictive score for the positive class, the greater the possibility of co-crystallization.

Table 4.

Prediction performances of all the models on the co-crystals involving Nicotinamide (Nico), Carbamazepine (Carb), Indomethacin (Indo), and Paracetamol (Para).

Model Metrics Nico Carb Indo Para All APIsa
SVM TPR (%) 100 92.86 100 100 97.3
TNR (%) 71.43 50 64.71 75 65.96
BACC (%) 85.71 71.43 82.35 87.5 81.63
RF TPR (%) 100 100 100 100 98.95
TNR (%) 100 37.5 52.94 100 75.47
BACC (%) 100 68.75 76.47 100 86.17
DNN-des TPR (%) 100 100 100 100 100
TNR (%) 85.71 62.5 47.06 100 70.21
BACC (%) 92.86 81.25 73.53 100 85.11
DNN-FP30 TPR (%) 94.44 92.86 100 25 89.19
TNR (%) 42.86 37.5 88.24 75 63.83
BACC (%) 68.65 65.18 94.12 50 76.51
enn-s2s47 TPR (%) 88.89 92.86 100 50 89.19
TNR (%) 57.14 37.5 82.35 75 63.83
BACC (%) 73.02 65.18 91.18 62.5 76.51
Graph-CNN48 TPR (%) 94.44 92.86 100 50 89.19
TNR (%) 42.86 62.5 76.47 75 63.83
BACC (%) 68.65 77.68 88.24 62.5 76.51
GCN30 TPR (%) 88.89 92.86 100 25 83.78
TNR (%) 50 87.5 82.35 100 76.6
BACC (%) 69.44 90.18 91.18 62.5 80.19
CCGNet TPR (%) 100 100 100 100 100
TNR (%) 100 100 82.35 100 93.62
BACC (%) 100 100 91.18 100 96.81

aAll APIs denote the holistic accuracy over Nico, Carb, Indo, and Para.

Fig. 4. The predictive score ranking of CCGNet for the independent test sets of the four APIs.

Fig. 4

a Coformers of nicotinamide. b Coformers of carbamazepine. c Coformers of paracetamol. d Coformers of indomethacin. The scores are listed from high to low. The coformer of the positive sample is labeled as the CSD refcode while the negative sample is named in terms of PubChem Compound ID. Green background denotes true positive sample while red background represents true negative sample. The green and red ticks denote the correct prediction and the wrong prediction, respectively.

It can be seen from Fig. 3b and Table 4 that our CCGNet achieves 100% accuracy for three of the four APIs (Nicotinamide, Carbamazepine, and Paracetamol), where their positive samples and the negative ones are completely separated in the score rank (Fig. 4ac). Although CCGNet does not get the highest accuracy for the indomethacin, it still achieves 91.18%, only inferior to DNN-FP30 (94.12%) and being ranked second. Despite the highest accuracy of DNN-FP on Indomethacin, it exhibits poor performance with lower than 70% on the other three APIs, much lower than our CCGNet, as shown by Table 4. In addition, although there are three prediction errors given by CCGNet for the negative samples of the indomethacin, the CCGNet model is still able to separate the three negative samples from the true positive samples in the score ranking (Fig. 4d), indicating that it still well evaluates the co-crystallization trend of the indomethacin. For RF, it also reaches 100% accuracy for Nicotinamide and Paracetamol, but its BACCs are only 68.75% and 76.47% for Carbamazepine and Indomethacin, respectively. For the other models including GCN30, their performances are also significantly inferior to CCGNet, in particular for the negative samples. In addition, it is worth noting that RF, SVM and DNN-des models only using the 12 molecular descriptors from the prior knowledge achieves the holistic BACC of 81.63–86.17% over the four APIs and higher than the four DL models only using the molecular graph or the molecular fingerprint (76.51–80.19%), further showcasing the importance of domain knowledge in the ML-based prediction. Overall, our CCGNet exhibits the highest holistic BACC (96.81%) over the four APIs and is greatly superior to the seven competitive models, further highlighting the advantages of our feature complementary and model framework. Compared to the CSP-based screening method with high computational cost17, CCGNet does not need to conduct the complex quantum mechanics calculation to obtain the information of the crystallinity but still achieves high prediction accuracy for these challenging APIs.

Independent testing for π–π co-crystals

In the field of organic functional materials, cocrystal has become a promising approach to construct new functional materials2,65, ranging from photonic to optical and electronic materials. Polycyclic aromatic hydrocarbons (PAHs) with rich π-orbitals make electrons mobility through intermolecular π–π interaction, thus being promising components to form co-crystals that have diverse electrical and optical properties66. However, compared to strong interactions like H-bonding or halogen bonding, the π–π interaction is relatively weak, leading to a larger difficulty in cocrystal synthesis and structure determination. Thus, it is highly desired to accurately predict the π–π cocrystal system9,67. Pyrene is an important PAH. As a strong electron donor, it can be combined with a variety of materials to form an electron donor–acceptor system, which has been used in fluorescent probes, organic semiconductors, and optoelectronic materials45,68. Therefore, we select pyrene as a case to validate the generalization performance of CCGNet to the π–π CCs. As shown in Fig. 3a, the independent test set involving pyrene contains 58 positive samples and 6 negative ones collected from experiment reports (see Supplementary Table 9 for details). Figure 3c shows the prediction performances on Pyrene for our CCGNet and the seven competitive models. Excepting for GCN (89.94%), all the models achieve very high BACC (>98%). In particular, our CCGNet and SVM show 100% accuracy. As reflected by Supplementary Fig. 6, all the positive and negative samples involving pyrene are completely separated.

Application and experimental validation for energetic co-crystals (ECCs)

Energetic materials (explosives, propellants, and fireworks) play important roles in military and civilian fields. However, the contradiction between the power and the sensitivity of explosives has been a well-known challenging problem, for example, the high-energy explosive generally exhibits low safety and vice versa69,70. The cocrystal engineering exhibits great potential in improving performance like stability, sensitivity, and oxygen balance43. However, the energetic molecules are often rich in nitro groups and lack of functional groups that devote important contribution to the traditional organic CCs, leading to larger difficulty in synthesis5,10. Therefore, a model that effectively predicts the formation of the energetic cocrystal will be an attractive tool for the experimental researches. Inspired by the issue, we apply CCGNet to the challenging task. Herein, we select two classic energetic explosives 2,4,6,8,10,12-hexanitrohexaazaisowurtzitane (CL-20) and 2,4,6-Trinitrotoluene (TNT) as independent cases. CL-20 is the most powerful non-nuclear energetic compound in practice71, yet its main disadvantage is its high sensitivity. The co-crystallization is an effective mean to improve its sensitivity. Compared to CL-20, TNT only has modest detonation velocity, but its advantage is low sensitivity to the impact72. Similarly, the co-crystallization between TNT and other explosives with high sensitivity could improve the comprehensive performance (high-energy and low sensitivity). Thus, we collected the 41 positive samples and 14 negative ones involving TNT and CL-20 as the independent test set (Fig. 3a).

However, when we directly apply the CCGNet model and the seven competitive ones trained on the cocrystal dataset (i.e., CC dataset) containing 7871 samples to the independent test set of TNT and CL -20, the balanced accuracies are very low, lower than 61% for TNT and 59% for CL-20 (see Fig. 3d, e and Supplementary Table 10), different from the high performance on the pharmaceutical and π–π CCs. The reason should be attributed to the fact that the energetic molecules have significantly different structures from common organic CCs from CSD, for example, rich nitro groups or caged structures like CL-20. Thus, the knowledge learned by the ML models on the cocrystal dataset is lack of the unique structural information, leading to the poor performance. To cape with the problem, it is necessary to effectively integrate the knowledge from the very limited energetic CCs into our CCGNet model trained on the large amount of the traditional CCs. Therefore, we adopt the transfer learning strategy, as illustrated by Fig. 5.

Fig. 5. The flow chart of the transfer learning for the energetic co-crystals.

Fig. 5

The energetic cocrystal prediction model is also based on the CCGNet framework involving CCGBlocks, Multi-head Global attention and dense layers. The CC dataset is first applied to pretrain the model. Then the weights pretrained on CC dataset are served as initialization weights of CCGBlocks, Multi-Head Global Attention and part of dense layers (boxes surrounded by blue dotted-lines), which is called as weight transfer. Then, the last two dense layers are initialized randomly (Gray box). Finally, ECC dataset is used to finetune all the weights of the model.

Concretely, we use the weights of pretrained models on the CC dataset as initialization weights of CCGBlocks, Multi-Head Global Attention and part of dense layers while only the last two dense layers are initialized randomly (Fig. 5). In order to finetune the model weights, we need to construct an additional energetic cocrystal dataset (called ECC dataset below) to highlight the knowledge from the energetic CCs. To the end, we collect 116 ECC positive samples from CSD, as shown in Supplementary Table 11. Unfortunately, there are no public reports on failed experiments on the energetic cocrystal, leading to the difficulty in obtaining the negative samples. Herein, we combine the experimental experiences and the ISPE method proposed by Musumeci et al.15 to construct the negative sample set. Supplementary Fig. 7 shows representative coformers used to construct the energetic cocrystal negative samples. Supplementary Table 12 shows the calculated results from the ISPE method for 864 co-crystal combination pairs. Finally, 127 pairs are selected as the negative samples for the energetic co-crystals. Detailed descriptions regarding the construction of the negative samples are presented in Supplementary Methods. Consequently, the ECC dataset applied to finetune the CCGNet model contains 116 positive samples and 127 negative ones.

We use the 243 energetic cocrystal samples to finetune the 10 pretrained models derived from the CC dataset and each model is subjected to 5-fold random cross-validation to obtain 50 energetic cocrystal predictive models. Then, ten models with the lowest loss in the validation set (Supplementary Table 13) are selected as the ensemble to predict cocrystal formation of TNT and CL-20, respectively. Figure 3d, e shows the performance on the independent test set after finetuning. It is clear that the predictive performance is remarkedly improved by the transfer learning. The ensembled BACCs are improved to be 97.83% for TNT and 97.22% for CL-20. Despite one wrong prediction observed for TNT, the positive and negative samples are still completely separated by the score ranking for TNT, as evidenced by Fig. 6a. For CL-20, seventeen of the total 18 positive samples are exactly the top-ranked hits in the scoring list of CL-20 and only one positive sample is low-ranked so that mixed with the negative samples and wrongly predicted, as reflected by Fig. 6b. Overall, our model almost captures the co-crystallization trends for TNT and CL-20, which can be served as a virtual screening tool to provide guidelines for the subsequent experiments.

Fig. 6. Score ranking predicted for the independent testing set of the energetic cocrystals.

Fig. 6

a Coformers of TNT. b Coformers of CL-20. c Structures of top ten coformers screened for CL-20. The green and red backgrounds indicate the true positive sample and true negative sample, respectively. The green tick denotes the correct prediction of the model while the red cross represents the wrong prediction. The score higher, the more likely to crystallize with CL-20.

To gauge the reliability of our model in practical application on one side, and explore new cocrystal for CL-20 on the other side, we collect 435 potential energetic compounds reported and used the finetuning CCGNet model to screen new potential coformers for CL-20. Figure 6c lists ten coformers screened in the top 10 ranked hits for CL-20, including five peroxides (coformer 1, 3, 4, 6, and 9), one fluorides (coformer 2), one triazole derivatives (coformer 10) and three energetic molecules only containing C, H, O, and N atoms (coformers 5, 7, 8). Considering usually high sensitivity of the peroxides73,74 and the requirement to environmental safety for modern explosives75,76. we first exclude the six coformers involving the peroxides and fluorides (cofomers 1, 2, 3, 4, 6, and 9) in the subsequent experiment on co-crystalization with CL-20. For the remaining coformers 5, 7, 8 and 10, we calculate their impact sensitivities and explosion heats that are two important properties involving the safety and the explosion performance. The calculation methods are described in Supplementary Methods and the calculated results are listed in Supplementary Table 15. Trading off the impact sensitivity and the explosion heat, we finally select the coformer 8 (1-methyl 4-nitropyrazole) to conduct the cocrystalization experiment (see Supplementary Methods for details). We mingle the coformer 8 and CL-20 with anhydrous methanol. After slowly evaporating the anhydrous methanol solution, the crystal is obtained, which is further analyzed by single crystal X-ray diffraction. Crystallographic data (Supplementary Table 16 and Supplementary Fig. 8) proves that a new CL-20/1-methyl-4-nitropyrazole cocrystal (CSD deposition number: 2107286) is formed. More experimental details are described in Supplementary Methods.

Discussion

Here we develop a GNN-based DL model coupled with the feature complementary strategy to accurately predict the formation of the cocrystal. A reliable cocrystal dataset is obtained by collecting 1052 negative samples from the experimental literature to minimize the false negative, along with 6819 positive samples from CSD. The model is strongly validated by seven competitive models including the traditional ML and the classical graph neural network (GNN) reported, supplemented by the three different and challenging out-of-sample tests (pharmaceutical CCs, π–π CCs, and energetic CCs). Benefited from the complementary feature representation and the flexible GNN-based framework, our model greatly outperforms the seven competitive models in the imbalanced dataset. Crucially, CCGNet achieves high prediction accuracy with >96% for the diverse data from different cocrystal spaces as unseen cases, exhibiting strong robustness and generalization. Finally, the experimental validation on a new energetic-energetic cocrystal of CL-20/1-methyl-4-nitropyrazole predicted further confirms the reliability of our model and high potential in practice. The result clearly confirms that embedding important priori knowledge can improve the performance of the DL, in particular for the limited dataset available. Collectively, these important technical advantages presented by our work, including the data augmentation, the feature representation and the flexible model architecture coupled with the attention mechanism and the transfer learning, could provide helpful guidelines for the application of the DL in practice. We also integrated the ensemble model as a pipeline that can provide the high throughput screening for the defined compounds pairs and generate a report form automatically. All Source Codes and Data are freely available at https://github.com/Saoge123/ccgnet. We expect that they will become a useful tool for aiding the design of cocrystal materials.

Methods

Node update function Φv

Graph-CNN, a spatial-based graph convolution network from Such et al.48 is used for the message passing and node update. The Graph-CNN relies on convolutional filter H to propagate and update node features. H is a N × N × C filter tensor, which is a stack of N × N filter matrices indexed by the node feature they filter. N is node number and C is the number of node feature. H(c) is defined in terms of Eq. (1):

Hc=l=1LhlcAl 1

Al is the l-th slice of adjacency tensorA whose shape is N × N × L. hl(c) is a scalar corresponding to a given input feature and a given slice of Al. L is the number of edge feature. The operation that filters the node feature Vin is defined by Eq. (2)

Vout=c=1CHcVinc+b 2

where Vin(c)RN×1 represents the c-th node feature that is the column of Vin. b is a scalar and VoutRN×1 is the result of the operation that filter the node feature Vin.

Here, multiple filters can be set by adding another dimension to H and then it becomes a tensor RN×N×C×F. As a result, the output Vout (Eqs. (3, 4) also becomes a tensor RN×F.

Voutf=c=1CHc,fVinc+b 3
Vout=f=1FVoutf 4

where Vout(f) is a column of VoutRN×F and is concatenation. For brevity, this operation is also written as Eq. (5)

Vout=GConvVin,F+b 5

Finally, to consider self-loop of nodes and activation function, the convolutional operation can be described as Eq. (6)

Vout=σIVinW0+GConvVin,F+b 6

σ is activation function (ReLU77 used in this work). I is a diagonal matrix that represents self-loop of nodes. Here W0 is trainable weight and bRF is bias.

Global state function Φu

A single-layer feedforward neural network is used as global state function to perform nonlinear transformation for the global attribute of molecules. It is defined by Eq. (7):

uout=σuW+b 7

where u is the global attribute of a molecule; σ is activation function (ReLU77 in this work). W and b are trainable weight and bias, respectively.

Concatenation operation ρuv

In CCGBlock, ρuv concatenates the global state (i.e., the 12 molecular descriptors) of each co-former and the node embeddings together. Cocrystal input (CCGraph) can be expressed as Eq. (8):

CCGraph=Uu1,u2,AA1,A2,VV1,V2 8

where the subscript refers to each co-former. V1and V2 can be expressed as Eqs. (910):

V1=v11,v12,,v1i,,v1n 9
V2=(v21,v22,,v2j,,v2m) 10

where the subscript refers to each co-former and the superscript denotes each atom. We perform the concatenation for every atom in terms of Eqs. (1112):

v1i=v1iu1 11
v2j=v2ju2 12

where denotes concatenation operation.

Readout function

Herein, we use multi-head global attention as the readout function. Following the way of human thinking, the attention mechanism uses limited attention resources to quickly screen out high-value information from a large amount of information, which has achieved remarkable performance in different tasks, for example, natural language processing78, image classification79 and speech recognition80. Thus, we introduce the attention mechanism in the readout function to further optimize the feature space derived from the message passing phase. Through highlighting atoms by the attention weights, we can explore how model learns the chemical structure and make the model interpretable.

Global attention calculates the attention coefficient of each node based on node features. Then the feature at the graph level is obtained by summing the product of attention coefficient and corresponding node feature, as described by Eqs. (13, 14):

a=softmaxφXin 13
Xgraph=i=1Naixi 14

where φ denote neural network (MLP in this work), aRN is N-dimensional vector composed by attention coefficient of each node. xi represents the feature of node i, which is a row of node features Xin.

Herein, we construct the multi-head attention into the global attention, which computes K attention coefficients of each node in parallel, yielding an attention matrix αRN×K (Eq. (15). Multi-head attention allows the model to jointly attend to information from different representation subspaces at different positions78.

α=softmaxϕXin 15

where ϕ denotes neural network (MLP in this work). Similar to the global attention, we calculate graph level embedding K times. As expressed by Eqs. (16, 17), these embeddings are concatenated to produce the final graph embedding Xgraphcat that is a K×C dimension vector.

Xgraphj=i=1Nαi,jxi 16
Xgraphcat=j=1KXgraphj 17

where Xgraphj is graph embedding calculated by using the j-th version of attention coefficients that is the j-th column of α. K is the head number and αi,j is an element of α.

Training and metrics

In order to improve the robustness of ML, all the models including the seven competitive ones are trained on the data augmented by exchanging the permutation of a pair of coformers for the 10-fold cross-validation set. To avoid deceitful performance caused by the majority class prediction in the imbalance distribution of the positive and negative samples (6.5:1 ratio in the work), we use True Negative Rate (TNR) and True Positive Rate (TPR) to directly measure the classification performance on the positive and negative classes independently, through which Balanced Accuracy (BACC) can be obtained as an overall metric to trade off the accuracies between the positive samples and the negative ones, as defined by Eqs. (18, 20).

TPR=Sensitivity=TPTP+FN 18
TNR=Specificity=TNFP+TN 19
BACC=TPR+TNR2 20

where TP is True Positive; FP is False Positive; TN is True Negative; FN is False Negative. All models are trained with Adam81 optimizer.

Model implementation

CCGNet is constructed under the opensource ML framework of TensorFlow82. CCGNet outputs two-dimensional vectors [a, b] which represent the predictive scores for negative and positive class, respectively. If b > a, the output is labeled as the positive sample, and vice versa. Supplementary Methods describes details regarding constructions of SVM, RF, DNN-des, DNN-FP, GCN, Graph-CNN, and enn-s2s. Bayesian optimization is used to search the optimal hyper-parameters for all the models (see Supplementary Methods). The representation of the samples is implemented by RDkit, OpenBabel, and CCDC Python Application Programming Interface. We train the models on Nvidia RTX 2080ti GPU.

Supplementary information

41467_2021_26226_MOESM2_ESM.pdf (102.3KB, pdf)

Description of Additional Supplementary Files

Supplementary Data 1 (73.2KB, xlsx)
Supplementary Data 2 (71.2KB, xlsx)

Acknowledgements

This project is supported by NSAF (Grand No. U1730127), Sichuan International Science and technology innovation cooperation project (Grant No. 2021YFH0140) and Key Laboratory Foundation (Grand No. 6142603190305). We would like to thank Prof. Chaoyang Zhang in Institute of Chemical Materials, China Academy of Engineering Physics for helpful suggestions on the energetic CCs.

Author contributions

X.P. designed the research. Y.J. performed the research. J.G. and Y.L. contributed to the model construction and data analysis. Z.Y. and H.L. performed the synthesis of cocrystal. Y.G. and M.L. contributed to the interpretation of results. Y.J. and X.P. wrote the paper. All authors reviewed the paper.

Data availability

The positive and negative samples generated in this study are provided in the Supplementary Data 1, 2. The X-ray crystallographic coordinates for structure reported in this study have been deposited at the Cambridge Crystallographic Data Center (CCDC), under deposition number: 2107286. These data can be obtained free of charge from The Cambridge Crystallographic Data Center via www.ccdc.cam.ac.uk/data_request/cif.

Code availability

To ensure reproducibility of the results, the source code of all the models used in this work can be acquired at https://github.com/Saoge123/ccgnet (10.5281/zenodo.5496365).

Competing interests

The authors declare no competing interests.

Footnotes

Peer review information Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

The online version contains supplementary material available at 10.1038/s41467-021-26226-7.

References

  • 1.Aitipamula S, et al. Polymorphs, salts, and cocrystals: what’s in a name? Cryst. Growth Des. 2012;12:2147–2152. doi: 10.1021/cg3002948. [DOI] [Google Scholar]
  • 2.Park, S. K., Kim, J. H. & Park, S. Y. Organic 2D optoelectronic crystals: charge transport, emerging functions, and their design perspective. Adv. Mater.30, 10.1002/adma.201704759 (2018). [DOI] [PubMed]
  • 3.Cerreia Vioglio P, Chierotti MR, Gobetto R. Pharmaceutical aspects of salt and cocrystal forms of APIs and characterization challenges. Adv. Drug Deliv. Rev. 2017;117:86–110. doi: 10.1016/j.addr.2017.07.001. [DOI] [PubMed] [Google Scholar]
  • 4.Sun, L., Wang, Y., Yang, F., Zhang, X. & Hu, W. Cocrystal engineering: a collaborative strategy toward functional materials. Adv. Mater.31, 10.1002/adma.201902328 (2019). [DOI] [PubMed]
  • 5.Bolton O, Matzger AJ. Improved stability and smart-material functionality realized in an energetic cocrystal. Angew. Chem.-Int. Ed. 2011;50:8960–8963. doi: 10.1002/anie.201104164. [DOI] [PubMed] [Google Scholar]
  • 6.Bolton O, Simke LR, Pagoria PF, Matzger AJ. High power explosive with good sensitivity: a 2:1 cocrystal of CL-20:HMX. Cryst. Growth Des. 2012;12:4311–4314. doi: 10.1021/cg3010882. [DOI] [Google Scholar]
  • 7.Landenberger KB, Matzger AJ. Cocrystal engineering of a prototype energetic material supramolecular chemistry of 2,4,6-trinitrotoluene. Cryst. Growth Des. 2010;10:5341–5347. doi: 10.1021/cg101300n. [DOI] [Google Scholar]
  • 8.Zhang C, Jiao F, Li H. Crystal engineering for creating low sensitivity and highly energetic materials. Cryst. Growth Des. 2018;18:5713–5726. doi: 10.1021/acs.cgd.8b00929. [DOI] [Google Scholar]
  • 9.Taylor CR, Day GM. Evaluating the energetic driving force for cocrystal formation. Cryst. Growth Des. 2018;18:892–904. doi: 10.1021/acs.cgd.7b01375. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Kent RV, et al. Cocrystal engineering of a high nitrogen energetic material. Cryst. Growth Des. 2018;18:219–224. doi: 10.1021/acs.cgd.7b01126. [DOI] [Google Scholar]
  • 11.Fábián L. Cambridge structural database analysis of molecular complementarity in cocrystals. Cryst. Growth Des. 2009;9:1436–1443. doi: 10.1021/cg800861m. [DOI] [Google Scholar]
  • 12.Devogelaer J-J, et al. Cocrystal design by network-based link prediction. CrystEngComm. 2019;21:6875–6885. doi: 10.1039/C9CE01110B. [DOI] [Google Scholar]
  • 13.Perlovich GL. Prediction of sublimation functions of molecular crystals based on melting points: cocrystal formation thermodynamics application. Cryst. Growth Des. 2017;17:4110–4117. doi: 10.1021/acs.cgd.7b00290. [DOI] [Google Scholar]
  • 14.Barua H, Gunnam A, Yadav B, Nangia A, Shastri NR. An ab initio molecular dynamics method for cocrystal prediction: validation of the approach. CrystEngComm. 2019;21:7233–7248. doi: 10.1039/C9CE01436E. [DOI] [Google Scholar]
  • 15.Musumeci D, Hunter CA, Prohens R, Scuderi S, McCabe JF. Virtual cocrystal screening. Chem. Sci. 2011;2:883–890. doi: 10.1039/c0sc00555j. [DOI] [Google Scholar]
  • 16.Klamt A. The COSMO and COSMO-RS solvation models. Wiley Interdisciplinary Rev. Computat. Mol. Sci. 2011;1:699–709. doi: 10.1002/wcms.56. [DOI] [Google Scholar]
  • 17.Sun G, et al. Virtual coformer screening by crystal structure predictions: crucial role of crystallinity in pharmaceutical cocrystallization. J. Phys. Chem. Lett. 2020;11:8832–8838. doi: 10.1021/acs.jpclett.0c02371. [DOI] [PubMed] [Google Scholar]
  • 18.Butler KT, Davies DW, Cartwright H, Isayev O, Walsh A. Machine learning for molecular and materials science. Nature. 2018;559:547–555. doi: 10.1038/s41586-018-0337-2. [DOI] [PubMed] [Google Scholar]
  • 19.Jordan MI, Mitchell TM. Machine learning: trends, perspectives, and prospects. Science. 2015;349:255. doi: 10.1126/science.aaa8415. [DOI] [PubMed] [Google Scholar]
  • 20.Wicker JGP, et al. Will they co-crystallize? CrystEngComm. 2017;19:5336–5340. doi: 10.1039/C7CE00587C. [DOI] [Google Scholar]
  • 21.Przybyłek M, et al. Application of multivariate adaptive regression splines (MARSplines) Methodology for screening of dicarboxylic acid cocrystal using 1D and 2D molecular descriptors. Cryst. Growth Des. 2019;19:3876–3887. doi: 10.1021/acs.cgd.9b00318. [DOI] [Google Scholar]
  • 22.Wang D, Yang Z, Zhu B, Mei X, Luo X. Machine-learning-guided cocrystal prediction based on large data base. Cryst. Growth Des. 2020;20:6610–6621. doi: 10.1021/acs.cgd.0c00767. [DOI] [Google Scholar]
  • 23.Segler MHS, Preuss M, Waller MP. Planning chemical syntheses with deep neural networks and symbolic AI. Nature. 2018;555:604–610. doi: 10.1038/nature25978. [DOI] [PubMed] [Google Scholar]
  • 24.Sanchez-Lengeling B, Aspuru-Guzik A. Inverse molecular design using machine learning: Generative models for matter engineering. Science. 2018;361:360. doi: 10.1126/science.aat2663. [DOI] [PubMed] [Google Scholar]
  • 25.Krizhevsky A, Sutskever I, Hinton GE. ImageNet classification with deep convolutional neural networks. Commun. ACM. 2017;60:84–90. doi: 10.1145/3065386. [DOI] [Google Scholar]
  • 26.Zhou, J. et al. Graph neural networks: a review of methods and applications. AI Open, 1, 57–81 (2020).
  • 27.Chen C, Ye W, Zuo Y, Zheng C, Ong SP. Graph networks as a universal machine learning framework for molecules and crystals. Chem. Mater. 2019;31:3564–3572. doi: 10.1021/acs.chemmater.9b01294. [DOI] [Google Scholar]
  • 28.St. John PC, Guan Y, Kim Y, Kim S, Paton RS. Prediction of organic homolytic bond dissociation enthalpies at near chemical accuracy with sub-second computational cost. Nat. Commun. 2020;11:2328. doi: 10.1038/s41467-020-16201-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Mater AC, Coote ML. Deep learning in chemistry. J. Chem. Inform. Model. 2019;59:2545–2559. doi: 10.1021/acs.jcim.9b00266. [DOI] [PubMed] [Google Scholar]
  • 30.Devogelaer, J.-J., Meekes, H., Tinnemans, P., Vlieg, E. & de Gelder, R. Co-crystal prediction by artificial neural networks. Angew. Chem. Int. Ed.59, 21711–21718 (2020). [DOI] [PMC free article] [PubMed]
  • 31.Shorten C, Khoshgoftaar TM. A survey on image data augmentation for deep learning. J. Big Data. 2019;6:1–48. doi: 10.1186/s40537-019-0197-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Sinz FH, Pitkow X, Reimer J, Bethge M, Tolias AS. Engineering a less artificial intelligence. Neuron. 2019;103:967–979. doi: 10.1016/j.neuron.2019.08.034. [DOI] [PubMed] [Google Scholar]
  • 33.Groom CR, Bruno IJ, Lightfoot MP, Ward SC. The Cambridge structural database. Acta Crystallogr. B Struct. Sci. Cryst. Eng. Mater. 2016;72:171–179. doi: 10.1107/S2052520616003954. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Vriza A, et al. One class classification as a practical approach for accelerating π–π co-crystal discovery. Chem. Sci. 2021;12:1702–1719. doi: 10.1039/D0SC04263C. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Kaur, H., Pannu, H. S. & Malhi, A. K. A systematic review on imbalanced data challenges in machine learning: applications and solutions. ACM Comput. Surv.52, 79, 10.1145/3343440 (2019).
  • 36.Krawczyk B. Learning from imbalanced data: open challenges and future directions. Prog. Artif. Intell. 2016;5:221–232. doi: 10.1007/s13748-016-0094-0. [DOI] [Google Scholar]
  • 37.Raccuglia P, et al. Machine-learning-assisted materials discovery using failed experiments. Nature. 2016;533:73–76. doi: 10.1038/nature17439. [DOI] [PubMed] [Google Scholar]
  • 38.Xie Y, et al. Machine learning assisted synthesis of metal–organic nanocapsules. J. Am. Chem. Soc. 2019;142:1475–1481. doi: 10.1021/jacs.9b11569. [DOI] [PubMed] [Google Scholar]
  • 39.Marcus, G. Deep learning: a critical appraisal. Preprint at arXivhttps://arxiv.org/ftp/arxiv/papers/1801/1801.00631.pdf (2018).
  • 40.Battaglia, P. W. et al. Relational inductive biases, deep learning, and graph networks. Preprint at arXivhttps://arxiv.org/abs/1806.01261 (2018).
  • 41.Safont-Sempere MM, Fernández G, Würthner F. Self-sorting phenomena in complex supramolecular systems. Chem. Rev. 2011;111:5784–5814. doi: 10.1021/cr100357h. [DOI] [PubMed] [Google Scholar]
  • 42.Wu A, Isaacs L. Self-Sorting: the exception or the rule? J. Am. Chem. Soc. 2003;125:4831–4835. doi: 10.1021/ja028913b. [DOI] [PubMed] [Google Scholar]
  • 43.Bennion JC, Matzger AJ. Development and evolution of energetic cocrystals. Acc. Chem. Res. 2021;54:1699–1710. doi: 10.1021/acs.accounts.0c00830. [DOI] [PubMed] [Google Scholar]
  • 44.Grothe E, Meekes H, Vlieg E, ter Horst JH, de Gelder R. Solvates, salts, and cocrystals: a proposal for a feasible classification system. Cryst. Growth Des. 2016;16:3237–3243. doi: 10.1021/acs.cgd.6b00200. [DOI] [Google Scholar]
  • 45.Sun LJ, et al. Molecular cocrystals: design, charge-transfer and optoelectronic functionality. Phys. Chem. Chem. Phys. 2018;20:6009–6023. doi: 10.1039/C7CP07167A. [DOI] [PubMed] [Google Scholar]
  • 46.Stoler E, Warner JC. Non-covalent derivatives: cocrystals and eutectics. Molecules. 2015;20:14833–14848. doi: 10.3390/molecules200814833. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, George E. Dahl. Neural Message Passing for Quantum Chemistry. In Proceedings of the 34th International Conference on Machine Learning. 70, 1263–1272 (2017).
  • 48.Such FP, et al. Robust spatial filtering with graph convolutional neural networks. IEEE J. Sel. Top. Signal Process. 2017;11:884–896. doi: 10.1109/JSTSP.2017.2726981. [DOI] [Google Scholar]
  • 49.Li, Y., Tarlow, D., Brockschmidt, M. & Zemel, R. Gated graph sequence neural networks. Preprint at arXivhttps://arxiv.org/abs/1511.05493 (2015).
  • 50.Gavezzotti A, Colombo V, Lo Presti L. Facts and factors in the formation and stability of binary crystals. Cryst. Growth Des. 2016;16:6095–6104. doi: 10.1021/acs.cgd.6b01146. [DOI] [Google Scholar]
  • 51.Prins LJ, Reinhoudt DN, Timmerman P. Noncovalent synthesis using hydrogen bonding. Angew. Chem. Int. Ed. 2001;40:2382–2426. doi: 10.1002/1521-3773(20010702)40:13&#x0003c;2382::AID-ANIE2382&#x0003e;3.0.CO;2-G. [DOI] [PubMed] [Google Scholar]
  • 52.Maaten LVD, Hinton G. Visualizing data using t-SNE. J. Mach. Learn. Res. 2008;9:2579–2605. [Google Scholar]
  • 53.Rogers D, Hahn M. Extended-connectivity fingerprints. J. Chem. Inf. modeling. 2010;50:742–754. doi: 10.1021/ci100050t. [DOI] [PubMed] [Google Scholar]
  • 54.Knip M, et al. Safety of high-dose nicotinamide: a review. Diabetologia. 2000;43:1337–1345. doi: 10.1007/s001250051536. [DOI] [PubMed] [Google Scholar]
  • 55.Perpétuo GL, et al. A combined approach using differential scanning calorimetry with polarized light thermomicroscopy in the investigation of ketoprofen and nicotinamide cocrystal. Thermochim. Acta. 2017;651:1–10. doi: 10.1016/j.tca.2017.02.014. [DOI] [Google Scholar]
  • 56.Fleischman SG, et al. Crystal engineering of the composition of pharmaceutical phases: multiple-component crystalline solids involving carbamazepine. Cryst. Growth Des. 2003;3:909–919. doi: 10.1021/cg034035x. [DOI] [Google Scholar]
  • 57.Stilinović V, Kaitner B. Salts and co-crystals of gentisic acid with pyridine derivatives: the effect of proton transfer on the crystal packing (and vice versa) Cryst. Growth Des. 2012;12:5763–5772. doi: 10.1021/cg301267h. [DOI] [Google Scholar]
  • 58.Zhang S-W, Brunskill APJ, Schwartz E, Sun S. Celecoxib–nicotinamide cocrystal revisited: can entropy control cocrystal formation? Cryst. Growth Des. 2017;17:2836–2843. doi: 10.1021/acs.cgd.7b00308. [DOI] [Google Scholar]
  • 59.Fuliaş A, et al. Screening and characterization of cocrystal formation between carbamazepine and succinic acid. J. Therm. Anal. Calorim. 2015;121:1081–1086. doi: 10.1007/s10973-015-4473-8. [DOI] [Google Scholar]
  • 60.Majumder M, et al. A carbamazepine-indomethacin (1: 1) cocrystal produced by milling. CrystEngComm. 2011;13:6327–6328. doi: 10.1039/c1ce05650f. [DOI] [Google Scholar]
  • 61.Zhang, H., Zhu, Y., Qiao, N., Chen, Y. & Gao, L. Preparation and characterization of carbamazepine cocrystal in polymer solution. Pharmaceutics9, 10.3390/pharmaceutics9040054 (2017). [DOI] [PMC free article] [PubMed]
  • 62.Mohammad MA, Alhalaweh A, Velaga SP. Hansen solubility parameter as a tool to predict cocrystal formation. Int. J. Pharm. 2011;407:63–71. doi: 10.1016/j.ijpharm.2011.01.030. [DOI] [PubMed] [Google Scholar]
  • 63.Abramov YA, Loschen C, Klamt A. Rational coformer or solvent selection for pharmaceutical cocrystallization or desolvation. J. Pharm. Sci. 2012;101:3687–3697. doi: 10.1002/jps.23227. [DOI] [PubMed] [Google Scholar]
  • 64.Grecu T, Hunter CA, Gardiner EJ, McCabe JF. Validation of a computational cocrystal prediction tool: comparison of virtual and experimental cocrystal screening results. Cryst. Growth Des. 2014;14:165–171. doi: 10.1021/cg401339v. [DOI] [Google Scholar]
  • 65.Huang Y, Wang Z, Chen Z, Zhang Q. Organic cocrystals: beyond electrical conductivities and field-effect transistors (FETs) Angew. Chem. Int. Ed. 2019;58:9696–9711. doi: 10.1002/anie.201900501. [DOI] [PubMed] [Google Scholar]
  • 66.Hu B-L, Zhang Q. Recent progress in polycyclic aromatic hydrocarbon-based organic co-crystals. Chem. Rec. 2021;21:116–132. doi: 10.1002/tcr.202000098. [DOI] [PubMed] [Google Scholar]
  • 67.Colombo V, Presti LL, Gavezzotti A. Two-component organic crystals without hydrogen bonding: structure and intermolecular interactions in bimolecular stacking. CrystEngComm. 2017;19:2413–2423. doi: 10.1039/C7CE00311K. [DOI] [Google Scholar]
  • 68.Figueira-Duarte TM, Müllen K. Pyrene-based materials for organic electronics. Chem. Rev. 2011;111:7260–7314. doi: 10.1021/cr100428a. [DOI] [PubMed] [Google Scholar]
  • 69.Millar DIA, et al. Crystal engineering of energetic materials: Co-crystals of CL-20. CrystEngComm. 2012;14:3742–3749. doi: 10.1039/c2ce05796d. [DOI] [Google Scholar]
  • 70.Klenov MS, et al. Synthesis of Tetrazino-tetrazine 1,3,6,8-Tetraoxide (TTTO) Angew. Chem. Int. Ed. 2016;55:11472–11475. doi: 10.1002/anie.201605611. [DOI] [PubMed] [Google Scholar]
  • 71.Nielsen AT, et al. Synthesis of polyazapolycyclic caged polynitramines. Tetrahedron. 1998;54:11793–11812. doi: 10.1016/S0040-4020(98)83040-8. [DOI] [Google Scholar]
  • 72.Wilson, W. S., Bliss, D. E., Christian, S. L. & Knight, D. J. Explosive Properties of Polynitroaromatics. (Naval Weapons Center China Lake, 1990).
  • 73.Dubnikova F, et al. Decomposition of triacetone triperoxide is an entropic explosion. J. Am. Chem. Soc. 2005;127:1146–1159. doi: 10.1021/ja0464903. [DOI] [PubMed] [Google Scholar]
  • 74.Klapötke TM, Stiasny B, Stierstorfer J, Winter CH. Energetic organic peroxides—synthesis and characterization of 1,4-Dimethyl-2,3,5,6-tetraoxabicyclo[2.2.1]heptanes. Eur. J. Org. Chem. 2015;2015:6237–6242. doi: 10.1002/ejoc.201500919. [DOI] [Google Scholar]
  • 75.Sabatini, J. J. & Oyler, K. D. Recent advances in the synthesis of high explosive materials. Crystals6, 10.3390/cryst6010005 (2016).
  • 76.Ravi P, Badgujar DM, Gore GM, Tewari SP, Sikder AK. Review on melt cast explosives. Propellants Explosives Pyrotechnics. 2011;36:393–403. doi: 10.1002/prep.201100047. [DOI] [Google Scholar]
  • 77.Nair, V. & Hinton, G. E. Rectified linear units improve restricted Boltzmann machines. In Proc. 27th International Conference on Machine Learning. 807–814 (ICML, 2010).
  • 78.Vaswani, A. et al. Attention is all you need. arXiv e-prints, https://arxiv.org/abs/1706.03762 (2017).
  • 79.Hu, J., Shen, L., Albanie, S., Sun, G. & Wu, E. Squeeze-and-Excitation Networks. IEEE Trans. Pattern Anal. Mach. Intell. PP (2017). [DOI] [PubMed]
  • 80.Chorowski, J., Bahdanau, D., Cho, K. & Bengio, Y. End-to-end continuous speech recognition using attention-based recurrent NN: first results. Eprint arxivhttps://arxiv.org/abs/1412.1602 (2014).
  • 81.Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. Preprint at https://arxiv.org/abs/1412.6980 (2014).
  • 82.Abadi, M. et al. Tensorflow: A system for large-scale machine learning. 12th {USENIX} Symposium on Operating Systems Design and Implementation. 265–283 (2016).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

41467_2021_26226_MOESM2_ESM.pdf (102.3KB, pdf)

Description of Additional Supplementary Files

Supplementary Data 1 (73.2KB, xlsx)
Supplementary Data 2 (71.2KB, xlsx)

Data Availability Statement

The positive and negative samples generated in this study are provided in the Supplementary Data 1, 2. The X-ray crystallographic coordinates for structure reported in this study have been deposited at the Cambridge Crystallographic Data Center (CCDC), under deposition number: 2107286. These data can be obtained free of charge from The Cambridge Crystallographic Data Center via www.ccdc.cam.ac.uk/data_request/cif.

To ensure reproducibility of the results, the source code of all the models used in this work can be acquired at https://github.com/Saoge123/ccgnet (10.5281/zenodo.5496365).


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES