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

Leveraging composition-based energy material descriptors for machine learning models

관련 패션 · (24) 패션(코오롱FnC)

기본 정보

저자
  1. Giovanni Trezza — Department of Energy, Politecnico di Torino, C.so Duca degli Abruzzi 24, Torino 10129, Italy
  2. Eliodoro Chiavazzo — Department of Energy, Politecnico di Torino, C.so Duca degli Abruzzi 24, Torino 10129, Italy
  3. Giovanni Trezza
  4. Eliodoro Chiavazzo
DOI
10.1016/j.mtcomm.2023.106579
저널
Materials Today Communications
발행년도
2023
발행기관
Elsevier BV
피인용수
6
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.mtcomm.2023.106579
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4383215346

평가 내용

관련도
관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '패션 > 패션(코오롱FnC)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

A comparison of several classifiers is presented, with a focus on the key choice and construction of a minimal set of suitable material features. To this end, an investigation is conducted over a properly selected and high quality database reporting low temperature superconductors, featurized by composition-based descriptors. Fully general strategies to reduce the number of descriptors for material classification are proposed and discussed. The first strategy aims at testing possible invariance of the target material property (here the critical temperature) with respect to (binary) groups of composition-based features in the form xiaxjb,a,b∈R. In addition, a multi-objective optimization procedure for reducing the set of composition-based material descriptors is also suggested and tested on the chosen use case. The latter procedure is then proven to be particularly convenient to be used in combination with Bayesian type classifiers. Finally, by means of the best-performing classification models, an analysis is conducted over all the ∼40,000 inorganic compounds without Ni, Fe, Cu, O in Materials Project (and not in the SuperCon database, here used for model training) and the corresponding predictions are provided. Among those, 41 materials are classified to show Tc≥15K with a probability higher than or equal to 0.6.

본문 90,783자

