Skip to Content
SensorsSensors
  • Article
  • Open Access

3 December 2025

34 Pages

High-Speed Die Bond Quality Detection Using Lightweight Architecture DSGβSI-SECS-Yolov7-Tiny

,
and
1
Department of Computer Science and Information Engineering, National University of Kaohsiung, Kaohsiung 81148, Taiwan
2
Department of Fragrance and Cosmetic Science, Kaohsiung Medical University, Kaohsiung 80708, Taiwan
*
Author to whom correspondence should be addressed.

Abstract

The die bonding process significantly impacts the yield and quality of IC packaging, and its quality detection is also a critical image sensing technology. With the advancement of machine automation and increased operating speeds, the misclassification rate in die bond image inspection has also risen. Therefore, this study develops a high-speed intelligent vision inspection model that slightly improves classification accuracy and adapts to the operation of new-generation machines. Furthermore, by identifying the causes of die bonding defects, key process parameters can be adjusted in real time during production, thereby improving the yield of the die bonding process and substantially reducing manufacturing cost losses. Previously, we proposed a lightweight model named DSGβSI-YOLOv7-tiny, which integrates depthwise separable convolution, Ghost convolution, and a Sigmoid activation function with a learnable β parameter. This model enables real-time and efficient detection and prediction of die bond quality through image sensing. We further enhanced the previous model by incorporating an SE layer, ECA-Net, Coordinate Attention, and a Small Object Enhancer to accommodate the faster operation of new machines. This improvement resulted in a more lightweight architecture named DSGβSI-SECS-YOLOv7-tiny. Compared with the previous model, the proposed model achieves an increased inference speed of 294.1 FPS and a Precision of 99.1%.

1. Introduction

In the IC packaging and testing process, one of the essential steps is the die bonding process, and it uses epoxy adhesive or solder to attach the die to the lead frame [1]. The die bonding process requires real-time inspection and prediction of its yield, and timely adjustment of machine operating parameters can effectively reduce manufacturing cost losses [2]. Figure A1 illustrates the complete IC packaging and testing process, from wafer thinning to the key steps leading up to final shipment [3]. For the die bonding process, the epoxy resin or solder is dispensed onto the die pad area of the lead frame in a specified pattern, usually in a star shape. The die is removed from the carrier tape and placed onto the dispensed epoxy resin through the pick-and-place process. Die bonding technology is a crucial stage in the front-end semiconductor packaging process that affects the overall yield.
This study acquired image data using a high-resolution image-sensing camera from a well-known semiconductor manufacturer in southern Taiwan to obtain training and testing datasets. We manually labeled the sensed images and analyzed the bonding conditions of each die’s four sides and corners. In other words, this study used this task to classify images into two categories: bond_good (including side_good and corner_good), indicating that the die is correctly attached to the IC substrate that means epoxy resin coating extends beyond the side or corner boundary; and bond_bad (including side_bad and corner_bad), indicating that the die is not correctly attached to the IC substrate that means epoxy resin coating might not extend beyond the side or corner boundary. Finally, this study uses a two-bit hexadecimal code to represent the die bond result, allowing the classification between bond_good and bond_bad categories. Applying this coding method can quickly identify the situation of each die bond. This examination can determine which side or corner of the die doesn’t correctly attach to the IC substrate.
This study aims to improve the previously proposed DSGβSI-YOLOv7-tiny [3]. With the advancement of automated equipment in production lines, a model with faster inference speed is required to achieve real-time detection and online parameter adjustment. First, we did not adopt the latest version of the YOLOv11n model [4] because its number of parameters is four times larger than the proposed model in this study. The model has many parameters, which may not be suitable for typical embedded systems. Furthermore, during the implementation of the lightweight prediction model, the previously proposed DSGβSI-YOLOv7-tiny architecture showed insufficient computational complexity, resulting in a slight decrease in detection accuracy. Therefore, in addition to designing a more lightweight model, we attempted to modify some structures by introducing modules that can enhance target features to improve detection and prediction accuracy and ensure the effectiveness of the die bond process. This study also refers to related methods of the improved YOLOv7-tiny [5,6], exploring their improvements in convolutional computation and the application of various target enhancement modules for lightweight architectures used in fast wafer surface inspection. At the same time, we also refer to the application of YOLOv7-VD in intelligent vehicle vision detection [7] and the practical experience of automatic optical inspection (AOI) and recognition technology in die bond [8].
In the method design, this study proposes several models for performance comparison, including CGSE-YOLOv7-tiny, Mobile-YOLOv7-tiny, ReG-YOLOv7-tiny, DSGReG-YOLOv7-tiny, DSGβSI-YOLOv7-tiny, and DSGβSI-SE-YOLOv7-tiny. Finally, this study selected the model with the best performance, DSGβSI-SECS-YOLOv7-tiny, and converted this trained model into TensorFlow Lite for further integration into the die bond machine control system. The main contribution of this study is to propose an image sensing and object detection system that outperforms previously developed models, effectively identifying the classes of die bond defects (bond_bad). The proposed approach assists engineers in promptly adjusting key machine parameters to reduce the occurrence of electrical failures and resistance abnormalities, improve the die bonding process yield, and significantly reduce manufacturing cost losses.

3. Method

