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

Extracting particle size distribution from laser speckle with a physics-enhanced autocorrelation-based estimator (PEACE)

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (19) 석유수지(21) 에폭시수지

기본 정보

저자
  1. Qihang Zhang — Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA, 02139, USA
  2. Janaka C. Gamekkanda — Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, MA, 02139, USA
  3. Ajinkya Pandit — Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, MA, 02139, USA
  4. Wenlong Tang — Data Sciences Institutes, Takeda Pharmaceuticals International Co, 650 E Kendall St, Cambridge, MA, 02142, USA
  5. Charles D. Papageorgiou — Process Chemistry Development, Takeda Pharmaceuticals International Co, 40 Landsdowne St, Cambridge, MA, 02139, USA
  6. Christopher Mitchell — Process Chemistry Development, Takeda Pharmaceuticals International Co, 40 Landsdowne St, Cambridge, MA, 02139, USA
  7. Yihui Yang — Process Chemistry Development, Takeda Pharmaceuticals International Co, 40 Landsdowne St, Cambridge, MA, 02139, USA
  8. Michael Schwaerzler — Innovation and Technology Sciences, Takeda Pharmaceutical Company Limited, 200 Shire Way, Lexington, MA, 02421, USA
  9. Tolutola Oyetunde — Innovation and Technology Sciences, Takeda Pharmaceutical Company Limited, 200 Shire Way, Lexington, MA, 02421, USA
  10. Richard D. Braatz — Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, MA, 02139, USA
  11. Allan S. Myerson — Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, MA, 02139, USA
  12. George Barbastathis — Department of Mechanical Engineering, Massachusetts Institute of Technology, Cambridge, MA, 02139, USA. gbarb@mit.edu|||Singapore-MIT Alliance for Research and Technology (SMART) Centre, 1 Create Way, Singapore, 117543, Singapore. gbarb@mit.edu|||Department of Mechanical Engineering, Massachusetts Institute of Technology, Cambridge, MA, 02139, USA
DOI
10.1038/s41467-023-36816-2
저널
Nature Communications
발행년도
2023
발행기관
Nature Portfolio
피인용수
21
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41467-023-36816-2
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4322735168

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(19) 석유수지, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
particle size distribution, real-time monitoring, laser speckle, powder drying process, machine learning
판단 근거
이 논문은 레이저 스펙클 분석과 머신러닝을 이용해 분말의 입자 크기 분포(PSD)를 실시간으로 측정하는 기술을 다룹니다. 이는 코오롱인더스트리의 화학/수지 및 엔지니어링 플라스틱 사업에서 고분자 분말이나 첨가제의 입도 제어 및 공정 모니터링 분석 기법으로 응용 가능합니다.
R&D 활용 포인트
석유수지, 에폭시, 컴파운드 제조 공정 중 분말의 입도 변화를 비파괴적으로 실시간 모니터링하여 품질 균일성을 확보하는 분석 시스템 구축에 활용 가능합니다.
평가 입력
본문 40,271자

초록

Abstract Extracting quantitative information about highly scattering surfaces from an imaging system is challenging because the phase of the scattered light undergoes multiple folds upon propagation, resulting in complex speckle patterns. One specific application is the drying of wet powders in the pharmaceutical industry, where quantifying the particle size distribution (PSD) is of particular interest. A non-invasive and real-time monitoring probe in the drying process is required, but there is no suitable candidate for this purpose. In this report, we develop a theoretical relationship from the PSD to the speckle image and describe a physics-enhanced autocorrelation-based estimator (PEACE) machine learning algorithm for speckle analysis to measure the PSD of a powder surface. This method solves both the forward and inverse problems together and enjoys increased interpretability, since the machine learning approximator is regularized by the physical law.

본문 40,271자

