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

In-situ particle analysis with heterogeneous background: a machine learning approach

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

기본 정보

저자
  1. Adeeb Alam — Department of Mechanical Engineering, University of Maine, Orono, ME, 04469, United States
  2. Md Hafizur Rahman — Department of Electrical & Computer Engineering, University of Maine, Orono, ME, 04473, USA
  3. Akhter Zia — Department of Mechanical Engineering, University of Maine, Orono, ME, 04469, United States
  4. Nate Lowry — Department of Electrical & Computer Engineering, University of Maine, Orono, ME, 04473, USA
  5. Prabuddha Chakraborty — Department of Electrical & Computer Engineering, University of Maine, Orono, ME, 04473, USA
  6. Md. Rafiul Hassan — Computer Science, University of Maine at Presque Isle, Presque Isle, ME, 04769, USA
  7. Bashir Khoda — Department of Mechanical Engineering, University of Maine, Orono, ME, 04469, United States. bashir.khoda@maine.edu|||Department of Mechanical Engineering, University of Maine, Orono, ME, 04469, United States
DOI
10.1038/s41598-024-59558-7
저널
Scientific Reports
발행년도
2024
발행기관
Nature Portfolio
피인용수
6
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-024-59558-7
토픽
Electrostatics and Colloid Interactions
OpenAlex ID
W4396719367

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(10) 아라미드, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
particle detection, deep learning, in-situ process monitoring, heterogeneous background, image processing
판단 근거
이 논문은 제조 공정 중 복잡한 배경에서 입자를 정확하게 탐지하기 위한 딥러닝 기반의 이미지 분석 프레임워크를 다룹니다. 이는 코오롱인더스트리의 컴파운드(23) 제조 공정이나 아라미드(10), 에폭시(21) 등 분말/입자 형태의 원료를 다루는 공정의 실시간 모니터링 및 품질 관리 기술에 응용될 수 있습니다.
R&D 활용 포인트
컴파운딩, 수지 합성 또는 필름 코팅 공정 중 입자 크기 분포(PSD)나 분산 상태를 실시간으로 모니터링하는 AI 비전 검사 시스템 개발에 활용 가능합니다.
평가 입력
본문 54,393자 중 30,032자 발췌

초록

Abstract We propose a novel framework that combines state-of-the-art deep learning approaches with pre- and post-processing algorithms for particle detection in complex/heterogeneous backgrounds common in the manufacturing domain. Traditional methods, like size analyzers and those based on dilution, image processing, or deep learning, typically excel with homogeneous backgrounds. Yet, they often fall short in accurately detecting particles against the intricate and varied backgrounds characteristic of heterogeneous particle–substrate (HPS) interfaces in manufacturing. To address this, we've developed a flexible framework designed to detect particles in diverse environments and input types. Our modular framework hinges on model selection and AI-guided particle detection as its core, with preprocessing and postprocessing as integral components, creating a four-step process. This system is versatile, allowing for various preprocessing, AI model selections, and post-processing strategies. We demonstrate this with an entrainment-based particle delivery method, transferring various particles onto substrates that mimic the HPS interface. By altering particle and substrate properties (e.g., material type, size, roughness, shape) and process parameters (e.g., capillary number) during particle entrainment, we capture images under different ambient lighting conditions, introducing a range of HPS background complexities. In the preprocessing phase, we apply image enhancement and sharpening techniques to improve detection accuracy. Specifically, image enhancement adjusts the dynamic range and histogram, while sharpening increases contrast by combining the high pass filter output with the base image. We introduce an image classifier model (based on the type of heterogeneity), employing Transfer Learning with MobileNet as a Model Selector, to identify the most appropriate AI model (i.e., YOLO model) for analyzing each specific image, thereby enhancing detection accuracy across particle–substrate variations. Following image classification based on heterogeneity, the relevant YOLO model is employed for particle identification, with a distinct YOLO model generated for each heterogeneity type, improving overall classification performance. In the post-processing phase, domain knowledge is used to minimize false positives. Our analysis indicates that the AI-guided framework maintains consistent precision and recall across various HPS conditions, with the harmonic mean of these metrics comparable to those of individual AI model outcomes. This tool shows potential for advancing in-situ process monitoring across multiple manufacturing operations, including high-density powder-based 3D printing, powder metallurgy, extreme environment coatings, particle categorization, and semiconductor manufacturing.

본문 54,393자

