Introduction
In order to design new materials for specific applications, we often have to search for materials which possess a given set of properties within a required window. For example, design of polymers for energy storage applications requires that such materials possess simultaneously high dielectric constant and bandgap.[Reference Mannodi-Kanakkithodi, Huan and Ramprasad1–Reference Sharma, Wang, Lorenzini, Ma, Zhu, Sinkovits, Pilania, Oganov, Kumar, Sotzing, Boggs and Ramprasad9] Another example is the design of solid polymer electrolytes for Li-ion batteries. Such materials are required to possess a suitably high Li-ion conductivity[Reference Das, Chandrasekaran, Venkatram and Ramprasad10] in conjunction with an appropriate electrochemical window.[Reference Ong, Andreussi, Wu, Marzari and Ceder11] In order to guide this search for materials with promising functionalities, scientists and researchers often rely on intuition gained from past experiments to design the next set of experiments. Even so, how does one decide whether to continue searching within a particularly promising class of materials or switch to searching for candidates in a more unexplored region of chemical or structural space? Rather than making such decisions based purely on human intuition, active-learning algorithms that exploit Bayesian optimization (BO) frameworks may be utilized.[Reference Warmuth, Liao, Rätsch, Mathieson, Putta and Lemmen12–Reference Yuan, Liu, Balachandran, Xue, Zhou, Ding, Sun, Xue and Lookman15]
Over the past decade, machine-learning (ML)-based algorithms and techniques have been of tremendous utility in a variety of fields, including in materials science.[Reference Mueller, Kusne, Ramprasad, Parrill and Lipkowitz16–Reference Peerless, Milliken, Oweida, Manning and Yingling19] Approaches to the ML can roughly be divided into two categories, passive and active, each making characteristic assumptions about the learner and its environment.[Reference Thrun20] In passive learning approaches such as classification, clustering, and regression, the ML algorithm or surrogate model can only make inferences on the environment based on the predetermined training data provided to it. Within the active-learning paradigm, however, the learning algorithm can make dynamic queries or suggestions to direct the learning process itself. For instance, when faced with a paucity of training data, the ML algorithm can direct the user to provide data from unexplored regions (quantified by the prediction) so as to gain knowledge and improve the overall accuracy of the model. On the other hand, provided with some prior user-defined objective/cost function, the algorithm can also direct the user to sample points which can maximize/minimize this function. The former approach of sampling unexplored regions with large uncertainty is referred to as “exploration” whereas the latter approach of acquiring data which maximizes the task-specific utility of a particular action/measurement is referred to as “exploitation.” Another common strategy is to balance exploration and exploitation, by taking both knowledge gain and the task-specific utility of actions into account.
In the current report, we outline an active-learning approach to efficiently search the chemical space for polymers which possess a glass transition temperature (T g) higher than a certain minimum threshold. In other words, given an initial (small) dataset of polymers and their corresponding T g measurements, our algorithm provides dynamic suggestions on the next set of polymers to synthesize and test so as to achieve our objective of designing high-T g polymers. We demonstrate this approach on a dataset of 736 polymer T g measurements that we have curated from various publicly available sources of data.[Reference Brandup, Immergut and Grulke21–23] Our results indicate that all three strategies (exploitation, exploration, and balance exploitation/exploration) consistently out-perform a random search approach. We observe that the two best-performing strategies are the balanced exploration/exploration and pure exploitation strategies. We notice that the former is the most robust strategy to employ in finding the most number of high-T g polymers using the least number of “experiments,” particularly when the size of the initial dataset is small. The active-learning framework and strategies detailed in this work can be generalized to many materials classes and can also be used to optimize more than one materials property simultaneously.
Method
First, we randomly select five polymers from the dataset of 736 polymers, and pretend that we know the T g value only for these polymers. We then train a Gaussian process regression (GPR) model on just the five randomly selected polymers; the experimental T g measurements for the remaining 731 polymers are kept hidden to the learning algorithm. Although this initial model is likely highly inaccurate, it provides us with the ability to make predictions of T g (along with the associated uncertainties) on the remaining 731 candidate polymers. As shown in Fig. 1, we then use one of the three different strategies (explained in the following sections) to iteratively choose the next-best polymer to synthesize and test (from the 731 remaining polymers) so as to achieve our goal of designing a certain number of high-T g polymers in the shortest possible time. Since this is a demonstrative problem, we do not actually synthesize and test the polymer but instead the T g of this sixth recommended polymer is “revealed” to the learning algorithm and added to the training set. A new ML model is trained on these six polymers and predictions are made for the remaining 730 polymers. This loop is repeated continuously until we have “discovered” 10 polymers possessing T g greater than 450 K.
Overview of a typical active-learning framework. First, a model is trained based on the current knowledge of a system or environment. Using this model, predictions and associated uncertainties are obtained for new cases. Depending on the strategy that one wishes to employ, one may use the prediction, the uncertainty, or both the prediction and uncertainty to suggest the next-best case to be studied. Once the new case has been tested, the results thus obtained are used to update the current knowledge of the system and the iteration is repeated until a desired objective is achieved.

