Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
PUPIL ENGINEERING METHOD TO ENHANCE THE SIGNAL OF THE REAL-TIME DETERMINATION OF PARTICLE SIZE DISTRIBUTION IN POWDERS
Document Type and Number:
WIPO Patent Application WO/2023/172305
Kind Code:
A1
Abstract:
A method of monitoring a particle size distribution (PSD) is provided. At least a partially coherent pupil-engineered beam may be produced. A plurality of particles having a particle size distribution (PSD) may be illuminated by the pupil-engineered beam to produce scattered light. The scattered light may be captured by a pixelated photoelectric detector, thereby creating a raw speckled image. An intensity correlation of the raw speckled image may be computed. The intensity correlation may be provided to an inverse module. The inverse module may be configured to determine the PSD based on the intensity correlation. The PSD may be obtained from the inverse module.

Inventors:
PANDIT AJINKYA (US)
GUO ZHEN (US)
ZHANG QIHANG (US)
MYERSON ALLAN (US)
BARBASTATHIS GEORGE (US)
GAMEKKANDA GAMETHIGE JANAKA (US)
BRAATZ RICHARD (US)
Application Number:
PCT/US2022/050046
Publication Date:
September 14, 2023
Filing Date:
November 16, 2022
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
MASSACHUSETTS INST TECHNOLOGY (US)
PANDIT AJINKYA (US)
GUO ZHEN (US)
International Classes:
G01N15/02; G01N15/00
Domestic Patent References:
WO2015160418A22015-10-22
Foreign References:
US20170248518A12017-08-31
CN113962866A2022-01-21
US20200299488A12020-09-24
Attorney, Agent or Firm:
AKHIEZER, Alexander et al. (US)
Download PDF:
Claims:
CLAIMS

What is claimed is:

1. A method of monitoring a particle size distribution (PSD), the method comprising: producing an at least partially coherent pupil-engineered beam; illuminating a plurality of particles having a particle size distribution (PSD) by the at least partially coherent pupil-engineered beam to produce scattered light; capturing the scattered light by a pixelated photoelectric detector, thereby creating a raw speckled image; computing an intensity correlation of the raw speckled image; providing the intensity correlation to an inverse module, the inverse module being configured to determine the PSD based on the intensity correlation; and obtaining from the inverse module the PSD.

2. The method of claim 1, wherein producing the at least partially coherent beam comprises imposing a mask on an at least partially coherent beam.

3. The method of claim 2, wherein the mask is an intensity mask.

4. The method of claim 2, wherein the mask is a phase mask.

5. The method of claim 1, wherein the mask is a hybrid mask.

6. The method of claim 1, wherein the intensity correlation is intensity autocorrelation.

7. The method of any one of claims 1 through 6, wherein the inverse module comprises a machine learning module, a gradient descent module, a non-linear solver, a curvefitting module, or a differential evolution algorithm module.

8. The method of any one of claims 1-7, wherein the inverse module is configured to generate the PSD. The method of any one of claims 1-7, wherein the inverse module is configured to generate a cumulative distribution function (CDF) and to differentiate the CDF to generate the PSD. The method of claim 7-9, wherein the inverse module comprises the machine learning module. The method of claim 10, wherein the machine learning module comprises a neural network. The method of claim 11, wherein providing the intensity correlation to the inverse module comprises providing the intensity correlation to the neural network configured to determine the PSD. The method of claim 11, wherein the neural network is a convolutional neural network. The method of claim 13, wherein the convolutional neural network includes at least one skip connection. The method of claim 13, wherein the convolutional neural network includes a plurality of stages, and wherein each stage of the plurality of stages includes at least one skip connection and at least one batch-normalization and activation layer. The method of claim 13, wherein the convolutional neural network includes a linear layer. The method of any one of claims 1-16, wherein the plurality of particles is a dry powder, the method further comprising grinding the dry powder. The method of claim 17, further comprising discontinuing grinding when the PSD shows agglomeration. The method of any one of claims 1-16, wherein the plurality of particles is a wet powder, the method further comprising agitating the wet powder. The method of claim 19, further comprising discontinuing agitating the plurality of particles when the PSD shows agglomeration. A device for monitoring a particle size distribution (PSD), comprising: an illumination module adapted to produce an at least partially coherent pupil- engineered beam, and to illuminate a plurality of particles having a particle size distribution (PSD) by the at least partially coherent beam to produce scattered light; a pixelated photoelectric detector configured to capture the scattered light and create a raw speckled image; a correlation-computing module configured to compute an intensity correlation of the raw speckled image; and an inverse module configured to determine the PSD based on the intensity correlation. The device of claim 21, wherein the illumination unit comprises a mask configured to be imposed on the beam. The device of claim 22, wherein the mask is an intensity mask. The device of claim 22, wherein the mask is a phase mask. The device of claim 21, wherein the mask is a hybrid mask. The device of any one of claims 21-25, wherein the correlation-computing module is configured to compute an intensity autocorrelation. The device of any one of claims 21 through 26, wherein the inverse module comprises a machine learning module, a gradient descent module, a non-linear solver, a curvefitting module, or a differential evolution algorithm module. The device of any one of claims 21-27, wherein the inverse module is configured to generate the PSD. The device of any one of claims 21-27, wherein the inverse module is configured to generate a cumulative distribution function (CDF) and to differentiate the CDF to generate the PSD. The device of claim 27, wherein the inverse module comprises the machine learning module. The device of claim 30, wherein the machine learning module comprises a neural network. The device of claim 31, wherein the neural network is configured to determine the PSD. The device of claim 31, wherein the neural network is a convolutional neural network. The device of claim 33, wherein the convolutional neural network includes at least one skip connection. The device of claim 33, wherein the convolutional neural network includes a plurality of stages, and wherein each stage of the plurality of stages includes at least one skip connection and at least one batch-normalization and activation layer. The device of claim 33, wherein the convolutional neural network includes a linear layer. The device of any one of claims 21-36, further comprising a grinder adapted to grind the plurality of particles. The device of claim 37, wherein the grinder is adapted to transmit the pupil- engineered beam for illumination of the plurality of particles. The device of any one of claims 31-36, further comprising an agitator adapted to agitate the plurality of particles. The device of claim 39, wherein the agitator is adapted to transmit the pupil- engineered beam for illumination of the plurality of particles. A computer program product for monitoring a particle size distribution (PSD), the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform a method comprising: producing an at least partially coherent pupil-engineered beam; illuminating a plurality of particles having a particle size distribution (PSD) by the at least partially coherent beam to produce scattered light; capturing the scattered light by a pixelated photoelectric detector, thereby creating a raw speckled image; computing an intensity correlation of the raw speckled image; providing the intensity correlation to an inverse module, the inverse module being configured to determine PSD based on the intensity correlation; and obtaining from the inverse module the PSD.

Description:
PUPIL ENGINEERING METHOD TO ENHANCE THE SIGNAL OF THE REAL-TIME

DETERMINATION OF PARTICLE SIZE DISTRIBUTION IN POWDERS

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the benefit of U.S. Provisional Application No. 63/318,880 filed March 11, 2022, which is hereby incorporated by reference in its entirety.

BACKGROUND

[0002] Many pharmaceuticals undergo a drying stage, during which the wet solid, or “cake”, is converted into a powder consisting of particles with the requisite size distribution. These powders are subsequently encapsulated into solid dosage forms/ pills.