The methodology of this chapter begins with data preparation and preprocessing, followed by model selection and parameter configuration, and then proceeds to model training. After training, various metrics and visualizations can evaluate the models’ performance, such as confusion matrices, precision-recall (PR) curves, and loss plots, to assess whether the trained model has achieved the training objectives.
Subsequently, the trained model tests the models on die bond image recognition, where the test classifies the die bonds as bond_good or bond_bad. Finally, we will compare each model’s performance based on relevant evaluation metrics, allowing for an assessment of the relative effectiveness of the different models.

3.1. Model Enhancement

Although the previously proposed DSGβSI-YOLOv7-tiny model effectively improved performance through the enhanced activation function, its convolutional layers still employ relatively low-complexity structural configurations, making it difficult to surpass the 99% accuracy threshold. To further improve the model’s feature representation capability and detection accuracy, this study incorporates the previously described Squeeze-and-Excitation (SE) Layer into the architecture, as shown in Figure 2.
The core concept of the SE Layer involves a “Squeeze” operation that performs global average pooling to compress channel information, followed by an “Excitation” mechanism that adaptively reweights channel importance. This design strengthens key features while suppressing redundant information, significantly improving the model’s feature selection ability and generalization performance with minimal additional parameters and computational cost.
Within the DSGβSI-YOLOv7-tiny architecture, the SE Layer is inserted into selected critical convolutional modules, enhancing the representation of informative channels during feature extraction. By focusing the network on features highly relevant to the target detection task and reducing sensitivity to background noise, this module improves the accuracy and stability of detection results. Notably, the SE Layer has a limited impact on computational complexity and inference speed, enabling the model to maintain high-speed inference while achieving higher accuracy and better generalization.
Experimental results demonstrate that the combination of DSGβSI activation functions and SE Layer allows the model to efficiently balance accuracy and efficiency when handling complex die bond image inspection tasks. As shown in Figure 13, this further validates the practicality and advantages of the proposed methodology.
Figure 13. DSGβSI-SE-Yolov7-tiny architecture.

3.2. Improving Lightweight Model

To further enhance model performance, particularly in inference speed, the model should be faster than DSGβSI-YOLOv7-tiny. However, improving speed often comes at the cost of reduced accuracy, which represents a key challenge in model design. To address this issue, this study performs architectural fine-tuning based on DSGβSI-YOLOv7-tiny by modifying specific modules. These improvements aim to enhance the model’s accuracy in small-object detection while compensating for the relative limitations of lightweight models in feature extraction and attention mechanisms.
To address these issues, this study proposes a multi-attention fusion design, integrating channel attention, comprising SE-Layer [20] and Efficient Channel Attention (ECA) Net [29], with spatial-channel joint attention (Coordinate Attention) to enhance the model’s capture of critical features. Coordinate Attention preserves precise positional information, enhancing the network’s spatial awareness and localization capability. Simultaneously, this study introduces the Small Object Enhancer as a dedicated strategy to improve the feature representation for small objects and the performance of lightweight models when processing small targets. This approach effectively improves detection performance and accuracy while maintaining the lightweight nature of the model.
The DSGβSI-SECS-YOLOv7-tiny architecture is a fine-tuned version of DSGβSI-YOLOv7-tiny, incorporating the SECS module, which consists of four components: SE Layer, ECA net, Coordinate Attention, and Small Object Enhancer (collectively abbreviated as SECS). SECS simultaneously attends to feature information from multiple perspectives, including channel relationships, spatial positions, and coordinate information. The SE Layer models inter-channel dependencies via a global receptive field and uses adaptive weighting to recalibrate channel importance, thereby enhancing feature representation dynamically.

3.3. Enhancing the Network’s Representation and Reducing the Computation in Excitation

The Squeeze-and-Excitation Layer (SE-Layer) [20] addresses the problem of unequal importance across channels by adaptively recalibrating channel weights, highlighting essential channels. That is, the SE Layer adaptively weights the channel features of the original dimensions to enhance useful features and suppress useless features, thereby improving the network’s representation ability and generalization performance. However, SE Layers tend to have larger parameter counts and higher computational complexity, which motivates the adoption of ECA (Efficient Channel Attention) to replace the part of excitation in the SE-layer. Equation (11) computes the weight of feature maps to increase the weight of important feature maps and decreasing the weight of unimportant feature maps, where z represents the input feature map, s stands for the channel weight vector, W 1 is a fully connected layer weight matrix, passing through a ReLU denoted δ , W 2 is a fully connected layer weight matrix, going through a sigmoid function indicated σ , W implies a linear transformation matrix, and F e x takes a mapping function for the execution block. The ECA module replaces fully connected layers with 1D convolutions, effectively reducing parameter count and improving computational efficiency.
s = F e x z , W = σ g z , W = σ ( W 2 δ ( W 1 z ) )
ECA [29] adaptively weights channel-wise features to enhance informative and suppress irrelevant ones, improving network representation and generalization. The advantage of ECA is that it replaces the fully connected hierarchical FC linear transformation and nonlinear function mapping, as shown in Equation (11), used in the traditional SE layer to calculate the excitation. By implementing channel attention via 1D convolution, ECA achieves a lightweight design, maintaining performance while reducing computational cost. As illustrated in Figure 14, the input tensor first undergoes Global Average Pooling (GAP), followed by a 1D convolution of size k , and finally, an element-wise product with the input tensor produces the output. Here, k is adaptively determined based on the channel dimension C .
Figure 14. ECA-Net architecture.
Lightweight models inherently have restricted feature extraction and attention modeling capabilities, constraining their representational power. Furthermore, conventional attention mechanisms often overlook spatial positional encoding, further limiting performance in localization tasks. Despite these improvements, several challenges remain in designing lightweight models. For instance, the modified DSGβSI-YOLOv7-tiny still exhibits limited accuracy in small-object detection, indicating that detecting small targets remains difficult.