본문 펼치기
Article https://doi.org/10.1038/s41467-023-36816-2 # Extracting particle size distribution from laser speckle with a physics-enhanced auto- correlation-based estimator (PEACE) Received: 27 April 2022 Accepted: 17 February 2023 Check for updates Qihang Zhang 1, Janaka C. Gamekkanda 2, Ajinkya Pandit 2, Wenlong Tang3, Charles Papageorgiou 4, Chris Mitchell4, Yihui Yang4, Michael Schwaerzler 5, Tolutola Oyetunde <sup>5</sup>, Richard D. Braatz 2, Allan S. Myerson 2 & George Barbastathis 6,7 Extracting quantitative information about highly scattering surfaces from an imaging system is challenging because the phase of the scattered light undergoes multiple folds upon propagation, resulting in complex speckle patterns. One specific application is the drying of wet powders in the pharmaceutical industry, where quantifying the particle size distribution (PSD) is of particular interest. A non-invasive and real-time monitoring probe in the drying process is required, but there is no suitable candidate for this purpose. In this report, we develop a theoretical relationship from the PSD to the speckle image and describe a physics-enhanced autocorrelation-based estimator (PEACE) machine learning algorithm for speckle analysis to measure the PSD of a powder surface. This method solves both the forward and inverse problems together and enjoys increased interpretability, since the machine learning approximator is regularized by the physical law. Speckle results from the propagation of a wavefront whose phase has been strongly modulated by spatially variant features across a surface (or volume), so the speckle is an encoding of spatial patterns on the rough surface. As long as the morphology statistics are invariant, it is straightforward to relate statistical moments of the surface to the statistical moments of the speckle <sup>1–3</sup> . The laser speckle pattern has long been used to characterize surface roughness <sup>3–12</sup> . However, the method typically works only when the surface height fluctuation (equivalently, typical particle size) is smaller than or comparable to the light wavelength <sup>3</sup>, limiting its application to surfaces encountered in many industrial processes, such as pharmaceuticals manufacturing. Electronic Speckle Pattern Interferometry (ESPI) can measure the surface motion distribution even at nanometer scales, but it is a two-step measurement with a reference beam, inhibiting real-time monitoring and lacking absolute height information <sup>13–15</sup> . Laser speckle contrast imaging is qualitative and does not yield quantitative surface roughness <sup>16</sup> . Interferometric particle imaging can measure the particle size and shape, but it only works for a single particle or sparsely distributed particles <sup>17–19</sup> . Recent advances in Machine Learning have been successful in imaging through scattering media <sup>20–25</sup> and speckle suppression <sup>26–31</sup> . However, in both cases, the speckle pattern is treated as an unwanted disturbance. Extracting the scattering media information from the speckle has also been pursued qualitatively: for example, the classification of materials according to the scattered speckle patterns <sup>5–8</sup> . The main difficulty preventing further quantitative speckle analysis is the sensitivity of the phase signal to surface randomness, which hinders neural networks’ ability to identify other underlying dynamics. 1Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, USA. 2Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, MA 02139, USA. <sup>3</sup> Data Sciences Institutes, Takeda Pharmaceuticals International Co, 650 E Kendall St, Cambridge, MA 02142, USA. <sup>4</sup> Process Chemistry Development, Takeda Pharmaceuticals International Co, 40 Landsdowne St, Cambridge, MA 02139, USA. <sup>5</sup> Innovation and Technology Sciences, Takeda Pharmaceutical Company Limited, 200 Shire Way, Lexington, MA 02421, USA. <sup>6</sup> Department of Mechanical Engineering, Massachusetts Institute of Technology, Cambridge, MA 02139, USA. <sup>7</sup> Singapore-MIT Alliance for Research and Technology (SMART) Centre, 1 Create Way, Singapore 117543, Singapore. [e-mail: gbarb@mit.edu](mailto:gbarb@mit.edu) Quantitative granularity characterization is desired in many applications <sup>32–34</sup>, particularly the powder drying process in the pharmaceutical industry, during which the wet solid (“cake”) is converted into a powder consisting of particles with the requisite size distribution. These powders are subsequently employed with other ingredients to form solid oral dosage forms such as tablets and capsules. However, agglomeration, deagglomeration, and crystal breakage are all likely during the drying process. Occurrence of hard agglomerates could influence content uniformity and functionality in the final drug product, e.g., if the active ingredient concentration becomes too high. Even though the parameters of the drying processes are generally well-controlled, the evolution of the particle sizes during agitation is not fully predictable. Thus, it is crucial to monitor particle sizes quantitatively in real-time and correct for abnormal size changes through feedback control on process parameters (e.g., temperature, agitation speed). No real-time online monitoring methods exist presently, to our knowledge, that can detect early on and prevent such abnormal particle size changes for wet powder drying. Since the cake surfaces closely meet the Lambertian assumption <sup>35,36</sup>, imaging by a standard camera from a distance compatible with the manufacturing setting (~0.2–0.5 m away from the powder) does not provide sufficient contrast or spatial resolution to extract the surface PSD. Machine vision to analyze the appearance of the cake surface and detect agglomerates is generally limited due to the same reason <sup>37</sup> . Imaging with cameras in situ relies on particle sparsity, which only works for solid suspensions rather than wet powder <sup>38–40</sup> . Moreover, this method is invasive, so there is a risk of the powder obscuring the viewing field and rendering the imaging operation impossible. Instead, manufacturers commonly rely on trained personnel to visually observe the mixing— but this can be subjective. Lastly, it is possible to extract a sample from the cake at fixed time intervals and pass it through a particle size analyzer instrument. However, this method is invasive and slow and, thus, not suitable for industrial use. In this work, we propose a physics-enhanced autocorrelationbased estimator (PEACE) to extract the PSD of a powder surface from its laser speckle as shown in Fig. 1. With the help of the free-space propagation equations, we relate the ensemble-averaged spatial Fig. 1 | Overview of the speckle probe and the PEACE algorithm. a A sketch of our speckle probe. We collect the scattered light from the scattering media— powder in our case—with a monochromatic CCD camera. The Machine Learningbased analysis can extract the quantitative surface information, the PSD, from the speckle statistics. b PEACE training loop. The forward operator comes from the physics model. A small “generator” with a physics-picture-inspired structure is integral autocorrelation function to the statistics of powder surface, i.e., the PSD. This relationship becomes the forward model for the estimator, yet it is inevitably incomplete. For example, particles may overlap along the longitudinal direction, which should not be introduced in the explicit model lest it becomes exceedingly complicated. Similarly, our experimental approach includes a finite spatial integral and temporal averaging of several frames, which are subject to sensor uncertainties in the model. Another limitation is that collecting sufficient experimental data to compensate for these uncertainties is prohibitively expensive. We use PEACE to compensate for these uncertainties in the forward model. As shown in Fig. 1b, a small neural network called “generator” is combined with the forward model to form the final map from the PSDs to the experimentally collected autocorrelation images. In this way, starting from a modest amount of experimental data we can create a much larger synthetic (simulated) dataset. Finally, a deep neural network (DNN) called “estimator” is trained by the synthetic dataset to learn the inverse mapping from the speckle autocorrelation to the PSD. The estimator is overparameterized but generalizes well, confirming recent theoretical developments <sup>41</sup> . This method solves both the forward and inverse problems together, improving the machine learning model’s generalization ability and interpretability. For example, the explicit forward model allows us to estimate bounds on our prediction ability. We note that the terms “generator” and “estimator” may be reminiscent of the generator and discriminator in Generative Adversarial Networks (GANs) <sup>42</sup> yet our approach is significantly different in that we do not employ adversarial training. Here, we show that our method overcomes these limitations by providing a real-time, non-invasive, far-field optical probe (as shown in Fig. 1a) to monitor particle size distributions quantitatively. Especially for densely concentrated wet powders, this method is the first in-line measurement, and it is easily deployable in the industrial instrument. Results Forward model—speckle and particle statistics With the help of the physics model, we derive the expression of the forward operator H in the “Methods” section and in Supplementary trained by a modest amount of the experimental data. The forward operator and the trained generator produce a much larger synthetic dataset. This synthetic dataset trains the DNN “estimator” to learn the mapping from the measured speckle autocorrelation to the particle size distribution (PSD). The ‘generator’ only contains 2.8k parameters, while the estimator has 377k parameters. Fig. 2 | KCl powder results with sizes (i) ~106–180 μm and (ii) ~425–500 μm. a Microscope and b commercial camera photos for two samples. c Raw speckle images collected by the CCD camera. d These four spatially integrated autocorrelation images are collected on the same sample with different particle positions. e The upper half image shows the averaged 1000 autocorrelation frames from the measurement. Since the particle position is ergodic, the temporal average equals the ensemble average of the autocorrelation image. The lower half image Section 3. C = ∣ shows the calculation result from the forward operator. f The ground truth particle size distribution (PSD) and the corresponding estimator prediction are plotted together. g Cross-section plots of the averaged autocorrelations in e for different samples with ascending PSDs. The positions of the high-order lobes are marked. We raise the autocorrelation to the power of one-eighth to enhance the sidelobes’ visibility. pðrÞrdr∣ <sup>2</sup> is the normalization factor. Therefore, the main R pðrÞ <sup><u>sin</u></sup> <u>ð</u> <sup><u>ru</u></sup> <u>Þ</u> dr∣ u 4sin <sup>2ðDu</sup> <u>2</u> <sup>~~<u>Þ</u>~~</sup> D <sup>2</sup> u <sup>2</sup> <sup>,</sup> <sup>and</sup> <sup>the</sup> <sup>side-lobe</sup> ring-shape feature is dominated by intensities are modulated by ∣ R pðrÞ <sup><u>sin</u></sup> uð <sup><u>ru</u></sup> <u>Þ</u> dr∣2. We design the progression of a typical experiment based on this forward operator as shown in Fig. 2. intensities are modulated by ∣ - AðuÞ = HðpðrÞÞ = <sup><u>1</u></sup> C - 4sin <sup>2</sup> <sup><u>Du</u></sup> <u>2</u> ∣ D <sup>2</sup> u <sup>2</sup> Z 2 ð1Þ pðrÞ <sup><u>sin</u></sup> uð <sup><u>ru</u></sup> <u>Þ</u> dr∣ R where hAi denotes the ensemble average autocorrelation of the speckle pattern, pðrÞ is the PSD in terms of number of particles, D is the beam spot diameter which is much larger than the particle size r in our range of interest (50–1000 μm), and Figure 2a shows two sample sets with different particle sizes imaged through a regular microscope. Figure 2b are photos collected Fig. 3 | Generator and estimator prediction results with the experimental test dataset. The results of 10 test sample sets are plotted. The first and second columns show the output from the forward operator H and the generator G, respectively. The measured 200 frames averaged autocorrelations are plotted in by a commercial camera, with broadband and spatially incoherent illumination. The contrast and resolution are too coarse to resolve the particles, not displaying any discernible features that could be attributed to particle size. Figure 2c shows their raw speckle images collected from the CCD camera. Figure 2d shows the respective speckle autocorrelation patterns, which are subsequently averaged as shown in Fig. 2e. The calculation results in Fig. 2e are passed to a two-stage neural network consisting of the generator and the estimator. The generator corrects the physical model for uncertainties, such as overlapping particles that would be very hard to model analytically. The estimator receives its input from either the generator or the measured results (shown in Fig. 2e) and produces the cumulative distribution of the particle sizes. By one more differentiation step, we obtain the final estimate of the PSD as a vector of powder concentrations vs. particle size. Figure 2f shows one typical test result from a particle distribution never shown during the neural network’s training stage, as computed by the combined generator-estimator algorithm. This estimated PSD can be compared with the ground truth PSD that we established using a commercial particle size analyzer, the “Mastersizer” (details in Supplementary Section 2). The complete details of this process are in the Supplementary Sections 3 and 4. Figure 2g shows cross-sections of the averaged autocorrelation for different sample particle sizes. The intensities of the first and second-order lobes monotonically decrease with ascending PSDs. The higher-order lobes are merged into the background fluctuations for the large particle size sample, while for the small particle size sample the lobes are clearly resolvable. the third column. The prediction (marked as orange) from the estimator F and ground truth (marked as red) of the cumulative distributions and the corresponding PSDs are plotted together in columns 4 and 5. Test results and model visualization for PEACE We also conducted a thorough analysis of the generalization ability of the algorithm, shown in Fig. 3. This experimental test dataset was disjoint from the training data.The first column is the calculation result for the measured PSD from the forward model. The second column shows the image produced by the generator, while the third column shows the corresponding ground truth, i.e., the experimental averaged autocorrelation. These images are averaged from 200 autocorrelation images, different from the 1000 frames averaged one in Fig. 2e. Reducing the number of averaging frames sacrifices the signal-to-noise ratio but speeds up the data collection time for each prediction. There is still a slight mismatch between the generated image and the measured image in the surrounding area. These noise shape features are the residual from the ensemble average because the image is averaged with a finite number of frames only. Since they are away from the region of interest (later discussed in Fig. 4e), this deviation will not affect the performance of the estimator. The predictions and the ground truths measured from the particle size analyzer are plotted together in columns 4 and 5. The cumulative distribution follows from a clear physical definition of the size distribution for the non-spherical particles, such as the cubic-shaped KCl particles shown in Fig. 2a. More details about the cumulative distribution are included in Supplementary Section 4. We use two methods to visualize our estimator. The first is plotting the output of each stage (the estimator’s detailed structure is in Supplementary Section 4). As shown in Fig. 4a–d, the first stage output deemphasizes the zero-order peak and differentiates the side region. Fig. 4 | Network visualization of the estimator F. a The output of the first stage with 8 filters. b The output of the second stage with 16 filters. c The output of the third stage with 32 filters. d The output of the fourth stage with 64 filters. The second stage enhances the differentiation in the side area. The last two stages decode the information and extract the features. The other method is the Gradient-weighted Class Activation Mapping (GradCAM) <sup>43</sup> . This method visualizes the regions of input that are “important” for predictions. The results for different samples are plotted in Fig. 4e. For small-size samples, the attention is spread over the high-order lobes. For the big-size samples, the attention is concentrated on the second-order lobes since the higher-order lobes are no longer distinguishable. The attention for all plots avoids the central peak region, which is consistent with our theory. Time-lapse PSD monitoring in the drying process To validate the real-time monitoring applicability of our method, we carried out a time-lapse PSD measurement of an entire filter drying process <sup>44</sup> . The detailed information of our dryer is included in Supplementary Section 1. This demo process operated on 280 g of KCl powder with a mixed solvent (water 40 g/Ethanol 60 g). Throughout e GradCAM results for different sample sets. The input images are plotted together with the “importance” maps which consist of the flame shape features. the process, we maintained conditions of temperature 26 °C, pressure −720 mbar and agitation speed 4 rpm. Figure 5b shows the PSD map vs. time. The sampling period of the PSD measurement was 15 s, including the data collection time for 200 frames and the computation time. The computer used for this measurement was an Intel Xeon W2245 CPU, 64 GB RAM, and NVIDIA Quadro RTX 5000 GPU with 64 GB VRAM. For the duration of 5 to 25 min since the beginning of the process, we observed a gradual size increase compared to the original PSD. Since no crystallization or crystal growth could take place during drying, we think soft agglomeration instead occurred. From 25 to 40 min, the PSD gradually decreased to the original distribution, which is indicative of deagglomeration. At the far end (>75 mins), crystal breakage <sup>45</sup> caused the size distribution to decrease slightly compared to the original. PSD curves sampled at different times are plotted in Fig. 5a, together with Mastersizer results serving as ground truth for the beginning and ending time. They match well and the slight crystal breakage is clearly resolved for both Mastersizer and speckle Fig. 5 | Time-lapse PSD measurement in the drying process. a Measured PSDs at a few selected time points corresponding to the dashed red line marks in (b). The dashed line plots are the Mastersizer measurements serving as ground truth at the beginning and the end of the process. b Time-lapse PSD map during the drying predictions. The PSD curve shifts toward the right from the start time to 26.1 min, and then decreases backwards to the original position as plotted for the next 59.2 min. We did not measure the PSD with the Mastersizer when the powder was wet because in this process soft agglomerates were too fragile to allow any mechanical contact. This is one of the advantages of our non-invasive measurement compared to the traditional way with the Mastersizer. Figure 5c are camera photos, taken with an iPhone 11, corresponding to the marked times in (a) and (b) for reference. (i) and (iv) are dry powders, while the (ii) and (iii) are wet powder images. It is hard to distinguish different sizes from macroscopic textures. Discussion We have decoded the size information in the speckle pattern quantitatively with the help of the physics-enhanced autocorrelation-based estimator (PEACE). The data flow goes through a sequence of two neural networks, the generator and estimator, both informed by the law that we discovered relating the PSD to autocorrelation side lobes. Physics is involved in this method in four aspects. (1) The theoretical model guides the preprocessing of the raw speckle image, which is the ensemble-averaged autocorrelation (Supplementary Section 3). (2) The forward operator joins the PEACE training loop explicitly. (3) The generator’s structure is inspired by the physics picture, resulting in high performance with only a few parameters, which is crucial for avoiding overfitting (Supplementary Section 4). (4) The output of the estimator is the cumulative size distribution, which is applicable to different particle shapes. Test results on needle shape materials, along with a theoretical discussion of the relationship between non-spherical particles and cumulative distributions are included in Supplementary Section 4. One advantage of this physics-informed strategy is interpretability. The activation map results match our forward model very well, which means the size information is stored in the side lobes, and that process. We observed soft agglomeration occurring from 5 to 25 min, and deagglomeration from 25 to 40 min. c Corresponding camera photos at the times where the PSDs were sampled in (a). These photos were taken from the same optical window as the laser beam using a commercial iPhone 11. enables an evaluation of the performance of the neural network in addition to the loss metric. For example, we want the generator’s output to better match the ground truth at the 2nd–5th lobes region. The center and the surrounding area are not very important. It is also possible to estimate the bound of the prediction ability from the forward model. Based on our theory, we even know how to push the prediction range into other regions of interest by tuning the parameters of the optical system. This is further discussed in Supplementary Section 5. Our estimator fails to predict the double-peak shape PSD in a stress test with the synthetic data, yet it is able to estimate the appearance of large particles from the continuous monitoring—which is the most important for process control. This observation can be explained with the forward model; the results and explanation of the stress test are in Supplementary Section 6. This PEACE method is well suited for the extension to other contexts, including processes in the pharmaceutical industry such as blending and milling. Methods Optics apparatus Our far-field optical probe can easily combine with an agitated filter dryer (AFD) typical of those used in the pharmaceutical industry. The wet solid is sealed in the dryer and the laser beam is delivered through a glass window. Figure S2a is a picture of the optics apparatus as we implemented it. For safety, the entire beam path except the output port facing the window is enclosed in an optical cage and optical tubes to prevent scattered light from escaping. This structure is compact, portable and, therefore, easy to transfer among different dryer systems without realignment. An agitator placed along the axis of the container impels the sample at a rotation speed of 4 rpm. The laser operates at 532 nm wavelength, and it is fairly easy to replace the source with a different wavelength, if desired. The angle of incidence on the surface is chosen to be approximately 10°, so as to avoid specular back-reflection from the window onto the camera. The optical beam path is shown in Fig. S2b. The laser beam is expanded to 4.8 mm with a beam expander in the telescope configuration, consisting of lenses L1 (focal length 25 mm) and L2 (30 mm). The beam is initially polarized in the direction parallel to the plane shown in the diagram, and so it is reflected by the polarizing beam splitter (PBS) to reach the sample inside the dryer through the glass window. Passage twice through the quarter-wave plate rotates the outgoing polarization direction from parallel to perpendicular so that the scattered light from the potassium chloride (KCl) powder sample is now transmitted through the PBS and propagates vertically upwards. The wave plate is also tilted by approximately 10 degrees for the same reason as the beam, to minimize specular back-reflection. Lens L3 (250 mm) concentrates the scattered light so that the CCD (model ZWO ASI183MM Pro) may capture an angular range as extensively as possible. More information about our apparatus can be found in Supplementary Section 1. Theoretical derivation of the Forward Model The theory of the forward problem is established to link from a particular particle distribution to the raw speckle. The formulation of the forward problem is necessarily stochastic, treating the PSD as a probability density function which, in turn, determines the ensemble autocorrelation function of the raw speckle. The sketch for the initial simple analytical model is shown in Fig. S2c. We assume that only particles can scatter the light. Without loss of generality, the reflectivity is set to 1. In other words, the sketch considers the particles as a thin optical mask, which we denote as aðxÞ. We interpret the particle radius ri as a random variable distributed according to the PSD pðrÞ: The particle location xi is also a random variable uniformly distributed across the object plane. HðxÞ describes the surface height resulting from the randomly placed particles. The corresponding phase of the scattered light is wðxÞ = expðj <sup><u>2</u></sup> λ <sup><u>π</u></sup> <sup>HðxÞÞ.</sup> <sup>In</sup> the Fourier plane of L3, the electric field EðxÞ is the field of view, then Eq. (6) can be reformulated as Z drpðrÞ <sup><u>sin</u></sup> <u>ð</u> <sup><u>ru</u></sup> <u>Þ</u> u X i <sup>ej2πxiu∣</sup> 2 : ð7Þ AðuÞ = ∣ This expression corresponds to the images in Fig. 2d. The granular feature results from the term <sup>P</sup> i <sup>ej2πxiu rather than measurement noise.</sup> The position information is encoded in this summation term. Since the particle coordinate x is immaterial, we may eliminate it by ensemble - averaging the autocorrelation AðuÞ. Starting from Eq. (7), AðuÞ becomes - <u>2</u> <sup><u>Du</u></sup> <u>ð</u> <u>Þ</u> 2 pðrÞ <sup><u>sin</u></sup> <sup><u>ru</u></sup> dr∣ : ð8Þ u - AðuÞ = <sup>4sin2</sup> <sup><u>Du</u></sup> <u>2</u> Z <sup>2</sup> <sup><u>Du</u></sup> <u>2</u> ∣ D <sup>2</sup> u <sup>2</sup> The details are in the Supplementary Section 3. In (8), �h i denotes the ensemble average and D is the beam spot diameter. This average operation cannot suppress the granular feature directly, but our phy sics model reveals that the <sup>P</sup> i <sup>ej2πxiu</sup> <sup>term is averaged into the</sup> <sup><u>4sin</u></sup> D <sup>22</sup> u <sup><u>ð2Du</u></sup> <u>2</u> <sup><u>Þ</u></sup> <u>2</u> <sup><u>Þ</u></sup> sics model reveals that the <sup>P</sup> i <sup>ej2πxiu</sup> <sup>term is averaged into the</sup> <sup><u>4sin</u></sup> D <sup>22</sup> u <sup><u>ð2Du</u></sup> term, which is irrelevant to the specific position distribution and only depends on the beam spot size. In this way, we change the stochastic expression (6) into a deterministic expression (8) for a given PSD, which ensures that the supervised learning is able to capture the correct map from the calculation result to the experimental result. Equation (8) is an intuitive yet approximate forward model between the raw speckle images and the PSD pðrÞ through the averaged speckle - autocorrelation function AðuÞ . Z EðxÞ = e jλ <sup><u>2</u></sup> f <sup><u>π</u></sup> 3 <sup>xξ</sup> SðξÞdξ, ð2Þ where SðxÞ = aðxÞwðxÞ, ð3Þ and f3 is the focal length of L3. The intensity collected by the CCD camera is - ξ 2 dξ 1dξ 2: ð4Þ IðxÞ = ∣EðxÞ∣ <sup>2</sup> = Z Z �ξ 1�S <sup>*</sup> �ξ 2 e jλ <sup><u>2</u></sup> f <sup><u>π</u></sup> 3 <sup>x</sup> ð <sup>ξ</sup> <sup>1�ξ</sup> <sup>2</sup> ÞS�ξ 1 jλ <sup><u>2</u></sup> f <sup><u>π</u></sup> We now define the spatial-integral autocorrelation of the speckle image as Z Aðu <sup>0</sup> Þ = IðxÞIðx + u <sup>0</sup> Þdx: ð5Þ This equation may be rewritten in the form X i Data availability All processed data in this study have been deposited in the Harvard Dataverse under accession [https://dataverse.harvard.edu/dataset.](https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/FZUG9V) [xhtml?persistentId=doi:10.7910/DVN/FZUG9V.](https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/FZUG9V) The raw data are too big to upload into the public repository, please contact the author to request them.Line plots in Figs. 2 and 5 areprovided in the Source Data file. Source data are provided with this paper. Code availability The entire original code has been deposited at [https://github.com/](https://github.com/qhzhang95/PEACE_Speckle) [qhzhang95/PEACE_Speckle](https://github.com/qhzhang95/PEACE_Speckle) and is publicly available [(https://doi.org/](https://doi.org/10.5281/zenodo.7497506) [10.5281/zenodo.7497506).](https://doi.org/10.5281/zenodo.7497506) References 1. Goodman, J. W. Statistical properties of laser speckle patterns. 9–75 [https://doi.org/10.1007/bfb0111436 (1975).](https://doi.org/10.1007/bfb0111436) 2. Goodman, J. W. Statistical optics (John Wiley & Sons, 2015). 3. Dainty, J. C. Laser Speckle and Related Phenomena Vol. 9 (Springer science & business Media, 2013). 4. Buchanan, J. D. R. et al. ‘Fingerprinting’ documents and packaging. Nature 436, 475 (2005). 5. Yan, J. et al. Recognition of suspension liquid based on speckle patterns using deep learning. IEEE Photonics J. 13, 1–7 (2021). 6. Kalyzhner, Z., Levitas, O., Kalichman, F., Jacobson, R. & Zalevsky, Z. Photonic human identification based on deep learning of back scattered laser speckle patterns. Opt. Express 27, 36002–36010 (2019). 7. Dogan, M. D., Acevedo Colon, S. V., Sinha, V., Ak\csit, K. & Mueller, S. SensiCut: material-aware laser cutting using speckle sensing and deep learning. In The 34th Annual ACM Symposium on User Interface Software and Technology 24–38 (Association for Computing Machinery, 2021). 8. Valent, E. & Silberberg, Y. Scatterer recognition via analysis of speckle patterns. Optica 5, 204–207 (2018). 9. Lotay, A., Buttenschoen, K.-K. K. & Girkin, J. M. Quantification of skin quality through speckle analysis. In Photonic Therapeutics and 2 : ð6Þ AðuÞ = ∣ <u>sinðriuÞ</u> e <sup>j2πxiu</sup> ∣ u <u>sinðriuÞ</u> Here, u = λ <sup><u>u</u></sup> f 3 <sup><u>0</u></sup> <sup>~~,~~</sup> <sup>i is the index of the ith particle, and ri</sup> <sup>and xi</sup> <sup>are the</sup> radius and the position for the ith particle, respectively. The full derivation leading from (5) to (6) is in Supplementary Section 3, equations (M1)–(M14). If a sufficient number of particles find themselves within Diagnostics XI (eds Kang, H. W. et al.) Vol. 9303 93030Q (SPIE, 2015). 10. Cozzella, L., Simonetti, C. & Schirripa Spagnolo, G. Drug packaging security by means of white-light speckle. Opt. Lasers Eng. 50, 1359–1371 (2012). 11. Rey-Barroso, L. et al. Optical technologies for the improvement of skin cancer diagnosis: a review. Sensors 21, 252 (2021). 12. Bar, C., Alterman, M., Gkioulekas, L. & Levin, A. Single scattering modeling of speckle correlation. In 2021 IEEE International Conference on Computational Photography (ICCP) 1–16 (IEEE, 2021). 13. Yang, L., Xie, X., Zhu, L., Wu, S. & Wang, Y. Review of electronic speckle pattern interferometry (ESPI) for three dimensional displacement measurement. Chin. J. Mech. Eng. (Engl. Ed.) 27, 1–13 (2014). 14. Løkberg, O. J. Optical Metrology: Coherent and Incoherent Optics for Metrology, Sensing and Control in Science, Industry and Biomedicine (ed Soares, O. D. D.) 542–572 (Springer Netherlands, 1987). 15. Nakadate, S., Yatagai, T. & Saito, H. Electronic speckle pattern interferometry using digital image processing techniques. Appl. Opt. 19, 1879–1883 (1980). 16. Alterman, M., Bar, C., Gkioulekas, I. & Levin, A. Imaging with local speckle intensity correlations: theory and practice. ACM Trans. Graph. 40, 1–21 (2021). 17. Wu, Y., Lin, Z., Wu, X. & Cen, K. Dual-beam interferometric particle imaging for size measurement of opaque metal droplet. Powder Technol. 356, 31–38 (2019). 18. Zhang, H. et al. Characterization of particle size and shape by an IPI system through deep learning. J. Quant. Spectrosc. Radiat. Transf. 268, 107642 (2021). 19. König, G., Anders, K. & Frohn, A. A new light-scattering technique to measure the diameter of periodically generated moving droplets. J. Aerosol Sci. 17, 157–167 (1986). 20. Zhang, Y. et al. Motility-based label-free detection of parasites in bodily fluids using holographic speckle analysis and deep learning. Light Sci. Appl 7, 108 (2018). 21. Li, Y., Xue, Y. & Tian, L. Deep speckle correlation: a deep learning approach toward scalable imaging through scattering media. Optica 5, 1181–1190 (2018). 22. Kang, I., Pang, S., Zhang, Q., Fang, N. & Barbastathis, G. Recurrent neural network reveals transparent objects through scattering media. Opt. Express 29, 5316–5326 (2021). 23. Li, S., Deng, M., Lee, J., Sinha, A. & Barbastathis, G. Imaging through glass diffusers using densely connected convolutional networks. Optica 5, 803–813 (2018). 24. Du, D. et al. A boundary migration model for imaging within volumetric scattering media. Nat. Commun. 13, 3234 (2022). 25. Jauregui-Sánchez, Y., Penketh, H. & Bertolotti, J. Tracking moving objects through scattering media via speckle correlations. Nat. Commun. 13, 5779 (2022). 26. Bobrow, T. L., Mahmood, F., Inserni, M. & Durr, N. J. DeepLSR: a deep learning approach for laser speckle reduction. Biomed. Opt. Express 10, 2869–2882 (2019). 27. Yin, D. et al. Speckle noise reduction in coherent imaging based on deep learning without clean data. Opt. Lasers Eng. 133, 106151 (2020). 28. Zeng, T., So, H. K.-H. & Lam, E. Y. Computational image speckle suppression using block matching and machine learning. Appl. Opt. 58, B39–B45 (2019). 29. Cheng, W. et al. Dilated residual learning with skip connections for real-time denoising of laser speckle imaging of blood flow in a log-transformed domain. IEEE Trans. Med. Imaging 39, 1582–1593 (2020). 30. Wang, F. et al. Far-field super-resolution ghost imaging with a deep neural network constraint. Light Sci. Appl. 11, 1 (2022). 31. Gour, N. & Khanna, P. Speckle denoising in optical coherence tomography images using residual deep convolutional neural network. Multimed. Tools Appl. 79, 15679–15695 (2020). 32. Nishihora, R. K., Rachadel, P. L., Quadri, M. G. N. & Hotza, D. Manufacturing porous ceramic materials by tape casting—a review. J. Eur. Ceram. Soc. 38, 988–1001 (2018). 33. Muzzio, F. J. et al. Sampling and characterization of pharmaceutical powders and granular blends. Int. J. Pharm. 250, 51–64 (2003). 34. Provis, J. L., Duxson, P. & van Deventer, J. S. J. The role of particle technology in developing sustainable construction materials. Adv. Powder Technol. 21, 2–7 (2010). 35. Oren, M. & Nayar, S. K. Generalization of the Lambertian model and implications for machine vision. Int. J. Comput. Vis. 14, 227–251 (1995). 36. Koppal, S. J. Computer Vision: A Reference Guide (ed Ikeuchi, K.) 441–443 (Springer US, 2014). 37. Galata, D. L. et al. Applications of machine vision in pharmaceutical technology: a review. Eur. J. Pharm. Sci. 159, 105717 (2021). 38. Gao, Z. et al. Image analysis for in-line measurement of multidimensional size, shape, and polymorphic transformation of l-glutamic acid using deep learning-based image segmentation and classification. Cryst. Growth Des. 18, 4275–4281 (2018). 39. Liu, T., Huo, Y., Ma, C. Y. & Wang, X. Z. Sparsity-based image monitoring of crystal size distribution during crystallization. J. Cryst. Growth 469, 160–167 (2017). 40. Huo, Y., Liu, T., Wang, X. Z., Ma, C. Y. & Ni, X. Online detection of particle agglomeration during solution crystallization by microscopic double-view image analysis. Ind. Eng. Chem. Res. 56, 11257–11269 (2017). 41. Azizan, N., Lale, S. & Hassibi, B. Stochastic mirror descent on overparameterized nonlinear models. In IEEE Transactions on Neural Networks and Learning Systems 1–11 (IEEE, 2021). 42. Creswell, A. et al. Generative adversarial networks: an overview. IEEE Signal Process Mag. 35, 53–65 (2018). 43. Selvaraju, R. R. et al. Grad-CAM: visual explanations from deep networks via gradient-based localization. In 2017 IEEE International Conference on Computer Vision (ICCV) 618–626 (IEEE, 2017). 44. Capellades, G. et al. A compact device for the integrated filtration, drying, and mechanical processing of active pharmaceutical ingredients. J. Pharm. Sci. 109, 1365–1372 (2020). 45. Lekhal, A. et al. Impact of agitated drying on crystal morphology: KCl–water system. Powder Technol. 132, 119–130 (2003). Acknowledgements The authors acknowledge the MIT SuperCloud for providing HPC resources that have contributed to the research results reported within this paper/report. This research was supported by Millennium Pharmaceuticals, Inc. (a subsidiary of Takeda Pharmaceuticals), grant No. D824/ MT15 (A.M., G.B., and R.B.). Author contributions G.B. and Q.Z. conceived the project and developed the theory. Q.Z. and J.G. designed the optical experiment and collected the data. Q.Z. analyzed the speckle data and developed the algorithm. J.G., A.P., Q.Z., W.T., C.P., C.M., and Y.Y. designed the filter dryer set up. Q.Z. and A.P. carried out the time-lapsed PSD drying experiment. Q.Z., J.G., and G.B. prepared the original manuscript and W.T. helped in the manuscript writing. C.P., C.M., Y.Y., M.S., and T.O. also contributed to the manuscript. G.B., A.M., and R.B. supervised this project. Competing interests The authors declare the following competing interests. Patent applicant: Massachusetts Institute of Technology. Name of inventor(s): George Barbastathis, Qihang Zhang, Janaka C Gamekkanda Gamaethige, Richard D Braatz, Allan S Myerson. Application number: PCT/US22/ 50045. Status of application: Pending. Specific aspect of manuscript covered in patent application: System and method for determination of particle size distributions. There are no other competing interests. Additional information Supplementary information The online version contains supplementary material available at [https://doi.org/10.1038/s41467-023-36816-2.](https://doi.org/10.1038/s41467-023-36816-2) Correspondence and requests for materials should be addressed to George Barbastathis. Peer review information Nature Communications thanks Zsombor Kristóf Nagy and Fei Xia for their contribution to the peer review of this work. Peer reviewer reports are available. Reprints and permissions information is available at [http://www.nature.com/reprints](http://www.nature.com/reprints) Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright [holder. To view a copy of this license, visit http://creativecommons.org/](http://creativecommons.org/licenses/by/4.0/) [licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2023