본문 펼치기
## Leveraging Composition-Based Material Descriptors for Machine Learning Optimization Giovanni Trezza <sup>1</sup>, Eliodoro Chiavazzo <sup>1∗</sup> 1 _Department_ _of_ _Energy,_ _Politecnico_ _di_ _Torino,_ _C.so_ _Duca_ _degli_ _Abruzzi_ _24,_ _Torino_ _10129,_ _Italy_ Abstract In this study, we evaluate several classifiers and focus on selecting a minimal set of appropriate material features. Our objective is to propose and discuss general strategies for reducing the number of descriptors required for material classification. The first strategy involves testing whether the critical temperature of the target material property is invariant with respect to binary groups of composition-based features. We also propose a multi-objective optimization procedure to reduce the set of composition-based material descriptors. The latter procedure is found to be particularly useful when applied to Bayesian classifiers. We test the proposed strategies focusing on low-temperature superconductors material data extracted from a public database. Keywords _Machine_ _Learning,_ _Material_ _Classification,_ _Composition-Based_ _Descriptors,_ _Energy_ _Materials,_ _Superconductors_ ## 1 Introduction Construction of reliable and predictive models for material properties is becoming an aspect of general interest in a number of areas. With a special focus on materials for energy applications, the _in_ _silico_ prediction of physical properties without resorting to time consuming simulations or expensive experiments is of utmost importance. One of the reason being that low-cost, long-lasting materials with high performance is key for energy storage technologies, as it may be responsible from most of the total cost [1]. A number of technological areas ranging from the energy up to healthcare sector are being transformed by superconducting materials and may greatly benefit from the discovery of new high performance materials. Superconductors are materials characterized by zero electrical resistivity when cooled below a superconducting critical temperature _T_ c [2]. Due to this fundamental property, such compounds have attracted attention in a wide range of different fields. Superconducting Magnetic Energy Storage (SMES) systems allow to store energy by means of a DC current flowing through a superconducting coil; as a consequence, energy can be stored in the resulting magnetic field with almost no loss and can be released back by discharging the coil [3]. Superconducting electromagnets are employed in fusion reactors like tokamak [4], Magnetic Resonance Imaging (MRI) [5, 6], Nuclear Magnetic Resonance (NMR) machines [7, 8], particle accelerators [9]. Other applications include Superconducting Quantum Interference Devices (SQUIDs) [10], particle detectors [11], fast fault current limiters [12]. As such, discovery of new superconductors in the near future is highly desirable and can have a crucial impact on the energy sector (among others). Therefore, several recent research studies have made extensive use of Machine Learning (ML)based approaches. In particular, Stanev _et_ _al._ [13] trained and validated models both for classification - prediction of the classes _superconductor_ / _non-superconductor_ - and for regression - prediction of the critical temperature, employing composition-based features together with the experimental _T_ cs of known superconductors. Konno _et_ _al._ [14] represented each chemical formula with four tables, ∗Corresponding author: eliodoro.chiavazzo@polito.it 1 corresponding to the periodic table blocks _s_, _p_, _d_, _f_, with such information being the input of a convolutional Deep Neural Network (DNN) able to predict the critical temperature. Le _et_ _al._ [15] trained and validated a Variational Bayesian Neural Network using superconductors compositionbased features for the _T_ c prediction. Roter _et_ _al._ used only chemical elements and stoichiometry, with no extracted features, to predict the critical temperature [16] and to cluster superconductors [17]. In our work, we deliberately target classical low temperature superconductors, as we could rely upon a high-quality database [18]. As such, while collecting the data from the database for training purposes, we discarded all materials containing the following elements: Fe, Ni, Cu (to avoid unconventional superconductivity [19]). Furthermore, we also removed materials with oxygen to avoid oxides and hopefully include in our analysis materials that are more likely to exhibit ductile behaviour. After the extraction of 145 composition-based features by means of Matminer [20] for each material formula, we have first trained and validated a tree-based regression model for the prediction of the critical temperature, over which we got insight of the most important features by means of SHAP [21, 22, 23]. Based on those features, we thus compare several binary classifiers, to distinguish compounds with the critical _T_ c exceeding a predefined threshold value from the remaining samples. A special focus of this study is on the identification and construction of a minimal and optimal set of key material descriptors (or features) to be adopted for classification purposes. To this end, we pursue two main strategies as briefly described below and schematically represented in Fig. 1: - We first perform the aforementioned SHAP analysis and establish a descriptor ranking based on the relevance of single features _{xi_ =1 _,...,n}_, where _n_ is the maximum number of adopted features; - In the spirit of the work by Tegmark and collaborators [24], we propose a general approach for investigating possible symmetries of the target quantity (here _T_ c) with respect to groups of the originally chosen features (according to the order suggested by SHAP). Without loss of generality, we focus on feature binary groups in the form _x_ <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ <sup>,</sup> <sup>with</sup> <sup>_a, b_</sup> <sup>_∈_</sup> <sup>R</sup> <sup>being</sup> <sup>properly</sup> generality, we focus on feature binary groups in the form _x_ <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ <sup>,</sup> <sup>with</sup> <sup>_a, b_</sup> <sup>_∈_</sup> <sup>R</sup> <sup>being</sup> <sup>properly</sup> selected constants. To this end, a proper algorithm based on the computation of the output gradient with respect to the input features by means of a Deep Neural Network (DNN) is discussed. <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ - Finally, a general framework for drastically reducing the number of the classifier features is proposed in the form of both single and multi-objective optimization problem. Among other purposes, the latter approach proves particularly convenient to _synthetically_ construct new descriptors particularly suited for Bayesian type classifiers, including a novel entropy-based classifier introduced and tested in this work. Finally, we use the classifiers with the best performance, to rank _∼_ 40 _,_ 000 compounds from Materials Project [25] and not occurring in the SuperCon. ## 2 Methods 2.1 Dataset creation First, we aim at the construction of a database suitable for ML regression to predict the critical temperature. In particular, the SuperCon database [18] collects both inorganic (under the class “Oxide and Metallic”) and organic materials (under the class “Organic”). We have considered only the entire subset of inorganic compounds, consisting of _∼_ 33 _,_ 000 entries, of which _∼_ 7 _,_ 000 have no _T_ c; for those latter compounds, we have assumed _T_ c = 0 K. We have thus dropped all materials whose formulae contain symbols like ‘-’, ‘+’, ‘,’, strings like ‘X’, ‘Z’, ‘z’ when not included in meaningful elements symbols (e.g., ‘Zn’), and with _T_ c _>_ 150 K, resulting in a reduction of the number of compounds to _∼_ 26 _,_ 000. Furthermore, after normalizing the formulae stoichiometry, we have followed the same approach explained by Stanev _et_ _al._ [13] for dealing with the duplicates. In particular, when the 2 Figure 1: Overview of the protocol used to find a reduced set of ruling descriptors for conventional superconductivity and for the construction of optimized mixed features. Over 7000 chemical compositions have been featurized with 145 descriptors. A regression model has been trained and validated over this dataset, and during the pre-processing routines (i.e., feature reduction by means of linear correlation analysis, descriptors variance analysis, correlation analysis with the _T_ c, see Supplementary Note 4 for details), many of those features are discarded, ending up with 81 descriptors. By means of SHAP, those 81 features are ranked in terms of importance. The work aimed at finding optimized mixed features for both regression/classification in the form _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>;</sup> <sup>and</sup> <sup>for</sup> <sup>classification,</sup> <sup>with</sup> <sup>power</sup> <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> mixed features for both regression/classification in the form _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>;</sup> <sup>and</sup> <sup>for</sup> <sup>classification,</sup> <sup>with</sup> <sup>power</sup> or linear combination of the primitive features. The latter descriptors have been tested over both new entropy-based classifiers and other classifiers. 3 same compound was reported with different _T_ c values, we have retained it with the average critical temperature only if std( _T_ c) _≤_ 5 K, otherwise we dropped all of its occurrences, ending up with _∼_ 16 _,_ 000 unique compounds. Moreover, we have taken into account only the classical superconductivity: we have dropped materials with Ni, Fe, Cu and O (to avoid oxides). We have finally dropped four outliers with _Tc_ _>_ 50 K (see Supplementary Note 6 for details). These latter steps left _∼_ 7200 materials for classical superconductivity, of which _∼_ 6700 have _T_ c _<_ 15 K. We have addressed those cleaning pre-processing by employing the Python Pandas package [26]. We have then converted each _brute_ formula into 145 composition-based descriptors by means of Matminer [20]. Specifically, as stated by Ward _et_ _al._ [27], they include stoichiometric attributes (depending on the elements’ ratios), elemental property statistics (representing mean, absolute deviation, minimum and maximum of 22 atomic properties, e.g., atomic number, atomic radii), electronic structure attributes (corresponding to the average fraction of electrons in _s_, _p_, _d_, _f_ valence shells over all the elements in the compound) and ionic compound attributes (including whether it is possible to form an ionic compound assuming all elements are present in a single oxidation state). 2.2 Regression models and descriptors choice As a second step, we have trained and validated two different regression ML models for the prediction of the critical temperature. The former is a tree-based model, allowing the exact computation of the coefficients of importance in terms of the _T_ c by means of the Tree SHAP interpretation algorithm [22, 21]. The latter is a Deep Neural Network (DNN), allowing the computation of the gradient of the critical temperature with respect to the input features, namely _∇T_ c( _x_ 1 _, . . ., xn_ ), which is necessary for the identification of the invariant groups in the form _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>.</sup> <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> for the identification of the invariant groups in the form _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>.</sup> Specifically, the former model is an ETR-based pipeline, with hyperparameter tuning in 5-fold cross validation, trained over the 85% of the dataset and tested over the remaining 15%. The latter is a DNN trained and validated over the 85% of the database - of which the 85% has been used for the training and the remaining 15% for the validation - and tested over the remaining 15%. For further details about the regression models, please refer to Supplementary Notes 3 and 4. 2.3 Invariant groups identification procedure For the identification of the invariant binary groups in the form _x_ <sup>_a_</sup> _i_ <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ For the identification of the invariant binary groups in the form _x_ <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ <sup>we</sup> <sup>have</sup> <sup>applied</sup> <sup>the</sup> <sup>following</sup> procedure. The critical temperature is a function of more variables, namely _T_ c = _T_ c( _x_ 1 _, . . ., xn_ ). If _T_ c is invariant with respect to a group of features in the form _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>,</sup> <sup>when</sup> <sup>this</sup> <sup>group</sup> <sup>is</sup> <sup>a</sup> <sup>constant</sup> <sup>_~~c~~_</sup> <sup>-</sup> <sup>even</sup> <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> invariant with respect to a group of features in the form _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>,</sup> <sup>when</sup> <sup>this</sup> <sup>group</sup> <sup>is</sup> <sup>a</sup> <sup>constant</sup> <sup>_~~c~~_</sup> <sup>-</sup> <sup>even</sup> varying the components _xi, xj_ separately - the critical temperature does not change as well. This yields _a_ ln( _xi_ ) + _b_ ln( _xj_ ) = _c_ (1) where _c_ = ln ~~(~~ _~~c~~_ ~~)~~ . If _c_ is constant, d _c_ = 0; so, Eq. 1 can be rewritten as, _a_ <sup><u>d</u></sup> <sup>_<u>xi</u>_</sup> _xi_ + _b_ <sup><u>d</u></sup> <sup>_<u>xj</u>_</sup> _xj_ = 0 _._ (2) An orthogonal vector n to the locus of points with d _c_ = 0 in a point ~~x~~ 0 = ( _xi,_ 0 _, xj,_ 0) has components ( _a/xi,_ 0 _, b/xj,_ 0), which normalized becomes the following unit vector: _<u>b</u>_ _xj,_ 0 ~~<u>�</u>~~ _<u>a</u>_ + ~~<u>�</u>~~ 2 + ~~<u>�</u>~~ 2 n ˆ =     _<u>b</u>_ _xj,_ 0 _xai,_ 0 ~~<u>�</u>~~ 2 <sup>_,_</sup> ~~��~~ ~~<u>�</u>~~ _<u>a</u>_ _xi,_ 0 ~~��~~ _<u>b</u>_ _xj,_ 0 ~~<u>�</u>~~ ~~<u>�</u>~~ 2  (3)   <sup>_._</sup> _xi,_ 0 _<u>a</u>_ _xi,_ 0 ~~��~~ _xj,_ 0 4 The condition of invariance with respect to the group _x_ <sup>_a_</sup> _i_ <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ The condition of invariance with respect to the group _x_ <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ <sup>requires</sup> <sup>that</sup> <sup>the</sup> <sup>components</sup> <sup>of</sup> <sup>the</sup> gradient _∇T_ c( _x_ 1 _, . . ., xn_ ) are aligned with n ˆ in ~~x~~ 0 ~~.~~ This yields the system _<u>T</u>_ <u>c</u> _∂xi_ - _<u>∂T</u>_ <sup><u>�</u></sup> <u>c</u> <u>x</u> 0 <sup>_−_</sup> <sup>_n_</sup> <sup>ˆ2</sup> <sup>= 0</sup>   <u></u> where  <u></u> _<u>T</u>_ <u>c</u> _∂xi_ - _<u>∂T</u>_ <sup><u>�</u></sup> <u>c</u> - <u>x</u> 0 <sup>_−_</sup> <sup>_n_</sup> <sup>ˆ1</sup> <sup>= 0</sup> _∂xj_ - _<u>∂</u>_ <sup><u>�</u></sup> - <u>x</u> 0 <sup>_−_</sup> <sup>_n_</sup> <sup>ˆ2</sup> <sup>= 0</sup> <u>x</u> 0 �2 <u>x</u> 0 �2 - _∂xi_ _<u>∂T</u>_ <sup><u>�</u></sup> <u>c</u> - _∂xj_ _<u>∂T</u>_ <sup><u>�</u></sup> <u>c</u> <u>�</u> <u>�</u> - <u>x</u> 2 0 _∂xi_ �� _<u>∂T</u>_ <u>c</u> _∂xi_ �� _<u>∂T</u>_ <u>c</u> _∂xi_ �� _<u>∂T</u>_ <u>c</u> - <u>x</u> 2 0 _∂xi_ - _<u>∂T</u>_ <u>c</u> _∂xj_ - _<u>∂T</u>_ <u>c</u> <u>x</u> 0 <u>x</u> 0 <u>x</u> 0 = = + _∂xj_ - _<u>∂T</u>_ <u>c</u> + _∂xj_ - _<u>∂T</u>_ <u>c</u> (4) <u>�</u> _−_ 1 _/_ 2 <u>�</u> _−_ 1 _/_ 2 (5) <u>x</u> 0 and _n_ 1 _, n_ 2 represent the two components of the unit vector n ˆ. If the non-linear system in Eq. 4 is satisfied for the same exponents ( _~~a~~_ _, b_ ) over all the domains of the variables ( _xi, xj_ ) - namely _xi,_ min _≤_ _∀xi_ _≤_ _xi,_ max and _xj,_ min _≤∀xj_ _≤_ _xj,_ max - the group _xi_ <sup>_~~a~~_</sup> <sup>_xb_</sup> _j_ <sup>is</sup> <sup>an</sup> <sup>intrinsic</sup> <sup>variable.</sup> _i_ <sup>_~~a~~_</sup> <sup>_xb_</sup> _j_ _∀xi_ _≤_ _xi,_ max and _xj,_ min _≤∀xj_ _≤_ _xj,_ max - the group _xi_ <sup>_~~a~~_</sup> <sup>_xb_</sup> _j_ <sup>is</sup> <sup>an</sup> <sup>intrinsic</sup> <sup>variable.</sup> From the practical viewpoint, this has required the computation of the gradient _∇T_ c( _x_ 1 _, . . ., xn_ ), where the function _T_ c( _x_ 1 _, . . ., xn_ ) is represented by the DNN - built by means of Tensorflow [28] - linking the critical temperature with the input features. In particular, once the network has been trained and validated, we have employed the automatic differentiation to compute those partial derivatives. Specifically, for getting e.g., _<u>∂T∂xj</u>_ <u>c</u> over all the domain of the variable _xj_, we have fixed all the other - and validated, we have employed the automatic differentiation to compute those partial derivatives. Specifically, for getting e.g., _<u>∂T∂xj</u>_ <u>c</u> over all the domain of the variable _xj_, we have fixed all the other - variables ( _x_ 1 _, . . ., xj−_ 1 _, xj_ +1 _, . . ., xn_ ) to their average values in the original database. Finally, for each group of two features _xi_ and _xj_, we have computed 100 different times the values of _a_ and _b_ respectively, comparing them for getting insight of possible invariance. The above approach has been tested in the Supplementary Note 2 by means of properly designed synthetic example. _<u>∂T</u>_ <u>c</u> _∂xj_ 2.4 QEG-based probabilistic classifier In addition to more classical classifiers, we have attempted the construction of maximum Shannon entropy-based probabilistic classifier based on the concept of Quasi Equilibrium Manifold as defined in [29, 30] and implemented in the discrete form of Quasi Equilibrium Grid (QEG) as discussed in [31, 32, 33, 34]. The main idea is described below. Given a number _s_ of important descriptors, we have first discretized those features from the original dataset by means of a _s−_ dimensional binning, where each descriptor accounts for a number of bins _N_ 1 _, . . ., Ns_ . Our aim was thus to build a probability distribution _p_ ( _x_ 1 _, . . ., xs_ ) having the same mean vector and covariance matrix of the original binned data; among the infinite distributions respecting those bounds, we were interested in the one maximizing the Shannon Entropy. Given the total number of _s_ _−_ dimensional bins _N_ = _N_ 1 _×· · ·×_ _Ns_, the general idea consists in starting with a flattened probability distribution p <sup>0</sup> = ( _p_ 1 _, . . ., pN_ ) <sup>0</sup> and ending up with a corrected distribution, which respects the constraints of mean vector and covariance we have imposed. The QEG guarantees that, if p <sup>0</sup> lies on the surface of maximum Shannon Entropy, also any corrected distribution will lie on the same surface. For this reason, we have always chosen p <sup>0</sup> as the uniform distribution, where each entry is 1 _/N_ . To this end, we have defined a matrix m _∈_ R <sup>_l×N_</sup>, where _l_ = (3 _s_ + _s_ <sup>2</sup> ) _/_ 2. The first _s_ rows of m represent the binning of those _s_ descriptors. The remaining _l −_ _s_ rows represent the covariance matrix entries of those _s_ descriptors; namely, given the integers _i, j_ _∈_ [1 _, s_ ], with _i ≥_ _j_, the generic row of m among the last _l_ _−_ _s_ rows is the result of the element-wise product ( m _i −_ _µi_ )( m _j −_ _µj_ ), where _µi, µj_ are the means of the _i−_ th and _j−_ th descriptor respectively, while m _i,_ m _j_ are the _i−_ th and _j−_ th rows of m respectively. Furthermore, we define the matrix E = ( m _,_ 1 ) <sup>_⊤_</sup>, where 1 = (1 _, . . .,_ 1) _∈_ R <sup>_N_</sup> represents the normalization condition for probability. Let denote the null space of 1 with _ρ_ _∈_ R <sup>_N_</sup> <sup>_×_</sup> <sup>(</sup> <sup>_N_</sup> <sup>_−_</sup> <sup>1)</sup> and 5 the null space of E with t _∈_ R <sup>_N_</sup> <sup>_×_</sup> <sup>(</sup> <sup>_N_</sup> <sup>_−l−_</sup> <sup>1)</sup> . We thus construct a square matrix A _∈_ R <sup>(</sup> <sup>_N_</sup> <sup>_−_</sup> <sup>1)</sup> <sup>_×_</sup> <sup>(</sup> <sup>_N_</sup> <sup>_−_</sup> <sup>1)</sup> and a vector b _∈_ R <sup>_N_</sup> <sup>_−_</sup> <sup>1</sup> . For the first _N_ _−_ _l −_ 1 rows, the generic elements correspond to _Aij_ = _⟨_ t _i, ⟨_ diag( _−_ 1 _/_ p ) _,_ _ρ_ _j_ ) _⟩⟩_ (6) _bi_ = _⟨_ (1 + ln( p )) _,_ t _i⟩_ while for the remaining _l_ rows they are _Aij_ = _⟨_ _ρ_ _j,_ m _i⟩_ (7) _bi_ = 0 where t _i_, _ρ_ _j_ and m _i_ are the _i_ -th column of t, the _j_ -th column of _ρ_ and the _i_ -th row of m respectively, p represents the flattened probability distribution at the current iteration step, _⟨·, ·⟩_ denotes the dot product. The correction procedure for the _i_ -th bound is carried out as follows: (i) the starting point is number of items belonging to the _j_ -th _s_ -dimensional bin over the total number of items (namely, computedthe frequency),as _⟨_ m (iii) _i,_ p _⟩_ the, (ii)resultingthe desiredresidualvalueisisfilledcomputedby solvingas _⟨_ m the _i,_ - p system _⟩_, where A <sup>_k_</sup> the p <sup>_k_</sup> <sup>+1</sup> _j_ -th= b entry <sup>_k_</sup> iteratively,of p - is theby replacing time by time _bN_ _−l−_ 1+ _i_ with a correction step _ε_, where p <sup>_k_</sup> <sup>+1</sup> = p <sup>_k_</sup> + _δ_ p <sup>_k_</sup> and _δ_ p <sup>_k_</sup> represents the correction resulting from the _k_ -th iteration, (iv) when the correction over the _i_ -th bound is complete, the correction over the _i_ + 1-th bound can start, by imposing _bN_ _−l−_ 1+ _i_ = 0 and _bN_ _−l−_ 1+ _i_ +1 = _ε_ . ## 3 Results and discussion As mentioned above, and in line with others in the literature [13, 14, 15, 16, 17], we adopted a convenient source of data, namely the SuperCon database [18] which collects the values of critical temperatures _T_ c for superconducting materials known from literature. To our knowledge, SuperCon represents the largest database of its kind, from which we have extracted a list of _∼_ 16 _,_ 000 materials. Beyond the _T_ c values, the SuperCon database provides only the chemical composition of a compound. The latter info was thus converted into meaningful features by means of Matminer [20], allowing us to associate the normalized brute formula of each compound with 145 composition-based descriptors (see Methods for further details). Armed with such features, we can thus make use and compare the performance of several classifiers aiming at predicting the probability for a compound to be a superconductor candidate. In our study, we made use of known classifiers. In addition, we also investigate a Bayesian type classifier based on the concept of Quasi-Equilibrium Manifold [29, 30, 31, 33], as detailed above. 3.1 Models for predicting the critical temperature value We have first trained and validated an Extra Trees Regressor (ETR)-based pipeline with hyperparameter tuning in 5-fold cross-validation (see Supplementary Notes 4 and 7 for details). By means of the Tree SHAP algorithm [22, 21], we have sorted the input features in terms of their relevance with respect to the prediction of the _T_ c. Model performances with the corresponding cumulative importance curves of the ruling descriptors are reported in Fig. 2. During the data preprocessing routines, the trained pipeline (i.e., feature reduction by means of linear correlation analysis, descriptors variance analysis, correlation analysis with the _T_ c and ML with hyperparameter tuning, see Supplementary Note 4 for details) already drops a significant number of the 145 features, thus confirming that many of the initially selected descriptors do not significantly affect the chosen target property. In particular, the final model only includes 81 descriptors. 6 40 30 20 10 0 Ntrain = 6142 Ntest = 1084 0 10 20 30 40 True Tc (K) 75% of the maximum 35 features 0 20 40 60 80 Features R <sup>2</sup> = 0.863 MAE = 1.31 K RMSE = 2.42 K 1.0 0.8 0.6 0.4 0.2 0.0 Figure 2: Predictions and corresponding normalized cumulative curve for the coefficients of importance of the ETR model. Model performances are shown in terms of coefficient of determination _R_ <sup>2</sup>, mean absolute error (MAE), and root mean squared error (RMSE), with the size of training and testing sets _N_ train and _N_ test, respectively. Figure 3: The five most important features according to SHAP ranking for _T_ c. For each feature (i.e., each line), 1084 dots are shown, representing the entire testing sets used for computing the related SHAP values (impacts on the model output, horizontal axes); the color represents the corresponding feature value, the features are sorted according to the mean over the absolute SHAP values. 7 Importantly, Fig. 3 shows the SHAP rankings of the five most meaningful descriptors for the aforementioned model. Table 1 summarizes the physicochemical meaning of the identified descriptors, based on the complete list by Ward _et_ _al._ [27]. The entire list of variables, together with their cumulative importance, the trained models, and the datasets on which they have been trained are publicly available online (see Data availability and Code availability). Table 1: Relevant composition-based descriptors and their meaning [27]. Descriptor name Meaning MagpieData range MeltingT Range of melting _T_ over the elements of a compound 0-norm Number of different chemical species MagpieData mode NdUnfilled Mode of _d_ unfilled orbitals over the elements MagpieData mode NsUnfilled Mode of _s_ unfilled orbitals over the elements MagpieData avg ~~d~~ ev MeltingT Average absolute deviation of melting _T_ over the elements 3.2 Invariant groups In a first attempt of reducing the number of input features within the above models, we decided to investigate on the possible existence of symmetries of the obtained regression models. In particular, we have been focusing on the possible invariance of the target property (here the critical temperature) with respect to binary groups of the form: _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>.</sup> <sup>In</sup> <sup>this</sup> <sup>study,</sup> <sup>we</sup> <sup>restrict</sup> <sup>to</sup> <sup>binary</sup> <sup>groups,</sup> <sup>although</sup> <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> with respect to binary groups of the form: _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>.</sup> <sup>In</sup> <sup>this</sup> <sup>study,</sup> <sup>we</sup> <sup>restrict</sup> <sup>to</sup> <sup>binary</sup> <sup>groups,</sup> <sup>although</sup> we are confident that the approach can be also generalized to groups concurrently involving a larger number of features. To this end, as discussed in the Methods section below, it is necessary to get access to the gradient of the critical temperature with respect to the input features, namely _∇T_ c( _x_ 1 _, . . ., xn_ ). We have thus approximated the function _T_ c( _x_ 1 _, . . ., xn_ ) with a Deep Neural Network (DNN), which is - to our knowledge - a convenient model allowing to compute that gradient by means of automatic differentiation. As input features of the DNN, we have employed the same 81 relevant descriptors of the above ETR-based pipeline. We have thus splitted the dataset into three parts: (i) a training set, (ii) a validation set to get insight of possible overfitting, (iii) a testing set to effectively evaluate the model performances. Fig. 4 shows the predictions over the testing set, together with the model performances and the corresponding loss with respect to the number of epochs. Specifically, no overfitting is found. More details about the DNN structure are shown in the Supplementary Note 3. We have thus looked for possible invariant groups in the form _x_ <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ <sup>among the 45 different combinations of the most relevant</sup> <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ for possible invariant groups in the form _x_ <sup>_a_</sup> _i_ <sup>_xb_</sup> _j_ <sup>among the 45 different combinations of the most relevant</sup> 10 features according to the SHAP-based ranking above. On the basis of our investigations, we can conclude that the critical temperature of the examined materials presents no invariance with respect to the tested binary groups. 3.3 Entropy-based binary classifiers In this section, we introduce and test a special Bayesian type classifier as detailed below. We have considered the first two features of the SHAP ranking for constructing a Shannon Entropy-based probabilistic classifier according to the Quasi Equilibrium Grid (QEG)-based procedure reported above in the Methods. In particular, we have binned those two features separately for superconductors with both _T_ c _<_ 15 K (class 0) and _T_ c _≥_ 15 K (class 1) among the 85% of the materials - namely, the training set - thus obtaining the pair of 2 dimensional binnings in Fig. 5a. For each of those binnings, we have computed the five needed constraints, namely the means of those two features and their three variance terms (see Methods). We have thus constructed a surface of maximum Shannon entropy for each of the two classes by means of the QEG algorithm, as depicted in Fig. 5b. Finally, we have computed the probability distribution by subtracting the QEG solution for class 0 from the QEG solution for class 8 40 30 20 10 0 Ntrain = 5220 Nval = 922 Ntest = 1084 0 10 20 30 40 True Tc (K) R <sup>2</sup> = 0.813 MAE = 1.53 K RMSE = 2.83 K loss validation loss 0 200 400 600 Epoch 3.5 3.0 2.5 2.0 1.5 1.0 0.5 Figure 4: Predictions over the testing set and corresponding loss curves for the DNN regression model. Model performances are shown in terms of coefficient of determination _R_ <sup>2</sup>, mean absolute error (MAE), and root mean squared error (RMSE), with the sizes of the training, the validation and the testing sets, _N_ train, _N_ val, _N_ test respectively. a Binned data <u>class 1</u> 2.5 5.0 x2 = 0-norm b QEG <u>class 1</u> 2.5 5.0 x2 = 0-norm 0 1000 2000 3000 Binned data <u>class 0</u> 2.5 5.0 x2 = 0-norm 800 600 400 200 0 0 1000 2000 3000 QEG <u>class 0</u> 2.5 5.0 x2 = 0-norm 0.10 0.05 0.10 0.05 c QEG QEG bagged bagged <u>class 1</u> 0 1000 2000 3000 QEG bagged <u>class 0</u> 2.5 5.0 x2 = 0-norm 2.5 5.0 x2 = 0-norm Figure 5: Probabilistic classifier. a 2-dimensional binning, with 10 bins for the first variable and 5 bins for the second, of the two most relevant features _x_ 1 _, x_ 2 according to the SHAP ranking for superconductors showing _T_ c _<_ 15 K and _T_ c _≥_ 15 K respectively among the training set (namely, 85% of materials); b QEG solution of corresponding maximum Shannon entropy probability distribution; c QEG solution of corresponding maximum Shannon entropy probability distribution, bagged case. 9 QEG for x1 <sup>(1) to x</sup> 1 <sup>(10)</sup> <u>class 0</u> QEG for x1 <sup>(1) to x</sup> 1 <sup>(10)</sup> <u>class 1</u> a Binned data for x1 <sup>(1) to x</sup> 1 <sup>(10)</sup> <u>class 0</u> Binned data for x1 <sup>(1) to x</sup> 1 <sup>(10)</sup> <u>class 1</u> b 0 5 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 0 5 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 2.5 5.0 0.020 0.015 0.010 0.005 0 5 0 5 400 350 300 250 200 150 100 50 0 x3 = MagpieData mode NdUnfilled x3 = MagpieData mode NdUnfilled Figure 6: Probabilistic classifier. a 3-dimensional binning, with 10 bins for the first variable, 5 for the second, 10 for the third, of the two most relevant features _x_ 1 _, x_ 2 _, x_ 3 according to the SHAP ranking for superconductors showing _T_ c _<_ 15 K and _T_ c _≥_ 15 K respectively; b QEG solution of corresponding maximum Shannon entropy probability distribution. 1 - both multiplied by the cardinality of the corresponding class in the training set - and up-shifting the result by the minimum, in such a way to have probabilities _≥_ 0. The latter distribution represents our 2 dimensional QEG probabilistic classifier. Moreover, having in mind the idea of Random Forests, which employ _bagging_ (creation of more decision trees and aggregation of the results by taking the mean) [35], we have produced 100 QEG 2D distributions per class, each based on a different random subset of training set. We have thus taken a mean distribution per class; Fig. 5c shows that the bagged results are in accordance with the _non-bagged_ case of Fig. 5b. We have repeated the same procedure taking into account the first three features according to the SHAP-based ranking above - namely, the range of the melting temperature, the number of different chemical species, the mode of _d_ unfilled orbitals. A 3-dimensional binning of dimensions 10 _×_ 6 _×_ 10 can be represented as an ensemble of ten 2-dimensional binnings, each of dimensions 6 _×_ 10. Fig. 6a shows such discretization of the data, where ten matrices of axes _x_ 2 _, x_ 3 act for the ten bins of feature _x_ 1, from bin _x_ <sup>(1)</sup> 1 to _x_ <sup>(10)</sup> 1 for each of the two classes. Fig. 6b shows the corresponding the QEG solutions <sup>(1)</sup> 1 to _x_ <sup>(10)</sup> 1 from bin _x_ <sup>(1)</sup> 1 to _x_ <sup>(10)</sup> 1 for each of the two classes. Fig. 6b shows the corresponding the QEG solutions for classes 0 and 1 separately. 10 3.4 Other standard binary classifiers Furthermore, we have trained and validated two Extra Trees Classifier (ETC) models with default hyperparameters over the same training set accounting for the 85% of materials, including only the first two and the first three features by the aforementioned SHAP ranking respectively.Moreover, we have used the entire dataset - with all the features - to train and validate two further ETC-based pipelines, both with pre-processing and hyperparameter tuning in stratified 5-fold cross validation (see Supplementary Note 4 for details). Specifically, since the cardinalities of two classes are unbalanced, we employed the Synthetic Minority Over-Sampling TEchnique (SMOTE) algorithm in one of the two pipelines, which, through interpolation, produces samples in the underrepresented class [36]. In particular, the Scikit-learn Python package [37] offers the possibility of predicting not only the class, but also the class probabilities; the predicted class is automatically chosen to be the one accounting for the highest probability. Hence, by considering only the probabilities of the class 1, i.e., the material is predicted to be superconductive, we have moved the discriminating threshold from 0 (all the materials are predicted in class 1) to 1 (all the materials are predicted in class 0). For each threshold, a different confusion matrix, with different number of true positives (TP), false negatives (FN), false positives (FP), true negatives (TN), is constructed. For each confusion matrix, the true positive rate (TPR) and the false positive rate (FPR) are computed, where TPR = TP _/_ (TP+FN) and FPR = FP _/_ (FP + TN). The same procedure is repeated for the QEG based probabilistic classifiers, where the order of magnitude of the thresholds is lower, since the probability does not sum up to 1 over two classes but over 60 (QEG 2D) or 600 bins (QEG 3D). In Supplementary Note 8 we report a comprehensive comparison of the Receiver Operating Characteristic (ROC) curves for the all the classifiers. The performence of a classifier can be measured by means of the Area Under Curve (AUC) of the ROC: the larger the AUC, the better the classifier. Furthermore, given a ROC curve, its best discriminating threshold _ξ_ - above which a sample is classified as 1 and below which is classified as 0 - can be identified by means of the Youden’s statistics, maximizing the quantity _J_ = TPR _−_ FPR [38]. Another metric for choosing the best threshold is the maximization of the _F_ 1 score, by definition _F_ 1 = 2TP _/_ (2TP + FP + FN) [39, 40, 41]. Performances computed over the same testing set of 1084 materials are shown in Table 2. The comparison encompasses QEGs with two and three features (QEG 2D and QEG 3D respectively), ETCs with the top two and three features of the SHAP ranking (ETC 2D-high and ETC 3D-high respectively), ETCs with the two (33-rd, 34-th) and three (33-rd, 34-th, 35-th) features of the SHAP ranking (ETC 2D-middle and ETC 3D-middle respectively), with the least two and three features of the SHAP ranking (ETC 2D-low and ETC 3D-low respectively), ETC with all the database (ETCvanilla), ETC with the additional SMOTE algorithm (ETC-SMOTE), ETC with all the database and all the 81 features (ETC-vanilla-81), ETC with the additional SMOTE algorithm and all the 81 features (ETC-SMOTE-81), Gaussian Naive Bayesian classifier (Naive 2D, see Supplementary Note 10 and ref. [42] for details), together with a _No_ _skill_ classifier, in which TPR and FPR are always equal. ETC models always outperform QEG-based classifiers both in terms of _J_ max and in terms of _F_ 1 _,_ max; in particular, the ETC-vanilla and ETC-SMOTE turn out to be the best classifiers in terms of _F_ 1 _,_ max and _J_ max respectively. We have thus predicted the probability of classes 0 and 1 with ETC-vanilla and ETC-SMOTE for all the _∼_ 40 _,_ 000 materials in Materials Project without Ni, Fe, Cu, O and not in the SuperCon database. Those predictions are on our GitHub repository (see Code availability). 3.5 Optimal reduction of the composition-based material descriptors Although the above SHAP analysis can be conveniently adopted while ranking and reducing the number of material descriptors for both regressors and classifiers, the following aspects have to be stressed. On one hand, as visible on the right-hand side of Fig. 2, for achieving a sufficiently high 11 Table 2: Performances of the trained classifiers. AUC _ξJ,_ max _J_ max _ξF_ 1 _,_ max _F_ 1 _,_ max No skill 0.50 - - - QEG 2D 0.71 0.004 0.40 0.017 0.23 QEG 2D bagged 0.71 0.004 0.40 0.017 0.23 QEG 3D 0.60 0.002 0.29 0.002 0.22 ETC 2D-high 0.96 0.120 0.90 0.313 0.73 ETC 3D-high 0.96 0.125 0.89 0.333 0.73 ETC 2D-middle 0.86 0.028 0.63 0.317 0.38 ETC 3D-middle 0.82 0.167 0.62 0.167 0.52 ETC 2D-low 0.54 0.072 0.08 0.072 0.14 ETC 3D-low 0.54 0.073 0.08 0.073 0.14 ETC-vanilla 0.99 0.110 0.91 0.560 0.85 ETC-SMOTE 0.98 0.216 0.92 0.780 0.83 ETC-vanilla-81 0.98 0.040 0.91 0.630 0.84 ETC-SMOTE-81 0.99 0.140 0.91 0.732 0.84 Naive 2D 0.85 0.071 0.73 0.134 0.37 (i.e. in the order of 70% or higher) cumulative importance over 30 features are needed. On the other hand, the larger the number of feature the higher the over-fitting possibility. Therefore, in this work, we attempted the following possible reduction of the material descriptors. Given the original set of _n_ features ( _x_ 1 _, ..., xn_ ), let (˜ _x_ 1 _, ...,_ ˜ _xn_ ) be the corresponding dimensionless quantities: _x_ ˜ _i_ = _<u>xi −</u>_ _<u>xi,</u>_ <u>min</u> _xi,_ max _−_ _xi,_ min + 1 (8) where _xi,_ min and _xi,_ max represent the minimum and maximum observed values for the _i−_ th feature over the training set, respectively. All dimensionless quantities are thus normalized by construction to a value range within the interval [1 _−_ 2] to avoid singularities in the expressions below. We define the following new set of _m ≪_ _n_ mixed features ( _y_ 1 _, ..., ym_ ), as follows: _yj_ = _n_ _i_ =1 _x_ ˜ <sup>_α_</sup> _i_ <sup>_ij_</sup> (9) _i_ =1 where _{αij}_ represents an _n × m_ matrix optimally estimated as reported below. Alternatively, the new set of _m_ reduced mixed features can also be defined by the following linear transformation: _yj_ = _n_ _i_ =1 _αij_ ˜ _xi_ (10) Finally, the new variables _yj_ can be conveniently normalized within the interval [0 _−_ 1] as follows: _y_ ˜ _j_ = _<u>yj</u>_ _<u>−</u>_ _<u>yj,</u>_ <u>min</u> _yj,_ max _−_ _yj,_ min (11) With the basic idea of Bayesian classification in mind, we define the following multi-objective optimization criterion. The matrix _{αij}_ in Eq. 9 and/or Eq. 10 lies on the Pareto front while concurrently attempting: i) maximization of a properly chosen distance between the two classes; ii) minimization of a norm of the covariance matrix of the first class distribution; iii) minimization of a norm of the covariance matrix of the second class distribution. In this study, we use genetic algorithms for optimization. Moreover, for the evaluation of the distance between the two classes, a number of approaches have been tested including: 12 Testing set <u>(GEV evaluation)</u> <u>Training set</u> Training set <u>(GEV fitting)</u> Tc < 35 K Tc 35 K GEV fit Tc < 35 K GEV fit Tc 35 K 10 5 0 0 1 x1, norm a b c 0 1 x <sup>pow, least, 35</sup> 0 1 x <sup>pow, least, 35</sup> Figure 7: One-dimensional example. a : PDFs over binned data of the training set for the two classes ( _T_ c _<_ 35 K and _T_ c _≥_ 35 K) reported against the normalized first most important feature according to the SHAP ranking. b : PDFs over binned data of the training set for the two classes reported against the mixed feature _x_ <sup>pow</sup> <sup>_,_</sup> <sup>least</sup> <sup>_,_</sup> <sup>35</sup>, constructed according to Eq. 9 and choosing the point of the Pareto front with the least overlapping of the two classes according to the Battacharyya distance, together with a GEV analytical fitting of those two binnings (see text for details). c : PDFs over binned data of the testing set for the two classes reported against the same mixed feature _x_ <sup>pow</sup> <sup>_,_</sup> <sup>least</sup> <sup>_,_</sup> <sup>35</sup> together with the same GEV fittings of the b subfigure. - Data in the two classes are equally binned and histograms used to evaluated the Bhattacharyya distance [43, 44] between the two classes to be maximized during the above multi-objective optimization; - Data in the two classes are equally binned and histograms used to evaluate the Earth mover distance [45] between the two classes to be maximized during the above multi-objective optimization; - The average number of neighbors within a fixed radius of non superconducting materials to each sample of the superconducting material class in the reduced space to be minimized during the above multi-objective optimization Finally, for the remaining two objective functions, while for one-dimensional cases a numerical estimate of the standard deviation of the binned data in the two classes is computed, in the two (or higher) dimensional cases the determinant of the covariance matrix can be adopted. More details about Pareto front calculations can be found in Supplementary Note 9. 3.5.1 Application to one- and two-dimensional cases As an example, Fig. 7 shows the Probability Density Functions (PDFs) of the two material classes _T_ c _<_ 35 K and _T_ c _≥_ 35 K. Specifically, Fig. 7a reports the PDF binning of the training set data over the two classes, against the normalized most important feature according to the SHAP ranking. Fig. 7b shows the same PDFs against the mixed feature _x_ <sup>pow</sup> <sup>_,_</sup> <sup>least</sup> <sup>_,_</sup> <sup>35</sup>, constructed according to Eq. 9 by power combination of the 30 most important features of the SHAP ranking and choosing the point of the Pareto front with the least distributions overlap according to the Bhattacharyya distance. Interestingly, when plotted against the new mixed feature, the two classes appear well separated, whereas it is worth observing that the same two classes show a higher degree of overlapping when reported against the first SHAP feature. As a result, it appears particularly convenient to attempt an analytical bet-fitting of the two functions reported Fig. 7b, approximated by a Generalized Extreme 13 a PDF Tc < 35 K PDF Tc 35 K PDF Tc < 35 K 0 20 0 250 0.0 0.5 1.0 100 0 0.0 0.5 1.0 x2, norm mean PDF Tc < 35 K mean PDF Tc 35 K 0.0 0.5 1.0 x2, norm b PDF Tc < 35 K PDF Tc 35 K PDF Tc < 35 K 0 50 0 20 0.0 0.5 1.0 10 0 mean PDF Tc < 35 K mean PDF Tc 35 K 0.0 0.5 1.0 0.0 0.5 1.0 x2 <sup>pow, uto, 35</sup> x2 <sup>pow, uto, 35</sup> 2 2 c PDF Tc < 35 K PDF Tc 35 K PDF Tc < 35 K 0 50 0 25 0.0 0.5 1.0 10 0 mean PDF Tc < 35 K mean PDF Tc 35 K 0.0 0.5 1.0 0.0 0.5 1.0 x2 <sup>pow, uto, 35</sup> x2 <sup>pow, uto, 35</sup> 2 2 Figure 8: Two dimensional example. a : PDFs over binned data of the training set for the two classes ( _T_ c _<_ 35 K and _T_ c _≥_ 35 K) reported against the normalized first most important feature according to the SHAP ranking. b : PDFs over binned data of the training set for the two classes reported against the two mixed features _x_ 1 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> and _x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, constructed according to Eq. 9 from mixing the 52 1 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> and _x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> the two mixed features _x_ 1 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> and _x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, constructed according to Eq. 9 from mixing the 52 most important features according the the SHAP ranking and choosing the Utopia point of the Pareto front. c : PDFs over binned data of the testing set for the two classes reported against the same mixed features _x_ 1 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> and _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> . 1 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> and _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> <sup>pow</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> . 14 Value (GEV) distribution, whose density has equation 1 + _ζ_ <sup>_<u>x</u>_</sup> <sup>pow</sup> <sup>_,_</sup> <sup>least</sup> <sup>_,_</sup> <sup>35</sup> <sup>_<u>−</u>_</sup> <sup>_<u>γ</u>_</sup> _σ_ - _−_ 1 _/ζ_ <sup>�</sup> _ζ_ - _−_ <sup>_<u>ζ</u>_</sup> <sup><u>+1</u></sup> 1 + _ζ_ <sup>_<u>x</u>_</sup> <sup>pow</sup> <sup>_,_</sup> <sup>least</sup> <sup>_,_</sup> <sup>35</sup> <sup>_<u>−</u>_</sup> <sup>_<u>γ</u>_</sup> _σ_ - _−_ _._ (12) _g_ - _x_ <sup>pow</sup> <sup>_,_</sup> <sup>least</sup> <sup>_,_</sup> <sup>35�</sup> = <sup><u>1</u></sup> _σ_ exp In this specific case, we found that the GEV distribution for materials with _T_ c _<_ 35 K has factors _γ_ = 0 _._ 228, _σ_ = 0 _._ 119, _ζ_ = _−_ 0 _._ 033. Analogously we found that the GEV distribution for materials with _T_ c _≥_ 35 K has factors _γ_ = 0 _._ 847, _σ_ = 0 _._ 046, _ζ_ = _−_ 0 _._ 539. We performed such fittings by means of the SciPy Python package [46]. Fig. 7c shows the PDFs over the binned data of the testing set reported against the same mixed feature, together with the GEV fittings computed on the training set. It is worth noticing that the classes are still well separated, with a good agreement between the GEV distributions and the testing set densities. The number of bins has been chosen separately for the two classes, according to the Sturges rule [47]. Furthermore, Fig. 8 shows the PDFs of the same two material classes ( _T_ c _<_ 35 K and _T_ c _≥_ 35 K) in a two dimensional case. Specifically, Fig. 8a reports the PDF two dimensional binning of the training set data over the two classes, against the normalized two most important features according to the SHAP ranking. Fig. 8b shows the same PDFs against the mixed features _x_ 1 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> _, x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, 1 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> _, x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> to the SHAP ranking. Fig. 8b shows the same PDFs against the mixed features _x_ 1 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> _, x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, constructed according to Eq. 9 by power combination of the 52 most important features of the SHAP ranking and choosing the Utopia point of the Pareto front. As in the one dimensional case, the two classes, when plotted against the new mixed features, appear well separated. Fig. 8c shows the PDFs over the binned data of the testing set reported against the same mixed features; the two classes are still well separated. Each plot of Fig. 8 accounts for 400 two dimensional bins, on a grid 20 _×_ 20. Moreover, Supplementary Note 11 shows a sharp improvement of a Naive Gaussian Bayesian classifier trained with the mixed features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> with respect to an analogous model trained with <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> trained with the mixed features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> with respect to an analogous model trained with the two most relevant features according to the SHAP ranking. All the relevant data of the Pareto fronts used for constructing those mixed features, together with the coefficients _αij_ of each case, are publicly available on our GitHub repository (see Code availability). 3.6 Possible generalizations We are conscious that the mixed features found in this work might be still sub-optimal, as we do not have here the ambition of comprehensively exploring all possible cases. Clearly, several generalizations and variations can be studied while performing the material descriptor reduction as discussed above. Obvious generalizations might adopt different functions for reducing variables as compared to equations 9 and 10, as well as different distance functions between the classes. Alternatively, other strategies for constructing optimal mixed features might also focus on distances only between classes thus neglecting minimization of variance terms, with the primary aim being the best separation between classes. In this respect, we report the following examples: - The training dataset is split in two classes (i.e. materials with a critical temperature above or below a certain threshold value) and a single objective optimization is performed only aiming at maximizing the distance between two classes (see Fig. 9a); - The training dataset is split in multiple classes (i.e. _>_ 2) and a multi-objective optimization is performed aiming at concurrently maximing the pairwise distances between the classes (see Fig. 9b). For further details, please refer to Supplementary Note 9. 3.7 Entropy-, tree-, and Bayes-based binary classifiers on the new mixed features We thus report the results of the QEG-based probabilistic classifiers and ETCs by employing the new mixed features, always constructed by aggregating the top 30 features of the SHAP ranking, in both 15 a <u>Training set</u> 1.00 0.75 <u>Testing set</u> 0.50 0.25 0.00 0.0 0.5 1.0 0.0 0.5 1.0 x1 <sup>lin, 25</sup> Tc< 25 K Tc 25 K Tc<13 K 13 K Tc < 26 K Tc 26 K x1 <sup>lin, 25</sup> 1 1 b <u>Training set</u> 1.00 <u>Testing set</u> 0.75 0.50 0.25 0.00 0.0 0.5 1.0 0.0 0.5 1.0 x1 <sup>pow, 3class</sup> x1 <sup>pow, 3class</sup> 1 1 Figure 9: Projections of training and testing sets into the reduced feature space with colors indicating the critical temperature classes. a Projection over the two mixed features _x_ <sup>lin</sup> 1 <sup>_,_</sup> <sup>25</sup>, _x_ <sup>lin</sup> 2 <sup>_,_</sup> <sup>25</sup>, constructed <sup>lin</sup> 1 <sup>_,_</sup> <sup>25</sup>, _x_ <sup>lin</sup> 2 <sup>_,_</sup> <sup>25</sup> the critical temperature classes. a Projection over the two mixed features _x_ <sup>lin</sup> 1 <sup>_,_</sup> <sup>25</sup>, _x_ <sup>lin</sup> 2 <sup>_,_</sup> <sup>25</sup>, constructed according to Eq. 10 and obtained by single objective optimization, where the Bhattacharyya distance between the two classes _T_ c _<_ 25 K and _T_ c _≥_ 25 K has been maximized. b Projection over the two mixed features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>3class</sup>, _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>3class</sup>, constructed according to Eq. 9 and obtained by multi-objective <sup>pow</sup> 1 <sup>_,_</sup> <sup>3class</sup>, _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>3class</sup> mixed features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>3class</sup>, _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>3class</sup>, constructed according to Eq. 9 and obtained by multi-objective optimization where the Bhattacharyya pairwise distances between the three classes _T_ c _<_ 13 K, 13 K _≤_ _T_ c _<_ 26 K, _T_ c _≥_ 26 K have been concurrently maximized. 16 a Binned data Binned data b QEG QEG <u>class 0</u> <u>class 1</u> Binned data <u>class 1</u> 0.00 0.25 0.50 0.75 1.00 <u>class 0</u> QEG <u>class 0</u> 0.00 0.25 0.50 0.75 1.00 0.0 0.5 1.0 0.0 0.5 1.0 0.0 0.5 1.0 x2 <sup>pow, uto, 15</sup> 600 400 200 0 x2 <sup>pow, uto, 15</sup> 0.0 0.5 1.0 x2 <sup>pow, uto, 15</sup> 0.15 0.10 0.05 0.00 x2 <sup>pow, uto, 15</sup> 2 2 2 2 Figure 10: Probabilistic classifier. a 2-dimensional binning, with 10 bins for each variable, of the two mixed features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup>, _x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> constructed according to Eq. 9, by selecting the utopia point of <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup>, _x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> mixed features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup>, _x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> constructed according to Eq. 9, by selecting the utopia point of the Pareto front, for superconductors showing _T_ c _<_ 15 K, and _T_ c _≥_ 15 K respectively; b QEG solution of corresponding maximum Shannon entropy probability distribution. a Binned data Binned data b QEG QEG <u>class 0</u> <u>class 1</u> Binned data <u>class 1</u> 0.00 0.25 0.50 0.75 1.00 <u>class 0</u> QEG <u>class 0</u> 0.00 0.25 0.50 0.75 1.00 0.0 0.5 1.0 0.0 0.5 1.0 0.0 0.5 1.0 x2 <sup>lin, uto, 15</sup> 600 400 200 0 x2 <sup>lin, uto, 15</sup> 0.0 0.5 1.0 x2 <sup>lin, uto, 15</sup> 0.15 0.10 0.05 0.00 x2 <sup>lin, uto, 15</sup> 2 2 2 2 Figure 11: Probabilistic classifier. a 2-dimensional binning, with 10 bins for each variable, of the two mixed features _x_ <sup>lin</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> _, x_ <sup>lin</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> constructed according to Eq. 10,by selecting the utopia point of the <sup>lin</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> _, x_ <sup>lin</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> mixed features _x_ <sup>lin</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> _, x_ <sup>lin</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> constructed according to Eq. 10,by selecting the utopia point of the Pareto front, for superconductors showing _T_ c _<_ 15 K and _T_ c _≥_ 15 K respectively; b QEG solution of corresponding maximum Shannon entropy probability distribution. the cases of power (Eq. 9) and linear (Eq. 10) transformations. In these examples, for the purposes of optimization and class separation, we consider only the Utopia point of the Pareto front and the Bhattacharyya distance respectively. Specifically, Figs. 10a and 10b show the binnings of the two classes ( _T_ c _<_ 15 K and _T_ c _≥_ 15 K) against the two power mixed features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup>, _x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> and the corresponding QEG solution <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup>, _x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> against the two power mixed features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup>, _x_ 2 <sup>pow</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> and the corresponding QEG solution respectively. Analogously, Figs. 11a and 11b show the binnings of the two classes ( _T_ c _<_ 15 K and 1, _x_ 2 <sup>lin</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> and the corresponding QEG _T_ c _≥_ 15 K) against the two linear mixed features _x_ <sup>lin</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> solution respectively. Table 3 reports the performances of such classifiers, ending up with a consistent 1, _x_ 2 <sup>lin</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> <sup>lin</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> 1, _x_ 2 <sup>lin</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> and the corresponding QEG _T_ c _≥_ 15 K) against the two linear mixed features _x_ <sup>lin</sup> <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> solution respectively. Table 3 reports the performances of such classifiers, ending up with a consistent improvement of both the _J_ max and the _F_ 1 _,_ max score with respect to the case of the QEG 2D trained with the top SHAP descriptors (see QEG 2D in Table 2); specifically, the linear transformation improves also the AUC. We have used the same mixed features to train and validate two ETCs, ending up with similar metrics - AUC, _J_ max and _F_ 1 _,_ max - score with respect to the case ETC 2D-high, trained with the two most relevant features according to the SHAP ranking. We have finally employed the same features to re-train also the Gaussian Bayesian Classifier, getting an improvement for all the metrics (namely, AUC, _J_ max and _F_ 1 _,_ max) with respect to the same classifier trained with the top two features according to the SHAP ranking, both for the power transformation and for the linear transformation. The corresponding ROC curves are reported in Supplementary Note 8. 17 Table 3: Performances of the classifiers trained with mixed features. AUC _ξJ,_ max _J_ max _ξF_ 1 _,_ max _F_ 1 _,_ max No skill 0.50 - - - QEG 2D-mixed pow 0.69 0.007 0.52 0.007 0.29 QEG 2D-mixed lin 0.79 0.008 0.61 0.011 0.37 ETC 2D-mixed pow 0.95 0.104 0.82 0.480 0.72 ETC 2D-mixed lin 0.93 0.092 0.77 0.574 0.70 Naive 2D-mixed pow 0.94 0.506 0.76 0.504 0.67 Naive 2D-mixed lin 0.90 0.502 0.78 0.505 0.50 ## 4 Conclusions Here we have developed several ML tools for studying the critical temperature of superconductors. From the SuperCon database, we have considered only the inorganic compounds without Fe, Ni, Cu, O, thus excluding oxides that belong to low temperature classic superconductors. By means of Matminer and on the basis of the SuperCon database, we have generated 145 composition-based features for each compound. We have trained and validated a tree-based regression model for the prediction of the _T_ c, allowing us to identify the most relevant descriptors by means of the Tree SHAP routine. Then, we have produced several different classifiers, based on different sets of features and considering materials with _T_ c _≥_ 15 K in class 1 and materials with _T_ c _<_ 15 K in class 0. In particular, with the idea of Bayesian classifiers in mind, we have tested a new Entropy-based classifier (here referred to as QEG), approximating the multidimensional binning of the data over the chosen set of descriptors with the surface of maximum Shannon Entropy. Other employed models include tree-based classifiers (namely ETCs) and Naive Bayesian classifiers. In particular, by comparing ETCs using only two or three of the original extracted features, we notice that the SHAP ranking - identified for regression - can be consistently used for classification. Since, ETCs with few features performed better than both QEGs and Naive Bayesian classifiers, we have trained two more comprehensive models ETC-vanilla, ETC-SMOTE - both based on a number of features selected during the pre-processing routines of the respective ML pipelines. The latter uses also the SMOTE algorithm to sample, through interpolation, materials in the under-represented class of superconductors. Additionally, we have trained two further models - ETC-vanilla-81 and ETC-SMOTE-81, trained with the same ensemble of 81 features effectively used by the regression model ETR. We have employed the best-performing models, namely ETC-vanilla and ETC-SMOTE, to rank _∼_ 40 _,_ 000 compounds in MaterialsProject and not occurring in the Supercon, in terms of the probability of showing _T_ c _≥_ 15 K. For instance, ETC-vanilla predicts 41 of those formulae to show _T_ c _≥_ 15 K with probability not lower than 0 _._ 6. Furthermore, by means of multi-objective optimization, we have found optimized mixed features that proved particularly suitable for class separation. To this end, we have mixed by means of power or linear combination the top 30 features of the SHAP ranking. With such new features, the performances of both QEGs and Naive Bayesian classifiers improve, while the ETCs performances are in line with the corresponding models trained over the original features. Remarkably, in general there is no need to have access to the SHAP ranking for achieving such optimization, and, in principle, all the input features can be imported for mixing. Additionally, we have produced further examples differing with the previous ones in terms of threshold _T_ c and/or optimization routines. Among those, we have found an optimal single feature to separate classes _T_ c _<_ 35 K and _T_ c _≥_ 35 K. Interestingly, in this case we were able to give the equation of an analytical classifier fitted on the materials binned over new mixed feature. We have employed both the best QEG model - QEG 2D-mixed lin classifier (for _T_ c _≥_ 15 K), and the analytical classifier (for _T_ c _≥_ 35 K) to rank the same _∼_ 40 _,_ 000 materials of MaterialsProject not occurring in 18 the SuperCon database. Such predictions are publicly available on our GitHub repository. Another aim of this work was to test the possible invariance of the critical temperature with respect to binary groups of features in the form of _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>.</sup> <sup>To</sup> <sup>this</sup> <sup>end,</sup> <sup>we</sup> <sup>have</sup> <sup>trained</sup> <sup>and</sup> <sup>validated</sup> <sup>a</sup> <sup>second</sup> <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> to binary groups of features in the form of _x_ <sup>_a_</sup> _i_ <sup>_x_</sup> _j_ <sup>_b_</sup> <sup>.</sup> <sup>To</sup> <sup>this</sup> <sup>end,</sup> <sup>we</sup> <sup>have</sup> <sup>trained</sup> <sup>and</sup> <sup>validated</sup> <sup>a</sup> <sup>second</sup> regression model - i.e., a DNN - for the prediction of the _T_ c, allowing us to compute the gradient of the critical temperature with respect to the input features, namely _∇T_ c( _x_ 1 _, . . ., xn_ ). Finally, we stress that the suggested methods in this papers, namely the search for invariant groups of regression models, the optimization of mixed composition based feature and the maximum entropy based classifiers are general and not restricted to the selected case study. As such we envision possible future applications to other energy materials such as thermal energy storage [48] and electrochemical energy storage [49] applications. ## Data availability Processed datasatets and trained models of this study will be publicly available in Zenodo at (10.5281/zenodo.7725592) [50]. ## Code availability The codes used to obtain the results of this study will be publicly available in github at `https:` `//github.com/giotre/superconductors` . ## Acknowledgments The authors are grateful to Nicola Marzari (Ecole Polytechnique F´ed´erale de Lausanne), Samuel Ponc´e <sup>´</sup> (Universit´e catholique de Louvain) and Marnik Bercx (Ecole <sup>´</sup> Polytechnique F´ed´erale de Lausanne) for the valuable discussions about the material selection in the case study reported in this work. E.C. acknowledges partial financial funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 957189. 19 ## References [1] Schmuch, R., Wagner, R., H¨orpel, G., Placke, T. & Winter, M. Performance and cost of materials for lithium-based rechargeable automotive batteries. _Nature_ _Energy_ 3, 267–278 (2018). [2] Hirsch, J., Maple, M. & Marsiglio, F. Superconducting materials: conventional, unconventional and undetermined. _Phys._ _C_ 514, 1–444 (2015). [3] Johnson, S. C. _et_ _al._ Selecting favorable energy storage technologies for nuclear power. In _Storage_ _and_ _Hybridization_ _of_ _Nuclear_ _Energy_, 119–175 (Elsevier, 2019). [4] Yuanxi, W., Jiangang, L., Peide, W. _et_ _al._ First engineering commissioning of east tokamak. _Plasma_ _Science_ _and_ _Technology_ 8, 253 (2006). [5] Aarnink, R. & Overweg, J. Magnetic resonance imaging, a success story for superconductivity. _Europhysics_ _News_ 43, 26–29 (2012). [6] Hall, A. _et_ _al._ Use of high temperature superconductor in a receiver coil for magnetic resonance imaging. _Magnetic_ _resonance_ _in_ _medicine_ 20, 340–343 (1991). [7] Asayama, K., Kitaoka, Y., Zheng, G.-q. & Ishida, K. Nmr studies of high tc superconductors. _Progress_ _in_ _Nuclear_ _Magnetic_ _Resonance_ _Spectroscopy_ 28, 221–253 (1996). [8] Rigamonti, A., Borsa, F. & Carretta, P. Basic aspects and main results of nmr-nqr spectroscopies in high-temperature superconductors. _Reports_ _on_ _Progress_ _in_ _Physics_ 61, 1367 (1998). [9] Rossi, L. & Bottura, L. Superconducting magnets for particle accelerators. _Reviews_ _of_ _accelerator_ _science_ _and_ _technology_ 5, 51–89 (2012). [10] Clarke, J. & Braginski, A. I. _The_ _SQUID_ _handbook_, vol. 1 (Wiley Online Library, 2004). [11] Cristiano, R., Ejrnaes, M., Casaburi, A., Zen, N. & Ohkubo, M. Superconducting nano-strip particle detectors. _Superconductor_ _Science_ _and_ _Technology_ 28, 124004 (2015). [12] Noe, M. & Steurer, M. High-temperature superconductor fault current limiters: concepts, appli cations, and development status. _Superconductor_ _science_ _and_ _technology_ 20, R15 (2007). [13] Stanev, V. _et_ _al._ Machine learning modeling of superconducting critical temperature. _npj_ _Com-_ _putational_ _Materials_ 4, 1–14 (2018). [14] Konno, T. _et_ _al._ Deep learning model for finding new superconductors. _Physical_ _Review_ _B_ 103, 014509 (2021). [15] Le, T. D. _et_ _al._ Critical temperature prediction for a superconductor: A variational bayesian neural network approach. _IEEE_ _Transactions_ _on_ _Applied_ _Superconductivity_ 30, 1–5 (2020). [16] Roter, B. & Dordevic, S. Predicting new superconductors and their critical temperatures using machine learning. _Physica_ _C:_ _Superconductivity_ _and_ _its_ _applications_ 575, 1353689 (2020). [17] Roter, B., Ninkovic, N. & Dordevic, S. Clustering superconductors using unsupervised machine learning. _Physica_ _C:_ _Superconductivity_ _and_ _its_ _Applications_ 1354078 (2022). [18] National Institute of Materials Science, M. I. S. SuperCon. `http://supercon.nims.go.jp/` `index_en.html` (2011). [19] Stewart, G. Unconventional superconductivity. _Advances_ _in_ _Physics_ 66, 75–196 (2017). 20 [20] Ward, L. _et_ _al._ Matminer: An open source toolkit for materials data mining. _Computational_ _Materials_ _Science_ 152, 60–69 (2018). [21] Lundberg, S. M. & Lee, S.-I. A unified approach to interpreting model predictions. _Advances_ _in_ _neural_ _information_ _processing_ _systems_ 30 (2017). [22] Lundberg, S. M. _et_ _al._ From local explanations to global understanding with explainable ai for trees. _Nature_ _machine_ _intelligence_ 2, 56–67 (2020). [23] Trezza, G., Bergamasco, L., Fasano, M. & Chiavazzo, E. Minimal crystallographic descriptors of sorption properties in hypothetical mofs and role in sequential learning optimization. _npj_ _Computational_ _Materials_ 8, 1–14 (2022). [24] Udrescu, S.-M. & Tegmark, M. Ai feynman: A physics-inspired method for symbolic regression. _Science_ _Advances_ 6, eaay2631 (2020). [25] Jain, A. _et_ _al._ Commentary: The materials project: A materials genome approach to accelerating materials innovation. _APL_ _materials_ 1, 011002 (2013). [26] McKinney, W. _Python_ _for_ _data_ _analysis:_ _Data_ _wrangling_ _with_ _Pandas,_ _NumPy,_ _and_ _IPython_ (” O’Reilly Media, Inc.”, 2012). [27] Ward, L., Agrawal, A., Choudhary, A. & Wolverton, C. A general-purpose machine learning framework for predicting properties of inorganic materials. _npj_ _Computational_ _Materials_ 2, 1–7 (2016). [28] Abadi, M. _et_ _al._ TensorFlow: Large-scale machine learning on heterogeneous systems (2015). URL `https://www.tensorflow.org/` . Software available from tensorflow.org. [29] Gorban, A. N. & Karlin, I. V. _Invariant_ _manifolds_ _for_ _physical_ _and_ _chemical_ _kinetics_, vol. 660 (Springer, 2005). [30] Gorban, A. N. Model reduction in chemical dynamics: slow invariant manifolds, singular pertur bations, thermodynamic estimates, and analysis of reaction graph. _Current_ _Opinion_ _in_ _Chemical_ _Engineering_ 21, 48–59 (2018). [31] Chiavazzo, E. _Invariant_ _manifolds_ _and_ _lattice_ _Boltzmann_ _method_ _for_ _combustion_ . Ph.D. thesis, ETH Zurich (2009). [32] Chiavazzo, E. & Karlin, I. V. Quasi-equilibrium grid algorithm: Geometric construction for model reduction. _Journal_ _of_ _Computational_ _Physics_ 227, 5535–5560 (2008). [33] Chiavazzo, E. & Karlin, I. Adaptive simplification of complex multiscale systems. _Physical Review_ _E_ 83, 036706 (2011). [34] Chiavazzo, E. Approximation of slow and fast dynamics in multiscale dynamical systems by the linearized relaxation redistribution method. _Journal_ _of_ _Computational_ _Physics_ 231, 1751–1765 (2012). [35] Hastie, T. _et_ _al._ Random forests. _The_ _elements_ _of_ _statistical_ _learning:_ _Data_ _mining,_ _inference,_ _and_ _prediction_ 587–604 (2009). [36] Chawla, N. V., Bowyer, K. W., Hall, L. O. & Kegelmeyer, W. P. Smote: synthetic minority over-sampling technique. _Journal_ _of_ _artificial_ _intelligence_ _research_ 16, 321–357 (2002). [37] Pedregosa, F. _et_ _al._ Scikit-learn: Machine learning in Python. _Journal_ _of_ _Machine_ _Learning_ _Research_ 12, 2825–2830 (2011). 21 [38] Youden, W. J. Index for rating diagnostic tests. _Cancer_ 3, 32–35 (1950). [39] Chinchor, N. Proceedings of the 4th conference on message understanding, muc4’92 (Association for Computational Linguistics Stroudsburg, PA, 1992). [40] Van Rijsbergen, C. J. A theoretical basis for the use of co-occurrence data in information retrieval. _Journal_ _of_ _documentation_ (1977). [41] Taha, A. A. & Hanbury, A. Metrics for evaluating 3d medical image segmentation: analysis, selection, and tool. _BMC_ _medical_ _imaging_ 15, 1–28 (2015). [42] Zhang, H. The optimality of naive bayes. _Aa_ 1, 3 (2004). [43] Bhattacharyya, A. On a measure of divergence between two statistical populations defined by their probability distributions. _Bull._ _Calcutta_ _Math._ _Soc._ 35, 99–109 (1943). [44] Bhattacharyya, A. On a measure of divergence between two multinomial populations. _Sankhy¯a:_ _the_ _indian_ _journal_ _of_ _statistics_ 401–406 (1946). [45] Villani, C. _Optimal_ _transport:_ _old_ _and_ _new_, vol. 338 (Springer, 2009). [46] Virtanen, P. _et_ _al._ SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. _Nature_ _Methods_ 17, 261–272 (2020). [47] Sturges, H. A. The choice of a class interval. _Journal_ _of_ _the_ _american_ _statistical_ _association_ 21, 65–66 (1926). [48] Aghemo, L., Lavagna, L., Chiavazzo, E. & Pavese, M. Comparison of key performance indicators of sorbent materials for thermal energy storage with an economic focus. _Energy_ _Storage_ _Materials_ (2022). [49] Wang, Z. _et_ _al._ Deep learning for ultra-fast and high precision screening of energy materials. _Energy_ _Storage_ _Materials_ 39, 45–53 (2021). [50] Trezza, G. & Chiavazzo, E. Models and datasets for ”Leveraging Composition-Based Material De scriptors for Machine Learning Optimization” (2023). URL `https://doi.org/10.5281/zenodo.` `7725592` . 22 Supplementary Information for: ## Leveraging Composition-Based Material Descriptors for Machine Learning Optimization Giovanni Trezza, Eliodoro Chiavazzo <sup>∗</sup> _Department_ _of_ _Energy,_ _Politecnico_ _di_ _Torino,_ _C.so_ _Duca_ _degli_ _Abruzzi_ _24,_ _Torino_ _10129,_ _Italy_ Supplementary Note 1: Synthetic example for QEG We have generate a synthetic dataset with 5,000 samples consisting of pairs ( _x_ 1 _, x_ 2) drawn from a bivariate Gaussian distribution, with mean vector and covariance matrix _,_ Σ = 2 2 10 �1 (1) _µ_ = 1 - _−_ 2 respectively. We have discretized such samples with 100 2-dimensional bins, as shown in Supplementary Fig. 1a; then, over this binning, we have constructed the QEG solution in Supplementary Fig. 1b. a <u>Binned data</u> 4 2 0 10 0 10 x2 400 300 200 100 0 b <u>QEG solution</u> 4 2 0 10 0 10 x2 0.08 0.06 0.04 0.02 0.00 Supplementary Figure 1: Synthetic probabilistic classifier. a 2-dimensional binning, with 10 bins per variable _x_ 1 _, x_ 2; b QEG solution of corresponding maximum Shannon entropy probability distribution. ∗Corresponding author: eliodoro.chiavazzo@polito.it 1 loss validation loss 0 250 500 750 Epoch 4 3 2 1 0 R <sup>2</sup> = 1.000 MAE = 0.01 RMSE = 0.02 Ntrain = 7225 Nval = 1275 Ntest = 1500 0 2 4 True values 0.4 0.3 0.2 0.1 0.0 Supplementary Figure 2: Predictions and corresponding loss curves for the DNN regression model. Model performances are shown in terms of coefficient of determination _R_ <sup>2</sup>, mean absolute error (MAE), and root mean squared error (RMSE), with the sizes of the training, the validation and the testing sets, _N_ train, _N_ val, _N_ test respectively. Supplementary Table 1: Invariant groups results for synthetic example. Features pair mean _a_ std. dev. _a_ mean _b_ std. dev. _b_ ( _x_ 1 _, x_ 2) 0 _._ 799 0.047 0 _._ 596 0.060 ( _x_ 1 _, x_ 3) 0.954 0.034 0.054 0.294 ( _x_ 1 _, x_ 4) 1.000 0.000 -0.009 0.002 ( _x_ 2 _, x_ 3) 0.972 0.039 0.030 0.228 ( _x_ 2 _, x_ 4) 1.000 0.000 -0.006 0.002 ( _x_ 3 _, x_ 4) 0.155 0.983 -0.036 0.090 Supplementary Note 2: Synthetic example for invariant groups detection We have generated a synthetic dataset of 10,000 samples and 5 columns, 4 of which represent the features _x_ 1 _∈_ [1 _,_ 2], _x_ 2 _∈_ [0 _._ 5 _,_ 1], _x_ 3 _∈_ [2 _,_ 5], _x_ 4 _∈_ [3 _,_ 7], and 1 represents the response _y_, governed by the function _x_ <sup>4</sup> 1 <sup>4</sup> 1 <sup>_x_</sup> 2 <sup>3</sup> + <sup><u>cos(5</u></sup> _~~√~~_ _<u>x</u>_ <sup>_<u>x</u>_</sup> 4 <sup><u>3)</u></sup> �� _x_ <sup>4</sup> 1 <sup>4</sup> 1 <sup>_x_</sup> <sup>3</sup> 2 <sup>_._</sup> (2) _y_ ( x ) = sin ln + The synthetic function in Eq. 2 has the invariant group _x_ <sup>4</sup> 1 <sup>_x_</sup> 2 <sup>3, which we aim at detecting.</sup> <sup>We have thus</sup> splitted the dataset into three parts: (i) a training set, (ii) a validation set to get insight of possible overfitting, (iii) a testing set to effectively evaluate the model performances. The synthetic function in Eq. 2 has the invariant group _x_ <sup>4</sup> 1 Supplementary Fig. 2 shows the predictions over the testing set, together with the model performances and the corresponding loss with respect to the number of epochs. Specifically, no overfitting is found. More details about the DNN are shown in Supplementary Note 3. Supplementary table 1 shows the means and the standard deviations of the coefficients _a_ and _b_ over 100 trials. <u>The</u> method identifies correctly that the pair ( _x_ 1 _, x_ 2) has normalized exponents _a_ _≈_ 0 _._ 8 = 4 _/√_ 3 <sup>2</sup> + 4 <sup>2</sup> and _b_ _≈_ 0 _._ 6 = 3 _/√_ 3 <sup>2</sup> + 4 <sup>2</sup>, with low standard deviations. For all the other _√_ <u>The</u> method identifies c _√_ 3 <sup>2</sup> + 4 <sup>2</sup> and _b_ _≈_ 0 _._ 6 = 3 _/_ _a_ _≈_ 0 _._ 8 = 4 _/√_ 3 <sup>2</sup> + 4 <sup>2</sup> and _b_ _≈_ 0 _._ 6 = 3 _/√_ 3 <sup>2</sup> + 4 <sup>2</sup>, with low standard deviations. For all the other cases, there are too high variances for at least one of the two exponents - e.g. ( _x_ 1 _, x_ 3) - or there is too closeness to 0 for one of the two exponents - e.g. ( _x_ 1 _, x_ 4), which cancels the group. 2 Supplementary Note 3: Deep Neural Networks structures The structure of the Deep Neural Network for the superconductors example in the main text is the following: - optimizer Adam, learning rate 0.001; - input layer 81 neurons; - normalization layer adapted over the training set; - dense layer, 128 neurons, activation ReLU; - dense layer, 64 neurons, activation ReLU; - dense layer, 64 neurons, activation ReLU; - dense layer, 32 neurons, activation ReLU; - dense layer, 32 neurons, activation ReLU; - dense layer, 16 neurons, activation ReLU; - dense layer, 16 neurons, activation ReLU; - dense layer, 8 neurons, activation ReLU; - dense layer, 1 neuron, activation linear; The structure of the Deep Neural Network for the synthetic example in the Supplementary Note 2 is the following: - optimizer Adam, learning rate 0.001; - input layer 4 neurons; - normalization layer adapted over the training set; - dense layer, 64 neurons, activation Leaky ReLU; - dense layer, 64 neurons, activation Leaky ReLU; - dense layer, 32 neurons, activation Leaky ReLU; - dense layer, 32 neurons, activation Leaky ReLU; - dense layer, 16 neurons, activation Leaky ReLU; - dense layer, 16 neurons, activation Leaky ReLU; - dense layer, 8 neurons, activation Leaky ReLU; - dense layer, 1 neuron, activation linear; In particular, in both models we have employed the early stopping regularization, with patience = 200. 3 Supplementary Note 4: ETR/ETC hyperparameter tuning The pipeline generating ETR, ETC-vanilla and ETC-SMOTE models is given by the steps in the following: (i) drop of features with linear correlation _>_ 0 _._ 9, (ii) drop of features with no variance, (iii) oversampling with SMOTE - only for ETC-SMOTE, (iv) drop of the least relevant features in terms of the `f_regression` test [1] - for ETR - or `f_classif` test [1] - for ETCs, (v) training of the model. The space of hyperparameters we have explored for the ETR-based pipeline is composed by: - the percentage of the most relevant features to retain according to the `f_regression` / `f_classif` test, at point (iv), to be chosen among [50, 75, 100]; - the number of estimators in the ETR/ETC model, to be chosen among [100, 250, 500, 750, 1000]; - the number of max features, i.e., the number of features to keep when looking for the best split, to be chosen among [1, 0.9, 0.8, 0.7, 0.6, 0.5]. In the aforementioned space, we have performed the hyperparameter tuning in 5-fold cross validation (for the ETR) or in stratified 5-fold cross validation (for ETCs) by means of `GridSearchCV` [1], thus exploring all the possible combinations, ensuring the absence of data leakage and preventing overfitting. 4 Supplementary Note 5: SHAP With the Tree SHAP algorithm, which is tailored for tree-based models like ETR [2,3], we identify the most crucial features during model training and validation, quantifying the influence of each feature on the output. This approach is based on the traditional Shapley value, which originally found use in game theory. There, the issue of allocating a proportionate reward to each player in a cooperative game is handled based on the actual contribution provided to the coalition’s common goal. The relevance of the _i−_ th descriptor in a model is determined by comparing the model _fS∪{i}_ ( x _S∪{i}_ ) trained with that explanatory variable to another model _fS_ ( x _S_ ) trained without that feature, where x _S∪{i}_ and x _S_ represent, respectively, the values of the input feature over the subsets _S ∪{i}_ and _S_ . The difference between the predictions _fS∪{i}_ ( x _S∪{i}_ ) _−_ _fS∪{i}_ ( x _S_ ) is thus computed. The relevance value of the _i_ -th descriptor is represented by this difference weighted over all possible subsets _S_ . The importance of the _i_ -th turns out to be _fS∪{i}_ ( x _S∪{i}_ ) _−_ _fS_ ( x _S_ ) (3) - _φi_ = _S⊆_ - _F_ _\{i}_ _<u>|S|</u>_ <u>!(</u> _<u>|F</u>_ _<u>| −|S| −</u>_ <u>1)!</u> _|F_ _|_ ! where _| · |_ denotes the number of elements. 5 Supplementary Note 6: Outliers removal During the dataset creation, as the last preprocessing step we have removed the top four materials - in terms of _T_ c - as outliers. This is justified by binning the 7230 (before the removal) critical temperatures according to the Sturges’ rule, by which the optimal number of bins is 1 + ceil(log2( _h_ )) [4], where _h_ = 7230. We end up with the binning shown in Supplementary Fig. 3. The top four _T_ cs are indeed far from the distribution of the other materials, so we dropped them. 6000 4000 2000 0 6343 719 <u>59</u> <u>104</u> <u>1</u> <u>0</u> <u>0</u> <u>2</u> <u>0</u> <u>0</u> <u>1</u> <u>0</u> <u>0</u> <u>1</u> 0 20 40 60 80 100 120 140 Tc (K) Supplementary Figure 3: Binning over 7230 critical temperatures of the dataset. 6 Supplementary Note 7: Extra Trees In random forests, a number of decision trees is produced, over random partitions of the input space. On each one of them, a decision tree is constructed; their predictions are aggregated by taking the mean. Specifically, during the building of a tree, the best split is determined either from all input features or from a random subset of size `max_features` . On the contrary, on Extra Trees-based models (ETR and ETC), only a random subsets of possible splits is explored, and the best one of them is picked as the splitting rule [1]. 7 Supplementary Note 8: ROC curves 1.0 0.8 0.6 0.4 0.2 0.0 1.0 0.8 0.6 0.4 0.2 0.0 0.00 0.25 0.50 0.75 1.00 FPR (-) 0.00 0.25 0.50 0.75 1.00 FPR (-) No skill QEG 2D QEG 2D bagged QEG 3D ETC 2D-high ETC 3D-high QEG 2D-mixed pow QEG 2D-mixed lin ETC 2D-mixed pow ETC 2D-mixed lin No skill ETC 2D-middle ETC 3D-middle ETC 2D-low ETC 3D-low ETC-vanilla ETC-SMOTE ETC-vanilla-81 ETC-SMOTE-81 Naive 2D-high Naive 2D-mixed lin Naive 2D-mixed pow Supplementary Figure 4: ROC curves for the _No_ _skill_, QEG 2D, QEG 2D bagged, QEG 3D, ETC 2D-high, ETC 3D-high, QEG 2D-mixed pow, QEG 2D-mixed lin, ETC 2D-mixed lin, ETC 2D-mixed pow, ETC-2D-middle, ETC 3D-middle, ETC 2D-low, ETC 3D-low, ETC-vanilla, ETC-SMOTE, ETCvanilla-81, ETC-SMOTE-81 classifiers, with discriminating threshold of _T_ c = 15 K. 8 Supplementary Note 9: Optimization for mixed features Multi-objective optimization. For finding the mixed features _x_ <sup>pow</sup> <sup>_,_</sup> <sup>least</sup> <sup>_,_</sup> <sup>35</sup>, _x_ 1 <sup>pow</sup> _,_ 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> 1 <sup>pow</sup> _,_ 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, _x_ 1 <sup>pow</sup> _,_ 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> 1 <sup>pow</sup> _,_ 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup>, _x_ 1 <sup>lin</sup> _,_ 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup> 1 <sup>lin</sup> _,_ 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup>, _x_ <sup>pow</sup> 1 _,_ 2 <sup>_,_</sup> <sup>3class</sup> _x_ 1 <sup>lin</sup> _,_ 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>15</sup>, _x_ <sup>pow</sup> 1 _,_ 2 <sup>_,_</sup> <sup>3class</sup> we have employed a multi-objective optimization by means of a Pareto front in MATLAB. Here we have considered only the Utopia point - namely, the closest to the origin (also for the 3 classes example) - and the _least_ point - namely, the one assessing the lowest overlap between the _P_ ( _x_ ) _Q_ ( _x_ ), with _P_, _x∈X_ _Q_ being two discrete probability distributions defined on the same domain _X_ . �This is equivalent to two classes, as prescribed by the Bhattacharyya coefficient _BC_ ( _P, Q_ ) = <sup>�</sup> maximize the Bhattacharyya distance _−_ ln _BC_ ( _P, Q_ ) [5,6]. the 3 classes example) - and the _least_ point - namely, the one assessing the lowest overlap between the _P_ ( _x_ ) _Q_ ( _x_ ), with _P_, _x∈X_ _Q_ being two discrete probability distributions defined on the same domain _X_ . �This is equivalent to two classes, as prescribed by the Bhattacharyya coefficient _BC_ ( _P, Q_ ) = <sup>�</sup> maximize the Bhattacharyya distance _−_ ln _BC_ ( _P, Q_ ) [5,6]. Single objective optimization. For finding the mixed features _x_ <sup>lin</sup> 1 _,_ 2 <sup>_,_</sup> <sup>25</sup> we have employed a single objective optimization by means of a Genetic Algorithm and a Pattern Search in MATLAB. In particular, we have used the Genetic Algorithm to construct a first tentative solution, improved by means of the MATLAB `patternsearch` routine to get the solution minimizing the number of negative neighbors around a positive sample in a given radius. Thus, here we do not consider the distance between the two distributions. _x∈X_ Single objective optimization. For finding the mixed features _x_ <sup>lin</sup> 1 _,_ 2 <sup>_,_</sup> <sup>25</sup> 9 Supplementary Note 10: Naive Gaussian Bayesian Classifier In Naive Bayes Classifiers, the Bayes theorem, with the _naive_ assumption of conditional independence between any pair of features, is applied. Given the class variable _y_ and a set of features _x_ 1 _, . . ., xn_, the Bayes theorem yields (4) _P_ ( _y|x_ 1 _, . . ., xn_ ) = <sup>_<u>P</u>_</sup> <sup><u>(</u></sup> <sup>_<u>y</u>_</sup> _P_ <sup><u>)</u></sup> <sup>_<u>P</u>_</sup> ( _x_ <sup><u>(</u></sup> 1 <sup>_<u>x</u>_</sup> _, . . ., x_ <sup><u>1</u></sup> <sup>_<u>, . . ., x</u>_</sup> _n_ ) <sup>_<u>n|y</u>_</sup> <sup><u>)</u></sup> that, with the naive independence condition _P_ ( _xi|y, x_ 1 _, . . ., xi−_ 1 _, xi_ +1 _, . . . xn_ ) = _P_ ( _xi|y_ ), becomes _<u>i</u>_ _P_ ( _x_ 1 _P_ ( _y|x_ 1 _, . . ., xn_ ) = <sup>_<u>P</u>_</sup> <sup><u>(</u></sup> <sup>_<u>y</u>_</sup> <sup><u>) �</u></sup> <sup>_n_</sup> _<u>i</u>_ <u>=1</u> <sup>_<u>P</u>_</sup> <sup><u>(</u></sup> <sup>_<u>xi|y</u>_</sup> <sup><u>)</u></sup> _._ (5) _P_ ( _x_ 1 _, . . ., xn_ ) <sup>_<u>y</u>_</sup> <sup><u>) �</u></sup> <sup>_n_</sup> Since _P_ ( _x_ 1 _, . . ., xn_ ) is constant given the input, the classification rule can be written as _y_ ˆ = arg max _P_ ( _y_ ) _y_ _n_ _i_ =1 _P_ ( _xi|y_ ) _._ (6) In the Naive Gaussian Classifier employed in this paper, _P_ ( _xi|y_ ) is the Gaussian _,_ (7) <u>1</u> _P_ ( _xi|y_ ) = exp 2 _πσy_ <sup>2</sup> ~~�~~ _−_ <sup><u>(</u></sup> <sup>_<u>xi −</u>_</sup> 2 _σy_ <sup>_<u>µ</u>_</sup> <sup>2</sup> <sup>_<u>y</u>_</sup> <sup><u>)2</u></sup> 2 _σy_ <sup>2</sup> where _µy_ and _σy_ are estimated by means of maximum likelihood. For further details, please refer to refs. [7,1]. In this work, we have employed all the default hyperparameters for Gaussian Naive Classifiers, as implemented in Scikit-learn [1]. 10 Supplementary Table 2: Performances of the trained classifiers. AUC _ξJ,_ max _J_ max _ξF_ 1 _,_ max _F_ 1 _,_ max No skill 0.50 - - - Naive 2D-35 0.78 0.021 0.64 0.021 0.12 Naive 2D-35 mixed 0.98 0.526 0.93 0.532 0.76 1.0 0.8 0.6 0.4 0.2 0.0 No skill Naive 2D-35 Naive 2D-35 mixed 0.00 0.25 0.50 0.75 1.00 FPR (-) Supplementary Figure 5: ROC curves for the _No_ _skill_, Naive 2D-35, Naive 2D-35 mixed classifiers, with discriminating threshold of _T_ c = 35 K. Supplementary Note 11: Naive Gaussian Bayesian Classifier - example at _T_ c = 35 K In the main text, we have given performances of Naive Gaussian Bayesian classifiers only for the threshold of _T_ c = 15 K. Here we analyze the case of a threshold _T_ c = 35 K, comparing two classifiers, namely the former trained with the first two features of the SHAP ranking, the latter trained with the two optimized features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> (already used in the main text example of Fig. 8). <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> the two optimized features _x_ <sup>pow</sup> 1 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup>, _x_ <sup>pow</sup> 2 <sup>_,_</sup> <sup>uto</sup> <sup>_,_</sup> <sup>35</sup> (already used in the main text example of Fig. 8). Supplementary table 2 shows a sharp improvement in terms of all the metrics if employing the mixed features (Naive 2D-35 mixed) with respect to the SHAP features (Naive 2D-35); Supplementary Fig. 5 shows the corresponding ROC curves. 11 ## References [1] Pedregosa, F. et al. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research 12, 2825–2830 (2011). [2] Lundberg, S. M. et al. From local explanations to global understanding with explainable ai for trees. Nature machine intelligence 2, 56–67 (2020). [3] Lundberg, S. M. & Lee, S.-I. A unified approach to interpreting model predictions. Advances in neural information processing systems 30 (2017). [4] Sturges, H. A. The choice of a class interval. Journal of the american statistical association 21, 65–66 (1926). [5] Bhattacharyya, A. On a measure of divergence between two statistical populations defined by their probability distributions. Bull. Calcutta Math. Soc. 35, 99–109 (1943). [6] Bhattacharyya, A. On a measure of divergence between two multinomial populations. Sankhy¯a: the indian journal of statistics 401–406 (1946). [7] Zhang, H. The optimality of naive bayes. Aa 1, 3 (2004). 12

