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

A lightweight particle detection algorithm based on an improved YOLOv8

간접 관련 산업용 섬유 · (10) 아라미드 (17) 스펀본드 부직포(23) 컴파운드

기본 정보

저자
  1. Bowen Wang — School of Cyber Science and Engineering & Hanwei Institute of Internet of Things, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China
  2. Pan Liu — School of Mechanics and Safety Engineering, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China
  3. Hui Tian — School of Cyber Science and Engineering & Hanwei Institute of Internet of Things, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China
  4. Hongjun Ren — School of Cyber Science and Engineering & Hanwei Institute of Internet of Things, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China
  5. Yangjie Cao — School of Cyber Science and Engineering & Hanwei Institute of Internet of Things, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China
  6. Shijiao Li — School of Mechanics and Safety Engineering, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China
  7. Guochen Qi — School of Mechanics and Safety Engineering, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China
  8. Mingfu Zhu — Engineering Technology Research Center of Henan Province for MEMS Manufacturing and Applications, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China
  9. Ronghan Wei — Engineering Technology Research Center of Henan Province for MEMS Manufacturing and Applications, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China|||Industrial Technology Research Institute, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China|||School of Cyber Science and Engineering & Hanwei Institute of Internet of Things, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China|||School of Mechanics and Safety Engineering, Zhengzhou University, No. 100 Kexue Blvd, Zhengzhou, 450001, Henan, China
DOI
10.1088/1742-6596/2816/1/012093
저널
Journal of Physics Conference Series
발행년도
2024
발행기관
IOP Publishing
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1088/1742-6596/2816/1/012093
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4401521595

평가 내용

관련도
간접 관련
사업분야
산업용 섬유 · (10) 아라미드
부 분야
(17) 스펀본드 부직포, (23) 컴파운드
R&D 측면
분석·모델링
확신도
0.80
근거 용어
transmission electron microscopy, nanomaterials, grain detection, YOLOv8, nanocrystals
판단 근거
본 논문은 투과전자현미경(TEM) 이미지를 활용하여 나노 입자 및 결정립(grain)을 자동으로 검출하는 경량화된 딥러닝 알고리즘을 다룹니다. 이는 아라미드 나노섬유나 고기능성 복합소재의 미세구조(결정립, 결함, 계면)를 분석하는 R&D 공정에 간접적으로 적용 가능합니다.
R&D 활용 포인트
아라미드 나노섬유, 고강도 섬유 및 엔지니어링 플라스틱의 미세구조 분석 시, TEM 이미지 내 나노 입자나 결정립의 크기, 분포, 형태를 자동화된 방식으로 정밀하게 측정하고 분석하는 데 활용할 수 있습니다.
평가 입력
섹션 본문 15,881자

초록

Abstract A method for lightweight grain detection under transmission electron microscopy is proposed to address the issues of inadequate detection accuracy, slow speed, and high resource consumption, utilizing an improved YOLOv8. The approach involves substituting YOLOv8’s backbone structure with Mobilenetv3small, reducing model complexity while maintaining accuracy. Additionally, GsConv modules are applied to the feature enhancement network to optimize grain recognition and positioning. Experimental results show that the accuracy of the enhanced YOLOv8 reaches 97.4%, with a 66% reduction in parameters and a 70.7% decrease in computational demand, fulfilling the requirements for a lightweight experimental deployment.

본문 15,976자