3.4. Adding Spatial Position and Coordination Information

The Coordinate Attention (CA) module [30] addresses the limitation of traditional attention mechanisms that often lose spatial positional information by embedding positional cues into channel attention, thereby capturing both spatial orientation and location-sensitive features. Figure 15 illustrates the operational workflow of Coordinate Attention. First is to take the feature map output from a given model layer as input within the CA module. Global average pooling is then applied along the height and width dimensions separately to extract key features in the vertical and horizontal directions.
Figure 15. Coordinate Attention workflow.
Subsequently, the features from both directions are fused and processed through compression and nonlinear activation operations to reduce the number of parameters while enhancing feature representation. Then, the module splits into two independent attention branches, restores the number of channels, and takes activations corresponding to the vertical and horizontal directions, which capture crucial positional information along the height and width. Finally, these attention maps are applied to the input feature map to reweight and enhance important regions, improving the model’s object localization and feature learning capabilities.
In the Coordinate Attention module, the reduction ratio parameter r plays a critical role in controlling the channel dimensionality reduction. Specifically, CA performs global average pooling along the horizontal and vertical directions of the input feature map, producing two sets of direction-aware feature descriptors. These descriptors are concatenated along the channel dimension and fed into a 1 × 1 convolution layer for channel compression. The reduction factor r determines the degree of this dimensionality reduction. An appropriately chosen r preserves sufficient semantic and directional information while reducing parameter count and computational complexity. If r is too large, excessive compression may impair the model’s ability to capture inter-channel dependencies. Conversely, if r is too small, additional computational overhead is introduced, reducing inference efficiency.

3.5. Improving Small Object Detection

To address the information loss issue for small objects within the feature pyramid, this study develops the Small Object Enhancer (SOE) module to strengthen feature representation for small targets and improve the retention and utilization of fine-grained features. A key advantage of this module is its four-branch parallel processing design, which avoids inter-branch dependencies and fully leverages the parallel computation capabilities of GPUs.
Regarding information preservation, all convolution operations employ appropriate padding to maintain spatial dimensions. They use Residual connections to retain the original feature information, preventing information loss. At the adaptive enhancement level, the network learns to integrate features across different scales and automatically adjusts feature weights for various small objects, thereby enhancing detection performance. Moreover, the module is computationally efficient: it first performs dimensionality reduction to reduce computational load, followed by standard convolution operations, making the overall structure hardware-friendly and suitable for acceleration.
Figure 16 illustrates the operational workflow of the Small Object Enhancer. The Small Object Enhancer module reduces the input feature channels to one-fourth using a 1 × 1 convolution, lowering computational cost while preserving critical information. It then applies 1 × 1, 3 × 3, 5 × 5, and 7 × 7 convolutions to extract detailed information at multiple receptive fields [31]. The module concatenates and fuses these multi-scale features along the channel dimension. Finally, it adds the fused features to the original input via a residual connection, enhancing the representation of small objects and maintaining gradient stability.
Figure 16. Small Object Enhancer workflow.

3.6. Further Lightweight Model

Modifying specific DSGConv modules in DSGβSI-YOLOv7-tiny and integrating the SE Layer, ECA net, Coordinate Attention, and Small Object Enhancer allows the newly proposed model to feature information from multiple perspectives and levels simultaneously. Specifically, it captures inter-channel relationships, spatial positions, and coordinate information, compensating for previous lightweight models’ limitations. This design enables a more efficient and intelligent detection approach, as illustrated in Figure 17.
Figure 17. DSGβSI-SECS-Yolov7-tiny architecture.

3.7. Model Building

This study trained a total of seven models for the die bond inspection task, including CGSE-YOLOv7-tiny, Mobile-YOLOv7-tiny, ReG-YOLOv7-tiny, DSGReG-YOLOv7-tiny, DSGβSI-YOLOv7-tiny, DSGβSI-SE-YOLOv7-tiny, and DSGβSI-SECS-YOLOv7-tiny. For each model, parameters were initially randomly initialized and then iteratively optimized through trial-and-error during training to achieve the best-performing configurations, as summarized in Table 1. Table 1 presents the optimal parameter combinations for each model in this study.
Table 1. Hyperparameters setting.
Figure 18 illustrates the detection workflow, where the model processes an input image to generate predictions of die bond status. The model can distinguish between bond_good and bond_bad targets and identify the die bond type, indicating the adhesion status along the four edges and corners of the die.
Figure 18. Detection and prediction model using Yolo-related models.

3.8. Workflow of the System