[0003] Agitation filter dryer (AFD) is one of the most common dryers used in the industry since it integrates both filtration and drying unit operations are integrated into one equipment. However, the formation of aggregates during the drying process has become a challenging problem because of unbreakable hard lumps and product degradation due to the trapped moisture in the powder. During the drying process, the temperature and pressure (vacuum) are controlled (depending on the solvent used and the temperature stability of the solid) and the cake is agitated or intermittently agitated to prevent unwanted agglomeration. Even though the parameters of the drying processes and the overall industrial environments where these processes take place are generally well controlled, the evolution of the particle sizes during agitation is not fully predictable. Particle size distribution (PSD) in cakes may range from a few 1 micron to 1000 microns with the possibility of even larger agglomerates forming. The goal of the drying process is to maintain the initial particle size and to prevent ‘hard agglomerates’ (crystals bonded together) from forming. The presence of large hard agglomerates is undesired as they can cause content uniformity issues in drug formulation and can cause a batch to be rejected for not meeting PSD specifications. Even though the breaking of hard aggregates is possible in some cases, the delumping of the powder requires additional equipment and time, and it adds cost to the process. In the end, the delumping process also can result in loss of products. Thus, it is crucial to monitor the evolution of particle sizes quantitatively and in real time, to detect the beginnings of agglomeration as early as possible and correct through feedback control on process parameters (e.g., temperature, agitation speed). [0004] No real-time online monitoring methods exist presently that can detect and prevent such abnormally large agglomerants early on. Imaging by a standard camera from a distance compatible with the manufacturing setting (~0.5-1m away from the powder) does not provide sufficient spatial resolution to extract the PSD. Probe-based imaging with the fiber bundle is invasive and it only captures a very small field of view; thus, it may miss large agglomerates forming elsewhere; moreover, there is a risk of the powder obscuring the viewing field, rendering the imaging operation impossible. Instead, manufacturers commonly rely on trained personnel to visually observe the mixing — but this can be subjective. Machine vision to analyze the appearance of the cake surfaces and detect agglomerates are generally limited. Alternatively, it is possible at fixed time intervals to extract a sample from the cake and pass it through a particle size analyzer instrument. However, this method is invasive and slow and, thus, not suitable for industrial use.

[0005] Extracting quantitative information about highly scattering surfaces from an imaging system is a challenging problem because the phase of the scattered light undergoes multiple folds upon propagation, resulting in complex speckle patterns.

[0006] The speckle is an encoding of spatially variant patterns on the cake surface, which include particle locations and sizes. However, no explicit relationships exist to allow easy inverse mapping from the speckle to the statistical properties of the spatially variant particle features.

BRIEF SUMMARY

[0007] In an example embodiment, the present invention is a method of monitoring a particle size distribution (PSD). The method comprises: producing an at least partially coherent pupil- engineered beam; illuminating a plurality of particles having a particle size distribution (PSD) by the at least partially coherent pupil-engineered beam to produce scattered light; capturing the scattered light by a pixelated photoelectric detector, thereby creating a raw speckled image; computing an intensity correlation of the raw speckled image; providing the intensity correlation to an inverse module, the inverse module being configured to determine the PSD based on the intensity correlation; and obtaining from the inverse module the PSD.

[0008] In another example embodiment, the present invention is a device for monitoring a particle size distribution (PSD). The device comprises: an illumination module adapted to produce an at least partially coherent pupil-engineered beam, and to illuminate a plurality of particles having a particle size distribution (PSD) by the at least partially coherent beam to produce scattered light; a pixelated photoelectric detector configured to capture the scattered light and create a raw speckled image; a correlation-computing module configured to compute an intensity correlation of the raw speckled image; and an inverse module configured to determine the PSD based on the intensity correlation.

[0009] In another example embodiment, the present invention is a computer program product for monitoring a particle size distribution (PSD). The computer program product comprises a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform a method comprising: producing an at least partially coherent pupil-engineered beam; illuminating a plurality of particles having a particle size distribution (PSD) by the at least partially coherent beam to produce scattered light; capturing the scattered light by a pixelated photoelectric detector, thereby creating a raw speckled image; computing an intensity correlation of the raw speckled image; providing the intensity correlation to an inverse module, the inverse module being configured to determine PSD based on the intensity correlation; and obtaining from the inverse module the PSD.

[0010] The following Detailed Description references the accompanying drawings which form a part this application, and which show, by way of illustration, specific example implementations. Other implementations may be made without departing from the scope of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

[0011] FIGS. 1(a)-1(d) illustrate a speckle probe and related optics, raw speckle and endoscope camera images, and a sketch of a powder model according to various embodiments of the present disclosure.

[0012] FIGS. 2(a)-2(e) depict microscope, raw speckle, spatial-integral autocorrelation images for two samples of KC1 powder of different sizes as well as average autocorrelation and cross-section plots of the average autocorrelation according to various embodiments of the present disclosure.

[0013] FIGS. 3(a)-3(c) depict a deep convolutional neural network structure, an example associated cumulative distribution function (CDF), and example particle size distribution (PSD) curves according to various embodiments of the present disclosure. [0014] FIGS. 4(a)-4(b) depict example test results including PSDs for a trained deep convolutional network utilizing various test sets according to various embodiments of the present disclosure.

[0015] FIGS. 5(a)-5(d) depict examples of an original circle beam and a pupil engineered beam and the associated power spectral densities according to various embodiments of the present disclosure.

[0016] FIGS. 6(a)-6(f) depict examples of averaged speckle autocorrelations with the original circle beam and the engineered pupil beam for different particle sizes according to various embodiments of the present disclosure.

[0017] FIG. 7 depicts the measured speckle autocorrelations with different averaging frames. According to various embodiments of the present disclosure.

[0018] FIG. 8 is a block diagram of a general-purpose computer which processes computer programs using a processing system according to various embodiments of the present disclosure.

[0019] FIG. 9 depicts a flow diagram of example process for monitoring a particle size distribution (PSD) according to various embodiments of the present disclosure.

[0020] FIG. 10 depicts a schematic diagram of an example device for monitoring a particle size distribution (PSD) according to various embodiments of the present disclosure.

DETAILED DESCRIPTION

[0021] The present disclosure provides methods, systems, and computer program products for monitoring a particle size distribution (PSD). Various embodiments of the present disclosure are discussed in detail below. While specific implementations are discussed, it should be understood that this is done for illustration purposes only. A person skilled in the relevant art will recognize that other components and configurations may be used without parting from the spirit and scope of the disclosure.

[0022] In a first example embodiment, a method of monitoring a particle size distribution (PSD) is provided. The first example embodiment is illustrated in FIG. 6, which shows a flow chart of an example method 900. In step 910, at least a partially coherent pupil- engineered beam is produced. In step 920, a plurality of particles having a particle size distribution (PSD) is illuminated by the pupil-engineered beam to produce scattered light. In step 930, the scattered light is captured by a pixelated photoelectric detector, thereby creating a raw speckled image. In step 940, an intensity correlation of the raw speckled image is computed. In step 950, the intensity correlation is provided to an inverse module, the inverse module being configured to determine the PSD based on the intensity correlation. In step 960, the PSD is obtained from the inverse module.

[0023] As used herein, “a partially coherent beam” refers to a beam that includes multiple coherent modes in space and/or time, wherein the modes can be mutually incoherent.

[0024] As used herein, a “pixelated” detector includes a class of digital or analog detector where the information is returned in the form of samples called “pixels.” The samples may be based on a sampling scheme, which may include uniform sampling, non-uniform sampling, masked sampling, and/or random sampling. For uniform sampling, the spacing between pixel locations is substantially constant. For non-uniform sampling, the spacing between pixel locations varies according to a predetermined formula, e.g. quadratic (also known as “linear chirp”) and/or other schemes. Masked sampling is a technique where samples are skipped (or blocked) according to a predetermined scheme, e.g. every second or every third pixel.

Masked sampling can be physically implemented by superimposing an absorbing mask over the detector or at an image-conjugate plane. Random sampling is a technique where the pixel locations are determined according to a random number generator obeying a pre-chosen probability distribution. Although the examples and figures described herein are based on a uniform sampling scheme, what is presented herein may be implemented according to any the other sampling schemes, such as the sampling schemes described herein, without departing from the scope and spirit of what is described herein.