본문 펼치기
## OPEN # In‑situ particle analysis with heterogeneous background: a machine learning approach Adeeb Ibne Alam <sup>1</sup> , Md Hafizur Rahman <sup>3</sup> , Akhter Zia <sup>1</sup> , Nate Lowry <sup>3</sup> , Prabuddha Chakraborty <sup>3</sup> , Md Rafiul Hassan <sup>2</sup> & Bashir Khoda <sup>1</sup> <sup>*</sup> We propose a novel framework that combines state-of-the-art deep learning approaches with pre- and post-processing algorithms for particle detection in complex/heterogeneous backgrounds common in the manufacturing domain. Traditional methods, like size analyzers and those based on dilution, image processing, or deep learning, typically excel with homogeneous backgrounds. Yet, they often fall short in accurately detecting particles against the intricate and varied backgrounds characteristic of heterogeneous particle–substrate (HPS) interfaces in manufacturing. To address this, we’ve developed a flexible framework designed to detect particles in diverse environments and input types. Our modular framework hinges on model selection and AI-guided particle detection as its core, with preprocessing and postprocessing as integral components, creating a four-step process. This system is versatile, allowing for various preprocessing, AI model selections, and post-processing strategies. We demonstrate this with an entrainment-based particle delivery method, transferring various particles onto substrates that mimic the HPS interface. By altering particle and substrate properties (e.g., material type, size, roughness, shape) and process parameters (e.g., capillary number) during particle entrainment, we capture images under different ambient lighting conditions, introducing a range of HPS background complexities. In the preprocessing phase, we apply image enhancement and sharpening techniques to improve detection accuracy. Specifically, image enhancement adjusts the dynamic range and histogram, while sharpening increases contrast by combining the high pass filter output with the base image. We introduce an image classifier model (based on the type of heterogeneity), employing Transfer Learning with MobileNet as a Model Selector, to identify the most appropriate AI model (i.e., YOLO model) for analyzing each specific image, thereby enhancing detection accuracy across particle–substrate variations. Following image classification based on heterogeneity, the relevant YOLO model is employed for particle identification, with a distinct YOLO model generated for each heterogeneity type, improving overall classification performance. In the post-processing phase, domain knowledge is used to minimize false positives. Our analysis indicates that the AI-guided framework maintains consistent precision and recall across various HPS conditions, with the harmonic mean of these metrics comparable to those of individual AI model outcomes. This tool shows potential for advancing in-situ process monitoring across multiple manufacturing operations, including high-density powder-based 3D printing, powder metallurgy, extreme environment coatings, particle categorization, and semiconductor manufacturing. Keywords Heterogeneous image, Particle detection with deep learning, Particle entrainment, Image processing, YOLO Powder particles and granular materials are important forms of material commonly used in manufacturing parts such as additive ­manufacturing <sup>1</sup> and powder ­metallurgy <sup>2</sup>, transforming surfaces for rust ­protection <sup>3–5</sup>, controlling roughness and ­conductivity <sup>6</sup>, creating meta ­surface <sup>7,8</sup>, enabling self-cleaning hydrophilic ­surfaces <sup>9,10</sup>, enhancing properties like viscosity ­modifications <sup>11</sup> . Particle-size composition plays a key role for the functionality as well as ­performance <sup>12</sup> of the manufactured part and coating properties. The characteristics of suspensions, emulsions, and mixtures often used in powder-based manufacturing depend largely on powder materials size, shape and 1Department of Mechanical Engineering, University of Maine, Orono, ME 04469, United States. 2Computer Science, University of Maine at Presque Isle, Presque Isle, ME 04769, USA. <sup>3</sup> Department of Electrical & Computer Engineering, University of Maine, Orono, ME 04473, USA. <sup>*</sup> email: bashir.khoda@maine.edu distribution of powder materials. These factors control the porosity and mechanical properties of ­sintered <sup>13</sup> and additively manufactured ­samples <sup>14</sup>, improves flowability and wettability of yield stress ­fluids <sup>15</sup>, and influence thermal and electrical ­conductivity <sup>16</sup> . Therefore, characterizing the particle size distribution before and during manufacturing becomes important at advanced production and scientific ­facilities <sup>17–19</sup> . Among many powder manufacturing processes, melt atomization processes are widely used in industries due to their better control in shape and distribution of particles. However, polydispersity is the intrinsic characteristic of the particle produced and often requires classification and separation. For bulk particles, their size and distribution are often measured with particle size analyzer (i.e., laser diffraction technique) during the preprocessing stage of their applications at a controlled environment as shown in Fig. 1a. This bulk particle analysis technique requires some degree of dilution and may compromise measurement ­accuracy <sup>20</sup> . Particle size analysis is also performed on static or dynamic images by different image analysis techniques. Static image analysis is performed when the particles are stationary and motionless whereas dynamic image analysis is carried out in a media of gas or liquid with particles and ­matrix <sup>21</sup> . The image-based particle analysis techniques are effective in the presence of distinguishable morphologies (i.e., polydispersity, color, and shapes). Static images can be obtained by optical, confocal, scanning electron microscopy (SEM) or Transmission electron microscopy (TEM) techniques. The quantitative analysis of SEM or optical images is important to understand the powder characteristics for its variety of applications. Visual and structural information including particle size range, size distribution shape and morphology obtained from images is crucial since it provides technical and scientific insights to the process of material synthesis, fabrication, and manufacturing ­operations <sup>22</sup> . Most image analysis tools drive researchers to extract information from the microscopic and spectroscopic images without prepossessing the particles (e.g., adding media). However, these tools are often user specific, involve semantic knowledge, and produce qualitative results. A widely used, conventional image processing tool, applied for general purposes is ImageJ developed by National Institute of Health (NIH) <sup>23</sup> . Kumara et al. performed image analysis of gravels (2–19 mm) through ImageJ ­software <sup>24</sup> . They captured the 2D images of gravels in a transparent sheet as background using a digital single-lens reflex (DSLR) camera. Berardi et al. studied the size expansion of tablets during disintegration for pharmaceutical ­applications <sup>25</sup> . They also captured images of tablets with a DSLR camera and performed image analysis through ImageJ to determine projected area and aspect ratio. Lee et al. <sup>26</sup> analyzed the confocal laser scanning microscopy (CLSM) images of pellet coating using ImageJ and calculated the coating thickness from the irregular shape measurement of pellets. He et al. <sup>27</sup> studied the influence of process parameters including solution concentration, collection distance, voltage and collection speed on the diameter and orientation of nanofibers made of electrospinning process. They investigated the surface morphology of nanofibers using SEM images and analyzing it through ImageJ. Depending upon the sample and imaging conditions, this software sometimes emits particles and incorrectly identifies particle boundaries which requires labor intensive post-processing. Apart from ImageJ software, several automatic and semiautomatic software packages have also been used to determine particle size distribution. Mondini et al. <sup>28</sup> developed a custom software named Pebbles to measure the surface morphology and diameter of nanoparticles. Phromsuwan et al. <sup>29</sup> analyzed the nanoparticle size distribution in transmission electron microscopy (TEM) images using an automated image processing technique called Otsu binarization. Laramy et al. <sup>30</sup> also developed particle analysis software with a customized algorithm and the MATLAB image analysis toolbox to detect the structure of nanoparticles in SEM images. With the recent development in machine vision and deep learning process, researchers have reported automated image processing techniques to identify the surface morphology and segment regions of optical or spectroscopy images. Xu et al. <sup>31</sup> identified microstructure properties in SEM images using machine learning (ML) techniques. Modarres et al. <sup>32</sup> introduced convolutional neural network (CNN)- based models to extract surface morphological properties from SEM images. Massarelli et al. <sup>33</sup> analyzed images from digital cameras and used computer vision and ML algorithms to count and classify the dimensional and morphological properties of microplastics in water. The morphology of core–shell and rod nanostructures is determined from SEM images using a combination of computer vision and ML techniques, available as a GUI software ­package <sup>22</sup> . The developed ML algorithms work efficiently with distinguishable background, controlled illumination, and high-resolution images. Thus, the background substrate containing the particles is often chosen to ensure contrast, which helps these algorithms in extracting a clear particle outline. This analysis is feasible when particles are in a bulk state, Figure 1. Particle images at different environment ( a ) highly controlled SEM image of NicroBraz particles only (low noise) ( b ) molybdenum particles on substrate as glass slide (medium background distraction) ( c ) polymer entrapped NicroBraz particles on tungsten rod substrate (heterogeneous interface). meaning they are analyzed as raw material before **their applications, in a controlled or semi-controlled environment (pre-processing stage), as shown in Fig. 1a,b. However, when particles are at the intermediate state of a manufacturing process (work-in-process), image background noise can arise from particle, substrate and process trio, as shown in Fig. 1c. Analyzing particles at such a heterogenous interface can be challenging due to the lack of contrast, high image noise, uneven illumination, and hazy backgrounds, as shown in Fig. 2. For example, in our recent work we developed a poly-disperse inorganic particle sorting process by entrapment onto a cylindrical ­rod <sup>34</sup> . We used Ni-based brazing powder (Nicrobraz 51; Wall Colmonoy company, Ohio; Spherical dia range ~ 0–100 µm) as bulk particles. The bulk particles are sieved with Gilson Performer III shaker through Stainless Steel 635 Mesh (20 µm) to reduce the polydispersity and are analyzed using SEM (Avg. 5.69 μm) before the sorting process. In our developed particle sorting process, the spherical micro-particles are added into a liquid carrier system (LCS) with binder polymer. A thin metal rod is dipped into the mixture, and particles of different sizes are entrained on the rod’s surface due to the balance between viscous drag, and capillary action. Entrainment based sorting of bi-dispersed ceramic particles is also proposed by Sauret et al. <sup>35</sup> where a flat glass substrate is used for dipping and entrained glass particles are analyzed for size distribution. The entrained or entrapped particle on the substrate often needs to be characterized in-situ before they can be sent to the next step of the manufacturing or coating process. For example, in our recent work, we used the entrained particles on an elastic rod to control the friction ­coefficient <sup>36,37</sup> . By analyzing the entrained particles, we can predict and hence control the friction coefficient for various applications including robot grippers, knot design, wire entanglement etc. The entrained particles on metal rods have been used to develop a novel porous structure manufacturing technique with rod reported in our earlier ­work <sup>38,39</sup> . The characteristics of the entrained particles on the substrate define the diffusion bonding strength and thus their size and distribution are important to analyze before they are placed in a vacuum furnace. However, the particle–substrate-process trio creates a heterogeneous interface as a background (shown in Fig. 1), which is often difficult to analyze with conventional image processing techniques. Due to the deep drawing fabrication of the metal rod, a rough and irregular surface morphology is common, which contributes further towards the heterogeneity of the image. As a result, the pixel contrast between particle and substrate is difficult to differentiate in such a heterogeneous surface. Similar complexity can occur for in-situ measurement of particles in other manufacturing processes (e.g., brazing, sintering, refractory material coating, spray painting etc.). In such circumstances, most existing tools (e.g., ImageJ, variable thresholding) generate significant errors in particle analysis without labor intensive semantic knowledge (compared in the result section). For example, as shown in Fig. 1, due to localized variation, a single image processing parameter cannot detect particles across the entire region. In this work, we have: (i) Dealt with the challenge of in-situ particle analysis from complex and varied backgrounds typical of heterogeneous particle–substrate (HPS) interfaces in the manufacturing industry, which is scarce in literature. (ii) Defined and demonstrated heterogeneous particle–substrate (HPS) interface as complex background, which are common in powder-based manufacturing processes. (iii) Implemented and tested traditional particle detection methods, such as those using size analyzers and based on dilution, image processing, or deep learning that are popular for particle identification from homogeneous background and demonstrate their struggle to accurately detect particles against the HPS interfaces. Figure 2. Conventional image processing algorithms applied to a heterogeneous image taken by VHX 7000 digital 4 K microscope after dip coating process. ( a ) Shows the particle–substrate system with 80X Zoom ( b ) with 1000X zoom, two insets show two different regions of the same image. ( c ) shows the effect of traditional image processing methods applied to the two inset images, which generates completely different outcomes for the same input. (iv) Proposed and developed a novel framework by combining a state of art deep learning with image pre and post-processing to address the aforementioned challenge. (v) Proposed and developed a set of novel post processing algorithms for enhancing the efficacy of the particle detection framework. (vi) Conducted extensive experimentation to evaluate the efficacy of the proposed framework. Background and motivation Conventional image processing algorithms can automatically identify and count particles in an image and can measure their size, distribution, surface coverage. However, these algorithms have significant drawbacks when applied to counting particles, especially in the heterogeneous backgrounds discussed earlier. Moreover, the performance of the image processing techniques is highly dependent on several parameters, including image quality, light source, background surface texture, optimal threshold value, and particle morphology. For example, the heterogeneous images in Fig. 3 illustrate the performance of image processing under varying illumination conditions. The image presented in Fig. 3a utilizes full ring illumination to transform the gray-scale image into a black and white image. Then the watershed algorithm along with the morphological operations (dilation and opening) are applied to identify the regions covered by individual particles. An empirical threshold Figure 3. Demonstration inconsistency in particle identification outcome in HPS images with different existing algorithm ( a ) Image taken with full circle illumination and custom thresholding algorithm to segment the particle coverage area, ( b ) Image taken with coaxial full ring illumination segmentation is done by changing parameters of the customized thresholding algorithm, ( c ) Image taken with coaxial full ring illumination and localized contrasting algorithm is applied. value, such as Otsu’s thresholding, can be selected when other variable thresholding ­methods <sup>40,41</sup> appear not suitable for the problem, as shown in Fig. 3. This can be a common attribute of heterogeneous background discussed earlier. Figure 3b,c show the particle identification performance using an image processing approach on the images with coaxial full ring lighting. As mentioned, the figures demonstrate that the particle morphology has completely changed due to variation in lighting conditions; a careful analysis of these images reveal that each particle can be identified by the central illuminated circle rather than the light ring. For the image shown in Fig. 3c, a comparable performance has been achieved by localized contrasting algorithms. These results prove that there are no universal image processing parameters available that can be applied to heterogeneous images for particle characterization from images. The performance of the traditional image processing approach varies with optimal choice of the threshold value along with the variation of background noise and lighting illumination. Thereby, an automated computational tool would assist both professionals and novice users in automatically characterizing particles from heterogeneous images. This approach will eliminate the need for manual parameter selection in image processing and facilitate the capture of semantic knowledge, thereby improving the performance of the particle identification technique. To illustrate the current challenge, we evaluated the performance of ImageJ software with the assistance of a graduate student who has at least 40 h of experience using the software. When implemented on the HPS datasets, the results, as shown in Table 1, indicate that recall is always higher than precision which can be interpreted as over detection due to the presence of heterogeneity. Additionally, the prediction of surface area showed significant deviation from the ground truth, attributed to the software’s inability to differentiate between particle clusters and nuances on the substrate, a common issue in the manufacturing domain. Expertise in image processing is crucial for identifying particles in images with heterogeneous backgrounds. Correct particle identification may require a deep understanding of filtering, edge detection, image conversion, and more. However, particle identification via image processing alone may not always yield optimal results due to the necessity of adjusting various parameters like threshold values and skewness degrees for each image which may require immense knowledge on filtering, edge detection, image conversion and many other approaches. This research introduces a semi-supervised innovative approach, reducing the need for deep technical knowledge by combining basic image processing with advanced deep learning, enabling more accessible particle identification from heterogeneous images without requiring detailed knowledge of image processing or artificial intelligence. Sample preparation and image capturing We utilized an in-house continuous dipping system to produce heterogeneous images, simulating a continuous manufacturing process by entraining particles onto a substrate. Initially, we formulated a polymer solution using Polymethyl Methacrylate (PMMA) and the solvent 1,3- Dioxolane, both sourced from Sigma Aldrich. After stirring for 8 h, a clear and uniform liquid carrier solution (LCS) is obtained. We then introduced particles into the LCS to formulate the dipping mixture, ensuring the ratio of polymer and solvent (LCS) to particles maintains the mixture within the Newtonian regime. We chose cylindrical rods as substrates, and these are dipped through the mixture for particle entrainment, as illustrated in Fig. 4. To prevent particle sedimentation during the dipping process, we agitate the mixture to disperse the particles uniformly, forming a ’pseudo-suspension’ <sup>42,43</sup> . As the rod is withdrawn from the mixture, a balance between the viscous drag and capillary action facilitates the entrainment of particles onto the rod substrate. This balance, characterized by a dimensionless capillary number, dictates the dipping characteristics and the subsequent particle transfer. Details of this are further discussed in our previous ­work <sup>42</sup> . Once entrained, the particles adhere to the substrate, using the binder as a glue, and the solvent rapidly evaporates. An in-situ analysis of the transferred particles can be conducted using an in-line microscope or camera, as depicted in Fig. 4. The resulting surface of the rod, dotted with particles, serves as a representation of the particle–substrate-process system, showcasing a heterogeneous morphology. For framework evaluation, we constructed five different types of heterogeneous images by varying the trio of particle, substrate, and imaging processes. The samples are created from our laboratory developed continuous entrainment process by dipping and images are taken afterward. By adjusting the particle morphologies (i.e., type, size, and shapes), substrate and capillary number during the entrainment process, we’ve captured images at various ambient lighting which creates a diverse level of heterogeneous background (Sample A ~ E in Table 1). These images were captured with a VHX 7000 digital 4 K microscope (by KEYENCE Corporation Ltd., IL) at 1000X magnification, covering a 300 × 200 micron area. Following this, our proposed particle characterization framework was applied to these varied heterogeneous images for both training and validation purposes. <u>Dataset</u> <u>Recall</u> <u>Precision</u> <u>F1</u> <u>TP</u> <u>FP</u> <u>FN</u> Particle Surface Area (sq. <u>pixel)</u> (× 10 <sup>3</sup> ) <u>Ground Truth</u> <u>Predicted</u> <u>A</u> <u>0.857</u> <u>0.857</u> <u>0.857</u> <u>12</u> <u>2</u> <u>2</u> <u>37.4</u> <u>240.6</u> <u>B</u> <u>0.923</u> <u>0.800</u> <u>0.857</u> <u>12</u> <u>3</u> <u>1</u> <u>45.7</u> <u>315.2</u> <u>C</u> <u>0.944</u> <u>0.739</u> <u>0.829</u> <u>17</u> <u>6</u> <u>1</u> <u>30.2</u> <u>197.3</u> <u>D</u> <u>0.889</u> <u>0.667</u> <u>0.762</u> <u>24</u> <u>12</u> <u>3</u> <u>44.9</u> <u>82.2</u> <u>E</u> <u>0.941</u> <u>0.800</u> <u>0.865</u> <u>16</u> <u>4</u> <u>1</u> <u>22.7</u> <u>156.8</u> Table 1. Performance metrics of ImageJ software with HPS dataset. Figure 4. Schematic of continuous dipping process for particle entrainment and imaging setup. Design and Implementation of the Proposed AI Framework In this section we describe the proposed particle detection framework. As shown in Fig. 5, this framework has four main steps: preprocessing, model selection, AI-Guided particle detection, and post processing. Preprocessing strategies The provided particle–substrate image requires some preprocessing before it is ready for the AI model. In this study, we experimented with enhancement and sharpening. Image enhancement increases the dynamic range of gray levels through linear stretching, expands dark pixel values, performs gamma correction, and equalizes the intensity histogram. Image sharpening is typically carried out by adding a high pass filter output of the image with the base image. This increases contrast, making object detection and localization more accurate. We demonstrated the visual effects of these pre-processing strategies on a sample image in Fig. 6. Sharpening indeed makes detection easier for smaller objects and enhancement makes dimmer objects brighter, thereby facilitating their detection in subsequent steps. Together, these techniques reduce noise impact, enhance device capabilities, and contribute to cleaner data for analysis. Overall, they improve image visualization and help to make more accurate insights and decisions. The framework is designed in a modular fashion allowing future addition of more preprocessing units such as background removal and other image correction techniques. The effectiveness of this process is investigated in the results section. Figure 5. Overview of the proposed modular particle detection framework. Figure 6. Preprocessing effects: Sharpening leads to better definition of smaller particles while enhancing visibility. Model selection Extensive quantitative analysis on the HPS images has shown that separate AI detectors are necessary to accurately detect particles for each particle–substrate combination. In the presence of a set of AI-models, we must determine, for an incoming image, which AI model should be used for it. To address this, our study employs an image classifier model, effectively guiding the selection process by identifying the most suitable AI model to be employed for the analysis of a specific image. We use Transfer Learning (TL) as a Model Selector (MS) where MobileNet acts as a base model to categorize the particle–substrate dataset. While we chose MobileNet for its increased inference time efficiency, this model can be replaced with one that is either more accurate, at the cost of speed, or faster, at the cost of accuracy. The model selector is designed to enable end-to-end automation by eliminating any human-interaction that would generally be required for determining the right model for a given particle–substrate combination. To train the MS model we first split up the five different particle–substrate datasets into training, validation and testing with a ratio of 65%, 15% and 20% respectively where each dataset acted as labels. We trained the model up to 50 epochs with a batch size of 64, using Adam ­optimizer <sup>44</sup> with an initial learning rate of 0.001. We also used early stopping where training was terminated if validation loss did not improve for 10 successive epochs. Our model selector achieved 99.69% testing accuracy and 0.9967 F1-score. AI‑guided particle detection Once a specific AI particle detector has been selected for an input image, we utilize it for detecting bounding boxes for each image particle. The proposed framework is designed to leverage diverse object detection techniques depending on which one serves the purpose best. These techniques include DetectorNet, SPPNet, MSC Multibox, YOLO, SSD, MASK RCNN, and RetinaNet. Each technique has its own unique strengths and weaknesses. The selection of a specific algorithm (or a set) will depend on priorities placed on metric such as: (1) Inferencing speed; (2) Accuracy; (3) Model size; (4) Training speed; (5) Data requirements. For example, SSD is faster than YOLO but has difficulty detecting smaller objects. Mask RCNN can be accurate but lacks inferencing speed. Most of these particle detection algorithms have certain similarities. For example, in the case of the YOLO algorithm, the image is divided into a set of grids/cells followed by a CNN based detection of the presence or absence of an object (Fig. 6). The scores (indicating the presence or absence of an object) for each of the grids are considered as confidence corresponding to the respective grids. If the confidence score for a grid is high enough to have an object (particle) in it, the corresponding grid is expanded further to identify a suitable bounding box. Once the bounding box with the highest score is achieved this score is considered as class probability for the corresponding bounding box. The same approach is repeated for each grid of the input image. Thereby, each bounding box has confidence as well as class probability. Confidence refers to whether the box contains any object or not and the class probability refers to the probability of the class of the object that is inside the bounding box. Finally, the class label of each bounding box is determined following the class probability map as shown in the right most figure of Fig. 7. The overall framework is highly flexible and can incorporate any set of object detection algorithms. However, for our experiments we have decided to move ahead with YOLO due to its demonstrated ability in detecting small objects (our use case). We have picked YOLOv5 for our experiments due to its ability to learn from a small dataset (an unavoidable limitation for this particle detection domain). Also, YOLOv5 can handle images of variable size which would be useful during inferencing. CSPDarknet53 (Conv, BatchNorm, SiLU, C3, and SPPF) acts as the backbone for the YOLOv5 model. Next YOLOv5 up-samples the output feature map to create more complex features and the head portion of the model is responsible for making the final predictions. Apart from the AI algorithm selection, we have also observed that training separate AI-models for all possible particle–substrate-image combinations yields the best results. Hence, a set of AI models will be trained and stored for performing this step (the selection of which is done using the prior step). The select AI model will output a set of bounding boxes indicating the location of each particle in the input image. Domain knowledge guided post processing The detections obtained from using the AI models can be extremely noisy, reducing the overall efficacy of the framework. The biggest concern arises due to having a large number of false positives (detections that are wrong). Specifically, these false positives can be due to overlapping detection boxes, phantom detection, and double counting (see Fig. 8). We propose three different algorithms to remove some of these false positives, thereby increasing the overall efficacy of the framework. In Fig. 9, we describe the first proposed algorithm used to detect bounding boxes that are extremely small or extremely large. This process involves computing the area of the current set of bounding boxes, calculating the Figure 7. Object detection strategy for YOLO net. Figure 8. Common detection issues observed. Figure 9. Algorithm for pruning based on area. mean and standard deviation of the distribution, and then eliminating any bounding box located X standard deviation away. Here X can be provided as a user input and determined based on empirical analysis. In Fig. 10a, we describe the process of pruning overlapping bounding boxes. This process involves calculating the overlap for each pair of bounding boxes based on the number of pixels in the intersecting area, then removing one of the boxes if the overlap exceeds a certain user-defined threshold. In Fig. 10b, we describe the process of pruning bounding boxes with skewed shapes compared to other detections. This process involves calculating the ratio between the length and the breadth of each bounding box and then eliminating all detections beyond userdefined upper and lower bounds, as determined by empirical observations. We opt for post-processing because it is an effective and computationally efficient method to enhance prediction accuracy and precision by leveraging domain knowledge in particle detection strategies. Figure 10. From left to right: ( a ) algorithm for pruning overlapping boxes; ( b ) algorithm for pruning boxes with skewed shape. Results and validation Experimental setup In this study, we used a desktop computer with Ubuntu 22.04.03 operating system, Intel Core i9 2.5 GHz 16 Cores CPU, NVIDIA GeForce RTX 3060 12 GB GPU, 2 TB HDD, and 32 GB RAM. We utilized the PyTorch deep learning framework (version 2.0.1) with CUDA support for accelerated training. We consider five different types of particle–substrate-process image dataset (discussed in Table 2) where each image has resolution of 2880 × 2160. The original dataset comprised 12 images each for Samples A, B, and C, 13 images for Sample D, and 8 images for Sample E. With the help of web-based annotation software “Roboflow” (app.roboflow.com), we divided the original dataset into training, validation, and test sets with ratios of 70%, 15%, and 15% for data Sample A, B, and C and with a ratio of 60%, 15% and 25% for data Sample D and E. After splitting, we got 8 training, 2 testing and 2 validation images for Sample A, B, and C where for D we got 8 training, 3 testing and 2 validation images and for E we got 5 training, 2 testing and 1 validation images. We then tiled each image into a 6 × 5 block and resized each block to 416 × 416 resolution. After tiling images, we got 240 training, 60 testing and 60 validation images for Sample A, B, and C and for D we got 240 training, 90 testing and 60 validation images and for E we got 150 training, 60 testing and 30 validation images. We augmented the training dataset with random clockwise and anticlockwise rotation, and random vertical and horizontal flips. After random augmentation we got 660, 720, 720, 720, and 450 training samples for Sample A, B, C, D and E. We used YOLOv5 for predicting particle bounding boxes. We utilized the small-sized variant of YOLOv5 (YOLOv5s) with a model configuration of 416 × 416 input resolution. We adopted a batch size of 16 and employed the SGD optimizer with an initial learning rate of 0.01, momentum of 0.937 and weight-decay of 0.005. We also used early stopping where the model stops its training process if the validation loss does not improve for 10 successive epochs. The model was trained for a total of 100 epochs. <u>Sample</u> <u>Particle</u> <u>Substrate and Roughness value</u> <u>Imaging</u> <u>Sample Image</u> A Nicrobraz LM, Spherical Shape AISI 1006 Mild Steel Rod (Ra = 0.26µm) Full Ring lighting B Nicrobraz LM, Spherical Shape AISI 1006 Mild Steel Rod (Ra = 0.26µm) Co-axial lighting C Nicrobraz LM, Spherical Shape AISI 306 Stainless Steel Rod (Ra = 0.37µm) Co-axial lighting D Alumina, Irregular Shape Tungsten (W) Rod (Ra = 0.19µm) Full Ring lighting Titanium Rod used in TIG welding E Nicrobraz LM, Spherical Shape (Ra = 2.14µm) Full Ring lighting Table 2. Sample preparation with varying particles, substrates, and processes for generating heterogeneous images. The table above shows the experimental results of five different particle detection datasets using YOLOv5s. To better understand the contributions and interactions of individual components within our framework, we have performed several ablation studies and report them in Table 3. Particularly, we performed analyses under four different conditions: (1) without preprocessing and post-processing, (2) without preprocessing but with post-processing, (3) with preprocessing but without post-processing, and (4) with both preprocessing and postprocessing. We utilized three metrics-recall, precision, and F1-score- to evaluate the performance of each model configuration and compare it with the overall framework performance as combined. These metrics can be calculated using the following mathematical expressions TP Recall = (1) (TP + FN) TP Precision = (2) (TP + FP) F1 − Score = <sup>2 ∗</sup> <sup>Recall ∗</sup> <sup>Precision</sup> (3) Recall + Precision Where, TP (True positives) refers to correctly predicted boxes as particles, ’FP’ (False Positives) refers to incorrectly predicted boxes as particles, and ’FN’ (False Negatives) refers to particles that the model failed to identify. In the ’E’ dataset, the YOLOv5 model achieved a recall of 0.9063, precision of 0.8985, and F1-score of 0.9024, following a training regimen that includes 30% image enhancement and sharpening (preprocessing) combined with postprocessing. In the ’E’ dataset alone, the recall is higher than precision, suggesting that the model misses a significant number of particles, leaving them undetected. This can be attributed to the higher heterogeneity in substrate as shown in the roughness measurement. In this scenario, pre-processing steps help increase the precision which can be seen in the results. For the remaining four datasets (A–D), precision surpasses recall, indicating the beneficial impact of the postprocessing algorithm following the deep learning model’s predictions. This improvement can be observed in the result table above. The “C” dataset model shows _recall of_ _0.9146, precision of 0.9713 and F1-score of 0.9421_ in the combination of 10% image enhancement and sharpening without post-processing. Implementing the proposed framework, rather than relying on individual AI models, ensures consistency in both precision and recall, with their harmonic mean (F1-score) comparable to the outcomes of individual AI models. This indicates that the transfer learning-based model selection algorithm was able to classify the incoming image and pair it to the appropriate algorithm designed for the dataset. The proposed framework is also extremely scalable in terms of speed due to lightweight pre/post processing and decisionmaking models. Experimental results show 80.86 frames per second processing efficiency during inferencing. Conclusions Particle size assessment is essential in metrology research due to the significant influence of particle size and its distribution on chemical, physical, and metallurgical activities. During the manufacturing process, particles merge with substrates or are suspended in liquid mediums, complicating their identification with conventional tools. In this paper, we presented a novel framework by combining state of art deep learning approaches with pre- and post-processing algorithms for particle detection in complex/heterogeneous backgrounds which are common in the manufacturing domain. The proposed frame detects and counts particles with very high accuracy, even in complex backgrounds with diverse morphology. Our comprehensive analysis reveals that within the proposed unified framework, precision and recall remain consistent across various HPS conditions, and their harmonic mean is comparable to outcomes from individual AI models. The proposed framework can be adapted for in-situ measurement of particle size, distribution, and coverage, and thereby evaluate the quality of particles during manufacturing. The framework can be applied online to correct the process parameters during manufacturing due to its quick, immediate, and accurate outcome. This innovative tool holds promise for enhancing in-situ process monitoring for multiple manufacturing operations, such as high-density powder-based 3D printing, powder metallurgy, extreme environment refractory coatings, particle categorization and semiconductor manufacturing. Additionally, this algorithm holds the potential to reverse-engineer manufacturing characteristics, such as liquid carrier systems, benefiting various industrial applications, including blood diagnosis and wastewater treatment etc. <u>Dataset</u> <u>Pre-processing</u> <u>Post-processing</u> <u>Recall</u> <u>Precision</u> <u>F1</u> <u>TP</u> <u>FP</u> <u>FN</u> <u>Without</u> <u>0.9325</u> <u>0.8106</u> <u>0.8673</u> <u>428</u> <u>100</u> <u>31</u> Particle Surface Area (sq. <u>pixel)</u> (× 10 <sup>6</sup> ) <u>Ground Truth</u> <u>Predicted</u> <u>28.2</u> Without E C B A D Combine <u>10%</u> <u>0.9302</u> <u>0.8609</u> <u>0.8942</u> <u>427</u> <u>69</u> <u>32</u> <u>27.0</u> Without <u>20%</u> <u>0.902</u> <u>0.8961</u> <u>0.899</u> <u>414</u> <u>48</u> <u>45</u> <u>25.1</u> <u>30%</u> <u>0.9063</u> <u>0.8927</u> <u>0.8995</u> <u>416</u> <u>50</u> <u>43</u> <u>25.3</u> <u>Without</u> <u>Without</u> <u>0.9325</u> <u>0.8121</u> <u>0.8682</u> <u>428</u> <u>99</u> <u>31</u> <u>28.2</u> 25.6 <u>10%</u> <u>0.9281</u> <u>0.8623</u> <u>0.894</u> <u>426</u> <u>68</u> <u>33</u> <u>26.8</u> With <u>20%</u> <u>0.902</u> <u>0.8961</u> <u>0.899</u> <u>414</u> <u>48</u> <u>45</u> <u>25.1</u> <u>30%</u> <u>0.9063</u> <u>0.8985</u> <u>0.9024</u> <u>416</u> <u>47</u> <u>43</u> <u>25.0</u> <u>Without</u> <u>0.915</u> <u>0.9601</u> <u>0.937</u> <u>409</u> <u>17</u> <u>38</u> <u>22.7</u> <u>10%</u> <u>0.9146</u> <u>0.9713</u> <u>0.9421</u> <u>407</u> <u>12</u> <u>38</u> <u>21.9</u> Without <u>20%</u> <u>0.9083</u> <u>0.9713</u> <u>0.9387</u> <u>406</u> <u>12</u> <u>41</u> <u>22.2</u> <u>30%</u> <u>0.9105</u> <u>0.9645</u> <u>0.9367</u> <u>407</u> <u>15</u> <u>40</u> <u>22.5</u> Without <u>Without</u> <u>0.9083</u> <u>0.9598</u> <u>0.9333</u> <u>406</u> <u>17</u> <u>41</u> <u>22.5</u> 22.5 <u>10%</u> <u>0.9034</u> <u>0.9757</u> <u>0.9352</u> <u>402</u> <u>10</u> <u>43</u> <u>21.6</u> With <u>20%</u> <u>0.8993</u> <u>0.9734</u> <u>0.9349</u> <u>402</u> <u>11</u> <u>45</u> <u>21.8</u> <u>30%</u> <u>0.9016</u> <u>0.9641</u> <u>0.9318</u> <u>403</u> <u>15</u> <u>44</u> <u>22.4</u> <u>Without</u> <u>0.8876</u> <u>0.9497</u> <u>0.9176</u> <u>774</u> <u>41</u> <u>98</u> <u>42.5</u> <u>10%</u> <u>0.8842</u> <u>0.9345</u> <u>0.9087</u> <u>771</u> <u>54</u> <u>101</u> <u>42.6</u> Without <u>20%</u> <u>0.8968</u> <u>0.931</u> <u>0.9136</u> <u>782</u> <u>58</u> <u>90</u> <u>43.6</u> <u>30%</u> <u>0.8876</u> <u>0.9337</u> <u>0.9101</u> <u>774</u> <u>55</u> <u>98</u> <u>43.0</u> Without <u>Without</u> <u>0.8624</u> <u>0.9555</u> <u>0.9066</u> <u>752</u> <u>35</u> <u>120</u> <u>40.7</u> 44.6 <u>10%</u> <u>0.8658</u> <u>0.9426</u> <u>0.9026</u> <u>755</u> <u>46</u> <u>117</u> <u>41.1</u> With <u>20%</u> <u>0.8739</u> <u>0.9407</u> <u>0.9061</u> <u>762</u> <u>48</u> <u>110</u> <u>41.6</u> <u>30%</u> <u>0.8693</u> <u>0.9404</u> <u>0.9035</u> <u>758</u> <u>48</u> <u>114</u> <u>41.6</u> <u>Without</u> <u>0.8989</u> <u>0.8911</u> <u>0.895</u> <u>409</u> <u>50</u> <u>46</u> <u>21.9</u> <u>10%</u> <u>0.9077</u> <u>0.9137</u> <u>0.9107</u> <u>413</u> <u>39</u> <u>42</u> <u>21.9</u> Without <u>20%</u> <u>0.8901</u> <u>0.8804</u> <u>0.8852</u> <u>405</u> <u>55</u> <u>50</u> <u>21.9</u> <u>30%</u> <u>0.8835</u> <u>0.9371</u> <u>0.9095</u> <u>402</u> <u>27</u> <u>53</u> <u>20.9</u> Without <u>Without</u> <u>0.8747</u> <u>0.8964</u> <u>0.8854</u> <u>398</u> <u>46</u> <u>57</u> <u>21.6</u> 22.2 <u>10%</u> <u>0.8835</u> <u>0.9178</u> <u>0.9003</u> <u>402</u> <u>36</u> <u>53</u> <u>21.4</u> With <u>20%</u> <u>0.8725</u> <u>0.8822</u> <u>0.8773</u> <u>397</u> <u>53</u> <u>58</u> <u>21.4</u> <u>30%</u> <u>0.8593</u> <u>0.9444</u> <u>0.8999</u> <u>391</u> <u>23</u> <u>64</u> <u>20.2</u> <u>Without</u> <u>0.8131</u> <u>0.8452</u> <u>0.8288</u> <u>770</u> <u>171</u> <u>177</u> <u>49.2</u> <u>10%</u> <u>0.7855</u> <u>0.8626</u> <u>0.8222</u> <u>747</u> <u>119</u> <u>204</u> <u>47.2</u> Without <u>20%</u> <u>0.7793</u> <u>0.8817</u> <u>0.8274</u> <u>738</u> <u>99</u> <u>209</u> <u>45.5</u> <u>30%</u> <u>0.7926</u> <u>0.8596</u> <u>0.8248</u> <u>753</u> <u>123</u> <u>197</u> <u>47.9</u> Without <u>Without</u> <u>0.794</u> <u>0.8487</u> <u>0.8205</u> <u>752</u> <u>134</u> <u>195</u> <u>47.8</u> 49.7 <u>10%</u> <u>0.7761</u> <u>0.8719</u> <u>0.8212</u> <u>735</u> <u>108</u> <u>212</u> <u>46.2</u> With <u>20%</u> <u>0.7614</u> <u>0.8868</u> <u>0.8193</u> <u>721</u> <u>92</u> <u>226</u> <u>44.2</u> <u>30%</u> <u>0.7684</u> <u>0.866</u> <u>0.8143</u> <u>730</u> <u>113</u> <u>220</u> <u>45.9</u> <u>Without</u> <u>0.8654</u> <u>0.921</u> <u>0.8924</u> <u>2753</u> <u>236</u> <u>428</u> <u>157.5</u> <u>10%</u> <u>0.8699</u> <u>0.9165</u> <u>0.8926</u> <u>2767</u> <u>252</u> <u>414</u> <u>158.9</u> Without <u>20%</u> <u>0.8658</u> <u>0.9131</u> <u>0.8888</u> <u>2754</u> <u>262</u> <u>427</u> <u>159.7</u> <u>30%</u> <u>0.8655</u> <u>0.9086</u> <u>0.8865</u> <u>2753</u> <u>277</u> <u>428</u> <u>158.6</u> Without <u>0.8475</u> <u>0.9268</u> <u>0.8556</u> <u>2697</u> <u>213</u> <u>484</u> <u>152.8</u> 164.6 <u>10%</u> <u>0.8444</u> <u>0.9214</u> <u>0.8812</u> <u>2686</u> <u>229</u> <u>495</u> <u>152.4</u> With <u>20%</u> <u>0.846</u> <u>0.9184</u> <u>0.8807</u> <u>2691</u> <u>239</u> <u>484</u> <u>154.7</u> <u>30%</u> <u>0.8463</u> <u>0.9122</u> <u>0.878</u> <u>2692</u> <u>259</u> <u>489</u> <u>154.1</u> Table 3. Results with model selection. Received: 21 January 2024; Accepted: 12 April 2024 References 1. Cordova, L. _et al._ Powder characterization and optimization for additive manufacturing. _Tribol. Int_ 128, 926872–926872 (2017). 2. Samal, P. & Newkirk, J. Powder metallurgy methods and applications. _ASM Handb. Powd. Metall._ 7, 1 (2015). 3. Coan, T., Barroso, G. S., Motz, G., Bolzán, A. & Machado, R. A. F. Preparation of PMMA/hBN composite coatings for metal surface protection. _Mater. Res._ 16 (6), 1366–1372 (2013). 4. Mariello, M. _et al._ Reliability of protective coatings for flexible piezoelectric transducers in aqueous environments. _Micromachines_ 10 (11), 739–739 (2019). 5. Liu, W., Li, J., Huang, X. & Bi, J. Corrosion protection of Q235 steel using epoxy coatings loaded with calcium carbonate micro particles modified by sodium lignosulfonate in simulated concrete pore solutions. _Materials_ 14 (8), 1982–1982 (2021). 6. Holtzer, M., & Kmita, A. Mold and core sands in metalcasting: chemistry and ecology. In _Sustainable Development_ (2020). 7. Baumeister, P. _Optical Coating Technology_ (SPIE Press, 2004). 8. Stewart, J. W., Akselrod, G. M., Smith, D. R. & Mikkelsen, M. H. Toward multispectral imaging with colloidal metasurface pixels. _Adv. Mater._ 29 (6), 1602971–1602971 (2017). 9. Köstlin, H., Frank, G., Hebbinghaus, G., Auding, H. & Denissen, K. Optical filters on linear halogen-lamps prepared by dip-coating. _J. Non-crystal. Solids_ 218, 347–353 (1997). 10. Abubakar, A. A., Yilbas, B. S., Al-Qahtani, H., Alzaydi, A. & Alhelou, S. Environmental dust repelling from hydrophobic and hydrophilic surfaces under vibrational excitation. _Sci. Rep._ 10 (1), 1–19 (2020). 11. Khoda, B., Ahsan, A. M. M. N. & Shovon, S. M. N. Dip coating from density mismatching mixture. _J. Micro and Nano-Manufact._ 9 (2), 1 (2021). 12. Gerasimov, A. M., Eremina, O. V., Cherkasova, M. V. & Dmitriev, S. V. Application of particle-size analysis in various industries. _J. Phys.: Conf. Ser._ 1728, 12003–12003 (2021). 13. Chávez-Vásconez, R. _et al._ Effect of the processing parameters on the porosity and mechanical behavior of titanium samples with bimodal microstructure produced via hot pressing. _Materials_ 15 (1), 136–136 (2021). 14. Slotwinski, J. A., Garboczi, E. J. & Hebenstreit, K. M. Porosity measurements and analysis for metal additive manufacturing process control. _J. Res. Natl. Inst. Stand. Technol._ 119, 494–494 (2014). 15. Han, X., Ghoroi, C., To, D., Chen, Y. & Davé, R. Simultaneous micronization and surface modification for improvement of flow and dissolution of drug particles. _Int. J. Pharm._ 415 (1–2), 185–195 (2011). 16. Murawski, D. & Behrens, H. Effect of particle size and pretreatment on the conductivity of glass powder during compaction. _Zeitschrift für Physikalische Chemie_ 231 (7–8), 1323–1343 (2017). 17. Zhang, Y. _et al._ An improved method of laser particle size analysis and its applications in identification of lacustrine tempestite and beach bar: An example from the Dongying depression. _J. Earth Sci._ 28 (6), 1145–1152 (2017). 18. Syvitski, J. P. M. _et al_ . _Principles, Methods, and Application of Particle Size Analysis_ (Cambridge University Press Cambridge, 1991). 19. Barishnikov, A. M. & Gaft, M. L. _The Application of Laser Element Online Analyzer MAYA for Extraction of Mineral Raw Materials_ _and for Stabilization of Raw Mixtures in Nonferrous Metal Production_ (2014). 20. Black, D. L., McQuay, M. Q. & Bonin, M. P. Laser-based techniques for particle-size measurement: A review of sizing methods and their industrial applications. _Progress Energy Combust Sci._ 22 (3), 267–306 (1996). 21. Farkas, D., Madarász, L., Nagy, Z. K., Antal, I. & Kállai-Szabó, N. Image analysis: A versatile tool in the manufacturing and quality control of pharmaceutical dosage forms. _Pharmaceutics_ 13 (5), 685–685 (2021). 22. Kim, H., Han, J. & Han, T.Y.-J. Machine vision-driven automatic recognition of particle size and morphology in SEM images. _Nanoscale_ 12 (37), 19461–19469 (2020). 23. Underwood, S. J. _et al._ Challenges and approaches for particle size analysis on micrographs of nanoparticles loaded onto textile surfaces. _NIST Spec. Publ._ 1200, 22 (2017). 24. Kumara, G. H. A. J. J., Hayano, K. & Ogiwara, K. Image analysis techniques on evaluation of particle size distribution of gravel. _GEOMATE J._ 3 (5), 290–297 (2012). 25. Berardi, A., Bisharat, L., Blaibleh, A., Pavoni, L. & Cespi, M. A simple and inexpensive image analysis technique to study the effect of disintegrants concentration and diluents type on disintegration. _J. Pharm. Sci._ 107 (10), 2643–2652 (2018). 26. Lee, M.-J. _et al._ In line NIR quantification of film thickness on pharmaceutical pellets during a fluid bed coating process. _Int. J._ _Pharm._ 403 (1–2), 66–72 (2011). 27. He, H., Wang, Y., Farkas, B., Nagy, Z. K. & Molnar, K. Analysis and prediction of the diameter and orientation of AC electrospun nanofibers by response surface methodology. _Mater. Des._ 194, 108902–108902 (2020). 28. Mondini, S., Ferretti, A. M., Puglisi, A. & Ponti, A. PEBBLES and PEBBLEJUGGLER: Software for accurate, unbiased, and fast measurement and analysis of nanoparticle morphology from transmission electron microscopy (TEM) micrographs. _Nanoscale_ 4 (17), 5356–5372 (2012). 29. Phromsuwan, U., Sirisathitkul, C., Sirisathitkul, Y., Uyyanonvara, B. & Muneesawang, P. Application of image processing to deter mine size distribution of magnetic nanoparticles. _J. Magn._ 18 (3), 311–316 (2013). 30. Laramy, C. R., Brown, K. A., O’Brien, M. N. & Mirkin, C. A. High-throughput, algorithmic determination of nanoparticle structure from electron microscopy images. _ACS Nano_ 9 (12), 12488–12495 (2015). 31. Xu, H., Liu, R., Choudhary, A. & Chen, W. A machine learning-based design representation method for designing heterogeneous microstructures. _J. Mech. Des._ 137 (5), 51403–51403 (2015). 32. Modarres, M. H. _et al._ Neural network for nanoscience scanning electron microscope image recognition. _Sci. Rep._ 7 (1), 1–12 (2017). 33. Massarelli, C., Campanale, C. & Uricchio, V. F. A handy open-source application based on computer vision and machine learning algorithms to count and classify microplastics. _Water_ 13 (15), 2104–2104 (2021). 34. Khalil, I. & Khoda, B. Sorting of poly-disperse particle by entrapment using liquid carrier system. _J. Manuf. Sci. Eng._ 144 (5), 1 (2022). 35. Sauret, A. _et al._ Capillary filtering of particles during dip coating. _Phys. Rev. Fluids_ 4 (5), 54303–54303 (2019). 36. Ibrahim Khalil, M., Tong, D., Wang, G., Khalid Jawed, M. & Khoda, B. Systematic variation of friction of rods. _J. Appl. Mech._ 89 (11), 1 (2022). 37. Khalil, M. I., Islam, M. A., Tong, D., Jawed, M. K. & Khoda, B. Controlling surface of rods with entrained particle as asperities. _J._ _Micro- and Nano-Manuf._ 11 (1), 1 (2024). 38. Khoda, B. & Ahsan, A. M. M. N. A novel rapid manufacturing process for metal lattice structure. _3D Print. Addit. Manuf._ 82, 11–125 (2021). 39. Khoda, B., Ahsan, A. M. M. N., Shovon, A. N. & Alam, A. I. 3D metal lattice structure manufacturing with continuous rods. _Sci._ _Rep._ 11 (1), 434 (2021). 40. Otsu, N. A threshold selection method from gray-level histograms. _IEEE Trans. Syst. Man Cybern._ 9 (1), 62–66 (1979). 41. Wellner, P. D. Adaptive thresholding for the DigitalDesk. _Xerox, EPC1993–110,_ 1–19 (1993). 42. Shovon, S. M., Alam, A., Gramlich, W. & Khoda, B. Micro-particle entrainment from density mismatched liquid carrier system. _Sci. Rep._ 12 (1), 1–13 (2022). 43. Khoda, B., Gramlich, W., Shovon, S. M. N. & Khalil, I. Effect of molecular weight on polymer solution facilitated transfer of non Brownian particles. _Progress Org. Coat._ 176, 107394 (2023). 44. Kingma, D. P., & Ba, J. _Adam: A Method for Stochastic Optimization_ (2014). Acknowledgements Financial support from Grant NSF-CMMI # 2101745 and Maine Technology Institute (MTI)#2023338 are acknowledged. The authors also acknowledge the support from UMaine EMPOWER and UMaine-NU Seed Grant for this research. Author contributions B.K. initialize the concept, design the experiment, analyze data and wrote the manuscript; A.I.A. and M.H.R. run the AI code, analyze data, prepare results; N.L. designed the post-processing algorithm; A.Z. compare and analysis the results; Probuddha and Rafiul wrote the manuscript, analyze data, prepare results. Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to B.K. Reprints and permissions information is available at 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 licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence 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 licence, visit http://​creat​iveco​mmons.​org/​licen​ses/​by/4.​0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 42문단 · 33,475자