This study used 3145 images provided by a semiconductor manufacturer for data preprocessing. The preprocessing workflow included organizing the image dataset and annotating each image using LabelImg, converting the original XML labels into the format required by YOLO. Subsequently, the dataset was split into training, validation, and test sets, with proportions of 70%, 15%, and 15%, respectively.
The training set the number of epochs to 300, the batch size to 32, and resized all input images to 1024 × 1024 pixels. The selected models for training included CGSE-YOLOv7-tiny, Mobile-YOLOv7-tiny, ReG-YOLOv7-tiny, DSGReG-YOLOv7-tiny, DSGβSI-YOLOv7-tiny, DSGβSI-SE-YOLOv7-tiny, and DSGβSI-SECS-YOLOv7-tiny.
After training, this experiment performed model inference and recognition on the test set, and recorded the performance of each model during both training and testing phases to evaluate and compare their effectiveness, as shown in Figure 19.
Figure 19. Workflow diagram.

4. Experimental Results and Discussion

The goal of this experiment is to verify whether the proposed approach, which utilizes image sensing and object detection, can achieve the expected results. The experimental steps included collecting and labeling sensor images, retraining the model, testing it, and finally comparing the proposed approach with several benchmark methods on various performance metrics.

4.1. Experiment Setting

Table 2 lists the hardware environment used in this study, while Table 3 summarizes the software configuration. During the data preprocessing stage, we first annotated each image using LabelImg. The annotation files were then converted from XML format to text files using Jupyter Notebook, splitting the dataset into training, validation, and test sets.
Table 2. Hardware Specifications.
Table 3. Recipe of Packages.
Subsequently, model training and inference were performed in an Anaconda Prompt environment using Python and PyTorch, with TensorBoard employed to monitor the training process. Based on the inference results, Jupyter Notebook classified dies into bond_good (fully bonded) and bond_bad (partially bonded or defective) categories.
Furthermore, the experiment evaluated the performance of multiple models, and the best-performing model was exported in TensorFlow Lite format via Anaconda Prompt, making it suitable for deployment in production line machines.

4.2. Data Collection and Model Evaluation

The experiments were conducted primarily in an Anaconda 3 environment. Initially, the experiment trained the models CGSE-YOLOv7-tiny, Mobile-YOLOv7-tiny, ReG-YOLOv7-tiny, DSGReG-YOLOv7-tiny, DSGβSI-YOLOv7-tiny, DSGβSI-SE-YOLOv7-tiny, and DSGβSI-SECS-YOLOv7-tiny on a PC workstation and subsequently deployed them on a Jetson Nano embedded platform to compare the performance of different models. We deployed the improved models to the Jetson Nano for performance evaluation.
The dataset acquired from a high-resolution image-sensing camera comprised 3145 images from a well-known semiconductor manufacturer in southern Taiwan. Dataset 1, collected by Machine #1, included 2491 images used for training, while Dataset 2, collected by Machine #2, contained 474 images used for testing. This study designed a cross-dataset setup to evaluate the models’ generalization ability.
Each sensed image was labeled for annotation using LabelImg, followed by standard data preprocessing. The experiment split the training dataset into 2204 images (≈70%) for training and 467 images (≈15%) for validation. We tested object detection models on the workstation platform and employed a cross-validation [32] strategy with k = 5 during training and validation to comprehensively assess the YOLO series models’ performance.
The study also recorded the training time for each model using the same training dataset on the workstation. Equation (12) calculates the total inference time I T i for each model on the 474 test images, where i denotes the i -th object detection model, I is the total number of models, x represents the x -th test image, X is the total number of test images, and E I T i Indicates the time required for the model to complete inference on a single image.
I T i = ∑ x = 1 X E I T i ,     w h e r e     i = 1 ,   2 ,   … , I ,     x = 1 ,   2 , … ,   X
In the experimental setup, we set the test image size to 1024 × 1024 pixels, the batch size was 32, and the number of epochs was 300. Table 4 presents the results, where the first row shows the training time required for each object detection model under the same parameter settings, and the second row reports the inference time for completing 474 test images.
Table 4. Training and Inference Times.
The experimental results indicate that the proposed DSGβSI-SECS-YOLOv7-tiny outperforms the other models regarding inference time, demonstrating superior computational efficiency.
Table 5 compares the evaluated object detection models’ parameter counts and FLOPs (Gflops). Before applying DSGConv for model lightweighting, CGSE-YOLOv7-tiny had the most significant parameters, followed by Mobile-YOLOv7-tiny, whose parameter count remained relatively high for a lightweight target. In contrast, the DSGβSI-SECS-YOLOv7-tiny model exhibited the smallest parameter count, demonstrating the most effective lightweight performance.
Table 5. Parameter and flop.
Moreover, ReG-YOLOv7-tiny and its subsequent improved versions, including DSGReG-YOLOv7-tiny, DSGβSI-YOLOv7-tiny, DSGβSI-SE-YOLOv7-tiny, and DSGβSI-SECS-YOLOv7-tiny, all achieved significant reductions in parameter counts compared to CGSE-YOLOv7-tiny and Mobile-YOLOv7-tiny. This result confirms that the proposed modifications successfully compressed the models while improving computational efficiency, meeting the intended design objectives for lightweight and high-performance object detection.