섹션 본문 75문단 · 44,264자

(제목 없음)

1In this study, we evaluate several classifiers and focus on selecting a minimal set of appropriate material features.Our objective is to propose and discuss general strategies for reducing the number of descriptors required for material classification.The first strategy involves testing whether the critical temperature of the target material property is invariant with respect to binary groups of composition-based features.We also propose a multi-objective optimization procedure to reduce the set of composition-based material descriptors.The latter procedure is found to be particularly useful when applied to Bayesian classifiers.We test the proposed strategies focusing on low-temperature superconductors material data extracted from a public database.

Introduction

2Construction of reliable and predictive models for material properties is becoming an aspect of general interest in a number of areas.With a special focus on materials for energy applications, the in silico prediction of physical properties without resorting to time consuming simulations or expensive experiments is of utmost importance.One of the reason being that low-cost, long-lasting materials with high performance is key for energy storage technologies, as it may be responsible from most of the total cost [1].

3A number of technological areas ranging from the energy up to healthcare sector are being transformed by superconducting materials and may greatly benefit from the discovery of new high performance materials.Superconductors are materials characterized by zero electrical resistivity when cooled below a superconducting critical temperature T c [2].Due to this fundamental property, such compounds have attracted attention in a wide range of different fields.Superconducting Magnetic Energy Storage (SMES) systems allow to store energy by means of a DC current flowing through a superconducting coil; as a consequence, energy can be stored in the resulting magnetic field with almost no loss and can be released back by discharging the coil [3].Superconducting electromagnets are employed in fusion reactors like tokamak [4], Magnetic Resonance Imaging (MRI) [5,6], Nuclear Magnetic Resonance (NMR) machines [7,8], particle accelerators [9].Other applications include Superconducting Quantum Interference Devices (SQUIDs) [10], particle detectors [11], fast fault current limiters [12].As such, discovery of new superconductors in the near future is highly desirable and can have a crucial impact on the energy sector (among others).