섹션 본문 103문단 · 47,195자

(제목 없음)

1Extracting quantitative information about highly scattering surfaces from an imaging system is challenging because the phase of the scattered light undergoes multiple folds upon propagation, resulting in complex speckle patterns.One specific application is the drying of wet powders in the pharmaceutical industry, where quantifying the particle size distribution (PSD) is of particular interest.A non-invasive and real-time monitoring probe in the drying process is required, but there is no suitable candidate for this purpose.In this report, we develop a theoretical relationship from the PSD to the speckle image and describe a physics-enhanced autocorrelation-based estimator (PEACE) machine learning algorithm for speckle analysis to measure the PSD of a powder surface.This method solves both the forward and inverse problems together and enjoys increased interpretability, since the machine learning approximator is regularized by the physical law.Speckle results from the propagation of a wavefront whose phase has been strongly modulated by spatially variant features across a surface (or volume), so the speckle is an encoding of spatial patterns on the rough surface.As long as the morphology statistics are invariant, it is straightforward to relate statistical moments of the surface to the statistical moments of the speckle 1-3 .The laser speckle pattern has long been used to characterize surface roughness [3][4][5][6][7][8][9][10][11][12].However, the method typically works only when the surface height fluctuation (equivalently, typical particle size) is smaller than or comparable to the light wavelength 3 , limiting its application to surfaces encountered in many industrial processes, such as pharmaceuticals manufacturing.Electronic Speckle Pattern Interferometry (ESPI) can measure the surface motion distribution even at nanometer scales, but it is a two-step measurement with a reference beam, inhibiting real-time monitoring and lacking absolute height information[13][14][15].Laser speckle contrast imaging is qualitative and does not yield quantitative surface roughness 16 .Interferometric particle imaging can measure the particle size and shape, but it only works for a single particle or sparsely distributed particles 17- 19 .Recent advances in Machine Learning have been successful in imaging through scattering media 20-25 and speckle suppression[26][27][28][29][30][31].However, in both cases, the speckle pattern is treated as an unwanted disturbance.Extracting the scattering media information from the speckle has also been pursued qualitatively: for example, the classification of materials according to the scattered speckle patterns [5][6][7][8] .The main difficulty preventing further quantitative speckle analysis is the sensitivity of the phase signal to surface randomness, which hinders neural networks' ability to identify other underlying dynamics.Quantitative granularity characterization is desired in many applications[32][33][34], particularly the powder drying process in the pharmaceutical industry, during which the wet solid ("cake") is converted into a powder consisting of particles with the requisite size distribution.These powders are subsequently employed with other ingredients to form solid oral dosage forms such as tablets and capsules.However, agglomeration, deagglomeration and crystal breakage are all likely during the drying process.Occurrence of hard agglomerates could influence content uniformity and functionality in the final drug product, e.g., if the active ingredient concentration becomes too high.Even though the parameters of the drying processes are generally well-controlled, the evolution of the particle sizes during agitation is not fully predictable.Thus, it is crucial to monitor particle sizes quantitatively in real-time and correct for abnormal size changes through feedback control on process parameters (e.g., temperature, agitation speed).No real-time online monitoring methods exist presently, to our knowledge, that can detect early on and prevent such abnormal particle size changes for wet powder drying.Since the cake surfaces closely meet Patent

