Next Article in Journal
A Case Study of Wind Farm Re-Powering
Previous Article in Journal
Willingness, Proficiency, or Supports? Challenges in Implementing Content and Language Integrated Learning for Taiwan K-12 Teachers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Defect Detection by Analyzing Thermal Infrared Images Covered with Shadows with a Hybrid Approach Driven by Local and Global Intensity Fitting Energy †

Department of Civil and Construction Engineering, Chaoyang University of Technology, Taichung 413310, Taiwan
*
Author to whom correspondence should be addressed.
Presented at the IEEE 5th Eurasia Conference on Biomedical Engineering, Healthcare and Sustainability, Tainan, Taiwan, 2–4 June 2023.
Eng. Proc. 2023, 55(1), 9; https://doi.org/10.3390/engproc2023055009
Published: 28 November 2023

Abstract

:
Defect detection using thermal infrared images is used in nondestructive evaluation and testing because it is easy to use. Thermal infrared images recorded the surface temperatures of the target with a thermal infrared camera. Image segmentation is a technique to group those pixels with similar surface temperatures to form thermal patterns. Defects can be identified by the segmented patterns having different surface temperatures in their neighborhoods. In this study, a hybrid approach combining fitting energy is proposed for describing the contamination illustrated in the recorded surface temperatures and regional constants averaging the surface temperatures of the segmented regions. The numerical implementation is completed by applying the level set functions on an iteration scheme. The initial level sets evolve till a convergence can be reached. The processed results demonstrate that the hybrid approach can be used for defect detection.

1. Introduction

Defect detection is an essential issue in nondestructive testing (NTD). Thermal infrared images are widely employed by identifying the recorded surface temperatures presented in the given thermal infrared images. Defects are usually identified by finding the differences in surface temperatures. However, the recorded surface temperatures presented in the thermal infrared images can be contaminated by sunlight refraction and environmental deficiencies like shadows. Those contaminations make the pixels of the thermal infrared image contain not only the surface temperature but also extra information related to those contaminations.
Removing the intensity inhomogeneity presented in the given thermal infrared images is an important issue in analyzing thermal infrared images. Huang et al. modeled the shadow effects in a multiplicative way, and the shadow effects can be approximated by implementing level sets and iteration schemes [1]. Traditionally, Li et al. introduced the local fitting energy to model the intensity inhomogeneity in their segmentation algorithm [2]. Zhang et al. employed regional standards and regional constants to limit the segmentation regions [3]. Zhang et al. proposed a hybrid approach combining the fitting energy and regional constants to segment the given images [4].
Image segmentation grouping those pixels with similar surface temperatures is employed to identify the defects by finding the differences in the surface temperature. The authors used their algorithms to approximate the intensity inhomogeneity and simultaneously segment the given images. Huang et al. successfully used Zhang’s regional standard deviations and regional constants to locate those potential defects [1]. They employed a hybrid approach combining the local fitting energy and regional parameters (like standard deviations and regional constants) to approximate intensity inhomogeneity. The processed results demonstrated that the proposed hybrid approach can be used for defect detection. The paper is organized as follows. Section 2 introduces the hybrid system, Section 3 presents a series of thermal infrared images of the side wall of the Administration Building, Chaoyang University of Technology, Taichung, Taiwan, as the test target to verify the robustness of the proposed approach, and Section 4 provides the discussions and conclusions.

2. Hybrid System

2.1. Principal Component Analysis

Principal component analysis (PCA) is widely used to analyze a series of images by projecting the original data onto a low-dimension space. The projected data can inherit the major properties from the original data. In doing so, the template image extracted from the projected data can be analyzed instead of analyzing each given image. Suppose a given data matrix M can be decomposed as a low-dimension space L and a sparse space S. Then, M can be given as follows.
M = L + S
Equation (1) needs to satisfy the given condition as follows.
min M L   st . rank L k
where k < rank M . The singular value decomposition (SVD) is applied to find the optimal approximation.

2.2. Hybrid Systems