4Therefore, several recent research studies have made extensive use of Machine Learning (ML)based approaches.In particular, Stanev et al. [13] trained and validated models both for classification -prediction of the classes superconductor /non-superconductor -and for regression -prediction of the critical temperature, employing composition-based features together with the experimental T c s of known superconductors.Konno et al. [14] represented each chemical formula with four tables, corresponding to the periodic table blocks s, p, d, f , with such information being the input of a convolutional Deep Neural Network (DNN) able to predict the critical temperature.Le et al. [15] trained and validated a Variational Bayesian Neural Network using superconductors compositionbased features for the T c prediction.Roter et al. used only chemical elements and stoichiometry, with no extracted features, to predict the critical temperature [16] and to cluster superconductors [17].

5In our work, we deliberately target classical low temperature superconductors, as we could rely upon a high-quality database [18].As such, while collecting the data from the database for training purposes, we discarded all materials containing the following elements: Fe, Ni, Cu (to avoid unconventional superconductivity [19]).Furthermore, we also removed materials with oxygen to avoid oxides and hopefully include in our analysis materials that are more likely to exhibit ductile behaviour.

6After the extraction of 145 composition-based features by means of Matminer [20] for each material formula, we have first trained and validated a tree-based regression model for the prediction of the critical temperature, over which we got insight of the most important features by means of SHAP [21,22,23].Based on those features, we thus compare several binary classifiers, to distinguish compounds with the critical T c exceeding a predefined threshold value from the remaining samples.