4.3. Experimental Results

  • In Figure 20, the PR (Precision-Recall) curves plot Recall on the X-axis and Precision on the Y-axis, with each point representing the Recall and Precision obtained at different threshold values. The mAP (mean Average Precision) is calculated by summing the AP (Average Precision) values for all classes derived from the PR curve and dividing by the total number of classes.
  • The PR curves show that DSGβSI-YOLOv7-tiny exhibits the lowest precision, achieving only 98.7%. Meanwhile, CGSE-YOLOv7-tiny and Mobile-YOLOv7-tiny, despite having larger parameter scales, maintain at least 99% precision. Interestingly, DSGReG-YOLOv7-tiny, which applies DSGConv, does not outperform ReG-YOLOv7-tiny in terms of precision.
  • Since the experiments primarily focused on the previously proposed DSGβSI-YOLOv7-tiny, we conducted subsequent model refinements. The improved DSGβSI-SE-YOLOv7-tiny showed a noticeable increase in precision. Furthermore, the proposed DSGβSI-SECS-YOLOv7-tiny, designed for more efficient and intelligent detection, achieved an accuracy of 99.1%, matching that of CGSE-YOLOv7-tiny, while offering a more computationally efficient model compared to DSGβSI-YOLOv7-tiny.
  • After completing model training, this study further employed visualization tools to generate Loss plots to observe the convergence behavior during training. Under a batch size of 32, the experiment trained the DSGβSI-SECS-YOLOv7-tiny model for 300 epochs, and Figure 21 shows the resulting Loss plot.
  • During the 300 epochs, the experiment generated six plots to illustrate the model’s training loss and convergence patterns. In Figure 21, the first, second, and third rows correspond to the Localization Loss, Confidence Loss, and Classification/Objectness Loss (representing the matching between predicted boxes and ground truth). Additionally, the first and second columns represent training loss and validation loss, where the abbreviation “val” in the second column indicates the validation set.
Figure 20. The precision-recall curve for the object detection model.
Figure 21. Loss plot of DSGβSI-SECS-Yolov7-tiny.

4.4. Performance Evaluation

  • The execution performance of object detection models can be quantified using Equation (13) to calculate the Frames Per Second (FPS). According to this formula, each object detection model yields a corresponding F P S j , where j denotes the j -th object detection model, and J represents the total number of models. I R A I T j refers to the time required for the j -th model to process a single image under real-time image input conditions.
  • By comparing the F P S j values across different models, one can evaluate their execution speed and performance differences in real-time application scenarios.
I T i = ∑ x = 1 X E I T i ,     w h e r e     i = 1 ,   2 ,   … , I ,     x = 1 ,   2 , … ,   X
  • This study adopts mean Average Precision (mAP) to evaluate object detection accuracy. The calculation involves first computing the Average Precision (AP) for each class and then taking the mean across all classes to obtain the overall mAP.
  • Equation (14) calculates the mAP of different object detection models as m A P l , where L represents the total number of object detection models, l denotes the l -th model for calculating mAP, and C l is the number of classes that the model must recognize. For each class k l , A P k l stands for the Average Precision of that specific class.
  • Using this approach, the experiment can comprehensively compare the precision performance of different models in multi-class recognition tasks.
m A P l = ∑ k l = 1 C l A P k l C l ,     w h e r e   k l = 1 ,   2 ,   … ,   C l ,   l = 1,2 , … , L
  • We compared the performance of different object detection models regarding inference speed and accuracy. This experiment trained all models under the same parameter settings and evaluated them on the same set of 474 test images, with corresponding Precision-Recall (PR) curves plotted and output. The inference speed (FPS) and accuracy (mAP) for each model were calculated according to Equation (13) and Equation (14), respectively. Table 6 summarizes the results.
  • Table 6 compares multiple YOLO variants, including CGSE-YOLOv7-tiny, Mobile-YOLOv7-tiny, ReG-YOLOv7-tiny, DSGReG-YOLOv7-tiny, DSGβSI-YOLOv7-tiny, DSGβSI-SE-YOLOv7-tiny, and DSGβSI-SECS-YOLOv7-tiny, in various performance metrics, including FPS, Precision, Recall, F1-score, and Accuracy. The experimental results indicate that DSGβSI-SECS-YOLOv7-tiny outperforms the other models across all evaluated metrics, demonstrating superior overall performance.
Table 6. Performance indexes.

