ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
106
Improvement of SUSAN Image Filtering Method for PCB Quality
Inspection
Vladyslav Yevsieiev 1, Svitlana Maksymova 1, Ahmad Alkhalaileh 2
1 Department of Computer-Integrated Technologies, Automation and Robotics,
Kharkiv National University of Radio Electronics, Ukraine
2 Senior Developer Electronic Health Solution, Amman, Jordan
Abstract:
This paper presents an improvement to the SUSAN image filtering method to
improve the quality inspection accuracy of printed circuit boards (PCBs). The problems
of traditional filtering methods are considered and improvements are proposed aimed
at more effectively removing noise and increasing the reliability of defect detection.
The experiments confirm that the modernized SUSAN method provides higher image
quality, which is critical for computer vision systems in Industry 4.0. Application of the
proposed approach helps reduce defect rates and optimize production processes,
improving the overall productivity and reliability of PCB quality control
Key words:
Industry 4.0, Сomputer Vision Systems, PCB, Filtration Methods,
SUSAN.
Introduction
In the era of Industry 4.0, growing demands for the accuracy and efficiency of
automated systems [1]-[13] make research into improving image filtering methods
extremely relevant. Modern computer vision systems [14]-[29] play a key role in
manufacturing processes, especially in the quality control of printed circuit boards
(PCBs). Various methods and approaches can be used here [30]-[35].
High accuracy of defect detection on these boards is impossible without effective
removal of noise in images. However, traditional filtering methods often do not provide
the required level of accuracy, which can lead to missed defects or false positives [36],
[37]. Improvements to the SUSAN image filtering method will significantly improve
the quality of processed images, providing more reliable defect detection. This, in turn,
will improve the reliability and productivity of quality control systems on production
lines. The implementation of the improved SUSAN method in PCB quality control
processes helps reduce defects and optimize production processes, which is an
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
107
important aspect in the context of the development of Industry 4.0. Therefore, this study
aims to improve quality control technology, which is of significant importance to
improve the competitiveness of enterprises and meet high quality standards in the
industry.
Related works
Quality control processes for printed circuit boards are an integral part of the
production stages of such products. It's quite versatile. It seems natural that many
scientific works are devoted to this process. Let us look at a few recent ones.
Perdigones, F. in his work [38] describes the active flow driving methods for lab-
on-PCB devices, while commenting on their main characteristics. Among others, the
methods described are the typical external impulsion devices, that is, syringe or
peristaltic pumps; pressurized microchambers for precise displacement of liquid
samples; electrowetting on dielectrics; and electroosmotic and phase-change-based
flow driving, to name a few.
Authors in [39] note that the quality of the printed circuit board (PCB), an
essential critical connection in contemporary electronic information goods, directly
influences the efficiency and dependability of products. Therefore, any PCB defect
should be identified promptly and precisely to avoid a product failure while it is in use.
Li, Y. T., and co-authors in [40] propose a deep ensemble method to inspect the
PCB solder defects to replace the labor inspection. To achieve a high detection rate and
a low false alarm rate, two distinct detection models, a hybrid YOLOv2 (YOLOv2 as a
foreground detector and ResNet-101 as a classifier) and Faster RCNN with ResNet-101
and FPN are separately trained to obtain a high detection rate result.
Researchers [41] write that although the expansion of electronic devices affects
our lives in a productive way, failures or defects in the manufacturing procedure of
those devices might also be counterproductive and even harmful in some cases. It is
therefore desired and sometimes crucial to ensure zero-defect quality in electronic
devices and their production. They introduce ChangeChip, an automated and integrated
change detection system for defect detection in PCBs, from soldering defects to missing
or misaligned electronic elements, based on Computer Vision and unsupervised
learning.
Paper [42] tries to answer the questions of how machine learning technology can
contribute for better PCB fault detection in the assembly line and at which parts of the
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
108
assembly line this technology has been applied. It also discusses the PCB defect
detection by using machine learning and other approaches.
Scientists in [43] propose an artificial systems, computational experiments, and
parallel execution-based integrated inspection method in cyber–physical–social
systems to realize smart manufacturing.
The study [44] proposes a key technology of PCB defect online detection based
on machine vision. Its experimental results show that the method has high detection
accuracy and short detection time, and can effectively control the stable operation of
the online detection system, which provides a reference for related research in this field.
Defect detection is an essential requirement for quality control in the production
of printed circuit boards (PCBs) manufacturing [45]. The traditional defect detection
methods have various drawbacks, such as strongly depending on a carefully designed
template, highly computational cost, and noise-susceptibility, which pose a significant
challenge in a production environment [45]. The work [45] proposes a deep learning-
based image detection method for PCB defect detection.
Improvement of SUSAN method for writing suppression on PCB boards
Using the SUSAN method is necessary to clean a real image from various types
of noise. This method includes two stages. First, the “noise” pixel is determined (as a
rule, the main difficulty lies in identifying noise). The noise pixel value is then replaced
with a new value, usually calculated from the surrounding pixels.
Typically, when using the SUSAN method, a group of pixels of 5x5 elements is
considered, the central pixel of this matrix is the one being tested.
While developing an automated quality control method, the group of processed
pixels was reduced to 3x3, since when working with small PP elements it is necessary
to filter noise as accurately as possible. Using a 3x3 pixel matrix somewhat slows down
the program, but shows more accurate results necessary for the next stage of outlining
the elements.
During the test, the deviation of the pixel brightness from the average brightness
value is calculated. If the filter “decides” that such a pixel should not exist, its “noisy”
value is replaced with a new one, calculated based on the surrounding pixels.
The criterion for determining noise in this method is to consider n pixels included
in the pixel matrix.
We find the sum of deviations of pixel brightness from the average value.
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
109
1
0
n
i
i
S
(1)
i
i
b
b
;
bi – pixel i value;
1
0
n
i
i
n
b
b
- average brightness value.
Next, the relative contribution of the deviation of the tested pixel to the value
S
is determined:
S
P
k
k
(2)
k
- number of the tested pixel.
It is obvious that
1
1
0
n
i
i
p
.
If in the image fragment under consideration there is a more or less uniform
distribution of pixel brightness, then the value will not differ much from 1/n.
The brightness of a noise pixel differs significantly from the average brightness
of the surrounding pixels.
The size
k
of such a pixel is larger than that of other pixels, which means the
value will exceed 1/n. This is the criterion for a noise pixel.
If
n
P
k
1
, then pixel k is noise.
Once a noise pixel has been identified, you need to decide what to do with it. The
following options are possible here:
- replace the noise pixel with the average value;
- replace the noise pixel with the average value calculated taking into account the
values of all pixels except the noise one.
The improved automated control method uses a different solution to the problem
of identifying a noise pixel, since it allows the most accurate detection of noise pixels.
It is necessary to replace the noise pixel with an average value calculated taking
into account the values of all pixels that do not satisfy the noise selection criterion. This
solution assumes that the fragment under consideration may contain more than one
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
110
pixel that satisfies the “noise” criterion, and they should not be taken into account when
calculating the new value.
The improved method software implementation
The choice of the Python language with the cv2 and numpy libraries to
implement the program with the improved SUSAN method was due to several factors.
Python has powerful and user-friendly image processing libraries such as OpenCV
(cv2) and NumPy that provide high performance and ease of use. OpenCV provides a
wide range of computer vision functions, including image filtering, while NumPy
allows you to work effectively with large data sets. These libraries integrate with
Python, making the code concise and understandable. In addition, an active developer
community and extensive documentation make it easy to develop and maintain code,
providing reliable and fast solutions to image processing problems. The software
implementation of the improved method is presented below:
import cv2
import numpy as np
def susan_noise_reduction(image, threshold=27):
# Getting the image dimensions
rows, cols = image.shape
# Create a copy of the image for processing
processed_image = np.copy(image)
# We go through all the pixels except the borders
for i in range(1, rows - 1):
for j in range(1, cols - 1):
# We get a 3x3 matrix around the central pixel
neighborhood = image[i-1:i+2, j-1:j+2]
# We calculate the average brightness value of neighboring pixels
mean_value = np.mean(neighborhood)
# Calculate the deviation of the central pixel from the average value
deviation = abs(image[i, j] - mean_value)
# If the deviation exceeds the threshold, replace the pixel value
if deviation > threshold:
processed_image[i, j] = mean_value
return processed_image
def main():
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
111
# Loading a grayscale image
image = cv2.imread('input_image.jpg', cv2.IMREAD_GRAYSCALE)
if image is None:
print("Error loading image.")
return
# Using the SUSAN method to remove noise
denoised_image = susan_noise_reduction(image)
# Save the processed image
cv2.imwrite('denoised_image.jpg', denoised_image)
# Showing the original and processed image
cv2.imshow('Original Image', image)
cv2.imshow('Denoised Image', denoised_image)
cv2.waitKey(0)
cv2.destroyAllWindows()
if __name__ == "__main__":
main()
The result of processing the original images of PCB boards using the improved
SUSAN method is presented in Figure 1
a)
b)
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
112
c)
d)
Figure 1:
Result of processing source images of PCB boards
As you can see from Figure 1, the improved filtering method has suppressed the
inscriptions on the board elements, which will make it possible to more accurately
determine the contours of the electrical radio elements.
Conclusion
The study showed that SUSAN's advanced image filtering method significantly
improves the accuracy and efficiency of printed circuit board (PCB) quality inspection.
The proposed improvements made it possible to more effectively remove noise from
images, which is critical for reliable defect detection. Experimental data confirmed that
the modernized method provides higher quality of processed images compared to
traditional approaches. The introduction of the improved SUSAN method into
computer vision systems helps reduce defect rates and increase the productivity of
production processes. Thus, the developed approach is important for the industry,
especially in the context of the development of Industry 4.0, where automation and
accuracy of quality control are key aspects of the competitiveness of enterprises.
References:
1.
Lyashenko. V., & et al. (2023). Automated Monitoring and Visualization
System in Production. Int. Res. J. Multidiscip. Technovation, 5(6), 09-18.
2.
Nevliudov, I., & et al. (2020). Monitoring System Development for
Equipment s
3.
Maksymova, S., & et al. (2024). The Monitoring System Architecture
Development. Journal of Universal Science Research 2 (1), 69-79.
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
113
4.
Nevliudov, I., & et al. (2020). Development of an Architecturallogical
Model to Automate the Management of the Process of Creating Complex
Cyberphysical Industrial Systems. Восточно-Европейский журнал передовых
технологий, 4(3-106), 44-52.
5.
Bondariev, A., & et al. (2023). Automated Monitoring System
Development for Equipment Modernization. Journal of Universal Science Research,
1(11), 6-16.
6.
Невлюдов, І. Ш., & et al. (2023). Моделі та методи кіберфізичних
виробничих систем в концепції Industry 4.0.
Oktan Print, Prague, 321.
7.
Євсєєв, В., & et al. (2020). Технологія процесу керування розробкою
кіберфізичних виробничих систем, ВЧЕНІ ЗАПИСКИ, 2020.
8.
Nevliudov, I., Yevsieiev, V., Lyashenko, V., & Ahmad, M. A. (2021).
GUI Elements and Windows Form Formalization Parameters and Events Method to
Automate the Process of Additive Cyber-Design CPPS Development. Advances in
Dynamical Systems and Applications, 16(2), 441-455.
9.
Ahmad, M. A., Sinelnikova, T., Lyashenko, V., & Mustafa, S. K. (2020).
Features of the construction and control of the navigation system of a mobile robot.
International Journal of Emerging Trends in Engineering Research, 8(4), 1445-1449.
10.
Al-Sharo Y., & et al. (2023). A Robo-hand prototype design
grippingdevice within the framework of sustainable development. Indian Journal of
Engineering, 20, e37ije1673.
11.
Al-Sharo, Y. M., Abu-Jassar, A. T., Sotnik, S., & Lyashenko, V. (2023).
Generalized Procedure for Determining the Collision-Free Trajectory for a Robotic
Arm. Tikrit Journal of Engineering Sciences, 30(2), 142-151.
12.
Lyashenko, V., Laariedh, F., Ayaz, A. M., & Sotnik, S. (2021).
Recognition of Voice Commands Based on Neural Network. TEM Journal:
Technology, Education, Management, Informatics, 10(2), 583-591.
13.
Lyashenko, V., & Sotnik, S. (2022). Overview of Innovative Walking
Robots. International Journal of Academic Engineering Research (IJAER), 6(4), 3-7.
14.
Yevsieiev, V., & et al. (2024). Object Recognition and Tracking Method
in the Mobile Robot’s Workspace in Real Time. Technical Science Research In
Uzbekistan, 2(2), 115-124.
15.
Nikitin, V., & et al. (2023). Traffic Signs Recognition System
Development. Multidisciplinary Journal of Science and Technology, 3(3), 235-242.
16.
Yevsieiev, V., & et al. (2024). The Sobel algorithm implementation for
detection an object contour in the mobile robot’s workspace in real time. Technical
Science Research in Uzbekistan, 2(3). 23-33.
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
114
17.
Lyubchenko, V., Matarneh, R., Kobylin, O., & Lyashenko, V. (2016).
Digital image processing techniques for detection and diagnosis of fish diseases.
International Journal of Advanced Research in Computer Science and Software
Engineering, 6(7), 79-83.
18.
Lyashenko, V., Matarneh, R., & Kobylin, O. (2016). Contrast
modification as a tool to study the structure of blood components. Journal of
Environmental Science, Computer Science and Engineering & Technology, 5(3), 150-
160.
19.
Al-Sharo, Y. M., Abu-Jassar, A. T., Sotnik, S., & Lyashenko, V. (2021).
Neural networks as a tool for pattern recognition of fasteners. International Journal of
Engineering Trends and Technology, 69(10), 151-160.
20.
Гиренко, А. В., Ляшенко, В. В., Машталир, В. П., & Путятин, Е. П.
(1996). Методы корреляционного обнаружения объектов. Харьков: АО
“БизнесИнформ, 112.
21.
Sotnik, S., Mustafa, S. K., Ahmad, M. A., Lyashenko, V., & Zeleniy, O.
(2020). Some features of route planning as the basis in a mobile robot. International
Journal of Emerging Trends in Engineering Research, 8(5), 2074-2079.
22.
Lyashenko, V. V., Babker, A. M. A. A., & Kobylin, O. A. (2016). The
methodology of wavelet analysis as a tool for cytology preparations image processing.
Cukurova Medical Journal, 41(3), 453-463.
23.
Kobylin, O., & Lyashenko, V. (2014). Comparison of standard image edge
detection techniques and of method based on wavelet transform. International Journal,
2(8), 572-580.
24.
Orobinskyi, P., Deineko, Z., & Lyashenko, V. (2020). Comparative
Characteristics of Filtration Methods in the Processing of Medical Images. American
Journal of Engineering Research, 9(4), 20-25.
25.
Mousavi, S. M. H., Lyashenko, V., & Prasath, S. (2019). Analysis of a
robust edge detection system in different color spaces using color and depth images.
Компьютерная оптика, 43(4), 632-646.
26.
Tahseen A. J. A., & et al.. (2023). Binarization Methods in Multimedia
Systems when Recognizing License Plates of Cars. International Journal of Academic
Engineering Research (IJAER), 7(2), 1-9.
27.
Lyashenko, V., Kobylin, O., & Selevko, O. (2020). Wavelet analysis and
contrast modification in the study of cell structures images. International Journal of
Advanced Trends in Computer Science and Engineering, 9(4), 4701-4706.
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
115
28.
Lyashenko, V. V., Babker, A. M., & Lyubchenko, V. A. (2017). Wavelet
Analysis of Cytological Preparations Image in Different Color Systems. Open Access
Library Journal, 4, e3760.
29.
Zeleniy, O., Rudenko, D., Lyubchenko, V., & Lyashenko, V. (2022).
Image Processing as an Analysis Tool in Medical Research. Image, 6(9), 135-141.
30.
Abu-Jassar AT, Attar H, Amer A, et al. Development and Investigation of
Vision System for a Small-Sized Mobile Humanoid Robot in a Smart Environment.
International Journal of Crowd Science, 2024.
31.
Lyubchenko, V., Veretelnyk, K., Kots, P., & Lyashenko, V. (2024).
Digital image segmentation procedure as an example of an NP-problem.
Multidisciplinary Journal of Science and Technology, 4(4), 170-177.
32.
Babker, A. M., Suliman, R. S., Elshaikh, R. H., Boboyorov, S., &
Lyashenko, V. (2024). Sequence of Simple Digital Technologies for Detection of
Platelets in Medical Images. Biomedical and Pharmacology Journal, 17(1), 141-152.
33.
Abu-Jassar, A., Al-Sharo, Y., Boboyorov, S., & Lyashenko, V. (2023,
December). Contrast as a Method of Image Processing in Increasing Diagnostic
Efficiency When Studying Liver Fatty Tissue Levels. In 2023 2nd International
Engineering Conference on Electrical, Energy, and Artificial Intelligence (EICEEAI)
(pp. 1-5). IEEE.
34.
Deineko Zhanna, Shakurova Tetyana, & Lyashenko Vyacheslav. (2023).
Guilloche rosette as an element of building complex geometric structures. Journal of
Universal Science Research, 1(10), 526–534.
35.
Color correction of the input image as an element of improving the quality
of its visualization / M. Yevstratov, V. Lyubchenko, Abu-Jassar Amer, V. Lyashenko
// Technical science research in Uzbekistan. – 2024. – № 2(4). – P. 79-88.
36.
Maksymova, S., & Chala, O. (2023). Defect Engineering: Application in
Automation
System
Components
Production
Technological
Processes.
Multidisciplinary Journal of Science and Technology, 3(3), 243-251.
37.
Yevsieiev, V., & et al. (2023). An Automatic Assembly SMT Production
Line Operation Technological Process Simulation Model Development. International
Science Journal of Engineering & Agriculture, 2(2), 1-9.
38.
Perdigones, F. (2021). Lab-on-PCB and flow driving: A critical review.
Micromachines, 12(2), 175.
39.
Zhou, Y., & et al. (2023). Review of vision-based defect detection research
and its perspectives for printed circuit board. Journal of Manufacturing Systems, 70,
557-578.
ISSN (E): 2181-4570 ResearchBib Impact Factor: 6,4 / 2023 SJIF 2024 = 5.073/Volume-2, Issue-7
116
40.
Li, Y. T., & et al. (2020). Automatic industry PCB board DIP process
defect detection with deep ensemble method. In 2020 IEEE 29th International
Symposium on Industrial Electronics (ISIE), IEEE, 453-459.
41.
Fridman, Y., & et al. (2021). ChangeChip: A reference-based
unsupervised change detection for PCB defect detection. In 2021 IEEE Physical
Assurance and Inspection of Electronics (PAINE), IEEE, 1-8.
42.
Zakaria, S. S., & et al. (2020). Automated detection of printed circuit
boards (PCB) defects by using machine learning in electronic manufacturing: Current
approaches. In Iop conference series: Materials science and engineering, IOP
Publishing, 767(1), 012064.
43.
Wang, Y., & et al. (2022). Integrated inspection on PCB manufacturing in
cyber–physical–social systems. IEEE Transactions on Systems, Man, and Cybernetics:
Systems, 53(4), 2098-2106.
44.
Liu, Z., & Qu, B. (2021). Machine vision based online detection of PCB
defect. Microprocessors and Microsystems, 82, 103807.
45.
Hu, B., & Wang, J. (2020). Detection of PCB surface defects with
improved faster-RCNN and feature pyramid network. Ieee Access, 8, 108335-108345.