7A special focus of this study is on the identification and construction of a minimal and optimal set of key material descriptors (or features) to be adopted for classification purposes.To this end, we pursue two main strategies as briefly described below and schematically represented in Fig. 1: • We first perform the aforementioned SHAP analysis and establish a descriptor ranking based on the relevance of single features {x i=1,...,n }, where n is the maximum number of adopted features;

8• In the spirit of the work by Tegmark and collaborators [24], we propose a general approach for investigating possible symmetries of the target quantity (here T c ) with respect to groups of the originally chosen features (according to the order suggested by SHAP).Without loss of generality, we focus on feature binary groups in the form x a i x b j , with a, b ∈ R being properly selected constants.To this end, a proper algorithm based on the computation of the output gradient with respect to the input features by means of a Deep Neural Network (DNN) is discussed.

9• Finally, a general framework for drastically reducing the number of the classifier features is proposed in the form of both single and multi-objective optimization problem.Among other purposes, the latter approach proves particularly convenient to synthetically construct new descriptors particularly suited for Bayesian type classifiers, including a novel entropy-based classifier introduced and tested in this work.

10Finally, we use the classifiers with the best performance, to rank ∼ 40, 000 compounds from Materials Project [25] and not occurring in the SuperCon.

Dataset creation

11First, we aim at the construction of a database suitable for ML regression to predict the critical temperature.In particular, the SuperCon database [18] collects both inorganic (under the class "Oxide and Metallic") and organic materials (under the class "Organic").We have considered only the entire subset of inorganic compounds, consisting of ∼ 33, 000 entries, of which ∼ 7, 000 have no T c ; for those latter compounds, we have assumed T c = 0 K.We have thus dropped all materials whose formulae contain symbols like '-', '+', ',', strings like 'X', 'Z', 'z' when not included in meaningful elements symbols (e.g., 'Zn'), and with T c > 150 K, resulting in a reduction of the number of compounds to ∼ 26, 000.Furthermore, after normalizing the formulae stoichiometry, we have followed the same approach explained by Stanev et al. [13] for dealing with the duplicates.In particular, when the Figure 1: Overview of the protocol used to find a reduced set of ruling descriptors for conventional superconductivity and for the construction of optimized mixed features.Over 7000 chemical compositions have been featurized with 145 descriptors.A regression model has been trained and validated over this dataset, and during the pre-processing routines (i.e., feature reduction by means of linear correlation analysis, descriptors variance analysis, correlation analysis with the T c , see Supplementary Note 4 for details), many of those features are discarded, ending up with 81 descriptors.By means of SHAP, those 81 features are ranked in terms of importance.The work aimed at finding optimized mixed features for both regression/classification in the form x a i x b j ; and for classification, with power or linear combination of the primitive features.The latter descriptors have been tested over both new entropy-based classifiers and other classifiers.