4.5. Discussion

  • Table 6 compares the performance metrics of various YOLO-series models, with the proposed DSGβSI-SECS-YOLOv7-tiny model emerging as the fastest by achieving an inference speed of 294.1 FPS. Compared to our previously published DSGβSI-YOLOv7-tiny [3], the inference speed in this study increased by 8.4 frames per second. The slowest model was CGSE-YOLOv7-tiny, reaching only 172.4 FPS, indicating room for improvement in speed performance.
  • In terms of classification accuracy, DSGβSI-YOLOv7-tiny had the lowest precision among all models at 98.7%, while Mobile-YOLOv7-tiny and CGSE-YOLOv7-tiny, despite having slower inference speeds, achieved at least 99.0% precision. By applying the SE Layer to DSGβSI-YOLOv7-tiny, the resulting DSGβSI-SE-YOLOv7-tiny increased precision by 0.3% and accuracy by 0.5%, although its FPS decreased by 7.9 frames, failing to meet the target for lightweight design.
  • To address this, the internal architecture of DSGβSI-YOLOv7-tiny was further modified by incorporating SE Layer, ECA net, Coordinate Attention, and Small Object Enhancer modules, resulting in the DSGβSI-SECS-YOLOv7-tiny model. This model demonstrated a clear advantage in inference speed, increasing FPS by 8.4 frames compared to DSGβSI-YOLOv7-tiny, while precision improved from 98.7% to 99.1%, surpassing that of DSGβSI-SE-YOLOv7-tiny. Therefore, DSGβSI-SECS-YOLOv7-tiny offers a balanced combination of high-speed computation and high accuracy, making it the most efficient object detection model in this study.
  • Previous studies have informed the design and optimization of these models. Recognizing the constraints of limited memory and computational resources on embedded devices, Gu et al. [12] proposed using depthwise separable convolutions (DWConv) instead of standard convolutions in ELAN blocks to lower parameters and FLOPs. Gong et al. [14] and Tang et al. [15] also emphasized that small-scale networks such as YOLOv7-tiny and GhostNet can replace conventional convolutions to reduce computational burden. Based on these insights, this study removed redundant blocks from the original YOLOv7-tiny architecture and introduced optimized convolution layers to reduce computation while maintaining reasonable predictive accuracy significantly.
  • Inspired by MobileNetV3 research from Howard et al. [21] and Hua et al. [22], the design principles were applied to form Mobile-YOLOv7-tiny, showing further potential for inference time improvement. Moreover, the advantages of combining YOLOv7-tiny with Ghost modules were highlighted by Gong et al. [14] and Tang et al. [15], while Oniga et al. [18] and Chen et al. [23] contributed CSP structure and reparameterization approaches, leading to the development of CGSE-YOLOv7-tiny, ReG-YOLOv7-tiny, and DSGReG-YOLOv7-tiny in this study.
  • To enhance the performance of -YOLOv7-tiny, the SE module proposed by Zeng et al. [20] was adopted to recalibrate channel feature weights adaptively, emphasizing critical channels. The ECA module by Luo et al. [29] mitigated the additional parameter overhead of SE, and the Coordinate Attention module by Wang et al. [30] improved spatial awareness. The integration of these designs culminated in the DSGβSI -SECS-YOLOv7-tiny model, which offers faster inference and enhanced precision over prior models, making it highly suitable for real-time and high-efficiency die bond inspection applications.
  • A limitation of this study arises when a single image contains multiple die bonds of different types. In such cases, the model may fail to learn the specific features for each bond type effectively during training, potentially compromising inference accuracy. An ideal solution would involve cropping multi-die images into single-die bond images for training and inference, which could improve performance but significantly increase preprocessing time. Additionally, although DSGβSI-SECS-YOLOv7-tiny performs exceptionally in inference speed, its precision is still 99.1%, and its accuracy is 98.5%. Pursuing even higher precision and accuracy may negatively impact inference speed.
  • Furthermore, GPU performance is critical to precision, accuracy, and inference speed. This study used an NVIDIA GeForce RTX 4070 Ti. Supposing we can adopt an NVIDIA RTX 4090 with 24 GB GDDR6X memory or higher capability ones. By supporting larger-scale deep learning models, this embedded platform offers significant benefits for high-throughput, real-time die bond detection and prediction applications.

5. Conclusions

  • This study focused on enhancing the original DSGβSI-YOLOv7-tiny image sensing and object detection model in terms of speed and accuracy. With the upgrading of automated production equipment and the emergence of more powerful image sensing and object detection methods, the proposed approach streamlines redundant convolutional modules in DSGβSI-YOLOv7-tiny, and incorporates modules—namely the SE Layer, ECA Net, Coordinate Attention, and Small Object Enhancer—designed to improve object detection. These improvements allowed the model to maintain high-speed inference while improving precision, enabling real-time and high-efficiency die bond detection.
  • Moreover, we can rapidly deploy the proposed method onto factory production equipment to perform real-time classification for each die bond image and monitor the occurrence frequency of defective patterns. This method provides actionable feedback for adjusting critical machine parameters, enhancing production yield, and effectively reducing manufacturing costs. It improves production efficiency and significantly minimizes production losses for semiconductor production lines.
  • People can extend the proposed method to broader application domains, including chip contour inspection, street scene analysis, operator personal protective equipment monitoring, and production line product inspection. In terms of performance enhancement, future work may involve further integrating more advanced YOLO variants, such as YOLOv13, while pursuing lightweight and optimized network architectures to improve object detection and image recognition capabilities.
  • Regarding methodological improvements, future developments could explore multi-modal data fusion, edge computing deployment, adaptive reinforcement learning, data augmentation, and model compression and acceleration, to meet the stringent requirements of real-time performance and reliability in smart factories. Ultimately, the proposed approach advances die bond inspection and contributes significantly to Industry 4.0 smart manufacturing and high-precision image recognition applications.

Author Contributions

B.R.C. and W.-S.C. conceived and designed the experiments; H.-F.T. collected the dataset and proofread the manuscript; and B.R.C. wrote the paper. All authors have read and agreed to the published version of the manuscript.

Funding

