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

Quantitative selection of sample structures in small-angle scattering using Bayesian methods

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (10) 아라미드(16) CPI(투명 폴리이미드)(21) 에폭시수지

기본 정보

저자
  1. Yui Hayashi — Graduate School of Frontier Sciences, University of Tokyo, Kashiwa, Chiba 277-8561, Japan
  2. Shun Katakami — Graduate School of Frontier Sciences, University of Tokyo, Kashiwa, Chiba 277-8561, Japan
  3. Shigeo Kuwamoto — Japan Synchrotron Radiation Research Institute, Sayo, Hyogo 679-5198, Japan
  4. Kenji Nagata — National Institute for Materials Science, Tsukuba, Ibaraki 305-0047, Japan
  5. Masaichiro Mizumaki — Facalty of Advanced Science and Technology, Kumamoto University, Kumamoto 860-8555, Japan
  6. Masato Okada — Graduate School of Frontier Sciences, University of Tokyo, Kashiwa, Chiba 277-8561, Japan
DOI
10.1107/s1600576724004138
저널
Journal of Applied Crystallography
발행년도
2024
발행기관
Wiley
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1107/s1600576724004138
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4399763733

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(10) 아라미드, (16) CPI(투명 폴리이미드), (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Small-angle scattering (SAS), Bayesian model selection, nanoscale structures, polymers, fibers
판단 근거
이 논문은 소각 산란(SAS) 데이터를 활용하여 나노 구조를 정량적으로 분석하는 베이지안 모델 선택법을 다룹니다. 이는 고분자, 섬유, 나노 복합소재의 미세 구조를 분석하는 공통적인 기법입니다.
R&D 활용 포인트
아라미드 나노섬유, CPI 필름, 고분자 컴파운드 등 코오롱의 고기능성 소재 개발 시 나노 스케일의 구조적 특성 및 분산성을 정밀하게 분석하고 모델링하는 데 활용 가능합니다.
평가 입력
섹션 본문 29,616자

초록

Small-angle scattering (SAS) is a key experimental technique for analyzing nanoscale structures in various materials. In SAS data analysis, selecting an appropriate mathematical model for the scattering intensity is critical, as it generates a hypothesis of the structure of the experimental sample. Traditional model selection methods either rely on qualitative approaches or are prone to overfitting. This paper introduces an analytical method that applies Bayesian model selection to SAS measurement data, enabling a quantitative evaluation of the validity of mathematical models. The performance of the method is assessed through numerical experiments using artificial data for multicomponent spherical materials, demonstrating that this proposed analysis approach yields highly accurate and interpretable results. The ability of the method to analyze a range of mixing ratios and particle size ratios for mixed components is also discussed, along with its precision in model evaluation by the degree of fitting. The proposed method effectively facilitates quantitative analysis of nanoscale sample structures in SAS, which has traditionally been challenging, and is expected to contribute significantly to advancements in a wide range of fields.

본문 31,373자

본문 펼치기
Small-angle scattering (SAS) is a key experimental technique for analyzing nanoscale structures in various materials.In SAS data analysis, selecting an appropriate mathematical model for the scattering intensity is critical, as it generates a hypothesis of the structure of the experimental sample.Traditional model selection methods either rely on qualitative approaches or are prone to overfitting.This paper introduces an analytical method that applies Bayesian model selection to SAS measurement data, enabling a quantitative evaluation of the validity of mathematical models.We assess the performance of our method through numerical experiments using artificial data for multicomponent spherical materials, demonstrating that our proposed method Introduction In recent years, the analysis of nano-scale structures of materials has become increasingly important in advancing the development of new materials and understanding biological phenomena.Small-angle scattering (SAS) is a fundamental experimental method for analyzing such nano-scale structures.It involves irradiating substances with X-rays or neutron beams and analyzing the resulting scattering intensity data at small angles, typically 5 degrees or less (Guinier & Fournet, 1955).SAS is versatile and applicable to a wide array of heterogeneous materials including nanoparticles, polymers, soft materials, and fibers, and utilized across many fields including material science, chemistry, and biology.SAS measurement data are expressed in terms of scattering intensity that corresponds to a scattering vector, a physical quantity representing the scattering angle. Introduction Data analysis requires selection and parameter estimation of a mathematical model of the scattering intensity, that contains information about the structure of the specimen.This selection process is critical as it involves assumptions about the structure of the specimen. Introduction Traditionally, model selection in SAS data analysis has been performed by listing candidate models based on theoretical or empirical rules, conducting parameter fitting against the measurements, and comparing suitability using criteria such as χ-squared IUCr macros version 2.1.10:2016/01/28 error, among other criteria (Da Vela & Svergun, 2020;Svergun et al., 1995;Kline, 2006;Schneidman-Duhovny et al., 2010;Breßler et al., 2015).Alternatively, models may be chosen based on the general shape of the measurement data.However, these methods each have drawbacks: the former risks overfitting, which can lead to an overestimation of the model's degrees of freedom (Rambo & Tainer, 2013), while the latter yields only qualitative model selections.Furthermore, quantitatively evaluating the reliability of the results is challenging with traditional methods. Introduction In this study, we propose a novel framework for the SAS model selection that quantitatively assesses the validity of mathematical models that represent specimen structures in measurements.This approach uses Bayesian model selection within the framework of Bayesian inference, a method increasingly applied to analysis of various types of physical experimental data (Nagata et al., 2012;Nagata et al., 2019;Rappel et al., 2020;Machida et al., 2021;Nagai et al., 2021;Kashiwamura et al., 2022;Katakami et al., 2022;Ueda et al., 2023).In the context of SAS data, Bayesian inference has been used for grain size distribution (Asahara et al., 2021) and parameter estimates (Hayashi et al., 2023).This method solves inverse problems by establishing the likelihood, which is the data generation model, and the prior distribution that corresponds to the prior knowledge about the target being estimated.The posterior distribution is then calculated according to the model and parameters with the acquired data using Bayes' theorem.In our proposed method, the posterior probability of the data generation model is calculated under the measured data using the Exchange Monte Carlo method (Hukushima & Nemoto, 1996), also known as Parallel Tempering, and then comparing the resulting value among the candidate models while concurrently obtaining Bayesian estimates of the model parameters.Moreover, since the validity of the measured data model is obtained as a posterior probability, the reliability of the results can be quantified by comparing these probabilistic values.In this study, we IUCr macros version 2.1.10:2016/01/28 conducted numerical experiments to assess the effectiveness of our proposed method. Introduction These experiments are based on synthetic data used to estimate the number of distinct components in a specimen, which was modeled as a mixture of two types of monodisperse spheres of varying radii, scattering length densities, and volume fractions.This type of problem is challenging due to the risk of overfitting, as the candidate models have similar structures; however, the results demonstrate high accuracy, interpretability, and stability of our method, even in the presence of measurement noise. Introduction The structure of this paper is as follows: we first formalize the proposed analytical method, then discribe the model of multicomponent monodisperse spheres used in our numerical experiments.In Sect.4, we detail the set-up and results of these experiments using the proposed method to estimate the number of mixed components in the synthetic data.We then discuss the analytical capabilities of our method and the performance of the traditional method based on the degree of fitting.We conclude with implications and potential applications of our method. Formulation of the Proposed Framework In this section, we present a detailed formulation of our algorithm for selecting mathematical models for SAS specimens using Bayesian model selection.The pseudocode for this algorithm is provided in Algorithm 1. Bayesian Model Selection The process of generating experimental measurement data is generally described by a probabilistic model that includes noise components.The SAS measurement data consist of scattering intensities that correspond to the scattering vector.As the scattering intensity is a measure of the number of incident photons on the detector, the scattering intensity values are assumed to follow a Poisson distribution (Durant et al., IUCr macros version 2.1.10:2016/01/28 2021, Katakami et al., 2022, Nagata et al., 2019, Straasø et al., 2013).Let I K (q, Θ) be the mathematical model of scattering intensity characterized by the parameter K for sample parameters Θ and the scattering vector q.The likelihood, which is the probability of generating the measured value y is then given by the equation: Bayesian Model Selection Assuming that the measurement data D = {q i , y i } N i=1 , which consist of N data points, are samples from an independent and identically distributed population under the K and Θ, the likelihood is expressed by the equation: Bayesian Model Selection Here, we introduce the Poisson cost function to transform the likelihood of the measured data in Eq. (2) as: Bayesian Model Selection The likelihood is thus expressed as: Bayesian Model Selection Let φ(K) be the prior distribution of the parameter K that characterizes the model, and let φ(Θ|K) be the prior distribution of the model parameters Θ.Then, from Bayes' theorem, the posterior distribution of the parameters given the measurement data can be written as: Bayesian Model Selection where Z(K) is the marginal likelihood, which corresponds to the normalization constant of the posterior parameters distribution.Furthermore, the probability of model K given the data D, denoted as p(K|D), is given by the equation: Bayesian Model Selection F (K) is referred to as the Bayesian free energy, also known as the stochastic complexity.The posterior probability of the model, p(K|D), can be rephrased as the validity of model K for the measurement data D. In other words, calculating and comparing the value of p(K|D) for all candidate models {K} thus enables quantitative model selection.Note that in Bayesian model selection, the parameter K does not need to explicitly appear within the mathematical model of the specimen. Calculation of Marginal Likelihood In our Bayesian model selection method, the Bayesian free energy F (K) and the probability p(K|D) are calculated and compared for all candidate models.This computation relies on determining the marginal likelihood Z(K), as expressed in Eq. ( 7). Calculation of Marginal Likelihood The marginal likelihood generally involves multi-dimensional integration, which can be computationally intensive and unstable.To address this challenge, our framework uses the REMC to calculate the marginal likelihood (Hukushima & Nemoto, 1996). Calculation of Marginal Likelihood This method facilitates sampling from the desired probability distribution at multiple Calculation of Marginal Likelihood IUCr macros version 2.1.10:2016/01/28 inverse temperatures, referred to as replicas, using the Markov Chain Monte Carlo method (MCMC) to strategically exchange states between adjacent inverse temperatures at arbitrary intervals, thus avoiding local minima.To calculate the marginal likelihood using REMC, we establish a series of L inverse temperatures {β l } L i=1 that they satisfy the relation: Calculation of Marginal Likelihood Sampling from the joint probability distribution at each inverse temperature gives: Calculation of Marginal Likelihood where Θ l denotes the model parameter at the l-th inverse temperature β l .The posterior distribution p(Θ l |D, K, β l ) satisfies the following relation: Calculation of Marginal Likelihood These distributions are sampled using MCMC at each inverse temperature, as expressed in Eq. ( 14), and states at adjacent inverse temperatures are periodically exchanged with a probability that satisfies the detailed balance condition.The probability of exchanging the l-th and (l + 1)-th states, p(Θ l ↔ Θ l+1 ), is: Calculation of Marginal Likelihood The marginal likelihood expressed in Eq. ( 7) can be efficiently determined using samples from various inverse temperatures sampled by REMC.The marginal likelihood Z(K, β) at inverse temperature β is expressed as: Calculation of Marginal Likelihood In this case, the target marginal likelihood expressed in Eq. ( 7) is equivalent to Z(K, β = 1).Using the relation in Eq. ( 12), Z(K, β = 1) can be expressed as follows: Calculation of Marginal Likelihood In Eq. ( 20), the symbol ⟨•⟩ p(Θ l |D,K,β l ) denotes the expectation value with respect to p(Θ l |D, K, β l ).Computing Eq. ( 20) using sampling with REMC provides the marginal likelihood expressed in Eq. ( 7).Once the marginal likelihood Z(K) is determined, we can find the Bayesian free energy expressed in Eq. ( 11) and the posterior probability of model K given the measurement data expressed in Eq. (10).For the numerical experiments presented here, we used the Metropolis method (Metropolis et al., 1953) for MCMC sampling of the posterior distributions at each inverse temperature, as expressed in Eq. ( 14). Estimation of Model Parameters During the marginal likelihood calculation the posterior distribution of p(Θ L |D, K, β L = 1) is obtained, which simply represents the Bayesian estimate of the model parameters (Hayashi et al., 2023).Therefore, the parameter estimation is conducted simultaneously as the Bayesian model selection performed.Moreover, since the posterior distribution is sampled using REMC sampling, it can provide a global parameter esti-IUCr macros version 2.1.10:2016/01/28 mate solution.Additionally, the reliability of the estimation can be assessed from the statistical properties of the sampled posterior distribution. Estimation of Model Parameters In Bayesian estimation, the Maximum A Posteriori (MAP) solution provides a point estimate of the parameters.The MAP solution Θ MAP for the parameters of model K is expressed by this equation from Eq. ( 14): Formulation of a Multicomponent Monodisperse Spheres Model In this section, we describe a model for the scattering intensity of a dilute sample comprised of multicomponent monodisperse spheres (Guinier & Fournet, 1955;Hashimoto, 2022).This model serves as the basis for evaluating the performance of the proposed method. Formulation of a Multicomponent Monodisperse Spheres Model Let e i and e s represent the unit vectors in the direction of the wave number vector of the incident and scattered beams, respectively.If e i and e s form an angle 2α, and the wavelength of the beam is λ, then the scattering vector q is given by: Formulation of a Multicomponent Monodisperse Spheres Model Assuming isotropic scattering, we consider the magnitude q of the scattering vector. Formulation of a Multicomponent Monodisperse Spheres Model The monodisperse spheres are spherical particles of uniform radius.The scattering intensity I(q, θ) of a specimen composed of sufficiently dilute monodisperse spheres of a single type for the scattering vector q is given by: Formulation of a Multicomponent Monodisperse Spheres Model Initialize array of sampled parameters, Ψ = {}. Formulation of a Multicomponent Monodisperse Spheres Model 3: Formulation of a Multicomponent Monodisperse Spheres Model end for 6: Formulation of a Multicomponent Monodisperse Spheres Model Propose the following state, Θ ′ = Θ τ −1 l + ϵ × Uniform(−1, 1). 9: Calculate the acceptance ratio, 9: 10: 9: if Uniform(0, 1) < α then 11: 9: else 13: 9: end if 15: 9: end for 16: 9: Calculate the probability of exchanging states, p(Θ τ l ↔ Θ τ l+1 ). 18: if Uniform(0, 1) < p(Θ τ l ↔ Θ τ l+1 ) then 19: 18: Swap the Θ τ l for the Θ τ l+1 . 20: end if 21: end for 22: if τ > T 0 then 23: 22: Append the {Θ τ l } L l=1 to the Ψ. 24: end if 25: end for 26: Calculate the marginal likelihood Z(K m ) and the Bayesian free energy F (K m ).27: end for 28: Calculate the likelihood of the model against the measured data {p(K m |D)} M m=1 . 26: where V = 4 3 πR 3 .If the difference in scattering length density difference between the solute and solvent of the specimen is ∆ρ and the volume fraction is ϕ, then S = (3∆ρ) 2 ϕ.The parameters θ of this model are the particle size R, the scale S, and the background B. 26: To formulate the scattering intensity of a specimen composed of K types of monodisperse spheres, we assume a dilute system and denote the particle size of the k-th component in the sample as R k and the scale as S k .The scattering intensity of a sample composed of K types of monodisperse spheres is then given by: 26: where we assume that V k = 4 3 πR 3 k .The model parameters Θ for the scattering intensity Numerical Experiments Here, we present numerical experiments to evaluate the model selection among models with K ranging from 1 to 4 components to demonstrate the capabilities of the proposed framework.We apply the framework to synthetic data generated to represent a system with two types (K = 2) of monodisperse spheres, as described by Eq. ( 24).This experimental design poses a challenge for discerning the true structure of the specimen; Numerical Experiments despite the simple structure, the similarity of the candidate models increases the risk of overfitting. Numerical Experiments In typical SAS experiments, the scale parameter S k in Eq. ( 24) tends to be small. Numerical Experiments Therefore, we normalize the scale parameter S k as: Numerical Experiments We accordingly refer to the model parameters as Θ = {R k , Sk } K k=1 , B . Numerical Experiments The numerical experiments reported in this section were conducted with a burn-in period of 10 5 and a sample size of 10 5 for the REMC.We set the number of replicas for REMC, the values of inverse temperature, and the step size of the Metropolis method, taking into consideration the state exchange rate and the acceptance rate. Generation of Synthetic Data This scattering intensity in SAS experiments, which is typically recorded as count data, is subject to be Poisson noise, as described by Eq. ( 1).We therefore generated synthetic data D using the procedure: Generation of Synthetic Data 1. Set the number of data points to N = 400, and define the scattering vectors at the N equally spaced points within the interval [0.1, 3] to obtain Generation of Synthetic Data 2. Assume K = 2 and set the true model parameters Θ to Θ * . Generation of Synthetic Data 3. Calculate the scattering intensity at the scattering vectors {q i } N i=1 obtained in step 1, using the model in Eq. ( 24) and Θ * .Introduce a pseudo-measurement time T to adjust the noise intensity in the data, to obtain {I(q i , Θ * , K) × T } N i=1 . Generate measurement values {y In this section, we consider cases with pseudo-measurement times of T = 1 and T = 0.1.Generally, smaller values T indicate the greater effects from measurement noise. Setting the Prior Distributions In the Bayesian model selection framework, prior knowledge concerning the parameters Θ and the model-characterizing parameter K is set as their prior distributions. Setting the Prior Distributions IUCr macros version 2.1.10:2016/01/28 Setting the Prior Distributions In this numerical experiment, the prior distributions for the parameters Θ were set as Gamma distributions based on the pseudo-measurement time T used during data generation, while the prior for K was a discrete uniform distribution over the interval [1,4]. Setting the Prior Distributions , ( 29) Setting the Prior Distributions φ(K) = DiscreteUniform(K; 1, 4). Setting the Prior Distributions (31) Results for Two-Component Monodisperse Spheres Based on Scale Ratio The ratio of scale parameters S 1 , S 2 for spheres 1 and 2 during data generation, denoted as r S , is defined as follows: Results for Two-Component Monodisperse Spheres Based on Scale Ratio Next, we present the analysis results from applying our proposed method to analyzing 6 types of data generated by varying the value of r S for pseudo measurement times of T = 1 and 0.1.Table 1 displays the parameter values used for generating the synthetic data.Figure 1 shows the fitting results for each model using the MAP solution for the synthetic data generated using the parameter values given in Table 1.In Fig. 1 (a) -(c), (g) -(i), it is apparent that the model with K = 1 fails to accurately represent the data.However, we can also see that the fitting curves for models with K = 2 − 4 are almost identical in shape.Furthermore, the data shown in Fig. 1 (d) -(f), (j) -(l) are difficult to distinguish from the well-known scattering data of a single type of monodisperse sphere (K = 1), making it challenging to qualitatively compare the goodness of fit among the models with K = 1 − 4. Table 2 summarizes the number of times each model was found to have the highest probability in numerical experiments using the 10 separate datasets shown in Fig. 2. Results for Two-Component Monodisperse Spheres Based on Scale Ratio For values of r S = 0.0004 and above ( {9.9, 9.7, 9.5, 0.5, 0.5, 0.4, 0.3} 10 Scale S 250 100 Background B (cm −1 ) 0.01 Pseudo measurement time T {1, 0.1} Results for Two-Component Monodisperse Spheres Based on Scale Ratio Aside from the cases of r R = 0.5 in (d) and (k), the profiles of the data in Fig. 3 are very similar to those of a single monodisperse sphere, and the fitting curves for models K = 1 to K = 4 are nearly identical in shape.In contrast, the data for cases (d) and (k) with r R = 0.5 have a complex profile, and it can be seen that the model with K = 1 can be seen to represent the data poorly.Table 4 presents the results of numerical experiments for the 10 separate datasets shown in Fig. 4, summarizing the number of times each model K = 1 -4 was most highly supported.Near the analytical limits of the proposed method, there are cases with noise intensity and anticipated parameter values similar to those of the measured data.This step can help ensure a more reliable analysis, as detailed below. Results for Two-Component Monodisperse Spheres Based on Scale Ratio The scale parameter S is a value that is multiplied by the square of the difference in scattering length density between the solvent and the specimen, as well as the volume fraction.This can cause r S to become extremely small when there is little difference in scattering length density between the solvent and a component of the specimen, or when there is a significant difference in the mixing ratio of the components.The results in Fig. 2 and Table 2 for a pseudo-measurement time of T = 1 (Panel A) indicates that the model selection favored non-true models at a scale ratio of r S = 0.0002.Similarly, for T = 0.1 (Panel B), non-true models were favored at scale ratios of r S = 0.0004 and r S = 0.0002, indicating that these cases exceed the analytical capabilities of the proposed method.These findings imply that within experimental parameters of this study, the proposed method reliably identifies the true model with a high probability for scale ratios up to r S = 0.0004 at T = 1 and up to r S = 0.002 at T = 0.1. Results for Two-Component Monodisperse Spheres Based on Scale Ratio In Sect.4.2, we investigated the effect of varying the radius ratio r R .When components of different radii are mixed, it is important to consider not only simple mixtures but also instances of aggregated specimens.The findings shown in Fig. 4 and Table 4 indicate that the proposed method reaches its analytical limits as r R approaches 1 and as it approaches 0. As r R nears 1, the scattering profiles of the two-component system become similar to that of a single-component system, leading to the selection of the single-component model (K = 1).We identified an analytical limit at r R = 0.99 for both T = 1 and T = 0.1.The results for r R = 0.97 show that at T = 0.1, which has a higher noise intensity compared to T = 1, the posterior probability of the singlecomponent model (K = 1) increases, resulting in an unstable analysis.Conversely, as r R approaches 0, the results r R = 0.03 at T = 1 and r R = 0.04 and r R = 0.03 at T = 0.1, the single-component model (K = 1) is associated with high probability, Results for Two-Component Monodisperse Spheres Based on Scale Ratio IUCr macros version 2.1.10:2016/01/28 Results for Two-Component Monodisperse Spheres Based on Scale Ratio indicating an analytical limit.Overall, the proposed method demonstrates the ability to select the true model with high probability for radius ratios ranging from r R = 0.04 to 0.99 at T = 1, and from r R = 0.05 to 0.99 at T = 0.1. Model Selection Based on Cost Function Values Selecting an appropriate mathematical model is a critical step in SAS data analysis, yet it remains a challenge.Traditionally, model fitting involved comparing a set of candidate models using metrics such as the χ-squared error to assist in model selection. Model Selection Based on Cost Function Values However, the χ-squared error assumes a Gaussian distribution of the measurement noise.In this study, we assume Poisson-distributed measurement noise, and therefore discuss the results of model selection by calculating and comparing the values of the Poisson cost function, as formulated in Eq. ( 3), across models K = 1 − 4 using the measurement data and fitting curves derived from the MAP solutions. Model Selection Based on Cost Function Values Table 5 reports the frequency of each model minimizing the Poisson cost value for models with K = 1 to K = 4.These results are based on the same datasets described in Sect.4.4, which were generated by varying the random seed for each of the 6 distinct r S values determined by the parameters listed in Table 1, with 10 datasets produced for each r S value at T = 1. 5 indicate that for (a) and (e), there are two models most supported, suggesting that it is difficult to obtain reliable results.In cases (b) and (c), the K = 3 model is most supported, likely as a result of overfitting, and failing to select the correct model, K = 2. Furthermore, when the true model K = 2 was selected in cases In contrast the proposed method results in Table 2-A demonstrate that the correct model K = 2 is supported in all 10 out of 10 cases from (a) to (e).Within the analyzable range described in the previous subsection, the model selection results are highly stably against data noise. Conclusions In this paper, we introduced Bayesian model selection framework for SAS data analysis that quantitatively evaluates model validity through posterior probabilities.We conducted numerical experiments using synthetic data for a two-component system of monodisperse spheres to assess the performance of the proposed method.We identified the analytical limits of the proposed method, under the settings of this study, with respect to the scale and radius ratios of two-component spherical particles.Additionally, we compared its performance to traditional fit-based model selection methods based on the Poisson cost function.The numerical experiments and subsequent discussion revealed the range of parameters that can be analyzed using the proposed method.Within that range, our method provides stable and highly accurate model selection even for data with significant noise or situations in which qualitative model IUCr macros version 2.1.10:2016/01/28 determination is challenging.Furthermore, in comparison to the traditional method of selecting models based on fitting curves and data residuals, it was found that the proposed method offers greater accuracy and stability. Conclusions SAS is used to study specimens with a variety of structures other than spheres, including cylinders, core-shells, lamellae, and more.The proposed method should be applied other sample models to determining the feasibility of expanding the analysis beyond the case examined here to broader experimental settings.Future work can benefit from using the proposed method to conduct real data analysis, which is expected to yield new insights through our more efficient analysis approach. Funding information IUCr macros version 2.1.10:2016/01/28 Algorithm 1 : Proposed framework for quantitative selection of specimen model.Require: The measured data, D = {q i , y i } N i=1 .The number of replicas, L. The inverse temperature, {β l } L l=1 where 0 = β 1 < • • • < β L = 1.The Burn-In, T 0 .The number of samples, T 1 .The step size for the Metropolis algorithm, {ϵ l } L l=1 .Candidate Models, {K m } M m=1 .The prior distribution of Models, φ(K).The prior distribution of parameters, φ(Θ|K). Fig. 1 . Fig. 1.Fitting to synthetic data generated at various r s values with MAP solutions.Panels A and B show the cases for a pseudo-measurement time of T = 1 and T = 0.1, respectively.In cases (a)-(f) and (g)-(l), the scale ratio r S is displayed in descending order for T = 1 and T = 0.1, respectively.Black circles represent the generated data, the black dashed line represents the true scattering intensity curve, the solid blue, red, green, and orange lines represent the fitting curves using the MAP solution for K = 1, K = 2, K = 3, and K = 4, respectively. Figure 2 Figure 2 presents the Bayesian model selection results using our proposed framework.Figure 2-A contains results for the case with T = 1, and Figure 2-B contains result with T = 0.1, each showing the probability p(K|D) of model K based on the synthetic data D for each scale ratio r S .Here, 10 datasets were created for each parameter value by varying the random seed during data generation, and the average value of p(K|D) is indicated by the height of the bar graph, with error bars indicating the maximum and minimum values.For the relatively large scale ratios r S in (a) -(e) in Fig.2-A, the true model with K = 2 has a high probability, while the average value of p(K|D) is highest for K = 1 in (f).Conversely, in Fig.2-B, the true model with K = 2 is associated with high probability in cases (g) -(j), while in cases (k) and (l), K = 1 is associated with the highest probability. Fig. 3 . Fig. 3. Fitting to synthetic data generated at various r R values with MAP solutions.Panels A and B show the cases for a pseudo-measurement time of T = 1 and T = 0.1, respectively.In cases (a)-(g) and (h)-(n), the radius ratio r R is displayed in descending order for T = 1 and T = 0.1, respectively.The black dots represent the generated data, and the black dashed line represents the true scattering intensity curve, and the solid blue, red, green, and orange lines represent the fitting curves using the MAP solution for K = 1, K = 2, K = 3, and K = 4, respectively. Figure 4 Figure 4 displays the results of Bayesian model selection using synthetic data generated by varying the radius ratio r R .10 datasets were created for each parameter value by varying the random seed during data generation, and the average value of p(K|D) is indicated by the height of the bar graph, with the maximum and minimum values shown as error bars.Unlike the results for the variations in scale ratio shown in Fig.2, the model selection procedure fails not only at a radius ratio r R is close to 0, but also at values is close to 1, with K = 1 being the most highly supported.Additionally, in the case of r R = 0.04, the result for T = 1 in case (f) supports the true model K = 2, but for T = 0.1 in case (m), the alternative model K = 1 is most supported.However, in cases (b) -(f) and (i) -(l), the true model K = 2 is associated with a high average probability (Fig.4). Fig. 4 . Fig. 4. Results of Bayesian model selection among models K = 1 -4 for varying r R values.Panel A shows the posterior probability of each model using data generated with a pseudo-measurement time of T = 1, and Panel B shows results for T = 0.1.In cases (a)-(g) and (h)-(n), the radius ratio r R is displayed in descending order for T = 1 and T = 0.1, respectively.The height of each bar corresponds to the average values calculated for 10 datasets generated with different the random seeds, with the maximum and minimum values shown as error bars.Areas highlighted in red indicates cases where the true model K = 2 was most highly supported, while the blue backgrounds indicate that the likelihood of a model other than K = 2 was the highest. Fig. 4 . IUCr macros version 2.1.10:2016/01/28The model selection results based on the Poisson cost function shown in Table Fig. 4 . (d) and (f), the K = 3 model is supported similarly often.The above findings demonstrate that evaluating how well a model fits the measurement data based on residual values such as the Poisson cost and candidate model comparison dose not consistently result in selection of the true model. Fig. 4 . This work was supported by JST CREST (Grant Nos.PMJCR1761 and JPMJCR1861) from the Japan Science and Technology Agency (JST) and JSPS KAKENHI Grantin-Aid for Scientific Research(A) (No. 23H00486). Table 1 . Parameter values used for data generation with varying r S . Table 2 -A), for r S = 0.002 and above (Table 2-B), IUCr macros version 2.1.10:2016/01/28 Table 3 . Parameter values used for data generation when varying r R . Table 5 . Results of model selection based on the Poisson cost function.The cases (a)-(f ) correspond to the settings in Figs. 1 -3 of Sect.4.4.The table indicates the number of times each model was found to have the lowest Poisson cost value for 10 datasets generated with different random seeds for each r S value at T = 1.The most highly supported model, if unique, is shown in bold.

섹션 본문 97문단 · 28,725자

(제목 없음)

1Small-angle scattering (SAS) is a key experimental technique for analyzing nanoscale structures in various materials.In SAS data analysis, selecting an appropriate mathematical model for the scattering intensity is critical, as it generates a hypothesis of the structure of the experimental sample.Traditional model selection methods either rely on qualitative approaches or are prone to overfitting.This paper introduces an analytical method that applies Bayesian model selection to SAS measurement data, enabling a quantitative evaluation of the validity of mathematical models.We assess the performance of our method through numerical experiments using artificial data for multicomponent spherical materials, demonstrating that our proposed method

Introduction

2In recent years, the analysis of nano-scale structures of materials has become increasingly important in advancing the development of new materials and understanding biological phenomena.Small-angle scattering (SAS) is a fundamental experimental method for analyzing such nano-scale structures.It involves irradiating substances with X-rays or neutron beams and analyzing the resulting scattering intensity data at small angles, typically 5 degrees or less (Guinier & Fournet, 1955).SAS is versatile and applicable to a wide array of heterogeneous materials including nanoparticles, polymers, soft materials, and fibers, and utilized across many fields including material science, chemistry, and biology.SAS measurement data are expressed in terms of scattering intensity that corresponds to a scattering vector, a physical quantity representing the scattering angle.

3Data analysis requires selection and parameter estimation of a mathematical model of the scattering intensity, that contains information about the structure of the specimen.This selection process is critical as it involves assumptions about the structure of the specimen.

4Traditionally, model selection in SAS data analysis has been performed by listing candidate models based on theoretical or empirical rules, conducting parameter fitting against the measurements, and comparing suitability using criteria such as χ-squared IUCr macros version 2.1.10:2016/01/28 error, among other criteria (Da Vela & Svergun, 2020;Svergun et al., 1995;Kline, 2006;Schneidman-Duhovny et al., 2010;Breßler et al., 2015).Alternatively, models may be chosen based on the general shape of the measurement data.However, these methods each have drawbacks: the former risks overfitting, which can lead to an overestimation of the model's degrees of freedom (Rambo & Tainer, 2013), while the latter yields only qualitative model selections.Furthermore, quantitatively evaluating the reliability of the results is challenging with traditional methods.

5In this study, we propose a novel framework for the SAS model selection that quantitatively assesses the validity of mathematical models that represent specimen structures in measurements.This approach uses Bayesian model selection within the framework of Bayesian inference, a method increasingly applied to analysis of various types of physical experimental data (Nagata et al., 2012;Nagata et al., 2019;Rappel et al., 2020;Machida et al., 2021;Nagai et al., 2021;Kashiwamura et al., 2022;Katakami et al., 2022;Ueda et al., 2023).In the context of SAS data, Bayesian inference has been used for grain size distribution (Asahara et al., 2021) and parameter estimates (Hayashi et al., 2023).This method solves inverse problems by establishing the likelihood, which is the data generation model, and the prior distribution that corresponds to the prior knowledge about the target being estimated.The posterior distribution is then calculated according to the model and parameters with the acquired data using Bayes' theorem.In our proposed method, the posterior probability of the data generation model is calculated under the measured data using the Exchange Monte Carlo method (Hukushima & Nemoto, 1996), also known as Parallel Tempering, and then comparing the resulting value among the candidate models while concurrently obtaining Bayesian estimates of the model parameters.Moreover, since the validity of the measured data model is obtained as a posterior probability, the reliability of the results can be quantified by comparing these probabilistic values.In this study, we IUCr macros version 2.1.10:2016/01/28 conducted numerical experiments to assess the effectiveness of our proposed method.

6These experiments are based on synthetic data used to estimate the number of distinct components in a specimen, which was modeled as a mixture of two types of monodisperse spheres of varying radii, scattering length densities, and volume fractions.This type of problem is challenging due to the risk of overfitting, as the candidate models have similar structures; however, the results demonstrate high accuracy, interpretability, and stability of our method, even in the presence of measurement noise.

7The structure of this paper is as follows: we first formalize the proposed analytical method, then discribe the model of multicomponent monodisperse spheres used in our numerical experiments.In Sect.4, we detail the set-up and results of these experiments using the proposed method to estimate the number of mixed components in the synthetic data.We then discuss the analytical capabilities of our method and the performance of the traditional method based on the degree of fitting.We conclude with implications and potential applications of our method.

Formulation of the Proposed Framework

8In this section, we present a detailed formulation of our algorithm for selecting mathematical models for SAS specimens using Bayesian model selection.The pseudocode for this algorithm is provided in Algorithm 1.

Bayesian Model Selection

9The process of generating experimental measurement data is generally described by a probabilistic model that includes noise components.The SAS measurement data consist of scattering intensities that correspond to the scattering vector.As the scattering intensity is a measure of the number of incident photons on the detector, the scattering intensity values are assumed to follow a Poisson distribution (Durant et al., IUCr macros version 2.1.10:2016/01/28 2021, Katakami et al., 2022, Nagata et al., 2019, Straasø et al., 2013).Let I K (q, Θ) be the mathematical model of scattering intensity characterized by the parameter K for sample parameters Θ and the scattering vector q.The likelihood, which is the probability of generating the measured value y is then given by the equation:

10Assuming that the measurement data D = {q i , y i } N i=1 , which consist of N data points, are samples from an independent and identically distributed population under the K and Θ, the likelihood is expressed by the equation:

11Here, we introduce the Poisson cost function to transform the likelihood of the measured data in Eq. (2) as:

12The likelihood is thus expressed as:

13Let φ(K) be the prior distribution of the parameter K that characterizes the model, and let φ(Θ|K) be the prior distribution of the model parameters Θ.Then, from Bayes' theorem, the posterior distribution of the parameters given the measurement data can be written as:

14where Z(K) is the marginal likelihood, which corresponds to the normalization constant of the posterior parameters distribution.Furthermore, the probability of model K given the data D, denoted as p(K|D), is given by the equation:

15F (K) is referred to as the Bayesian free energy, also known as the stochastic complexity.The posterior probability of the model, p(K|D), can be rephrased as the validity of model K for the measurement data D. In other words, calculating and comparing the value of p(K|D) for all candidate models {K} thus enables quantitative model selection.Note that in Bayesian model selection, the parameter K does not need to explicitly appear within the mathematical model of the specimen.

Calculation of Marginal Likelihood

16In our Bayesian model selection method, the Bayesian free energy F (K) and the probability p(K|D) are calculated and compared for all candidate models.This computation relies on determining the marginal likelihood Z(K), as expressed in Eq. ( 7).

17The marginal likelihood generally involves multi-dimensional integration, which can be computationally intensive and unstable.To address this challenge, our framework uses the REMC to calculate the marginal likelihood (Hukushima & Nemoto, 1996).

18This method facilitates sampling from the desired probability distribution at multiple

19IUCr macros version 2.1.10:2016/01/28 inverse temperatures, referred to as replicas, using the Markov Chain Monte Carlo method (MCMC) to strategically exchange states between adjacent inverse temperatures at arbitrary intervals, thus avoiding local minima.To calculate the marginal likelihood using REMC, we establish a series of L inverse temperatures {β l } L i=1 that they satisfy the relation:

20Sampling from the joint probability distribution at each inverse temperature gives:

21where Θ l denotes the model parameter at the l-th inverse temperature β l .The posterior distribution p(Θ l |D, K, β l ) satisfies the following relation:

22These distributions are sampled using MCMC at each inverse temperature, as expressed in Eq. ( 14), and states at adjacent inverse temperatures are periodically exchanged with a probability that satisfies the detailed balance condition.The probability of exchanging the l-th and (l + 1)-th states, p(Θ l ↔ Θ l+1 ), is:

23The marginal likelihood expressed in Eq. ( 7) can be efficiently determined using samples from various inverse temperatures sampled by REMC.The marginal likelihood Z(K, β) at inverse temperature β is expressed as:

24In this case, the target marginal likelihood expressed in Eq. ( 7) is equivalent to Z(K, β = 1).Using the relation in Eq. ( 12), Z(K, β = 1) can be expressed as follows:

25In Eq. ( 20), the symbol ⟨•⟩ p(Θ l |D,K,β l ) denotes the expectation value with respect to p(Θ l |D, K, β l ).Computing Eq. ( 20) using sampling with REMC provides the marginal likelihood expressed in Eq. ( 7).Once the marginal likelihood Z(K) is determined, we can find the Bayesian free energy expressed in Eq. ( 11) and the posterior probability of model K given the measurement data expressed in Eq. (10).For the numerical experiments presented here, we used the Metropolis method (Metropolis et al., 1953) for MCMC sampling of the posterior distributions at each inverse temperature, as expressed in Eq. ( 14).

Estimation of Model Parameters

26During the marginal likelihood calculation the posterior distribution of p(Θ L |D, K, β L = 1) is obtained, which simply represents the Bayesian estimate of the model parameters (Hayashi et al., 2023).Therefore, the parameter estimation is conducted simultaneously as the Bayesian model selection performed.Moreover, since the posterior distribution is sampled using REMC sampling, it can provide a global parameter esti-IUCr macros version 2.1.10:2016/01/28 mate solution.Additionally, the reliability of the estimation can be assessed from the statistical properties of the sampled posterior distribution.

27In Bayesian estimation, the Maximum A Posteriori (MAP) solution provides a point estimate of the parameters.The MAP solution Θ MAP for the parameters of model K is expressed by this equation from Eq. ( 14):

Formulation of a Multicomponent Monodisperse Spheres Model

28In this section, we describe a model for the scattering intensity of a dilute sample comprised of multicomponent monodisperse spheres (Guinier & Fournet, 1955;Hashimoto, 2022).This model serves as the basis for evaluating the performance of the proposed method.

29Let e i and e s represent the unit vectors in the direction of the wave number vector of the incident and scattered beams, respectively.If e i and e s form an angle 2α, and the wavelength of the beam is λ, then the scattering vector q is given by:

30Assuming isotropic scattering, we consider the magnitude q of the scattering vector.

31The monodisperse spheres are spherical particles of uniform radius.The scattering intensity I(q, θ) of a specimen composed of sufficiently dilute monodisperse spheres of a single type for the scattering vector q is given by:

32Initialize array of sampled parameters, Ψ = {}.

333:

34end for 6:

35Propose the following state, Θ ′ = Θ τ −1 l + ϵ × Uniform(−1, 1).

9:

36Calculate the acceptance ratio,

3710:

38if Uniform(0, 1) < α then 11:

39else 13:

40end if 15:

41end for 16:

42Calculate the probability of exchanging states, p(Θ τ l ↔ Θ τ l+1 ).

18:

43if Uniform(0, 1) < p(Θ τ l ↔ Θ τ l+1 ) then 19:

44Swap the Θ τ l for the Θ τ l+1 .

20:

45end if

21:

46end for

22:

47if τ > T 0 then 23:

48Append the {Θ τ l } L l=1 to the Ψ.

24:

49end if

25:

50end for

26:

51Calculate the marginal likelihood Z(K m ) and the Bayesian free energy F (K m ).27: end for 28: Calculate the likelihood of the model against the measured data {p(K m |D)} M m=1 .

52where V = 4 3 πR 3 .If the difference in scattering length density difference between the solute and solvent of the specimen is ∆ρ and the volume fraction is ϕ, then S = (3∆ρ) 2 ϕ.The parameters θ of this model are the particle size R, the scale S, and the background B.

53To formulate the scattering intensity of a specimen composed of K types of monodisperse spheres, we assume a dilute system and denote the particle size of the k-th component in the sample as R k and the scale as S k .The scattering intensity of a sample composed of K types of monodisperse spheres is then given by:

54where we assume that V k = 4 3 πR 3 k .The model parameters Θ for the scattering intensity

Numerical Experiments

55Here, we present numerical experiments to evaluate the model selection among models with K ranging from 1 to 4 components to demonstrate the capabilities of the proposed framework.We apply the framework to synthetic data generated to represent a system with two types (K = 2) of monodisperse spheres, as described by Eq. ( 24).This experimental design poses a challenge for discerning the true structure of the specimen;

56despite the simple structure, the similarity of the candidate models increases the risk of overfitting.

57In typical SAS experiments, the scale parameter S k in Eq. ( 24) tends to be small.

58Therefore, we normalize the scale parameter S k as:

59We accordingly refer to the model parameters as Θ = {R k , Sk } K k=1 , B .

60The numerical experiments reported in this section were conducted with a burn-in period of 10 5 and a sample size of 10 5 for the REMC.We set the number of replicas for REMC, the values of inverse temperature, and the step size of the Metropolis method, taking into consideration the state exchange rate and the acceptance rate.

Generation of Synthetic Data

61This scattering intensity in SAS experiments, which is typically recorded as count data, is subject to be Poisson noise, as described by Eq. ( 1).We therefore generated synthetic data D using the procedure:

621. Set the number of data points to N = 400, and define the scattering vectors at the N equally spaced points within the interval [0.1, 3] to obtain

632. Assume K = 2 and set the true model parameters Θ to Θ * .

643. Calculate the scattering intensity at the scattering vectors {q i } N i=1 obtained in step 1, using the model in Eq. ( 24) and Θ * .Introduce a pseudo-measurement time T to adjust the noise intensity in the data, to obtain {I(q i , Θ * , K) × T } N i=1 .

Generate measurement values {y

65In this section, we consider cases with pseudo-measurement times of T = 1 and T = 0.1.Generally, smaller values T indicate the greater effects from measurement noise.

Setting the Prior Distributions

66In the Bayesian model selection framework, prior knowledge concerning the parameters Θ and the model-characterizing parameter K is set as their prior distributions.

67IUCr macros version 2.1.10:2016/01/28

68In this numerical experiment, the prior distributions for the parameters Θ were set as Gamma distributions based on the pseudo-measurement time T used during data generation, while the prior for K was a discrete uniform distribution over the interval [1,4].

69, ( 29)

70φ(K) = DiscreteUniform(K; 1, 4).

71(31)

Results for Two-Component Monodisperse Spheres Based on Scale Ratio

72The ratio of scale parameters S 1 , S 2 for spheres 1 and 2 during data generation, denoted as r S , is defined as follows:

73Next, we present the analysis results from applying our proposed method to analyzing 6 types of data generated by varying the value of r S for pseudo measurement times of T = 1 and 0.1.Table 1 displays the parameter values used for generating the synthetic data.Figure 1 shows the fitting results for each model using the MAP solution for the synthetic data generated using the parameter values given in Table 1.In Fig. 1 (a) -(c), (g) -(i), it is apparent that the model with K = 1 fails to accurately represent the data.However, we can also see that the fitting curves for models with K = 2 − 4 are almost identical in shape.Furthermore, the data shown in Fig. 1 (d) -(f), (j) -(l) are difficult to distinguish from the well-known scattering data of a single type of monodisperse sphere (K = 1), making it challenging to qualitatively compare the goodness of fit among the models with K = 1 − 4. Table 2 summarizes the number of times each model was found to have the highest probability in numerical experiments using the 10 separate datasets shown in Fig. 2.

74For values of r S = 0.0004 and above ( {9.9, 9.7, 9.5, 0.5, 0.5, 0.4, 0.3} 10 Scale S 250 100 Background B (cm −1 ) 0.01 Pseudo measurement time T {1, 0.1}

75Aside from the cases of r R = 0.5 in (d) and (k), the profiles of the data in Fig. 3 are very similar to those of a single monodisperse sphere, and the fitting curves for models K = 1 to K = 4 are nearly identical in shape.In contrast, the data for cases (d) and (k) with r R = 0.5 have a complex profile, and it can be seen that the model with K = 1 can be seen to represent the data poorly.Table 4 presents the results of numerical experiments for the 10 separate datasets shown in Fig. 4, summarizing the number of times each model K = 1 -4 was most highly supported.Near the analytical limits of the proposed method, there are cases with noise intensity and anticipated parameter values similar to those of the measured data.This step can help ensure a more reliable analysis, as detailed below.

76The scale parameter S is a value that is multiplied by the square of the difference in scattering length density between the solvent and the specimen, as well as the volume fraction.This can cause r S to become extremely small when there is little difference in scattering length density between the solvent and a component of the specimen, or when there is a significant difference in the mixing ratio of the components.The results in Fig. 2 and Table 2 for a pseudo-measurement time of T = 1 (Panel A) indicates that the model selection favored non-true models at a scale ratio of r S = 0.0002.Similarly, for T = 0.1 (Panel B), non-true models were favored at scale ratios of r S = 0.0004 and r S = 0.0002, indicating that these cases exceed the analytical capabilities of the proposed method.These findings imply that within experimental parameters of this study, the proposed method reliably identifies the true model with a high probability for scale ratios up to r S = 0.0004 at T = 1 and up to r S = 0.002 at T = 0.1.

77In Sect.4.2, we investigated the effect of varying the radius ratio r R .When components of different radii are mixed, it is important to consider not only simple mixtures but also instances of aggregated specimens.The findings shown in Fig. 4 and Table 4 indicate that the proposed method reaches its analytical limits as r R approaches 1 and as it approaches 0. As r R nears 1, the scattering profiles of the two-component system become similar to that of a single-component system, leading to the selection of the single-component model (K = 1).We identified an analytical limit at r R = 0.99 for both T = 1 and T = 0.1.The results for r R = 0.97 show that at T = 0.1, which has a higher noise intensity compared to T = 1, the posterior probability of the singlecomponent model (K = 1) increases, resulting in an unstable analysis.Conversely, as r R approaches 0, the results r R = 0.03 at T = 1 and r R = 0.04 and r R = 0.03 at T = 0.1, the single-component model (K = 1) is associated with high probability,

78IUCr macros version 2.1.10:2016/01/28

79indicating an analytical limit.Overall, the proposed method demonstrates the ability to select the true model with high probability for radius ratios ranging from r R = 0.04 to 0.99 at T = 1, and from r R = 0.05 to 0.99 at T = 0.1.

Model Selection Based on Cost Function Values

80Selecting an appropriate mathematical model is a critical step in SAS data analysis, yet it remains a challenge.Traditionally, model fitting involved comparing a set of candidate models using metrics such as the χ-squared error to assist in model selection.

81However, the χ-squared error assumes a Gaussian distribution of the measurement noise.In this study, we assume Poisson-distributed measurement noise, and therefore discuss the results of model selection by calculating and comparing the values of the Poisson cost function, as formulated in Eq. ( 3), across models K = 1 − 4 using the measurement data and fitting curves derived from the MAP solutions.

82Table 5 reports the frequency of each model minimizing the Poisson cost value for models with K = 1 to K = 4.These results are based on the same datasets described in Sect.4.4, which were generated by varying the random seed for each of the 6 distinct r S values determined by the parameters listed in Table 1, with 10 datasets produced for each r S value at T = 1. 5 indicate that for (a) and (e), there are two models most supported, suggesting that it is difficult to obtain reliable results.In cases (b) and (c), the K = 3 model is most supported, likely as a result of overfitting, and failing to select the correct model, K = 2. Furthermore, when the true model K = 2 was selected in cases In contrast the proposed method results in Table 2-A demonstrate that the correct model K = 2 is supported in all 10 out of 10 cases from (a) to (e).Within the analyzable range described in the previous subsection, the model selection results are highly stably against data noise.

Conclusions

83In this paper, we introduced Bayesian model selection framework for SAS data analysis that quantitatively evaluates model validity through posterior probabilities.We conducted numerical experiments using synthetic data for a two-component system of monodisperse spheres to assess the performance of the proposed method.We identified the analytical limits of the proposed method, under the settings of this study, with respect to the scale and radius ratios of two-component spherical particles.Additionally, we compared its performance to traditional fit-based model selection methods based on the Poisson cost function.The numerical experiments and subsequent discussion revealed the range of parameters that can be analyzed using the proposed method.Within that range, our method provides stable and highly accurate model selection even for data with significant noise or situations in which qualitative model IUCr macros version 2.1.10:2016/01/28 determination is challenging.Furthermore, in comparison to the traditional method of selecting models based on fitting curves and data residuals, it was found that the proposed method offers greater accuracy and stability.

84SAS is used to study specimens with a variety of structures other than spheres, including cylinders, core-shells, lamellae, and more.The proposed method should be applied other sample models to determining the feasibility of expanding the analysis beyond the case examined here to broader experimental settings.Future work can benefit from using the proposed method to conduct real data analysis, which is expected to yield new insights through our more efficient analysis approach.

Funding information

85IUCr macros version 2.1.10:2016/01/28 Algorithm 1 : Proposed framework for quantitative selection of specimen model.Require: The measured data, D = {q i , y i } N i=1 .The number of replicas, L. The inverse temperature, {β l } L l=1 where 0 = β 1 < • • • < β L = 1.The Burn-In, T 0 .The number of samples, T 1 .The step size for the Metropolis algorithm, {ϵ l } L l=1 .Candidate Models, {K m } M m=1 .The prior distribution of Models, φ(K).The prior distribution of parameters, φ(Θ|K).

Fig. 1 .

86Fig. 1.Fitting to synthetic data generated at various r s values with MAP solutions.Panels A and B show the cases for a pseudo-measurement time of T = 1 and T = 0.1, respectively.In cases (a)-(f) and (g)-(l), the scale ratio r S is displayed in descending order for T = 1 and T = 0.1, respectively.Black circles represent the generated data, the black dashed line represents the true scattering intensity curve, the solid blue, red, green, and orange lines represent the fitting curves using the MAP solution for K = 1, K = 2, K = 3, and K = 4, respectively.

Figure 2

87Figure 2 presents the Bayesian model selection results using our proposed framework.Figure 2-A contains results for the case with T = 1, and Figure 2-B contains result with T = 0.1, each showing the probability p(K|D) of model K based on the synthetic data D for each scale ratio r S .Here, 10 datasets were created for each parameter value by varying the random seed during data generation, and the average value of p(K|D) is indicated by the height of the bar graph, with error bars indicating the maximum and minimum values.For the relatively large scale ratios r S in (a) -(e) in Fig.2-A, the true model with K = 2 has a high probability, while the average value of p(K|D) is highest for K = 1 in (f).Conversely, in Fig.2-B, the true model with K = 2 is associated with high probability in cases (g) -(j), while in cases (k) and (l), K = 1 is associated with the highest probability.

Fig. 3 .

88Fig. 3. Fitting to synthetic data generated at various r R values with MAP solutions.Panels A and B show the cases for a pseudo-measurement time of T = 1 and T = 0.1, respectively.In cases (a)-(g) and (h)-(n), the radius ratio r R is displayed in descending order for T = 1 and T = 0.1, respectively.The black dots represent the generated data, and the black dashed line represents the true scattering intensity curve, and the solid blue, red, green, and orange lines represent the fitting curves using the MAP solution for K = 1, K = 2, K = 3, and K = 4, respectively.

Figure 4

89Figure 4 displays the results of Bayesian model selection using synthetic data generated by varying the radius ratio r R .10 datasets were created for each parameter value by varying the random seed during data generation, and the average value of p(K|D) is indicated by the height of the bar graph, with the maximum and minimum values shown as error bars.Unlike the results for the variations in scale ratio shown in Fig.2, the model selection procedure fails not only at a radius ratio r R is close to 0, but also at values is close to 1, with K = 1 being the most highly supported.Additionally, in the case of r R = 0.04, the result for T = 1 in case (f) supports the true model K = 2, but for T = 0.1 in case (m), the alternative model K = 1 is most supported.However, in cases (b) -(f) and (i) -(l), the true model K = 2 is associated with a high average probability (Fig.4).

Fig. 4 .

90Fig. 4. Results of Bayesian model selection among models K = 1 -4 for varying r R values.Panel A shows the posterior probability of each model using data generated with a pseudo-measurement time of T = 1, and Panel B shows results for T = 0.1.In cases (a)-(g) and (h)-(n), the radius ratio r R is displayed in descending order for T = 1 and T = 0.1, respectively.The height of each bar corresponds to the average values calculated for 10 datasets generated with different the random seeds, with the maximum and minimum values shown as error bars.Areas highlighted in red indicates cases where the true model K = 2 was most highly supported, while the blue backgrounds indicate that the likelihood of a model other than K = 2 was the highest.

91IUCr macros version 2.1.10:2016/01/28The model selection results based on the Poisson cost function shown in Table

92(d) and (f), the K = 3 model is supported similarly often.The above findings demonstrate that evaluating how well a model fits the measurement data based on residual values such as the Poisson cost and candidate model comparison dose not consistently result in selection of the true model.

93This work was supported by JST CREST (Grant Nos.PMJCR1761 and JPMJCR1861) from the Japan Science and Technology Agency (JST) and JSPS KAKENHI Grantin-Aid for Scientific Research(A) (No. 23H00486).

Table 1 .

94Parameter values used for data generation with varying r S .

Table 2

95-A), for r S = 0.002 and above (Table 2-B), IUCr macros version 2.1.10:2016/01/28

Table 3 .

96Parameter values used for data generation when varying r R .

Table 5 .

97Results of model selection based on the Poisson cost function.The cases (a)-(f ) correspond to the settings in Figs. 1 -3 of Sect.4.4.The table indicates the number of times each model was found to have the lowest Poisson cost value for 10 datasets generated with different random seeds for each r S value at T = 1.The most highly supported model, if unique, is shown in bold.

참고문헌 32건

  1. Bayesian estimation of hyperparameters for indirect Fourier transformation in small-angle scattering Journal of Applied Crystallography · Wiley · 2000 10.1107/s0021889800012930
  2. Accurate assessment of mass, models and resolution by small-angle scattering Nature · Nature Portfolio · 2013 10.1038/nature12070
  3. Exchange Monte Carlo Method and Application to Spin Glass Simulations Journal of the Physical Society of Japan · Physical Society of Japan · 1996 10.1143/jpsj.65.1604
  4. Signal, noise, and resolution in correlated fluctuations from snapshot small-angle x-ray scattering Physical Review E · American Physical Society · 2011 10.1103/physreve.84.011921
  5. Bayesian spectral deconvolution with the exchange Monte Carlo method Neural Networks · Elsevier BV · 2011 10.1016/j.neunet.2011.12.001
  6. Equation of State Calculations by Fast Computing Machines The Journal of Chemical Physics · American Institute of Physics · 1953 10.1063/1.1699114
  7. <i>CRYSOL</i>– a Program to Evaluate X-ray Solution Scattering of Biological Macromolecules from Atomic Coordinates Journal of Applied Crystallography · Wiley · 1995 10.1107/s0021889895007047
  8. RELION: Implementation of a Bayesian approach to cryo-EM structure determination Journal of Structural Biology · Elsevier BV · 2012 10.1016/j.jsb.2012.09.006
  9. Reduction and analysis of SANS and USANS data using IGOR Pro Journal of Applied Crystallography · Wiley · 2006 10.1107/s0021889806035059
  10. Analysis of small-angle scattering data from colloids and polymer solutions: modeling and least-squares fitting Advances in Colloid and Interface Science · Elsevier BV · 1997 10.1016/s0001-8686(97)00312-6
  11. FoXS: a web server for rapid computation and fitting of SAXS profiles Nucleic Acids Research · Oxford University Press · 2010 10.1093/nar/gkq461
  12. Bayesian inference of protein ensembles from SAXS data Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2015 10.1039/c5cp04886a
  13. Nanostructure surveys of macroscopic specimens by small-angle scattering tensor tomography Nature · Nature Portfolio · 2015 10.1038/nature16056
  14. <i>SASfit</i>: a tool for small-angle scattering data analysis using a library of analytical expressions Journal of Applied Crystallography · Wiley · 2015 10.1107/s1600576715016544
  15. Bayesian inference of metal oxide ultrathin film structure based on crystal truncation rod measurements Journal of Applied Crystallography · Wiley · 2017 10.1107/s1600576717013292
  16. Analysis of small-angle scattering data using model fitting and Bayesian regularization Journal of Applied Crystallography · Wiley · 2018 10.1107/s1600576718008956
  17. Small-angle neutron scattering studies on the AMPA receptor GluA2 in the resting, AMPA-bound and GYKI-53655-bound states IUCrJ · International Union of Crystallography · 2018 10.1107/s2052252518012186
  18. A Tutorial on Bayesian Inference to Identify Material Parameters in Solid Mechanics Archives of Computational Methods in Engineering · Springer Science+Business Media · 2019 10.1007/s11831-018-09311-x
  19. <i>refnx</i>: neutron and X-ray reflectometry analysis in Python Journal of Applied Crystallography · Wiley · 2019 10.1107/s1600576718017296
  20. How to learn from inconsistencies: Integrating molecular simulations with experimental data Progress in molecular biology and translational science · Academic Press · 2020 10.1016/bs.pmbts.2019.12.006
  21. Development of spectral decomposition based on Bayesian information criterion with estimation of confidence interval Science and Technology of Advanced Materials · Taylor & Francis · 2020 10.1080/14686996.2020.1773210
  22. Methods, development and applications of small-angle X-ray scattering to characterize biological macromolecules in solution Current Research in Structural Biology · Elsevier BV · 2020 10.1016/j.crstbi.2020.08.004
  23. Bayesian Spectral Deconvolution Based on Poisson Distribution: Bayesian Measurement and Virtual Measurement Analytics (VMA) Journal of the Physical Society of Japan · Physical Society of Japan · 2019 10.7566/jpsj.88.044003
  24. Experimental noise in small-angle scattering can be assessed using the Bayesian indirect Fourier transformation Journal of Applied Crystallography · Wiley · 2021 10.1107/s1600576721006877
  25. Robust surface structure analysis with reliable uncertainty estimation using the exchange Monte Carlo method. Corrigendum Journal of Applied Crystallography · Wiley · 2021 10.1107/s1600576721004520
  26. Bayesian Inference on Hamiltonian Selections for Mössbauer Spectroscopy Journal of the Physical Society of Japan · Physical Society of Japan · 2022 10.7566/jpsj.91.104002
  27. Bayesian Spectral Deconvolution of X-Ray Absorption Near Edge Structure Discriminating between High- and Low-Energy Domains Journal of the Physical Society of Japan · Physical Society of Japan · 2022 10.7566/jpsj.91.074009
  28. Bayesian parameter estimation from dispersion relation observation data with Poisson process Physical review. E · American Physical Society · 2022 10.1103/physreve.105.065301
  29. Principles and Applications of X-ray, Light and Neutron Scattering 2022 10.1007/978-981-16-1645-7
  30. Bayesian Approach to <i>T</i><sub>1</sub> Analysis in NMR Spectroscopy with Applications to Solid State Physics Journal of the Physical Society of Japan · Physical Society of Japan · 2023 10.7566/jpsj.92.054002
  31. Bayesian Inference for Small-Angle Scattering Data Journal of the Physical Society of Japan · Physical Society of Japan · 2023 10.7566/jpsj.92.094002
  32. Efficient NMR measurement and data analysis supported by the Bayesian inference: The case of the heavy fermion compound YbCo<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si23.svg" display="inline" id="d1e817"><mml:msub><mml:mrow/><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math>Zn20 Journal of Magnetic Resonance · Elsevier BV · 2023 10.1016/j.jmr.2023.107585