2the Lambertian assumption 35,36 , imaging by a standard camera from a distance compatible with the manufacturing setting (~0.2 -0.5 m away from the powder) does not provide sufficient contrast and spatial resolution to extract the surface PSD.Machine vision to analyze the appearance of the cake surface and detect agglomerates is generally limited due to the same reason 37 .Imaging with in situ cameras relies on particle sparsity, which only works for solid suspensions rather than wet powder [38][39][40] .Moreover, this method is invasive, so there is a risk of the powder obscuring the viewing field and rendering the imaging operation impossible.Instead, manufacturers commonly rely on trained personnel to visually observe the mixingbut this can be subjective.Lastly, it is possible to extract a sample from the cake at fixed time intervals and pass it through a particle size analyzer instrument.However, this method is invasive and slow and, thus, not suitable for industrial use.

3In this work, we propose a physics-enhanced autocorrelation-based estimator (PEACE) to extract the PSD of a powder surface from its laser speckle as shown in Fig. 1.With the help of the free-space propagation equations, we relate the ensemble-averaged spatial-integral autocorrelation function to the statistics of powder surface, i.e., the PSD.This relationship becomes the forward model for the estimator, yet it is inevitably incomplete.For example, particles may overlap along the longitudinal direction, which should not be introduced in the explicit model lest it becomes exceedingly complicated.Similarly, our experimental approach includes a finite spatial integral and temporal averaging of several frames, which are subject to sensor uncertainties in the model.Another limitation is that collecting sufficient experimental data to compensate for these uncertainties is prohibitively expensive.