(제목 없음)

1We propose a novel framework that combines state-of-the-art deep learning approaches with pre-and post-processing algorithms for particle detection in complex/heterogeneous backgrounds common in the manufacturing domain.Traditional methods, like size analyzers and those based on dilution, image processing, or deep learning, typically excel with homogeneous backgrounds.Yet, they often fall short in accurately detecting particles against the intricate and varied backgrounds characteristic of heterogeneous particle-substrate (HPS) interfaces in manufacturing.To address this, we've developed a flexible framework designed to detect particles in diverse environments and input types.Our modular framework hinges on model selection and AI-guided particle detection as its core, with preprocessing and postprocessing as integral components, creating a four-step process.This system is versatile, allowing for various preprocessing, AI model selections, and post-processing strategies.We demonstrate this with an entrainment-based particle delivery method, transferring various particles onto substrates that mimic the HPS interface.By altering particle and substrate properties (e.g., material type, size, roughness, shape) and process parameters (e.g., capillary number) during particle entrainment, we capture images under different ambient lighting conditions, introducing a range of HPS background complexities.In the preprocessing phase, we apply image enhancement and sharpening techniques to improve detection accuracy.Specifically, image enhancement adjusts the dynamic range and histogram, while sharpening increases contrast by combining the high pass filter output with the base image.We introduce an image classifier model (based on the type of heterogeneity), employing Transfer Learning with MobileNet as a Model Selector, to identify the most appropriate AI model (i.e., YOLO model) for analyzing each specific image, thereby enhancing detection accuracy across particle-substrate variations.Following image classification based on heterogeneity, the relevant YOLO model is employed for particle identification, with a distinct YOLO model generated for each heterogeneity type, improving overall classification performance.In the post-processing phase, domain knowledge is used to minimize false positives.Our analysis indicates that the AI-guided framework maintains consistent precision and recall across various HPS conditions, with the harmonic mean of these metrics comparable to those of individual AI model outcomes.This tool shows potential for advancing in-situ process monitoring across multiple manufacturing operations, including high-density powder-based 3D printing, powder metallurgy, extreme environment coatings, particle categorization, and semiconductor manufacturing.