12same compound was reported with different T c values, we have retained it with the average critical temperature only if std(T c ) ≤ 5 K, otherwise we dropped all of its occurrences, ending up with ∼ 16, 000 unique compounds.Moreover, we have taken into account only the classical superconductivity: we have dropped materials with Ni, Fe, Cu and O (to avoid oxides).We have finally dropped four outliers with T c > 50 K (see Supplementary Note 6 for details).These latter steps left ∼ 7200 materials for classical superconductivity, of which ∼ 6700 have T c < 15 K.We have addressed those cleaning pre-processing by employing the Python Pandas package [26].

13We have then converted each brute formula into 145 composition-based descriptors by means of Matminer [20].Specifically, as stated by Ward et al. [27], they include stoichiometric attributes (depending on the elements' ratios), elemental property statistics (representing mean, absolute deviation, minimum and maximum of 22 atomic properties, e.g., atomic number, atomic radii), electronic structure attributes (corresponding to the average fraction of electrons in s, p, d, f valence shells over all the elements in the compound) and ionic compound attributes (including whether it is possible to form an ionic compound assuming all elements are present in a single oxidation state).

Regression models and descriptors choice

14As a second step, we have trained and validated two different regression ML models for the prediction of the critical temperature.The former is a tree-based model, allowing the exact computation of the coefficients of importance in terms of the T c by means of the Tree SHAP interpretation algorithm [22,21].The latter is a Deep Neural Network (DNN), allowing the computation of the gradient of the critical temperature with respect to the input features, namely ∇T c (x 1 , . . ., x n ), which is necessary for the identification of the invariant groups in the form x a i x b j .Specifically, the former model is an ETR-based pipeline, with hyperparameter tuning in 5-fold cross validation, trained over the 85% of the dataset and tested over the remaining 15%.The latter is a DNN trained and validated over the 85% of the database -of which the 85% has been used for the training and the remaining 15% for the validation -and tested over the remaining 15%.For further details about the regression models, please refer to Supplementary Notes 3 and 4.

Invariant groups identification procedure

15For the identification of the invariant binary groups in the form x a i x b j we have applied the following procedure.

16The critical temperature is a function of more variables, namely T c = T c (x 1 , . . ., x n ).If T c is invariant with respect to a group of features in the form x a i x b j , when this group is a constant c -even varying the components x i , x j separately -the critical temperature does not change as well.This yields a ln

17where c = ln(c).If c is constant, dc = 0; so, Eq. 1 can be rewritten as,

18An orthogonal vector n to the locus of points with dc = 0 in a point x 0 = (x i,0 , x j,0 ) has components (a/x i,0 , b/x j,0 ), which normalized becomes the following unit vector:

19The condition of invariance with respect to the group x a i x b j requires that the components of the gradient ∇T c (x 1 , . . ., x n ) are aligned with n in x 0 .This yields the system

20where

21and n 1 , n 2 represent the two components of the unit vector n.If the non-linear system in Eq. 4 is satisfied for the same exponents (a, b) over all the domains of the variables (x i , x j ) -namely x i,min ≤ ∀x i ≤ x i,max and x j,min ≤ ∀x j ≤ x j,max -the group x a i x b j is an intrinsic variable.From the practical viewpoint, this has required the computation of the gradient ∇T c (x 1 , . . ., x n ), where the function T c (x 1 , . . ., x n ) is represented by the DNN -built by means of Tensorflow [28] -linking the critical temperature with the input features.In particular, once the network has been trained and validated, we have employed the automatic differentiation to compute those partial derivatives.Specifically, for getting e.g., ∂Tc ∂x j over all the domain of the variable x j , we have fixed all the other variables (x 1 , . . ., x j−1 , x j+1 , . . ., x n ) to their average values in the original database.Finally, for each group of two features x i and x j , we have computed 100 different times the values of a and b respectively, comparing them for getting insight of possible invariance.The above approach has been tested in the Supplementary Note 2 by means of properly designed synthetic example.

QEG-based probabilistic classifier

22In addition to more classical classifiers, we have attempted the construction of maximum Shannon entropy-based probabilistic classifier based on the concept of Quasi Equilibrium Manifold as defined in [29,30] and implemented in the discrete form of Quasi Equilibrium Grid (QEG) as discussed in [31,32,33,34].The main idea is described below.Given a number s of important descriptors, we have first discretized those features from the original dataset by means of a s−dimensional binning, where each descriptor accounts for a number of bins N 1 , . . ., N s .Our aim was thus to build a probability distribution p(x 1 , . . ., x s ) having the same mean vector and covariance matrix of the original binned data; among the infinite distributions respecting those bounds, we were interested in the one maximizing the Shannon Entropy.Given the total number of s − dimensional bins

23the general idea consists in starting with a flattened probability distribution p 0 = (p 1 , . . ., p N ) 0 and ending up with a corrected distribution, which respects the constraints of mean vector and covariance we have imposed.The QEG guarantees that, if p 0 lies on the surface of maximum Shannon Entropy, also any corrected distribution will lie on the same surface.For this reason, we have always chosen p 0 as the uniform distribution, where each entry is 1/N .

24To this end, we have defined a matrix m ∈ R l×N , where l = (3s + s 2 )/2.The first s rows of m represent the binning of those s descriptors.The remaining l − s rows represent the covariance matrix entries of those s descriptors; namely, given the integers i, j ∈ [1, s], with i ≥ j, the generic row of m among the last l − s rows is the result of the element-wise product (m i − µ i )(m j − µ j ), where µ i , µ j are the means of the i−th and j−th descriptor respectively, while m i , m j are the i−th and j−th rows of m respectively.Furthermore, we define the matrix E = (m, 1) , where 1 = (1, . . ., 1) ∈ R N represents the normalization condition for probability.Let denote the null space of 1 with ρ ∈ R N ×(N −1) and the null space of E with t ∈ R N ×(N −l−1) .We thus construct a square matrix A ∈ R (N −1)×(N −1) and a vector b ∈ R N −1 .For the first N − l − 1 rows, the generic elements correspond to

25while for the remaining l rows they are

26where t i , ρ j and m i are the i-th column of t, the j-th column of ρ and the i-th row of m respectively, p represents the flattened probability distribution at the current iteration step, •, • denotes the dot product.

27The correction procedure for the i-th bound is carried out as follows: (i) the starting point is computed as m i , p , (ii) the desired value is computed as m i , p , where the j-th entry of p is the number of items belonging to the j-th s-dimensional bin over the total number of items (namely, the frequency), (iii) the resulting residual is filled by solving the system A k p k+1 = b k iteratively, by replacing time by time b N −l−1+i with a correction step ε, where p k+1 = p k +δp k and δp k represents the correction resulting from the k-th iteration, (iv) when the correction over the i-th bound is complete, the correction over the i + 1-th bound can start, by imposing b N −l−1+i = 0 and b N −l−1+i+1 = ε.

Results and discussion

28As mentioned above, and in line with others in the literature [13,14,15,16,17], we adopted a convenient source of data, namely the SuperCon database [18] which collects the values of critical temperatures T c for superconducting materials known from literature.To our knowledge, SuperCon represents the largest database of its kind, from which we have extracted a list of ∼ 16, 000 materials.Beyond the T c values, the SuperCon database provides only the chemical composition of a compound.The latter info was thus converted into meaningful features by means of Matminer [20], allowing us to associate the normalized brute formula of each compound with 145 composition-based descriptors (see Methods for further details).

29Armed with such features, we can thus make use and compare the performance of several classifiers aiming at predicting the probability for a compound to be a superconductor candidate.In our study, we made use of known classifiers.In addition, we also investigate a Bayesian type classifier based on the concept of Quasi-Equilibrium Manifold [29,30,31,33], as detailed above.

Models for predicting the critical temperature value

30We have first trained and validated an Extra Trees Regressor (ETR)-based pipeline with hyperparameter tuning in 5-fold cross-validation (see Supplementary Notes 4 and 7 for details).By means of the Tree SHAP algorithm [22,21], we have sorted the input features in terms of their relevance with respect to the prediction of the T c .Model performances with the corresponding cumulative importance curves of the ruling descriptors are reported in Fig. 2.During the data preprocessing routines, the trained pipeline (i.e., feature reduction by means of linear correlation analysis, descriptors variance analysis, correlation analysis with the T c and ML with hyperparameter tuning, see Supplementary Note 4 for details) already drops a significant number of the 145 features, thus confirming that many of the initially selected descriptors do not significantly affect the chosen target property.In particular, the final model only includes 81 descriptors.Importantly, Fig. 3 shows the SHAP rankings of the five most meaningful descriptors for the aforementioned model.Table 1 summarizes the physicochemical meaning of the identified descriptors, based on the complete list by Ward et al. [27].The entire list of variables, together with their cumulative importance, the trained models, and the datasets on which they have been trained are publicly available online (see Data availability and Code availability).

31Table 1: Relevant composition-based descriptors and their meaning [27].

Descriptor name Meaning

32MagpieData range MeltingT Range of melting T over the elements of a compound 0-norm Number of different chemical species MagpieData mode NdUnfilled Mode of d unfilled orbitals over the elements MagpieData mode NsUnfilled Mode of s unfilled orbitals over the elements MagpieData avg dev MeltingT Average absolute deviation of melting T over the elements

Invariant groups

33In a first attempt of reducing the number of input features within the above models, we decided to investigate on the possible existence of symmetries of the obtained regression models.In particular, we have been focusing on the possible invariance of the target property (here the critical temperature) with respect to binary groups of the form: x a i x b j .In this study, we restrict to binary groups, although we are confident that the approach can be also generalized to groups concurrently involving a larger number of features.To this end, as discussed in the Methods section below, it is necessary to get access to the gradient of the critical temperature with respect to the input features, namely ∇T c (x 1 , . . ., x n ).We have thus approximated the function T c (x 1 , . . ., x n ) with a Deep Neural Network (DNN), which is -to our knowledge -a convenient model allowing to compute that gradient by means of automatic differentiation.

34As input features of the DNN, we have employed the same 81 relevant descriptors of the above ETR-based pipeline.We have thus splitted the dataset into three parts: (i) a training set, (ii) a validation set to get insight of possible overfitting, (iii) a testing set to effectively evaluate the model performances.Fig. 4 shows the predictions over the testing set, together with the model performances and the corresponding loss with respect to the number of epochs.Specifically, no overfitting is found.More details about the DNN structure are shown in the Supplementary Note 3. We have thus looked for possible invariant groups in the form x a i x b j among the 45 different combinations of the most relevant 10 features according to the SHAP-based ranking above.On the basis of our investigations, we can conclude that the critical temperature of the examined materials presents no invariance with respect to the tested binary groups.

Entropy-based binary classifiers

35In this section, we introduce and test a special Bayesian type classifier as detailed below.We have considered the first two features of the SHAP ranking for constructing a Shannon Entropy-based probabilistic classifier according to the Quasi Equilibrium Grid (QEG)-based procedure reported above in the Methods.In particular, we have binned those two features separately for superconductors with both T c < 15 K (class 0) and T c ≥ 15 K (class 1) among the 85% of the materials -namely, the training set -thus obtaining the pair of 2 dimensional binnings in Fig. 5a.For each of those binnings, we have computed the five needed constraints, namely the means of those two features and their three variance terms (see Methods).We have thus constructed a surface of maximum Shannon entropy for each of the two classes by means of the QEG algorithm, as depicted in Fig. 5b.Finally, we have computed the probability distribution by subtracting the QEG solution for class 0 from the QEG solution for class Binned data for x (1) 1 to x (10) 1 class 0

36Binned data for x (1) 1 to x (10) 1 class 1 QEG for x (1) 1 to x (10) 1 class 0 QEG for x (1) 1 to x (10) 1 class 1 1 -both multiplied by the cardinality of the corresponding class in the training set -and up-shifting the result by the minimum, in such a way to have probabilities ≥ 0. The latter distribution represents our 2 dimensional QEG probabilistic classifier.Moreover, having in mind the idea of Random Forests, which employ bagging (creation of more decision trees and aggregation of the results by taking the mean) [35], we have produced 100 QEG 2D distributions per class, each based on a different random subset of training set.We have thus taken a mean distribution per class; Fig. 5c shows that the bagged results are in accordance with the non-bagged case of Fig. 5b.

37We have repeated the same procedure taking into account the first three features according to the SHAP-based ranking above -namely, the range of the melting temperature, the number of different chemical species, the mode of d unfilled orbitals.A 3-dimensional binning of dimensions 10×6×10 can be represented as an ensemble of ten 2-dimensional binnings, each of dimensions 6 × 10.Fig. 6a shows such discretization of the data, where ten matrices of axes x 2 , x 3 act for the ten bins of feature x 1 , from bin x for each of the two classes.Fig. 6b shows the corresponding the QEG solutions for classes 0 and 1 separately.

Other standard binary classifiers

38Furthermore, we have trained and validated two Extra Trees Classifier (ETC) models with default hyperparameters over the same training set accounting for the 85% of materials, including only the first two and the first three features by the aforementioned SHAP ranking respectively.Moreover, we have used the entire dataset -with all the features -to train and validate two further ETC-based pipelines, both with pre-processing and hyperparameter tuning in stratified 5-fold cross validation (see Supplementary Note 4 for details).Specifically, since the cardinalities of two classes are unbalanced, we employed the Synthetic Minority Over-Sampling TEchnique (SMOTE) algorithm in one of the two pipelines, which, through interpolation, produces samples in the underrepresented class [36].

39In particular, the Scikit-learn Python package [37] offers the possibility of predicting not only the class, but also the class probabilities; the predicted class is automatically chosen to be the one accounting for the highest probability.Hence, by considering only the probabilities of the class 1, i.e., the material is predicted to be superconductive, we have moved the discriminating threshold from 0 (all the materials are predicted in class 1) to 1 (all the materials are predicted in class 0).For each threshold, a different confusion matrix, with different number of true positives (TP), false negatives (FN), false positives (FP), true negatives (TN), is constructed.For each confusion matrix, the true positive rate (TPR) and the false positive rate (FPR) are computed, where TPR = TP/(TP+FN) and FPR = FP/(FP + TN).The same procedure is repeated for the QEG based probabilistic classifiers, where the order of magnitude of the thresholds is lower, since the probability does not sum up to 1 over two classes but over 60 (QEG 2D) or 600 bins (QEG 3D).

40In Supplementary Note 8 we report a comprehensive comparison of the Receiver Operating Characteristic (ROC) curves for the all the classifiers.

41The performence of a classifier can be measured by means of the Area Under Curve (AUC) of the ROC: the larger the AUC, the better the classifier.Furthermore, given a ROC curve, its best discriminating threshold ξ -above which a sample is classified as 1 and below which is classified as 0 -can be identified by means of the Youden's statistics, maximizing the quantity J = TPR − FPR [38].Another metric for choosing the best threshold is the maximization of the F 1 score, by definition F 1 = 2TP/(2TP + FP + FN) [39,40,41].

42Performances computed over the same testing set of 1084 materials are shown in Table 2.The comparison encompasses QEGs with two and three features (QEG 2D and QEG 3D respectively), ETCs with the top two and three features of the SHAP ranking (ETC 2D-high and ETC 3D-high respectively), ETCs with the two (33-rd, 34-th) and three (33-rd, 34-th, 35-th) features of the SHAP ranking (ETC 2D-middle and ETC 3D-middle respectively), with the least two and three features of the SHAP ranking (ETC 2D-low and ETC 3D-low respectively), ETC with all the database (ETCvanilla), ETC with the additional SMOTE algorithm (ETC-SMOTE), ETC with all the database and all the 81 features (ETC-vanilla-81), ETC with the additional SMOTE algorithm and all the 81 features (ETC-SMOTE-81), Gaussian Naive Bayesian classifier (Naive 2D, see Supplementary Note 10 and ref. [42] for details), together with a No skill classifier, in which TPR and FPR are always equal.ETC models always outperform QEG-based classifiers both in terms of J max and in terms of F 1,max ; in particular, the ETC-vanilla and ETC-SMOTE turn out to be the best classifiers in terms of F 1,max and J max respectively.

43We have thus predicted the probability of classes 0 and 1 with ETC-vanilla and ETC-SMOTE for all the ∼ 40, 000 materials in Materials Project without Ni, Fe, Cu, O and not in the SuperCon database.Those predictions are on our GitHub repository (see Code availability).

Optimal reduction of the composition-based material descriptors

44Although the above SHAP analysis can be conveniently adopted while ranking and reducing the number of material descriptors for both regressors and classifiers, the following aspects have to be stressed.On one hand, as visible on the right-hand side of Fig. 2, for achieving a sufficiently high (i.e. in the order of 70% or higher) cumulative importance over 30 features are needed.On the other hand, the larger the number of feature the higher the over-fitting possibility.Therefore, in this work, we attempted the following possible reduction of the material descriptors.Given the original set of n features (x 1 , ..., x n ), let (x 1 , ..., xn ) be the corresponding dimensionless quantities:

45where x i,min and x i,max represent the minimum and maximum observed values for the i−th feature over the training set, respectively.All dimensionless quantities are thus normalized by construction to a value range within the interval [1 − 2] to avoid singularities in the expressions below.We define the following new set of m n mixed features (y 1 , ..., y m ), as follows:

46where {α ij } represents an n × m matrix optimally estimated as reported below.Alternatively, the new set of m reduced mixed features can also be defined by the following linear transformation:

47Finally, the new variables y j can be conveniently normalized within the interval [0 − 1] as follows: ỹj = y j − y j,min y j,max − y j,min (11) With the basic idea of Bayesian classification in mind, we define the following multi-objective optimization criterion.The matrix {α ij } in Eq. 9 and/or Eq. 10 lies on the Pareto front while concurrently attempting: i) maximization of a properly chosen distance between the two classes; ii) minimization of a norm of the covariance matrix of the first class distribution; iii) minimization of a norm of the covariance matrix of the second class distribution.