4We use PEACE to compensate for these uncertainties in the forward model.As shown in Fig. 1b, a small neural network called "generator" is combined with the forward model to form the final map from the PSDs to the experimentally collected autocorrelation images.In this way, starting from a modest amount of experimental data we can create a much larger synthetic (simulated) dataset.Finally, a deep neural network (DNN) called "estimator" is trained by the synthetic dataset to learn the inverse mapping from the speckle autocorrelation to the PSD.The estimator is overparameterized but generalizes well, confirming recent theoretical developments 41 .This method solves both the forward and inverse problems together, improving the machine learning model's generalization ability and interpretability.For example, the explicit forward model allows us to estimate bounds on our prediction ability.We note that the terms "generator" and "estimator" may be reminiscent of the generator and discriminator in Generative Adversarial Networks (GANs) 42 yet our approach is significantly different in that we do not employ adversarial training.

5Here, we show that our method overcomes these limitations by providing a real-time, non-invasive, farfield optical probe (as shown in Fig. 1a) to monitor particle size distributions quantitatively.Especially for densely concentrated wet powders, this method is the first in-line measurement, and it is easily deployable in the industrial instrument.

Forward model -Speckle and Particle Statistics

6With the help of the physics model, we derive the expression of the forward operator in the Method Section and the Supplementary Section 3. and the trained generator produce a much larger synthetic dataset.This synthetic dataset trains the DNN "estimator" to learn the mapping from the measured speckle autocorrelation to the particle size distribution (PSD).

〈𝐴(𝑢)〉 = 𝐻*𝑝(𝑟)

7The 'generator' only contains 2.8k parameters, while the estimator has 377k parameters.where 〈〉 denotes the ensemble average autocorrelation of the speckle pattern, () is the PSD in terms of number of particles, D is the beam spot diameter which is much larger than the particle size in our range of interest (50 μm -1000 μm), and = |∫ () | ! is the normalization factor.Therefore, the main ringshape feature is dominated by

8, and the side-lobe intensities are modulated by =∫ ()

9We design the progression of a typical experiment based on this forward operator as shown in Fig. 2.

10Fig. 2a shows two sample sets with different particle sizes imaged through a regular microscope.Fig. 2b are photos collected by a commercial camera, with broadband and spatially incoherent illumination.The contrast and resolution are too coarse to resolve the particles, not displaying any discernible features that could be attributed to particle size.Fig. 2c shows their raw speckle images collected from the CCD camera.

11Fig. 2d shows the respective speckle autocorrelation patterns, which are subsequently averaged as shown in Fig. 2e.The calculation results in Fig. 2e are passed to a two-stage neural network consisting of the generator and the estimator.The generator corrects the physical model for uncertainties, such as overlapping particles that would be very hard to model analytically.The estimator receives its input from either the generator or the measured results (shown in Fig. 2e) and produces the cumulative distribution of the particle sizes.By one more differentiation step, we obtain the final estimate of the PSD as a vector of powder concentrations vs. particle size.Fig. 2f shows one typical test result from a particle distribution never shown during the neural network's training stage, as computed by the combined generator-estimator algorithm.This estimated PSD can be compared with the ground truth PSD that we established using a commercial particle size analyzer, the "Mastersizer" (details in Supplementary Section 2).The complete details of this process are in the Supplementary Sections 3 and 4. Fig. 2g shows cross-sections of the averaged autocorrelation for different sample particle sizes.The intensities of the first and second-order lobes monotonically decrease with ascending PSDs.The higher-order lobes are merged into the background fluctuations for the large particle size sample, while for the small particle size sample the lobes are clearly resolvable.

Test Results and Model Visualization for PEACE

12We also conducted a thorough analysis of the generalization ability of the algorithm, shown in Fig. 3.This experimental test dataset was disjoint from the training data.The first column is the calculation result for the measured PSD from the forward model.The second column shows the image produced by the generator, while the third column shows the corresponding ground truth, i.e. the experimental averaged autocorrelation.

13These images are averaged from 200 autocorrelation images, different from the 1000 frames averaged one in Fig. 2e.Reducing the number of averaging frames sacrifices the signal-to-noise ratio but speeds up the data collection time for each prediction.There is still a slight mismatch between the generated image and the measured image in the surrounding area.These noise shape features are the residual from the ensemble average because the image is averaged with a finite number of frames only.Since they are away from the region of interest (later discussed in Fig. 4e), this deviation will not affect the performance of the estimator.

14The predictions and the ground truths measured from the particle size analyzer are plotted together in columns 4 and 5.The cumulative distribution follows from a clear physical definition of the size distribution for the non-spherical particles, such as the cubic-shaped KCl particles shown in Fig. 2a.More details about the cumulative distribution are included in Supplementary Section 4.

15We use two methods to visualize our estimator.The first is plotting the output of each stage (the estimator's detailed structure is in Supplementary Section 4).As shown in Fig. 4a-d, the first stage output deemphasizes the zero-order peak and differentiates the side region.The second stage enhances the differentiation in the side area.The last two stages decode the information and extract the features.The other method is the Gradient-weighted Class Activation Mapping (GradCAM) 43 .This method visualizes the regions of input that are "important" for predictions.The results for different samples are plotted in Fig. 4e.For small-size samples, the attention is spread over the high-order lobes.For the big-size samples, the attention is concentrated on the second-order lobes since the higher-order lobes are no longer distinguishable.The attention for all plots avoids the central peak region, which is consistent with our theory.

Time-lapsed PSD Monitoring in the Drying Process

16To validate the real-time monitoring applicability of our method, we carried out a time-lapse PSD measurement of an entire filter drying process 44 .The detailed information of our dryer is included in Supplementary Section 1.This demo process operated on 280g of KCl powder with a mixed solvent (water 40g/Ethanol 60g).Throughout the process, we maintained conditions of temperature 26 °C, pressure -720 mbar and agitation speed 4 rpm.Fig. 5b shows the PSD map vs. time.The sampling period of the PSD measurement was 15 seconds, including the data collection time for 200 frames and the computation time.

17The computer used for this measurement was an Intel Xeon W2245 CPU, 64 GB RAM, and NVIDIA Quadro RTX 5000 GPU with 64 GB VRAM.

Discussion

18We have decoded the size information in the speckle pattern quantitatively with the help of the physicsenhanced autocorrelation-based estimator (PEACE).The data flow goes through a sequence of two neural networks, the generator and estimator, both informed by the law that we discovered relating the PSD to autocorrelation side lobes.Physics is involved in this method in four aspects.(1) The theoretical model guides the preprocessing of the raw speckle image, which is the ensemble-averaged autocorrelation (Supplementary Section 3).( 2) The forward operator joins the PEACE training loop explicitly.(3) The generator's structure is inspired by the physics picture, resulting in high performance with only a few parameters, which is crucial for avoiding overfitting (Supplementary Section 4).( 4) The output of the estimator is the cumulative size distribution, which is applicable to different particle shapes.Test results on needle shape materials, along with a theoretical discussion of the relationship between non-spherical particles and cumulative distributions are included in Supplementary Section 4. One advantage of this physics-informed strategy is interpretability.The activation map results match our forward model very well, which means the size information is stored in the side lobes, and that enables an evaluation of the performance of the neural network in addition to the loss metric.For example, we want the generator's output to better match the ground truth at the 2nd ~ 5th lobes region.The center and the surrounding area are not very important.It is also possible to estimate the bound of the prediction ability from the forward model.Based on our theory, we even know how to push the prediction range into other regions of interest by tuning the parameters of the optical system.This is further discussed in Supplementary Section 5.

19Our estimator fails to predict the double-peak shape PSD in a stress test with the synthetic data, yet it is able to estimate the appearance of large particles from the continuous monitoring -which is the most important for process control.This observation can be explained with the forward model; the results and explanation of the stress test are in Supplementary Section 6.This PEACE method is well suited for the extension to other contexts, including processes in the pharmaceutical industry such as blending and milling.

Methods

20Optics Apparatus.Our far-field optical probe can easily combine with an agitated filter dryer (AFD) typical of those used in the pharmaceutical industry.The wet solid is sealed in the dryer and the laser beam is delivered through a glass window.The Fig. S2a is a picture of the optics apparatus as we implemented it.For safety, the entire beam path except the output port facing the window is enclosed in an optical cage and optical tubes to prevent scattered light from escaping.This structure is compact, portable and, therefore, easy to transfer among different dryer systems without realignment.An agitator placed along the axis of the container impels the sample at a rotation speed of 4 rpm.The laser operates at 532 nm wavelength, and it is fairly easy to replace the source with a different wavelength, if desired.The angle of incidence on the surface is chosen to be approximately 10 degrees, so as to avoid specular back-reflection from the window onto the camera.

21The optical beam path is shown in Fig. S2b.The laser beam is expanded to 4.8 mm with a beam expander in the telescope configuration, consisting of lenses L1 (focal length 25 mm) and L2 (30 mm).The beam is initially polarized in the direction parallel to the plane shown in the diagram, and so it is reflected by the polarizing beam splitter (PBS) to reach the sample inside the dryer through the glass window.Passage twice through the quarter-wave plate rotates the outgoing polarization direction from parallel to perpendicular so that the scattered light from the potassium chloride (KCl) powder sample is now transmitted through the PBS and propagates vertically upwards.The wave plate is also tilted by approximately 10 degrees for the same reason as the beam, to minimize specular back-reflection.Lens L3 (250 mm) concentrates the scattered light so that the CCD (model ZWO ASI183MM Pro) can capture an angular range as extensively as possible.More information about our apparatus can be found in Supplementary Section 1.

22Forward Model Theory.The theory of the forward problem is established to link from a particular particle distribution to the raw speckle.The formulation of the forward problem is necessarily stochastic, treating the PSD as a probability density function which, in turn, determines the ensemble autocorrelation function of the raw speckle.The sketch for the initial simple analytical model is shown in Fig. S2c.We assume that only particles can scatter the light.Without loss of generality, the reflectivity is set to 1.In other words, the sketch considers the particles as a thin optical mask, which we denote as ().

23We interpret the particle radius -as a random variable distributed according to the PSD ().The particle location -is also a random variable uniformly distributed across the object plane.() describes the surface height resulting from the randomly placed particles.The corresponding phase of the scattered light is () = exp 4

24!.

25/ ()7.In the Fourier plane of L3, the electric field () is

26where () = ()() ,

27and 4 is the focal length of L3.The intensity collected by the CCD camera is

28We now define the spatial-integral autocorrelation of the speckle image as

29This equation may be rewritten in the form

30Here, =

31, is the index of the th particle, and -and -are the radius and the position for the th particle, respectively.The full derivation leading from ( 5) to ( 6) is in Supplementary Section 3, equations (M1)-(M14).If a sufficient number of particles find themselves within the field of view, then equation ( 6) can be reformulated as

32This expression corresponds to the images in Fig. 2d.The granular feature results from the term ∑ 0!.2 & ) rather than measurement noise.The position information is encoded in this summation term.Since the particle coordinate is immaterial, we may eliminate it by ensemble-averaging the autocorrelation ().