The proposed hybrid system contains the local fitting energy and regional parameters (including regional standard deviations and regional constants). The local fitting energy assumes that the intensity inhomogeneity illustrated in the given image can be approximated by the local fitting energy [2]. Hence, the local fitting energy can be given as follows [2].
E 1 Φ , F , C = i = 1 4 K σ x y I y f i x 2 M i y d y d x
where K σ x y is Gaussian filter with the parameter σ , I is the given image, f i is the local fitting energy and M i are the combinations of two-level set functions. M i is presented as follows.
M 1 ϕ 1 , ϕ 2 = H ϕ 1 H ϕ 2 M 2 ϕ 1 , ϕ 2 = H ϕ 1 1 H ϕ 2 M 3 ϕ 1 , ϕ 2 = 1 H ϕ 1 H ϕ 2 M 3 ϕ 1 , ϕ 2 = 1 H ϕ 1 1 H ϕ 2
where ϕ 1 , ϕ 2 are level set functions, and H indicates the Heaviside function, shown as follows [5].
H ε x = 1 2 1 + 2 π t a n 1 x ε
where ε > 0.
The image model containing the intensity inhomogeneity is incorporated in a multiplicative way and regional constants. The image model is illustrated as follows [3].
I = i = 1 4 BC i
where B is the intensity inhomogeneity, and C_i is the regional constant. The regional constants are the average values of the segmented regions. Zhang et al. introduced the standard deviations of the segmented regions into the segmentation algorithm, and the algorithm can be presented as follows [3].
E 2 σ , c , B = i = 1 4 K y , x log σ i + I B C i 2 2 σ i 2 M i Φ dx dy
where σ i are the regional standard deviations of the segmented regions. The hybrid system is the linear combination of Equations (3) and (7) and is given as follows.
E = ω E 1 + 1 ω E 2 + ν H ϕ 1 d x   + ν H ϕ 2 d x + μ 1 2 ϕ 1 1 2 d x   + μ 1 2 ϕ 2 1 2 d x
where ω ,   ν ,   and   μ are positive constants.
Then, the local fitting energy can be obtained and given as follows.
f i x = K σ x y I M i Φ K σ x y M i Φ
where ⭙ is the convolution operator. Similarly, the regional constants, regional standard deviations, and the intensity inhomogeneity illustrated in the image can be given as follows.
C i = K σ y , x I B M i Φ d x d y K σ y , x B 2 M i Φ d x d y
σ i 2 = K y , x I B C i 2 M i Φ d x d y K y , x M i Φ d x d y
B = i = 1 4 K σ y , x I M i Φ C i σ i 2 d x d y i = 1 4 K y , x M i Φ C i 2 σ i 2 d x d y
The iteration scheme is applied such that the level set functions can evolve till the convergence is reached. Firstly, several parameters are defined as follows.
e 1 = K σ x y I y f 1 x 2 d y d x e 2 = K σ x y I y f 2 x 2 d y d x e 3 = K σ x y I y f 3 x 2 d y d x e 4 = K σ x y I y f 4 x 2 d y d x F 1 = K y , x log σ 1 + I B x C 1 2 2 σ 1 2 d x d y F 2 = K y , x log σ 2 + I B x C 2 2 2 σ 2 2 d x d y F 3 = K y , x log σ 3 + I B x C 3 2 2 σ 3 2 d x d y F 4 = K y , x log σ 4 + I B x C 4 2 2 σ 4 2 d x d y
The level set functions are rewritten for the time parameter and can be presented as follows.
ϕ 1 t = ω δ ϕ 1 H ϕ 2 e 3 e 1 + ω δ ϕ 1 1 H ϕ 2 e 4 e 2 + 1 ω δ ϕ 1 H ϕ 2 F 3 F 1 + 1 ω δ ϕ 1 1 H ϕ 2 F 4 F 2 + ν δ ϕ 1 d i v ϕ 1 ϕ 1 + μ 2 ϕ 1 d i v ϕ 1 ϕ 1
ϕ 2 t = ω δ ϕ 2 H ϕ 1 e 2 e 1 + ω δ ϕ 2 1 H ϕ 1 e 4 e 3 + 1 ω δ ϕ 2 H ϕ 1 F 2 F 1 + 1 ω δ ϕ 2 1 H ϕ 1 F 4 F 3 + ν δ ϕ 2 d i v ϕ 2 ϕ 2 + μ 2 ϕ 2 d i v ϕ 2 ϕ 2
In doing so, the intensity inhomogeneity can be approximated. Furthermore, the image can be calibrated by removing the intensity inhomogeneity.

