<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">[Short paper] EM-algorithm Enpowers Material Science: Application of Inverse Estimation for Small Angle Scattering</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Akinori</forename><surname>Asahara</surname></persName>
						</author>
						<author>
							<persName><forename type="first">Hidekazu</forename><surname>Morita</surname></persName>
						</author>
						<author>
							<persName><forename type="first">Masao</forename><surname>Yano</surname></persName>
						</author>
						<author>
							<persName><forename type="first">Tetsuya</forename><surname>Shoji</surname></persName>
						</author>
						<author>
							<persName><forename type="first">Kotaro</forename><surname>Saito</surname></persName>
						</author>
						<author>
							<persName><forename type="first">Kanta</forename><surname>Ono</surname></persName>
						</author>
						<author>
							<persName><forename type="first">Chiharu</forename><surname>Mitsumata</surname></persName>
						</author>
						<author>
							<affiliation key="aff0">
								<orgName type="institution">Hitachi Ltd. Tokyo</orgName>
								<address>
									<postCode>100-8280</postCode>
									<country key="JP">Japan</country>
								</address>
							</affiliation>
						</author>
						<author>
							<affiliation key="aff1">
								<orgName type="institution">Toyota Motor Corporation Toyota</orgName>
								<address>
									<postCode>471-8572</postCode>
									<country key="JP">Japan</country>
								</address>
							</affiliation>
						</author>
						<author>
							<affiliation key="aff2">
								<orgName type="institution">Paul Scherrer Institute Villigen</orgName>
								<address>
									<postCode>5232</postCode>
									<country key="CH">Switzerland</country>
								</address>
							</affiliation>
						</author>
						<author>
							<affiliation key="aff3">
								<orgName type="institution">High Energy Accelerator Research Organization Tsukuba</orgName>
								<address>
									<postCode>305-0801</postCode>
									<country key="JP">Japan</country>
								</address>
							</affiliation>
						</author>
						<author>
							<affiliation key="aff4">
								<orgName type="institution">National Institute for Materials Science Tsukuba</orgName>
								<address>
									<postCode>305-0047</postCode>
									<country key="JP">Japan</country>
								</address>
							</affiliation>
						</author>
						<author>
							<affiliation key="aff5">
								<orgName type="institution">Stanford University</orgName>
								<address>
									<settlement>Palo Alto</settlement>
									<region>California</region>
									<country key="US">USA</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">[Short paper] EM-algorithm Enpowers Material Science: Application of Inverse Estimation for Small Angle Scattering</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">058ECFF0EC5560E3EB5032FB12A503E2</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T15:39+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>In this short paper, a machine-learning algorithm is applied to improve SAS (Small Angle Scattering) experimental analysis, which is commonly used in material science. In a SAS experiment, a particle beam incidenting to a material sample is scattered through the material sample. The distribution of the scattered beam indicates information about the grain-size distribution of the sample material; however, this distribution needs to be inversely estimated. Therefore, a stochastic model of the SAS experiment and EM (Expectation-Maximization)algorithm to estimate the grain-size distribution in the material sample are proposed. While existing methods require much manual effort, the proposed EM-algorithm works automatically. Six simulation-generated datasets and two actual observed datasets were processed with the proposed method for examination. The result show that the proposed EM-based grain-size distribution estimation method is useful for automatically analyzing SAS data.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Introduction</head><p>Materials Informatics (MI) is an information technology intended for making material development faster that has been researched eagerly in recent years(National Institute of Standards and Technology 2019). MI will help material science researchers to discover new knowledge.</p><p>One such MI function is a data mining technique to find very small features of experimental data automatically. Traditionally, material science researchers carefully inspect experimental data to find small features because they might indicate new knowledge. The researchers however might take a long time to find such features or miss them. Therefore, automatic knowledge extraction from experimental data is attracting attention of the researchers.</p><p>This study focuses on small-angle scattering (SAS) experiments <ref type="bibr" target="#b4">(Higgins and Benoît 1994)</ref>  <ref type="bibr" target="#b0">(Asahara et al. 2019)</ref>, which are commonly conducted for observing microstructures of materials. There are various similar scattering ex- periments such as neutron-scattering, x-ray scattering, ionbeam scattering, etc. Their difference lies just in the particles to be scattered. The solution for the problem in SAS can be expected to be applied for these experiments also. Thus, the problem is crucial enough to need to be solved.</p><p>One of the SAS-experimental objectives is to estimate microscale-grain-size distributions in material samples. Neutrons detected on a plane during a SAS experiment make a pattern on the plane (called SAS pattern). Material science researchers with special knowledges observe SAS patterns carefully to find grain-size information about the microstructure of the sample material.</p><p>Accordingly, a method to automatically estimate grainsize distributions with SAS pattern data is presented in this paper. Several existing estimation methods are based on function optimization to fit the grain-size distribution to the SAS pattern, which requires much effort by maerial science researchers to adjust parameters. In contrast, our automatic estimation method is free from such effort because of probabilistic modeling of SAS experimental processes (that is, knowledges of the experimental settings). A maximum likelihood approach based on the stochastic modeling can be taken to estimate grain-size distribution without heuristic assumptions. In this paper, an expectation-maximization (EM) algorithm applicable to the estimation is shown and examined with simulation data and actual measurement data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Problem settings</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Small angle scattering</head><p>An experimental instrument setting of SAS is illustrated in Figure <ref type="figure">1</ref>. In the experiment, a particle beam incident upon The angle θ between a straight beam and the changed direction of the scattered beam depends on the interaction. Finally detectors arranged on a plane detect the scattered beam. The counts of detection events form a pattern, called SAS pattern, on the plane. Thus, such microstructure causing the direction changes is called a "scattering body."</p><p>The particle behavior during the scattering experiment is modeled with a differential equation called the Schödinger equation. The solution of the Schödinger equation is a complex function called a wave function, of which the squared absolute value corresponds to the probability of detection. Because the distance L between the sample and the plane is large enough, the coordinate values on the plane x = (x, y) are approximately in proportion to |x| = L sin θ Lθ. The probability density function (PDF) P (x) of detection corresponds to the probability P (θ) that particle goes in the direction of θ, which is related to the microscopic structures called grains.</p><p>As the simplest setting, imagine a case in which the grains are balls. Intensity I(r, q) of SAS pattern scattered by balls of radius r is in proportion to the following I(r, q) I(r, q) ∝ I(r, q) = 1 r 3 sin qr q 3 − r cos qr q 2 2 .</p><p>(1)</p><p>The q in the formula indicates a quantity called "wave number," which is the frequency of the wave function multiplied by 2π. The frequency of the wave function is three dimensional because it is derived with the Fourier transformation of the wave function in three dimensional space. The scattering angle θ depends on the frequency, so the size of q = q along the vertical vector to incident beam ("q = (q x , q y )" in Fig <ref type="figure">1</ref>) appears in the formula. Therefore a q indicates a location x on the detection plane, derived from distance between the incident beam center and the location. That is, we can obtain actual SAS intensity corresponding into I(r, q) by converting x to q. This formula is feasible in the case of a uniform grain size r. However actual grain sizes vary. The SAS pattern by multiple grain sizes is the weighted sum of I(r, q) over r and the weight is the grain-size distribution of the material, because the solutions of the Schödinger equation can be added together, accordingly scattering pattern S(q) with a scattering body that is derived as</p><formula xml:id="formula_0">S(q) ∝ f (r)I(r, q)dr,<label>(2)</label></formula><p>where the grain-size distribution is denoted as f (r).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Expert-knowledge-based analysis</head><p>To estimate grain-size distribution, S(q), which is the integration of f (r)I(r, q), should be decomposed to the summation of I(r, q); however this is difficult. Thus, material science researchers have tried to guess f (r) with clues from small features latent in the plot of I(r, q) as shown in Fig. <ref type="figure" target="#fig_1">2</ref>.</p><p>The figure presents a log-log plot of a SAS pattern and it's domain is separated into three parts (a), (b) and (c). In (a), that is q → 0, the power series of a trigonometric function with q</p><formula xml:id="formula_1">I(r, q) 1 r 3 qr q 3 − r q 2 (1 − 1 2 (qr) 2 ) 2 = r 4<label>(3)</label></formula><p>S(q) is independent from q. Thus, it converges to a constant value. In (b), corresponding to I(r, q) under q → ∞, is approximated as</p><formula xml:id="formula_2">I(r, q) 1 r 3 r cos qr q 2 2 .<label>(4)</label></formula><p>Therefore, S(q) is derived as</p><formula xml:id="formula_3">S(q) 1 q 4 r 2 f (r) cos 2 qrdr.<label>(5)</label></formula><p>This behaves as the Fourier transform of r 2 f (r) with decaying in the fourth power of q.</p><p>(c) is intermediate between (a) and (b). I(r, q) in the domain is the following. I(r, q) = 1 q 6 (sin qr − qr cos qr) 2 .</p><p>(6) I(r, q) is always non-negative and I(r, q) = 0 when sin qr − qr cos qr = 0. Therefore I(r, q) = 0 leads to sin qr/ cos qr = tan qr = qr. Figure <ref type="figure">3</ref> plots each side of this equation. The horizontal axis x of the graph indicates qr.</p><p>The blue curve represents y = tan x and the orange line represents y = x. Their intersections, indicated by the circles in the figure, correspond to points satisfying tan qr = qr, that is, I(r, q) = 0. Therefore, the zero points appear periodically. Additionally local maximum points, which satisfy sin x = 0, exist between the zero points. Thus I(r, q) oscillates and it's frequency depends on r. S(q), which is the sum of the I(r, q), involves the oscillations of various phases, so the oscillations are gradually canceled by q becoming larger. Hence, only the oscillation at the small-q domain is readable.</p><p>The material science researchers accordingly look for the oscillation at the (c) domain because it gives implicit hints to understand f (r). Therefore, f (r) can be estimated only roughly. If f (r) were estimated directly, the SAS experiment could give much more information of the sample. Consequently, a method to directly estimate f (r) is highly needed. Thus, a machine-learning-based method is proposed in this paper. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Related works</head><p>One practicable method is parametric function fitting. Parameters of the function can be adjusted to fit to the obtained SAS pattern because their relationship is known <ref type="bibr" target="#b5">(Joachim and Ingo 2018)</ref>. However, for this approach, the form of f (r) is required. The true f (r) is generally unknown in actual situations. Material scientists therefore should assume many kinds of function forms to find the best estimation.</p><p>Until the best estimation is achieved, many trials will be required, leading to a long calculation time.</p><p>To avoid such difficulty, a function having a more general formula should be used. One technique using such function is Indirect Fourier Transform (IFT) <ref type="bibr" target="#b11">(Otto 1977)</ref>. For IFT, summation of multiple stepwise functions θ n (x) is used as the general function. The stepwise function θ n (r) returns 1 when r n &lt; r &lt; r n+1 , and 0 otherwise, where the domain of the function is separated into N small partitions r</p><formula xml:id="formula_4">n &lt; r &lt; r n+1 (1, • • • n, • • • N ). Formula (2) is S(q) n a n θ n (r)I(r, q)dr,<label>(7)</label></formula><p>Under this assumption, the integral is decomposed into definite integrations in r n &lt; r &lt; r n+1 . Because the definite integrals can be carried out analytically, S(q) is described as a linear combination of a n . After minimizing the difference between the linear combination of a n and SAS pattern, the grain-size distribution f (r) is obtained as the sum of a n θ n (r).</p><p>The resolution of the grain-size distribution is determined by θ n in IFT as shown above. Therefore, the range of θ n should be small to improve the resolution of grain size. Although many a n s thus have to be determined for high resolution results, the SAS pattern must be highly accurate because the difference of a SAS pattern from S(q) cannot be averaged enough in esthe timation of many a n s. Accordingly the higher resolution setting makes estimation error larger.</p><p>A technique to avoid this problem is to add regularization terms to suppress over fitting. However, the regularization terms is required to adjust manually. To automate regularization, complicated methods to determine the regularization terms have been proposed, but they are not common yet.</p><p>In this paper, an approach in which machine-learning algorithms are applied is taken against the problem. Specifically, the SAS-experimental process is modeled as a stochastic process with latent variables. After that, a likelihood function derived from the stochastic process is maximized to fit the SAS pattern. As the result, the grain-size distribution is obtained as the optimal model parameter of the stochastic process. No assumption is required for the method if a non-parametric model (that is, a very general stochastic model such as a Gaussian mixture) is applied for the SASexperimental process. Generally an EM algorithm is applied to non-parametric models. Similarly a method using a nonparametric model and EM algorithm is proposed.</p><p>Such techniques are used in astrophysics <ref type="bibr" target="#b12">(William 1972</ref>) <ref type="bibr" target="#b6">(Leon 1974)</ref>, bioinformatics <ref type="bibr" target="#b7">(Lustig et al. 2008)</ref>  <ref type="bibr" target="#b8">(Lustig, Donoho, and Pauly 2007)</ref> and compressed sensing <ref type="bibr" target="#b3">(Donoho 2006)</ref>. However this kind of approach is not common in scattering experiments. Therefore, in this paper, algorithms suitable for SAS are proposed and examined using simulation and actual data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Stochastic process of SAS Approach</head><p>The process consists of dispersion and observation, which are modeled with two different probabilistic models. shown in Fig. <ref type="figure" target="#fig_3">5</ref>.</p><p>At the first dispersion step, the incident beam interacts with grains. In Fig. <ref type="figure" target="#fig_3">5</ref>, "determine a grain" represents the process. It can be interpreted as a stochastic process in which particles of the incident beam choose a scattering body in the sample material. The probability density function is consequently assumed in proportion to f (r). That is, the dispersion step of N particles is modeled as a N -times iteration of random sampling from f (r).</p><p>The second observation step, in which the incident beam changes its direction and arrives at a point on the detector plane, is also modeled as a random sampling process, shown as "change direction" in Fig. <ref type="figure" target="#fig_3">5</ref>. The scattered parti-cles choose a scattering angle randomly and are detected as a SAS pattern. This angle choice is stochastic due to the principle of quantum physics. Thus the probability distribution function is in proportion to I(r, q) defined in (3).</p><p>The entire process of SAS is modeled as the combination of these two stochastic processes. In the entire process, the size of the scattering body interacting with each particle is unobservable. When both latent variables and model parameters are unknown, that Bayes statistics works. The probability that q is chosen after determining r is described as a posterior P (q|r) in Bayes statistics. Note that P (q|r) ∝ I(r, q) and the function to be estimated is P (r|q) because only q is determined by the SAS pattern. These can be easily connected with Bayes theorem:</p><formula xml:id="formula_5">P (r|q) = P (q|r)P (r) P (q) . (<label>8</label></formula><formula xml:id="formula_6">)</formula><p>This formula includes two new parts (P (r) and P (q)) though they do not cause problems. P (r) is a prior about grain choosing. It can be set uniformly when no information about grain size is given. Moreover, P (q) is a prior about the wavenumber. Being independent from grain-size, P (q) will be canceled with a normalization constant of P (r|q). Consequently, P (r|q) equals P (q|r), which is in proportion to I(q, r), except the normalization constant.</p><p>This modeling is straightforward from a machinelearning-based viewpoint. However from the quantummechanics-based viewpoint, the incidenting particles are dealt with as a wave. Consequently, in the proposed approach, the model is simplified because of the aspect change from wave-like aspect to a particle-like one.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>One-particle model</head><p>The formula about the scattering process of one particle should be precisely discussed as detailed above. The first process is to decide the grain causing scattering. The grain size r is continuous in domain 0 &lt; r &lt; R. However, as mentioned above, it is separated into the L small partitions labeled by 0 • • • L−1. Assuming that the representative grain size in each partition is set as the center of the partition denoted as r 0 , • • • r L (that is r n+1 = r n + R/L), we can write the grain size frequency as f (r 0 ), • • • f (r L−1 ). As the stochastic process, a particle randomly chooses a grain size for scattering with probability P (r i ) ∝ f (r i ). Accordingly,</p><formula xml:id="formula_7">P (r l ) = f (r l ) m f (r m ) .<label>(9)</label></formula><p>In the second process, the scattering angle is decided. Similarly the wavenumber domain 0 &lt; q &lt; Q is also separated into the K small partitions labeled by 0 • • • K − 1 and the center of the partitions are denoted as q k . The probability that the scattered particle is detected at the q k detector is therefore described as P (q k |r l ), which is in proportion to I(r l , q k ). Although some particles will go outside of the detection plain, they are regarded as outside of the population distribution to be modeled. Consequently, </p><formula xml:id="formula_8">P (q k |r l ) = I(r l , q k ) m I(r l , q k ) . (<label>10</label></formula><formula xml:id="formula_9">)</formula><formula xml:id="formula_10">k ≥ 0, wavenumber q k ≥ 0 (k = 0, 1, • • • , K) resolution of grain size r l ≥ 0 where (l = 0, 1, • • • , L) Output: {π l } N ⇐ k n k , {η l,k } ⇐ { I(r l ,q k ) m I(r l ,q k ) }, {π l } ⇐ 1/L repeat {π l } ⇐ k n k N π l η l,k j πj η j,k until convergence</formula><p>For simplicity, P (r l ) ≡ π l , P (q k |r l ) ≡ η l,k hereafter. The probability that a particle is scattered at r l and detected in the kth partition is derived as π i η l,k . To estimate the grain size distribution likelihood, we thus need</p><formula xml:id="formula_11">P ({π 0 , • • • π L }|q k ).</formula><p>The grain-size partition in which the particle is actually scattered is unobservable directly. Therefore, r l should be marginalized as follows:</p><formula xml:id="formula_12">P (π 0 , • • • π L |q k ) = P (q k |π 0 , • • • π L )P (π 0 , • • • π L ) P (q k ) ∝ l P (q k |r l )P (r l |π 0 , • • • π L ) = l π i η l,k ,<label>(11)</label></formula><p>where priors P (q k ) and P (π 0 , • • • π L ) are regarded as constant parameters. Figure <ref type="figure">6</ref> illustrates this calculation. Even after a particle is detected at q 2 , their possible paths are nonunique. Therefore the likelihood of the scatting process involves the sum of the all paths.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>N-particles model</head><p>Although the likelihood of the 1-detection event is formulated as above, an actual SAS pattern includes many detection events. Because the SAS pattern is a set of counts of detection events, it is denoted as K integers:</p><formula xml:id="formula_13">{n 0 , • • • n K }. With the total number N of the events, N = k n k . {π 0 , • • • , π L } maximizing the total likelihood P (n 0 , • • • n K |π 0 , • • • , π L ) is required, indicating the grain- size distribution.</formula><p>For simplicity of the calculation, the following logarithmic likelihood is to be maximized by {π k }.</p><formula xml:id="formula_14">ln P (π 0 , • • • , π L |n 0 , • • • n K ) = ln N ! + k n k ln l π l η l,k − k ln n k ! (12)</formula><p>However, because the π k s are probabilities of the random choice, they are restricted as π k = 1. Therefore, the maximization is carried out under the constraint with the Lagrange multiplier method.</p><formula xml:id="formula_15">∂ ∂π l ln P (π 0 , • • • , π L |n 0 , • • • n K ) = ∂ ∂π l k n k ln l π l η l,k − β = 0, (<label>13</label></formula><formula xml:id="formula_16">)</formula><p>where β is the Lagrange multiplier. This leads to the following L equations,</p><formula xml:id="formula_17">∂ ∂π j k n k ln l π l η l,k − β = k n k η j,k l π l η l,k − β = 0. (<label>14</label></formula><formula xml:id="formula_18">)</formula><p>After π is multiplied to both sides of the equations and the equations are summed,</p><formula xml:id="formula_19">k n k j π j η j,k l π l η l,k − β j π j = 0 β = k n k = N. (<label>15</label></formula><formula xml:id="formula_20">)</formula><p>Therefore the equation</p><formula xml:id="formula_21">k n k η j,k l π l η l,k = N (16)</formula><p>should be solved to obtain {π l }.</p><p>To solve this problem, an iteration algorithm called an EM-algorithm <ref type="bibr" target="#b1">(Bishop 2006</ref>) is generally applied <ref type="bibr" target="#b13">(Zhang 1993</ref>) <ref type="bibr" target="#b2">(Demoment 1989)</ref>  <ref type="bibr" target="#b9">(Nagata, Sugita, and Okada 2012)</ref>. Because (10)(11) leads to</p><formula xml:id="formula_22">π j η j,k l π l η l,k = P (q k |r l )P (r l ) P (q k ) = P (r l |q k ),<label>(17)</label></formula><p>this part represents the probability that a particle detected at q k is scattered at r l . Therefore, the expectation value m l of the number of such particles is m l = k n k P (r l |q k ) when n k particles are detected at q k . According to P (r l ) = π l , additionally,</p><formula xml:id="formula_23">k n k η j,k l π l η l,k = m j π j = N. (<label>18</label></formula><formula xml:id="formula_24">)</formula><p>The equation can be separated into the equation to lead π l s and that to lead m l s:</p><formula xml:id="formula_25">π l = m l N m l = k n k π l η l,k j π j η j,k<label>(19)</label></formula><p>Consequently, E-step to obtain the expectation value m l and M-step to obtain {π l } with the maximal likelihood are iteratively carried out to derive the solution of the equation ( <ref type="formula">16</ref>). Algorithm 1 lists the procedures.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>EXPERIMENTS Experimental settings</head><p>Two different types of experiments were executed to evaluate whether the proposed algorithm automatically estimates grain-size distribution consistent with SAS pattern. In the first experiment (Experiment 1), simulation-generated data were processed because we can compare the results with ground truth. In the second experiment (Experiment 2), actual SAS pattern data with naive samples were processed to assess the actual feasibility of the proposed algorithm.</p><p>The two types of data were processed with the proposed algorithm, and IFT for comparison. For the proposed algorithm, 10,000 iterations of the EM algorithm were carried out instead of checking convergence. That is because the processing time is limited in an experiment but is unlimited until convergence. The processing time is expected to be limited when the iterations are limited.</p><p>The IFT executed in the experiments involves the L1 and L2 regularization. The weight parameters of the regularization terms are tuned for IFT to return reasonable estimation result. This tuning is carried out twice, that is, for Experiments 1 and 2, because the best setting depends on the total event number of the SAS pattern.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Experiment 1: simulation data</head><p>In Experiment 1, six types of grain-size distributions were defined. Each pattern is one Gamma distribution or the sum of two Gamma distributions having the most frequent point around 10nm. The grain-size distribution is discretized by 0.2 nm, and its domain is set from 0 to 20 nm (i.e., 100 values), corresponding to f (r) in (2). The S(q) was calculated by evaluating integration of (2). Because S(q) indicates the probability of the detection, by multiplying the detection event number to S(q), the most probable SAS patterns can be generated. The q of SAS pattern is also discrete and its domain is from 0.1nm −1 to 5nm −1 . For the experiment, the detection event number was set as 10,000, and the SAS patterns of the grain-size distributions were generated and named Patterns 1-6.</p><p>Figures <ref type="figure" target="#fig_4">7 and 8</ref> show the results. In both figures, (a) plots the SAS pattern by log-log plot, (b) plots the grain-size distribution estimated by the proposed method, and (c) plots the grain-size distribution estimated by IFT for comparison. The blue lines in (b) and (c) plot the truth, i.e. the original grain-size distribution. In (b), all estimation results are highly similar to ground truth. In contrast, in (c), estimation results are generally inaccurate.</p><p>The grain-size distribution of Pattern 1 has a small peak at the foot of a large peak. The two peaks should be separately estimated. The ML results are so accurate that the small peak appears clearly, whereas the small peak in the IFT results is difficult to recognize.</p><p>The grain-size distribution of Pattern 2 also has a small peak, but it is located on the opposite side to that in Pattern 1. The IFT results do not accurately estimate the small peak, whereas the ML results do.</p><p>The grain-size distribution of Pattern 3 has only one peak. The IFT results of this pattern are similar to those of Pat- tern 2. Both Patterns 2 and 3 have a large peak at a small grain size. The small grain size corresponds to a large wave number due to I(q, r). The features are very small as shown in Fig. <ref type="figure" target="#fig_4">7</ref> (a) because the S(q) in the high-q area decays q −4 . Function-fitting-based techniques such as IFT cannot handle such small components, whereas stochastic techniques such as the proposed method take into account small probabilities.</p><p>One large peak in the intermediate grain-size is shown in Pattern 4. Pattern 4 is so simple that the estimation is easy. Indeed, both the ML and IFT results are very accurate. However, the ML results are more accurate the IFT results.</p><p>Two comparable peaks appear closely in Pattern 5. Because the IFT results do not detect these two peaks, one peak instead appears between them. In contrast, ML results detect both peaks accurately.</p><p>Three peaks are shown in Pattern 6. Similar to Pattern 5, the IFT results did not extract the three peaks, whereas the ML results did.</p><p>The SAS patterns of (a) input are quite similar for humans. Therefore, material scientists have to make an effort to obtain their difference, which reflects radical changes in the grain-size distribution. According to the results, the proposed method is helpful and reliable. This shows that the SAS experiment can become more useful for observing microstructures of materials.</p><p>Figure <ref type="figure" target="#fig_5">9</ref> plots processing time of the pattern estimation. For this experiment, a computer loading Intel(R) Core(TM) i3-4150 CPU 3.50GHz and 11 GB RAM and Cent OS. The implementation is based on Python 3.6.5 and numpy library <ref type="bibr" target="#b10">(Oliphant 2006</ref>) is used to improve efficiency of the process.</p><p>The proposed method takes around 1.2 seconds, which is much shorter than the experimental time of SAS ( for neutron scattering, around 20 minutes). In comparison, IFT takes around 6.0 seconds, 5 times as long as the proposed method. IFT is not much slower; however, this difference can became important if material science researchers have to conduct many iterations during trial-and-error experiments. This shows the proposed method is quite useful for SAS data analysis.</p><p>According to the results, the proposed method enables the grain-size distribution to be estimated accurately. IFT makes large errors when the grain size is small, whereas the proposed method works well for such cases. In actual situations, we cannot know whether the grain size of a sample is low (i.e., IFT applicable) or not. Therefore, IFT requires much effort by material scientist but the proposed method does not. This shows that the proposed method is suitable for automatically processing SAS patterns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Experiment 2: actual measurements</head><p>In Experiment 2, SAS patterns of neutrons with a polystyrene ball (radius 18 nm) sample and a silica ball (radius 25 nm) sample were examined. Figure <ref type="figure" target="#fig_6">10</ref> shows the results ((a), (b) and (c) are the same as in Experiment 1). The SAS pattern are more noisy than those of Experiment 1.</p><p>The most frequent radius of (b) and (c) is around the sample true radius. This shows that both the proposed method and IFT can be used. The difference between the ML results and IFT results is that small peaks appear at the integermultiplied true radius. This is considered to be because clusters of the multiple balls are detected.</p><p>The results show the proposed method is feasible for actual SAS pattern analysis. Moreover small material-inside behaviors might be observable. Thus this implies that the proposed method will extract information leading to new knowledge.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conclusion and Future Works</head><p>An expectation-maximization (EM)-based grain-size distribution estimation method was proposed for the automatically analyzing small angle scattering (SAS) patterns. Experimental results showed that the proposed method can ac-curately estimate the original grain-size distribution from SAS patterns. Moreover, the proposed method does not require parameter tuning to obtain good results, whereas the existing method ( Indirect Fourier Transform ) does.</p><p>The stochastic model that is the base of the proposed method does not assume priors. However, with priors, the estimation might be made more accurate and detection events required to estimate the grain-size might be made fewer. In addition, non-ball scattering bodies should be taken into account. Such extensions are possible future works. </p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head></head><label></label><figDesc>Figure 1: SAS Experiment</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Figure 2 :</head><label>2</label><figDesc>Figure 2: SAS pattern analysis with graphs</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Figure 3 :Figure 4 :</head><label>34</label><figDesc>Figure 3: sin qr − qr cos qr behavior</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_3"><head>Figure 5 :</head><label>5</label><figDesc>Figure 5: Probabilistic solution of scattering problems</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_4"><head>Figure 7 :</head><label>7</label><figDesc>Figure 7: Results of Exp. 1 Pattern 1, 2, 3</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_5"><head>Figure 9 :</head><label>9</label><figDesc>Figure 8: Results of Exp. 1 Patterns 4, 5, 6</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_6"><head>Figure 10 :</head><label>10</label><figDesc>Figure 10: Results of Exp. 2</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_0"><head></head><label></label><figDesc>𝑟 0 𝑟 1 𝑟 2 𝑟 3 𝑟 4 𝑟 5 𝑞 0 𝑞 1 𝑞 2 𝑞 3 𝑞 4</figDesc><table><row><cell>Neutron beam</cell><cell></cell></row><row><cell>source</cell><cell>𝜋 𝑙</cell></row><row><cell></cell><cell>𝜂 𝑙,2</cell></row><row><cell cols="2">Figure 6: Marginalization of grain size</cell></row><row><cell cols="2">Algorithm 1: Estimation of grain size</cell></row><row><cell>Input: SAS pattern intensity n</cell><cell></cell></row></table></figure>
		</body>
		<back>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">Early-stopping of scattering pattern observation with bayesian modeling</title>
		<author>
			<persName><forename type="first">A</forename><surname>Asahara</surname></persName>
		</author>
		<author>
			<persName><forename type="first">H</forename><surname>Morita</surname></persName>
		</author>
		<author>
			<persName><forename type="first">C</forename><surname>Mitsumata</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Ono</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Yano</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Shoji</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the AAAI Conference on Artificial Intelligence</title>
				<meeting>the AAAI Conference on Artificial Intelligence</meeting>
		<imprint>
			<date type="published" when="2019">2019</date>
			<biblScope unit="volume">33</biblScope>
			<biblScope unit="page" from="9410" to="9415" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<monogr>
		<title level="m" type="main">Pattern Recognition and Machine Learning</title>
		<author>
			<persName><forename type="first">C</forename><forename type="middle">M</forename><surname>Bishop</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2006">2006</date>
			<publisher>Springer</publisher>
			<pubPlace>New York</pubPlace>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Image reconstruction and restoration: overview of common estimation structures and problems</title>
		<author>
			<persName><forename type="first">G</forename><surname>Demoment</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">IEEE Transactions on Acoustics, Speech, and Signal Processing</title>
		<imprint>
			<biblScope unit="volume">37</biblScope>
			<biblScope unit="issue">12</biblScope>
			<biblScope unit="page" from="2024" to="2036" />
			<date type="published" when="1989">1989</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Compressed sensing</title>
		<author>
			<persName><forename type="first">D</forename><forename type="middle">L</forename><surname>Donoho</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">IEEE Transactions on information theory</title>
		<imprint>
			<biblScope unit="volume">52</biblScope>
			<biblScope unit="issue">4</biblScope>
			<biblScope unit="page" from="1289" to="1306" />
			<date type="published" when="2006">2006</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<monogr>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">S</forename><surname>Higgins</surname></persName>
		</author>
		<author>
			<persName><forename type="first">H</forename><surname>Benoît</surname></persName>
		</author>
		<title level="m">Polymers and neutron scattering</title>
				<imprint>
			<publisher>Clarendon press Oxford</publisher>
			<date type="published" when="1994">1994</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<monogr>
		<author>
			<persName><forename type="first">K</forename><surname>Joachim</surname></persName>
		</author>
		<author>
			<persName><forename type="first">B</forename><surname>Ingo</surname></persName>
		</author>
		<ptr target="https://www.psi.ch/en/sinq/sansi/sasfit" />
		<title level="m">SASFit</title>
				<imprint>
			<date type="published" when="2018">2018</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">An iterative technique for the rectification of observed distributions</title>
		<author>
			<persName><forename type="first">B</forename><forename type="middle">L</forename><surname>Leon</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">The astronomical journal</title>
		<imprint>
			<biblScope unit="volume">79</biblScope>
			<biblScope unit="issue">6</biblScope>
			<biblScope unit="page" from="745" to="754" />
			<date type="published" when="1974">1974</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<analytic>
		<title level="a" type="main">Compressed sensing mri</title>
		<author>
			<persName><forename type="first">M</forename><surname>Lustig</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><forename type="middle">L</forename><surname>Donoho</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">M</forename><surname>Santos</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">M</forename><surname>Pauly</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">IEEE Signal Processing Magazine</title>
		<imprint>
			<biblScope unit="volume">25</biblScope>
			<biblScope unit="issue">2</biblScope>
			<biblScope unit="page" from="72" to="82" />
			<date type="published" when="2008">2008</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<analytic>
		<title level="a" type="main">Sparse mri: The application of compressed sensing for rapid mr imaging</title>
		<author>
			<persName><forename type="first">M</forename><surname>Lustig</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Donoho</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">M</forename><surname>Pauly</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Magnetic Resonance in Medicine</title>
		<imprint>
			<biblScope unit="volume">58</biblScope>
			<biblScope unit="issue">6</biblScope>
			<biblScope unit="page" from="1182" to="1195" />
			<date type="published" when="2007">2007</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">Bayesian spectral deconvolution with the exchange monte carlo method</title>
		<author>
			<persName><forename type="first">K</forename><surname>Nagata</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Sugita</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Okada</surname></persName>
		</author>
		<ptr target="https://www.nist.gov/mgi(viewedat" />
	</analytic>
	<monogr>
		<title level="j">Neural Networks</title>
		<imprint>
			<biblScope unit="volume">28</biblScope>
			<biblScope unit="page" from="82" to="89" />
			<date type="published" when="2012">2012. 2019. Oct. 2019</date>
		</imprint>
		<respStmt>
			<orgName>National Institute of Standards and Technology</orgName>
		</respStmt>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<monogr>
		<title level="m" type="main">A guide to NumPy</title>
		<author>
			<persName><forename type="first">T</forename><forename type="middle">E</forename><surname>Oliphant</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2006">2006</date>
			<publisher>Trelgol Publishing USA</publisher>
			<biblScope unit="volume">1</biblScope>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<analytic>
		<title level="a" type="main">A new method for the evaluation of smallangle scattering data</title>
		<author>
			<persName><forename type="first">G</forename><surname>Otto</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Journal of Applied Crystallography</title>
		<imprint>
			<biblScope unit="volume">10</biblScope>
			<biblScope unit="page" from="415" to="421" />
			<date type="published" when="1977">1977</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b12">
	<analytic>
		<title level="a" type="main">Bayesian-based iterative method of image restoration</title>
		<author>
			<persName><forename type="first">Hadley</forename><surname>William</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Journal of the Optical Society of America</title>
		<imprint>
			<biblScope unit="volume">62</biblScope>
			<biblScope unit="issue">1</biblScope>
			<biblScope unit="page" from="55" to="59" />
			<date type="published" when="1972">1972</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b13">
	<analytic>
		<title level="a" type="main">The mean field theory in em procedures for blind markov random field image restoration</title>
		<author>
			<persName><forename type="first">J</forename><surname>Zhang</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">IEEE Transactions on Image Processing</title>
		<imprint>
			<biblScope unit="volume">2</biblScope>
			<biblScope unit="issue">1</biblScope>
			<biblScope unit="page" from="27" to="40" />
			<date type="published" when="1993">1993</date>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