Although we only perform a “virtual” experiment in the current work, such frameworks can be used in synergy with actual experiments[Reference Warmuth, Liao, Rätsch, Mathieson, Putta and Lemmen12] or time-consuming ab initio calculations.[Reference Rouet-Leduc, Barros, Lookman and Humphreys24,Reference Bassman, Rajak, Kalia, Nakano, Sha, Sun, Singh, Aykol, Huck, Persson and Vashishta25] As mentioned earlier, we utilize one of the three strategies to determine the next-best experiment. The three strategies utilize exploitation (searching close to the area of the current best estimate), exploration (searching in unexplored areas), and balanced exploitation/exploration. As explained in more detail in the “Workflow” section, the exploitation strategy uses only predicted T g to provide suggestions for the next-best polymer to synthesize and test. On the other hand, the exploration strategy provides suggestions based on just the uncertainty of predicted T g of the candidate polymers (not the prediction itself). Finally, the balanced exploration/exploitation strategy provides a recommendation based on the utilization of both the predictions and the associated uncertainties of the remaining candidate polymers.
We statistically evaluate the aforementioned three strategies within the context of finding 10 polymers possessing T g higher that 450 K. We also evaluate how the three different strategies perform when changing the size of the initial dataset and also as a function of the relative difficulty of the objective to be achieved.
Dataset
Data for this work were obtained from publicly-available collections of experimental measurements: Polymer Handbook,[Reference Brandup, Immergut and Grulke21] Prediction of Polymer Properties,[Reference Bicerano22] and an online repository of polymer properties.[23] The polymer dataset was highly-diverse and the constituent polymers were composed of nine atomic species: C, H, O, N, S, F, Cl, Br, and I. In order to visualize the diversity of 736 chemically unique polymers considered in this study, we performed principal component analysis (PCA) using 244 components of the hierarchical polymer fingerprint (described in the “Hierarchical polymer fingerprinting” section). Figure 2(a) shows distribution of polymers in a two-dimensional (2D) principal component space. Two leading components, PC1 and PC2 are assigned to x and y axes of the plot, respectively. The T g of each polymer is used to color code the depicted points. As illustrated, the dataset not only includes common polymers such as polyethylene and polystyrene but also polymers with a large number of rings or those with very long side-chains. Also the T g of the polymers in the dataset varied widely, ranging from 76 to 613 K with a mean of 326 K. A histogram of the distribution of T g values in the dataset is shown in Fig. 2(b). The repeat unit of the polymers were represented using the simplified molecular-input line-entry system (SMILES).[Reference Weininger26]
Graphical summary of the chemical space of polymers considered in this work. (a) 736 chemically unique polymers distributed in a 2D principal component space. Two leading components, PC1 and PC2 are produced by PCA, and assigned to x and y axes of the plot, respectively. The structure of a few representative polymers, with various number of rings and sizes of side chains are highlighted. (b) Distribution of the T g values for all the polymers considered in this work.