본문 펼치기
A method for lightweight grain detection under transmission electron microscopy is proposed to address the issues of inadequate detection accuracy, slow speed, and high resource consumption, utilizing an improved YOLOv8.The approach involves substituting YOLOv8's backbone structure with Mobilenetv3small, reducing model complexity while maintaining accuracy.Additionally, GsConv modules are applied to the feature enhancement network to optimize grain recognition and positioning.Experimental results show that the accuracy of the enhanced YOLOv8 reaches 97.4%, with a 66% reduction in parameters and a 70.7% decrease in computational demand, fulfilling the requirements for a lightweight experimental deployment. Introduction In the current era of information technology, information collection, processing, transformation, and application have made tremendous progress.Images, as a key carrier for obtaining information about the external world, contain rich data.However, extracting the required information from images is difficult using manual methods alone.Among them, applying target recognition to the study and analysis of nanomaterials in transmission electron microscopy images has always been one of the key issues of concern to researchers, setting higher standards for the speed and accuracy of processing such images. Introduction High-resolution transmission electron microscopy (HRTEM) [1] is a powerful microscopy technique that uses an electron beam to penetrate ultra-thin samples to produce high-resolution images of the sample.This technology can achieve sub-nanometer and even atomic-level resolution, allowing researchers to observe the microstructure inside the material, such as lattice arrangements, defects, interfaces, and changes in chemical composition at the nanometer scale.Image processing methods have been used for data analysis of particle images in many research fields.Nedzved et al. [2] used image processing technology to process the material structure under scanning electron microscopy and IOP Publishing doi:10.1088/1742-6596/2816/1/012093 2 analyzed the impact of magnetic fields on materials; Elia et al. [3] used images.The processing technology processes the scanning electron microscope images and realizes the statistical calculation of the porous area by calculating the porosity and other data information of the porous silicon layer. Introduction In nanomaterial research, identifying and tracking nanocrystals using transmission electron microscopy is one of the key steps in material studies.Transmission electron microscopy technology can provide real-time images of nanocrystals during dynamic processes, offering a wealth of video data for studying grain behavior.However, efficiently and reliably extracting information from these data has become a challenge in nanomaterial research using transmission electron microscopy.Traditionally, researchers often manually annotate nanoparticles using image processing software.This method is time-consuming and inefficient, fails to meet research needs regarding the quantity and quality of manual annotations, and is subject to significant subjectivity. Introduction Due to the powerful data processing capabilities of deep learning models, image processing algorithms based on deep learning have been applied in many practical fields.Aguiar et al. [3] used convolutional neural networks to classify crystals.The network introduced deep learning models to extract structural information in crystals, and a combination of image processing and deep learning was used to add microscopy and diffraction-based techniques.Practicality in materials research: Ziatdinov et al. [4] uses deep learning network models without specifying specific material types, which can accurately find the categories and information of atoms in images of different materials and are insensitive to interference information such as noise. Introduction However, in-situ electron microscopy images have disadvantages such as low contrast and serious noise pollution, and the particle detection algorithms proposed in the above studies generally have large model parameters and are unsuitable for deployment and implementation on mobile terminals.To reduce the complexity of the model while preserving the accuracy of detection, this paper proposes an improved YOLOv8n network to meet the needs for lightweight, high-precision detection in small particle scenarios and ensure that the model size can meet the requirements of embedded deployment and improve the ability to detect particles. Improved YOLOv8n The YOLOv8 object detection algorithm inherits and develops the advantages of previous versions, achieving higher recognition performance.This version accomplishes an optimal balance between speed and accuracy, making it the preferred method in various object detection and tracking scenarios.The backbone network of YOLOv8 integrates Conv, C2f, and SPPF modules.Drawing inspiration from the ELAN design concept in YOLOv7 [5] significantly enhances model performance.The training data augmentation incorporates the last ten epochs to disable Mosaic data enhancement from YOLOX, effectively improving accuracy.In the feature fusion network (Neck) part, YOLOv8 employs the PANet (Path Aggregation Network), significantly enhancing the integration capability of features at different scales. Improved YOLOv8n Given the rapid development and wide application of mobile terminals and smart devices in particle recognition, mobile terminals need accurate and efficient detection methods in the context of small particle recognition.However, small particle target detection accuracy is often limited in practical applications.To solve the contradiction between model accuracy and complexity, we improve the feature extraction network of YOLOv8 to make the algorithm more suitable for detecting small particles in mobile devices.The model adopts MobileNetV3-small [6] as its backbone network, which ensures a lightweight structure and improves operational performance.In addition, a GSConv [7] lightweight feature layer is integrated, specifically designed to reduce the model size for particle target detection. Improved YOLOv8n During the feature extraction process in convolutional neural networks, the spatial information of images is gradually transformed into channel information.Still, there is a loss of feature information during this process.Although dense convolutional computations within channels can maintain 3 connections between channels, sparse convolution operations can affect these associations.GSConv technology allows for output with a lighter network size, thereby enhancing the speed and accuracy of inference. Improved YOLOv8n GSConv first inputs a normal convolution for downsampling, then uses DWConv for deep convolution, merging convolution results.Finally, a shuffle operation connects the previous two convolutional layers.The GSConv structure is shown in Figure 1.Based on GSConv, the GS bottleneck was further introduced, and a new module, VoV-GSCSP, was designed.The VoV-GSCSP module is connected to the GS bottleneck with a new path, maintaining sufficient accuracy.Figure 2 shows the above two network structures. Constructing grain dataset Due to the high cost and lengthy tuning process required for acquiring nanograin structural features via transmission electron microscopy, the available image dataset is limited.To address the shortage of data and ensure smooth experimentation, images of nanograins from transmission electron microscopy found in related literature are incorporated.Selected scenes include single rough body atomic-level friction [8], atomic scale grain boundary sliding [9], and twinning exchange, which cover the main morphologies of grains under transmission electron microscopy.The number of images, slices, and final grain counts for these three scenes are presented in Table 1.A total of 291 images and 62, 565 grains were obtained, ensuring the reliability of the data and laying a solid foundation for subsequent analysis of grain motion.Additionally, due to the small size of grains in transmission electron microscopy images and their dense arrangement, the slicing tool provided by SAHI [10] for assisted inference is utilized to slice images with densely distributed grains, reducing the difficulty of annotation.The slicing process is shown in Figure 4.The slicing window can be set to 128×128, ensuring an adequate number of grains within each slice for annotation.The overlap ratio of adjacent slices in both height and width directions is set to 0.2.This setting ensures that each slice overlaps 20% of the area with its adjacent slices in both vertical and horizontal directions, allowing objects near the boundaries to be more completely captured and recognized, reducing information loss due to slicing.This study employs image processing techniques to expand the original image data to overcome the limitations of the original dataset and the issue of sample imbalance.By applying random augmentation techniques, including rotating images by 90, 180, and 270 degrees, adjusting brightness and darkness, and performing horizontal and vertical flips, the diversity and quantity of the data are effectively increased. Constructing grain dataset The SAHI library implements image slicing in this study, and the sliced data is labeled.The sliced dataset was processed, and the makesense.aionline annotation tool was used to label the position of the grains in the dataset.The annotation information of each image was stored uniformly in the form of TXT files in YOLO format.Figure 5 shows the slicing results. Experimental environment All the experiments were conducted on a cloud server, with an RTX3090 system configuration, a 24 GB GPU, an operating system of Ubuntu, a programming language of python3.9, a deep learning platform of torch1.12.1, an improved YOLOv8n for training and prediction models, and SAHI0.8.4 for the slicing inference framework. Comparative experiments We trained and evaluated the improved YOLOv8n model and several other mainstream YOLO variant object detection models on the same dataset to test the model.These models include YOLOv8n-Efficientnet [11], YOLOv8n-ShuffleNet [12], YOLOv8n-GhostNet [13], and YOLOv8n.The network weights obtained during the model training process were used for result evaluation on the same validation set.Experimental results show that the improved YOLOv8n model achieved an mAP of 98.6%, close to the original YOLOv8 model.Its computational requirement is only 2.6 GFLOP, making it more computationally efficient than other models.This is attributed to the efficient network structure adopted by MobileNetV3 small, which enabled it to achieve a higher level of detection performance, thereby showing significant advantages in computational performance.Table 2 displays the test results of different models trained from scratch.Our method significantly improves accuracy and recall while significantly reducing parameter counts compared to before the improvement. Comparative experiments Table 2. Test results of different models trained. Models Precision GFLOPS Params (M) mAP@0.5 mAP@0. Ablation experiments This study conducted an analysis experiment on optimization strategies implemented on the YOLOv8 model to verify its optimization effects.The experiment used the same training and validation sets.Initially, the original YOLOv8 and its improved version were trained, followed by performance evaluation using the same validation dataset and assessment method.Test results showed that replacing the backbone network with MobileNetV3-small effectively reduced the network's size and computational requirements from 8.9 GFLOPs to 2.6 GFLOPs, theoretically tripling the model's prediction speed.The detection speed also doubled, and the mAP reached 98%; all performance aspects matched the original model's levels and were further improved upon.The results are presented in Table 3. Ablation experiments Table 3. Test results of different models in ablation study. Models Precision GFLOPS Params (M) mAP@0.5 mAP@0. Figure 1 . Figure 1.GSConv network structure.Based on GSConv, the GS bottleneck was further introduced, and a new module, VoV-GSCSP, was designed.The VoV-GSCSP module is connected to the GS bottleneck with a new path, maintaining sufficient accuracy.Figure2shows the above two network structures. Figure 2 . Figure 2. GS bottleneck and VoVGSCSP network structure.The model is trained on a specially developed small granular dataset.The lightweight structure is shown in Figure 3. Figure 3 . Figure 3.The improved network structure of the YOLOv8n model. Figure 4 . Figure 4. Transmission electron microscopy image-slicing process.The slicing window can be set to 128×128, ensuring an adequate number of grains within each slice for annotation.The overlap ratio of adjacent slices in both height and width directions is set to 0.2.This setting ensures that each slice overlaps 20% of the area with its adjacent slices in both vertical and horizontal directions, allowing objects near the boundaries to be more completely captured and recognized, reducing information loss due to slicing.This study employs image processing techniques to expand the original image data to overcome the limitations of the original dataset and the issue of sample imbalance.By applying random augmentation techniques, including rotating images by 90, 180, and 270 degrees, adjusting brightness and darkness, and performing horizontal and vertical flips, the diversity and quantity of the data are effectively increased.The SAHI library implements image slicing in this study, and the sliced data is labeled.The sliced dataset was processed, and the makesense.aionline annotation tool was used to label the position of the grains in the dataset.The annotation information of each image was stored uniformly in the form of TXT files in YOLO format.Figure5shows the slicing results. Figure 5 . Figure 5. Data slicing results. 3. 4 Experimental resultsFigure6is an experimental result diagram of the improved YOLOv8 model.These images are marked with the category and location of the detection results.Since the grain outline is circular, we modified the detection frame to match the particles.At the same time, due to the dense distribution of particles, we adjusted the size.The display of detection box labels was canceled, and the red box is the result box predicted by the model.It can be seen from the figure that the test results are accurate.Therefore, the improved YOLOv8 algorithm works well for low-resolution target detection and target images containing small targets. Figure 6 . Figure 6.Recognition results.These images indicate the location of the detected grains, and since the grain profile is round, we modified the detection frame to match the particles.Because of the dense particle distribution, we reduced or eliminated the display of the detection frame labels, and the red circular detection frame is the result box predicted by the model.When the grains are misaligned, there will be a striped arrangement, which leads to a certain degree of missed detection in the algorithm, and the detection results of the grains arranged in the grid are accurate. Table 1 . Grain dataset number. Table 1 . This paper presents an improved YOLOv8n grain detection method in response to the accuracy and lightweight requirements under transmission electron microscopy.The Mobilenetv3small network replaces the backbone feature extraction network of YOLOv8n, and a Lightweight module is applied to the feature enhancement network module.While ensuring detection accuracy, it provides a basis for the deployment needs of edge devices; experimental results verify the effectiveness of the new algorithm.The next steps will focus on research into model detection speed and improve detection accuracy, enhancing the model's application value in real-world scenarios.