33Starting from equation (7), 〈()〉 becomes

34The details are in the Supplementary Section 3. In (8), 〈•〉 denotes the ensemble average and D is the beam spot diameter.This average operation cannot suppress the granular feature directly, but our physics model

35term, which is irrelevant to the specific position distribution and only depends on the beam spot size.In this way, we change the stochastic expression (6) into a deterministic expression (8) for a given PSD, which ensures that the supervised learning is able to capture the correct map from the calculation result to the experimental result.Equation ( 8) is an intuitive yet approximate forward model between the raw speckle images and the PSD ()

36through the averaged speckle autocorrelation function 〈()〉.

Apparatus overview.

37Filter dryer overview.The filter drying device shown in Fig. S1 was designed based on a prototype 1 .The device has 1400 ml capacity with overall device dimensions of 330 mm height × 220 mm width × 220 mm length without the optical components.The body, impeller, and filter mesh are made of steel, and the lid is made of aluminum.The lid contains a vacuum port, an air/gas input port, a camera port, two wash solvent ports, a feed suspension port, and a glass observation window.A vacuum gauge and pressure release valve are attached to the lid.The impeller is connected to a motor on the top of the lid.The impeller blade is designed with teeth to promote cake depumping.An inductive heater and a thermocouple are attached to the bottom of the device to control the drying temperature.This inductive heating plate is used to heat the steel base and the steel body of the dryer.An endoscope camera is attached to the lid to record process videos of the drying material from the top.The optics bench sheds light on the sample and collects the scattered beam through the observation window.

38Optics bench.The laser model is Excelsior 532 Single Mode with 300 mW output power.After the fiber coupling, only 230 mW power injects into our system.Our lenses are made of N-BK7 with anti-reflection coating, whose transmission is 99.5% at 532 nm.The beam has a polarization ratio higher than 100:1.The extinction ratio of the polarized beam splitter (PBS) is higher than 1000:1.The transmission of the quarter plate and the silica window are 99.8% and 90%, respectively.The beam power on the sample surface is 203 mW.The filter dryer contains 150g KCl powder with a 690 J/kg•K specific heat capacity.From this calculation, our laser induces a 2.4 mK/s temperature rising rate, which is low enough not to disturb the drying process for the duration of observation.The power of the scattered light measured at the CCD plane is 120 μW.The coherence length of the laser is 25 m, corresponding to a temporal bandwidth of 0.01 pm.

39It provide sufficient temporal coherence to produce sharp speckles.Image acquisition.Our monochromatic CCD model is ZWO ASI183MM Pro with 5496 × 3672 pixels with a 2.4 μm pixel size.We run it in the bin-pixel mode with 1920 × 1080 pixels and 70 fps framerate.

40The typical size of the speckle pattern calculated from / is 28 µm for our imaging system, which is larger than the pixel size to ensure a good resolution of the speckle pattern.We crop the central uniformly illuminated area to 1024 × 1024 pixels.Fig. S3 shows the single-frame raw speckle images and the corresponding autocorrelations with different exposure times.We find that 100 μs and 200 μs exposure times maintain a high degree of spatial correlation, whereas the speckle begins to decorrelate at exposures in excess of 500 μs.At exposure as high as 1 ms, the speckle pattern blurs and the corresponding CCD camera

Photo of the Optics

41Output port

Laser input c

42Incident beam

43x n Position autocorrelation disperses.We choose 100μs as our exposure time to ensure that it is short enough to maintain the speckle spatial correlation within each frame.The time scale of PSD evolution in the powder drying dynamics is tens of minutes (as shown in Fig. 5) which is much longer than the time of a single PSD measurement.So we can safely assume that the powder PSD does not change during the data collection time.

Sample preparation and calibration.

44Commercially obtained potassium chloride (KCl) powder was used to calibrate the speckle.The morphology of the KCl is blocked-shaped crystals.Twenty samples of KCl having different size distributions were prepared by sieving bulk KCl using sieves attached to the sieve shaker.The sieves were stacked in the sieve shaker in the order of decreasing sieve opening size from top to bottom (Sieve opening sizes used: 500 µm, 425 µm, 355 µm, 300 µm, 250 µm, 180 µm, 106 µm).The sieving was carried out 15- Offline particle size analysis was carried out by laser diffraction to obtain the ground truth particle size distribution of each KCl sample set.Malvern Mastersizer 2000 attached to a Scirocco 2000 dry dispersion unit was used to obtain particle size data.Fig. S4a shows the PSD data obtained from Mastersizer corresponding to each sieved sample.The finite sieves and master-sizer measurement limit the number of datasets we can collect, as they are time-consuming and unrecyclable.

Forward model.

45The detailed math derivation of our forward model is described in this section.It continues from equation (4) in the Methods section.Substituting equations ( 2) and (3) into equation ( 4),

𝐴(𝑢

46After substituting from equation (2), () = 9 i9 0)@ () * ( + )() * ( + )i

47In the internal integral over , the phase term () = exp 4

48!.

49/ ()7 varies much faster than ()nd 0)@ , so we can apply the rotating wave approximation to move () * ( + ) outside the integral over .() = 9 () i9 0)@ () * ( + )i

50where () = 〈() * ( + )〉 @ is the spatial average of () * ( + ) over .() describes spatial correlation of the surface phase.() will drop to 0 if is larger than the correlation length.For the ideal rough surface, the correlation length is infinitely small and () degrades into ().

51() is the mask defined by the particles, and we may express it as,

52Where Rect() = 1 when ∈ [−1,1], otherwise = 0 is the boxcar function.Since the particles cannot overlap, and the correlation length is well smaller than the particle size, we can approximately assume Rect 4

53After substituting equation (M10) to equation (M7), we obtain

54The internal integral is the Fourier transform

55Substituting, we find

56If we apply the assumption that () = (), then equation (M13) may be transformed as

57Here, =

58, is the index of the -th particle, and -and -are the radius and the position for the -th particle, respectively.This is the same as equation ( 5) in the main text.

59Below are the derivations of the ensemble average of the autocorrelation (, ).The ensemble average is over independent measurements.Specifically, it is an average over -.However, -is a function of time in our system since the powder are agitated by the impeller.Since -() is ergodic, we may replace the average of measurements at different time with the ensemble average.Starting from equation (M14), and since () is invariant, we may move the ensemble average bracket into the integral, as

60The third equal sign comes from the fact that and are independent.The radius -follows the probability distribution (), which is invariant.The -'s are randomly distributed in space, forming an ergodic process.

61Therefore, the ensemble average over is equal to the spatial average:

62Where D is the laser spot diameter.The term () != term determines the average speckle size, which is consistent with the textbook 2 result.

𝑝(𝑟

63If we substitute equations (M16) and (M17) back to equation (M15), we obtain

64The particle size of our sample varies from ~50μm to ~1000μm, which is much larger than the wavelength 532nm.Thus, we meet the criterion ≪ (), implying that the phase correlation length is much smaller than the particle size.This is validated from our simulation in Fig. S5, so we may adopt the assumption () = () safely.Therefore, we obtain the final expression (the same as equation 1), The phase correlation corresponding to (e).The correlation lengths for all different height fluctuations and horizontal textures are smaller than a single pixel.Thus, we may safely assume that () ≈ ().

Physics Enhanced AutoCorrelation-based Estimator (PEACE) algorithm

65PEACE learning scheme.The forward relationship (1) is highly nonlinear; moreover, the analysis in Fig. 2 reveals that the inverse problem is also ill-conditioned: the relevant information for the PSD is in the sidelobes of the term

66and, hence, the solution may be disproportionately susceptible to detection noise and other disturbances.As a general strategy to stabilize the solution against disturbances, we must employ some form of regularization.In typical situations, the most effective regularizing priors are derived from sparsity arguments (also referred to as compressed sensing 3 ).For linear inverse problems, sparse formulations lead to convex functionals that are numerically dealt with using methods such as TwIST and ADMM 4,5 .

67Our inverse problem with equation ( 1) is somewhat atypical, and not only because it is nonlinear.The probability for a specific radius () is manifestly modulated by

68)

69. The term

70approaches 0 as r approaches 0, adding to the ill-posedness already imposed by the preceding term

71term.This suggests that sparsifying the PSD as, for example, a superposition of radial basis functions, might be risky.

72Instead, we adopt a machine learning approach, using data to learn the regularizing prior.Since we can only provide finite sample sets to get data from our experiment and the independent particle size analyzer, it is not enough to train a large neural network acting in "estimator" capacity to solve the inverse problem independently.Instead, with the help of the forward model, it is sufficient to complement the forward operator by training a small neural network called a "generator."Then we can generate a large synthetic dataset from the forward process to meet the data requirement of the training process for the estimator.The final answer is to solve the forward and inverse problems collaboratively.This algorithm is named "the Physics Enhanced AutoCorrelation-based Estimator (PEACE)."Light scattered from the second layer particles will partially fill the gap between the first layer particles, resulting in a larger "effective particle size".Since the second layer particles are also densely located in the plane, this "large effective size" should be comparable to the beam spot size (5mm), which is much larger than the typical particle size (100 μm-1000 μm), resulting in a substantial intensity reduction of the high-order lobes in the experiment compared to the calculation result only from the first layer.We assume that the multilayer effect is a blurring and non-linear function applied to the original calculation.

73This physical model can be written in the following expression,

74where ℎ(•) denotes the nonlinear and convolutional blur operation.With this inspiration, we design the structure of G in the following way, To validate the performance for needle shape particles, we trained the pipeline with speckles from sieved KCl particles and tested it with L-threonine and Monosodium glutamate (MSG).The result is shown in Fig.

S8