[0025] In various aspects of the first example embodiment, producing the at least partially coherent beam may include imposing a mask on an at least partially coherent beam. The mask may be an intensity mask or a phase mask. In some aspects, the mask may be a hybrid mask.

[0026] As used herein, a “mask” includes an intensity mask, a phase mask and/or a hybrid mask. The mask can be continuous gray-scale or binarized. The mask can be realized as a digital micromirror device (DMD), a spatial light modulator (SLM) of the amplitude or phase type, and/or it may be fabricated by a 3D printing or lithography technique utilizing single or multiple materials. A mask may be implemented through structured illumination, which also uses one of the above mentioned techniques, such as a DMD, a SLM, and/or a fabricated mask to achieve a desired light distribution on a sample surface.

[0027] In certain aspects of the first example embodiment, the intensity correlation may be intensity autocorrelation. In some aspects, the inverse module may include a machine learning module, a gradient descent module, a non-linear solver, a curve-fitting module, or a differential evolution algorithm module. In other aspects, the inverse module may be configured to generate the PSD. In yet other aspects, the inverse module may be configured to generate a cumulative distribution function (CDF) and to differentiate the CDF to generate the PSD. In various aspects of the first example embodiment, the inverse module may include the machine learning module. In some aspects, the machine learning module may include a neural network.

[0028] In further aspects of the first example embodiment, providing the intensity correlation to the inverse module may include providing the intensity correlation to the neural network configured to determine the PSD. In some aspects, the neural network may be a convolutional neural network. In other aspects, the convolutional neural network may include at least one skip connection. In yet other aspects, the convolutional neural network may include a plurality of stages. Each stage of the plurality of stages may include at least one skip connection and at least one batch-normalization and activation layer. The convolutional neural network may include a linear layer.

[0029] In further aspects of the first example embodiment, the plurality of particles may be a dry powder. In some aspects, the dry powder may be grinded. In certain aspects, the grinding the plurality of particles may be discontinued when the PSD shows agglomeration. In yet further aspects, the plurality of particles may be a wet powder. In some aspects, the wet powder may be agitated. In certain aspects, agitating the plurality of particles may be discontinued when the PSD shows agglomeration.

[0030] As used herein, “differentiating the CDF” to produce a PSD involves taking the first derivative of the CDF to produce the PSD.

[0031] In a second example embodiment, a device is provided for monitoring a particle size distribution (PSD). The second example embodiment is illustrated in FIG. 10, which shows a schematic diagram of an example device 1000. In one aspect of the second example embodiment, the device comprises: an illumination module 1010 adapted to produce an at least partially coherent pupil-engineered beam, and to illuminate a plurality of particles having a particle size distribution (PSD) by the at least partially coherent beam to produce scattered light; a pixelated photoelectric detector 1020 configured to capture the scattered light and create a raw speckled image; a correlation-computing module 1030 configured to compute an intensity correlation of the raw speckled image; and an inverse module 1040 configured to determine the PSD based on the intensity correlation. [0032] In various aspects of the second example embodiment, the illumination unit may include a mask configured to be imposed on the beam. The mask may be an intensity mask or a phase mask. In some aspects, the mask may be a hybrid mask.

[0033] In various aspects, the correlation-computing module may be configured to compute an intensity autocorrelation.

[0034] In various aspects, the inverse module may include a machine learning module, a gradient descent module, a non-linear solver, a curve-fitting module, or a differential evolution algorithm module. In some aspects, the inverse module may be configured to generate the PSD. In other aspects, the inverse module may be configured to generate a cumulative distribution function (CDF) and to differentiate the CDF to generate the PSD. [0035] In some aspects the machine learning module may include a neural network. In certain aspects, the neural network may be configured to determine the PSD. In other aspects, the neural network may be a convolutional neural network. In further aspects, the convolutional neural network may include at least one skip connection. In still further aspects, the convolutional neural network may include a plurality of stages. Each stage of the plurality of stages may include at least one skip connection and at least one batchnormalization and activation layer. In certain aspects, the convolutional neural network may include a linear layer.

[0036] In various aspects of the second example embodiment, the device may include a grinder adapted to grind the plurality of particles. The grinder may be adapted to transmit the pupil-engineered beam for illumination of the plurality of particles. In additional aspects, the device may include an agitator adapted to agitate the plurality of particles. The agitator may be adapted to transmit the pupil-engineered beam for illumination of the plurality of particles. [0037] In a third example embodiment, a computer program product for monitoring a particle size distribution (PSD) is provided. The computer program product includes a computer readable storage medium having program instructions embodied therewith. The program instructions are executable by a processor to cause the processor to perform a method defined herein above with respect to the first example embodiments and various aspects thereof. For example, at least partially coherent pupil-engineered beam is produced. A plurality of particles having a particle size distribution (PSD) is illuminated by the pupil-engineered beam to produce scattered light. The scattered light is captured by a pixelated photoelectric detector, thereby creating a raw speckled image. An intensity correlation of the raw speckled image is computed. The intensity correlation is provided to an inverse module. The inverse module is configured to determine the PSD based on the intensity correlation. The PSD is obtained from the inverse module.

[0038] In various embodiments, the devices and methods disclosed herein employ machine learning (ML)-assisted speckle analysis to quantitative real-time monitoring of mixing and drying processes. In various embodiments, one application of such processes may be the drying of powder suspensions and wet powders (“cakes”) in the pharmaceutical industry, where quantifying the PSD is of particular interest. The system and method disclosed herein may not, however, be limited to such processes; other possible applications may include other pharmaceutical processes such as milling, and powder blending, rheological measurements in complex fluids or emulsions, characterization, and characterization of cell growth processes for personalized medicine, and/or other applications.

[0039] The speckle is an encoding of spatially variant patterns on the cake surface, which can include particle locations and sizes. However, conventionally no explicit relationships exist to allow an easy inverse mapping from the speckle to the statistical properties of the spatially variant particle features. Disclosed herein are (i) methods and systems that produce a speckle from light scattered by a powder in a chemical drying process that carries sufficient information to extract the PSD in the cake; and (ii) methods and systems for processing the speckle registered on a pixelated photoelectric detector, such as a CCD or CMOS camera, to obtain the PSD quantitatively.

[0040] In various embodiments, methods are provided. In the disclosed methods, a cake may be illuminated by a laser beam. The light scattered from the cake surface may be captured by a pixelated photoelectric detector, such as a CCD or CMOS camera. These captured image data may be referred to as the “raw speckle image.” The raw speckle image may be processed. Using the optical propagation equation, the relationship between the PSD and the ensemble-averaged autocorrelation of captured raw speckle images may be established. The camera may capture the raw speckle images, and may transmit them to a dedicated digital computer, in-house or in the cloud, which may perform the computations necessary to obtain the PSD quantitatively. The methods disclosed herein may be used both for training a machine learning (ML) algorithm, which may be equivalently referred to as an ML model/module, and/or for regular operation in the industrial or laboratory environment. The digital computer may first compute the ensemble-averaged intensity autocorrelation function of the raw speckle image and forward it to an ML model/module. If the ML model/module, such as a DNN, is in training mode, ground truth data may be used to specify the weights in the ML model/module such that it outputs the correct PSD matching the ground truth training data. After training, the ML model/module, such as a DNN, may be capable of receiving the ensemble-averaged autocorrelations as input and producing the correct PSD as output, reliably and with fast computation. Such methods are capable of increased interpretability, compared to conventional “black box” deep learning approaches, since the input to the ML model/module, such as a DNN, may be shaped by physical law, namely the ensemble- averaged autocorrelation of the raw speckle images. Such methods, as presented herein, have been validated using a commercial particle size analyzer to independently establish the PSD and match it to the results of the disclosed ML approach. Additional details about the disclosed methods and possible embodiments are included in section 3, below.