섹션 본문 28문단 · 15,541자

(제목 없음)

1A method for lightweight grain detection under transmission electron microscopy is proposed to address the issues of inadequate detection accuracy, slow speed, and high resource consumption, utilizing an improved YOLOv8.The approach involves substituting YOLOv8's backbone structure with Mobilenetv3small, reducing model complexity while maintaining accuracy.Additionally, GsConv modules are applied to the feature enhancement network to optimize grain recognition and positioning.Experimental results show that the accuracy of the enhanced YOLOv8 reaches 97.4%, with a 66% reduction in parameters and a 70.7% decrease in computational demand, fulfilling the requirements for a lightweight experimental deployment.

Introduction

2In the current era of information technology, information collection, processing, transformation, and application have made tremendous progress.Images, as a key carrier for obtaining information about the external world, contain rich data.However, extracting the required information from images is difficult using manual methods alone.Among them, applying target recognition to the study and analysis of nanomaterials in transmission electron microscopy images has always been one of the key issues of concern to researchers, setting higher standards for the speed and accuracy of processing such images.

3High-resolution transmission electron microscopy (HRTEM) [1] is a powerful microscopy technique that uses an electron beam to penetrate ultra-thin samples to produce high-resolution images of the sample.This technology can achieve sub-nanometer and even atomic-level resolution, allowing researchers to observe the microstructure inside the material, such as lattice arrangements, defects, interfaces, and changes in chemical composition at the nanometer scale.Image processing methods have been used for data analysis of particle images in many research fields.Nedzved et al. [2] used image processing technology to process the material structure under scanning electron microscopy and IOP Publishing doi:10.1088/1742-6596/2816/1/012093 2 analyzed the impact of magnetic fields on materials; Elia et al. [3] used images.The processing technology processes the scanning electron microscope images and realizes the statistical calculation of the porous area by calculating the porosity and other data information of the porous silicon layer.

