<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Hypothesis tests with functional data for surface quality change detection in surface finishing processes</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2022 Winter</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10353327</idno>
					<idno type="doi">10.1080/24725854.2022.2113481</idno>
					<title level='j'>IISE transactions</title>
<idno>2472-5854</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>S. Jin</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[This work is concerned with providing a principled decision process for stopping or tool-changing in a surface finishing process. The decision process is supposed to work for products of non-flat geometry. The solution is based on conducting hypothesis testing on the bearing area curves from two consecutive stages of a surface finishing process. In each stage, the bearing area curves, which are in fact the nonparametric quantile curves representing the surface roughness, are extracted from surface profile measurements at a number of sampling locations on the surface of the products. The hypothesis test of these curves informs the decision makers whether there is a change in surface quality induced by the current finishing action. When such change is detected, the current action is deemed effective and should thus continue, while when no change is detected, the effectiveness of the current action is then called into question, signaling possibly some change in the course of action. Application of the hypothesis testing-based decision procedure to both spherical and flat surfaces demonstrates the effectiveness and benefit of the proposed method and confirms its geometry-agnostic nature.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>In precision manufacturing, polishing is an inevitable post-processing step towards ensuring a nano-scale surface finish for manufactured objects when the surface roughness requirement goes beyond the capability of the manufacturing operations prior to polishing. <ref type="bibr">DeJule (1997)</ref> and <ref type="bibr">Frazier (2014)</ref>, among the others, discussed extensively the necessity and impact of polishing. A polishing process employs a polishing tool (an abrasive-embedded pad) that performs a repetitive rubbing action to remove the asperities on an object's surface in a small amount at each action. An effective and efficient polishing process requires changing the polishing tool from time to time, as the coarse tools employed to remove large asperities cannot deliver a fine finish but polishing with fine tools would progress too slowly. The tool also steadily degrades during the process due to loading, glazing and other issues <ref type="bibr">(Rao et al., 2015)</ref>. The decisions of when to change the polishing tool or to stop polishing altogether are crucial, demanding sound and consistent guidance <ref type="bibr">(Jin et al., 2020;</ref><ref type="bibr">Bukkapatnam et al., 2018)</ref>.</p><p>In our research, we polish diamond-coated silicon balls of radius 1.688 mm to make its surface roughness to the order of &#8764; 10 nm in terms of the Ra value <ref type="bibr">(ISO 4287, 1997)</ref>. The balls are used in the physical experiments for proving the feasibility of inertial confinement fusion <ref type="bibr">(Biener et al., 2009)</ref>. During the experiments, the initial ultraviolet laser surrounding the balls is converted into soft X-rays. Bursts of the soft X-rays drive the compression of the materials in the balls to conditions similar to those found deep in the sun. The success of these experiments highly depends on the quality of the ball and its surface roughness.</p><p>Figure <ref type="figure">1</ref> presents the picture of two balls for a visual comparison of the surface before and after being polished. The left ball is unpolished and the right one is polished to about 12nm in Ra. The picture was taken by a microscope Leica DM4000 M LED with transmitted light. The polished ball on the right reflects the ring illumination as a white circle on its surface. The polishing process is carried out over T stages, of which each stage denotes a period of time when a chosen polishing tool is applied to the surface of the polished object under the chosen conditions (like the force, rotary speed of the ball mandrel, etc). After each stage, the polishing action is paused and the surface is inspected by a microscopic measurement or imaging device, such as an optical profilometer, before the polishing action continues for the next stage. This polishing-inspection iteration repeats for every stage. What is measured after each stage affects the polishing decisions outlined earlier.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">&#119898;&#119898;</head><p>In our specific ball polishing process, during an inspection, the profilometer measurements are taken at M locations over the surface of the polished object (the white dots in Figure <ref type="figure">2</ref>, top-left panel). For each location, the profilometer returns the surface morphology covering a small area of 229.76 &#215; 172.32 &#181;m 2 , discretized into 640 &#215; 480 pixels over the X-Y plane. On each pixel, a height value, denoted by z and in the unit of &#181;m, is registered by the profilometer. After some data preprocessing, including curvature removal, the pixel heights are arranged into a matrix, with its row and column corresponding to the X and Y coordinates and its entry corresponding to the z value. In the engineering practice, this matrix representation is further transformed into a one-dimensional curve, with the pixel heights sorted from the highest peak to the deepest valley; see Figure <ref type="figure">2</ref>, bottom-left panel. Such curve is known as the bearing area curve (BAC) in manufacturing <ref type="bibr">(Stewart, 2000)</ref> or a quantile curve in statistics. With such data arrangement, the surface quality at any stage is represented by a group of BACs (quantile curves), each of which corresponds to one of the white spots.</p><p>Comparing the statistical characteristics of these nonparametric BACs of two successive stages could 0 (b) Improvement in variance Figure <ref type="figure">3</ref>: Curve change across stages. In both panels, the big display shows the original curves and the mean curves inserts, whereas the small inserts show the variance curve that is estimated by pointwise variances . To plot these curves, data from the first polishing experiment in <ref type="bibr">Jin et al. (2020)</ref> are used.</p><p>inform us whether there is a surface quality change, caused by the polishing action between the two inspections. When the action does make a difference to an object's surface, it most likely results in the removal of peaks and valleys, that are reflected by the upper and lower tail of the BACs respectively. As a result, one expects to see the tails of the mean curves to be flattened (or more precisely, upper tails lowered and lower tails raised) and/or the variances to be reduced. Figure <ref type="figure">3</ref> presents two examples illustrating the observations. Figure <ref type="figure">3</ref>(a) is at a stage where the polishing causes an obvious change in the mean curves but not so in the variance curves, whereas Figure <ref type="figure">3</ref>(b) is at a stage where the polishing improves both the mean and variance curves but the improvement in variance is more pronounced. Should neither the mean curves nor the variance curves show much difference, it is then rather reasonable to deem the polishing action prior to the current inspection not being able to change the surface quality substantially. The detection of surface change may directly inform about polishing decisions. When a polishing action leads to detectable surface changes, the implication is that it is effective, and consequently, the same action should be continued. When a polishing action does not lead to detectable surface changes, it signals the need to clean or change the current tool (to a finer scale), or if the current tool is already at the finest scale, the time to stop polishing.</p><p>Motivated by this observation, we formulate the polishing decision problem to be based on the change detection in nonparametric functional curves. Let &#181; t (s) and &#963; 2 t (s) be the mean and variance curve of the BACs at Stage t, respectively, where s is the quantile variable. Our specific formulation consists of testing the following conditions:</p><p>where &#964; is a quantile cut-off for identifying the upper and lower tails. For simplicity, we use the same &#964; for both tails, although it is not difficult to use two different quantile cut-offs. In the variance test, we test the variance reduction for at least 50% of the values because there is no guarantee that the variance is always uniformly reduced (although the right panel in Figure <ref type="figure">3</ref>(b) shows so). Using 50% in the test, we deem the condition true if there are more instances of reduction than otherwise.</p><p>Apparently, hypothesis testing methods on nonparameteric functional curves benefit directly our engineering decision problem; for this reason, we will provide a detailed review on nonparameteric curves testing in Section 2. In our effort, we make a particular use of the pointwise testing method developed by <ref type="bibr">Cox and Lee (2008)</ref>. The original method in <ref type="bibr">Cox and Lee (2008)</ref> tests the equality of two-sample mean curves, assuming the two samples have a common covariance structure. We extend their original method to the testing of both mean and variance curves for certain sub-domains of the curves.</p><p>The merit of our research effort can be summarized as follows. The proposed statistical testing does not require the sample location information and can thus be applicable to manufactured object of non-flat surface for which the location information is difficult to register. This applicability to non-flat surface, spherical surface specifically, is a major advantage in practice, considering the complexity in geometric features involved in manufactured artifacts. The statistical testing method is able to signal subtle and detailed changes in surface roughness and appears to be a well-suited tool for the much needed polishing decisions.</p><p>Because the resulting method is based on nonparametric curves, it relies on few assumptions and appears robust and easy to use. The statistical testing method, when applied to the polishing data, confirms the phenomenon of over-polishing, i.e., when the same polishing action is used for an excessively long time, it harms the surface quality rather than improving it. This finding reinforces the importance of timely decisions on tool changing or stopping. Making timely decisions leads furthermore to significant saving in time, materials and energy in a polishing process. While we use polishing to motive the study, our proposed procedure is applicable to other surface finishing actions. In the latter case study, we present the analysis using both polishing and lapping data.</p><p>The rest of this article is organized as follows. In Section 2, we review both the curve testing literature and the current practice of polishing decision making. Section 3 presents the proposed hypothesis testingbased method for detecting surface quality change. Section 4 applies the hypothesis testing-based method to three polishing/lapping experiments and demonstrates the impact it makes in terms of enhanced process decisions. Section 5 concludes this work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Literature Review</head><p>In this section, we review the literature in terms of both decision making in polishing processes and testing the difference between nonparametric functional curves.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Decision Making in Polishing Processes</head><p>The current industrial practice for making polishing decisions rely primarily on a simple average metrics of the surface roughness, which is the mean absolute deviation of a surface's roughness, denoted by Sa (ISO 4287, 1997) (or Ra if it is concerned with a one-dimensional line feature). Recall the pixel height matrix of z values over the X-Y plane at a give location, as illustrated in the bottom-right plot in Figure <ref type="figure">2</ref>. The Sa for a location is calculated as</p><p>where z is the sample mean of z(X, Y )'s at the location and A is the size of the area over which z values are obtained. One Sa is calculated for each location, i.e., each of the white dots in the top-left panel in Figure <ref type="figure">2</ref>. When the whole surface has M sample locations, i.e., M white dots, there are M distinct Sa values.</p><p>Practitioners often use the median of the M measurements of Sa values, denoted by Sa, to benchmark the roughness for the current stage of operations. The popularity of median Sa in practice is due to its easiness to compute/to use and its straightforward interpretability.</p><p>Recent works <ref type="bibr">(Wang et al., 2014;</ref><ref type="bibr">Liu et al., 2017;</ref><ref type="bibr">Bukkapatnam et al., 2018;</ref><ref type="bibr">Jin et al., 2020)</ref> showed people's awareness of a number of critical limitations of using average metric such as Sa or median Sa for the finishing process of precise manufacturing. <ref type="bibr">Jin et al. (2020)</ref> provided specific examples where a set of similar media Sa values correspond to surfaces with rather different roughness features. <ref type="bibr">Jin et al. (2020)</ref> further proposed a new decision making criterion for polishing by modeling the surface roughness at each stage through a Gaussian process (GP). The surface of the polished object is treated like a landscape, so that its analogy to spatial statistics is invoked, explaining why the GP model is used. <ref type="bibr">Jin et al. (2020)</ref> demonstrated that the scale parameter in the resulting GP model is sensitive to changes in the surface roughness and consequently devised a decision procedure based on that. While <ref type="bibr">Jin et al. (2020)</ref> took an important step forward in introducing sophisticated statistical modeling to decision making in polishing, there are still two limitations in their method.</p><p>The first is that the use of a single scale parameter in the GP model as the representation of the surface roughness still compresses the detailed surface quality information and may lead to information loss in subsequent decision processes. The second limitation is that the applicability of the resulting GP-based method is limited to flat (or nearly flat) surfaces, due to the use of a squared-exponential covariance structure in the GP model. When the surface has a strong curvature, like the ball-surface polishing here, or in some other cases where complicated geometric features are involved, either the covariance function in the GP model must have a fundamental redesign (to account for the effect of geodesic distances), so that the GPbased decision rules could be extended to non-flat surfaces, or a new geometry-friendly decision process needs to be designed.</p><p>Accommodating the aforementioned two requirements, we choose to propose a new geometry-friendly decision process, to be based on hypothesis testing of nonparametric quantile curves (the BACs) associated with two consecutive surface finishing stages.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Hypothesis Tests with Nonparametric Functional Data</head><p>Hypothesis tests of nonparametric functions entail the mean function test and the covariance structure test.</p><p>In terms of the mean function test, for example, <ref type="bibr">Hall and Hart (1990)</ref> studied a test statistic produced by the difference of the estimations of the two functions, and proposed to use bootstrap to estimate the distribution of the test statistic. <ref type="bibr">King et al. (1991)</ref> modified <ref type="bibr">Hall and Hart (1990)</ref>'s test statistic, so that an asymptotic distribution can be attained under the Gaussianality assumption. <ref type="bibr">Kulasekera (1995)</ref>, <ref type="bibr">Munk and Dette (1998)</ref> and <ref type="bibr">Neumeyer and Dette (2003)</ref> investigated their respective test statistics. Chapters 5 and 9 in <ref type="bibr">Zhang (2013)</ref> tested the mean functions of the samples of two curves through testing the L 2 difference between the two mean functions.</p><p>In terms of variance tests, the common technique is to use Karhunen-Lo&#232;ve expansion to approximate the continuous covariance operators with a finite set of functional principal components (FPCs), and test the equality of each component between two samples. <ref type="bibr">Benko et al. (2009)</ref> tested the equality tests of both mean functions and covariance structures. They constructed the test statistics that were the distance of the twosample FPCs and used bootstrap to estimate the distributions of the test statistics. Some other works were devoted to the testing of the covariance structures. For instance, <ref type="bibr">Panaretos et al. (2010)</ref> constructed a test statistic to test the FPCs assuming that the functional data follows Gaussian processes. <ref type="bibr">Fremdt et al. (2013)</ref> tested the same type of problem as <ref type="bibr">Panaretos et al. (2010)</ref>'s but relaxed the Gaussian process assumption.</p><p>Chapter 10 of <ref type="bibr">Zhang (2013)</ref> discussed the test of two covariance functions by defining an L 2 -based test statistic, measuring the difference between two covariance matrices.</p><p>The above-referenced works produce outcomes for a so-called global test, meaning that they give a binary answer concerning whether the two sets of functional curves are the same or not. But they did not identify where the differences may lie nor do these methods work for a subset of the input domain. Recall that the hypothesis tests we envision for the polishing process need to test for the tail portions or a subdomain (at least 50%), rendering these method not directly applicable to our engineering problem.</p><p>To the best of our knowledge, there are two studies that can do a local test, i.e., the test can be done to a subdomain, as the nature of our problem requires. One is <ref type="bibr">Cox and Lee (2008)</ref> and the other is <ref type="bibr">Prakash et al. (2021)</ref>. <ref type="bibr">Cox and Lee (2008)</ref> studied the testing problem when there are curve replicates and the input locations where the curves are sampled are the same between the two groups of curves. Prakash et al.</p><p>(2021) took advantage of the Bayesian posterior covariance to build a confidence band for the mean function difference. Their method is applicable to the circumstance where there is no curve replicate (a single curve in each test group) and the input locations are different.</p><p>Our problem setting matches with that of <ref type="bibr">Cox and Lee (2008)</ref> much better. That is why we choose to follow <ref type="bibr">Cox and Lee (2008)</ref>. But <ref type="bibr">Cox and Lee (2008)</ref> only presented a mean function test over the whole domain. To solve our problem, we need to introduce a mean function test for the tail portions and a variance test. Further we need to combine all the tests for devising a unified decision rule for making polishing decisions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Tests and the Detection Rule</head><p>In this section, we discuss how we expand the hypothesis test with functional data proposed by <ref type="bibr">Cox and Lee (2008)</ref>, so that the testing method can be applied to the inequality test of two-sample mean functions and that of two-sample variance functions. The new test provides the basis for designing a rule for detecting the surface quality change.</p><p>The basic idea of <ref type="bibr">Cox and Lee (2008)</ref> is to approximate the curve test with multiple pointwise tests of points on the curve. Considering the multiple tests as a family, to control the familywise error rate, they propose to use <ref type="bibr">Westfall and Young (1993)</ref>'s permutation method, as the family of tests are highly correlated when the points are close to each other. We extend the method of <ref type="bibr">Cox and Lee (2008)</ref> and establish test statistics corresponding to different hypothesis test statements demanded in polishing decision processes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Hypothesis Tests</head><p>Two groups of curves are represented with z tj (x), where t = 1, 2 is the group index and j = 1, &#8226; &#8226; &#8226; , J t is the curve index. Without loss of generality, let x &#8712; [0, 1], meaning the input value is normalized to the range of [0, 1]. We want to test for the existence of an inequality between &#181; 1 (x) and &#181; 2 (x), that is the population mean of two groups of curves, and for the existence of an inequality between &#963; 2 1 (x) and &#963; 2 2 (x), that is the population variance of two groups of curves, for a certain subdomain of the curves. Denote by &#981;(x) either &#181;(x) or &#963; 2 (x). The subdomain is denoted by A &#8834; [0, 1]. There are multiple options for this subdomain A;</p><p>Using the notations just introduced, the general form of the hypothesis test of functional inequality can be expressed as</p><p>A few specific hypotheses are given in the following:</p><p>1. Test on the mean function, regardless of the relationship between &#963; 2 1 (x) and &#963; 2 2 (x):</p><p>In this example, &#981;(x) = &#181;(x) and A = {x : all x &#8712; [0, 1]}.</p><p>2. Test on the variance function, regardless of the relationship between &#181; 1 (x) and &#181; 2 (x):</p><p>(5)</p><p>Cox and Lee (2008) presented a method valid for testing the equality of two mean curves, assuming that they have the identical covariance structure. Their hypothesis test is similar to the first example, i.e., in (4), except that the alternative hypothesis is stated as</p><p>Their method discretizes the continuous domain of the curve into a dense grid of points and performs univariate, pointwise t-tests for two-sample mean comparisons. Cox and Lee showed that despite the pointwise tests, their method is in fact a functional comparison. They employed the Westfall-Young permutation-based randomization procedure to control for the familywise error rate. Our test procedures borrow the ideas in <ref type="bibr">Cox and Lee (2008)</ref> but need to expand the test statistics and adjust the permutation steps (discussed in Section 3.1.2).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.1">Pointwise Test</head><p>Because <ref type="bibr">Cox and Lee (2008)</ref> employed pointwise tests, they discretize the continuous domain of x to a grid of points, and let us denote the discretized domain by</p><p>Using the discrete set notation, the pointwise testing problems can be expressed as:</p><p>For the hypotheses in ( <ref type="formula">6</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.2">Control Familywise Error Rate</head><p>Using the pointwise tests, the comparison in continuum is approximated by a multiple comparison problem.</p><p>We need to find a test statistic such that the family of the pointwise tests can be under the control of a prescribed significance level of &#945;.</p><p>Analogous to the type I error, the familywise error rate (FWER) is the probability of the false rejection of the complete null hypothesis that consists of multiple comparisons. That is, given &#945;,</p><p>For a univariate test, the p-value is uniformly distributed under the null hypothesis <ref type="bibr">(Klammer et al., 2009)</ref>. That is P r{P &#8804; &#945;} &#8804; &#945;, where P denotes the p-value as a random variable. With the family of null hypotheses, we want the joint probability of rejecting all the null hypotheses, given that they are true, is less than &#945;. The conventional Bonferroni correction does not perform well for multiple comparisons involving functional data, because the events of rejection of these individual null hypotheses are highly correlated when the input locations (x's), with which the hypotheses are associated, are close. But can one still control the familywise error rate considering the inherent correlations in the functional data? The short answer is yes. Westfall-Young's permutation-based procedure <ref type="bibr">(Westfall and Young, 1993)</ref> provides the ability to do so. Before diving into the specific procedure, we need to understand what we want to control, i.e., the test statistics.</p><p>Test Statistics. The choice of the test statistic for the purpose of FWER control depends on the subdomain of interest of A m :</p><p>&#8226; If A m = {at least one x &#8712; D m }, the test statistic has been studied by <ref type="bibr">Cox and Lee (2008)</ref>, which is minP , the minimal p-value among those computed from the family of individual tests. This is to say, as long as one x exists, such that &#981; 1 (x) &gt; &#981; 2 (x) does not occur by chance, we accept H &#981; 1 (x). Equation ( <ref type="formula">7</ref>) then becomes</p><p>We further denote the realization of minP by minp.</p><p>&#8226; If A m = {all x &#8712; D m } , the test statistic is maxP , the maximal pointwise p-value. We control the probability of most probably event, that is, the probability of the individual test, &#981; 1 (x) &gt; &#981; 2 (x), evaluated at the x that returns the maximal p-value among all x &#8712; A m . Should this individual test be under the significance level of &#945;, the p-values of every other event will be controlled as well. Equation (7) then becomes</p><p>We further denote the realization of maxP by maxp.</p><p>&#8226; If A m = {at least 50% of x &#8712; D m }, the test statistic is medP , the median of the pointwise p-values.</p><p>We control the median pointwise p-value to be smaller than or equal to the significance level of &#945;, so that the events of &#981; 1 (x) &gt; &#981; 2 (x) associated with the p-values smaller than the median p-value will be controlled as well. Equation ( <ref type="formula">7</ref>) then becomes</p><p>We further denote the realization of medP by medp.</p><p>Procedure of the Test. For generating the distribution of minP , or maxP , or medP , <ref type="bibr">Westfall and Young (1993)</ref> presented a permutation-based procedure. We use minP as an example to illustrate how to apply Westfall-Young's procedure to generate its distribution. For generating the distribution of maxP or medP , simply change the boldface min in the following with either max or med, respectively.</p><p>Recall that given the two samples of curves, we calculate the pointwise p-values under the null hypothesis and record the minimal p-value as p o min . We then randomly permute the curves between the two samples N times. At each iteration, the two groups of resampling curves are generated. With the resampling data, we Algorithm 1 Estimate the p-value of the functional curve test For stat = min, max or med,</p><p>Step 1. Perform univariate one-sided t tests for testing mean (or F tests for testing variance) on</p><p>Step 2. Let p o stat &#8592; p stat .</p><p>Step 3.</p><p>Step 4. Find l 0 , such that p ) , where p (l 0 ) = p o stat .</p><p>Step 5. The corrected p-value then is l 0 N .</p><p>We permute the whole curves between the two groups to preserve the inherent correlation among the points within a curve. This treatment is different from the practice in <ref type="bibr">Cox and Lee (2008)</ref>, in which the points are allowed to permute between the two groups. Cox and Lee (2008)'s permutation does not cause any problem, as they assume a common covariance structure of the two groups of the curves, meaning that two samples of discrete points follow the same joint distribution. In our engineering decision process, such assumption cannot be guaranteed. Permuting the curves as a whole relaxes such requirements and doing so is also consistent with engineering practice, as an assembly of curve segments from different stages does not have a valid engineering meaning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Hypothesis Tests Based Detection Rule</head><p>As discussed in Section 1, when a polishing action improves the surface quality, one expects to notice either the mean curves, especially its tail portions, are flattened, or the variance of the curves is reduced, or both.</p><p>In other words, if any or all of the inequalities in Equation 1 holds, it signals an improvement of the surface quality, suggesting that the polishing action is effective. Understandably, we would like to test the following three hypotheses on functional curves:</p><p>The superscripts, &#181; up and &#181; lo , indicate that the respective hypothesis is tested for the upper tail or lower tail of the mean functions, respectively, and the superscript, &#963; 2 , indicates the variance function test. These hypothesis tests have clear physical interpretation. The alternative hypothesis of Equation ( <ref type="formula">11</ref>) suggests that the peaks are being flattened; the alternative hypothesis of Equation ( <ref type="formula">12</ref>) suggests that the valleys are being filled; and the alternative hypothesis of Equation ( <ref type="formula">13</ref>) means that the surface is getting more even. A null hypothesis is rejected when there is strong evidence against it. The strength of the evidence is quantified by the p-value; the smaller, the stronger.</p><p>To perform the pointwise tests, we generate a grid of evaluation points</p><p>We evaluate every function z tj (s) at these finite points in D m , yielding the data vectors z tj = (z tj (s 1 ),</p><p>Upon discretizing the continuum of comparisons, the three functional hypotheses are approximated with three families of individual univariate hypotheses:</p><p>In the tests, &#181; t (s) and &#963; 2 t (s) are estimated by their sample counterparts, i.e., sample mean curves, z t (s), and sample variance curve, &#962; 2 t (s), such that</p><p>We control the familywise error rate of the hypothesis in Equations ( <ref type="formula">14</ref>) and (15) using the test statistic maxP as in Equation ( <ref type="formula">9</ref>), and control the familywise error rate of the hypothesis in Equation ( <ref type="formula">16</ref>) using the test statistic medP as in Equation ( <ref type="formula">10</ref>). The corresponding testing procedure is described in Section 3.1.2.</p><p>Combining the three tests, our rule for surface change detection is-if the null hypothesis of any of the three sub-families is rejected, it signals that the current polishing action is effective and should be continued; otherwise, the polishing action did not make statistically significant change to the surface under polishing. To control the type-I error of this final detection rule, we invoke the Bonferroni's method for multiple comparisons. The three families of tests, as in Equations ( <ref type="formula">14</ref>)-( <ref type="formula">16</ref>), can be considered independent with each other, so that Bonferroni's method sets the type-I error rate for each of the test families to be less than or equal to &#945;/3. Within each family, these pointwise tests are highly correlated, so that the respective FWER is controlled through the Westfall-Young's procedure, as outlined in Algorithm 1.</p><p>Please note that the above decision rule is for detection of a surface change. Once a surface change is not detected, what and how engineers should react to it needs further consideration. Generally speaking, there are two options: (a) cleaning the polishing tool or (b) changing to a finer tool. The second option also leads to a stopping decision of the overall manufacturing post-process, if the finest polishing tool has already been used.</p><p>Between the choice of cleaning the tool and changing to a finer tool, the decision is usually not hard. It does not cost much to clean the tool and use the clean tool to polish a little further. When there is still no improvement in the surface quality, it is then clear that a new tool is needed, or if no finer tool is there to be used, the polishing process should be naturally stopped at that point.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Physical Experiments</head><p>We apply the proposed hypothesis test based detection method to the polishing/lapping process of the spherical surface of silicon beads, introduced in Section 1. To achieve its nano-scale finish, the coated spherical bead is passed through the tip truncating (TT) process, the lapping process and the polishing process; the tools are refined as the beads go through these different processes. Each type of processes is divided into several stages so the surface roughness at the corresponding intermediate stages can be measured. See  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Pixel Height Calibration</head><p>The original pixel height matrix of Z embodies the inaccurate measurement from the imaging device due to its soft-fixturing process <ref type="bibr">(Hulting, 1995)</ref>. That is the process that the device takes a few measurements from the actual surface and, based on them, estimates the center location and radius. All following measurements are collected based upon taking the estimation as a reference. <ref type="bibr">Xia et al. (2011)</ref> created a figure to illustrate the difference between actual surface and the "nominal spherical surface" (that is the surface baseline referenced in this paper) that is a perfectly round circle with the estimated center and radius. However, the inaccurate estimation and the spherical baseline in the pixel height data makes it difficult to discern the surface roughness. One can see Figure <ref type="figure">5</ref>(a) for the roughness being easily overlooked. Recall the formula of Sa in Equation ( <ref type="formula">2</ref>). The position of the surface baseline is characterized by z.</p><p>We undertake the following preprocessing step to adjust the center and radius of the actual surface and recalibrate the height values of the pixels on the surface, so that the subsequent analysis can still follow what was explained in the earlier sections.</p><p>1. Convert the matrix Z to a vector z. We first read the matrix Z row-wise into a row vector of size I &#215; 1; see Figure <ref type="figure">4(b)</ref>. For the problem at hand, I = 640 &#215; 480 = 307, 200. Denote the i-th element of z by z (i) , i = 1, &#8226; &#8226; &#8226; , I. We also re-index X w and Y v to become X (i) and Y (i) , respectively. We want to ensure that z (i) is associated with its original coordinates, i.e., those z w,v is associated with.</p><p>2. Arrange the three newly created row vectors, X, Y and z into a matrix as [X T , Y T , z T ], where</p><p>Compute the coordinates of the center of the sphere, denoted by [X c , Y c , z c ] and the radius of the sphere, denoted by r. Such computation can be facilitated by using some software routines, like the MATLAB built-in function sphereFit.</p><p>3. Subtract the surface baseline from the vector z. Calculate the new pixel height, z , such that</p><p>This new pixel height is calibrated by subtracting the adjusted surface baseline from the original measures. The surface baseline adjustment process could be fairly simple for some geometric shapes, e.g., polyhedral geometries, but may be complicated for the other geometric shapes, e.g., spiral geometries. For the latter case, one may resort to the local regression method to smooth out the surface baseline <ref type="bibr">(Cleveland, 1979)</ref>.</p><p>One should note that although the pixel heights are calibrated from the surface baseline, the locations still retain their spatial distances and correlations on their geometrical surface.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Study of Bead Polishing Process</head><p>We have conducted two experiments to illustrate the use of the method for detecting, respectively, the lackof-improvement point during a polishing process and lapping process. This subsection focuses on the polishing process in the first experiment, whereas Section 4.3 presents the second experiment, which has only lapping and no polishing action. Part of the reason that we skip the analysis of lapping in the first experiment is due to insufficient locations sampled on the bead at the lapping stages for our permutationbased method to be applied.</p><p>The surface polishing process in the first experiment comprises of a stage of TT, four stages of lapping, and nine stages of polishing. Figure <ref type="figure">6</ref> presents the trend of Sa from coating to the last polishing stage. In Figure <ref type="figure">6</ref>(a), the notation along the horizontal axis indicates that the Sa displayed is measured right after that specific processing stage. For instance, "Lap 3" means the third time when the lapping process was paused and the measurement of the surface roughness was taken. Figure <ref type="figure">6</ref>(b) presents a zoom-in version of the Sa boxplots for the nine polishing stages.</p><p>After coating, the Sa value of the surface is 453.2 nm. The tip truncating (TT) process reduces the Sa value to 395.7 nm. Afterward, the four stages of lapping process bring the value significantly down to an average of 24.8 nm, suggesting that the lapping process makes significant progress in smoothing out the initial rough surface. Up to this point, the use of Sa is adequate and there is hardly any disagreement on decision making or action taking.</p><p>From the first stage of polishing process and onward, however, the reduction in Sa is not that significant.</p><p>The zoom-in view on Figure <ref type="figure">6</ref>(b) shows some degree to further reduction, from roughly 12.5 nm to a little bit over 10 nm. But the cost to accomplish that reduction is huge. From Polish 1 to Polish 9, the time spend is a total of 240 hours, or 10 days. Under such long time of polishing, the risk has increased considerably that the bead, which is hallow inside, could crack, or other damages may happen to it. It would be preferred if such overpolishing can be avoided by triggering an earlier stopping point. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.1">Hypothesis Tests Results versus Sa</head><p>Table <ref type="table">1</ref> presents the results using the hypothesis testing-based decision process. It includes the p-values associated with the three hypothesis tests and the decisions that the p-value suggests. Recall that the detection rule is that as long as any of the null hypotheses is rejected, the surface quality is considered being improved beyond random fluctuation. If none of the null hypotheses is rejected, we deem that no significant surface quality improvement has been detected.</p><p>To register a decision, a threshold for p-value is needed. However, the p-value thresholds chosen in practice, for instance, the customary 0.05 cut-off, bears certain degree of arbitrariness. A closer look at the p-values in Table <ref type="table">1</ref> offers a clue in selection. It is apparent that the p-values therein belong to three groups, {0.02, 0.04, 0.05, 0.06}, {0.10, 0.12}, and {&gt; 0.22}. Recall that we have three hypothesis tests in each decision. By invoking Bonferroni adjustment, the type-I error for the overall decision is three times of that of individual hypothesis tests. Should we deem a p-value of 0.10 or 0.12 significant at the individual test level, it implies the type-I error for the overall decision is at the level of 0.30 or greater. This seems outside the typical choice of p-value cut-off. For this reason, we deem that only the p-values in the first group imply certain degrees of significance. The corresponding type-I error at the overall decision level is therefore {0.06, 0.12, 0.15, 0.16}, respectively. We further treat that a p-value smaller than 0.033 at the individual test level, or smaller than 0.1 at the overall decision level, as significant, and a p-value between 0.033 and 0.067 at the individual test level, or between 0.1 and 0.2 at the overall decision level, as marginally significant. In the other words, the significance levels used here are 90% and 80%, so that a decision is significant when the associated p-value is greater than 90%, insignificant when lower than 80%, and marginally significant for those in between. Even though these outcomes are consistent, the merit of using the hypothesis testing method is that the new method provides a more detailed information informing users about where a change is detected and to which degree it is significant.</p><p>On the other hand, not all the detection outcomes using the hypothesis testing method is the same as using Sa. Using the Sa values appears to be more readily in signaling an improvement in the surface quality.</p><p>Consider the decreasing trend of Sa from Stage P3 to Stage P6 in Figure <ref type="figure">6(b)</ref>. By contrast, the hypothesis tests do not detect significant improvement on the surfaces after these polishing stages, per defined in Equations ( <ref type="formula">14</ref>)-( <ref type="formula">16</ref>)), except that some marginal improvement at the upper tail (i.e., peak removals) from P5 to P6.</p><p>In Figure <ref type="figure">7</ref>, we plot the average BACs and the associated 96.7% confidence bands (96.7% corresponds to the 0.33 p-value cut-off) on two consecutive stages to visualize the two-stage surface roughness changes and discern if the outcome difference between the hypothesis tests and Sa makes sense. Since the median Sa shows a decreasing trend, we hope to see that (1) the mean curve of Stage t (solid red curve) representing the peaks (Quantile 0 to 0.25) is lowered compared to that of Stage t -1 (solid blue curve) and/or (2) the mean curve of Stage t, representing the valleys (Quantile 0.75 to 1) is raised. The reality is that some of the tail portions of the BACs does not show significant differences. Even if there are some differences, those appear to be well within the confidence bands. We mark certain areas in Figure <ref type="figure">7</ref> with dashed circles to highlight. It is evident to us that the median Sa fails to capture such regional differences but these regional differences are crucial in reaching a sensible decision for these ultra-precise manufacturing products.</p><p>We also observe that once in a while, the BACs at a later stage of polishing could deteriorate as compared with the preceding stage. Consider the example of the lower tail portion from Stage P5 to Stage P6 (Figure <ref type="figure">7</ref> (c)), representing their valleys. It turns out that after additional polishing the valleys at Stage P6 are deeper than those at Stage P5, mostly likely due to extra scratches introduced on the surface during polishing, which is a clear indication of over polishing. Please note that in our plot, we only plot the Quantile 0.75 to 0.998 while leaving out a tiny portion close to 1, because that extremely deep valley pixels are sometimes of much great depth and their presence compresses the scale on the plot, making the visualization difficult.</p><p>If using the hypothesis testing outcomes in Table <ref type="table">1</ref>, the polishing process should stop at Stage P2, or if not so quickly, at the latest at Stage P5. Doing either will save significant polishing time, reduce materials removal, and lower the risk of over polishing and bead damaging in the long operation stretch. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Study of Bead Lapping Process</head><p>The second experiment comprises a stage of coating, a stage of TT and ten stages of lapping. Figure <ref type="figure">8</ref> presents the boxplots of Sa for the whole process, where Figure <ref type="figure">8</ref>(b) is the zoom-in view of Stage L6 and onwards. The lapping process, after L5, is able to bring the surface roughness to the level of 12 nm. This time, the pattern of fluctuation in Sa is much more obvious, making the decision harder using the traditional decision tools. From Stage L6 and onward, the time spent, a total of 80 hours, and the material removed, 7.72 mg, are again significant.</p><p>The hypothesis tests results shown in Table <ref type="table">2</ref> detect variance reduction from Stage L7 to Stage L8, but do not confirm the mean reduction trend as observed in the Sa plot for Stage L8 to L10, except for a marginal peak flattening from L8 to L9. Inspecting the Sa boxplots, the variance reduction from Stage L7 to Stage L8 is not so obvious. We therefore present the detailed BACs and the associated confidence bands in Figure <ref type="figure">9</ref> for Stage L7 (blue curves) versus L8 (red curves). On these plots, it is clearly showing that the band of L8 is narrower than that of L7.</p><p>Figure <ref type="figure">10</ref> presents BACs for Stage L6 and onward and compare those on two consecutive stages. The mean curve comparison show that between Stages L6 and L7, the reason for a lack of detection by the hypothesis testing method is due to that either the highest peak or the deepest valley is not improved. Some may argue that those are outliers and should not be considered, while others may argue that the extreme of the peaks and valleys does reflect the surface roughness, as they reveal the bumps and scratches produced during the action of lapping. We want to note that our decision process can be easily tailored to suit different needs in the specific context of applications. In case that the sensitivity to the peaks and valleys is appreciated,  then the above results show that the hypothesis tests do have the desired sensitivity in detection. If the highest peaks or the deepest valleys should be excluded from decision making, then one just needs to adjust the definition of D u and D l in Equations ( <ref type="formula">14</ref>)-( <ref type="formula">16</ref>)) to accommodate such changes. The rest of the testing procedure stays more or less the same.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Detection Sensitivity Analysis</head><p>In this section, we perform sensitivity studies on the number of sampling locations in Section 4.4.1 and on the value of &#964; in Section 4.4.2. Recall that &#964; specifies the tail portion used in Equations ( <ref type="formula">14</ref>)-( <ref type="formula">16</ref>). The deepest valley The deepest valley  We make two observations. The first observation is that the overall conclusion is reasonably consistent and stable when using nine or more sampling locations-other than the variance test of Stage L2 vs. L3, all other tests lead to the same decision. The second observation is that using more sampling locations does help improve the robustness of the decision, but, of course, at a higher measurement cost. We note that the decision process based on twelve and fifteen sampling locations reached an opposite conclusion in the variance test of L2 vs. L3. Apparently when the number of sampling locations increases, the initial difference between the variance curves is reduced, to the degree that it cannot reject the null hypothesis.</p><p>Please see the variance curves on the two stages shown in Figure <ref type="figure">11</ref>.</p><p>Through this analysis, our recommendation is for the operator to use a slightly larger number of sampling locations if affordable. But in consideration of economic operation, nine sampling locations are deemed an acceptable practice, especially considering that using nine sampling locations yields a conservative decision, which is to continue polishing, rather than stopping prematurely. We also confirm that when analyzing this new set of data with more sampling locations, we did not come across any violations or contradictions of the messages obtained through the previous nine-location experiments. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.2">Sensitivity on &#964;</head><p>Our default choice is &#964; = 25%. Intuitively, this &#964; choice says that the top quarter is the upper tail, the bottom quarter is the lower tail, and the 50% in between is the middle body. We consider this is a reasonable choice, allocating a sufficiently large portion to cover the two tails. For both 9 and 15 sampling locations, we here conducted a sensitivity analysis by varying the tail portion from a 5% to 33%, i.e., by comparing outcomes of six different lengths of tails &#964; = 5%, 10%, 15%, 20%, 25% and 33%, respectively. The outcomes of the mean tests are listed in Table <ref type="table">4</ref>. We did not notice any significant difference in the p-values, and certainly no change in the detection outcomes associated with any one of the hypotheses. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5">Method Regression Test on a Flat Surface</head><p>As we explain earlier about a main advantage of the hypothesis test based method, it does not require geometry characteristics. So it is certainly applicable to detecting surface quality changes on a flat surface as well. We take the data from the flat surface polishing experiment published in <ref type="bibr">Jin et al. (2020)</ref> and test the proposed method on it. For the details on that polishing experiment, please refer to <ref type="bibr">Jin et al. (2020)</ref>. Table <ref type="table">5</ref> summarizes the test results.</p><p>The right half of Table <ref type="table">5</ref> presents the p-values of the three hypothesis tests: the upper tail mean test, the lower tail mean test, and the variance test. Consistent with studies presented in the two preceding subsections, the p-value cut-off used is 0.1 at the overall decision level, or 0.033 at the individual test level.</p><p>As long as any of the three hypothesis tests is rejected, a change in surface quality is considered being detected and the action suggested is to keep polishing with the current tool. Otherwise, no surface change is detected and the action suggestion is to either clean or change the current polishing tool, or stop altogether.</p><p>The column "GPBD guided action suggestion" shows the suggestions given by the Gaussian process (GP)-based decision rule proposed by <ref type="bibr">Jin et al. (2020)</ref>. The GP-guided decision process is to compare the similarity between sampling locations, quantified by the scale parameter in the GP model, between Stage  By comparing the decision outcomes from the two methods, we notice that every time when GPBD suggests a change, HT-based method also suggests the same. On the other hand, HT-based method suggests more changes, and more importantly, earlier change points. Should the HT-based method be followed, the first change action would have been at Stage 6, five stages earlier than that suggested by GPBD. This suggestion means that one ought to change the polishing tool from its initial 800-grit pad to a finer 1, 200-grit pad. By looking at the value of Sa, we can see the merit of this new suggestion. From Stage 6 through Stage 11, Sa is fluctuated between 0.135&#181;m and 0.174&#181;m with no clear sign of reducing. It appears that using the 800-grit was effective to bring down the surface roughness from a very rough raw surface to the level of 0.150&#181;m, namely 150nm, but was ineffectiveness to make further inroads. This may be the result of the inherent capability of the 800-grit. Had one changed the pad after Stage 6, the next two changes suggested by the HT-based method may not necessarily happen anymore, because once a new pad is used, the product surface would react differently and the change in the surface roughness usually follows a different course.</p><p>From the method design point of view, we can also see that the HT-based decision process presents certain advantages over the GPBD-guided decisions. As explained above, GPBD characterizes the spatial correlation between sampling locations; the stronger the correlation, the smoother the surface. This is reasonable, but the information in the roughness is aggregated into a scalar correlation parameter. Jin et al.</p><p>(2020) demonstrated that this scalar correlation parameter is still more informative than the median Sa</p><p>value. Yet, in the process of condensing the information associated with BACs into scale parameters, certain fine granularity of information could get lost. By contrast, the HT-based method detects a surface quality change by comparing two set of curves without the data compression steps, so it appears more robust and preferred.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Concluding Remarks</head><p>We proposed in this method that not characterization for enabling endpoint decisions in surface finishing processes of precision manufacturing products. We illustrate its applicability to spherical beads polishing/lapping processes. The method detects the surface quality lack-of-change point by comparing the curve clusters of two consecutive polishing stages. If none of the three situations happensthe lowered upper tail, the raised lower tail or the reduced the surface quality lack-of-change point is detected. Then, it calls a need of polishing action change into one's attention.</p><p>There are a number of unique features of the method worth highlighting. Compared with GP-based or other model-based methods, the proposed decision method does not need to specify an underlying model and rely on strong assumptions. The proposed method is built upon statistical testing of nonparametric quantile curves, which are a direct result of sorting the measurements of surface roughness. Such quantile curves, known as the bearing area curves in engineering, are readily available in many different kinds of finishing processes. This explains that the method can be applied to both lapping and polishing processes, both spherical and flat surfaces, without changes in its underlying procedure. The method is able to test the functions for each of the two groups by sampling ij . Run our proposed hypothesis test for the mean tails and repeat the process for 1000 runs. The functions f 1j (x) and f 2j (x) generated for one run and their mean functions f1 (x) and f2 (x) are shown in Figure <ref type="figure">12</ref>.</p><p>The average L 2 distance percentage over between two groups of functions over 1000 runs is 3.52%.</p><p>The type II error of the hypothesis test on the simulation data, with the type I error controlled under 0.03, varies with the number of curves, N . Table <ref type="table">6</ref> shows the estimated type II error and the average L 2 distance percentage corresponding to each N . The type II error decreases as the number of curves of each group increases, while the distance between two groups of curves stays more or less the same. That is consistent with the commonsense of a large sample size increasing the power of a hypothesis test.</p><p>However, in practice it is quite consumable and, sometimes, infeasible to draw many samples. As in our polishing experiment, we are only able to image nine to 15 locations on the spherical surface of peppercornsized bead. Although the 0.1 to 0.2 type II error rate may lead to an early change of polishing actions, e.g., changing pad or stopping polishing, this decision making will not necessarily worsen the surface finishing quality, considering the small difference between the two groups, but may save the polishing effort, prevent the material from being excessively removed and reduce the possibility of creating defects on the surfaces.</p></div></body>
		</text>
</TEI>
