Learning

Model superconductors’ critical temperature using machine learning

Estimate superconducting critical temperature from composition-derived descriptors

This regression benchmark maps 81 engineered physicochemical descriptors to critical temperature. On 4,252 held-out rows, the final 81–13–1 neural network reaches R² = 0.817 and RMSE = 14.88 K. It supports comparative screening of represented materials; it does not determine whether an arbitrary compound is superconducting.

0.817testing R²
14.88 Ktesting RMSE
81engineered descriptors
4,252held-out testing rows

1. Scientific objective

The objective is to estimate a known superconductor’s critical temperature (Tc) from descriptors derived from its elemental composition. The output can help materials-informatics teams rank represented candidates, compare modelling approaches and prioritize experiments. Because the training set contains known superconductors, the model is a temperature regressor—not a classifier of superconducting behaviour.

Candidate ranking

Compare predicted Tc values before allocating higher-cost synthesis and characterization work.

Model benchmarking

Provide a reproducible neural baseline for composition-derived materials descriptors.

Experimental planning

Use predictions with domain checks to support—not replace—physics-informed laboratory decisions.

Materials informaticsSuperconductivity researchComputational materialsExperimental laboratories
Scope. The data-driven model estimates Tc for materials represented by the source collection. Crystal structure, pressure, processing and measurement conditions are not explicit inputs, so predictions require scientific review.

2. Data and provenance

The UCI Superconductivity data set contains 21,263 records with no missing values. The target is critical_temp in kelvin. A reproducible 60/20/20 row split assigns 12,759 records to training, 4,252 to model selection and 4,252 to testing.

Why there are two CSV files

FileRoleContentsUse
superconductor.csvPrimary modelling data81 numeric descriptors plus critical_tempTrain, validate and run the published model
chemical_compounds.csvAuxiliary composition table86 elemental stoichiometry columns, critical_temp and formulaIdentify materials and connect model rows with chemical formulas

The files contain the same 21,263 row-aligned target observations but serve different purposes. Keeping both avoids pretending that the exported network accepts a chemical formula directly.

Descriptor design

The 81 inputs comprise number_of_elements plus ten statistics for each of eight elemental properties: atomic mass, first ionization energy, atomic radius, density, electron affinity, heat of fusion, thermal conductivity and valence. The statistics are mean, weighted mean, geometric mean, weighted geometric mean, entropy, weighted entropy, range, weighted range, standard deviation and weighted standard deviation.

SubsetRowsPurpose
Training12,759Estimate network parameters
Selection4,252Select hidden-layer size
Testing4,252Final held-out evaluation
Distribution of superconducting critical temperature
The target distribution is broad and concentrated at lower temperatures, with relatively few high-Tc records.
Pearson correlations between descriptors and critical temperature
Univariate correlations provide orientation only; correlated engineered descriptors and nonlinear effects prevent causal interpretation.
Critical temperature against weighted standard deviation of thermal conductivity
A representative descriptor–target view illustrates structure and dispersion that a multivariate nonlinear model must resolve.
Provenance. The benchmark is the UCI Superconductivity data set contributed with Kam Hamidieh’s 2018 study and derived from the SuperCon materials collection. The published downloads preserve UCI’s two complementary tables and are provided under CC BY 4.0.

3. Model

The modelling process starts with an 81–3–1 baseline. All 81 inputs use mean-and-standard-deviation scaling; a dense hidden layer with three tanh neurons learns nonlinear descriptor interactions, and an identity output neuron returns Tc before output unscaling. This initial network contains 250 trainable parameters and provides the reference architecture for training and neuron selection.

Input contract. The model requires all 81 descriptors in the exact order listed in the Python package. Formula parsing and descriptor generation are separate upstream responsibilities.
Initial neural network with 81 inputs, three hidden neurons and one critical-temperature output
Initial 81–3–1 approximation network used for the baseline training run.

4. Training strategy

The network minimizes normalized squared error with L2 regularization of 0.01 using the Quasi-Newton method. The initial three-neuron network finishes with training error 0.192 and selection error 0.0668 after 99 iterations.

Quasi-Newton training and selection error history
The stored training history belongs to the three-neuron baseline used before hidden-layer selection.

5. Model selection and baseline

Neuron selection evaluates one to 15 hidden neurons while keeping the data partition and training strategy fixed. The minimum selection error is 0.0616 at 13 neurons, approximately 7.4% below the three-neuron result; the final model therefore uses 13 hidden neurons.

Neuron selection errors for one to 15 hidden neurons
The selected 13-neuron model balances lower selection error with a still-compact architecture.