48In this study, we use genetic algorithms for optimization.Moreover, for the evaluation of the distance between the two classes, a number of approaches have been tested including: 35 , constructed according to Eq. 9 and choosing the point of the Pareto front with the least overlapping of the two classes according to the Battacharyya distance, together with a GEV analytical fitting of those two binnings (see text for details).c: PDFs over binned data of the testing set for the two classes reported against the same mixed feature x pow,least,35 together with the same GEV fittings of the b subfigure.

49• Data in the two classes are equally binned and histograms used to evaluated the Bhattacharyya distance [43,44] between the two classes to be maximized during the above multi-objective optimization;

50• Data in the two classes are equally binned and histograms used to evaluate the Earth mover distance [45] between the two classes to be maximized during the above multi-objective optimization;

51• The average number of neighbors within a fixed radius of non superconducting materials to each sample of the superconducting material class in the reduced space to be minimized during the above multi-objective optimization Finally, for the remaining two objective functions, while for one-dimensional cases a numerical estimate of the standard deviation of the binned data in the two classes is computed, in the two (or higher) dimensional cases the determinant of the covariance matrix can be adopted.More details about Pareto front calculations can be found in Supplementary Note 9.

Application to one-and two-dimensional cases

52As an example, Fig. 7 shows the Probability Density Functions (PDFs) of the two material classes T c < 35 K and T c ≥ 35 K. Specifically, Fig. 7a reports the PDF binning of the training set data over the two classes, against the normalized most important feature according to the SHAP ranking.Fig. 7b shows the same PDFs against the mixed feature x pow,least,35 , constructed according to Eq. 9 by power combination of the 30 most important features of the SHAP ranking and choosing the point of the Pareto front with the least distributions overlap according to the Bhattacharyya distance.Interestingly, when plotted against the new mixed feature, the two classes appear well separated, whereas it is worth observing that the same two classes show a higher degree of overlapping when reported against the first SHAP feature.As a result, it appears particularly convenient to attempt an analytical bet-fitting of the two functions reported Fig. 7b, approximated by a Generalized Extreme , constructed according to Eq. 9 from mixing the 52 most important features according the the SHAP ranking and choosing the Utopia point of the Pareto front.c: PDFs over binned data of the testing set for the two classes reported against the same mixed features x pow,uto,35 Value (GEV) distribution, whose density has equation