Hierarchical polymer fingerprinting
In order to comprehensively capture the key features that may control the T g, we utilized the hierarchical polymer fingerprinting scheme.[Reference Kim, Chandrasekaran, Huan, Das and Ramprasad27] The fingerprint building process consists of three hierarchical levels of descriptors. The first one is at the atomic scale wherein the occurrence of atomic triples (or a set of three contiguous atoms, e.g., C2–C3–C4, made up of a twofold coordinated oxygen, a threefold coordinated carbon, and a fourfold coordinated carbon) was calculated.[Reference Pankajakshan, Sanyal, de Noord, Bhattacharya, Bhattacharyya and Waghmare28,Reference Huan, Mannodi-Kanakkithodi and Ramprasad29] For the polymers considered in this study, there are 123 such components. The next level deals with quantitative structure property relationship descriptors, such as van der Waals surface area,[Reference Labute30] topological surface area,[Reference Ertl, Rohde and Selzer31,Reference Prasanna and Doerksen32] and fraction of rotatable bonds,[Reference Nguyen, Blum, van Deursen and Reymond33] implemented in the RDKit cheminformatics library.[34] Such descriptors, 99 in total, form the next set of components of our overall fingerprint. The third level and largest length scale descriptors captured morphological features such as the topological distance between rings, fraction of atoms that are part of side chains and length of largest side chain.[Reference Kim, Chandrasekaran, Huan, Das and Ramprasad27] We include a fixed set of 22 such morphological descriptors.
Workflow
As mentioned earlier, we set an arbitrary goal of finding 10 polymers possessing a T g greater than 450 K. To achieve this objective, we would have to perform a series of virtual experiments, on one polymer at a time, to obtain the true experimental value of T g for that polymer. At any given point of time, where the T g of N polymers have been measured, how does one decide which polymer would be the best candidate for the (N + 1)th measurement? Instead of performing an experiment on a randomly selected polymer, it would be optimal if a suggestion was provided via an effective decision-making framework (leveraging experience gained from past measurements) to accomplish the goal of finding 10 high T g polymers in the shortest possible time.
First, we start the design process by setting up an initial dataset with a random selection of five polymers from the entire dataset of 736 polymers. These five points are considered as “measured” polymers and will be used for training the initial surrogate model. Prior to developing the ML models we “fingerprinted” the polymers using a hierarchical polymer fingerprinting technique explained in the previous section. Among the fingerprint components, several morphological descriptors, such as the shortest topological distance between rings, fraction of atoms that are part of side-chains, and the length of the largest side-chain, are included to properly capture the relevant features that could influence the T g of a particular polymer.
Following the fingerprinting step, we created the surrogate model using GPR to learn the nonlinear relationship between the polymer fingerprints and their T g values. A radial basis function kernel was utilized and fivefold cross validation was used to determine the hyperparameters of the new model at every iteration of the active learning workflow. Once the ML model has been built by training on the initial dataset, T g values for the candidate polymers are predicted. We investigated the performance of three decision-making strategies (or acquisition functions); exploitation, exploration, and balanced exploitation/exploration, that employ different approaches (based on different criteria) to provide suggestions for the next-best experiment.
• Strategy 1—Exploitation: In this strategy the next-best polymer is the one that has the highest predicted T g value. This prediction is obtained from an ML model trained on previous experiments. The exploitation approach favors polymers that are chemically similar to high-T g polymers in the training set.
• Strategy 2—Exploration: Here, the next-best candidate is the one which displays the largest uncertainty (as predicted by the GPR model). Such an approach favors exploration of chemical space in order to acquire more information about the global landscape of T g variation across all the polymers to be tested. As such, this strategy is not optimal for the targeted search of high-T g polymers but we analyze the performance of this approach nonetheless.
• Strategy 3—Balanced exploitation/exploration: We utilize the maximum expected improvement (EI) acquisition function[Reference Shahriari, Swersky, Wang, Adams and De Freitas13,Reference Forrester and Sóbester35] to utilize both the prediction and uncertainty to provide the suggestion for the next-best polymer candidate. For example, especially in the early stages of the dataset expansion, a particular polymer may not possess the highest predicted T g but it may possess an unusually large uncertainty. Since the EI criterion takes into account both the prediction and the uncertainty, such a polymer may indeed be the most likely candidate for the next experiment. Within our GPR-based ML framework, the calculated EI metric is non-parametric and it automatically (and dynamically) provides a balance between exploration and exploitation approaches. The equations for the evaluation of the EI metric are shown in the Appendix.
• Strategy 4—Random selection: In this strategy, we randomly select a new candidate polymer, at every iteration, and add it's T g value to the list of “known” T g values. The first three strategies are evaluated against this random approach.
In order to show the workflow in action, Fig. 3 demonstrates how the first three strategies utilize different metrics to choose the next-best polymer candidate for measurement at one particular iteration. Once 10 polymers possessing T g greater than 450 K are obtained, the workflow is terminated and the number of iterations required to achieve this objective is noted. In order to remove the bias due to the initial (random) choice of five polymers, this entire workflow was repeated 50 times, for each strategy, in order to obtain the average number of iterations required for the completion of the objective for each of the four strategies.
(a) Parity plot depicting ML predictions versus the actual T g value for 42 polymers. Starting from an initial seed dataset of five polymers, 37 experiments were performed, resulting in the addition of 37 additional values to the dataset. The selection of the next-best candidate can be made using different criteria. (b) The predicted T g values for the remaining 694 polymer candidates. Polymer #184 has the highest predicted T g value and is thus selected when we use the exploitation approach. (c) Polymer #487 has the highest uncertainty associated with its prediction. When using the exploration framework, this particular polymer is the most suitable candidate since it indicates a point in chemical/fingerprint space that is least explored. (d) The EI metric is calculated for all remaining polymer candidates using both the polymer's T g prediction and the corresponding uncertainty associated with the prediction. This balanced approach would lead to the selection of polymer #418 as the next-best candidate. In (e) we summarize the actual effect of making a selection based on the three different frameworks. In this particular case, the EI metric leads to the selection of the most suitable candidate, possessing a T g which is above our required threshold of 450 K.