3. Materials for Evaluation

A series of thermal infrared images were taken on 30 January 2019. Those thermal infrared images were recorded by NEC InfReC R500Pro, and the image sizes of each recorded image are 480 by 640 pixels. The accuracy of the recorded surface temperature reached 0.01 °C. The test target is the side wall of the Administration Building, Chaoyang University of Technology, Taichung, Taiwan. There were 80 frames recorded by NEC InfReC R500Pro, and the highest surface temperature and the average surface temperature in each recorded thermal infrared image are presented in Figure 1. Figure 2 shows the images recorded by NEC InfReC R500Pro and a digital camera installed on the thermal infrared camera.
Then, PCA was applied to the recorded thermal infrared images, and the first image was extracted from the low-dimension space. The extracted image is illustrated in Figure 3. It is obvious that the information on the surface temperatures was lost because the projected data onto a low-dimension space could not keep the temperature information. However, the thermal patterns remained.
The proposed hybrid system with settings ω = 0.1 , μ = 0.00001 × 256 × 256 , ν = 1 , and t = 0.1 was used on the results by employing PCA. The approximated intensity inhomogeneity is presented in Figure 4. The segmented results are shown in Figure 5. The calibrated image with removing intensity inhomogeneity is illustrated in Figure 6. The convergence is given in Figure 7.

4. Discussions and Conclusions

The proposed hybrid system can segment the given thermal infrared images such that the differences in the recorded surface temperatures can be identified. From Figure 5, it is evident that those segmented regions colored in yellow can be potential defects. Different NDT techniques can be employed to verify the results.
The proposed hybrid system employs the Gaussian function to assume that the intensity inhomogeneity is illustrated at location x and in its neighborhoods. The Gaussian function shows that for those neighborhoods, their influences decrease while their locations are far away from location x. With the specified σ , the Gaussian function with different window sizes is applied in the hybrid system. The window sizes are 5 × 5, 15 × 15, 25 × 25, and 35 × 35. The performance is presented in Table 1. The processing times were calculated by taking the averages after running the same program ten times. The processing time was increased with the window sizes. The estimated intensity inhomogeneity is presented in Figure 8a–d.
The intensity inhomogeneity does exist in the thermal infrared images, and its ranges are in the [0, 1.4]. The small window sizes, like 5 × 5, seem to have bigger ranges than those larger window sizes because the small window sizes give the influences from the neighborhoods such that the ranges are increased. Shadows illustrated in the thermal infrared images have intensity inhomogeneity, and the effects can be approximated. Furthermore, the intensity inhomogeneity can be removed. The estimated intensity inhomogeneity enhances the original image, while the intensity inhomogeneity is less than 1.0. Otherwise, the image is smoothed while the intensity inhomogeneity is larger than 1.0. As for that intensity inhomogeneity equal to 1.0, nothing can be done on the images.
Eventually, the conclusions are given as follows.
(1)
Image segmentation can be employed to find potential defects by segmenting the given thermal infrared images.
(2)
PCA can project the given data onto a low-dimension space such that the properties of the given data can be inherited from the images extracted from the low-dimension space.
(3)
Intensity inhomogeneity does exist, and it needs to be estimated such that the thermal infrared images can be calibrated.
The proposed hybrid system seems to work well in analyzing thermal infrared images. Different methods to remove intensity inhomogeneity will be compared in the future.

Author Contributions