53In this specific case, we found that the GEV distribution for materials with T c < 35 K has factors γ = 0.228, σ = 0.119, ζ = −0.033.Analogously we found that the GEV distribution for materials with T c ≥ 35 K has factors γ = 0.847, σ = 0.046, ζ = −0.539.We performed such fittings by means of the SciPy Python package [46].Fig. 7c shows the PDFs over the binned data of the testing set reported against the same mixed feature, together with the GEV fittings computed on the training set.It is worth noticing that the classes are still well separated, with a good agreement between the GEV distributions and the testing set densities.The number of bins has been chosen separately for the two classes, according to the Sturges rule [47].Furthermore, Fig. 8 shows the PDFs of the same two material classes (T c < 35 K and T c ≥ 35 K) in a two dimensional case.Specifically, Fig. 8a reports the PDF two dimensional binning of the training set data over the two classes, against the normalized two most important features according to the SHAP ranking.Fig. 8b shows the same PDFs against the mixed features x pow,uto, 35 1 , x pow,uto,35 2 , constructed according to Eq. 9 by power combination of the 52 most important features of the SHAP ranking and choosing the Utopia point of the Pareto front.As in the one dimensional case, the two classes, when plotted against the new mixed features, appear well separated.Fig. 8c shows the PDFs over the binned data of the testing set reported against the same mixed features; the two classes are still well separated.Each plot of Fig. 8 accounts for 400 two dimensional bins, on a grid 20 × 20.Moreover, Supplementary Note 11 shows a sharp improvement of a Naive Gaussian Bayesian classifier trained with the mixed features x pow,uto, 35 1 , x pow,uto, 35 2 with respect to an analogous model trained with the two most relevant features according to the SHAP ranking.

54All the relevant data of the Pareto fronts used for constructing those mixed features, together with the coefficients α ij of each case, are publicly available on our GitHub repository (see Code availability).

Possible generalizations

55We are conscious that the mixed features found in this work might be still sub-optimal, as we do not have here the ambition of comprehensively exploring all possible cases.Clearly, several generalizations and variations can be studied while performing the material descriptor reduction as discussed above.Obvious generalizations might adopt different functions for reducing variables as compared to equations 9 and 10, as well as different distance functions between the classes.Alternatively, other strategies for constructing optimal mixed features might also focus on distances only between classes thus neglecting minimization of variance terms, with the primary aim being the best separation between classes.In this respect, we report the following examples:

56• The training dataset is split in two classes (i.e.materials with a critical temperature above or below a certain threshold value) and a single objective optimization is performed only aiming at maximizing the distance between two classes (see Fig. 9a);

57• The training dataset is split in multiple classes (i.e.> 2) and a multi-objective optimization is performed aiming at concurrently maximing the pairwise distances between the classes (see Fig. 9b).

58For further details, please refer to Supplementary Note 9. and the corresponding QEG solution respectively.Table 3 reports the performances of such classifiers, ending up with a consistent improvement of both the J max and the F 1,max score with respect to the case of the QEG 2D trained with the top SHAP descriptors (see QEG 2D in Table 2); specifically, the linear transformation improves also the AUC.We have used the same mixed features to train and validate two ETCs, ending up with similar metrics -AUC, J max and F -score with respect to the case ETC 2D-high, trained with the two most relevant features according to the SHAP ranking.We have finally employed the same features to re-train also the Gaussian Bayesian Classifier, getting an improvement for all the metrics (namely, AUC, J max and F 1,max ) with respect to the same classifier trained with the top two features according to the SHAP ranking, both for the power transformation and for the linear transformation.

59The corresponding ROC curves are reported in Supplementary Note 8.

Conclusions

60Here we have developed several ML tools for studying the critical temperature of superconductors.

61From the SuperCon database, we have considered only the inorganic compounds without Fe, Ni, Cu, O, thus excluding oxides that belong to low temperature classic superconductors.By means of Matminer and on the basis of the SuperCon database, we have generated 145 composition-based features for each compound.We have trained and validated a tree-based regression model for the prediction of the T c , allowing us to identify the most relevant descriptors by means of the Tree SHAP routine.Then, we have produced several different classifiers, based on different sets of features and considering materials with T c ≥ 15 K in class 1 and materials with T c < 15 K in class 0. In particular, with the idea of Bayesian classifiers in mind, we have tested a new Entropy-based classifier (here referred to as QEG), approximating the multidimensional binning of the data over the chosen set of descriptors with the surface of maximum Shannon Entropy.Other employed models include tree-based classifiers (namely ETCs) and Naive Bayesian classifiers.In particular, by comparing ETCs using only two or three of the original extracted features, we notice that the SHAP ranking -identified for regression -can be consistently used for classification.Since, ETCs with few features performed better than both QEGs and Naive Bayesian classifiers, we have trained two more comprehensive models -ETC-vanilla, ETC-SMOTE -both based on a number of features selected during the pre-processing routines of the respective ML pipelines.The latter uses also the SMOTE algorithm to sample, through interpolation, materials in the under-represented class of superconductors.Additionally, we have trained two further models -ETC-vanilla-81 and ETC-SMOTE-81, trained with the same ensemble of 81 features effectively used by the regression model ETR.We have employed the best-performing models, namely ETC-vanilla and ETC-SMOTE, to rank ∼ 40, 000 compounds in MaterialsProject and not occurring in the Supercon, in terms of the probability of showing T c ≥ 15 K.For instance, ETC-vanilla predicts 41 of those formulae to show T c ≥ 15 K with probability not lower than 0.6.Furthermore, by means of multi-objective optimization, we have optimized mixed features that proved particularly suitable for class separation.To this end, we have mixed by means of power or linear combination the top 30 features of the SHAP ranking.With such new features, the performances of both QEGs and Naive Bayesian classifiers improve, while the ETCs performances are in line with the corresponding models trained over the original features.Remarkably, in general there is no need to have access to the SHAP ranking for achieving such optimization, and, in principle, all the input features can be imported for mixing.Additionally, we have produced further examples differing with the previous ones in terms of threshold T c and/or optimization routines.Among those, we have found an optimal single feature to separate classes T c < 35 K and T c ≥ 35 K. Interestingly, in this case we were able to give the equation of an analytical classifier fitted on the materials binned over new mixed feature.We have employed both the best QEG model -QEG 2D-mixed lin classifier (for T c ≥ 15 K), and the analytical classifier (for T c ≥ 35 K) to rank the same ∼ 40, 000 materials of MaterialsProject not occurring in the SuperCon database.Such predictions are publicly available on our GitHub repository.

62Another aim of this work was to test the possible invariance of the critical temperature with respect to binary groups of features in the form of x a i x b j .To this end, we have trained and validated a second regression model -i.e., a DNN -for the prediction of the T c , allowing us to compute the gradient of the critical temperature with respect to the input features, namely ∇T c (x 1 , . . ., x n ).Finally, we stress that the suggested methods in this papers, namely the search for invariant groups of regression models, the optimization of mixed composition based feature and the maximum entropy based classifiers are general and not restricted to the selected case study.As such we envision possible future applications to other energy materials such as thermal energy storage [48] and electrochemical energy storage [49] applications.

Figure 2 :

63Figure 2: Predictions and corresponding normalized cumulative curve for the coefficients of importance of the ETR model.Model performances are shown in terms of coefficient of determination R 2 , mean absolute error (MAE), and root mean squared error (RMSE), with the size of training and testing sets N train and N test , respectively.

Figure 3 :

64Figure 3: The five most important features according to SHAP ranking for T c .For each feature (i.e., each line), 1084 dots are shown, representing the entire testing sets used for computing the related SHAP values (impacts on the model output, horizontal axes); the color represents the corresponding feature value, the features are sorted according to the mean over the absolute SHAP values.

Figure 4 :

65Figure 4: Predictions over the testing set and corresponding loss curves for the DNN regression model.Model performances are shown in terms of coefficient of determination R 2 , mean absolute error (MAE), and root mean squared error (RMSE), with the sizes of the training, the validation and the testing sets, N train , N val , N test respectively.

Figure 5 :

66Figure 5: Probabilistic classifier.a 2-dimensional binning, with 10 bins for the first variable and 5 bins for the second, of the two most relevant features x 1 , x 2 according to the SHAP ranking for superconductors showing T c < 15 K and T c ≥ 15 K respectively among the training set (namely, 85% of materials); b QEG solution of corresponding maximum Shannon entropy probability distribution; c QEG solution of corresponding maximum Shannon entropy probability distribution, bagged case.

Figure 6 :

67Figure 6: Probabilistic classifier.a 3-dimensional binning, with 10 bins for the first variable, 5 for the second, 10 for the third, of the two most relevant features x 1 , x 2 , x 3 according to the SHAP ranking for superconductors showing T c < 15 K and T c ≥ 15 K respectively; b QEG solution of corresponding maximum Shannon entropy probability distribution.

Figure 7 :

68Figure 7: One-dimensional example.a: PDFs over binned data of the training set for the two classes (T c < 35 K and T c ≥ 35 K) reported against the normalized first most important feature according to the SHAP ranking.b: PDFs over binned data of the training set for the two classes reported against the mixed feature x pow,least,35 , constructed according to Eq. 9 and choosing the point of the Pareto front with the least overlapping of the two classes according to the Battacharyya distance, together with a GEV analytical fitting of those two binnings (see text for details).c: PDFs over binned data of the testing set for the two classes reported against the same mixed feature x pow,least,35 together with the same GEV fittings of the b subfigure.

Figure 8 :

69Figure 8: Two dimensional example.a: PDFs over binned data of the training set for the two classes (T c < 35 K and T c ≥ 35 K) reported against the normalized first most important feature according to the SHAP ranking.b: PDFs over binned data of the training set for the two classes reported against the two mixed features x pow,uto,35 1

1

70and x pow,uto,35 2 .

3. 7

71Entropy-, tree-, and Bayes-based binary classifiers on the new mixed featuresWe thus report the results of the QEG-based probabilistic classifiers and ETCs by employing the new mixed features, always constructed by aggregating the top 30 features of the SHAP ranking, in both

Figure 9 : 1 , 1 , x pow,3class 2 ,Figure 10 : 1 ,

72Figure 9: Projections of training and testing sets into the reduced feature space with colors indicating the critical temperature classes.a Projection over the two mixed features x lin,25 1

Figure 11 : 1 , x lin,uto, 15 2 1 , 1 ,

73Figure 11: Probabilistic classifier.a 2-dimensional binning, with 10 bins for each variable, of the two mixed features x lin,uto,15 1

Table 2 :

74Performances of the trained classifiers.AUC ξ J,max J max ξ F 1 ,max F 1,max

Table 3 :

75Performances of the classifiers trained with mixed features.AUC ξ J,max J max ξ F 1 ,max F 1,max

참고문헌 44건

  1. Performance and cost of materials for lithium-based rechargeable automotive batteries Nature Energy · Nature Portfolio · 2018 10.1038/s41560-018-0107-2
  2. Superconducting materials classes: Introduction and overview Physica C Superconductivity · Elsevier BV · 2015 10.1016/j.physc.2015.03.002
  3. Magnetic Resonance Imaging, a success story for superconductivity Europhysics news · EDP Sciences · 2012 10.1051/epn/2012404
  4. Use of high temperature superconductor in a receiver coil for magnetic resonance imaging Magnetic Resonance in Medicine · Wiley · 1991 10.1002/mrm.1910200218
  5. NMR studies of high Tc superconductors Progress in Nuclear Magnetic Resonance Spectroscopy · Elsevier BV · 1996 10.1016/0079-6565(95)01025-4
  6. Superconducting Magnets for Particle Accelerators Reviews of Accelerator Science and Technology · World Scientific · 2012 10.1142/s1793626812300034
  7. Superconducting nano-strip particle detectors Superconductor Science and Technology · IOP Publishing · 2015 10.1088/0953-2048/28/12/124004
  8. High-temperature superconductor fault current limiters: concepts, applications, and development status Superconductor Science and Technology · IOP Publishing · 2007 10.1088/0953-2048/20/3/r01
  9. Machine learning modeling of superconducting critical temperature npj Computational Materials · Nature Portfolio · 2018 10.1038/s41524-018-0085-8
  10. Deep learning model for finding new superconductors Physical review. B./Physical review. B · American Physical Society · 2021 10.1103/physrevb.103.014509
  11. Critical Temperature Prediction for a Superconductor: A Variational Bayesian Neural Network Approach IEEE Transactions on Applied Superconductivity · IEEE Council on Superconductivity · 2020 10.1109/tasc.2020.2971456
  12. Predicting new superconductors and their critical temperatures using machine learning Physica C Superconductivity · Elsevier BV · 2020 10.1016/j.physc.2020.1353689
  13. Clustering superconductors using unsupervised machine learning Physica C Superconductivity · Elsevier BV · 2022 10.1016/j.physc.2022.1354078
  14. Unconventional superconductivity Advances In Physics · Taylor & Francis · 2017 10.1080/00018732.2017.1331615
  15. Matminer: An open source toolkit for materials data mining Computational Materials Science · Elsevier BV · 2018 10.1016/j.commatsci.2018.05.018
  16. From local explanations to global understanding with explainable AI for trees Nature Machine Intelligence · Nature Portfolio · 2020 10.1038/s42256-019-0138-9
  17. Minimal crystallographic descriptors of sorption properties in hypothetical MOFs and role in sequential learning optimization npj Computational Materials · Nature Portfolio · 2022 10.1038/s41524-022-00806-7
  18. AI Feynman: A physics-inspired method for symbolic regression Science Advances · American Association for the Advancement of Science · 2020 10.1126/sciadv.aay2631
  19. Commentary: The Materials Project: A materials genome approach to accelerating materials innovation APL Materials · American Institute of Physics · 2013 10.1063/1.4812323
  20. A general-purpose machine learning framework for predicting properties of inorganic materials npj Computational Materials · Nature Portfolio · 2016 10.1038/npjcompumats.2016.28
  21. Model reduction in chemical dynamics: slow invariant manifolds, singular perturbations, thermodynamic estimates, and analysis of reaction graph Current Opinion in Chemical Engineering · Elsevier BV · 2018 10.1016/j.coche.2018.02.009
  22. Quasi-equilibrium grid algorithm: Geometric construction for model reduction Journal of Computational Physics · Elsevier BV · 2008 10.1016/j.jcp.2008.02.006
  23. Adaptive simplification of complex multiscale systems Physical Review E · American Physical Society · 2011 10.1103/physreve.83.036706
  24. Approximation of slow and fast dynamics in multiscale dynamical systems by the linearized Relaxation Redistribution Method Journal of Computational Physics · Elsevier BV · 2011 10.1016/j.jcp.2011.11.007
  25. SMOTE: Synthetic Minority Over-sampling Technique Journal of Artificial Intelligence Research · AI Access Foundation · 2002 10.1613/jair.953
  26. Scikit-learn: Machine Learning in Python arXiv (Cornell University) · Cornell University · 2012 10.48550/arxiv.1201.0490
  27. Index for rating diagnostic tests Cancer · Wiley · 1950 10.1002/1097-0142(1950)3:1<32::aid-cncr2820030106>3.0.co;2-3
  28. A THEORETICAL BASIS FOR THE USE OF CO‐OCCURRENCE DATA IN INFORMATION RETRIEVAL Journal of Documentation · Emerald Publishing Limited · 1977 10.1108/eb026637
  29. Metrics for evaluating 3D medical image segmentation: analysis, selection, and tool BMC Medical Imaging · BioMed Central · 2015 10.1186/s12880-015-0068-x
  30. SciPy 1.0: fundamental algorithms for scientific computing in Python Nature Methods · Nature Portfolio · 2020 10.1038/s41592-019-0686-2
  31. The Choice of a Class Interval Journal of the American Statistical Association · 1926 10.1080/01621459.1926.10502161
  32. Deep learning for ultra-fast and high precision screening of energy materials Energy storage materials · Elsevier BV · 2021 10.1016/j.ensm.2021.04.006
  33. Proceedings of the 4th conference on Message understanding - MUC4 '92 1992 10.3115/1072064
  34. The Elements of Statistical Learning: Data Mining, Inference, and Prediction Journal of the Royal Statistical Society Series A (Statistics in Society) · Royal Statistical Society · 2010 10.1111/j.1467-985x.2010.00646_6.x
  35. Basic aspects and main results of NMR-NQR spectroscopies in high-temperature superconductors Reports on Progress in Physics · IOP Publishing · 1998 10.1088/0034-4885/61/10/002
  36. Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython 2012
  37. On a Method to Measure Supervised Multiclass Model’s Interpretability: Application to Degradation Diagnosis (Short Paper) Dagstuhl Research Online Publication Server · 2024 10.4230/oasics.dx.2024.27
  38. The Optimality of Naive Bayes. The Florida AI Research Society · 2004
  39. Machine learning modeling of superconducting critical temperature npj Computational Materials · Nature Portfolio · 2018 10.1038/s41524-018-0085-8
  40. Storage and Hybridization of Nuclear Energy Elsevier eBooks · Elsevier BV · 2018 10.1016/c2017-0-00346-4
  41. On a measure of divergence between two statistical populations defined by their probability distributions 1943
  42. Comparison of key performance indicators of sorbent materials for thermal energy storage with an economic focus Energy storage materials · Elsevier BV · 2022 10.1016/j.ensm.2022.11.042
  43. Invariant manifolds and lattice Boltzmann method for combustion 2009 10.3929/ethz-a-005831126
  44. First Engineering Commissioning of EAST Tokamak Plasma Science and Technology · IOP Publishing · 2006 10.1088/1009-0630/8/3/01