Since the performance of each strategy may vary depending on the size of the initial dataset or on the difficulty of the objective to be achieved, we also look into the relative performance of the four strategies when subject to the aforementioned variations. More specifically, we analyze the results when starting with different initial dataset sizes ranging from 5 to 60 and we also benchmark performance as a function of the threshold temperature (in the range of 300–450 K).
Results and discussion
As mentioned in the previous section, the above workflow is carried out to evaluate the performance of the three decision-making frameworks, i.e., exploitation, exploration, and balanced exploration/exploitation. In order to obtain statistically meaningful results, the workflow is repeated 50 times, each time starting with a different initial dataset (consisting of five randomly chosen polymers). Figure 4 demonstrates the number of experiments required (on average) to discover 1–10 polymers with a T g of above 450 K. The error bars denote the standard deviation across the 50 different runs. For the purpose of comparison, the rates of success when using a random approach are also depicted in Fig. 4.
Number of experiments required (on average) to discover 1–10 polymers with T g greater than 450 K when starting with an initial dataset size of five polymers. The average is calculated using 50 different runs and the standard deviation is denoted by the error bar.

The average number of experiments required to discover 10 high-T g polymers using the exploitation, exploration, balanced exploitation/exploration, and random approaches are 46, 98, 30, and 234, respectively. We now analyze the performance of each of the three different strategies individually.
• Strategy 1—Exploitation: The exploitation approach is the 2nd best-performing approach overall. From Fig. 4, we see that even though it has a very similar performance relative to the balanced exploitation/exploration approach, it possesses larger error bars. This implies that the exploitation strategy tends to get stuck in local minima, depending on the randomly chosen polymers in the initial dataset. As depicted in Fig. 5(a), we see that exploitation approach is the best-performing strategy when the initial dataset size is large. This is because larger initial dataset sizes lead to models that can predict T g accurately over a wider range of chemical space. Also, as shown in Fig. 5(b), the exploitation approach also performs well when the threshold temperature for satisfying the selection criteria is lower. Lowering the threshold temperature reduces the difficulty of the search and exploitation approach is easily able to find high-T g polymers in certain regions of chemical space.
• Strategy 2—Exploration: Of the three quantitative decision-making strategies, the exploration strategy is the least efficient one, even-though it still out performs the random search approach. From Fig. 4, it is interesting to note that the exploration strategy has a sharper slope in the initial stages of the search but the rate of success slows down toward the later stages of the search. The exploration approach performs well in the initial stages because it is able explore a larger variety of chemical space as a result of using uncertainty to provide suggestions for the next-best test case. However, toward the later stages of the search, it is no longer required to search in unexplored regions since the ML model already has a good understanding of which regions of chemical space are likely to show high-T g.
• Strategy 3—Balanced exploitation/exploration: The balanced exploitation/exploration approach is the best-performing and most robust strategy overall. As seen in Fig. 4, it not only performs better than the exploitation approach but it also shows small error bars and therefore it has a lower tendency to get stuck in local minima. It significantly outperforms the exploitation strategy when the initial size of the dataset is small. The EI metric dynamically provides the right balance between prediction and uncertainty of the prediction when suggesting the next-best polymer candidate to test. When the initial dataset size is small, uncertainties are larger across the test dataset and therefore this strategy will exhibit similar behavior as the uncertainty based exploration case. Toward the later stages of the search, the uncertainty (and the variation in uncertainty) is smaller across the remaining candidate polymers. Therefore, the balanced approach will perform in a manner akin to the exploitation strategy toward the end of search. For these reasons, as depicted in Fig. 5, the balanced approach performs exceptionally well when the initial dataset size is small and when the threshold temperature criteria is large.
• Strategy 4—Random selection: As expected, the random selection strategy is the most inefficient strategy for the discovery of high-T g polymers relative to the other three decision-making strategies which are instead guided by quantitative metrics at every iteration. The random strategy only performs well when the threshold T g temperature is low. This is simply due to the overall distribution of T g values in the dataset which has a mean T g value of 326 K as mentioned earlier.
(a) The number of required experiments (on average) to find 10 polymers with T g higher than 450 K starting from surrogate models trained on different initial dataset sizes. (b) Depicts the relative performance of the four different strategies on changing the threshold temperature for consideration as a high-T g polymer. The black error bars denote standard deviations across 50 runs.