Conceptualizatopn, Y.H. and C.-H.C.; methodology, Y.H. and C.-C.H.; software Y.H.; formal analysis, Y.H. and C.-C.H.; writing original draft preparation, Y.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Huang, Y.; Shih, P.; Hsu, K.T.; Chiang, C.H. To identify the defects illustrated on building facades by employing infrared thermography under shadow. NDT E Int. 2020, 111, 102240. [Google Scholar] [CrossRef]
  2. Li, C.; Kao, C.Y.; Gore, J.C.; Ding, Z. Minimization of Region-Scalable Fitting Energy for Image Segmentation. IEEE Trans. Image Process. 2008, 17, 1940–1949. [Google Scholar] [PubMed]
  3. Zhang, K.; Zhang, L.; Lam, K.M.; Zhang, D. A Level Set Approach to Image Segmentation with Intensity Inhomogeneity. IEEE Trans. Cybern. 2016, 46, 546–557. [Google Scholar] [CrossRef]
  4. Zhang, W.; Wang, X.; You, W.; Chen, J.; Dai, P.; Zhang, P. RESLS: Region and edge synergetic level set framework for image segmentation. IEEE Trans. Image Process. 2019, 29, 57–71. [Google Scholar] [CrossRef]
  5. Vese, L.A.; Chan, T.F. A Multiphase Level Set Framework for Image Segmentation Using the Mumford and Shah Model. Int. J. Comput. Vis. 2002, 50, 271–293. [Google Scholar] [CrossRef]
Figure 1. Surface temperature ranges of recorded thermal infrared images.
Figure 1. Surface temperature ranges of recorded thermal infrared images.
Engproc 55 00009 g001
Figure 2. (a). Thermal infrared image recorded by NEC InfReC R500Pro. (b). The corresponding image was recorded by a digital camera installed on NEC InfReC R500Pro.
Figure 2. (a). Thermal infrared image recorded by NEC InfReC R500Pro. (b). The corresponding image was recorded by a digital camera installed on NEC InfReC R500Pro.
Engproc 55 00009 g002
Figure 3. The first image was extracted from the low-dimension space generated by using PCA.
Figure 3. The first image was extracted from the low-dimension space generated by using PCA.
Engproc 55 00009 g003
Figure 4. An optimal approximation of intensity inhomogeneity after 1000 iterations is presented.
Figure 4. An optimal approximation of intensity inhomogeneity after 1000 iterations is presented.
Engproc 55 00009 g004
Figure 5. Segmented results by employing the hybrid system are presented.
Figure 5. Segmented results by employing the hybrid system are presented.
Engproc 55 00009 g005
Figure 6. A calibrated image with removing the intensity inhomogeneity is shown.
Figure 6. A calibrated image with removing the intensity inhomogeneity is shown.
Engproc 55 00009 g006
Figure 7. Convergence after 1000 iterations is illustrated.
Figure 7. Convergence after 1000 iterations is illustrated.
Engproc 55 00009 g007
Figure 8. Estimated intensity inhomogeneity by employing 5 × 5 window sizes.
Figure 8. Estimated intensity inhomogeneity by employing 5 × 5 window sizes.
Engproc 55 00009 g008
Table 1. Performances of Employing Different Window sizes.
Table 1. Performances of Employing Different Window sizes.
Window SizesProcessing Time (s)
5 × 5256.37
15 × 15334.43
25 × 25457.79
35 × 35610.10
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.

Share and Cite

MDPI and ACS Style

Huang, Y.; Hung, C.-C.; Chiang, C.-H. Defect Detection by Analyzing Thermal Infrared Images Covered with Shadows with a Hybrid Approach Driven by Local and Global Intensity Fitting Energy. Eng. Proc. 2023, 55, 9. https://doi.org/10.3390/engproc2023055009

AMA Style

Huang Y, Hung C-C, Chiang C-H. Defect Detection by Analyzing Thermal Infrared Images Covered with Shadows with a Hybrid Approach Driven by Local and Global Intensity Fitting Energy. Engineering Proceedings. 2023; 55(1):9. https://doi.org/10.3390/engproc2023055009

Chicago/Turabian Style

Huang, Yishuo, Chia-Chien Hung, and Chih-Hung Chiang. 2023. "Defect Detection by Analyzing Thermal Infrared Images Covered with Shadows with a Hybrid Approach Driven by Local and Global Intensity Fitting Energy" Engineering Proceedings 55, no. 1: 9. https://doi.org/10.3390/engproc2023055009

Article Metrics

Back to TopTop