Selected architecture

After neuron selection, the hidden layer is expanded from three to 13 tanh neurons. The resulting 81–13–1 network contains 1,080 trainable parameters and is the model used for testing, deployment and the downloadable Python export.

Final neural network with 81 inputs, 13 hidden neurons and one critical-temperature output
Final 81–13–1 architecture obtained after neuron selection.
ReferenceTesting RMSEInterpretation
Training-mean baseline34.81 KNull predictor using one constant value
Final neural network14.88 K57% lower RMSE than the null baseline

6. Scientific validation

Final metrics are calculated only on the 4,252 testing rows. R² measures explained test variance; RMSE emphasizes large misses; MAE gives a more direct typical error; signed bias checks systematic over- or underprediction.

MetricTesting resultReading
0.81781.7% of testing variance explained
RMSE14.88 KPenalizes larger temperature errors
MAE10.32 KMean absolute testing error
Mean signed error−0.28 KSmall overall bias can hide regional bias
Prediction-vs-observation slope0.801Compression toward the middle of the range

Performance by observed temperature

Observed Tc bandTesting rowsMAEMean signed error
0–20 K2,1306.57 K+3.37 K
20–77 K1,30512.24 K+3.76 K
77–120 K76816.69 K−15.84 K
120–186 K4922.61 K−22.61 K
Observed and predicted critical temperature on the testing subset
Goodness-of-fit analysis from Neural Designer. Predictions compress the extremes, especially for high-Tc observations.
Scientific interpretation. Aggregate bias is close to zero, but it is not uniform: the model overpredicts many low-temperature records and underpredicts the high-Tc region. Candidate ranking near the upper tail therefore needs temperature-band diagnostics and expert review, not R² alone.

7. Inference and reproducibility

A credible deployment begins with a formula or composition record, generates the same 81 descriptors, validates names, order and applicability ranges, calculates Tc and routes the estimate—together with model version and warnings—to scientific review.

Formula and composition
81 descriptor calculation
Schema and domain checks
Critical-temperature estimate
Experimental prioritization

Three representative inference cases

Neural Designer’s output-data task was run on three descriptor vectors taken from the primary table. Their formulas were recovered from the row-aligned auxiliary composition table, and the same inputs were then evaluated with the exported Python model.

MaterialFormulaObserved TcPredicted TcSigned error
MercuryHg4.16 K4.83 K+0.67 K
Magnesium diborideMgB239.00 K31.22 K−7.78 K
YBCOYBa2Cu3O792.00 K73.77 K−18.23 K

These are transparent calculation examples, not an additional validation set. They make the operational pattern visible: the low-Tc case is close, while the high-Tc YBCO case is substantially underestimated. Multiple experimental records can share the same composition-derived vector but report different Tc values, because conditions absent from the descriptors can matter.

Reproduce the calculation

The Python package contains the exact final export, the ordered 81-input schema, the three deployment rows and their calculated outputs. The compact Neural Designer project excludes obsolete embedded data from an earlier configuration.

import pandas as pd
from model import NeuralNetwork

cases = pd.read_csv("deployment_cases.csv", sep=";")
model = NeuralNetwork()
assert list(cases.columns) == model.input_names
predicted_tc_K = model.calculate_batch_output(
    cases.to_numpy(dtype=float)
)[:, 0]
Deployment guard. The raw export can return a negative value for outlying inputs. Production integration must validate descriptor ranges and reject or flag non-physical output; a numerical result is not evidence that an arbitrary material will superconduct.

8. Validity, uncertainty and limitations

  • Applicability is restricted. The source contains known superconductors; the model neither discovers superconductivity nor establishes that an arbitrary compound has a nonzero Tc.
  • Composition is incomplete physics. Crystal structure, pressure, synthesis route, stoichiometric uncertainty and measurement conditions are absent.
  • The row-random split is optimistic. About 33.4% of testing rows have an exact engineered descriptor vector in training. On unseen descriptor vectors, R² falls to 0.801 and RMSE rises to 15.32 K.
  • Repeated formulas are not independent experiments. Formula-level or material-family grouping is preferable when estimating transfer to new chemistries.
  • High-Tc estimates are systematically compressed. The 77–120 K and 120–186 K bands show mean underprediction of 15.84 K and 22.61 K respectively.
  • Raw output requires a physical guard. The stored test predictions include 202 negative values; these must be flagged as non-physical and investigated rather than silently accepted.
  • No external material-family validation is shown. Before laboratory use, compare against grouped cross-validation, uncertainty estimates and truly external compounds.

References