75. The microscope images in (a) show a visually clear size difference between these two powders, and verify that they are all needle-shaped.Part (b) shows averaged autocorrelations.According to.Fig. 2g in the main text, the first order side lobe is merged into the main lobe and is hard to resolve.L-threonine has a stronger second order side lobe than MSG.Higher order side lobes cannot be observed for either material.

76The particle size distributions transformed into volume base are plotted in part (c).The L-threonine's speckle prediction matches the Mastersizer result.The prediction for MSG has the same peak position as the ground truth but different widths.We may explain this width mismatch from two viewpoints.The first one is that the ground truth size distribution disperses more than 1000 μm (1 mm), which is out of the range in our training sets because KCl never forms particles as large.The second reason is that our model cannot work with the bimodal distribution very well, as we mention in the Discussion section of the main test and further discuss in Supplementary Section 6.This experiment confirms that, to a certain extent, our model can apply to different particle shapes without retraining the neural network.

Estimator results for the G-training dataset.

77Fig. S8 plots the results for the dataset used to train the generator G.These data were disjoint from the training process of F. This plot is to cross-validate that G is not overfitting.If there is an overfitting effect, the performance of this dataset should be better than the test dataset.Compared to Fig. 3, these two datasets have a similar performance from the second and the fifth columns, which indicates a well-trained generator.

78From the first line result (50 μm -106 μm) in this figure, we want to address that the prediction at the small size end has more deviation than the big size end.This phenomenon can also be interpreted by Equation

79(1), because the basis #$%(+))

80)

81approaches 0 as approaches 0, making its weight harder to distinguish at small radii.Moreover, we can reach a smaller by modifying our optical system to generalize the interested size range in other applications.Based on the relationship = to keep at the same value but with a smaller and a larger .In this way, we can push the lower bound even lower at the cost of compromising accuracy in the big size end of the predictions.

Estimator stress test with a double peak PSD synthetic dataset.

82We created a synthetic dataset with double-peak PSDs to test the estimator's generalization ability to different PSD shapes.Unfortunately, it fails to predict the double peaks PSDs, as shown in Fig. S10.The output is a single peak PSD located between the two peaks.The position is approximately influenced by the weight of these two peaks.This is partially because this double peak feature is not included in the training dataset, so it has not been learned as a prior to the PEACE pipeline.However, even if we train the estimator with a mixture of single and double-peak PSD datasets, it cannot provide a good estimation.We can explain this with the forward model.To resolve a single peak in the PSD, the estimator could combine the low-order lobes' intensity with the learned prior from the dataset to estimate.However, high-order lobes are required to distinguish double peaks in the PSD.However, the higher-order lobes will merge into the background fluctuations when the large particles exist, as shown in Fig. 2e and the second column in Fig. S10.We may be able to solve this issue by increasing the number of averaging frames to suppress the background fluctuation feature in the autocorrelation image, or by exploiting higher order correlations (cumulants).This problem is outside the scope of our present work, but interesting as a topic for future research.

Fig. 1 |

83Fig. 1 | Overview of the speckle probe and the PEACE algorithm.a A sketch of our speckle probe.We collect the scattered light from the scattering media -powder in our case -with a monochromatic CCD camera.The Machine Learning-based analysis can extract the quantitative surface information, the PSD, from the speckle statistics.b PEACE training loop.The forward operator comes from the physics model.A small "generator" with a physics-picture-inspired structure is trained by a modest amount of the experimental data.The forward operator

Fig. 2 |

84Fig. 2 | KCl powder results with sizes (i) ~106-180 μm and (ii) ~425-500 μm. a Microscope and b commercial camera photos for two samples.c Raw speckle images collected by the CCD camera.d These four spatially integrated autocorrelation images are collected on the same sample with different particle positions.e The upper half image shows the averaged 1000 autocorrelation frames from the measurement.Since the particle position is ergodic, the temporal average equals the ensemble average of the autocorrelation image.The lower half imageshows the calculation result from the forward operator.f The ground truth particle size distribution (PSD) and the corresponding estimator prediction are plotted together.g Cross-section plots of the averaged autocorrelations in e for different samples with ascending PSDs.The positions of the high-order lobes are marked.We raise the autocorrelation to the power of one-eighth to enhance the sidelobes' visibility.

Fig. 3 |

85Fig. 3 | Generator and estimator prediction results with the experimental test dataset.The results of 10 test sample sets are plotted.The first and second columns show the output from the forward operator H and the generator G, respectively.The measured 200 frames averaged autocorrelations are plotted in the third column.The prediction (marked as orange) from the estimator F and ground truth (marked as red) of the cumulative distributions and the corresponding PSDs are plotted together in columns 4 and 5.

Fig. 4 |

86Fig. 4 | Network visualization of the estimator F. a The output of the first stage with 8 filters.b The output of the second stage with 16 filters.c The output of the third stage with 32 filters.d The output of the fourth stage with 64 filters.e GradCAM results for different sample sets.The input images are plotted together with the "importance" maps which consist of the flame shape features.

For the duration of 5

87to 25 minutes since the beginning of the process, we observed a gradual size increase compared to the original PSD.Since no crystallization or crystal growth could take place during drying, we think soft agglomeration instead occurred.From 25 to 40 minutes, the PSD gradually decreased to the original distribution, which is indicative of deagglomeration.At the far end (>75 mins), crystal breakage45 caused the size distribution to decrease slightly compared to the original.PSD curves sampled at different times are plotted in Fig.5a, together with Mastersizer results serving as ground truth for the beginning and ending time.They match well and the slight crystal breakage is clearly resolved for both Mastersizer and speckle predictions.The PSD curve shifts toward the right from the start time to 26.1 minutes, and then decreases backwards to the original position as plotted for the next 59.2 min.We did not measure the PSD with the Mastersizer when the powder was wet because in this process soft agglomerates were too fragile to allow any mechanical contact.This is one of the advantages of our non-invasive measurement compared to the traditional way with the Mastersizer.Fig.5care camera photos, taken with an iPhone 11, corresponding to the marked times in (a) and (b) for reference.(i) and (iv) are dry powders, while the (ii) and (iii) are wet powder images.It is hard to distinguish different sizes from macroscopic textures.

Fig. 5 |

88Fig. 5 | Time-lapse PSD measurement in the drying process.a Measured PSDs at a few selected time points corresponding to the dashed red line marks in b.The dashed line plots are the Mastersizer measurements serving as ground truth at the beginning and the end of the process.b Time-lapse PSD map during the drying process.We observed soft agglomeration occurring from 5-25 min, and deagglomeration from 25-40 min.c Corresponding camera photos at the times where the PSDs were sampled in a.These photos were taken from the same optical window as the laser beam using a commercial iPhone 11.

Fig. S1 |

89Fig. S1 | The photo of our drying filter.The crucial parts are labeled.

Fig. S2 |

90Fig. S2 | (a) A photo of our optics bench in the lab.All optical components are encapsulated in the optical tube and cubic to prevent light from escaping through the side.(b) A sketch of the optics.Lenses L1, L2, and L3 have focal lengths of 25 mm, 30 mm, and 250 mm, respectively.(c) A powder model sketch used in the derivation of the forward model.We only consider the top surface.The red rectangles are 1D powder particles, with radius ri and position xi.The rough top edge denotes that the scattered beam has a random phase at each different position.

30 minutes until no

91further change of weight of the sieves with powder was observed.The samples obtained from the sieves were directly used to calibrate the speckle.Each sieved dry powder sample was added individually to the filter-dryer and stirring was carried out at 4 rpm to record 1000 frames speckle pattern.20 calibration data sets were obtained corresponding to the sieved KCl samples.From 1000 collected images in each sample set, we use 200 frames on average with a 40-frame step sliding window to obtain 20 averaged images.Employing an ergodicity argument, these averaged images are the ensemble averaged autocorrelations.To evaluate the generalization ability of our DNN model, we separate 10 sample sets to form the generator G training dataset, whereas the remaining 10 sets are the test dataset which is disjoint from the training process.Both datasets are kept away from the estimator F training process.

Fig. S3 |

92Fig. S3 | Speckle images (top) and its autocorrelations (bottom) in different exposure times.

Fig. S4 |

93Fig. S4 | Sample preparation and calibration.(a) PSD calibration curves measured from the Mastersizer serve as the ground truth for each data set.(b) Measured average-autocorrelations and the calculations for 8 sample sets with ascending size distributions are plotted together.Their corresponding line-cut plots are shown in Fig.2(g).

Fig. S5 |

94Fig. S5 | Simulation of phase correlation for different surface height profiles.(a) Surface profile for a square shape particle with a size ~150µm.The particle is sampled with 128 pixels.height fluctuation is 1%, which corresponds to 1.5µm.Four curves with different texture sizes are plotted.The texture size describes the horizontal size of the fluctuations in pixel units.(b) plots the phase correlation calculated by () = exp , !" # ()/ from the surface profile (a).(c) Surface profile with 10% height fluctuation.The rest information is the same with (a).(d) Phase correlation corresponding to (c).(e) Surface profile for a round particle with 5% height fluctuation.(f)

Fig. S6 |

95Fig. S6 | The learning scheme of the PEACE algorithm.A total of three data flows are described.First, an experimental dataset is utilized for training the generator with the NPCC loss function.Then a synthetic dataset is generated from the forward operator and the generator to train the estimator with the MAE loss.Finally, another experimental data serves as the test set for the estimator.

Fig.

96Fig. S6 shows the PEACE learning scheme.It consists of three parts, forward operator , generator , and estimator .The forward operator refers to equation 1, which produces the calculated result F from a given object , the PSD in our case.The generator maps F to the experimental measurement .The estimator F is our ultimate final goal, which converts to the corresponding object .A paired small training dataset ( + = ( + ) and + F ) is collected from the experiment to train the generator with the negative Pearson correlation coefficient (NPCC) 6,7 loss function.The generator is designed based on the physical model to reach high performance with only 2.8k parameters, thus avoiding overfitting.A large synthetic dataset ( G F and G ) is generated from and to train the estimator with the mean-absoluteerror (MAE) loss.A separated experimental dataset tests the performance of the estimator on the real data.

Fig. S7 |

97Fig. S7 | (a) Generator structure.The generator transforms the calculated image to the measured image.Random noise is generated and concatenated to the input.This neural network contains four convolutional layers.Instancenormalization (IN) and ReLU activation are applied before each convolutional layer except the last one.The last layer has a Sigmoid activation function.(b) Estimator structure.The estimator takes averaged autocorrelation images as input and the cumulative distributions as output.It consists of four stages with four convolutional layers in each.IN and ReLU activation are applied before each convolutional layer.There is a flattening layer and a linear layer with Sigmoid activation connected to the output of the fourth stage.The output data dimension and the filter parameters for each layer are labeled at the bottom of this figure.(c) This image is to show the physical meaning of the cumulative distribution.Assume there are 20 particles, ten particles have radius 1, six particles have radius 2, three particles have radius 3, and one particle has radius 4. If we stack them at the center and set the y-axis as the particle number, after normalization we find that the vertical "projections" are identical to the cumulative distribution.