[0041] In various embodiments, systems are provided. In the disclosed systems, in various embodiments, the laser and CCD camera (or alternative photoelectric detector) are mounted on a frame such that the light scattered from the cake is effectively captured. The “common path” configuration, described in detail in section 3 below, may be preferred because it maximizes the light capturing efficiency. The camera may capture the raw speckle images, and may transmit them to a dedicated digital computer, in-house or in the cloud, which may performs the methods and/or computations described herein, such as in the previous paragraph. The disclosed system may be used both for training the ML algorithm and/or for regular operation in the industrial or laboratory environment. The digital computer may first compute the ensemble-averaged intensity autocorrelation function of the raw speckle image and may forward it to the ML model/module. If the ML model/module, such as a DNN, is in training mode, ground truth data may be used to specify the weights in the ML model/module such that it outputs the correct PSD matching the ground truth training data. After training, the ML model/module, such as a DNN, may be capable of receiving the ensemble-averaged autocorrelations as input and producing the correct PSD as output, reliably and with fast computation. Such systems are capable of increased interpretability, compared to conventional “black box” deep learning approaches since the input to the ML model/module, such as a DNN, may be shaped by physical law, namely the ensemble-averaged autocorrelation of the raw speckle images. Such systems, as presented herein, have been validated with a laboratory prototype operating under conditions closely emulating the conditions encountered in industry, using a commercial particle size analyzer to independently establish the PSD and match it to the results of the disclosed ML approach. Additional details about the disclosed methods and possible preferred embodiments are included in section 3, below. One purpose of the methods and systems, as disclosed herein, may be to overcome limitations of conventional techniques by providing a real-time, minimally invasive, and easily deployable in the industrial setting instrument to monitor particle size distributions quantitatively. The methods and systems disclosed herein are based on physics and algorithms, so they do not involve human intervention and/or human subjectivity. The algorithms operate faster and more efficiently as compared to conventional techniques because the algorithms include a component based on ML, which after training may not be computationally demanding. The ML algorithm may perform computations during the training phase, which may occur during the design of the algorithm, and which may insignificantly or not impact the user.

From speckle to distributions of powder particle sizes

[0042] The methods and systems, as described herein, use one or more images of a speckle, which may be an encoding of the particle sizes. A speckle image results from propagation of a wavefront whose phase has been strongly modulated by spatially variant features across a surface and/or a volume. According to the Huygens principle, the influence of each feature upon its neighbors expands as the propagation distance increases. Interference from light scattered by each feature with its neighbors results in a “salt and pepper” appearance of a speckle at any observation screen downstream, such as the viewer’s retina or a digital camera. For a fixed rough surface, a speckle may technically be deterministic, because it may entirely be determined by the surface morphology. However, because the surface morphology is seldom known and/or very difficult to determine, and it is difficult to compute the scattered light exactly, traditional analysis of a speckle treats the surface morphology as a random process in the spatial domain. As long as the morphology statistics are invariant, it may be straightforward to relate statistical moments of the surface to the statistical moments of the speckle itself.

[0043] The speckle has long been used to characterize surface roughness, but the conventional techniques to characterize surface roughness only work when the surface height fluctuation, or equivalently, typical particle size, is smaller or comparable than the light wavelength. This limits its application to surfaces encountered in many industrial processes, such as pharmaceuticals manufacturing. Electronic Speckle Pattern Interferometry (ESPI) is another conventional technique that can measure the surface motion distribution even at nanometer scales. However, ESPI requires a reference beam, and it is disadvantageously a two-step measurement that cannot detect absolute height. Another conventional technique, laser speckle contrast imaging, is qualitative and does not yield quantitative results on the surface roughness. Yet another conventional technique, interferometric particle imaging, can measure the particle size and shape, but only works for a single particle or sparse distributed particles.

[0044] The methods and systems disclosed herein treat the speckle as a nonlinear superposition of roughness whose statistics vary with position on the surface. The map includes the complexities of mixing-drying dynamics and speckle formation, as noted earlier; thus, it is may not always be practical to invert it directly. Instead, an inverse module, which may include a machine learning (ML) algorithm assisted by the physics of speckle formation, may be applied.

[0045] In recent years, ML algorithms have been used in imaging through scattering media and in speckle suppression. Speckle surface analysis, which focuses on the scattering media itself may be assisted by an ML algorithm, such by performing classifications to distinguish different materials. Due to the surface randomness and the phase sensitivity, it may be difficult for an ML algorithm, such as a neural network to capture key features. In the methods and systems disclosed herein, the speckle image may be preprocessed according to the beam propagation equations to enhance the essential features to reduce the burden on the ML module and/or model. From the theory and equations, such as equation (24), disclosed herein, the ensemble averaged spatial-integral autocorrelation function can be used to build a forward model from the statistics of powder surface, the PSD, to the processed image. In various embodiments, the ML model/module, which may use a DNN that is a deep convolution neural network, may be used to learn the inverse mapping from the averaged autocorrelation image to the PSD. The forward model is made more interpretive using physics, as seen below. The forward model may allow for the bounds of the prediction ability to be known. In some cases, this may be a difficult to determine using black-box algorithms, such as those using ML models.

[0046] Drying cakes made up of multiple particles of varying sizes, such as powders, typically include surfaces that are rough, which may be due to the presence of powders. As a cake is agitated and gradually dries, the particles tend to agglomerate to a wide range of sizes, from a few micrometers to a few millimeters. These particles are distributed all across the cake surface and move rapidly due to the agitation. As a result, the surface roughness statistics are also strongly variant across the cake surface and with time. The process of speckle formation described herein may be used to encode the complex dynamics of mixing and drying of the cake and/or particles.

[0047] Real-time, non-invasive measurement of the powder particle size distribution is a useful but challenging problem in many manufacturing industries. As described herein, the size distribution may be extracted from the laser speckle pattern with the help of a physics- enhanced ML algorithm. However, from the forward theory described herein, much of the size information is stored in the weak sidelobes of the processed image, such as that shown in FIG. 2(e), resulting in increased difficulty in solving the inverse problem - detecting particle size distribution from the speckle.

[0048] In some embodiments, a pupil/aperture engineering technique may be used to enhance the sidelobe intensity, which is the signal level. Pupil engineering is a technique used to shape the point spread function and the corresponding power spectral density. An application of the pupil shaping is to get a better image quality in an imaging system whereby the sidelobe height of the power spectral density may be minimized for this purpose. However, by modulating the wavefront of the incident beam, the speckle pattern may be shaped to increase the sidelobes intensity of its autocorrelation, which may contain much of the size distribution information. Moreover, different from the imaging system, the point spread function or pupil power spectral density may not be measured directly. This is because the pupil power spectral density shows up in the ensemble averaged autocorrelation of the raw image. In various embodiments described herein, pupil engineering may be applied to the speckle-based particle size analysis.

[0049] Applying pupil engineering may increase signal-to-noise ratio (SNR). With this increased SNR, a large number of computational methods, which may have previously been limited by a weak signal, may be used to perform speckle-based particle size analysis. For example, one of the computational methods includes ML, which may have its performance be limited by a weak signal. However, applying pupil engineering to computational methods, such as ML, may result in faster, more efficient, and more accurate results. In various embodiments, methods applying pupil engineering may enable single frame prediction without ensemble averaging. In particular, use of pupil engineering may reduce dynamic response time. The drastically reduced dynamic response time broadens potential applications of the methods and systems described herein. For example, applications could include a blending process in the pharmaceutical industry, PM10/PM2.5 detection in the environmental monitoring, and/or other applications.

[0050] Although the descriptions herein may refer to ML models/modules performing various operations, in various embodiments, these models/modules may be included within an inverse module, which may alternatively or additionally include a gradient descent module, a non-linear solver, a curve-fitting module, or a differential evolution algorithm module as components. In various embodiments, the operations, functionality, and/or configurations of the ML models/modules described herein can be equivalently attributed to the inverse module and/or any one or more components within the inverse module without departing from the scope and spirit of what is described herein.

