본문 펼치기
This article is licensed under <u>[CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/)</u>
pubs.acs.org/Macromolecules <mark>Article</mark>
## A Bayesian Inference Approach to Accurately Fitting the Glass Transition Temperature in Thin Polymer Films
#### James H. Merrill, Yixuan Han, and Connie B. Roth*
Cite This: _Macromolecules_ [2024, 57, 11055−11074](https://pubs.acs.org/action/showCitFormats?doi=10.1021/acs.macromol.4c01867&ref=pdf) [Read Online](https://pubs.acs.org/doi/10.1021/acs.macromol.4c01867?ref=pdf)
### ACCESS Metrics & More Article Recommendations * sı Supporting Information
ABSTRACT: We present a Bayesian inference-based nonlinear
least-squares fitting approach developed to reliably fit challenging,
noisy data in an automated and robust manner. The advantages of
using Bayesian inference for nonlinear fitting are demonstrated by
applying this approach to a set of temperature-dependent film
thickness _h_ ( _T_ ) data collected by ellipsometry for thin films of
polystyrene (PS) and poly(2-vinylpyridine) (P2VP). The glass
transition experimentally presents as a continuous transition in
thickness characterized by a change in slope that in thin films with
broadened transitions can become particularly subtle and
challenging to fit. This Bayesian fitting approach is implemented
using existing open-source Python libraries that make these
powerful methods accessible with desktop computers. We show
how this Bayesian approach is more versatile and robust than existing methods by comparing it to common fitting methods currently
used in the polymer science literature for identifying _T_ g. As Bayesian inference allows for fitting to more complex models than
existing methods in the literature do, our discussion includes an in-depth evaluation of the best functional form for capturing the
behavior of _h_ ( _T_ ) data with temperature-dependent changes in thermal expansivity. This Bayesian fitting approach is easily
automated, capable of reliably fitting noisy and challenging data in an unsupervised manner, and ideal for machine learning
approaches to materials development.
1. INTRODUCTION
Accurate experimental determination of the glass transition
temperature _T_ g of thin polymer films is important both for
developing first-principles understanding of the physics of
confined nanoscale materials and for improving applications
such as dielectric and adhesive coatings, nanolithography, and
separation membranes. <sup>1−4</sup> The glass transition manifests as a
second-order phase transition being discontinuous in the second
partial derivatives of the free energy. <sup>5</sup> However, being a kinetic
transition, the glass transition temperature depends on the rate
at which it is measured. Experimentally, the glass transition is
frequently identified from the continuous transition in firstorder thermodynamic parameters such as enthalpy _H_ and
volume _V_ . Correctly identifying _T_ g, along with a good estimate
of its error, from such continuous data was already identified as a
nontrivial task over half a century ago, <sup>6</sup> and remains so today.
For thin films, the film thickness _h_ acts as a proxy for volume. <sup>7−9</sup>
Consequently, the challenge with identifying _T_ g is that the small
size of the sample typically leads to low signal-to-noise ratio,
making accurate determination of _T_ g problematic. <sup>10</sup> The
sharpness of the glass transition can be further compromised
in thin films by an increase of the transition width that often
signifies a gradient in local dynamics with depth due to
perturbations from the free surface or substrate interface. <sup>11,12</sup> As
a result, these factors make identifying _T_ g of very thin films
© 2024 The Authors Published by
challenging. The growth of machine learning and automation to
accelerate polymer characterization and materials development
requires that data analysis becomes more unsupervised, while
still remaining robust and reliable. <sup>13−15</sup> We present here a
Bayesian inference-based nonlinear least-squares fitting approach that can be reliably applied in an automated manner to fit
challenging data in order to reliably identify the glass transition
in thin polymer films. With the Python code provided, this
Bayesian fitting approach can be easily adapted to fit other
challenging data sets with any appropriate user-defined
functional form.
Temperature-dependent film thickness data _h_ ( _T_ ) for thin
polymer films, as can be collected by ellipsometry <sup>16−20</sup> or X-ray
reflectivity, <sup>21</sup> exhibits two linear regions above and below _T_ g
corresponding to the thermal expansion of the material. Most
commonly _T_ g is identified from the intersection of two linear fits
done to the _h_ ( _T_ ) data above and below _T_ g. Data by other
Received: August 5, 2024
Revised: November 9, 2024
Accepted: November 14, 2024
Published: November 22, 2024
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
experimental techniques such as fluorescence <sup>12,22−24</sup> also
frequently identify _T_ g by a similar intersection of two linear
fits. While simple, the fitting of two linear regions above and
below _T_ g involves more user/scientist input than is often
acknowledged. Not only does a decision need to be made on the
overall initial temperature range that the data is collected over,
but also then the range of temperatures above and below _T_ g over
which the linear fits are made (i.e., the fitting windows). In
particular, for thin films that show a broadened transition
compared to bulk, some region of the data around the transition
frequently needs to be excluded, where small changes in these
fitting window ranges can strongly impact the _T_ g value obtained.
Some previous studies have highlighted the importance of
collecting data over a sufficiently wide temperature range, <sup>12,19</sup> or
have attempted to systematize the process of identifying the best
linear fits by, for example, maximizing statistical quantities like
_R_ <sup>2</sup> . <sup>22,25,26</sup> Other studies have emphasized the value in defining a
consistent process for identifying _T_ g from linear fits, suggesting
possible temperatures where tangent lines should be drawn. <sup>27,28</sup>
Alternatively, some efforts have been made to examine the
breadth of the transition in more detail by numerically
differentiating the _h_ ( _T_ ) data, <sup>11,12,17,29</sup> but such analyses require
further decisions about the Δ _T_ range of the finite difference <sup>11</sup>
and/or local smoothing, as numerical differentiation accentuates
the noise in the data. <sup>12</sup>
To address some of these issues, Dalnoki-Veress et al. <sup>18</sup>
introduced an empirical fitting function for temperaturedependent film thickness data by ellipsometry:
i
g
_M_ <u>+</u> _G_ y( _T_
zzz
_h_ ( _T_ )= _w_ i <sup>_M_</sup> _G_ yln coshi _T_ _T_ g y + i _M_ <u>+</u> _G_ y
jjjk 2 zzz{ ÅÅÅÅÅÅÅÅÅÅÇ jjjjk _w_ zzzz{ÑÑÑÑÑÑÑÑÑÑÖ jjjk 2 zzz{
i
jjj
k
y
zzz
{
Ä
= _w_ i <sup>_M_</sup> _G_ yln coshi _T_ _T_ g y + i _M_ <u>+</u>
jjj zzz jjjj zzzz jjj
y
y
zzzz
{
É
ÉÑÑÑÑÑÑÑÑÑÑÖ
( _T_ )= _w_ <sup>_M_</sup> ln cosh + (
jjjk 2 zzz{ jjjjk _w_ zzzz{ jjjk 2 zzz{
Ö
i
jjjj
k
_w_
i
jjj
k
_T_ g) + _c_
+
ÄÅÅÅÅÅÅÅÅÅÅÇ
Ç
g
)
(1)
This equation is derived by integrating an empirical expression
1 d _h_
for the thermal expansion coefficient ( _T_ ) = _h_ d _T_ that
d _<u>h</u>_
transitions smoothly from a liquid state slope _M_ = d _T_ _T_ - _T_ g
d
d
=
d _T_ _T_ - _T_ g
a sufficiently large temperature range to ensure that the liquid
and glass slopes are accurately determined because eq 1 can
suffer from the same problem as using the intersection of two
linear fits, where both methods will identify _T_ g as simply the
middle of a short data set with a broad transition that may appear
uniformly curved.
Fitting to eq 1 requires the use of nonlinear least-squares
methods, which can have a number of drawbacks and
limitations. The most commonly used is the Levenberg−
Marquardt (LM) algorithm, which identifies the nearest
minimum in _χ_ <sup>2</sup> from the initial parameter guesses by first
doing a gradient descent followed by a local parabolic expansion
about the minimum. <sup>37,38</sup> However, there is no guarantee that
this process will find the global minimum and it is prone to
getting stuck in local minima depending on the initial guesses for
the parameter values. Fitting eq 1 to _h_ ( _T_ ) data is particularly
sensitive to the initial conditions of the fit parameters, especially
if the width _w_ is variable. In our experience, we find that the
initial values of the fit parameters need to be set quite close to the
global minimum in _χ_ <sup>2</sup> for it to be accurately identified.
To address this, here we apply Bayesian inference to
agnostically determine the probability distribution for each
parameter in eq 1 when fit to _h_ ( _T_ ) data for supported PS films
collected by ellipsometry. In particular, we use a Hamiltonian
Monte Carlo algorithm to sample the likelihood function that
defines the probability of an experimental _h_ ( _T_ ) data set having
been generated by a given set of fit parameters. This takes
advantage of modern computational tools that have been
developed for statistical inference, and applied to computational
optimization problems with multiple solutions and many
parameters in the field of machine learning. <sup>39−41</sup> Specifically,
we leverage the existing open-source library PyMC in Python <sup>42</sup>
to create a statistical model that represents the data generation
process and perform the optimization of the likelihood function.
This method is applied to _h_ ( _T_ ) data for supported PS films over
a wide range of film thicknesses _h_ from 650 nm down to 21 nm
resulting in best-fit probability distributions for _T_ g( _h_ ), as well as
the other fit parameters, notably _w_ ( _h_ ). We compare _T_ g( _h_ ) trends
and errors for this Bayesian inference method to the standard
LM nonlinear fitting of eq 1, as well as the commonly used
method of determining _T_ g by the intersection of two linear fits.
Beyond the common user/scientist’s best determination of _T_ g
by linear fits, we also computationally evaluate many possible
linear fits in an exhaustive brute-force search to identify a
distribution of _T_ g values from the intersections of these linear
fits. We find that _T_ g( _h_ ) is identified with greater precision by the
nonlinear fit methods to eq 1. The Bayesian inference method
requires less user input to arrive at the best-fit solution than the
standard LM optimization that demands an initial guess already
close to the global minimum. The Bayesian inference method
also allows one to augment eq 1 by adding a nonlinear term to
the glassy-state _h_ ( _T_ ) line to account for changes in thermal
expansion of the glassy state with temperature not captured by
the model. <sup>43</sup> Although commonly done, we find that overall
determination of _T_ g by the intersection of two linear fits results
in larger errors, especially for thin films, where it is reasonable to
conclude that some of the variation in _T_ g( _h_ ) observed in the
literature <sup>44</sup> for thin films could result from user/scientist choices
in their selection of fitting window and/or data range. We also
compare values of the transition width _w_ as a function of film
thickness, demonstrating a broadening of the glass transition in
supported films that starts at a similar critical thickness to _T_ g( _h_ ).
to
d _<u>h</u>_
a glassy state slope _G_ = d _T_ _T_ < _T_ g
d
d
<
=
d _T_ _T_ < _T_ g
over a finite temperature range
_w_ centered on _T_ g, assuming the profile of a hyperbolic tangent:
i
jjj
k
y
zzz
{
i
jjj
k
y
zzz
{
i
i
jjjj
k
_T_ ) = i _<u>M</u>_ <u>+</u> _<u>G</u>_ y + i _<u>M</u>_ _<u>G</u>_ ytanhi _T_ _T_ g y
jjjk 2 zzz{ jjjk 2 zzz{ jjjj _w_ zzzz
_T_ _T_ g
(2)
( _T_ ) = i _<u>M</u>_ <u>+</u> _<u>G</u>_ y + i _<u>M</u>_ _<u>G</u>_ ytanhi _T_ _T_ g
jjjk 2 zzz{ jjjk 2 zzz{ jjjjk _w_
y
zzzz
{
The constant _c_ of integration in eq 1 corresponds to the value of
the film thickness at _T_ g: _h_ ( _T_ g). Use of eq 1 to determine _T_ g from
_h_ ( _T_ ) or other similar data has become popular as it avoids
needing to identify specific fitting windows for the linear fits
above and below _T_ g, while also fitting the data through the glass
transition itself. <sup>10,19,30−36</sup> Dalnoki-Veress et al. initially applied
this equation to ellipsometry data on free-standing polystyrene
(PS) films that exhibit a particularly sharp transition, where they
chose to keep the width parameter _w_ fixed at 2 °C. <sup>18</sup> In contrast,
use of eq 1 to fit supported polymer films necessitates keeping
the width _w_ as a variable fit parameter or fixed at a larger value, as
the breadth of the glass transition is larger and increases with
decreasing film thickness. <sup>32,33,35</sup> Use of eq 1, compared to doing
two linear fits, removes two implicit fit parameters that
correspond to the range of data to exclude around the transition
and replaces it with a single explicit parameter for the transition
width _w_ . <sup>18</sup> However, care must still be taken to collect data over
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
2. EXPERIMENTAL METHODS
All data plotted in this study were originally collected and published in
two previous studies from our lab investigating the refractive index of
thin polymer films. <sup>20,45</sup> In particular, we use the data for polystyrene
(PS) with _M_ w = 650 kg/mol, _M_ w/ _M_ n = 1.06 from Pressure Chemical,
and poly(2-vinylpyridine) (P2VP) with _M_ w = 650 kg/mol, _M_ w/ _M_ n =
1.08 from Scientific Polymer Products and _M_ w = 643 kg/mol, _M_ w/ _M_ n =
1.18 from Polymer Source. Films of different thicknesses were made by
spin-coating onto 2 cm × 2 cm silicon pieces at varying spin speed and
solution concentration by dissolving PS in toluene or P2VP in butanol.
To drive off any residual solvent and relax chain conformations, films
were annealed for 12 h at _T_ bulkg + 25 °C under vacuum. Immediately
were annealed for 12 h at _T_ bulkg + 25 °C under vacuum. Immediately
prior to the measurement, samples were held at _T_ bulkg + 45 °C for 20 min
prior to the measurement, samples were held at _T_ bulkg + 45 °C for 20 min
on the ellipsometer heater stage to erase thermal history and equilibrate
the polymer films.
Spectroscopic ellipsometry was used to determine the film thickness
_h_ ( _T_ ) and refractive index _n_ ( _T_ ) as a function of temperature, where the
data were collected on cooling at 1 K/min. Measurements of the
ellipsometric angles Ψ( _λ_ ) and Δ( _λ_ ) were collected at an angle of
incidence of 65°, over a wavelength range spanning _λ_ = 400−1000 nm.
Ψ( _λ_ ) and Δ( _λ_ ) data were fit to an optical layer model with a
homogeneous Cauchy layer used to represent the polymer film:
_B_ _C_
_n_ ( ) = _A_ + 2 + 4 (3)
where the Cauchy coefficient _C_ was held constant at the value for bulk
PS. <sup>20,45</sup> The silicon substrate was modeled as a semi-infinite substrate
with a 1.25 nm native oxide layer with all the associated optical
constants held at literature values in the Woollam software. <sup>20,45</sup> Thus,
the parameters fit for the polymer layer are the film thickness _h_, and the
Cauchy _A_ and _B_ parameters.
The nonlinear fit to the optical layer model generates uncertainties in
the _h_ ( _T_ ) data resulting from the ellipsometry measurement
uncertainties in Ψ and Δ. In our analysis of the _h_ ( _T_ ) data, we retain
the root-mean-square (RMS) fitting error on _h_ provided by the
Woollam software (square-root of the diagonal covariance matrix
element) as an estimate of the measurement error. The Woollam
software also provides Monte Carlo and sensitivity analysis tools for
estimating the uncertainty in the fitting parameters of the optical layer
model. These tools both identified errors smaller than the RMS fitting
error, so we can be reasonably sure we are not underestimating the error
in _h_ . This error in _h_ is then used to weight the contribution of each data
point in the sum of squared residuals during the fitting of _h_ ( _T_ ).
Similarly, errors for bulk _T_ g from each fitting method were determined
by taking an error-weighted average of the _T_ g values for films with
thicknesses _h_ - 100 nm. It is worth noting that at times the optical layer
model fitting can be nontrivial, where a Bayesian approach to fitting has
been shown to be helpful in finding a unique optimal solution when
standard fitting techniques become difficult. <sup>46</sup>
3. RESULTS AND DISCUSSION
Our main goal is a detailed analysis of fitting temperaturedependent film thickness data _h_ ( _T_ ) for supported PS thin films
collected by ellipsometry <sup>20,45</sup> to accurately identify the glass
transition temperature _T_ g and its associated error. In particular,
we compare the two main existing methods commonly used in
the field to our proposed Bayesian analysis approach where no
predetermined initial estimates of parameters need to be
provided. For comparison purposes, we will illustrate the fitting
results for two representative data sets: one from a 160 nm
(bulk-like) PS film and one collected from a 23 nm (thin) PS
film with a nominally reduced _T_ g. In each subsection below, we
outline the implementation of the fitting methods, apply them,
then analyze the relative merits of each approach.
We start by contrasting the two existing methods commonly
used in the field: (1) separately fitting two straight lines above
and below the transition where _T_ g is identified from the
intersection of those fits; and (2) doing a nonlinear least-squares
fit of eq 1 to the full _h_ ( _T_ ) data set. We highlight how the error in
_T_ g is accurately identified in each case. As much of our focus will
be on the use of eq 1 as a means to fit the _h_ ( _T_ ) data, we next
examine how accurately eq 1 captures the change in slope of the
_h_ ( _T_ ) data through the glass transition by inspecting how eq 2 fits
the temperature dependence of the thermal expansivity
1 d _h_
( _T_ ) = _h_ d _T_ obtained by numerically differentiating the _h_ ( _T_ )
data. Although we find that eq 2 may not produce the most ideal
description of the _α_ ( _T_ ) transition, especially for thin films, use of
eq 1 is still the most feasible analytical equation to fit the _h_ ( _T_ )
data.
Then we describe in detail the proposed Bayesian inference
fitting approach employed to identify _T_ g and associated error
from _h_ ( _T_ ) data using eq 1. Fitting is accomplished by
maximizing a likelihood function that is constructed from the
sum of squared residuals between the experimental _h_ ( _T_ ) data
and the _h_ ( _T_ ) model of eq 1, where a Hamiltonian Monte Carlo
routine is used to efficiently sample the likelihood function at
different parameter values. One key advantage of a Bayesian
approach is that each parameter is represented by a probability
distribution. This means that the initial distribution for a given
parameter can easily be defined as uniform, and the final “bestfit” parameter values are determined agnostically from the
resulting “best-fit” probability distributions. We demonstrate
that a Bayesian approach can accommodate more complex
models for the _h_ ( _T_ ) data and can be easily implemented and
readily fit. This is in contrast to standard nonlinear fitting
approaches where eq 1 is already at the limit of complexity to
obtain reasonable fits.
We also examine the variability in possible _T_ g fit values
obtained by the linear-fit intersection method by using an
exhaustive approach that evenly samples over a large range of all
the possible choices of fitting windows according to some simple
rules. This mimics the variability that might be observed in the
literature across different researchers, and allows us to plot
histograms of the relative frequency with which certain _T_ g values
might be obtained for a given data set. An idealized data set is
used to validate this approach and ensure that the obtained
distribution is peaked at the “true” _T_ g value. Applying this
exhaustive search to experimental data sets, we find that a wide
range of _T_ g values are possible, varying greatly with fitting
window selection, where the breadth of the distribution of
possible _T_ g values is much larger than the fitting error obtained
for _T_ g from a single set of linear fits.
Finally, we examine the film thickness dependence of _T_ g( _h_ ), as
well as the transition width _w_ ( _h_ ), for an extensive collection of
_h_ ( _T_ ) data sets spanning a range of film thicknesses. We find that
the _T_ g( _h_ ) values obtained from all fitting methods overlap
remarkably well, albeit with slightly different absolute values of
_T_ bulkg . The nonlinear methods (standard LM and Bayesian) give
a consistently smaller error on individual _T_ g values than that
obtained by determining the intersection of linear fits. We note
that this is especially true given that there is typically additional
(unknown) error associated with the determination of _T_ g from
linear fits due to the requirement of selecting fitting windows, as
illustrated by the brute-force method. From the Bayesian
analysis, we find that the transition width _w_ ( _h_ ) is constant for
bulk-like samples, but increases for thin films below a critical
thickness ≤45 nm that is similar to the critical thickness below
which _T_ g( _h_ ) itself decreases. For ultrathin films _h_ < 20 nm, the
Bayesian fitting method is able to determine _T_ g with
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Figure 1. Top panels: Temperature-dependent film thickness measured on cooling, for a bulk-like 160 nm PS film on the left and for a thin 23 nm film
on the right. Black triangles are the measured film thickness values, while blue lines are linear fits of the liquid and glassy states, and the green curve is the
best fit to eq 1 using standard Levenberg−Marquardt (LM) optimization. Lower panels are studentized residuals for the linear fits shown in blue and
LM fits to eq 1 in green, where the _y_ -axis is scaled by the error _σ_ of the _h_ ( _T_ ) data, with the range of −2 _σ_ to 2 _σ_ marked by gray dashed lines to highlight
where 95% of the data should fall. Residuals are reasonably well-behaved, although the data for the thick film are sufficiently precise to observe
systematic curvature, particularly in the glassy state, while this is in the noise for the thin film.
considerably less error than the commonly employed method of
identifying the intersection of two linear fits. Interestingly,
transition width _w_ ( _h_ ) from the Bayesian fits shows a reduction in
glass transition breadth for ultrathin films likely reflecting a
narrowing of the distribution of relaxation times for _h_ < 20 nm.
We also apply the Bayesian fitting method to thin films of P2VP.
3.1. Common Method of Identifying _T_ g via Intersection of Two Linear Fits. The most common approach used
in the literature for determining the glass transition temperature
_T_ g from experimental _h_ ( _T_ ) data is to perform linear fits to two
subsets of the data representing the glassy and liquid
temperature regions, where _T_ g is then identified from the
intersection of these two linear fits. In Figure 1, we show the
temperature-dependent film thickness _h_ ( _T_ ) data for the two
representative PS films: 160 nm (bulk-like) and 23 nm (thin
film). As is usually done by researchers, the linear fits were done
to the glassy and liquid states by selecting temperature regions
that were sufficiently far from the transition region to not be
biased by the changing _h_ ( _T_ ) slope. This excluded a range of data
spanning approximately 25 °C about the presumed transition
temperature. The value for _T_ g is then determined from the
intersection of the two linear fits ( _m_ 1 _T_ + _b_ 1 and _m_ 2 _T_ + _b_ 2) by
simple algebra:
_T_ g( _m_ 1, _m_ 2, _b_ 1, _b_ 2) = <sup><u>|</u></sup> _b_ <u>1</u> _b_ <u>2</u>
| _m_ 1 _m_
_b_ <u>1</u> _b_ <u>2|</u>
= <sup><u>|</u></sup>
| _m_ 1 _m_ 2| <sup>=</sup>
g( _m_ 1, _m_ 2, _b_ 1, _b_ 2) = <sup><u>|</u></sup> _b_ <u>1</u> _b_ <u>2|</u> _b_
| _m_ 1 _m_ 2| <sup>=</sup> _m_
(4)
giving 96.5 °C for the 160 nm thick film and 90.6 °C for the 23
nm thin film.
The uncertainty in the derived _T_ g value can be calculated by
simple error propagation of eq 4 as
i
jjj
k
y
zzzzz
{
2 2
2 i 1 y i 2 2y i _b_ y i 2 2
_T_ g = jjj _m_ zzz jjjjj _b_ 1 + _b_ 2zzzzz + jjj _m_ 2 zzz jjjjj _m_ 1 + _m_ 2
k { k {
i
jjj
y
y
zzzzz
{
i
jjj
(5)
y
zzz
y
zzz
{
2i 2 2
i
i
jjjjj
k
i
jjj
k
2 2
y i 2 2y i _b_ y i 2 2 y
_m_ zzz jjjjj _b_ 1 + _b_ 2zzzzz + jjj _m_ 2 zzz jjjjj _m_ 1 + _m_ 2zzzzz
{ k {
y
zzz
y
zzz
{
i
i
jjjjj
k
g = jjj zzz _b_ 21 + _b_ 22 + jjj 2 zzz _m_ 21 + _m_ 22
The _σ_ values correspond to the variance in each of the
subscripted fit parameters, determined from the diagonal
components of the covariance matrix, which are only physically
meaningful if the errors on _h_ are known and carried through all
the calculations. Equation 5 gives an uncertainty of ±0.2 °C for
the 160 nm thick film and ±2 °C for the 23 nm thin film.
Defining an error in _T_ g based on these fit statistics is often
overlooked in the field, as the fitting errors can be (but are not
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
always) small compared to the variation from sample-to-sample,
particularly for thick films where the data have relatively low
noise. We note that eq 5 assumes uniform errors in _h_, where
Filliben and McKinney addressed the more complicated
calculation to obtain the error in _T_ g for the case of nonuniform
errors in the data from pressure-dependent viscosity data. <sup>6</sup> For
the ellipsometric data analyzed here, the error in _h_ is reasonably
approximated as uniform.
To evaluate the quality of these fits, Figure 1 also plots the
studentized residuals, calculated by taking the predicted (fit) _h_
values minus the experimentally observed values, and dividing
by the measurement error in _h_ (obtained from the ellipsometric
fits to the optical layer model). For a “good fit” there should be
no obvious patterns in the residuals, and approximately 95% of
the points should fall within two times the measurement error of
the fit, as regression analysis assumes normally distributed
errors. From the linear fit residual shown in Figure 1, the linear
fits may be considered good as most of the points lie within 2
errors in _h_ of the fit. However, there is some curvature in the
glassy state data, more noticeable for the bulk film compared to
the thin film due to the greater precision in _h_ relative to the
measured value, suggesting a small systematic deviation from the
fit line in the glassy state that may be worth accounting for by
changing the functional form being fit to.
The major issue with this method of determining _T_ g from the
intersection of two linear fits is that there is considerable
variability associated with the selection of the data range used for
the linear fits that is difficult to quantify. In Section 3.5, we will
examine how the choice of fitting window impacts the _T_ g value
determined from a given data set. In the following section, we
consider another way of avoiding the ambiguity of the linear-fitintersection method by using a nonlinear fitting approach where
all the data can be included in the fit.
3.2. Nonlinear Fitting to Eq 1. Using nonlinear leastsquares methods with an appropriate functional form to fit the
data is an attractive option due to the lack of ambiguity in the _T_ g
value obtained, and the ability to include all of the data through
the transition region. The functional form in eq 1 was originally
proposed by Dalnoki-Veress et al. <sup>18</sup> to fit ellipsometric film
thickness data _h_ ( _T_ ) from free-standing polymer films. Five
explicit fit parameters appear in eq 1: _T_ g, _c_ = _h_ ( _T_ g), slopes _M_ and
_G_, plus the transition width _w_ . Although the linear-fitintersection method appears to only have four fit parameters
( _m_ 1, _m_ 2, _b_ 1, _b_ 2 in eq 4), there are actually at least two additional
implicit fit parameters resulting from the selection of the
temperature boundaries, notably the two inner fitting window
boundaries that demarcate what data is being excluded around
the transition region. We note that in the original study on freestanding films, the transition width _w_ was held fixed at 2 °C by
Dalnoki-Veress et al. (further eliminating a fit parameter)
because free-standing films exhibit sharp transitions for all film
thicknesses. <sup>18</sup> However, when applying the same functional
form to fit data for supported films, especially very thin films, a
single, constant value of transition width _w_ is not sufficient to
obtain acceptable quality fits for a wide range of film thicknesses
as the breadth of the glass transition increases with decreasing
film thickness.
Figure 1 shows the best fit curves and residuals from fitting eq
1 to the _h_ ( _T_ ) data employing the commonly used Levenberg−
Marquardt (LM) algorithm. The LM algorithm interpolates
between a gradient descent approach and an inverse Hessian,
i.e., a second-order series expansion about the minimum, to
iteratively minimize _χ_ <sup>2</sup> . <sup>37</sup> For the two representative data sets
shown in Figure 1, the fits to eq 1 are good, giving _T_ g = 97.60 ±
0.04 °C for the 160 nm thick film and _T_ g = 92.8 ± 0.4 °C for the
23 nm thin film. The best-fit values of the transition width _w_ are
16.5 °C for the thin film and 10.2 °C for the thick film,
quantifying the substantial increase in transition width with
decreasing film thickness. These errors represent the fitting error
identified from the root-mean-square error of the relevant fit
parameter (diagonal covariance matrix element).
Similar to the linear-fit-intersection method, one can identify
some systematic curvature in the residual in Figure 1, especially
in the glassy regime for the bulk film, indicating some nonlinear
expansion with temperature. Some curvature appears in the
liquid state residual too, but it is more subtle and could be due to
the model not fully capturing the behavior in the transition
region, a possibility discussed further in the following section.
One could argue that due to the number of points that lie outside
the ±2 error threshold in _h_, the fit to eq 1 is “worse” than the
linear fits. This observation can reasonably be explained by the
fact that the linear fit approach makes no attempt to model _h_ ( _T_ )
in the transition region, and therefore the choice of inner
temperature boundaries on the fitting windows nearly entirely
determines the quality of the fits. Fitting to a shorter region of
data will improve linearity (and thus fit quality by this metric) at
the expense of precision in the best-fit parameter values in
general.
These fits show that using the nonlinear fitting approach
works for supported PS films, and identifies an unambiguous _T_ g.
However, the main drawback with the LM algorithm and other
iterative least-squares optimization algorithms is the tendency to
yield solutions not corresponding to the global minimum in _χ_ <sup>2</sup> if
the initial values for the parameters are not already somewhat
close to the optimal solution. <sup>37,47</sup> A guess for the initial
conditions is always necessary, and can be challenging if the
various parameter values differ by many orders of magnitude.
For example, initial values for the thermal expansivities _αM_ and
_αG_, which are 6 orders of magnitude smaller than _T_ g, can be
estimated by quick linear fits to the liquid and glassy portions of
the _h_ ( _T_ ) data. One inconvenience resulting from this is that
these fits cannot easily be automated across data sets without a
human inputting initial parameter values for each fit. In addition,
the requirement that a human supply these initial values could
introduce some degree of bias in the fits that is difficult to
quantify. In fitting eq 1 using the LM algorithm to the set of _h_ ( _T_ )
data over a range of different film thicknesses, we found that
substantial hand-tuning of initial values was required to obtain
the global minimum in _χ_ <sup>2</sup> . By this we mean that a stable and
robust minimum is reached that is invariant to small tweaks in
initial parameter values. Given that this level of user-input is
required to fit the five independent parameters of eq 1, adding
more parameters to this functional form to account for some
nonlinear thermal expansion seems potentially problematic
using this fitting approach. This sets the stage for our efforts to
find a better way of fitting _h_ ( _T_ ) data to the model eq 1
represents. Before going further though, we must first critically
evaluate whether this model is the best one to use for
temperature-dependent film thickness data.
3.3. Functional Form of Temperature-Dependent
Thermal Expansion Coefficient _α_ ( _T_ ). Equation 1, frequently
used in the field to fit the glass transition in thin films, especially
_h_ ( _T_ ) data measured by ellipsometry, is derived from the
expression for the thermal expansion _α_ ( _T_ ) shown in eq 2. This
expression assumes the average thermal expansion of the film is
symmetric about the transition, varying smoothly from the
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Figure 2. Top panel: Plots of the temperature-dependent thermal expansivity _α_ ( _T_ ) obtained by numerically differentiating the _h_ ( _T_ ) representative
data sets for the 160 nm thick and 23 nm thin films. Data shown as black circles with the fit to the hyperbolic tangent eq 2 shown in red and the fit to the
generalized logistic function eq 7 shown in turquoise, where the drop lines identify the _T_ g parameter. Lower panels are studentized residuals for the
hyperbolic tangent shown in red and the generalized logistic shown in turquoise. The residuals for the tanh function exhibit clear systematic patterns
with large deviations around the transition temperature itself and nonzero slope in the glassy state. In contrast, the residuals for the generalized logistic
function show excellent fits with uniform noise about zero for both the bulk and thin film.
glassy to liquid state expansion values as a hyperbolic tangent
over some finite temperature range. Given that the _h_ ( _T_ )
functional form used for the nonlinear fitting is derived from an
expression of the thermal expansivity _α_ ( _T_ ), some examination of
what functional form fits _α_ ( _T_ ) data best is warranted.
However, we need to recognize that _α_ ( _T_ ) is typically obtained
by numerical differentiation of _h_ ( _T_ ) data, requiring a transformation of the data which has a number of possible
approaches. The most straightforward is a simple finitedifference numerical derivative, as was done for supported PS
films by Kawana and Jones, <sup>11</sup> using a somewhat arbitrarily
chosen 4.2 °C temperature interval for the finite difference.
Here, we use a slightly more complicated procedure, performing
linear fits on successive subsets of the data of length Δ _T_ to
determine a local slope at the center of the temperature interval.
This procedure essentially yields a numerical derivative that is
smoothed over a bandwidth of Δ _T_, with equal weighting over
the temperature interval. The results of this transformation
procedure are plotted in Figure 2 as the black data. A variety of
temperature intervals were tested, with the best values selected
being 2.5 °C for the bulk film and 4.2 °C for the thin film,
producing a reasonable balance of smoothing out some of the
noise while retaining the features present in the data.
Having settled on at least one reasonable method for
differentiating the film thickness data, we now examine what
the best functional form for fitting _α_ ( _T_ ) data might be. Kawana
and Jones chose to fit three straight lines to the _α_ ( _T_ ) data, in
each of the three regimes: liquid state, glassy state, and transition
region. <sup>11</sup> They chose to identify the intersection of the liquid
line with the transition line as an “onset” temperature _T_ + on
cooling and the intersection of the transition line with the glassy
line as an “end point” temperature _T_ −, with the midpoint
between these two temperatures taken to be _T_ g. They also
observed that _T_ + stays relatively invariant with decreasing film
thickness, while _T_ - shifts lower, indicating that the transition
broadens asymmetrically in thin films with _T_ - exhibiting the
largest change with decreasing film thickness. <sup>11</sup> From the _α_ ( _T_ )
data in Figure 2, we clearly observe a similar behavior to that
seen by Kawana and Jones, where the transition in the thin film
data is noticeably asymmetric. The three-line construction used
by Kawana and Jones is not a continuous function that can be
easily integrated to give a functional form for _h_ ( _T_ ), and it is
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
unable to capture the varying curvature at the glassy and liquid
ends of the transition.
The tanh-based _α_ ( _T_ ) functional form of eq 2 provides a
continuous function that can be easily integrated to arrive at the
_h_ ( _T_ ) functional form of eq 1. However, by definition the tanh
function is symmetric about the transition. In Figure 2, we plot
the best fit tanh-based _α_ ( _T_ ) curve to the thick and thin film data,
along with its residual. The _T_ g values obtained by fitting the
numerically differentiated _α_ ( _T_ ) data are similar to those
obtained from fitting the _h_ ( _T_ ) data directly with eq 1, although
interestingly they are both 0.5 °C higher for the thick and thin
films, _T_ g = 98.1 and 93.3 °C, respectively. We find that this tanhbased model does a reasonable job of describing the transition,
but is not capturing the sharpness of the transition out of the
liquid state and the smooth curvature into the glassy state. These
concerns become especially apparent when examining the
residuals plotted in Figure 2, where the residuals of the tanh fit
consistently have large deviations near the high-temperature end
of the transition. In addition, a nonzero slope can be seen in the
glassy state residual, for the bulk film especially, indicating that
some of the curvature associated with the lower end of the
transition may result in an incorrect _αG_ being identified. With
that being said, the tanh-based model does provide a continuous
function for _α_ ( _T_ ) that describes the main features of the data set
with only four fit parameters.
Is there a functional form that can capture the asymmetric
features of the _α_ ( _T_ ) data? The tanh function of eq 2 is
mathematically equivalent to a standard logistic or sigmoid
function that all treat the transition as symmetric:
/2
( _T_ ) = av + _T_
1 + _e_ (
_T_
= av + _T_ _T_ g
av 1 + _e_ ( _T_ _<u>wT</u>_ g )
+ _e_ ( _<u>w</u>_ ) (6)
near the _T_ + identified by Kawana and Jones, which was found to
be film-thickness invariant. <sup>11</sup> Thus, the _T_ g values obtained by
fitting eq 7 to the thick and thin film data are within error of each
other: 105.4 and 105.6 °C, respectively. While eq 7 represents a
more closely fitting model for _α_ ( _T_ ) data, it comes with a few
serious limitations that make it unsuitable for modeling _h_ ( _T_ )
data and identifying _T_ g. We will therefore proceed using the tanh
model of eq 2 with eq 1 for the _h_ ( _T_ ) data during the remainder
of our nonlinear fitting analysis.
3.4. Bayesian Inference by Hamiltonian Monte Carlo.
The main issues with using the Levenberg−Marquardt and
other traditional minimization algorithms to solve nonlinear
least-squares problems are that the ability to converge to an
accurate solution is sensitive to the initial parameter values and
their relative scales, and that the performance of the algorithm
worsens as the number of independent fit parameters
(dimensionality of the chi-squared landscape) increases. <sup>37,47</sup> A
powerful computational approach that has become more
accessible in recent years with the development of open-source
libraries is Bayesian inference. <sup>40,42</sup> Bayes’ theorem is applied to
efficiently map the chi-squared landscape by guiding a sampling
approach like Monte Carlo to identify the regions in parameter
space with high probability density (i.e., that are near the chisquared minimum). <sup>47,48</sup> Hamiltonian (or Hybrid) Monte Carlo
leverages Hamiltonian dynamics to simulate short trajectories in
parameter space to improve the selection of the next Monte
Carlo move. <sup>41</sup> These types of methods have recently been
employed in various subfields of physics from soft-matter
rheology to cosmology for their ability to fit and compare the
descriptive power of different complex models for the physical
behavior observed. <sup>49,50</sup>
Bayes’ theorem is derived from the definition of conditional
probability (that is, the probability of one outcome, given that
some set of events has already been observed). <sup>47,48</sup> It amounts to
a statement of invertibility for conditional probabilities:
Probability of event _A_ conditioned on event _B_ multiplied by
the probability of event _B_ occurring independently is equal to
the probability of event _B_ conditioned on event _A_ multiplied by
the probability of event _A_ occurring independently:
_P_ ( _A B_ | ) _P_ ( _B_ ) = _P_ ( _B A_ | ) _P_ ( _A_ ) (8)
We are interested in the probability of a set of parameter values
Θ = ( _T_ g, _M_, _G_, _w_, _c_ ), given the experimental _h_ ( _T_ ) data _X_ that
have been observed. In terms of our variables Θ and _X_, Bayes
theorem rearranges to
1
where av = 2 ( _M_ + _G_ ) and Δ _α_ = _αM_ - _αG_ . In contrast, a
_generalized_ logistic function can be used to describe a sigmoidal
curve without the assumption of symmetry:
/2
( _T_ ) = av + [1 + _e_ ( _T_ _T_
_T_
= av + [1 + _e_ ( _T_ _T_ g)]1/
[1 + _e_ ( _T_ _T_ g)]1/ (7)
where the exponent _ν_ plays the role of transition width and
asymmetry. A sharper change in _α_ ( _T_ ) at the high-temperature
end of the transition is signified by _ν_ - 1, while _ν_ < 1 signifies a
sharper change in _α_ ( _T_ ) near the low-temperature asymptote,
and _ν_ = 1 is symmetric. For the data shown in Figure 2, the value
of _ν_ is much greater than one for both the thick ( _ν_ = 9.6) and
thin ( _ν_ = 17) films. We find that this generalized logistic function
does an excellent job of capturing all the features of the glass
transition for both thick and thin films with also only four fit
parameters.
In Figure 2, we fit the _α_ ( _T_ ) data to the generalized logistic
function of eq 7 and show its residual. We find the fit is notably
better than the tanh fit, showing much less structure in the glassy
state residual, and smaller deviations from the fit around the
onset temperature just above _T_ g. This result is at first glance very
encouraging, but comes with a few major caveats. First, the
generalized logistic functional form used here does not have a
simple analytic integral that could be used as an _h_ ( _T_ ) functional
form. On top of that, the physical meaning of the parameters are
somewhat muddied as a result of the coupling introduced
between the exponent _ν_ and the _T_ g parameter in the
denominator. Specifically, the resulting _T_ g value in eq 7
corresponds to a value close to the upper end of the transition,
The left-hand-side of eq 9, called the _posterior_ _probability_, is
what we want to find. It represents the probability distribution of
the fit parameters Θ given the experimental data observed _X_ .
The conditional probability _P_ ( _X_ |Θ) that appears on the righthand-side of eq 9 is called the _likelihood function_ . It represents
the probability distribution for the _h_ ( _T_ ) function given a set of
parameters Θ. _P_ (Θ) is called the _prior distribution_, corresponding to an initial guess of the probability distribution for each of
the fit parameters. _Bayesian_ _inference_ refers to using Bayes
theorem to relate the probability of our initial guess _P_ (Θ) to an
updated probability _P_ (Θ| _X_ ) conditioned on the data _X_ having
been observed, where with iteration, _P_ (Θ| _X_ ) will converge on
the “best fit” (true) probability distribution of the parameter
values Θ = ( _T_ g, _M_, _G_, _w_, _c_ ).
_P_ ( _X_ <u>|</u> ) _P_ ( )
_P_ ( | _X_ ) =
_P_ ( _X_ )
(9)
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Figure 3. Histograms of the posterior distributions are graphed for the parameter values Θ = ( _T_ g, _M_, _G_, _w_, _c_ ) obtained from the Bayesian inference fit to
eq 1 by sampling over 40,000 Monte Carlo steps. (Bin counts are scaled to the peak count of the distribution.) Left panels are for the bulk PS film (160
nm) and right panels are for the thin PS film (23 nm), where from top to bottom the parameter distributions correspond to _T_ g, the thermal expansivity
of the melt _M_ = _h_ (1 _T_ g) _M_ and glassy _G_ = _h_ (1 _T_ g) _G_ states, the transition width _w_, and the film thickness value at _T_ g, _h_ ( _T_ g). From these distributions, we
= _h_ (1 _T_ g) _M_ and glassy _G_ = _h_ (1 _T_ g) _G_
= _h_ (1 _T_ g) _G_ states, the transition width _w_, and the film thickness value at _T_ g, _h_ ( _T_ g). From these distributions, we
identify the best fit _T_ g = 97.48 ± 0.06 °C for the bulk film and _T_ g = 92.5 ± 0.4 °C for the 23 nm thin film.
The denominator in eq 9, _P_ ( _X_ ), is called the _marginal_
_likelihood_ or _model evidence_, which corresponds to the probability
of the model itself being the correct representation for the data
observed. In Section 3.3, we already addressed that eq 1 may not
be the best functional form for _h_ ( _T_ ), but represents the best
option for an analytical function to fit _h_ ( _T_ ) data in practice.
Thus, for a given choice of the functional form for _h_ ( _T_ ), _P_ ( _X_ ) is
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
a constant. In other words, _P_ ( _X_ ) amounts to a normalization
constant that can be ignored for a given model.
To cast a nonlinear, least-squares fitting problem into a
statistical inference problem, <sup>39,51</sup> the likelihood probability
function _P_ ( _X_ |Θ) is defined as a Gaussian distribution of the sum
of squared residuals between the experimental data and the
model:
Ä
i
1 Ä 1 i _hi_ exp _hi_ ( _Ti_, ) y2É
_P_ ( _X_ | ) = exp
2 2 jjjj zzzz
ÅÅÅÅÅÅÅÅÅÅÅÇ _i_ k { ÑÑÑÑÑÑÑÑÑÑÑÖ
ÄÅÅÅÅÅÅÅÅÅÅÅÇ
1 1 i _hi_ exp _hi_ ( _Ti_, ) y2
| ) = exp
jjjj zzzz
É
y
y
zzzz
{
Ö
Ç
_i_
i
jjjj
k
(10)
This is in fact the probability distribution used to define the
least-squares fitting procedure based on the central limit
theorem, <sup>48</sup> which simply states that the experimental data _h_ exp _i_
have Gaussian noise that should be within one standard
deviation _σ_ of the model _hi_ ( _Ti_, Θ) approximately 68% of the
time for a given a set of parameters Θ. Note, the likelihood of eq
10 is a multivariate Gaussian distribution with one dimension for
each of the five parameters Θ = ( _T_ g, _M_, _G_, _w_, _c_ ).
The ability within this Bayesian inference framework to
specify the initial conditions for the fit parameters as
distributions _P_ (Θ) for the prior is a significant advantage
compared to specifying a single initial value as is done for the
standard nonlinear fitting approach. To be as general as possible,
we initialize each parameter with a prior distribution that is
intended to be “minimally informative” to avoid bias, while
allowing parameters to take on any “reasonable” values. We
implement this by using a completely uniform distribution for
_T_ g, and broad Gaussian distributions centered at zero for every
other variable. It is also useful to put all of the parameters on
unity scale for the purposes of optimization and sampling. We
can shortcut scaling each of the parameters individually by
instead standardizing the data itself, by defining
_h_ ( _T_ ) _h_ ( _T_ )
_z_ ( _T_ ) =
_h_
(11)
space. <sup>41</sup> For these kinds of distributions, a Monte Carlo method
that is designed for converging to the regions of high density is
highly advantageous. Hamiltonian Monte Carlo (HMC) is one
such approach. <sup>41,52</sup> HMC makes use of storing an ordered list of
the parameter values visited (a Markov chain), and uses a short
molecular dynamics (MD) simulation (simulating Hamiltonian
dynamics with momentum) in parameter space, accelerating
down gradients in −log (probability) and decelerating up them,
to choose the next Monte Carlo move. This process is repeated
for an arbitrary number of steps until the distribution of interest
has been characterized in sufficient detail. The result is, instead
of a random walk through parameter space as in standard
Metropolis Monte Carlo, HMC very efficiently samples regions
of high probability density. In general, HMC has two handtuning parameters: the size of the time step Δ _t_ and the length _L_
of the trajectory to run the simulation over (i.e., number of time
steps). These parameters must be tuned carefully such that the
trajectories are simulated in enough detail to effectively find the
regions of high density, but without wasting computational time.
We wish to avoid simulating trajectories in finer detail than is
necessary compared to the geometry of the distribution being
characterized, or running the simulation for longer than is
necessary such that the trajectories double back on themselves
repeatedly.
One particularly powerful Monte Carlo algorithm built into
PyMC is the No-U-Turn Sampler (NUTS). <sup>53</sup> NUTS is an
adaptive implementation of Hamiltonian Monte Carlo (HMC)
that eliminates the need to set one or both of the HMC
parameters by using a predefined number of iterations to tune
the values of _L_ and/or Δ _t_ . At a conceptual level, the simulation
ends and a MC step is made when the trajectory in parameter
space simulated both forward and backward in time begins to
double back on itself. Precise details can be found in the PyMC
documentation, and in the original paper introducing NUTS by
Hoffman and Gelman. <sup>42,53</sup> We use a version of NUTS in our
application that adaptively sets both tuning parameters without
human intervention. Thus, one key advantage of the approach of
casting nonlinear least-squares fitting into a statistical inference
problem is that using NUTS requires no hand-tuning.
_3.4.1._ _Bayesian_ _Inference_ _Fitting_ _to_ _Eq_ _1._ The Bayesian
inference fitting process is run on the _h_ ( _T_ ) data of the PS
supported films to determine “best-fit” distributions for the
parameter values Θ = ( _T_ g, _M_, _G_, _w_, _c_ ). In Supporting
Information we include the Python code to implement this,
along with a link to the GitHub repository where the code is
applied to the representative data sets we discuss throughout this
work. In Figure 3, we graph the posterior distributions of Θ =
( _T_ g, _M_, _G_, _w_, _c_ ) converged at for bulk and thin film
representative data sets for PS films. Histograms obtained
after 40,000 MC steps are plotted for each parameter value,
determined from four independent Markov chains of 10,000
steps each, where the counts are scaled to the mode of each
distribution. We emphasize here that even this relatively large
number of MC steps, more than is necessary to obtain
distributions that provide sufficient detail, is possible to run in
around a minute on a modern workstation PC. The distributions
come out to be all Gaussian, as is expected given the mostly
independent parameters and the large number of samples. The
bulk film, for which the measured film thickness values are more
precise relative to the total value, has narrower parameter value
distributions compared to the thin film. In addition, we obtain
1
estimates for the thermal expansivities M = _h_ ( _T_ g) _M_ and
In so doing, all of the fitting parameters are then on roughly unity
scale, allowing us to assign priors that are also on unity scale (i.e.,
Gaussian distributions with zero mean and unity variance:
_i_ = 12 _e_ _x_ 2/2).
With these prior initial conditions specified for _P_ (Θ), all we
need to specify the posterior distribution _P_ (Θ| _X_ ) in eq 9 is the
likelihood function of eq 10 with eq 1 as the generative model for
_hi_ ( _Ti_, Θ) and the experimental data _h_ exp _i_ . Then, an algorithm will
_i_ = 2 _e_
_hi_ ( _Ti_, Θ) and the experimental data _h_ exp _i_ . Then, an algorithm will
be used to iteratively sample this posterior distribution _P_ (Θ| _X_ )
in order to map out the converged (“best-fit”) probability
distributions of each parameter Θ = ( _T_ g, _M_, _G_, _w_, _c_ ). This
sampling process is accomplished by a Markov Chain Monte
Carlo method that optimizes the random selection of each
sampled point in parameter space, where we have selected a
Hamiltonian Monte Carlo method for this process. <sup>41,51,52</sup>
PyMC is a statistical inference library for Python that is
designed for this exact kind of problem. <sup>42</sup> To set up the problem
of finding the posterior distribution, prior distributions are
defined for all the variables, then experimental data are provided
along with a generative model for that data, which in turn
specifies the likelihood function as defined in eq 10. The
Bayesian inference is performed by sampling the product of the
likelihood and prior. The sampling algorithm chosen is of critical
importance here because Metropolis Monte Carlo is prone to
random-walk behavior that does not efficiently sample a
distribution that has concentrated density in a high-dimensional
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Figure 4. Top panels: Temperature-dependent film thickness _h_ ( _T_ ) data for thick (160 nm) and thin (23 nm) PS films with experimental data shown as
black open triangles. From the Bayesian inference fit to eq 1, 1000 simulated data sets generated from the converged posterior distributions shown in
Figure 3 are plotted using blue solid triangles, with the red curves denoting the “best fit” averaged values. Lower panels are the studentized residuals
corresponding to the difference between these “best fit” curves produced by Bayesian inference and the experimental data.
1
G = _h_ ( _T_ g) _G_ in the melt and glassy states by taking the
parameter values for the slopes in _h_ versus _T_ and dividing by
the total film thickness. The standard deviation of the
distributions can be used to define an uncertainty for each
parameter, with the mean providing a central value. For the bulk
film, the mean of the _T_ g distribution is located at 97.48 °C with a
standard deviation of 0.06 °C, and the thin film _T_ g distribution is
peaked at 92.5 °C with a standard deviation of 0.4 °C. The mean
and standard deviation of _T_ g and the other parameter values
arrived at are nearly identical to those found by the LM
algorithm, however, the Bayesian approach is able to converge to
these “best-fit” values with no hand-tuning. We will compare
trends in _T_ g( _h_ ) with the different fitting methods in detail later
on in Section 3.6.
With the Bayesian approach, one also obtains a plethora of
statistics about the sampled values and the state of the Markov
chains that can be used for diagnosing convergence and model
comparison. For example, PyMC comes with the ability to plot
“traces” of position in parameter space as a function of iteration
number, as well as the difference in energy (potential + kinetic)
between these steps in the Hamiltonian MC process.
Autocorrelation lag plots can be used to evaluate whether a
given parameter has converged, and pair correlation plots can be
examined to determine how independent the different
parameters are in this chi-squared landscape.
measurement. By comparing _hi_ sim( _Ti_, Θ) with the experimental
_h_ ( _T_ ) data, we also plot residuals in Figure 4. Unsurprisingly,
these residuals from the Bayesian fitting of eq 1 are nearly
identical to the residuals obtained from the LM fitting to eq 1
shown in Figure 1.
The residuals shown in Figure 4 being as similar as they are to
those in Figure 1 is not surprising, and demonstrates that when
fitting to the same functional form, the Bayesian inference
approach recovers the best solution found using the LM
algorithm. Because the same eq 1 is used to model _h_ ( _T_ ), the
quality of the fits, as shown by the residuals, also suffers from the
same issues encountered when the fit was obtained using
standard LM optimization. The glassy state residual shows
significant systematic curvature, and the transition region itself
exhibits the same large deviations between the fit and the data as
To evaluate the quality of the fits obtained by this Bayesian
inference fitting to eq 1, we plot in Figure 4 the experimental film
thickness versus temperature data on top of 1000 data sets
generated from parameter values drawn from the converged
posterior distributions shown in Figure 3. These simulated data
are known as “posterior predictive” samples. The solid curves
show the mean film thickness versus temperature _hi_ sim( _Ti_, Θ)
show the mean film thickness versus temperature _hi_ sim( _Ti_, Θ)
“best fit” curves obtained by averaging the 1000 “posterior
predictive” simulated data sets. The spread of the simulated data
points seems reasonable and encompasses the experimental
data, as one would expect from many iterations of the same
measurement. By comparing _hi_ sim( _Ti_, Θ) with the experimental
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Figure 5. Top panels: Temperature-dependent film thickness _h_ ( _T_ ) data for the thick and thin film data fit using Bayesian inference to the modified
_h_ ( _T_ ) functional form of eq 12 incorporating a temperature-dependent glassy thermal expansion. Experimental data are plotted as black open triangles,
with 1000 simulated data sets drawn from the converged posterior distributions plotted as blue solid triangles, and the “best fit” average curve of this
Bayesian fit is shown in orange. Middle panels: Studentized residuals of this fit, with the range of −2 _σ_ to +2 _σ_ marked by gray dashed lines, highlighting
that these residuals are well-behaved with the glassy state data for the thick film showing much less systematic deviation from the fit. Bottom panels:
Histograms of the converged posterior distributions for _T_ g, sampled over 40,000 Monte Carlo steps. The best-fit _T_ g values are identified as 94.7 ± 0.1
°C for the bulk film and 89.5 ± 1.0 °C for the thin film.
in Figure 1. However, in contrast to the LM approach where we
were already at its limits, with the power of the Bayesian
inference approach, we are easily able to robustly add additional
fit parameters to the _h_ ( _T_ ) functional form to account for such
systematic deviations.
_3.4.2._ _Bayesian_ _Inference_ _Fitting_ _to_ _the_ _Modified_ _h(T)_
_Functional_ _Form_ _with_ _Temperature-Dependent_ _Glassy_
_Expansion._ To demonstrate the power and flexibility of the
Bayesian inference fitting approach, we examine a more complex
_h_ ( _T_ ) functional form than eq 1 that adds an additional
parameter to the glassy state thermal expansion. From Figure
2, we observed that the biggest systematic deviation in the
residual was the presence of a nonzero slope to the glassy-state
thermal expansion that would suggest we should modify the
constant glassy slope _G_ in eq 1 to _G_ 0 + _G_ 1 ( _T_ - _T_ g).
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Implementing this change gives us the following equation for
_h_ ( _T_ ):
i
_h_ ( _T_ ) = _w_ i <sup>_M_</sup> _G_ <u>0</u> _G_ <u>1</u> yln coshi _T_ _T_ g
jjj zzz jjjj
y
zzz
y
zzz
{
Ä
ÄÅÅÅÅÅÅÅÅÅÅÇ
Ç
i
jjj
y
y
zzzz
{Ö
É
ÉÑÑÑÑÑÑÑÑÑÑÖ
( _T_ ) = _w_ <sup>_M_</sup> <u>0</u> <u>1</u> ln cosh
jjjk 2 zzz{
=
i
jjj
i
jjj
k
i
jjj
k
<u>0</u> _G_ <u>1</u> y i g
Ö
i
jjj
_G_ <u>1</u> y( _T_ _T_ g)2 i _G_ <u>1</u> ytanhi _T_ _T_ g
zzz jjj zzz jjjj
<u>1</u> ( _T_ _T_ g)2 <u>1</u> tanh
4 zzz{ jjjk 2 zzz{
<u>1</u> y( _T_ _T_ g
zzz
y
zzz
y
zzz
{
i
jjjj
k
y
zzz
y
zzz
{
_w_
i
i
jjjj
k
y
zzzz
{
2 i _G_ <u>1</u> y i g
i
jjj
k
+
_w_
i
jjj
<u>0</u> ( _T_ _T_ g)
2 zzz{
<u>0</u> y
( _T_ _T_ g
zzz
i _M_ <u>+</u> _G_ <u>0</u> y
+ ( _T_ _T_ g) +
jjj zzz
i
jjj
k
_M_ <u>+</u> _G_ <u>0</u> y
( _T_ _T_ g) + _c_
zzz
y
zzz
y
zzz
{
(12)
values obtained when fitting a given data set. Although
individual researchers make informed choices of their fitting
windows in a reasonable manner, this exercise provides, in the
broadest sense, a measure of the possible ranges of _T_ g values
obtained by many different researchers, which we find ends up
encompassing much of the variability in _T_ g( _h_ ) trends previously
reported in the field.
The fitting windows are enumerated by defining two
temperature ranges for the glassy and liquid regimes, as
illustrated in the inset of Figure 6. The glassy regime is bounded
Figure 6. Histogram of _T_ g values obtained from the brute-force-search
code for an idealized _h_ ( _T_ ) data set with no noise, constructed for a bulk
film with an instantaneous glass transition at 96.5 °C. The distribution
is sharply peaked at the nominal _T_ g, but other “background” values are
still identified. Inset: Idealized film thickness data, with one choice of
the fitting window end points _T_ 1, _T_ 2, _T_ 3, _T_ 4 shown.
by _T_ 1 and _T_ 2, and the liquid regime by _T_ 3 and _T_ 4. The code was
written to vary these fitting windows in between the lowest
temperature _T_ min = 30 °C and the highest temperature _T_ max =
140 °C of the _h_ ( _T_ ) data set, subject to the following conditions:
The other parameters ( _M_, _T_ g, _w_, and _c_ ) retain their original
definition. We note that others in the literature have recently
also proposed modifications to eq 1. <sup>54−56</sup>
Bayesian inference is able to fit this more elaborate functional
form of eq 12 without difficulty with no additional user input,
starting from broad (minimally informed) prior distributions.
Figure 5 graphs the temperature-dependent film thickness “best
fits” and residuals obtained from Bayesian inference fits to eq 12,
along with the resulting posterior distributions for _T_ g. The
residuals clearly demonstrate that this model produces a
substantially better fit to the glassy state data, especially for
the bulk film. The concavity that was plainly visible in the glassystate residual in Figures 1 and 4 is effectively eliminated in Figure
5. The fit for the thin film does not improve much, as any
systematic deviation from simple constant thermal expansion is
swamped by the noise in the data. Interestingly, fitting to this
augmented eq 12 results in the identification of a somewhat
lower _T_ g value, where the mean of the _T_ g distribution shown for
the bulk film is peaked around 94.7 °C, in contrast to the value
identified by the fit to eq 1 of 97.5 °C. This difference could be
explained by the quadratic term improving the fit to the glassy
state portion of the data, and thereby providing greater
sensitivity to the low-temperature end of the glassy state far
from _T_ g. The quadratic scaling of _h_ with respect to ( _T_ - _T_ g) in eq
12 causes the fit to the data near the low-temperature end to be
more strongly affected by small changes in the _T_ g fitting
parameter. Since there is no such effect in the liquid state, still
treated as having a constant slope thermal expansion coefficient,
this could perhaps contribute to the lower _T_ g value.
We note that attempts were made to fit the functional form of
eq 12 to the _h_ ( _T_ ) data with a conventional LM algorithm.
However, only limited success was obtained. Fits could not
converge without substantial hand-tuning of initial parameter
values and placing constraints on certain parameters, such as the
transition width _w_, ultimately resulting in worse _χ_ <sup>2</sup> values than
the simpler fit to eq 1.
Overall, we find the Bayesian framework for nonlinear fitting
described here to be robust and versatile. The fitting procedure
efficiently handles complex functional forms without needing to
guess the correct initial parameter values, while providing
meaningful posterior distributions that extract the “best-fit” _T_ g
value and characterize its uncertainty.
3.5. Brute-Force Exhaustive Search of Linear-Fitting
Ranges. For comparison, it is worth examining “best-fit” _T_ g
distributions obtained from the commonly used intersection of
linear fits. We employ a brute-force, exhaustive computation to
perform multiple iterations of the linear-fit-intersection method
by systematically varying the temperature ranges used to fit the
glassy and liquid state lines. This characterizes the dependence
of _T_ g on the choice of fitting windows in a way that provides a
more accurate reflection of the true variability in the possible _T_ g
_T_ 1 _T_ 2 _T_ span,
_T_ 2 < _T_ 3
<
,
2 3
_T_ 3 _T_ 4 _T_ span
(13)
_T_ span corresponds to the minimum size allowed for a possible
temperature window, which was set at 5 °C. Both the inner and
outer bounds of the temperature windows were individually
varied in increments of 10 °C, meaning the available choices for
_T_ 1, _T_ 2, _T_ 3, and _T_ 4 were 30, 40, 50, 60, 70, 80, 90, 100, 110, 120,
130, and 140 °C. Linear regressions were then performed for all
possible combinations of _T_ 1, _T_ 2, _T_ 3, and _T_ 4 satisfying the
conditions listed, and the intersection temperature was
computed for each set of linear fits. The _T_ g values obtained
were then binned into histograms in 1 °C intervals.
For illustration purposes, we start with applying this bruteforce computation to an idealized _h_ ( _T_ ) data set that represents a
bulk thick film with an instantaneous transition between two
constant slopes with no measurement noise. The dd _Th_ <sup>slopes were</sup>
chosen to match those for the 160 nm thick representative PS
film. Figure 6 displays this idealized data set, along with the
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
computed histogram of _T_ g values. This process allows us to
evaluate the brute-force code and verify that the central value
obtained from the histogram corresponds to the single, known
_T_ g value of 96.5 °C. Some background counts are present in the
histogram of this idealized data set because a small subset of the
temperature windows naturally span the transition point,
identifying other possible fit values, albeit with much lower
frequency. Importantly, this idealized distribution provides a
baseline for comparison when evaluating the histograms
obtained from real data, where the breadth of the distribution
will be impacted by the nonzero width of the glass transition and
the noise in the _h_ ( _T_ ) data.
Figure 7 shows the results obtained from the brute-force code
applied to the _h_ ( _T_ ) data for the representative thick (160 nm)
and thin (23 nm) PS films. The histograms of _T_ g values,
Figure 7. Histograms showing _T_ g values determined using a brute-force
calculation of many iterations of the linear-fit-intersection method
applied to the 160 nm thick and 23 nm thin PS films. The distribution of
possible best-fit _T_ g values for the thick film is sharply peaked, while the
corresponding distribution for the thin film is substantially more spread
out, notably toward higher temperatures. Both histograms also show
“background” counts that span across the middle of the temperature
range, with the large peak associated with _T_ g superposed. Dashed gray
lines indicate the half-maximum of the distribution from which we
choose to define the uncertainty in _T_ g, where _T_ g is obtained from the
maximum.
We start in Figure 8a where we compare the deviation of
_T_ g( _h_ ) from bulk _T_ g as reported by each of the fitting methods for
PS films with thicknesses ranging from _h_ = 21 to 650 nm.
Relative to its respective _T_ bulkg, each fitting method exhibits the
same trend in _T_ g( _h_ ) showing a decrease of ≈5 °C for film
thicknesses of _h_ ≈ 25 nm. The Bayesian approach to fitting eq 1
provides nearly identical _T_ g values and errors to the standard
nonlinear LM fit of eq 1. This is unsurprising given that both
methods are used to search for the same global minimum in chisquared parameter space. The linear fit methods identify very
similar values to the nonlinear methods, albeit with less precision
in general. Notably, the error bars determined from eq 5 for the
intersection of the linear fits are larger than those from the
nonlinear fits to eq 1. The brute-force method provides an
normalized by the mode, both show distinct peaks that one
would naturally associate with a “best-fit” _T_ g. Both distributions
also show a wide range of background values arising from how
the noise in the _h_ ( _T_ ) data and the nonzero transition width
impact the identified fit values for the varying selection of
temperature windows. These background values appear to be
roughly Gaussian, centered at the middle of the temperature
range measured. In contrast, a distinctly larger and narrower
peak associated with _T_ g is superposed on top of these
background counts. By comparing the frequency of the
background counts present in the histograms from the real
and idealized data, we choose a cutoff of the half-maximum of
the distribution to identify an uncertainty associated with the
central _T_ g value. These give us best-fit _T_ g values of 96.5 ± 1.5 °C
for the bulk 160 nm film and 90.5+1.55.5 °C for the 23 nm thin film.
The asymmetry of the uncertainty in _T_ g is reflected in the
histogram, where more bins exceed the half-maximum of the
distribution at temperatures higher than the most-probable _T_ g
value (the mode) than temperatures lower than this value.
Reassuringly, the central _T_ g values from these distributions agree
well with the _T_ g values we obtained in Figure 1 from our “most
reasonable” selection of fitting windows.
The errors obtained from this brute-force calculation are
significantly larger than the fitting error for _T_ g obtained using eq
5 when fitting a given _h_ ( _T_ ) data set. This demonstrates one of
the main flaws of the linear fitting technique: for broad
transitions and noisy data, there is more ambiguity in identifying
the “best-fit” _T_ g value than is represented by a single fit and its
associated uncertainty, due to the implicit fitting parameters
represented by the end points of the fitting ranges, where the
choices of these end points can have an outsize impact on the _T_ g
value obtained. Thus, the large error determined from this bruteforce calculation may better represent the real uncertainty
associated with using this linear-fit-intersection method to
obtain _T_ g, particularly in thin films.
3.6. Comparing _T_ g( _h_ ) for PS Films Obtained from the
Different Fitting Methods. In this section, we compare all the
different fitting methods we have discussed. Trends in _T_ g( _h_ ) and
their uncertainties are examined for many different ellipsometric
_h_ ( _T_ ) data sets for a wide range of PS films. We also discuss the
film thickness dependence of the transition width _w_, and the
thermal expansion coefficients _αM_ and _αG_ in the melt and glassy
regimes determined from the Bayesian inference fits of eqs 1 and
12. We stress that the uncertainty in _h_ ( _T_ ) has been rigorously
propagated throughout, and used as weights in each of the fitting
methods, thus making an inspection of the film-thicknessdependent trends and uncertainties of these fitting parameters
meaningful.
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Figure 8. (a) Decrease in _T_ g with decreasing film thickness _h_, relative to bulk _T_ g, for the different fitting methods all showing similar trends in _T_ g( _h_ ).
Bayesian inference fits to eq 1 (red upward-pointing triangles) and eq 12 (orange downward-pointing triangles) are compared to the standard
nonlinear LM fit of eq 1 (green diamonds), the linear-fit intersection method for the user-defined “best” fitting window (blue circles) and a brute-force
iteration of many possible fitting windows (purple squares). (b) Bulk _T_ g values (average of films with _h_ - 100 nm) for the different fitting methods.
Error bars are smaller than the symbol sizes, except for the brute-force calculation. (c) Transition width fit parameter _w_ ( _h_ ) obtained from Bayesian
inference fitting methods is plotted as a function of film thickness, where the horizontal dashed lines indicate the average of the data for _h_ - 60 nm for
the corresponding set of fits (gray bars highlight uncertainties ±2 _σ_ ). The vertical gray bar spanning the (a,b) graphs highlights the range of film
thickness over which _T_ g( _h_ ) and _w_ ( _h_ ) begin to deviate from their bulk values. (d) Plot of melt state _αM_ (hollow symbols) and glassy state _αG_ (solid
symbols) thermal expansivities, obtained by the Bayesian inference fits, with horizontal gray bars highlighting bulk values (±2 _σ_ ) for _h_ ≥ 100 nm. The
liquid and glassy expansivities are comparatively flat with decreasing film thickness relative to _T_ g( _h_ ) and _w_ ( _h_ ).
interesting perspective. The _T_ g values we identified with
manually selected temperature ranges for fitting (such as in
Figure 1) correspond closely to the most frequently observed _T_ g
values in the distributions obtained from the brute-force
computation of Figure 7. However, these brute-force distributions suggest wide and sometimes asymmetric errors for the
_T_ g( _h_ ) data that could be interpreted as a range of plausible _T_ g
values when accounting for the different fitting windows
individual researchers might decide to use. We recognize that
the _T_ g( _h_ ) shifts shown here are on the smaller end of values
reported before in the literature, some of which may be
explained by variations in experimental techniques. <sup>12,44</sup>
Although it is also possible that some unintended bias creeps
into the manual selection of fitting windows when using the
linear-fit intersection method, certainly it appears to us that
errors from this fit method are routinely under-reported in the
literature. For example, the original Keddie et al. study on thin
PS films had no explicit error bars on the _T_ g values plotted. <sup>16</sup>
The Bayesian fits to eq 12 provide _T_ g( _h_ ) shifts with decreasing
film thickness that lie nearly on top of the other fitting methods.
The errors on these _T_ g values are larger than those for the fits to
eq 1, but typically still smaller than the errors associated with the
linear fit intersection method. The errors on the _T_ g values get
particularly large for thin films, consistent with the notion that eq
12 has too many parameters for fitting data from very thin films.
This is expected given that any systematic deviations in the
residuals for fits to the simpler functional form of eq 1 were
already in the noise for the representative thin film data. Where
these _T_ g fits to eq 12 differ from the other methods is in the
absolute value of _T_ bulkg .
absolute value of _T_ bulkg .
Figure 8b compares the bulk _T_ g value for each fitting method,
determined from an error-weighted average of films with
thickness _h_ - 100 nm. Both linear fit methods identify _T_ bulkg as
thickness _h_ - 100 nm. Both linear fit methods identify _T_ bulkg as
96.5 °C with an error of ±0.1 °C for the manually selected “most
reasonable” fitting windows and ±2.5 °C from the brute-force
calculation. The Bayesian and LM fits to eq 1 both found _T_ bulkg =
calculation. The Bayesian and LM fits to eq 1 both found _T_ bulkg =
97.74 ± 0.02 °C, higher by one degree Celsius. Interestingly, the
Bayesian fits to eq 12 identify a notably lower _T_ bulkg = 95.06 ±
Bayesian fits to eq 12 identify a notably lower _T_ bulkg = 95.06 ±
0.06 °C, ≈3 °C lower than that found from fitting to eq 1. This
difference is reasonably explained by the functional form of eq 1
not adequately capturing the glassy state behavior near the
transition. In particular, it can be seen from the residuals in
Figures 1 and 4 that there is systematic concavity in the glassy
state when fitting to eq 1, implying that the asymmetry of the
transition is being compensated for in the fit by picking a slightly
higher glassy state expansion coefficient (as shown in Figure 8d)
and transition width. The residuals of the fits to eq 12 in Figure 5
clearly show that this systematic trend is captured by the more
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
complicated functional form in films where the deviation from
the fit to eq 1 is large enough relative to the noise of the
measurement to be relevant. Due to the quadratic dependence
of _h_ on _T_ - _T_ g, fitting to eq 12 increases the relative weight of the
low-temperature extreme of the data set where _T_ - _T_ g is largest,
resulting in a lower expansivity value being identified, in turn
resulting in a lower transition width _w_ and thus also a lower _T_ g.
Figure 8c shows the film thickness dependence of the
transition width parameter _w_ obtained from Bayesian fits to eqs
1 and 12. To our knowledge the thickness dependence of the
transition width for supported PS films has not been explicitly
quantified in this manner in the literature previously, although
transition width has been used as a fitting parameter <sup>35</sup> and the
span of the transition region has been quantified with _T_ <sup>+</sup> and _T_ <sup>−</sup>
values. <sup>11,12</sup> We find that the transition width is constant for bulk
films with _h_ - 60 nm near a value of ≈10 °C, which then begins
to increase for _h_ < 50 nm. The film thickness range over which _T_ g
and _w_ begin to deviate from their bulk values is similar,
highlighted by the vertical gray bar. We note interestingly that
the _h_ = 55 nm data point has reduced _T_ g relative to bulk by more
than the experimental error, but has a _w_ value that is consistent
with bulk to within error. The fit transition width _w_ ( _h_ ) using eq 1
has the same general thickness dependence as the _w_ ( _h_ ) obtained
when fitting to eq 12, but shifted upward by about 1 °C. The
difference in bulk transition width value between the two models
is likely due to the ability to fit the glassy state more accurately
with eq 12 compared to eq 1 as evidenced by improved residuals
in Figure 5, resulting in lower absolute values of _αG_, _w_ and _T_ g.
Figure 8d shows the glassy _αG_ and melt _αM_ expansivities as a
function of film thickness, obtained from the Bayesian fits to eqs
1 and 12. We find that _αM_ and _αG_ values are comparatively
independent of film thickness. The _αM_ values are identical
between the two models, which makes sense as both equations
treat the liquid state as having a single, constant slope. The _αG_
values, on the other hand, are notably lower for the fits to eq 12
compared to those of eq 1. The cause of this is that eqs 1 and 12
treat the glassy state differently. Equation 1 treats the glassy state
with a constant thermal expansion _αG_, as shown in eqs 1 and 2,
giving a perfectly linear _h_ ( _T_ ) glassy line with a single slope.
Equation 12 in contrast treats the glassy thermal expansion as
temperature dependent _αG_ ( _T_ ) = _G_ 0 + _G_ 1 ( _T_ - _T_ g), motivated by
the curvature in the residual we observed in Figure 4 to the fits of
eq 1. When fitting to eq 1, a roughly median value of _αG_ is
identified in order to minimize the mean-squared error of the fit
despite the systematic curvature. Equation 12 can accommodate
this curvature, and thus identifies a lower value of _αG_ closer to
the slope at the low-temperature extreme of the data set. This
lower _αG_ also results in the slightly lower transition width _w_ and
_T_ g values. For the thick films with _h_ ≥ 100 nm, the _αM_ and _αG_
values obtained using eq 1 are in good agreement with those in
the literature. Pye et al. reported _αG_ ≈ 1.6 × 10 <sup>−4</sup> K <sup>−1</sup> and _αM_ ≈ 6
× 10 <sup>−4</sup> K <sup>−1</sup> using ellipsometry for 500 nm thick PS films, which
were demonstrated to agree well with handbook volumetric
expansivity values when when adjusted to account for
constraining effects of the silicon substrate. <sup>8,57</sup> Compared to
the previous analysis done by Kawana and Jones, using a threeline approach to fit numerically differentiated film thickness data
from 10 samples, we do not observe the increase in _αG_ that they
saw with decreasing film thickness, <sup>11</sup> in accord with other
studies in the literature. <sup>12,58</sup>
Overall, Figure 8 shows that the various fitting methods we
have evaluated in this study tend to identify deviations from bulk
_T_ g that are within experimental error of each other, but there is a
definite advantage in precision and ability to explicitly fit the
transition width _w_ provided by the nonlinear fitting methods.
The different methods also produce slightly different absolute
values of _T_ bulkg, with the eq 12 fits standing out the most from the
other approaches. The Bayesian approach is particularly
powerful because it is insensitive to the user-provided initial
conditions compared to the standard LM algorithm where these
initial conditions must be a single point in parameter space close
to the global minimum. As a result, Bayesian fitting methods
allow more complex models to fit to a given data set, and enable
fast batch fitting without respecifying initial conditions across
different data sets.
_3.6.1._ _What_ _about_ _Thinner_ _PS_ _Films_ _with_ _h_ _<_ _20_ _nm?_ To
properly address thinner films with thicknesses _h_ < 20 nm, we
need to first revisit the ellipsometer optical layer model fitting
that generates the _h_ ( _T_ ) data. The quality of the _h_ ( _T_ ) data
depends on the ability of the optical layer model to accurately
and unambiguously fit the ellipsometer’s raw Ψ( _λ_ ) and Δ( _λ_ )
data to determine the film thickness _h_ and refractive index _n_ ( _λ_ )
as described in eq 3. As the films become thinner, the wavelength
dependence of Ψ( _λ_ ) and Δ( _λ_ ) become more featureless
resulting in more ambiguous fits and ultimately noisier _h_ ( _T_ )
data. <sup>20</sup> For example, the RMS fitting error in _h_ provided by the
Woollam software, _δh_, is 0.013 nm for 10 nm thick films,
compared with 0.013 nm for the 23 nm thick and 0.009 nm for
the bulk 160 nm representative films. Even though the _δh_ error
in _h_ is the same for the 10 and 23 nm thick films, the effective
noise in the data _δh_ / _h_ will be twice as large for the 10 nm films
because the thickness is half as large. In addition, the polarization
change defining Ψ( _λ_ ) and Δ( _λ_ ) becomes less dependent on the
material’s dispersion, i.e., the wavelength dependence of the
refractive index _n_ ( _λ_ ), for thinner films because the light spends
so little time passing through the film such that the polarization
change comes primarily from the reflection at the interfaces. <sup>20,59</sup>
To address this, it is common for researchers to hold the Cauchy
_B_ parameter fixed, along with the _C_ parameter, in eq 3 for the
_n_ ( _λ_ ) parametrization. We have done this for films with thickness
_h_ ≤ 10 nm, holding _B_ = 0.00745 and _C_ = 0.00038 at the bulk
values, <sup>20</sup> finding it has very little impact on the temperaturedependent _h_ ( _T_ ) data for these ultrathin films as one would
expect. It is worth noting that also holding _A_ constant would
completely remove the temperature dependence from the
refractive index and that does alter the behavior of the _h_ ( _T_ ) data.
In Figure 9 we plot _T_ g( _h_ ) and _w_ ( _h_ ) for PS thin films where we
have extended the data set to include film thicknesses _h_ < 20 nm.
_T_ g( _h_ ) shows the large reduction in _T_ g from bulk as film thickness
is reduced that has been well characterized in the literature. The
Bayesian fits to eq 1 are able to fit the _h_ ( _T_ ) data for these thin
films with ease, retaining the small error in _T_ g. In contrast, the
commonly employed linear-fit intersection method, using the
“best” user-defined fitting windows, struggles with the thinner
films showing increasingly larger error bars in _T_ g with decreasing
film thickness. Both fitting methods find that very thin films with
_h_ ≈ 9 nm exhibit larger sample-to-sample variability in _T_ g( _h_ ).
Interestingly, the trend in the transition width _w_ ( _h_ ) that is
reliably obtained from the Bayesian fits shows an unexpected
trend below _h_ = 20 nm that strongly indicate a persistent
decrease in the transition width. This probably reflects a
reduction in the distribution of relaxation times in these very
thin films, a finding that would be consistent with the previous
observation by Ellison and Torkelson that very thin PS films
have a less reduced local _T_ g at the free surface and appear to be
more dynamically homogeneous. <sup>60</sup>
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Their study even suggested that for ultrathin films ( _h_ < 20 nm),
the transition may in fact broaden to the point that two distinct
_T_ gs appear. Glor et al. characterized the breadth of the transition
by identifying _T_ + and _T_ - values, corresponding to the start and
end of the transition on cooling, finding transition breadths ( _T_ +
- _T_ −) of up to 51 K for 16 nm thick films. <sup>29</sup> Their definition of
transition breadth would roughly correspond to 2 _w_ from our fits,
in reasonable agreement. Whether interpreted as two separate
_T_ g values, or as a single very broad transition, this broadness
speaks to the strong difference in local dynamics near the free
surface and substrate interfaces. Because we are implementing
the Bayesian inference fitting using eq 1 that only allows for a
single transition, it is possible this transition breadth may impact
the Bayesian fitting routine’s ability to identify a single _T_ g value,
and thus contribute to the variability in the _T_ g values identified
for thin films.
Figure 10c graphs the expansivities for the melt _αM_ and glassy
_αG_ states obtained from the Bayesian fits to the P2VP data. The
trends in _αM_ and _αG_ with decreasing film thickness are overall
quite similar to those observed for PS films. The higher
variability in _T_ g and _w_ parameters means there is somewhat
more spread observed in the _αM_ and _αG_ values in the thin film
regime compared to PS. The bulk values we obtain for P2VP are
_αM_ = (5.36 ± 0.05) × 10 <sup>−4</sup> K <sup>−1</sup> and _αG_ = (1.45 ± 0.04) × 10 <sup>−4</sup>
K <sup>−1</sup> . Both values are slightly lower than those obtained for PS,
and appear to agree reasonably well with the plateau values
shown by Glor et al. <sup>29</sup>
The behavior of how _T_ g( _h_ ) changes in thin P2VP films with
decreasing thickness is considerably less well established in the
literature than that for PS thin films. A series of older papers
reported large increases in _T_ g( _h_ ) with decreasing thickness, <sup>61−63</sup>
Figure 9. (a) Plot of _T_ g( _h_ ) for PS thin films extended down to
thicknesses _h_ < 20 nm (open symbols), while the solid symbols
correspond to the thicker film data shown in Figure 8. The Bayesian fits
to eq 1 continue to provide reliable fits with small error bars for _T_ g,
while the common linear-fit intersection method obtained by userdefined “best” fitting windows struggles showing an increasing error in
_T_ g for thinner films. (b) The transition width _w_ ( _h_ ) obtained from the
Bayesian fits surprisingly shows a down turn in thin films _h_ < 20 nm,
which likely indicates a narrowing of the distribution of relaxation times
in thin films.
3.7. Bayesian Inference Fitting Applied to P2VP Thin
Films. Having benchmarked our Bayesian inference fitting
approach on PS thin films, we now apply this to a different
system, a set of data from poly(2-vinylpyridine) (P2VP) thin
films to assess changes in _T_ g( _h_ ), _w_ ( _h_ ), and thermal expansivities
_αM_ and _αG_ with decreasing film thickness. Figure 10 shows values
of _T_ g( _h_ ) for P2VP films obtained from Bayesian fits to eq 1.
Unlike the PS data that clearly show a reduction in _T_ g( _h_ ) with
decreasing film thickness, P2VP films show significant variability
in _T_ g( _h_ ) from sample-to-sample in the thin film regime ( _h_ < 80
nm). Bulk films with thicknesses _h_ - 100 nm give an average bulk
_T_ g of 95.8 ± 0.3 °C and transition width of 13.0 ± 0.4 °C.
Although _T_ g( _h_ ) does not change substantially with decreasing
film thickness, the transition width _w_ ( _h_ ) increases sharply as the
film thickness is reduced. As shown in Figure 10b, _w_ ( _h_ ) increases
from its bulk value of 13.0 to 21 °C, a much larger change than
that seen for PS. This likely reflects the very large gradient in
dynamics occurring in these films.
The width _w_ of the glass transition is expected to broaden
significantly for P2VP films in the regime of film thicknesses for
which we have data, as has been previously shown by Glor et al. <sup>29</sup>
while newer studies report small _T_ g( _h_ ) decreases coupled with
strong broadening of the transition in thin films. <sup>29,64</sup>
Unfortunately what conclusions can be drawn from these
studies are limited, as in some cases the data reported are for
only 4−5 film thicknesses. In the present work, we plot _T_ g( _h_ )
values fit from 49 different samples, where we find a high degree
of sample-to-sample variability, even though the fitting error in
_T_ g for any given _h_ ( _T_ ) data set is small (around ±0.2−0.4 °C).
The underlying cause of this variability is unclear, but may reflect
such a broadened transition that a single _T_ g value is no longer
meaningful. The breadth of the transition in these thin films ( _w_ 15 °C) far exceeds the variability in _T_ g( _h_ ) values (≈5 °C). If we
examine a group of _h_ ( _T_ ) data at film thicknesses of ≈28 nm that
exhibits the highest variability, we find noticeable differences
between the _h_ ( _T_ ) data themselves that suggest drawing
conclusions from a single data set may be unreliable. For
example, it is possible with fewer data points that our results
might convincingly suggest a consistent _T_ g( _h_ ) trend that
increased or decreased. However, by comparing data from a
large number of different films it becomes clear that sample-tosample variability is high. The strongly competing free surface
and substrate interactions in thin P2VP films appear to result in
such a strong dynamical gradient that the resulting _T_ g value
identified from a given measurement in thin films is highly
variable. <sup>29,64−68</sup> In such cases, multiple repeated measurements,
aided by an unbiased automated fitting of _T_ g, provide a more
accurate sampling of the glass transition in thin films.
4. CONCLUSIONS
A Bayesian inference fitting method using Hamiltonian Monte
Carlo was developed leveraging open-source Python resources
that eliminates the key drawbacks of standard Levenberg−
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Figure 10. Bayesian inference fitting approach using eq 1 applied to P2VP thin films supported on silicon. Values of (a) _T_ g, (b) transition width _w_, and
(c) thermal expansivity values for the _αM_ melt state (hollow symbols) and _αG_ glassy state (solid symbols) are plotted as as a function of film thickness _h_ .
Data for two identical molecular weights are shown as upward ( _M_ w = 650 kg/mol) and downward ( _M_ w = 643 kg/mol) pointing triangles. Horizontal
dashed lines indicate the average of the data for _h_ - 100 nm for the corresponding set of fits, gray bars highlight uncertainties of ±2 _σ_ . _T_ g( _h_ ) and _w_ ( _h_ )
begin to deviate from bulk around the same critical thickness of ≈60 nm as that for PS, but show significant sample-to-sample variability for thin films.
For P2VP, the breadth of the transition in thin films _w_ - 15 °C, likely associated with the strong gradient in dynamics, far exceeds the ≈5 °C variability
in _T_ g( _h_ ).
Marquardt nonlinear fitting. This new Bayesian fitting method
to determine _T_ g was applied to a set of film thickness _h_ ( _T_ ) data
collected by ellipsometry for supported PS and P2VP films
spanning a wide range of thicknesses previously published by
our group. <sup>20,45</sup> Formulating least-squares fitting as a Bayesian
inference problem involves defining the likelihood probability
function as a Gaussian distribution of the sum of squared
residuals between the experimental data and a functional form
that describes the _h_ ( _T_ ) data. Hamiltonian Monte Carlo is then
used to efficiently map the regions of high probability density in
this effective chi-squared landscape. This robust global
optimization from unbiased initial starting conditions provides
“best-fit” probability distributions for each fit parameter.
An existing functional form by Dalnoki-Veress et al., <sup>18</sup> eq 1,
was used as a starting point to fit the _h_ ( _T_ ) data to obtain trends
in _T_ g, transition width _w_, and thermal expansivity _αM_ and _αG_
values as a function of film thickness. The Bayesian fitting
provides meaningful values for these parameters and their
uncertainties allowing us to juxtapose the trends in _T_ g( _h_ ) and
_w_ ( _h_ ) for PS films. The thickness dependence of the transition
width _w_ ( _h_ ) increases for thin films, indicating the glass transition
is broadened, deviating from bulk around the same critical
thickness of ≈50−60 nm as _T_ g( _h_ ) itself. However, for ultrathin
films with _h_ < 20 nm, the transition width _w_ ( _h_ ) was interestingly
found to decrease again suggesting a narrowing of the dynamical
gradient, as one previous report has suggested. <sup>60</sup> In contrast, we
find the thermal expansion coefficients to be comparatively flat
with respect to film thickness, in agreement with some of the
literature <sup>12,58</sup> and with bulk values matching existing literature
and handbook values. <sup>8,57</sup> When applied to P2VP thin films, the
Bayesian fitting approach identifies a larger broadening of the
glass transition with decreasing film thickness as compared to
PS, consistent with existing reports in the literature. <sup>29</sup> The values
of _T_ g( _h_ ) appear to decrease slightly with decreasing film
thickness, in good agreement with some recent measurements. <sup>29,64</sup>
The accuracy of eq 1 to describe _h_ ( _T_ ) data for thin PS films
was examined by numerically differentiating film thickness data
1 d _h_
and comparing to different models for ( _T_ ) = _h_ d _T_ . We find
that the standard tanh functional form that underpins eq 1 is the
best among models for _α_ ( _T_ ) that have an analytic integral form
that can be used to fit _h_ ( _T_ ). However, we also leveraged our
Bayesian fitting approach to investigate the use of a quadratic
term in the glassy-state film thickness temperature dependence
of eq 12. For sufficiently precise data such as that obtained for
films with thicknesses down to about 100 nm, we found that a
quadratic term substantially improves the quality of fits and does
not affect the ability of the Bayesian inference method to
converge to a solution. In contrast, the standard nonlinear fitting
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
(LM) approach is unable to handle the additional parameter for
many typical ellipsometry data sets, leading to worse _χ_ <sup>2</sup> values
even when other parameters are held constant or constrained.
These benefits of Bayesian inference fitting are demonstrated
by comparing to existing fitting methods to obtain _T_ g from
temperature-dependent film thickness _h_ ( _T_ ) data commonly
used in the polymer science literature. Perhaps unsurprisingly, a
standard LM nonlinear fitting approach to eq 1 is able to
reproduce the same fits as the Bayesian inference fitting method,
however effort is needed to identify correct initial guesses for the
parameter values to obtain the correct global minimum.
Notably, we find that fitting to eq 1 is vastly superior to the
frequently used approach of identifying _T_ g via the intersection of
two linear fits to the liquid and glassy regimes because fitting
windows need to be manually selected. In contrast, eq 1 allows
all the available data to be fit, including through the transition
itself, where the transition width can be explicitly modeled
without the requirement of identifying fitting windows that
exclude the data around the transition. We further evaluated this
common linear-fit-intersection method by implementing a
brute-force iterative approach to select fitting windows that
created an effective distribution of _T_ g values that demonstrate
the sensitivity of _T_ g to fitting window boundaries. Fortunately,
the _T_ g( _h_ ) values we identified by manually selecting “most
reasonable” fitting windows were found to correspond closely to
the most frequently observed _T_ g value, i.e. the peak in the _T_ g
distribution, obtained by the brute-force approach. However,
the distributions of _T_ g values obtained by this brute-force
approach demonstrate that there is a substantial amount of
uncertainty in _T_ g that exists because the end points of the linear
fitting windows can be varied, and this uncertainty is not possible
to quantify with only a single pair of fit lines. We would
recommend that if the linear-fit-intersection method is used,
several different fitting windows should be explored to ensure
that the obtained _T_ g is robust and to accurately estimate the
uncertainty. This would in effect provide a systematic sensitivity
analysis to this fitting approach. From Figure 8 we can conclude
that a robustly obtained _T_ g from the linear-fit-intersection
method agrees reasonably well with the nonlinear fit methods,
although with larger uncertainty.
Ideally, to accurately quantify _T_ g( _h_ ) trends from _h_ ( _T_ ) data for
thin polymer films, errors are rigorously propagated through
each fitting operation to obtain physically meaningful
uncertainties on the fit parameters themselves, and to enable
the quality of the fits to be evaluated through residual analysis.
The Bayesian inference approach makes this a more practical,
straightforward task requiring much less human supervision and
input than existing methods for fitting _T_ g. Overall, the Bayesian
approach to fitting trades a small increase in conceptual and
computational complexity, compared to standard nonlinear
approaches, for a litany of benefits: substantially improved
convergence, the ability to specify a distribution of parameter
values as an initial condition rather than a single point, a smarter
sampling algorithm (NUTS) to map the probability distributions of the parameters, and the ability to fit to more complex
models while providing assurance that the solution identified
corresponds to the global minimum in chi-squared. Due to its
insensitivity to the supplied initial conditions, it is also relatively
easy to automate the Bayesian fitting process to batch-fit many
data sets at once. The ability to automate data fitting in a reliable
and robust manner, especially on data sets that are noisy or
challenging to fit, is particularly important for machine learning
implementation of polymer materials characterization and
discovery. <sup>13−15</sup> In Supporting Information, we link to a Github
repository PyTg that provides the Bayesian inference fitting
code we developed in Python using PyMC, an open-source
library for statistical inference. <sup>42</sup> This code can be easily adapted
to implement the Bayesian fitting method to any number of
different functional forms to fit other experimental data.
# ■* sı Supporting Information ASSOCIATED CONTENT
The Supporting Information is available free of charge at
[https://pubs.acs.org/doi/10.1021/acs.macromol.4c01867.](https://pubs.acs.org/doi/10.1021/acs.macromol.4c01867?goto=supporting-info)
Github repository PyTg’s readmefile and Python code for
the Bayesian inference fitting using Hamiltonian Monte
Carlo. Link to Github repository PyTg: [https://github.](https://github.com/jmerri8/PyTg)
[com/jmerri8/PyTg (PDF)](https://github.com/jmerri8/PyTg)
# ■ Corresponding Author AUTHOR INFORMATION
Connie B. Roth − _Department of Physics, Emory University,_
_Atlanta, Georgia 30322, United States;_ [orcid.org/0000-](https://orcid.org/0000-0002-9543-0614)
[0002-9543-0614; Email: cbroth@emory.edu](https://orcid.org/0000-0002-9543-0614)
Authors
James H. Merrill − _Department of Physics, Emory University,_
_Atlanta, Georgia 30322, United States;_ [orcid.org/0000-](https://orcid.org/0000-0002-7951-9491)
[0002-7951-9491](https://orcid.org/0000-0002-7951-9491)
Yixuan Han − _Department of Physics, Emory University,_
_Atlanta, Georgia 30322, United States_
Complete contact information is available at:
[https://pubs.acs.org/10.1021/acs.macromol.4c01867](https://pubs.acs.org/doi/10.1021/acs.macromol.4c01867?ref=pdf)
Notes
The authors declare no competing financial interest.
# ■ ACKNOWLEDGMENTS
Funding from the National Science Foundation polymers
program (DMR-1905782) (C.B.R.) and Emory University is
gratefully acknowledged. We also thank Marcus Cicerone for
helpful initial suggestions.
# ■(1) Weber, M. F.; Stover, C. A.; Gilbert, L. R.; Nevitt, T. J.; Ouderkirk, REFERENCES
[A. J. Giant Birefringent Optics in Multilayer Polymer Mirrors.](https://doi.org/10.1126/science.287.5462.2451) _Science_
2000, _287_, 2451−2456.
(2) Léger, L.; Creton, C. Adhesion [mechanisms](https://doi.org/10.1098/rsta.2007.2166) at soft polymer
[interfaces.](https://doi.org/10.1098/rsta.2007.2166) _Philosophical_ _Transactions_ _of_ _the_ _Royal_ _Society_ _A:_
_Mathematical, Physical and Engineering Sciences_ 2008, _366_, 1425−1442.
(3) Mundra, M. K.; Donthu, S. K.; Dravid, V. P.; Torkelson, J. M.
[Effect of Spatial Confinement on the Glass-Transition Temperature of](https://doi.org/10.1021/nl062894c?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
[Patterned Polymer Nanostructures.](https://doi.org/10.1021/nl062894c?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _Nano Lett._ 2007, _7_, 713−718.
(4) Xie, K.; Fu, Q.; Qiao, G. G.; Webley, P. A. Recent [progress](https://doi.org/10.1016/j.memsci.2018.10.049) on
[fabrication methods of polymeric thin film gas separation membranes](https://doi.org/10.1016/j.memsci.2018.10.049)
[for CO2 capture.](https://doi.org/10.1016/j.memsci.2018.10.049) _J. Membr. Sci._ 2019, _572_, 38−60.
(5) McKenna, G. B. In _Comprehensive_ _Polymer_ _Science_ _and_ _Supple-_
_ments_, Vol. 2: Polymer Properties; Booth, C.; Price, C., Eds.; Pergamon
Press, 1989; pp 311−362.
[(6) Filliben, J. L.; McKinney, J. E. Confidence Limits for the Abscissa](https://doi.org/10.6028/jres.076B.013)
of Intersection of [Two](https://doi.org/10.6028/jres.076B.013) Linear Regressions. _Journal_ _of_ _Research_ _of_ _the_
_National Bureau of Standards B: Mathematical Sciences_ 1972, _76B_, 179−
192.
(7) Baker, E. A.; Rittigstein, P.; Torkelson, J. M.; Roth, C. B.
Streamlined ellipsometry [procedure](https://doi.org/10.1002/polb.21861) for characterizing physical aging
[rates of thin polymer films.](https://doi.org/10.1002/polb.21861) _J. Polym. Sci., Part B: Polym. Phys._ 2009, _47_,
2509−2519.
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
[(8) Pye, J. E.; Roth, C. B. Physical Aging of Polymer Films Quenched](https://doi.org/10.1021/ma401872u?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
and Measured Free-Standing via Ellipsometry: Controlling Stress
[Imparted by Thermal Expansion Mismatch between Film and Support.](https://doi.org/10.1021/ma401872u?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
_Macromolecules_ 2013, _46_, 9455−9463.
(9) White, R. P.; Buculei, D.; Beale, A. M. J. M.; Goovaerts, I.; Keddie,
J. L.; Lipson, J. E. G. Spectroscopic [ellipsometry](https://doi.org/10.1039/D2SM00959E) as a route to
[thermodynamic characterization.](https://doi.org/10.1039/D2SM00959E) _Soft Matter_ 2022, _18_, 6660−6673.
(10) Forrest, J. A.; Dalnoki-Veress, K. The glass [transition](https://doi.org/10.1016/S0001-8686%0x2801%0x2900060-4) in thin
[polymer films.](https://doi.org/10.1016/S0001-8686%0x2801%0x2900060-4) _Adv. Colloid Interface Sci._ 2001, _94_, 167−195.
[(11) Kawana, S.; Jones, R. A. L. Character of the glass transition in thin](https://doi.org/10.1103/PhysRevE.63.021501)
[supported polymer films.](https://doi.org/10.1103/PhysRevE.63.021501) _Phys. Rev. E_ 2001, _63_, No. 021501.
(12) Kim, S.; Hewlett, S. A.; Roth, C. B.; Torkelson, J. M.
[Confinement effects on glass transition temperature, transition breadth,](https://doi.org/10.1140/epje/i2009-10510-y)
and expansivity: Comparison [of](https://doi.org/10.1140/epje/i2009-10510-y) ellipsometry and fluorescence
[measurements on polystyrene films.](https://doi.org/10.1140/epje/i2009-10510-y) _Eur. Phys. J. E_ 2009, _30_, 83.
[(13) Beaucage, P. A.; Sutherland, D. R.; Martin, T. B. Automation and](https://doi.org/10.1021/acs.macromol.4c01410?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
Machine Learning for [Accelerated](https://doi.org/10.1021/acs.macromol.4c01410?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) Polymer Characterization and
Development: Past, [Potential,](https://doi.org/10.1021/acs.macromol.4c01410?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) and a Path Forward. _Macromolecules_
2024, _57_, 8661−8670.
[(14) Jha, A.; Chandrasekaran, A.; Kim, C.; Ramprasad, R. Impact of](https://doi.org/10.1088/1361-651X/aaf8ca)
dataset uncertainties on [machine](https://doi.org/10.1088/1361-651X/aaf8ca) learning model predictions: the
[example of polymer glass transition temperatures.](https://doi.org/10.1088/1361-651X/aaf8ca) _Modell. Simul. Mater._
_Sci. Eng._ 2019, _27_, No. 024002.
(15) Tao, L.; Varshney, V.; Li, Y. Benchmarking [Machine](https://doi.org/10.1021/acs.jcim.1c01031?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) Learning
Models for Polymer Informatics: An Example of Glass Transition
[Temperature.](https://doi.org/10.1021/acs.jcim.1c01031?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _J. Chem. Inf. Model._ 2021, _61_, 5395−5413.
(16) Keddie, J. L.; Jones, R. A. L.; Cory, R. A. [Size-Dependent](https://doi.org/10.1209/0295-5075/27/1/011)
Depression of the Glass [Transition](https://doi.org/10.1209/0295-5075/27/1/011) Temperature in Polymer Films.
_Europhysics Letters (EPL)_ 1994, _27_, 59−64.
(17) Keddie, J. L.; Jones, R. A. L.; Cory, R. A. Interface [and surface](https://doi.org/10.1039/fd9949800219)
effects on the glass-transition [temperature](https://doi.org/10.1039/fd9949800219) in thin polymer films.
_Faraday Discuss._ 1994, _98_, 219.
(18) Dalnoki-Veress, K.; Forrest, J. A.; Murray, C.; Gigault, C.;
[Dutcher, J. R. Molecular weight dependence of reductions in the glass](https://doi.org/10.1103/PhysRevE.63.031801)
[transition temperature of thin, freely standing polymer films.](https://doi.org/10.1103/PhysRevE.63.031801) _Phys. Rev._
_E_ 2001, _63_, No. 031801.
(19) Pye, J. E.; Roth, C. B. Two simultaneous [mechanisms](https://doi.org/10.1103/PhysRevLett.107.235701) causing
glass transition temperature [reductions](https://doi.org/10.1103/PhysRevLett.107.235701) in high molecular weight
[freestanding polymer films as measured by transmission ellipsometry.](https://doi.org/10.1103/PhysRevLett.107.235701)
_Phys. Rev. Lett._ 2011, _107_, No. 235701.
[(20) Huang, X.; Roth, C. B. Changes in the temperature-dependent](https://doi.org/10.1063/1.4953855)
specific volume of supported [polystyrene](https://doi.org/10.1063/1.4953855) films with film thickness. _J._
_Chem. Phys._ 2016, _144_, 234903.
[(21) Tsui, O. K. C.; Russell, T. P.; Hawker, C. J. Effect of Interfacial](https://doi.org/10.1021/ma000028v?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
Interactions on the Glass [Transition](https://doi.org/10.1021/ma000028v?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) of Polymer Thin Films.
_Macromolecules_ 2001, _34_, 5535−5539.
(22) Ellison, C. J.; Mundra, M. K.; Torkelson, J. M. [Impacts](https://doi.org/10.1021/ma047846y?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) of
Polystyrene Molecular Weight [and](https://doi.org/10.1021/ma047846y?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) Modification to the Repeat Unit
Structure on the Glass [Transition-Nanoconfinement](https://doi.org/10.1021/ma047846y?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) Effect and the
[Cooperativity Length Scale.](https://doi.org/10.1021/ma047846y?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _Macromolecules_ 2005, _38_, 1767−1778.
(23) Rauscher, P. M.; Pye, J. E.; Baglay, R. R.; Roth, C. B. [Effect of](https://doi.org/10.1021/ma401498m?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
Adjacent Rubbery Layers on the [Physical](https://doi.org/10.1021/ma401498m?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) Aging of Glassy Polymers.
_Macromolecules_ 2013, _46_, 9806−9817.
[(24) Merrill, J. H.; Li, R.; Roth, C. B. End-Tethered Chains Increase](https://doi.org/10.1021/acsmacrolett.2c00582?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
[the Local Glass Transition Temperature of Matrix Chains by 45 K Next](https://doi.org/10.1021/acsmacrolett.2c00582?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
to Solid Substrates [Independent](https://doi.org/10.1021/acsmacrolett.2c00582?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) of Chain Length. _ACS_ _Macro_ _Lett._
2023, _12_, 1−7.
[(25) Rittigstein, P.; Torkelson, J. M. Polymer−nanoparticle interfacial](https://doi.org/10.1002/polb.20925)
[interactions in polymer nanocomposites: Confinement effects on glass](https://doi.org/10.1002/polb.20925)
[transition temperature and suppression of physical aging.](https://doi.org/10.1002/polb.20925) _J. Polym. Sci.,_
_Part B: Polym. Phys._ 2006, _44_, 2935−2943.
(26) Baglay, R. R.; Roth, C. B. [Communication:](https://doi.org/10.1063/1.4931403) Experimentally
[determined profile of local glass transition temperature across a glassy-](https://doi.org/10.1063/1.4931403)
[rubbery polymer interface with a Tg difference of 80 K.](https://doi.org/10.1063/1.4931403) _J. Chem. Phys._
2015, _143_, 111101.
[(27) Lipson, J. E. G.; Milner, S. T. Local and Average Glass Transitions](https://doi.org/10.1021/ma101099n?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
[in Polymer Thin Films.](https://doi.org/10.1021/ma101099n?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _Macromolecules_ 2010, _43_, 9874−9880.
(28) Napolitano, S.; Glynos, E.; Tito, N. B. Glass [transition](https://doi.org/10.1088/1361-6633/aa5284) of
[polymers in bulk, confined geometries, and near interfaces.](https://doi.org/10.1088/1361-6633/aa5284) _Rep. Prog._
_Phys._ 2017, _80_, No. 036602.
(29) Glor, E. C.; Angrand, G. V.; Fakhraai, Z. [Exploring](https://doi.org/10.1063/1.4979944) the
[broadening and the existence of two glass transitions due to competing](https://doi.org/10.1063/1.4979944)
[interfacial effects in thin, supported polymer films.](https://doi.org/10.1063/1.4979944) _J. Chem. Phys._ 2017,
_146_, 203330.
[(30) Roth, C. B.; Dutcher, J. R. Glass transition temperature of freely-](https://doi.org/10.1140/epjed/e2003-01-024-2)
standing films of atactic [poly(methyl](https://doi.org/10.1140/epjed/e2003-01-024-2) methacrylate). _Eur._ _Phys._ _J._ _E_
2003, _12_, 103−107.
(31) Roth, C. B.; Pound, A.; Kamp, S. W.; Murray, C. A.; Dutcher, J. R.
Molecular-weight dependence of [the](https://doi.org/10.1140/epje/i2006-10034-0) glass transition temperature of
freely-standing [poly(methyl](https://doi.org/10.1140/epje/i2006-10034-0) methacrylate) films. _Eur._ _Phys._ _J._ _E_ 2006,
_20_, 441−448.
(32) Raegen, A. N.; Massa, M. V.; Forrest, J. A.; Dalnoki-Veress, K.
Effect of atmosphere on [reductions](https://doi.org/10.1140/epje/i2008-10394-3) in the glass transition of thin
[polystyrene films.](https://doi.org/10.1140/epje/i2008-10394-3) _Eur. Phys. J. E_ 2008, _27_, 375−377.
(33) Glor, E. C.; Fakhraai, Z. Facilitation of [interfacial](https://doi.org/10.1063/1.4901512) dynamics in
[entangled polymer films.](https://doi.org/10.1063/1.4901512) _J. Chem. Phys._ 2014, _141_, 194505.
(34) Zhou, Y.; Milner, S. T. Short-Time [Dynamics](https://doi.org/10.1021/acs.macromol.7b00921?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) Reveals Tg
Suppression in [Simulated](https://doi.org/10.1021/acs.macromol.7b00921?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) Polystyrene Thin Films. _Macromolecules_
2017, _50_, 5599−5610.
(35) Zuo, B.; Li, C.; Xu, Q.; Randazzo, K.; Jiang, N.; Wang, X.;
Priestley, R. D. Ultrastable Glassy [Polymer](https://doi.org/10.1021/acsnano.0c09631?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) Films with an Ultradense
[Brush Morphology.](https://doi.org/10.1021/acsnano.0c09631?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _ACS Nano_ 2021, _15_, 9568−9576.
(36) Madkour, S.; Gawek, M.; Hertwig, A.; Schonhals, A. [Do](https://doi.org/10.1021/acs.macromol.0c02149?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
Interfacial Layers in Thin Films [Act](https://doi.org/10.1021/acs.macromol.0c02149?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) as an Independent Layer within
[Thin Films?](https://doi.org/10.1021/acs.macromol.0c02149?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _Macromolecules_ 2021, _54_, 509−519.
(37) Press, W. H.; Teukolsky, S. A.; Vetterling, W. T.; Flannery, B. P.
_Numerical_ _Recipes_ _in_ _C:_ _The_ _Art_ _of_ _Scientific_ _Computing_, 2nd ed.;
Cambridge University Press: Cambridge, 1992.
(38) Gezerlis, A. _Numerical Methods in Physics with Python_ ; Cambridge
University Press: Cambridge, 2020.
(39) Mehta, P.; Bukov, M.; Wang, C.-H.; Day, A. G.; Richardson, C.;
Fisher, C. K.; Schwab, D. J. A [high-bias, low-variance introduction](https://doi.org/10.1016/j.physrep.2019.03.001) to
[Machine Learning for physicists.](https://doi.org/10.1016/j.physrep.2019.03.001) _Phys. Rep._ 2019, _810_, 1−124.
(40) van de Schoot, R.; Depaoli, S.; King, R.; Kramer, B.; Märtens, K.;
Tadesse, M. G.; Vannucci, M.; Gelman, A.; Veen, D.; Willemsen, J.;
Yau, C. Bayesian [statistics](https://doi.org/10.1038/s43586-020-00001-2) and modelling. _Nature_ _Reviews_ _Methods_
_Primers_ 2021, _1_, 1.
(41) Betancourt, M. A Conceptual [Introduction](https://doi.org/10.48550/arxiv.1701.02434) to Hamiltonian
[Monte Carlo.](https://doi.org/10.48550/arxiv.1701.02434) _arXiv_ 2017,1701.02434, DOI: .
(42) Abril-Pla, O.; Andreani, V.; Carroll, C.; Dong, L.; Fonnesbeck, C.
J.; Kochurov, M.; Kumar, R.; Lao, J.; Luhmann, C. C.; Martin, O. A.;
[Osthege, M.; Vieira, R.; Wiecki, T.; Zinkov, R. PyMC: a modern, and](https://doi.org/10.7717/peerj-cs.1516)
[comprehensive probabilistic programming framework in Python.](https://doi.org/10.7717/peerj-cs.1516) _PeerJ._
_Computer Science_ 2023, _9_, No. e1516.
(43) Greiner, R.; Schwarzl, F. R. Thermal [contraction](https://doi.org/10.1007/BF01329190) and volume
[relaxation of amorphous polymers.](https://doi.org/10.1007/BF01329190) _Rheol. Acta_ 1984, _23_, 378−395.
[(44) Roth, C. B.; Dutcher, J. R. Glass transition and chain mobility in](https://doi.org/10.1016/j.jelechem.2004.03.003)
[thin polymer films.](https://doi.org/10.1016/j.jelechem.2004.03.003) _J. Electroanal. Chem._ 2005, _584_, 13−22.
[(45) Han, Y.; Huang, X.; Rohrbach, A. C. W.; Roth, C. B. Comparing](https://doi.org/10.1063/5.0012423)
[refractive index and density changes with decreasing film thickness in](https://doi.org/10.1063/5.0012423)
[thin supported films across different polymers.](https://doi.org/10.1063/5.0012423) _J. Chem. Phys._ 2020, _153_,
No. 044902.
(46) Barradas, N. P.; Keddie, J. L.; Sackin, R. Bayesian inference
[analysis of ellipsometry data.](https://doi.org/10.1103/PhysRevE.59.6138) _Phys. Rev. E_ 1999, _59_, 6138−6151.
(47) Hughes, I. G.; Hase, T. P. A. _Measurements_ _and_ _Their_
_Uncertainties_ ; Oxford University Press: New York, 2010.
(48) Taylor, J. R. _An_ _Introduction_ _to_ _Error_ _Analysis:_ _The_ _Study_ _of_
_Uncertainties_ _in_ _Physical_ _Measurements_, 3rd ed.; University Science
Books: New York, 2022.
(49) Ran, R.; Pradeep, S.; Kosgodagan Acharige, S.; Blackwell, B. C.;
[Kammer, C.; Jerolmack, D. J.; Arratia, P. E. Understanding the rheology](https://doi.org/10.1122/8.0000556)
of kaolinite [clay suspensions](https://doi.org/10.1122/8.0000556) using Bayesian inference. _J._ _Rheol._ 2023,
_67_, 241−252.
(50) Banik, I.; Pittordis, C.; Sutherland, W.; Famaey, B.; Ibata, R.;
[Mieske, S.; Zhao, H. Strong constraints on the gravitational law from](https://doi.org/10.1093/mnras/stad3393)
<u>Macromolecules</u> <u><mark>pubs.acs.org/Macromolecules</mark></u> <u><mark>Article</mark></u>
Gaia DR3 [wide](https://doi.org/10.1093/mnras/stad3393) binaries. _Mon._ _Not._ _R._ _Astron._ _Soc._ 2023, _527_, 4573−
4615.
(51) Davidson-Pilon, C. _Bayesian_ _Methods_ _for_ _Hackers:_ _Probabilistic_
_Programming_ _and_ _Bayesian_ _Inference_, 1st ed.; Addison-Wesley
Professional, 2015.
(52) Frenkel, D.; Smit, B. _Understanding_ _Molecular_ _Simulation:_ _from_
_Algorithms to Applications_, 3rd ed.; Elsevier, 2023.
(53) Hoffman, M. D.; Gelman, A. The No-U-Turn sampler:
Adaptively setting path lengths in Hamiltonian Monte Carlo. _J. Mach._
_Learn. Res._ 2014, _15_, 1593−1623.
(54) Bittrich, E.; Windrich, F.; Martens, D.; Bittrich, L.; Häussler, L.;
Eichhorn, K.-J. Determination of the [glass](https://doi.org/10.1016/j.polymertesting.2017.09.030) transition temperature in
thin polymeric films used for [microelectronic](https://doi.org/10.1016/j.polymertesting.2017.09.030) packaging by temper[ature-dependent spectroscopic ellipsometry.](https://doi.org/10.1016/j.polymertesting.2017.09.030) _Polym. Test._ 2017, _64_, 48−
54.
[(55) Hajduk, B.; Bednarski, H.; Trzebicka, B. Temperature-Depend-](https://doi.org/10.1021/acs.jpcb.9b11863?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
[ent Spectroscopic Ellipsometry of Thin Polymer Films.](https://doi.org/10.1021/acs.jpcb.9b11863?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _J. Phys. Chem. B_
2020, _124_, 3229−3251.
(56) Yan, J.; Xu, J.; Weng, L.-T.; Wang, F.; Wang, X.; Yuan, H.; Wang,
T.; Tsui, O. K. C. Glass Transition of [the](https://doi.org/10.1021/acs.macromol.2c02013?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) Surface Monolayer of
Polystyrene Films with Different Film Thicknesses and Supporting
[Surfaces.](https://doi.org/10.1021/acs.macromol.2c02013?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _Macromolecules_ 2023, _56_, 556−566.
(57) Brandrup, J.; Immergut, E. H.; Grulke, E. A.; Abe, A.; Bloch, D. R.
_Polymer Handbook_ ; Wiley: New York, 1999; Vol. _89_ .
[(58) Herminghaus, S.; Jacobs, K.; Seemann, R. The glass transition of](https://doi.org/10.1007/s101890170036)
[thin polymer films: some questions, and a possible answer.](https://doi.org/10.1007/s101890170036) _Eur. Phys. J._
_E_ 2001, _5_, 531−538.
(59) Fujiwara, H. _Spectroscopic_ _Ellipsometry:_ _Principles_ _and_ _Applica-_
_tions_ ; John Wiley & Sons, Ltd.: West Sussex, England, 2007.
[(60) Ellison, C. J.; Torkelson, J. M. The distribution of glass-transition](https://doi.org/10.1038/nmat980)
temperatures in [nanoscopically](https://doi.org/10.1038/nmat980) confined glass formers. _Nat._ _Mater._
2003, _2_, 695−700.
[(61) van Zanten, J. H.; Wallace, W. E.; Wu, W.-L. Effect of strongly](https://doi.org/10.1103/PhysRevE.53.R2053)
[favorable substrate interactions on the thermal properties of ultrathin](https://doi.org/10.1103/PhysRevE.53.R2053)
[polymer films.](https://doi.org/10.1103/PhysRevE.53.R2053) _Phys. Rev. E_ 1996, _53_, R2053−R2056.
(62) Park, C. H.; Kim, J. H.; Ree, M.; Sohn, B.-H.; Jung, J. C.; Zin, W.C. Thickness and composition [dependence](https://doi.org/10.1016/j.polymer.2004.04.048) of the glass transition
[temperature in thin random copolymer films.](https://doi.org/10.1016/j.polymer.2004.04.048) _Polymer_ 2004, _45_, 4507−
4513.
(63) Roth, C. B.; McNerny, K. L.; Jager, W. F.; Torkelson, J. M.
Eliminating the enhanced [mobility](https://doi.org/10.1021/ma062864w?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) at the free surface of polystyrene:
[Fluorescence studies of the glass transition temperature in thin bilayer](https://doi.org/10.1021/ma062864w?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
[films of immiscible polymers.](https://doi.org/10.1021/ma062864w?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _Macromolecules_ 2007, _40_, 2568−2574.
[(64) Madkour, S.; Yin, H.; Füllbrandt, M.; Schönhals, A. Calorimetric](https://doi.org/10.1039/C5SM01558H)
[evidence for a mobile surface layer in ultrathin polymeric films: poly(2-](https://doi.org/10.1039/C5SM01558H)
[vinyl pyridine).](https://doi.org/10.1039/C5SM01558H) _Soft Matter_ 2015, _11_, 7942−7952.
(65) Zhang, J.; Ji, H.; Yang, J.; Huang, J. Two glass [transitions](https://doi.org/10.1016/j.polymer.2024.127410) in
substrate-supported polymer [ultrathin](https://doi.org/10.1016/j.polymer.2024.127410) films: A molecular dynamics
[simulation.](https://doi.org/10.1016/j.polymer.2024.127410) _Polymer_ 2024, _308_, No. 127410.
[(66) Han, Y.; Roth, C. B. Gradient in refractive index reveals denser](https://doi.org/10.1063/5.0062054)
[near free surface region in thin polymer films.](https://doi.org/10.1063/5.0062054) _J. Chem. Phys._ 2021, _155_,
144901.
(67) Paeng, K.; Richert, R.; Ediger, M. D. Molecular mobility in
supported thin films of [polystyrene,](https://doi.org/10.1039/C1SM06501G) poly(methyl methacrylate), and
[poly(2-vinyl pyridine) probed by dye reorientation.](https://doi.org/10.1039/C1SM06501G) _Soft Matter_ 2012, _8_,
819−826.
(68) Holt, A. P.; Griffin, P. J.; Bocharova, V.; Agapov, A. L.; Imel, A. E.;
Dadmun, M. D.; Sangoro, J. R.; Sokolov, A. P. [Dynamics](https://doi.org/10.1021/ma5000317?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) at the
[Polymer/Nanoparticle Interface in Poly(2-vinylpyridine)/Silica Nano-](https://doi.org/10.1021/ma5000317?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as)
[composites.](https://doi.org/10.1021/ma5000317?urlappend=%3Fref%3DPDF&jav=VoR&rel=cite-as) _Macromolecules_ 2014, _47_, 1837−1843.