4In nanomaterial research, identifying and tracking nanocrystals using transmission electron microscopy is one of the key steps in material studies.Transmission electron microscopy technology can provide real-time images of nanocrystals during dynamic processes, offering a wealth of video data for studying grain behavior.However, efficiently and reliably extracting information from these data has become a challenge in nanomaterial research using transmission electron microscopy.Traditionally, researchers often manually annotate nanoparticles using image processing software.This method is time-consuming and inefficient, fails to meet research needs regarding the quantity and quality of manual annotations, and is subject to significant subjectivity.

5Due to the powerful data processing capabilities of deep learning models, image processing algorithms based on deep learning have been applied in many practical fields.Aguiar et al. [3] used convolutional neural networks to classify crystals.The network introduced deep learning models to extract structural information in crystals, and a combination of image processing and deep learning was used to add microscopy and diffraction-based techniques.Practicality in materials research: Ziatdinov et al. [4] uses deep learning network models without specifying specific material types, which can accurately find the categories and information of atoms in images of different materials and are insensitive to interference information such as noise.

6However, in-situ electron microscopy images have disadvantages such as low contrast and serious noise pollution, and the particle detection algorithms proposed in the above studies generally have large model parameters and are unsuitable for deployment and implementation on mobile terminals.To reduce the complexity of the model while preserving the accuracy of detection, this paper proposes an improved YOLOv8n network to meet the needs for lightweight, high-precision detection in small particle scenarios and ensure that the model size can meet the requirements of embedded deployment and improve the ability to detect particles.