2distribution of powder materials.These factors control the porosity and mechanical properties of sintered 13 and additively manufactured samples 14 , improves flowability and wettability of yield stress fluids 15 , and influence thermal and electrical conductivity 16 .Therefore, characterizing the particle size distribution before and during manufacturing becomes important at advanced production and scientific facilities [17][18][19] .

3Among many powder manufacturing processes, melt atomization processes are widely used in industries due to their better control in shape and distribution of particles.However, polydispersity is the intrinsic characteristic of the particle produced and often requires classification and separation.For bulk particles, their size and distribution are often measured with particle size analyzer (i.e., laser diffraction technique) during the preprocessing stage of their applications at a controlled environment as shown in Fig. 1a.This bulk particle analysis technique requires some degree of dilution and may compromise measurement accuracy 20 .Particle size analysis is also performed on static or dynamic images by different image analysis techniques.Static image analysis is performed when the particles are stationary and motionless whereas dynamic image analysis is carried out in a media of gas or liquid with particles and matrix 21 .The image-based particle analysis techniques are effective in the presence of distinguishable morphologies (i.e., polydispersity, color, and shapes).Static images can be obtained by optical, confocal, scanning electron microscopy (SEM) or Transmission electron microscopy (TEM) techniques.The quantitative analysis of SEM or optical images is important to understand the powder characteristics for its variety of applications.Visual and structural information including particle size range, size distribution shape and morphology obtained from images is crucial since it provides technical and scientific insights to the process of material synthesis, fabrication, and manufacturing operations 22 .