Fig. S8 |

98Fig. S8 | Validation results for the needle shape powders L-threonine (i) and Monosodium glutamate, MSG (ii).(a) In the microscopic images with the same scale bar for both (i) and (ii), MSG is clearly much bigger than L-threonine.(b) Measured averaged autocorrelations showing that MSG results in weaker side lobes compared to L-threonine.(c) Particle size distributions in volume base measured by our method (orange bar) and the Mastersizer (red line) serving as the ground truth.

7 -, 0 7 !

99of the training process.The learning rate for the generator G is fixed to be 10 5! to avoid overfitting.The batch size is set to be 4.The training loss function is the negative Pearson correlation coefficient (NPCC)6,7 .If denotes the index in the training batch, and (, ) denotes the (, ) CJ th pixel in a particular image, then the batch-wise NPCC loss is defined as: NPCC = [ ℇ NPCC ( N , -N ) N ℇ NPCC * N , -N -= − ∑ * N (, ) − N --4 N ˜(, ) − -N -™∑ * N (, ) − N --! -,0 ™ ∑ 4 -N (, ) − -N -Here, •̅ denotes spatial averaging.The ideal minimum value of this loss function is -1.Our validation NPCC loss can reach -0.995 after 50 epochs of training.The learning rate of the estimator F was set to be 2 × 10 5" initially and halved whenever validation loss plateaued for 6 consecutive epochs.Batch size was set to 4. The training lasted for 100 epochs with mean absolute error (MAE) as the training loss function.For a 1D probability distribution, MAE is equivalent to the 1-Wasserstein distance 10 .The validation MAE loss for the synthetic data can reach 0.017 while it is 0.027 for the experimental validation data.This small mismatch is within our tolerance.The computer used for training has Intel Xeon G6 CPU, 128 GB RAM, and dual Volta GPUs with 64 GB VRAM.Both training and test data were shuffled before each epoch.It took around 2 minutes to finish the whole training process.

) ' / 1 $

100, we can reduce the focal length of L3 4

Fig. S9 |

101Fig. S9 | Prediction results by the generator and estimator with the generator G training dataset.Results of ten G training sample sets are plotted.These data were disjoint from the training process of the estimator F. The first and second columns show the output from the forward operator and the generator , respectively.The measured averaged autocorrelations are plotted in the third column.The prediction (marked as orange) from the estimator and ground truth (marked as red) of the cumulative distributions and the corresponding PSDs are plotted together in columns 4 and 5.

102% 53 !);<2;) ' =(> % 5> !)?( 6 ) * ( !)( 6 ) * ( !) 6 !6 !( 6 ) * ( !)( 6 ) * ( !) 6 !6 ! 9 ( 6 ) * ( !)( 6 ) * ( ! ) ( 6 − !+ 6 − !) 6 !6 !(2)The delta function sifts the content of the integrand at != 6 + 6 − !.Then the equation can be furtherFrom Equation (M3), we carry out variable substitution as = !, = 6 − ! and = 6 − ! .

103' (> % 5> ! ) ( 6 ) * ( 6 + 6 − !)( 6 ) * ( !) 6 6 !(3) ' (@;>5>)( + ) * ( + + )( + ) * () ' (@;>) * ( + + )( + )h g9 ) ' > ( + ) * ()h) ' @ * ( + )()h g9 ) ' @ () * ( + )8 !(4)

참고문헌 47건

  1. Review of electronic speckle pattern interferometry (ESPI) for three dimensional displacement measurement Chinese Journal of Mechanical Engineering · China Machine Press · 2014 10.3901/cjme.2014.01.001
  2. Electronic speckle pattern interferometry using digital image processing techniques Applied Optics · Optica Publishing Group · 1980 10.1364/ao.19.001879
  3. A new light-scattering technique to measure the diameter of periodically generated moving droplets Journal of Aerosol Science · Elsevier BV · 1986 10.1016/0021-8502(86)90063-7
  4. Quantification of skin quality through speckle analysis Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2015 10.1117/12.2077616
  5. The role of particle technology in developing sustainable construction materials Advanced Powder Technology · Elsevier BV · 2010 10.1016/j.apt.2009.10.006
  6. Sampling and characterization of pharmaceutical powders and granular blends International Journal of Pharmaceutics · Elsevier BV · 2002 10.1016/s0378-5173(02)00481-7
  7. Drug packaging security by means of white-light speckle Optics and Lasers in Engineering · Elsevier BV · 2012 10.1016/j.optlaseng.2012.05.016
  8. Impact of agitated drying on crystal morphology: KCl–water system Powder Technology · Elsevier BV · 2003 10.1016/s0032-5910(03)00056-1
  9. Generalization of the Lambertian model and implications for machine vision International Journal of Computer Vision · Springer Science+Business Media · 1995 10.1007/bf01679684
  10. ‘Fingerprinting’ documents and packaging Nature · Nature Portfolio · 2005 10.1038/436475a
  11. Sparsity-based image monitoring of crystal size distribution during crystallization Journal of Crystal Growth · Elsevier BV · 2016 10.1016/j.jcrysgro.2016.09.040
  12. Online Detection of Particle Agglomeration during Solution Crystallization by Microscopic Double-View Image Analysis Industrial & Engineering Chemistry Research · American Chemical Society · 2017 10.1021/acs.iecr.7b02439
  13. Generative Adversarial Networks: An Overview IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2018 10.1109/msp.2017.2765202
  14. Manufacturing porous ceramic materials by tape casting—A review Journal of the European Ceramic Society · Elsevier BV · 2017 10.1016/j.jeurceramsoc.2017.11.047
  15. Scatterer recognition via analysis of speckle patterns Optica · Optica Publishing Group · 2018 10.1364/optica.5.000204
  16. Deep speckle correlation: a deep learning approach toward scalable imaging through scattering media Optica · Optica Publishing Group · 2018 10.1364/optica.5.001181
  17. Image Analysis for In-line Measurement of Multidimensional Size, Shape, and Polymorphic Transformation of <scp>l</scp>-Glutamic Acid Using Deep Learning-Based Image Segmentation and Classification Crystal Growth & Design · American Chemical Society · 2018 10.1021/acs.cgd.8b00883
  18. Motility-based label-free detection of parasites in bodily fluids using holographic speckle analysis and deep learning Light Science & Applications · Springer Nature · 2018 10.1038/s41377-018-0110-1
  19. Computational image speckle suppression using block matching and machine learning Applied Optics · Optica Publishing Group · 2019 10.1364/ao.58.000b39
  20. Dual-beam interferometric particle imaging for size measurement of opaque metal droplet Powder Technology · Elsevier BV · 2019 10.1016/j.powtec.2019.07.027
  21. Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization 2017 10.1109/iccv.2017.74
  22. Imaging through glass diffusers using densely connected convolutional networks Optica · Optica Publishing Group · 2018 10.1364/optica.5.000803
  23. Speckle denoising in optical coherence tomography images using residual deep convolutional neural network Multimedia Tools and Applications · Springer Science+Business Media · 2019 10.1007/s11042-019-07999-y
  24. Dilated Residual Learning With Skip Connections for Real-Time Denoising of Laser Speckle Imaging of Blood Flow in a Log-Transformed Domain IEEE Transactions on Medical Imaging · Institute of Electrical and Electronics Engineers · 2019 10.1109/tmi.2019.2953626
  25. Photonic human identification based on deep learning of back scattered laser speckle patterns Optics Express · Optica Publishing Group · 2019 10.1364/oe.27.036002
  26. DeepLSR: a deep learning approach for laser speckle reduction Biomedical Optics Express · Optica Publishing Group · 2019 101364boe10002869
  27. A Compact Device for the Integrated Filtration, Drying, and Mechanical Processing of Active Pharmaceutical Ingredients Journal of Pharmaceutical Sciences · Elsevier BV · 2019 10.1016/j.xphs.2019.12.011
  28. Stochastic Mirror Descent on Overparameterized Nonlinear Models IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tnnls.2021.3087480
  29. A Study of Generalization of Stochastic Mirror Descent Algorithms on Overparameterized Nonlinear Models ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · 2020 10.1109/icassp40776.2020.9053864
  30. Speckle noise reduction in coherent imaging based on deep learning without clean data Optics and Lasers in Engineering · Elsevier BV · 2020 10.1016/j.optlaseng.2020.106151
  31. DeepLSR: a deep learning approach for laser speckle reduction Biomedical Optics Express · Optica Publishing Group · 2019 10.1364/boe.10.002869
  32. Deep speckle correlation: a deep learning approach toward scalable imaging through scattering media Optica · Optica Publishing Group · 2018 10.1364/optica.5.001181
  33. Recognition of Suspension Liquid Based on Speckle Patterns Using Deep Learning IEEE photonics journal · Institute of Electrical and Electronics Engineers · 2020 10.1109/jphot.2020.3044912
  34. Applications of machine vision in pharmaceutical technology: A review European Journal of Pharmaceutical Sciences · Elsevier BV · 2021 10.1016/j.ejps.2021.105717
  35. Optical Technologies for the Improvement of Skin Cancer Diagnosis: A Review Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21010252
  36. Recurrent neural network reveals transparent objects through scattering media Optics Express · Optica Publishing Group · 2021 10.1364/oe.412890
  37. Characterization of particle size and shape by an IPI system through deep learning Journal of Quantitative Spectroscopy and Radiative Transfer · Elsevier BV · 2021 10.1016/j.jqsrt.2021.107642
  38. Single scattering modeling of speckle correlation 2021 10.1109/iccp51581.2021.9466262
  39. Imaging with Local Speckle Intensity Correlations: Theory and Practice ACM Transactions on Graphics · Association for Computing Machinery · 2021 10.1145/3447392
  40. SensiCut: Material-Aware Laser Cutting Using Speckle Sensing and Deep Learning 2021 10.1145/3472749.3474733
  41. Electronic Speckle Pattern Interferometry Springer eBooks · Springer Nature · 1987 10.1007/978-94-009-3609-6_36
  42. Far-field super-resolution ghost imaging with a deep neural network constraint Light Science & Applications · Springer Nature · 2022 10.1038/s41377-021-00680-w
  43. Far-field super-resolution ghost imaging with a deep neural network constraint Light Science & Applications · Springer Nature · 2022 10.1038/s41377-021-00680-w
  44. Lambertian Reflectance Springer eBooks · Springer Nature · 2014 10.1007/978-0-387-31439-6_534
  45. Statistical properties of laser speckle patterns Topics in applied physics · Springer Science+Business Media · 1975 10.1007/bfb0111436
  46. A boundary migration model for imaging within volumetric scattering media Nature Communications · Nature Portfolio · 2022 10.1038/s41467-022-30948-7
  47. Tracking moving objects through scattering media via speckle correlations Nature Communications · Nature Portfolio · 2022 10.1038/s41467-022-33470-y