Improved YOLOv8n

7The YOLOv8 object detection algorithm inherits and develops the advantages of previous versions, achieving higher recognition performance.This version accomplishes an optimal balance between speed and accuracy, making it the preferred method in various object detection and tracking scenarios.The backbone network of YOLOv8 integrates Conv, C2f, and SPPF modules.Drawing inspiration from the ELAN design concept in YOLOv7 [5] significantly enhances model performance.The training data augmentation incorporates the last ten epochs to disable Mosaic data enhancement from YOLOX, effectively improving accuracy.In the feature fusion network (Neck) part, YOLOv8 employs the PANet (Path Aggregation Network), significantly enhancing the integration capability of features at different scales.

8Given the rapid development and wide application of mobile terminals and smart devices in particle recognition, mobile terminals need accurate and efficient detection methods in the context of small particle recognition.However, small particle target detection accuracy is often limited in practical applications.To solve the contradiction between model accuracy and complexity, we improve the feature extraction network of YOLOv8 to make the algorithm more suitable for detecting small particles in mobile devices.The model adopts MobileNetV3-small [6] as its backbone network, which ensures a lightweight structure and improves operational performance.In addition, a GSConv [7] lightweight feature layer is integrated, specifically designed to reduce the model size for particle target detection.

9During the feature extraction process in convolutional neural networks, the spatial information of images is gradually transformed into channel information.Still, there is a loss of feature information during this process.Although dense convolutional computations within channels can maintain 3 connections between channels, sparse convolution operations can affect these associations.GSConv technology allows for output with a lighter network size, thereby enhancing the speed and accuracy of inference.