4Most image analysis tools drive researchers to extract information from the microscopic and spectroscopic images without prepossessing the particles (e.g., adding media).However, these tools are often user specific, involve semantic knowledge, and produce qualitative results.A widely used, conventional image processing tool, applied for general purposes is ImageJ developed by National Institute of Health (NIH) 23 .Kumara et al. performed image analysis of gravels (2-19 mm) through ImageJ software 24 .They captured the 2D images of gravels in a transparent sheet as background using a digital single-lens reflex (DSLR) camera.Berardi et al. studied the size expansion of tablets during disintegration for pharmaceutical applications 25 .They also captured images of tablets with a DSLR camera and performed image analysis through ImageJ to determine projected area and aspect ratio.Lee et al. 26 analyzed the confocal laser scanning microscopy (CLSM) images of pellet coating using ImageJ and calculated the coating thickness from the irregular shape measurement of pellets.He et al. 27 studied the influence of process parameters including solution concentration, collection distance, voltage and collection speed on the diameter and orientation of nanofibers made of electrospinning process.They investigated the surface morphology of nanofibers using SEM images and analyzing it through ImageJ.Depending upon the sample and imaging conditions, this software sometimes emits particles and incorrectly identifies particle boundaries which requires labor intensive post-processing.

5Apart from ImageJ software, several automatic and semiautomatic software packages have also been used to determine particle size distribution.Mondini et al. 28 developed a custom software named Pebbles to measure the surface morphology and diameter of nanoparticles.Phromsuwan et al. 29 analyzed the nanoparticle size distribution in transmission electron microscopy (TEM) images using an automated image processing technique called Otsu binarization.Laramy et al. 30 also developed particle analysis software with a customized algorithm and the MATLAB image analysis toolbox to detect the structure of nanoparticles in SEM images.