[0051] One or more computers can be used to implement such a computational pipeline, using one or more general-purpose computers, such as client devices including mobile devices and client computers, one or more server computers, or one or more database computers, or combinations of any two or more of these, which can be programmed to implement the functionality such as described in the example implementations.

[0052] FIG. 8 is a block diagram of a general-purpose computer which processes computer programs using a processing system. Computer programs on a general-purpose computer generally include an operating system and applications. The operating system is a computer program running on the computer that manages access to resources of the computer by the applications and the operating system. The resources generally include memory, storage, communication interfaces, input devices and output devices.

[0053] Examples of such general-purpose computers include, but are not limited to, larger computer systems such as server computers, database computers, desktop computers, laptop, and notebook computers, as well as mobile or handheld computing devices, such as a tablet computer, handheld computer, smart phone, media player, personal data assistant, audio and/or video recorder, or wearable computing device.

[0054] With reference to FIG. 8, an example computer 8800 comprises a processing system including at least one processing unit 8802 and a memory 8804. The computer can have multiple processing units 8802 and multiple devices implementing the memory 8804. A processing unit 8802 can include one or more processing cores (not shown) that operate independently of each other. Additional co-processing units, such as graphics processing unit 820, also can be present in the computer. The memory 804 may include volatile devices (such as dynamic random-access memory (DRAM) or other random-access memory device), and non-volatile devices (such as a read-only memory, flash memory, and the like) or some combination of the two, and optionally including any memory available in a processing device. Other memory such as dedicated memory or registers also can reside in a processing unit. Such a memory configures is delineated by the dashed line 804 in FIG. 8. The computer 800 may include additional storage (removable and/or non-removable) including, but not limited to, solid state devices, or magnetically recorded or optically recorded disks or tape. Such additional storage is illustrated in FIG. 8 by removable storage 808 and non-removable storage 810. The various components in FIG. 8 are generally interconnected by an interconnection mechanism, such as one or more buses 830.

[0055] A computer storage medium is any medium in which data can be stored in and retrieved from addressable physical storage locations by the computer. Computer storage media includes volatile and nonvolatile memory devices, and removable and non-removable storage devices. Memory 804, removable storage 808 and non-removable storage 810 are all examples of computer storage media. Some examples of computer storage media are RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optically or magneto-optically recorded storage device, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Computer storage media and communication media are mutually exclusive categories of media.

[0056] The computer 800 may also include communications connection(s) 812 that allow the computer to communicate with other devices over a communication medium.

Communication media typically transmit computer program code, data structures, program modules or other data over a wired or wireless substance by propagating a modulated data signal such as a carrier wave or other transport mechanism over the substance. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal, thereby changing the configuration or state of the receiving device of the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct- wired connection, and wireless media include any non-wired communication media that allows propagation of signals, such as acoustic, electromagnetic, electrical, optical, infrared, radio frequency and other signals. Communications connections 812 are devices, such as a network interface or radio transmitter, that interface with the communication media to transmit data over and receive data from signals propagated through communication media. [0057] The communications connections can include one or more radio transmitters for telephonic communications over cellular telephone networks, and/or a wireless communication interface for wireless connection to a computer network. For example, a cellular connection, a Wi-Fi connection, a Bluetooth connection, and other connections may be present in the computer. Such connections support communication with other devices, such as to support voice or data communications.

[0058] The computer 800 may have various input device(s) 814 such as various pointer devices (whether single pointer or multi-pointer), such as a mouse, tablet and pen, touchpad and other touch-based input devices, stylus, image input devices, such as still and motion cameras, audio input devices, such as a microphone. The compute may have various output device(s) 816 such as a display, speakers, printers, and so on, also may be included. These devices are well known in the art and need not be discussed at length here.

[0059] The various storage 810, communication connections 812, output devices 816 and input devices 814 can be integrated within a housing of the computer or can be connected through various input/output interface devices on the computer, in which case the reference numbers 810, 812, 814 and 816 can indicate either the interface for connection to a device or the device itself as the case may be.

[0060] An operating system of the computer typically includes computer programs, commonly called drivers, which manage access to the various storage 810, communication connections 812, output devices 816 and input devices 814. Such access generally includes managing inputs from and outputs to these devices. In the case of communication connections, the operating system also may include one or more computer programs for implementing communication protocols used to communicate information between computers and devices through the communication connections 812.

[0061] Any of the foregoing aspects may be embodied as a computer system, as any individual component of such a computer system, as a process performed by such a computer system or any individual component of such a computer system, or as an article of manufacture including computer storage in which computer program code is stored and which, when processed by the processing system(s) of one or more computers, configures the processing system(s) of the one or more computers to provide such a computer system or individual component of such a computer system.

[0062] Each component (which also may be called a “module” or “engine” or “computational model” or the like), of a computer system such as described herein, and which operates on one or more computers, can be implemented as computer program code processed by the processing system(s) of one or more computers. Computer program code includes computerexecutable instructions and/or computer-interpreted instructions, such as program modules, which instructions are processed by a processing system of a computer. Generally, such instructions define routines, programs, objects, components, data structures, and so on, that, when processed by a processing system, instruct the processing system to perform operations on data or configure the processor or computer to implement various components or data structures in computer storage. A data structure is defined in a computer program and specifies how data is organized in computer storage, such as in a memory device or a storage device, so that the data can accessed, manipulated, and stored by a processing system of a computer.

Theory of the forward problem

[0063] To find the relationship between the speckle pattern and the PSD, a simplified onedimensional (ID) analytical model was built. FIG. 1(d) shows the sketch of the model. Only the first layer was considered, because the light comes from the top. An assumption was made that only particles can scatter the light. Without the loss of generality, the reflectivity was set to 1. The sketch considers the particles as an optical mask denoted as α(x).

[0064] The particle radius r i is interpreted as a random variable distributed according to the PSD p(r). The particle location x i is 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) = . From optical propagation theory, the electric field E(x) at the imaging plane is where (2) and f 3 is the focal length of lens L3. The intensity collected by the CCD camera is

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

Substituting equations (2) and (3) into equation (4),

The delta function is non-zero only when Then the equation can be further simplified as,

From Equation (7), we do the variable substitution with and

Let

After substituting S with equation (2),

(10)

In the internal integral over σ , the phase term varies much faster than , so the rotating wave approximation can be applied to move out of the integral over a. Where describes spatial correlation of the surface phase, W (τ) will drop to 0 if τ is out of the correlation length. For the ideal rough surface, the correlation length is infinitely small, so that degrades into is the mask of particles, and α(x) can be defined using the following formulas.

Because the particles cannot overlap, and the correlation length is well smaller than the particle size, it can approximately be assumed that Rect = 0 for

After substituting equation (14) to equation (11),

The internal integral is the Fourier transform,

If the assumption that W (τ) = δ( τ) is applied, equation (17) can be transferred into,

Here, i is the index of the i-th particle, and r i and x i are the radius and the position for the i-th particle, respectively. If there are enough particles in the field of view, equation (18) can be reformulated as [0065] The term results from the granular feature in FIG. 2(c). Because the particle coordinate x is immaterial, it may be eliminated by ensemble averaging the autocorrelation (μ ). Starting from equation (17), since W (τ) is invariant, the ensemble average bracket can be moved into the integral,

The third equal sign comes from the fact that r and x are independent. The radius r i follows the probability distribution p(r) which is invariant. The x i is randomly distributed in the space, and it is ergodic, so the ensemble average over x is equal to the spatial average,

D is the laser spot diameter. term determinates the average speckle size, which is consistent with the traditional results from a textbook.

If equations (21) and (22) are substituted back to equation (20),

The particle size of a sample may vary from ~80μm to -1000μm, which is much larger than the wavelength 832nm. Thus, the criterion « H (x) is met, implying that the phase correlation length is much smaller than the particle size. So, the assumption W (τ) = δ (τ) can be adopted safely. Then,