10GSConv first inputs a normal convolution for downsampling, then uses DWConv for deep convolution, merging convolution results.Finally, a shuffle operation connects the previous two convolutional layers.The GSConv structure is shown in Figure 1.Based on GSConv, the GS bottleneck was further introduced, and a new module, VoV-GSCSP, was designed.The VoV-GSCSP module is connected to the GS bottleneck with a new path, maintaining sufficient accuracy.Figure 2 shows the above two network structures.

Constructing grain dataset

11Due to the high cost and lengthy tuning process required for acquiring nanograin structural features via transmission electron microscopy, the available image dataset is limited.To address the shortage of data and ensure smooth experimentation, images of nanograins from transmission electron microscopy found in related literature are incorporated.Selected scenes include single rough body atomic-level friction [8], atomic scale grain boundary sliding [9], and twinning exchange, which cover the main morphologies of grains under transmission electron microscopy.The number of images, slices, and final grain counts for these three scenes are presented in Table 1.A total of 291 images and 62, 565 grains were obtained, ensuring the reliability of the data and laying a solid foundation for subsequent analysis of grain motion.Additionally, due to the small size of grains in transmission electron microscopy images and their dense arrangement, the slicing tool provided by SAHI [10] for assisted inference is utilized to slice images with densely distributed grains, reducing the difficulty of annotation.The slicing process is shown in Figure 4.The slicing window can be set to 128×128, ensuring an adequate number of grains within each slice for annotation.The overlap ratio of adjacent slices in both height and width directions is set to 0.2.This setting ensures that each slice overlaps 20% of the area with its adjacent slices in both vertical and horizontal directions, allowing objects near the boundaries to be more completely captured and recognized, reducing information loss due to slicing.This study employs image processing techniques to expand the original image data to overcome the limitations of the original dataset and the issue of sample imbalance.By applying random augmentation techniques, including rotating images by 90, 180, and 270 degrees, adjusting brightness and darkness, and performing horizontal and vertical flips, the diversity and quantity of the data are effectively increased.

12The SAHI library implements image slicing in this study, and the sliced data is labeled.The sliced dataset was processed, and the makesense.aionline annotation tool was used to label the position of the grains in the dataset.The annotation information of each image was stored uniformly in the form of TXT files in YOLO format.Figure 5 shows the slicing results.

Experimental environment

13All the experiments were conducted on a cloud server, with an RTX3090 system configuration, a 24 GB GPU, an operating system of Ubuntu, a programming language of python3.9, a deep learning platform of torch1.12.1, an improved YOLOv8n for training and prediction models, and SAHI0.8.4 for the slicing inference framework.

Comparative experiments

14We trained and evaluated the improved YOLOv8n model and several other mainstream YOLO variant object detection models on the same dataset to test the model.These models include YOLOv8n-Efficientnet [11], YOLOv8n-ShuffleNet [12], YOLOv8n-GhostNet [13], and YOLOv8n.The network weights obtained during the model training process were used for result evaluation on the same validation set.Experimental results show that the improved YOLOv8n model achieved an mAP of 98.6%, close to the original YOLOv8 model.Its computational requirement is only 2.6 GFLOP, making it more computationally efficient than other models.This is attributed to the efficient network structure adopted by MobileNetV3 small, which enabled it to achieve a higher level of detection performance, thereby showing significant advantages in computational performance.Table 2 displays the test results of different models trained from scratch.Our method significantly improves accuracy and recall while significantly reducing parameter counts compared to before the improvement.

15Table 2. Test results of different models trained.

Models

16Precision GFLOPS Params (M) mAP@0.5 mAP@0.

Ablation experiments

17This study conducted an analysis experiment on optimization strategies implemented on the YOLOv8 model to verify its optimization effects.The experiment used the same training and validation sets.Initially, the original YOLOv8 and its improved version were trained, followed by performance evaluation using the same validation dataset and assessment method.Test results showed that replacing the backbone network with MobileNetV3-small effectively reduced the network's size and computational requirements from 8.9 GFLOPs to 2.6 GFLOPs, theoretically tripling the model's prediction speed.The detection speed also doubled, and the mAP reached 98%; all performance aspects matched the original model's levels and were further improved upon.The results are presented in Table 3.

18Table 3. Test results of different models in ablation study.

Models