6With the recent development in machine vision and deep learning process, researchers have reported automated image processing techniques to identify the surface morphology and segment regions of optical or spectroscopy images.Xu et al. 31 identified microstructure properties in SEM images using machine learning (ML) techniques.Modarres et al. 32 introduced convolutional neural network (CNN)-based models to extract surface morphological properties from SEM images.Massarelli et al. 33 analyzed images from digital cameras and used computer vision and ML algorithms to count and classify the dimensional and morphological properties of microplastics in water.The morphology of core-shell and rod nanostructures is determined from SEM images using a combination of computer vision and ML techniques, available as a GUI software package 22 .The developed ML algorithms work efficiently with distinguishable background, controlled illumination, and high-resolution images.Thus, the background substrate containing the particles is often chosen to ensure contrast, which helps these algorithms in extracting a clear particle outline.This analysis is feasible when particles are in a bulk state, meaning they are analyzed as raw material before **their applications, in a controlled or semi-controlled environment (pre-processing stage), as shown in Fig. 1a,b.

7However, when particles are at the intermediate state of a manufacturing process (work-in-process), image background noise can arise from particle, substrate and process trio, as shown in Fig. 1c.Analyzing particles at such a heterogenous interface can be challenging due to the lack of contrast, high image noise, uneven illumination, and hazy backgrounds, as shown in Fig. 2. For example, in our recent work we developed a poly-disperse inorganic particle sorting process by entrapment onto a cylindrical rod 34 .We used Ni-based brazing powder (Nicrobraz 51; Wall Colmonoy company, Ohio; Spherical dia range ~ 0-100 µm) as bulk particles.The bulk particles are sieved with Gilson Performer III shaker through Stainless Steel 635 Mesh (20 µm) to reduce the polydispersity and are analyzed using SEM (Avg.5.69 μm) before the sorting process.In our developed particle sorting process, the spherical micro-particles are added into a liquid carrier system (LCS) with binder polymer.A thin metal rod is dipped into the mixture, and particles of different sizes are entrained on the rod's surface due to the balance between viscous drag, and capillary action.Entrainment based sorting of bi-dispersed ceramic particles is also proposed by Sauret et al. 35 where a flat glass substrate is used for dipping and entrained glass particles are analyzed for size distribution.The entrained or entrapped particle on the substrate often needs to be characterized in-situ before they can be sent to the next step of the manufacturing or coating process.For example, in our recent work, we used the entrained particles on an elastic rod to control the friction coefficient 36,37 .By analyzing the entrained particles, we can predict and hence control the friction coefficient for various applications including robot grippers, knot design, wire entanglement etc.

8The entrained particles on metal rods have been used to develop a novel porous structure manufacturing technique with rod reported in our earlier work 38,39 .The characteristics of the entrained particles on the substrate define the diffusion bonding strength and thus their size and distribution are important to analyze before they are placed in a vacuum furnace.However, the particle-substrate-process trio creates a heterogeneous interface as a background (shown in Fig. 1), which is often difficult to analyze with conventional image processing techniques.Due to the deep drawing fabrication of the metal rod, a rough and irregular surface morphology is common, which contributes further towards the heterogeneity of the image.As a result, the pixel contrast between particle and substrate is difficult to differentiate in such a heterogeneous surface.Similar complexity can occur for in-situ measurement of particles in other manufacturing processes (e.g., brazing, sintering, refractory material coating, spray painting etc.).In such circumstances, most existing tools (e.g., ImageJ, variable thresholding) generate significant errors in particle analysis without labor intensive semantic knowledge (compared in the result section).For example, as shown in Fig. 1, due to localized variation, a single image processing parameter cannot detect particles across the entire region.

9In this work, we have:

10(i) Dealt with the challenge of in-situ particle analysis from complex and varied backgrounds typical of heterogeneous particle-substrate (HPS) interfaces in the manufacturing industry, which is scarce in literature.(ii) Defined and demonstrated heterogeneous particle-substrate (HPS) interface as complex background, which are common in powder-based manufacturing processes.(iii) Implemented and tested traditional particle detection methods, such as those using size analyzers and based on dilution, image processing, or deep learning that are popular for particle identification from homogeneous background and demonstrate their struggle to accurately detect particles against the HPS interfaces.

Background and motivation

11Conventional image processing algorithms can automatically identify and count particles in an image and can measure their size, distribution, surface coverage.However, these algorithms have significant drawbacks when applied to counting particles, especially in the heterogeneous backgrounds discussed earlier.Moreover, the performance of the image processing techniques is highly dependent on several parameters, including image quality, light source, background surface texture, optimal threshold value, and particle morphology.

12For example, the heterogeneous images in Fig. 3 illustrate the performance of image processing under varying illumination conditions.The image presented in Fig. 3a www.nature.com/scientificreports/value, such as Otsu's thresholding, can be selected when other variable thresholding methods 40,41 appear not suitable for the problem, as shown in Fig. 3.This can be a common attribute of heterogeneous background discussed earlier.Figure 3b,c show the particle identification performance using an image processing approach on the images with coaxial full ring lighting.As mentioned, the figures demonstrate that the particle morphology has completely changed due to variation in lighting conditions; a careful analysis of these images reveal that each particle can be identified by the central illuminated circle rather than the light ring.For the image shown in Fig. 3c, a comparable performance has been achieved by localized contrasting algorithms.These results prove that there are no universal image processing parameters available that can be applied to heterogeneous images for particle characterization from images.The performance of the traditional image processing approach varies with optimal choice of the threshold value along with the variation of background noise and lighting illumination.Thereby, an automated computational tool would assist both professionals and novice users in automatically characterizing particles from heterogeneous images.This approach will eliminate the need for manual parameter selection in image processing and facilitate the capture of semantic knowledge, thereby improving the performance of the particle identification technique.