The Ministry of Science and Technology Council fully supports this work in Taiwan, Republic of China, under grant numbers NSTC 114-2221-E-390-003 and NSTC 114-2622-E-390-002.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The Sample Programs used to support the findings of this study can be found at the following link: https://drive.google.com/open?id=16ew1qH6AuyC-jq8UZbNCeM3e5irJANOT&usp=drive_fs (accessed on 16 October 2025).

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Figure A1. IC packaging and testing process.
Figure A2. Sample images of die bond categories.
Figure A3. Die bond recognition.
Figure A4. Judgment of categories with bond_good or bond_bad.
Figure A5. Any combination of the bond detection of the die’s sides and corners.
Table A1. The type of die bond.
Figure A6. Prediction classification with the type of die bond.

References

  1. Seon, K. Introduction to Semiconductor Manufacturing and FA Process. In Proceedings of the IPC Technical Seminar, Seoul, Republic of Korea, 13 September 2017; pp. 1–20. [Google Scholar]
  2. Huang, H.; Tang, X.; Wen, F.; Jin, X. Small Object Detection Method with Shallow Feature Fusion Network for Chip Surface Defect Detection. Sci. Rep. 2022, 12, 3914. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Chang, B.R.; Tsai, H.-F.; Chang, W.-S. Accelerating Die Bond Quality Detection Using Lightweight Architecture DSGβSI-YOLOv7-Tiny. Electronics 2024, 13, 4573. [Google Scholar] [CrossRef] [Scilit]
  4. Appannavar, A.; Alawandi, S.; Dalabanjan, N.Y.; Vedamuthu, R.; Mallibhat, K. Automated Student Activity Recognition Using YOLOv11n. In Proceedings of the 2025 5th International Conference on Intelligent Technologies (CONIT), Hubbali, India, 20–22 June 2025; pp. 1–8. [Google Scholar]
  5. Hong, S.; Park, D. Differential Image-Based Scalable YOLOv7-Tiny Implementation for Clustered Embedded Systems. IEEE Trans. Intell. Transp. Syst. 2024, 25, 16036–16047. [Google Scholar] [CrossRef] [Scilit]
  6. Huang, W.-E.; Huang, Y.-S.; Jou, S.-J. A Deep Learning Accelerator for Modified YOLOv7-Tiny with Shortcut-Aware Layer Fusion. In Proceedings of the IEEE International Symposium on Circuits and Systems (ISCAS), London, UK, 25–28 May 2025; pp. 1–5. [Google Scholar]
  7. Li, C.; Tan, G.; Wu, C.; Li, M. YOLOv7-VD: An Algorithm for Vehicle Detection in Complex Environments. In Proceedings of the 2023 4th International Conference on Computer, Big Data and Artificial Intelligence (ICCBD+AI), Guiyang, China, 15–17 December 2023; pp. 743–747. [Google Scholar]
  8. Alam, L.; Kehtarnavaz, N. A Survey of Detection Methods for Die Attachment and Wire Bonding Defects in Integrated Circuit Manufacturing. IEEE Access 2022, 10, 83826–83840. [Google Scholar] [CrossRef] [Scilit]
  9. Boustedt, K.; Karnfelt, C. GHz Flip Chip Interconnect Experiments. In Proceedings of the 9th International Symposium on Advanced Packaging Materials: Processes, Properties and Interfaces, Atlanta, GA, USA, 24–26 March 2004; pp. 267–271. [Google Scholar]
  10. Liao, P.Y.; Ho, I.; Lai, D.; Wang, Y.-P.; Chen, K.; Shih, H.-C.; Chen, D.-L.; Tamg, D. Die Bonding Solution for Flip Chip-Chip Scale Package—DIC (Digital Image Correlation) and Shadow Moiré Application. In Proceedings of the 2022 IEEE 72nd Electronic Components and Technology Conference (ECTC), San Diego, CA, USA, 31 May–3 June 2022; pp. 182–186. [Google Scholar]
  11. Tsao, P.-H.; Voloshin, A.S. Manufacturing Stresses in the Die due to the Die-Attach Process. IEEE Trans. Compon. Packag. Manuf. Technol. Part A 1995, 18, 201–205. [Google Scholar] [CrossRef] [Scilit]
  12. Gu, B.; Wen, C.; Liu, X.; Hou, Y.; Hu, Y.; Su, H. Improved YOLOv7-Tiny Complex Environment Citrus Detection Based on Lightweighting. Agronomy 2023, 13, 2667. [Google Scholar] [CrossRef] [Scilit]
  13. Li, M.; Wang, X.; Zhang, H.; Hu, X. An Improved YOLOv7-Tiny-Based Algorithm for Wafer Surface Defect Detection. IEEE Access 2025, 13, 10724–10734. [Google Scholar] [CrossRef] [Scilit]
  14. Gong, H.; Ma, X.; Guo, Y. Research on a Target Detection Algorithm for Common Pests Based on an Improved YOLOv7-Tiny Model. Agronomy 2024, 14, 3068. [Google Scholar] [CrossRef] [Scilit]
  15. Wu, Y.; Tang, Y.; Yang, T. An Improved Nighttime People and Vehicle Detection Algorithm Based on YOLOv7. In Proceedings of the 3rd International Conference on Neural Networks, Information and Communication Engineering (NNICE), Gaungzhou, China, 24–26 February 2023; pp. 266–270. [Google Scholar]
  16. Lee, J.H.; Kong, J.; Munir, A. Arithmetic Coding-Based 5-Bit Weight Encoding and Hardware Decoder for CNN Inference in Edge Devices. IEEE Access 2021, 9, 166736–166749. [Google Scholar] [CrossRef] [Scilit]
  17. Chang, B.R.; Tsai, H.-F.; Syu, J.-S. Implementing High-Speed Object Detection and Steering Angle Prediction for Self-Driving Control. Electronics 2025, 14, 1874. [Google Scholar] [CrossRef] [Scilit]
  18. Bacea, D.-S.; Oniga, F. ECF-YOLOv7-Tiny: Improving Feature Fusion and the Receptive Field for Lightweight Object Detectors. In Proceedings of the 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), Tucson, AZ, USA, 28 February–4 March 2025; pp. 1577–1586. [Google Scholar]
  19. Song, Y.; Li, M.; Qiu, X.; Du, W.; Feng, J. Full-Time Infrared Feature Pedestrian Detection Based on CSP Network. In Proceedings of the 2020 International Conference on Intelligent Transportation, Big Data & Smart City (ICITBS), Vientiane, Laos, 11–12 January 2020; pp. 516–518. [Google Scholar]
  20. Zeng, R.; Liu, Y.; Jin, Y. YOLO-CBS: A Model for Fast Object Detection Based on YOLOv7-Tiny. In Proceedings of the 2025 2nd International Conference on Smart Grid and Artificial Intelligence (SGAI), Changsha, China, 21–23 March 2025; pp. 1521–1524. [Google Scholar]
  21. Howard, A.; Sandler, M.; Chu, G.; Chen, L.-C.; Chen, B.; Tan, M.; Wang, W.; Zhu, Y.; Pang, R.; Vasudevan, V.; et al. Searching for MobileNetV3. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea, 27 October–2 November 2019; pp. 1314–1324. [Google Scholar]
  22. Hua, L. Motor PCB Defect Detection Algorithm Based on Improved YOLOv7-Tiny. In Proceedings of the 2024 6th International Conference on Electronic Engineering and Informatics (EEI), Chongqing, China, 28–30 June 2024; pp. 272–275. [Google Scholar]
  23. Chen, C.; Guo, Z.; Zeng, H.; Xiong, P.; Dong, J. RepGhost: A Hardware-Efficient Ghost Module via Re-Parameterization. arXiv 2022, arXiv:2211.06088. [Google Scholar]
  24. Yang, X.; Guo, Y. Apple Leaf Disease Detection Algorithm Based on Improved YOLOv7-Tiny. In Proceedings of the 2023 3rd International Conference on Electronic Information Engineering and Computer Science (EIECS), Changchun, China, 22–24 September 2023; pp. 521–524. [Google Scholar]
  25. Sun, Y.; Gao, H.; Shi, S.; Zhao, S. Based on Low-Level Feature Enhancement for Mining Conveyor Belt Foreign Object Detection Algorithm. In Proceedings of the 2024 International Conference on Image Processing, Computer Vision and Machine Learning (ICICML), Shenzhen, China, 22–24 November 2024; pp. 1514–1522. [Google Scholar]
  26. Yang, Z.; He, D.; Jiang, C. Road Target Detection Method Based on Improved YOLOv7-Tiny. In Proceedings of the 2025 6th International Conference on Computer Engineering and Application (ICCEA), Hangzhou, China, 25–27 April 2025; pp. 1–4. [Google Scholar]
  27. Sai, T.A.; Lee, H. Weight Initialization on Neural Network for Neuro PID Controller—Case Study. In Proceedings of the 2018 International Conference on Information and Communication Technology Robotics (ICT-ROBOT), Busan, Republic of Korea, 6–8 September 2018; pp. 1–4. [Google Scholar]
  28. Wong, K.; Dornberger, R.; Hanne, T. An Analysis of Weight Initialization Methods in Connection with Different Activation Functions for Feedforward Neural Networks. Evol. Intell. 2024, 17, 2081–2089. [Google Scholar] [CrossRef] [Scilit]
  29. Luo, P.; Wang, Z.; Wang, T.; Shen, J. SAR Ship Target Detection Algorithm Based on Improved YOLOv7. In Proceedings of the 2023 China Automation Congress (CAC), Chongqing, China, 17–19 November 2023; pp. 2070–2074. [Google Scholar]
  30. Wang, E.; Su, R.; Huang, B.; Lin, J. Enhancing YOLOv7-Based Fatigue Driving Detection through the Integration of Coordinate Attention Mechanism. In Proceedings of the 2023 IEEE International Conference on Image Processing and Computer Applications (ICIPCA), Changchun, China, 11–13 August 2023; pp. 725–729. [Google Scholar]
  31. Yang, C.; Wang, H.; Lei, Z.; Wang, Z. Multi-Exposure Image Fusion via Attention-Guided Multi-Scale Detail Enhancement. In Proceedings of the 2023 4th International Conference on Information Science and Education (ICISE-IE), Zhanjiang, China, 15–17 December 2023; pp. 80–83. [Google Scholar]
  32. Ioffe, S.; Szegedy, C. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. arXiv 2015, arXiv:1502.03167. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.