Conclusion and outlook
To summarize, we have demonstrated an active-learning based approach that can be used to identify and discover new polymer materials possessing a high T g. Within the context of Bayesian decision theoretic frameworks, we have evaluated the performance of three metrics that can be used to provide suggestions for the “next-best experiment.” We observed that the exploitation and balanced exploitation/exploration approaches (based on the EI criterion) showed the best performance in terms of rates of discovery of promising polymer candidates. The balanced exploration/exploitation approach results in the most robust framework and performed especially well when the initial dataset size was small.
While ML techniques have been used widely in materials science over the past few years, such approaches are, more often than not, dependent on large amounts of data. In many cases the source of the data is a time-consuming experiment or quantum-mechanical calculation. While properties like T g are widely available in the literature, other crucial properties such as dielectric breakdown[Reference Mannodi-Kanakkithodi, Treich, Huan, Ma, Tefferi, Cao, Sotzing and Ramprasad8] or Li-ion diffusivity[Reference Das, Chandrasekaran, Venkatram and Ramprasad10] are hard to come by and difficult to measure. The integration of active-learning or BO frameworks within the materials discovery pipeline will provide quantitative guidance to systematically expand materials property datasets in an efficient and targeted fashion.
Acknowledgment
CK, AC and AJ were supported, respectively, by grants from the Office of Naval Research (Award Number N00014-16-1-2580), the Toyota Research Institute through the Accelerated Materials Design and Discovery program, and the National Science Foundation (Award Number 1743418).
Appendix: Expected improvement
Balancing between exploitation and exploration requires the optimization of a constant A that controls the trade-off between exploitation and exploration in the statistical higher bound,
where T g,pred(x i) is the predicted T g, and s(x i) is the uncertainty of the prediction given by the GPR model. x i is the fingerprint vector of a given polymer i. HB (x i) becomes T g,pred(x i) when A = 0 thus the selection of x i will become pure exploitation. When A = ∞, HB (x i) is equivalent to s (x i) (pure exploration).
Instead of manually finding a good A value, HB (x i) can be determined by maximizing the EI which is given by,
$$\eqalign{E\lsqb {I(x)} \rsqb = \, & \,P\lsqb {I(x)} \rsqb \lsqb {T_{{\rm g},{\rm pred,max}}-T_{{\rm g},{\rm pred}}(x)} \rsqb \cr & + \displaystyle{{s(x)} \over {\sqrt 2}} {\rm exp}\left[ {-{\left( {\displaystyle{{T_{{\rm g},{\rm pred,max}}-T_{{\rm g},{\rm pred}}(x)} \over {2s(x)}}} \right)}^2} \right]} $$P[I(x)] is the probability of improvement on selection of the next polymer with the fingerprint vector of x that will give an improvement on the best observed value so far, T g,pred,max. Using this function, we no longer need to explicitly find the best A in Eq. (1). Detailed mathematical derivation can be found in Ref. Reference Forrester and Sóbester35.