13To illustrate the current challenge, we evaluated the performance of ImageJ software with the assistance of a graduate student who has at least 40 h of experience using the software.When implemented on the HPS datasets, the results, as shown in Table 1, indicate that recall is always higher than precision which can be interpreted as over detection due to the presence of heterogeneity.Additionally, the prediction of surface area showed significant deviation from the ground truth, attributed to the software's inability to differentiate between particle clusters and nuances on the substrate, a common issue in the manufacturing domain.Expertise in image processing is crucial for identifying particles in images with heterogeneous backgrounds.Correct particle identification may require a deep understanding of filtering, edge detection, image conversion, and more.However, particle identification via image processing alone may not always yield optimal results due to the necessity of adjusting various parameters like threshold values and skewness degrees for each image which may require immense knowledge on filtering, edge detection, image conversion and many other approaches.This research introduces a semi-supervised innovative approach, reducing the need for deep technical knowledge by combining basic image processing with advanced deep learning, enabling more accessible particle identification from heterogeneous images without requiring detailed knowledge of image processing or artificial intelligence.

Sample preparation and image capturing

14We utilized an in-house continuous dipping system to produce heterogeneous images, simulating a continuous manufacturing process by entraining particles onto a substrate.Initially, we formulated a polymer solution using Polymethyl Methacrylate (PMMA) and the solvent 1,3-Dioxolane, both sourced from Sigma Aldrich.After stirring for 8 h, a clear and uniform liquid carrier solution (LCS) is obtained.We then introduced particles into the LCS to formulate the dipping mixture, ensuring the ratio of polymer and solvent (LCS) to particles maintains the mixture within the Newtonian regime.We chose cylindrical rods as substrates, and these are dipped through the mixture for particle entrainment, as illustrated in Fig. 4. To prevent particle sedimentation during the dipping process, we agitate the mixture to disperse the particles uniformly, forming a 'pseudo-suspension' 42,43 .

15As the rod is withdrawn from the mixture, a balance between the viscous drag and capillary action facilitates the entrainment of particles onto the rod substrate.This balance, characterized by a dimensionless capillary number, dictates the dipping characteristics and the subsequent particle transfer.Details of this are further discussed in our previous work 42 .Once entrained, the particles adhere to the substrate, using the binder as a glue, and the solvent rapidly evaporates.An in-situ analysis of the transferred particles can be conducted using an in-line microscope or camera, as depicted in Fig. 4. The resulting surface of the rod, dotted with particles, serves as a representation of the particle-substrate-process system, showcasing a heterogeneous morphology.

16For framework evaluation, we constructed five different types of heterogeneous images by varying the trio of particle, substrate, and imaging processes.The samples are created from our laboratory developed continuous entrainment process by dipping and images are taken afterward.By adjusting the particle morphologies (i.e., type, size, and shapes), substrate and capillary number during the entrainment process, we've captured images at various ambient lighting which creates a diverse level of heterogeneous background (Sample A ~ E in Table 1).These images were captured with a VHX 7000 digital 4 K microscope (by KEYENCE Corporation Ltd., IL) at 1000X magnification, covering a 300 × 200 micron area.Following this, our proposed particle characterization framework was applied to these varied heterogeneous images for both training and validation purposes.

Design and Implementation of the Proposed AI Framework

17In this section we describe the proposed particle detection framework.As shown in Fig. 5, this framework has four main steps: preprocessing, model selection, AI-Guided particle detection, and post processing.

Preprocessing strategies

18The provided particle-substrate image requires some preprocessing before it is ready for the AI model.In this study, we experimented with enhancement and sharpening.Image enhancement increases the dynamic range of gray levels through linear stretching, expands dark pixel values, performs gamma correction, and equalizes the intensity histogram.Image sharpening is typically carried out by adding a high pass filter output of the image with the base image.This increases contrast, making object detection and localization more accurate.We demonstrated the visual effects of these pre-processing strategies on a sample image in Fig. 6.Sharpening indeed makes detection easier for smaller objects and enhancement makes dimmer objects brighter, thereby facilitating their detection in subsequent steps.Together, these techniques reduce noise impact, enhance device capabilities, and contribute to cleaner data for analysis.Overall, they improve image visualization and help to make more accurate insights and decisions.The framework is designed in a modular fashion allowing future addition of more preprocessing units such as background removal and other image correction techniques.The effectiveness of this process is investigated in the results section.www.nature.com/scientificreports/

Model selection

19Extensive quantitative analysis on the HPS images has shown that separate AI detectors are necessary to accurately detect particles for each particle-substrate combination.In the presence of a set of AI-models, we must determine, for an incoming image, which AI model should be used for it.To address this, our study employs an image classifier model, effectively guiding the selection process by identifying the most suitable AI model to be employed for the analysis of a specific image.We use Transfer Learning (TL) as a Model Selector (MS) where MobileNet acts as a base model to categorize the particle-substrate dataset.While we chose MobileNet for its increased inference time efficiency, this model can be replaced with one that is either more accurate, at the cost of speed, or faster, at the cost of accuracy.The model selector is designed to enable end-to-end automation by eliminating any human-interaction that would generally be required for determining the right model for a given particle-substrate combination.

20To train the MS model we first split up the five different particle-substrate datasets into training, validation and testing with a ratio of 65%, 15% and 20% respectively where each dataset acted as labels.We trained the model up to 50 epochs with a batch size of 64, using Adam optimizer 44 with an initial learning rate of 0.001.We also used early stopping where training was terminated if validation loss did not improve for 10 successive epochs.Our model selector achieved 99.69% testing accuracy and 0.9967 F1-score.

AI-guided particle detection

21Once a specific AI particle detector has been selected for an input image, we utilize it for detecting bounding boxes for each image particle.The proposed framework is designed to leverage diverse object detection techniques depending on which one serves the purpose best.These techniques include DetectorNet, SPPNet, MSC Multibox, YOLO, SSD, MASK RCNN, and RetinaNet.Each technique has its own unique strengths and weaknesses.The selection of a specific algorithm (or a set) will depend on priorities placed on metric such as: (1) Inferencing speed; (2) Accuracy; (3) Model size; (4) Training speed; (5) Data requirements.For example, SSD is faster than YOLO but has difficulty detecting smaller objects.Mask RCNN can be accurate but lacks inferencing speed.

22Most of these particle detection algorithms have certain similarities.For example, in the case of the YOLO algorithm, the image is divided into a set of grids/cells followed by a CNN based detection of the presence or absence of an object (Fig. 6).The scores (indicating the presence or absence of an object) for each of the grids are considered as confidence corresponding to the respective grids.If the confidence score for a grid is high enough to have an object (particle) in it, the corresponding grid is expanded further to identify a suitable bounding box.Once the bounding box with the highest score is achieved this score is considered as class probability for the corresponding bounding box.The same approach is repeated for each grid of the input image.Thereby, each bounding box has confidence as well as class probability.Confidence refers to whether the box contains any object or not and the class probability refers to the probability of the class of the object that is inside the www.nature.com/scientificreports/bounding box.Finally, the class label of each bounding box is determined following the class probability map as shown in the right most figure of Fig. 7.The overall framework is highly flexible and can incorporate any set of object detection algorithms.However, for our experiments we have decided to move ahead with YOLO due to its demonstrated ability in detecting small objects (our use case).We have picked YOLOv5 for our experiments due to its ability to learn from a small dataset (an unavoidable limitation for this particle detection domain).Also, YOLOv5 can handle images of variable size which would be useful during inferencing.CSPDarknet53 (Conv, BatchNorm, SiLU, C3, and SPPF) acts as the backbone for the YOLOv5 model.Next YOLOv5 up-samples the output feature map to create more complex features and the head portion of the model is responsible for making the final predictions.

23Apart from the AI algorithm selection, we have also observed that training separate AI-models for all possible particle-substrate-image combinations yields the best results.Hence, a set of AI models will be trained and stored for performing this step (the selection of which is done using the prior step).The select AI model will output a set of bounding boxes indicating the location of each particle in the input image.

Domain knowledge guided post processing

24The detections obtained from using the AI models can be extremely noisy, reducing the overall efficacy of the framework.The biggest concern arises due to having a large number of false positives (detections that are wrong).Specifically, these false positives can be due to overlapping detection boxes, phantom detection, and double counting (see Fig. 8).We propose three different algorithms to remove some of these false positives, thereby increasing the overall efficacy of the framework.

25In Fig. 9, we describe the first proposed algorithm used to detect bounding boxes that are extremely small or extremely large.This process involves computing the area of the current set of bounding boxes, calculating the mean and standard deviation of the distribution, and then eliminating any bounding box located X standard deviation away.Here X can be provided as a user input and determined based on empirical analysis.In Fig. 10a, we describe the process of pruning overlapping bounding boxes.This process involves calculating the overlap for each pair of bounding boxes based on the number of pixels in the intersecting area, then removing one of the boxes if the overlap exceeds a certain user-defined threshold.In Fig. 10b, we describe the process of pruning bounding boxes with skewed shapes compared to other detections.This process involves calculating the ratio between the length and the breadth of each bounding box and then eliminating all detections beyond userdefined upper and lower bounds, as determined by empirical observations.We opt for post-processing because it is an effective and computationally efficient method to enhance prediction accuracy and precision by leveraging domain knowledge in particle detection strategies.We used YOLOv5 for predicting particle bounding boxes.We utilized the small-sized variant of YOLOv5 (YOLOv5s) with a model configuration of 416 × 416 input resolution.We adopted a batch size of 16 and employed the SGD optimizer with an initial learning rate of 0.01, momentum of 0.937 and weight-decay of 0.005.We also used early stopping where the model stops its training process if the validation loss does not improve for 10 successive epochs.The model was trained for a total of 100 epochs.www.nature.com/scientificreports/

26The table above shows the experimental results of five different particle detection datasets using YOLOv5s.To better understand the contributions and interactions of individual components within our framework, we have performed several ablation studies and report them in Table 3. Particularly, we performed analyses under four different conditions: (1) without preprocessing and post-processing, (2) without preprocessing but with post-processing, (3) with preprocessing but without post-processing, and (4) with both preprocessing and postprocessing.We utilized three metrics-recall, precision, and F1-score-to evaluate the performance of each model configuration and compare it with the overall framework performance as combined.These metrics can be calculated using the following mathematical expressions-Where, TP (True positives) refers to correctly predicted boxes as particles, 'FP' (False Positives) to incorrectly predicted boxes as particles, and 'FN' (False Negatives) refers to particles that the model failed to identify.In the 'E' dataset, the YOLOv5 model achieved a recall of 0.9063, precision of 0.8985, and F1-score of 0.9024, following a training regimen that includes 30% image enhancement and sharpening (preprocessing) combined with postprocessing.In the 'E' dataset alone, the recall is higher than precision, suggesting that the model misses a significant number of particles, leaving them undetected.This can be attributed to the higher heterogeneity in substrate as shown in the roughness measurement.In this scenario, pre-processing steps help increase the precision which can be seen in the results.For the remaining four datasets (A-D), precision surpasses recall, indicating the beneficial impact of the postprocessing algorithm following the deep learning model's predictions.This improvement can be observed in the result table above.The "C" dataset model shows recall of 0.9146, precision of 0.9713 and F1-score of 0.9421 in the combination of 10% image enhancement and sharpening without post-processing.Implementing the proposed framework, rather than relying on individual AI models, ensures consistency in both precision and recall, with their harmonic mean (F1-score) comparable to the outcomes of individual AI models.This indicates that the transfer learning-based model selection algorithm was able to classify the incoming image and pair it to the appropriate algorithm designed for the dataset.The proposed framework is also extremely scalable in terms of speed due to lightweight pre/post processing and decisionmaking models.Experimental results show 80.86 frames per second processing efficiency during inferencing.