19Precision GFLOPS Params (M) mAP@0.5 mAP@0.

Figure 1 .

20Figure 1.GSConv network structure.Based on GSConv, the GS bottleneck was further introduced, and a new module, VoV-GSCSP, was designed.The VoV-GSCSP module is connected to the GS bottleneck with a new path, maintaining sufficient accuracy.Figure2shows the above two network structures.

Figure 2 .

21Figure 2. GS bottleneck and VoVGSCSP network structure.The model is trained on a specially developed small granular dataset.The lightweight structure is shown in Figure 3.

Figure 3 .

22Figure 3.The improved network structure of the YOLOv8n model.

Figure 4 .

23Figure 4. Transmission electron microscopy image-slicing process.The slicing window can be set to 128×128, ensuring an adequate number of grains within each slice for annotation.The overlap ratio of adjacent slices in both height and width directions is set to 0.2.This setting ensures that each slice overlaps 20% of the area with its adjacent slices in both vertical and horizontal directions, allowing objects near the boundaries to be more completely captured and recognized, reducing information loss due to slicing.This study employs image processing techniques to expand the original image data to overcome the limitations of the original dataset and the issue of sample imbalance.By applying random augmentation techniques, including rotating images by 90, 180, and 270 degrees, adjusting brightness and darkness, and performing horizontal and vertical flips, the diversity and quantity of the data are effectively increased.The SAHI library implements image slicing in this study, and the sliced data is labeled.The sliced dataset was processed, and the makesense.aionline annotation tool was used to label the position of the grains in the dataset.The annotation information of each image was stored uniformly in the form of TXT files in YOLO format.Figure5shows the slicing results.

Figure 5 .

24Figure 5. Data slicing results.

3. 4

25Experimental resultsFigure6is an experimental result diagram of the improved YOLOv8 model.These images are marked with the category and location of the detection results.Since the grain outline is circular, we modified the detection frame to match the particles.At the same time, due to the dense distribution of particles, we adjusted the size.The display of detection box labels was canceled, and the red box is the result box predicted by the model.It can be seen from the figure that the test results are accurate.Therefore, the improved YOLOv8 algorithm works well for low-resolution target detection and target images containing small targets.

Figure 6 .

26Figure 6.Recognition results.These images indicate the location of the detected grains, and since the grain profile is round, we modified the detection frame to match the particles.Because of the dense particle distribution, we reduced or eliminated the display of the detection frame labels, and the red circular detection frame is the result box predicted by the model.When the grains are misaligned, there will be a striped arrangement, which leads to a certain degree of missed detection in the algorithm, and the detection results of the grains arranged in the grid are accurate.

Table 1 .

27Grain dataset number.

28This paper presents an improved YOLOv8n grain detection method in response to the accuracy and lightweight requirements under transmission electron microscopy.The Mobilenetv3small network replaces the backbone feature extraction network of YOLOv8n, and a Lightweight module is applied to the feature enhancement network module.While ensuring detection accuracy, it provides a basis for the deployment needs of edge devices; experimental results verify the effectiveness of the new algorithm.The next steps will focus on research into model detection speed and improve detection accuracy, enhancing the model's application value in real-world scenarios.

참고문헌 6건

  1. Analysis of HRTEM images for carbon nanostructure quantification Journal of Nanoparticle Research · Springer Science+Business Media · 2004 10.1007/s11051-004-3724-6
  2. Analysis of nanostructures by magneto-optical images Pattern Recognition and Image Analysis · Pleiades Publishing · 2009 10.1134/s1054661809020175
  3. Determination of the average pore-size and total porosity in porous silicon layers by image processing of SEM micrographs Microporous and Mesoporous Materials · Elsevier BV · 2016 10.1016/j.micromeso.2016.01.007
  4. Tracking the sliding of grain boundaries at the atomic scale Science · American Association for the Advancement of Science · 2022 10.1126/science.abm2612
  5. EfficientNet Apress eBooks · Apress · 2021 10.1007/978-1-4842-6168-2_10
  6. Atomic-scale friction between single-asperity contacts unveiled through in situ transmission electron microscopy Nature Nanotechnology · Nature Portfolio · 2022 10.1038/s41565-022-01126-z