Here, (•) denotes the ensemble average and D is the beam spot diameter.

[0066] Equation (24) is an intuitive yet approximate forward relationship between the raw speckle images and the PSD p(r) through the speckle autocorrelation function A(u). The goal is to invert this relationship, or rather eq. (24) and obtain p(r) from A(u), which is described below. To gain some insight into this inverse problem, in FIG. 2(a)-2(d) two examples of distinctly different particle distributions are shown. In these figures, the upper row (i) set shows a powder with size ~180-280um, while the lower row (ii) shows a -425- 800um powder. Column (a) shows the microscope images for two samples. Column (b) shows the raw speckle images. With the naked eye, one cannot distinguish between these two samples based on these raw images alone. Column (c) shows four autocorrelation images calculated from column (b) according to equation (19). These four images correspond to the same r distribution p(r) but different positions for each particle. Due to the related terms, the ensemble invariant features determined by PSD cannot be distinguished. Column (d) shows the ensemble-averaged autocorrelation image corresponding to Equation (24).

From Equation (24), the term decays faster vs. u as the radius r grows. In column (d), the positions of high-order lobes in the term of Equation (24) are shown, and these lobes can more easily be seen in FIG. 2(e). The intensity of the lobes is modulated by the term of Equation (24). The intensity of the first-order lobe is higher on the upper panel than on the lower panel. Moreover, the second-order lobe can be seen in the upper panel, but not in the lower panel. FIG. 2(e) 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 noise for the large particle size sample, while for the small particle size sample the lobes are clearly resolvable.

[0067] A relationship between the ensemble average of the speckle autocorrelation (A(u)) and the particle size distribution p(r) may be expressed by Equation (24), above.

In Equation (24), (•) denotes the ensemble average and D is the beam spot diameter. is the average of the local frequency, which is explicitly related to the variable of interest, the particle size distribution p(r). The term corresponds to the power spectral density of the circle shape pupil in the optical system. The previous term has a strong main peak, and the side lobes intensities are weak as shown in FIGS. 5(a) and 5(b). This term may be generalized to an arbitrary pupil shape. Equation (24) may alternatively be generalized as follows:

(A ( μ) ) = Pupil power spectral density (24')

[0068] Using such a generalization, a patterned pupil can be utilized to reduce the low- frequency main lobe, or equivalently, to enhance the sidelobes’ intensity. FIG. 5(c) shows one example of the patterned pupil, the side lobes in its power spectral density shown in FIG. 5(d) are much higher than the original circle shape beam. FIGS. 5(c) and 5(d) show one example of pupil engineering as described herein. The detail of the feature of a pupil can be further optimized to have a better performance.

[0069] In various embodiments, for the simplest rotationally symmetric diffraction-limited case, i.e. where the pupil-engineered beam is generated using a circular aperture, the power spectral spectrum of the beam contains sidelobes which are determined according to the an Airy pattern:

In this equation, J1(r) is the Bessel function of the first kind and first order, and r is the radial polar coordinate. More generally, the sidelobes of the beam generated by pupil engineering can be manipulated by designing or “coding” the pupil function. As used herein, the term “coded aperture,” involves coding a pupil function in order to produce a particular pupil- engineered beam.

[0070] In the methods and systems, as described herein, the particles on the cake surface may further modulate the intensity of the sidelobes with a multiplier according to the particle size distribution. Bigger particle size can result in a weaker sidelobe intensity. In this case it may be beneficial to boost the sidelobes through the use of coded aperture so that the modulation that results because of the particles is provided a greater contrast to evidence itself. The size distribution may be inferred from the ratio of the measured sidelobe intensity to the intrinsic sidelobe intensity of the coded mask. This ratio may be the effective signal, which will be less influenced by noise when the intrinsic sidelobe intensity is higher.

Algorithm design for the inverse problem

[0071] To perform an inverse of Equation (24), inverse techniques may be used by an inverse module, which may also include one or more modules to perform one or more aspects of the inverse techniques. The inverse module may include a machine learning module that utilizes a machine learning model, a gradient descent module that uses a gradient descent technique, a non-linear solver, a curve-fitting module that performs a curve-fitting technique, or a differential evolution algorithm module that performs a differential evolution algorithm. Parameterization of the particle size distribution can help reduce the number of parameters to be determined, and accelerate the convergence of the technique used to determine the inverse. Parameterization of the particle size distribution may require prior knowledge regarding the distribution. For example, one way to parameterize distributions is as a “sum of humps,” such as a sum of Gaussians, or a sum of Lorentzians, and/or the like. For these ways to parameterize distributions may include parameters such as the amplitudes, widths, and locations of the hump functions. In various examples and figures described herein, an inverse module, which may include an ML model/module, takes one or more images as input and outputs cumulative distribution functions (CDFs) and/or particle size distributions (PSDs). In various examples and figures described herein, an ML model/module takes one or more images as input and outputs cumulative distribution functions (CDFs) and/or particle size distributions (PSDs). As such, for this machine learning model/module, the number of parameters equals the number of bins in the distribution.

[0072] The forward relationship in Equation (24) is highly nonlinear; moreover, the analysis in FIG. 2(e) reveals that it may also be ill-conditioned: the relevant information for the PSD may be in the sidelobes and, hence, the solution may be disproportionately susceptible to detection noise and other disturbances. A wide variety of techniques exist for dealing with such inversions, such as those performed by an inverse module, including gradient methods, maximum likelihood, and others. As a general strategy to stabilize the solution against disturbances, some form of regularization may be employed. In typical situations, the most effective regularizing priors may be derived from sparsity arguments, which may also be referred to as compressed sensing. That is, the unknown function may first expressed in a set of basis functions where it becomes sparse, meaning that very few coefficients are non-zero. For linear inverse problems, sparse formulations lead to convex functionals that may be numerically dealt with using methods such as TwIST and ADMM.

[0073] From Equation (24), the relevant information can be found in the sidelobes of the PSD, namely when the agglomerate sizes become very large. This suggests that sparsifying the PSD as, for example, a superposition of radial basis functions, may be risky. Instead, an inverse module approach, such as one using machine learning, using data from the experiment and the independent particle size analyzer may be used to determine and/or learn the regularizing prior. The algorithm(s) used by the inverse module may not be purely data- driven - it may take the physical forward model of Equation (24) explicitly into account as disclosed below. In various embodiments, the inverse module may use a machine learning algorithm/model/module, such as a deep neural network (DNN) which can be a deep convolutional neural network, to determine the regularizing prior. In various embodiments, the use of a physical forward model such as the one in Equation (24) as a preprocessor to an inverse module, such one using a neural network to perform the inverse may be described as an Approximant. In such embodiments, the learning approach simplifies extending the simple ID analysis to two dimensions (2D), taking into account that particles may overlap along the longitudinal direction, and rectifying the deviation induced by the finite spatial integral and finite frames average in the ensemble autocorrelation calculation.

[0074] An example inverse module implementation of a neural network module using a deep learning architecture is shown in FIG. 3(a). Starting from a speckle video, such as one that is 150 frames, 1024 height by 1024 width, the autocorrelations may be calculated, which may be 150 frames, 64 height by 64 width. Employing an ergodicity argument, the autocorrelations may be averaged to obtain the ensemble intensity autocorrelation, which may be 64 height by 64 width. The computed autocorrelation may serve as the input of the neural network, i.e., it is the Approximant, as shown in FIG. 3(a). The neural network, as shown, includes three convolutional stages followed by a linear layer. Each stage has four 2D convolutional layers of kernel size 3, combined with Batch-normalization layer and “ReLU” activation. At each stage, the first convolution layer has a stride equal to 2 to down sample the image. The filter depth increases gradually in each stage from 16 to 64. The skip connection structure can reduce the gradient vanishing effect. After three convolution stages, the 3D signal is flattened and passed through a linear layer to the output, which is non- parametric curve described by 192 samples. This is the cumulative distribution function of the particle sizes, which can then be differentiated to obtain the PSD. [0075] There are two reasons the cumulative distribution function may be used herein rather than the PSD directly as the output of the neural network. First, the cumulative distribution is monotonic from 0 to 1, which discourages overfitting the fluctuations that would inevitably appear in the PSD. Second, the cumulative distribution may easily be derived from Equation

(24) as where rect(x) = 1 when , otherwise = 0 is the boxcar function. The physical meaning of the right-hand term in (25) is shown in FIG. 3(b). In effect, it moves all particles to the center, and the vertical axis becomes the number of particles as function of r. After normalization, it becomes exactly the cumulative distribution. Moreover, this physical meaning applies to any particle shape besides round particles, it easily generalizes to the rotationally averaged cumulative size distributions for non-rotationally symmetric cases, such as the cubic-shaped KC1 powder particles shown in FIG. 2(a).

[0076] To train the neural network shown in FIG. 3(a), 11 sets of powder sample were prepared. For each set, a video with 1000 frames was collected. With the 500fps CCD camera, each video collection takes only 2 seconds. 150 frames were used on average with a 50-frame step to get 17 ensemble autocorrelations. As shown in FIG. 3(c), a master-sizer measures the ground truth PSD. The master-sizer measurement limits the number of datasets that can be collected, as it is material-consuming and unrecyclable.

[0077] To evaluate the generalization ability of the DNN model, shown in FIG. 3(a), 8 sets of samples were separated to form the training and test set, whereas the remaining 3 sets were the disjoint test set (see FIG. 3(c)). At each training and test set, 10 ensemble autocorrelations served as the training data, while the remaining 7 formed the test data. Training lasted for 60 epochs with mean absolute error (MAE) as the training loss function. The learning rate was set to be 10 -3 initially and halved whenever validation loss plateaued for 5 consecutive epochs. Batch size was set to 4. The computer used for training has Intel Xeon G6 CPU, 128 GB RAM, and dual Volta GPUs with 64 GB VRAM.

[0078] Although deep neural network and deep convolutional neural network ML algorithms/models/modules are referenced herein, it should be understood that any ML algorithm/model/module may be used without departing from the scope and spirit of what is described herein. In particular, in various embodiments, the ML algorithms/models/modules may include a feedforward neural network, a radial basis function network, a self-organizing map, learning vector quantization, a recurrent neural network, a Hopfield network, a Boltzmann machine, an echo state network, long short term memory, a bi-directional recurrent neural network, a hierarchical recurrent neural network, a stochastic neural network, a modular neural network, an associative neural network, a deep neural network, a deep belief network, a convolutional neural network, a convolutional deep belief network, a large memory storage and retrieval neural network, a deep Boltzmann machine, a deep stacking network, a tensor deep stacking network, a spike and slab restricted Boltzmann machine, a compound hierarchical-deep model, a deep coding network, a multilayer kernel machine, a deep Q-network, and/or the like. The ML algorithms/models/modules described herein may additionally or alternatively comprise weak learning models, linear discriminant algorithms, logistic regression, and the like. The ML algorithms/models/modules described herein may include supervised learning algorithms, unsupervised learning algorithms, reinforcement learning algorithms, and/or a hybrid of these algorithms.

EXEMPLIFICATION

[0079] The experiments described below with reference to the figures were conducted using devices and methods described herein.

[0080] FIGURES

[0081] FIG. 1(a) depicts a schematic diagram of an example optical train that can be employed by methods and devices disclosed herein. In the example embodiment depicted, lenses L1, L2, and L3 can have focal lengths of 25mm, 30mm, and 250mm, respectively. The inset shows the photo of an experimental apparatus used in the experiments described hereinbelow. FIG. 1(b) is a photograph of an example raw speckle image collected from a CCD camera of the device. FIG. 1(c) is a photographic image collected from an endoscope camera. The white powder in the middle is the sample (KC1). FIG. 1(d) is a schematic diagram showing the reflection of an incident beam off of a powder comprising particles (depicted as rectangles), the particles located at positions xi and having radius r i . The rough top edge of each particle (rectangle) means that the phase of the scattered beam varies randomly with the position x i .

[0082] Two samples of KC1 powder were tested using the devices and methods described herein: (i) a sample powder having particle size of about 180-250 μm and (ii) a sample powder having particle size of about 425-500 pm. FIG. 2(a) shows microscope images for the two samples. FIG. 2(b) shows raw speckle images of the two samples collected by a CCD camera. FIG 2(c) shows examples of four spatial-integral autocorrelation images calculated from the images shown in FIG. 2(b). These four images were collected on the same sample with different particle positions. FIG. 2(d) shows the images of autocorrelation averaged over 150 frames such as those shown in FIG. 2(c). Since the particle position is ergodic, this is the ensemble-average autocorrelation image.

[0083] FIG. 2(e) depicts overlay ed cross-section plots of the averaged autocorrelations for samples having different PSDs (intensity as a function of a pixel position in a unidimensional array of pixels that “crosses” the circular signal shown, for example, in FIG. 2(d)). The positions of the high-order lobes are marked. The autocorrelation is taken to the power of one-eighth to enhance visual effects.

[0084] FIG. 3(a) schematically depicts an example embodiment of a deep neural network structure. The neural network shown in FIG. 3(a) takes averaged autocorrelation images as input and the cumulative distributions as output. It consists of three stages with four convolutional layers in each. Batch-normalization and ReLU activation are applied before each convolutional layer. There is a flatten layer and a linear layer connected to the output of the third stage. The output data dimension and the filter parameters for each layer are labeled at the bottom of this figure.

[0085] FIG. 3(b) is a schematic diagram showing the physical meaning of an example cumulative distribution function. Assuming 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 these are stacked at the center and set the y-axis as the particle number, this may be the cumulative distribution after a normalization.

[0086] FIG. 3(c) show overlayed plots of example PSDs as functions of particle size obtained for various test sets. There are 11 sample sets, 8 of them marked with green color are the training and test sets, while the rest three sets plotted in red are the disjoint test sets. The interest size range is 80pm - 800pm, which is covered by the sample sets.

[0087] FIG. 4(a) shows test results for the neural network trained as described in section titled “Algorithm design for the inverse problem” for six different inputs labelled as (i)-(vi). The images in the left columns are the ensemble-averaged autocorrelations that served as inputs, and the bar plots in the right columns are the predicted PSDs. The curves represent the ground truth.

[0088] FIG. 4(b) shows the deep neural network (DNN) results obtained for the disjoint test sets. The first and third columns from the left are the same as those for inputs (i)-(iii) in FIG. 4(a), while the second column shows the neural network output prediction which is the cumulative distribution, which is differentiated to get the particle size distribution.

[0089] FIG. 5(a) and FIG. 5(b) are images of a pupil shape of a beam having a circular cross-section, whereas FIG. 5(b) shows its measured power spectral density across an arbitrary plane. FIG. 5(c) shows a pupil-engineered beam cross-section patterned using a mesh described herein. FIG. 5(d) shows the measured power spectral density of the beam shown in FIG. 5(c). The power spectral density is shown as to the power of one-eighth to enhance visual effects.

[0090] FIG. 6(a) and FIG. 6(b) are photographs of averaged speckle autocorrelation intensities of a circular beam averaged over 200 frames, where the particle size was about 106- 180pm for panel (a) and about 425-800pm for panel (b).

[0091] FIG. 6(c) shows cross-section plots of the averaged autocorrelations for different samples with ascending size distributions, similar to FIG. 2(e) (see comments above).

[0092] FIG. 6(d) and FIG. 6(e) are photographs of the averaged speckle autocorrelation intensities of the pupil-engineered beam, such as that shown in FIG. 5(c).

[0093] FIG. 6(f) shows the cross-section along the labeled direction in FIG. 6(d) and FIG. 6(e). Because they are rotational asymmetric, both x and y directions are plotted as shown. All of the measured results are taken to the power of one-eighth to enhance visual effects. [0094] FIG. 7 shows photographs of the measured speckle autocorrelations, averaged over the indicated number of frames, for two samples having the indicated particle sizes.

Example Embodiments

[0095] In various embodiments, an air filter dryer (AFD) typical of those used in the pharmaceutical industry may be used to dry a wet solid, such as a cake. The wet solid may be sealed in the dryer, and it may be monitored non-invasively with a laser beam delivered through a glass window. An agitator placed along the axis of the container may impel the sample at a rotation speed of 5 rpm.

[0096] A laser beam operating at a particular wavelength, such as at a 532nm wavelength, may illuminate the wet solid. In various embodiments, the laser model may need a sufficient output power and temperature rising rate, which may be low enough to not disturb the drying process for the duration of observation. In addition, the coherence length of the laser and the corresponding temporal bandwidth may be set to produce a sufficient temporal coherence and thus to produce sharp speckles. Additionally, the angle of incidence on the surface may be chosen so as to avoid specular back reflection from the window onto the camera. For example, the laser model may be an Excelsior 532 Single Mode with 300mW output power, inducing a 1.2mK/s temperature rising rate, which may be low enough to not disturb the drying process for the duration of observation. As another example, the coherence length of the laser may be 25m, which corresponds to a temporal bandwidth of 0.01pm. This may result in sufficient temporal coherence to produce sharp speckles. 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.

[0097] An example of an optical train is shown in FIG. 1(a). In this example embodiment, the laser beam may be expanded, such as to 4.8mm, with a beam expander in the telescope configuration, consisting of lenses LI and L2. The beam may initially be polarized in the direction parallel to the plane shown in the diagram, and so it may be 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 powder sample may now be now transmitted through the PBS and propagates vertically upwards. The wave plate may also be tilted, such as by approximately 10 degrees, for the same reason as the beam, to minimize specular back reflection.

[0098] Lens L3 may concentrate the scattered light so that an angular range that is as large as possible can be captured by the CCD. FIG. 1(b) shows a typical speckle image collected by the CCD camera. In some examples, the CCD model is Basler A504k with 1280 x 1024 pixels. The central uniformly illuminated area may be cropped, such as to 1024 x 1024 pixels. The framerate may be fast enough to avoid temporal blurring of the speckle due to the agitation. In some examples, the framerate is 500fps and the exposure time may be lOOpsec, which may be fast enough to avoid temporal blurring of the speckle due to the agitation. The inset of FIG. 1(a) is a picture of an example apparatus as it may be implemented. For safety, the entire beam path may be enclosed in an optical cage and optical tubes to prevent scattered light from escaping. The structure of this optics apparatus may be compact and portable, and it may therefore be easy to transfer among different dryer systems without the need to realign. FIG. 1(c) is an image of a powder sample KC1 collected by an endoscope camera, with broadband and spatially incoherent illumination. The resolution in FIG. 1(c) may be too coarse to resolve the particle size, not displaying any discernible features that could be attributed to particle size. This may explain why the speckle method is more appropriate for extracting the PSD, as discussed herein.

[0099] The data processing strategy for the raw speckle images collected by the apparatus of FIG. 1(a) may occur in two steps. The first step may be referred to as the forward problem, i.e. , determining the raw speckle (image) given a particular particle distribution. The formulation of the forward problem is stochastic, treating the PSD as a probability density function which, in turn, determines the ensemble autocorrelation function of the raw speckle, as described herein. The second step may be referred to as the inverse problem, i.e. , going backwards from the autocorrelation function to the PSD. Since this inverse problem is highly nonlinear and ill conditioned, an inverse module, such as one including a machine learning algorithm/model/module, may be used to solve the problem.

Results on the experimental data set

[00100] Some examples of test set results are shown in FIG. 4(a). The first column shows the corresponding ensemble autocorrelation for each set. The comparison between each prediction PSD and its corresponding ground truth is shown in the second column. FIG. 4(b) is the results from the disjoint validation set, which is to confirm the generalization ability of the model shown in FIG. 3(a). The DNN never meets these data during the training process, but still gives a good prediction on the cumulative distribution (the second column) and the PSD results. From FIG. 4(a) (i) (iv), FIG. 4(b) (i), the prediction at the small size side has may have more deviation than the big size end. This phenomenon can be interpreted by Equation (24), because approaches 0 as r approaches 0, making it harder to distinguish at small radii.

[00101] In various embodiments, a “coded aperture,” (e.g., a pupil-engineered beam) such as one made using an intensity mask may be used to shape an incident beam. In various embodiments, an at least partially coherent pupil-engineered beam may be produced using an intensity mask. For example, 3D printing may be used to make the intensity mask to shape the incident beam. FIGs. 6 show the averaged speckle autocorrelations at different sizes and pupil shapes. Compared to a beam having a circular cross-section (see FIG. 6(a) through FIG. 6(c)), a pupil-engineered beam results shown in FIG. 6(d) - 6(f) provide a higher contrast of sidelobe intensity at different size distributions (see FIG. 6(d) through FIG. 6(f)). This improvement is comparable to the theoretical estimation, around 20-50 times SNR enhancement. [00102] With a weak signal, more frames may need to be averaged, such as 200 frames for the circle pupil signal. This is because a weak signal may merge into the noise with fewer averaging frames. FIG. 7 shows the speckle autocorrelations with a reduced averaging frames for the engineered pupil. In this case, even for a single frame result, there are still some features that stay above the noise level, which could be utilized to infer the particle size distribution.

[00103] As described herein, methods and systems have been provided that decode the size information in the speckle pattern quantitatively with the help of a physics-encoded inverse module, such as one using a deep neural network (DNN). The physical forward operator takes the form of the ensemble-averaged autocorrelation and it serves as Approximant input to the inverse module, such as a neural network. Such systems and/or methods method may be used to facilitate speckle processing in other applications of diffuse light imaging.

[00104] Although the physics-enhanced autocorrelation-based estimator (PEACE), which encompasses the techniques presented related to a non-pupil-engineered beam, could provide a good particle size estimates, there may be some limitations induced by a weak physical signal. These limitations may be difficult to handle using algorithms. Pupil engineering techniques, such as those discussed herein, and the resulting enhanced SNR, could be used to provide fast, efficient, and/or more accurate particle size estimates.

[00105] Pupil engineering could provide for greater generalization. PEACE is a supervised learning method that requires training data. The data are collected from a specific optical system. It may be time-consuming but may be necessary to recollect the training data if the parameters of the system are changed. With the improved SNR, such as by the use of pupil engineering, some self-supervised learning methods, such as using a deep image prior, may be used. The deep image prior may be used to avoid extra training data, making it easier to generalize to different optical systems for different applications.

[00106] In addition, pupil engineering could provide for greater accuracy. A greater amount of information from sidelobes, as discussed above, could enable the prediction of many different particle size distributions, which other techniques may have difficulty predicting. For example, double-peak particle size distributions may be predicted using the pupil engineering techniques described herein. In some cases, PEACE may have difficulty predicting double-peak particle size distributions due to a limited and/or weak signal. However, pupil engineering could provide greater prediction accuracy in these cases.

[00107] In addition, pupil engineering could provide for greater speed. As described above, with the shaped pupil, there are still sidelobe features that may stay above the noise level even for single frame results. Using pupil engineering, the number of averaging frames may be reduced, for example, from 200 to 50, 10, or 1. Although a single frame measurement may no longer need to be ensemble averaged, the inverse module and/or machine learning methods described herein may be used to capture a greater amount of sidelobe information. From a data collection perspective, response time may be proportional to averaging frames. Therefore, reducing the average frames in this way may greatly reduce response time.

[00108] It should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific implementations described above. The specific implementations described above are disclosed as examples only.