Conclusions

27Particle size assessment is essential in metrology research due to the significant influence of particle size and its distribution on chemical, physical, and metallurgical activities.During the manufacturing process, particles merge with substrates or are suspended in liquid mediums, complicating their identification with conventional tools.In this paper, we presented a novel framework by combining state of art deep learning approaches with pre-and post-processing algorithms for particle detection in complex/heterogeneous backgrounds which are common in the manufacturing domain.The proposed frame detects and counts particles with very high accuracy, even in complex backgrounds with diverse morphology.Our comprehensive analysis reveals that within the proposed unified framework, precision and recall remain consistent across various HPS conditions, and their harmonic mean is comparable to outcomes from individual AI models.

28The proposed framework can be adapted for in-situ measurement of particle size, distribution, and coverage, and thereby evaluate the quality of particles during manufacturing.The framework can be applied online to correct the process parameters during manufacturing due to its quick, immediate, and accurate outcome.This innovative tool holds promise for enhancing in-situ process monitoring for multiple manufacturing operations, such as high-density powder-based 3D printing, powder metallurgy, extreme environment refractory coatings, particle categorization and semiconductor manufacturing.Additionally, this algorithm holds the potential to reverse-engineer manufacturing characteristics, such as liquid carrier systems, benefiting various industrial applications, including blood diagnosis and wastewater treatment etc.

Figure 1 .

29Figure 1.Particle images at different environment (a) highly controlled SEM image of NicroBraz particles only (low noise) (b) molybdenum particles on substrate as glass slide (medium background distraction) (c) polymer entrapped NicroBraz particles on tungsten rod substrate (heterogeneous interface).

Figure 2 .

30Figure 2. Conventional image processing algorithms applied to a heterogeneous image taken by VHX 7000 digital 4 K microscope after dip coating process.(a) Shows the particle-substrate system with 80X Zoom (b) with 1000X zoom, two insets show two different regions of the same image.(c) shows the effect of traditional image processing methods applied to the two inset images, which generates completely different outcomes for the same input.

Figure 3 .

31Figure 3. Demonstration inconsistency in particle identification outcome in HPS images with different existing algorithm (a) Image taken with full circle illumination and custom thresholding algorithm to segment the particle coverage area, (b) Image taken with coaxial full ring illumination segmentation is done by changing parameters of the customized thresholding algorithm, (c) Image taken with coaxial full ring illumination and localized contrasting algorithm is applied.

Figure 4 .

32Figure 4. Schematic of continuous dipping process for particle entrainment and imaging setup.

Figure 5 .

33Figure 5. Overview of the proposed modular particle detection framework.

Figure 6 .

34Figure 6.Preprocessing effects: Sharpening leads to better definition of smaller particles while enhancing visibility.

Figure 7 .

35Figure 7. Object detection strategy for YOLO net.

Figure 8 .

36Figure 8. Common detection issues observed.

Figure 9 .

37Figure 9. Algorithm for pruning based on area.

Figure 10 .

38Figure 10.From left to right: (a) algorithm for pruning overlapping boxes; (b) algorithm for pruning boxes with skewed shape.

= 2 *

39Recall * Precision Recall + Precision

Table 1 .

40Performance metrics of ImageJ software with HPS dataset.

Table 2 .

41Sample preparation with varying particles, substrates, and processes for generating heterogeneous images.

Table 3 .

42Results with model selection.

참고문헌 38건

  1. Optical Coating Technology SPIE eBooks · SPIE · 2004 10.1117/3.548071
  2. Principles, Methods and Application of Particle Size Analysis Cambridge University Press eBooks · Cambridge University Press · 1991 10.1017/cbo9780511626142
  3. A Machine Learning-Based Design Representation Method for Designing Heterogeneous Microstructures Journal of Mechanical Design · American Society of Mechanical Engineers · 2015 10.1115/1.4029768
  4. Laser-based techniques for particle-size measurement: A review of sizing methods and their industrial applications Progress in Energy and Combustion Science · Elsevier BV · 1996 10.1016/s0360-1285(96)00008-1
  5. Simultaneous micronization and surface modification for improvement of flow and dissolution of drug particles International Journal of Pharmaceutics · Elsevier BV · 2011 10.1016/j.ijpharm.2011.05.070
  6. Optical filters on linear halogen-lamps prepared by dip-coating Journal of Non-Crystalline Solids · Elsevier BV · 1997 10.1016/s0022-3093(97)00169-5
  7. Pebbles and PebbleJuggler: software for accurate, unbiased, and fast measurement and analysis of nanoparticle morphology from transmission electron microscopy (TEM) micrographs Nanoscale · Royal Society of Chemistry · 2012 10.1039/c2nr31276j
  8. In line NIR quantification of film thickness on pharmaceutical pellets during a fluid bed coating process International Journal of Pharmaceutics · Elsevier BV · 2010 10.1016/j.ijpharm.2010.10.022
  9. A Threshold Selection Method from Gray-Level Histograms IEEE Transactions on Systems Man and Cybernetics · Institute of Electrical and Electronics Engineers · 1979 10.1109/tsmc.1979.4310076
  10. Application of Image Processing to Determine Size Distribution of Magnetic Nanoparticles Journal of Magnetics · The Korean Magnetics Society · 2013 10.4283/jmag.2013.18.3.311
  11. Preparation of PMMA/hBN composite coatings for metal surface protection Materials Research · Associação Brasileira de Metalurgia e Materiais (ABM); Associação Brasileira de Cerâmica (ABC); Associação Brasileira de Polímer · 2013 10.1590/s1516-14392013005000140
  12. Porosity Measurements and Analysis for Metal Additive Manufacturing Process Control Journal of Research of the National Institute of Standards and Technology · The National Institute of Standards and Technology · 2014 10.6028/jres.119.019
  13. High-Throughput, Algorithmic Determination of Nanoparticle Structure from Electron Microscopy Images ACS Nano · American Chemical Society · 2015 10.1021/acsnano.5b05968
  14. Toward Multispectral Imaging with Colloidal Metasurface Pixels Advanced Materials · Wiley · 2016 10.1002/adma.201602971
  15. Challenges and approaches for particle size analysis on micrographs of nanoparticles loaded onto textile surfaces 2017 10.6028/nist.sp.1200-22
  16. Effect of Particle Size and Pretreatment on the Conductivity of Glass Powder during Compaction Zeitschrift für Physikalische Chemie · De Gruyter · 2017 10.1515/zpch-2016-0926
  17. Powder Characterization and Optimization for Additive Manufacturing 2017
  18. Neural Network for Nanoscience Scanning Electron Microscope Image Recognition Scientific Reports · Nature Portfolio · 2017 10.1038/s41598-017-13565-z
  19. An improved method of laser particle size analysis and its applications in identification of lacustrine tempestite and beach bar: An example from the Dongying depression Journal of Earth Science · Springer Science+Business Media · 2017 10.1007/s12583-016-0930-1
  20. A Simple and Inexpensive Image Analysis Technique to Study the Effect of Disintegrants Concentration and Diluents Type on Disintegration Journal of Pharmaceutical Sciences · Elsevier BV · 2018 10.1016/j.xphs.2018.06.008
  21. Capillary filtering of particles during dip coating Physical Review Fluids · American Physical Society · 2019 10.1103/physrevfluids.4.054303
  22. Reliability of Protective Coatings for Flexible Piezoelectric Transducers in Aqueous Environments Micromachines · Multidisciplinary Digital Publishing Institute · 2019 10.3390/mi10110739
  23. Re-epithelialization and immune cell behaviour in an ex vivo human skin model Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-019-56847-4
  24. Analysis and prediction of the diameter and orientation of AC electrospun nanofibers by response surface methodology Materials & Design · Elsevier BV · 2020 10.1016/j.matdes.2020.108902
  25. Environmental dust repelling from hydrophobic and hydrophilic surfaces under vibrational excitation Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-71356-5
  26. Machine vision-driven automatic recognition of particle size and morphology in SEM images Nanoscale · Royal Society of Chemistry · 2020 10.1039/d0nr04140h
  27. 3D metal lattice structure manufacturing with continuous rods Scientific Reports · Nature Portfolio · 2021 10.1038/s41598-020-79826-6
  28. A Novel Rapid Manufacturing Process for Metal Lattice Structure 3D Printing and Additive Manufacturing · Mary Ann Liebert, Inc. · 2021 10.1089/3dp.2020.0184
  29. Corrosion Protection of Q235 Steel Using Epoxy Coatings Loaded with Calcium Carbonate Microparticles Modified by Sodium Lignosulfonate in Simulated Concrete Pore Solutions Materials · Multidisciplinary Digital Publishing Institute · 2021 10.3390/ma14081982
  30. Image Analysis: A Versatile Tool in the Manufacturing and Quality Control of Pharmaceutical Dosage Forms Pharmaceutics · Multidisciplinary Digital Publishing Institute · 2021 10.3390/pharmaceutics13050685
  31. Dip Coating From Density Mismatching Mixture Journal of Micro and Nano-Manufacturing · ASM International · 2021 10.1115/1.4051260
  32. A Handy Open-Source Application Based on Computer Vision and Machine Learning Algorithms to Count and Classify Microplastics Water · Multidisciplinary Digital Publishing Institute · 2021 10.3390/w13152104
  33. Sorting of Poly-Disperse Particle by Entrapment Using Liquid Carrier System Journal of Manufacturing Science and Engineering · ASM International · 2021 10.1115/1.4052440
  34. Effect of the Processing Parameters on the Porosity and Mechanical Behavior of Titanium Samples with Bimodal Microstructure Produced via Hot Pressing Materials · Multidisciplinary Digital Publishing Institute · 2021 10.3390/ma15010136
  35. Mold and Core Sands in Metalcasting: Chemistry and Ecology Springer eBooks · Springer Nature · 2020 10.1007/978-3-030-53210-9
  36. Micro-particle entrainment from density mismatched liquid carrier system Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-14162-5
  37. Systematic Variation of Friction of Rods Journal of Applied Mechanics · ASM International · 2022 10.1115/1.4055544
  38. Effect of molecular weight on polymer solution facilitated transfer of non-Brownian particles Progress in Organic Coatings · Elsevier BV · 2023 10.1016/j.porgcoat.2022.107394