Sensors 2015, 15, 12474-12497; doi:10.3390/s150612474 OPEN ACCESS sensors ISSN 1424-8220 www.mdpi.com/journal/sensors Article Ultrasonic Sensor Signals and Optimum Path Forest Classifier for the Microstructural Characterization of Thermally-Aged Inconel 625 Alloy Victor Hugo C. de Albuquerque 1,*, Cleisson V. Barbosa 1, Cleiton C. Silva 2, Elineudo P. Moura 2, Pedro P. Rebouças Filho 3, João P. Papa 4 and João Manuel R. S. Tavares 5 1 Programa de Pós-Graduação em Informática Aplicada, Universidade de Fortaleza, Fortaleza, Ceará 60811-905, Brazil; E-Mail: cleissonvb@gmail.com 2 Departamento de Engenharia Metalúrgica e de Materiais, Universidade Federal do Ceará, Fortaleza, Ceará 60455-900, Brazil; E-Mails: cleiton@ufc.br (C.C.S.); elineudo@ufc.br (E.P.M.) 3 Programa de Pós-Graduação em Ciências da Computação, Instituto Federal de Educação, Ciência e Tecnologia do Ceará, Fortaleza, Ceará 61939-140, Brazil; E-Mail: pedrosarf@ifce.edu.br 4 Departamento de Ciência da Computação, Universidade Estadual Paulista, Bauru, São Paulo 17033-360, Brazil; E-Mail: papa@fc.unesp.br 5 Instituto de Ciência e Inovação em Engenharia Mecânica e Engenharia Industrial, Departamento de Engenharia Mecânica, Faculdade de Engenharia, Universidade do Porto, Porto 4200-465, Portugal; E-Mail: tavares@fe.up.pt * Author to whom correspondence should be addressed; E-Mail: victor.albuquerque@unifor.br; Tel.: +55-85-3477-3268. Academic Editor: Vittorio M.N. Passaro Received: 26 April 2015 / Accepted: 20 May 2015 / Published: 27 May 2015 Abstract: Secondary phases, such as laves and carbides, are formed during the final solidification stages of nickel-based superalloy coatings deposited during the gas tungsten arc welding cold wire process. However, when aged at high temperatures, other phases can precipitate in the microstructure, like the γ′′ and δ phases. This work presents an evaluation of the powerful optimum path forest (OPF) classifier configured with six distance functions to classify background echo and backscattered ultrasonic signals from samples of the inconel 625 superalloy thermally aged at 650 and 950 ◦C for 10, 100 and 200 h. The background echo and backscattered ultrasonic signals were acquired using transducers with frequencies of 4 and 5 MHz. The potentiality of ultrasonic sensor signals combined with the OPF to characterize the microstructures of an inconel 625 thermally aged and in the as-welded Sensors 2015, 15 12475 condition were confirmed by the results. The experimental results revealed that the OPF classifier is sufficiently fast (classification total time of 0.316 ms) and accurate (accuracy of 88.75% and harmonic mean of 89.52) for the application proposed. Keywords: ultrasonic sensor; metric function; optimum path forest; signal classification; microstructural characterization 1. Introduction Nb-bearing nickel-based superalloys, in particular inconel 625, has greater applicability, especially in highly corrosive environments, such as the ones in the oil and gas industry, than many other nickel (Ni)-based alloys. Nowadays, this alloy is used widely in the weld overlay of the inner surface of carbon steel pipes and other equipment of the offshore industry. However, further studies about this alloy, such as the one presented in this paper, are necessary to increase the overall knowledge of its properties. During the welding of an inconel 625 alloy, there is an intensive microsegregation of some elements, such as niobium (Nb) and molybdenum (Mo), within the interdendritic regions, causing the supersaturation of the liquid metal with these chemical elements in its final stage of solidification, which results in the precipitation of the Nb-rich laves phase and MCprimary carbides of type NbC [1,2]. This segregation and precipitation of the secondary phases can change the mechanical properties of the alloy and decrease its resistance to corrosion [3]. In addition, the Nb-rich laves phase has a low melting point that causes an increase in the temperature solidification range, making the alloy susceptible to solidification cracking [4]. Nondestructive testing based on ultrasonic signals has been commonly used to study this kind of material. For example, in the evaluation of the embrittlement kinetics and elastic constants of the SAF2205 duplex stainless steel for different aging times at 425 and 475 ◦C [5], spinodal decomposition mechanism study on the UNSS31803 duplex stainless steel [6], evaluation of grain refiners’ influence on the mechanical properties in a CuAlBe shape memory alloy [7], sigma phase detection on a UNS S31803 duplex stainless steel [8], characterization of welding defects [9], characterization of cast iron microstructure [10], pattern classification in nondestructive materials inspection [11], nondestructive characterization of microstructures and determination of elastic properties in plain carbon steel [12] and in the phase transformations evaluation on a UNS S31803 duplex stainless steel based on nondestructive testing [13]. In this sense, the main goal of this work was to evaluate the influence of six distance functions, mainly the Euclidean, chi-square, Manhattan, Canberra, squared chi-squared and Bray–Curtis distances, in the performance of the recent and powerful optimum path forest classifier to detect/identify, based on ultrasonic signals, the kinetics of the phase transformation of a Ni-based alloy thermally aged at 650 and 950 ◦C for 10, 100 and 200 h, as well as in the as-welded state. Raw data ultrasonic background echo and backscattered signals acquired with two types of transducers (4 and 5 MHz) were used. For a further assessment of the distance functions’ performance, the results obtained were very satisfactory Sensors 2015, 15 12476 in terms of accuracy rate, train and test times, confusion matrix and harmonic mean between specificity and sensitivity, which makes the results presented and discussed of noteworthy value. The OPF has been evaluated in different applications as, for example, EEG signal classification for epilepsy diagnosis [14], ECG arrhythmia classification [15], automatic characterization of graphite particles in metallographic images [16], intrusion detection in computer networks [17], aquatic weed automatic classification [18] and spoken emotion recognition [19], among others. 2. Materials and Methods This section describes the experimental work done for the temperatures of 650 and 950 ◦C for 10, 100 and 200 h, as well as for the as-welded state. First, the ultrasonic sensor signals acquired and the related fundamentals are introduced. Afterwards, the optimum path forest classifier used to classify the ultrasonic signals is presented. Finally, the metrics used in the classifier evaluation are described. 2.1. Ultrasonic Sensor Signals After the welding and preparation of the samples, described in detail in [20,21], the background echo and backscattered signals were acquired to evaluate the effect of aging on the inconel 625 alloy samples. The pulse echo technique and the direct contact method were used to collect the background echo and backscattered ultrasonic signals [8]. All of the signals were obtained using commercial nondestructive testing (NDT) ultrasonic transducers: one of 4 MHz (Krautkramer, Model MB4S, Lewistown, PA, USA) and another one of 5 MHz (Krautkramer, Germain, Model MSW-QCG). The choice of these transducers was based on the authors previous experience in this kind of NDT and knowledge concerning the material under study [22–25]. In fact, Albuquerque et al., in [21], showed that these frequencies revealed were to be the most adequate to analyze the material under study, as a transducer with a frequency of 10 MHz completely attenuated the ultrasonic signal; and one with a frequency of 2.25 MHz led to an adjacent echo that overlapped the signal extensively, seriously compromising the accuracy of the results. As a coupling material, the SAE 15W40 lube oil was used for the longitudinal measurements. A Krautkramer ultrasonic device (GE Inspection Technologies, Lewistown, PA, USA, model USD15B) was used connected to a 100-MHz digital oscilloscope (Tektronix, Portland, OR, USA, model TDS3012B), which transmitted the ultrasonic signals to a computer for processing, according to a sampling rate of 1 GS/s. The microstructural characterization was carried out using the OPF classifier configured with the Euclidean, chi-square, Manhattan, Canberra, squared chi-squared and Bray–Curtis distances on the original background echo and backscattered signals. In order to assure statistical significance, 40 signals were acquired for each sample, and each background echo signal had 10,000 points; i.e., a total of 400,000 points was attained, and each backscattered signal had 500 points, resulting in a total of 20,000 points for this study. Albuquerque et al., in [21], did not consider echo signals without preprocessing, claiming that the large number of points made their use impracticable. However, this problem has been overcome, because the classifier used here is faster and more powerful, which is one of the important contributions attained with this work. Nunes et al. [20] compared the OPF, configured only with the Euclidean distance, Sensors 2015, 15 12477 with the support vector machine and Bayesian classifiers and showed its superiority in terms of the processing time and accuracy rate. Thus, another contribution of this work was to analyze the influence of six distance functions on the OPF’s performance to detect/identify microstructural changes from the ultrasonic signals due to aging. 2.2. Optimum Path Forest Classifier The OPF classifier models the problem of pattern recognition as a graph partition in a given feature space. The nodes are represented by the ultrasonic signal feature vectors, and all pairs are connect by edges, defining a complete graph. This kind of representation is straightforward, given that the graph does not need to be explicitly represented, and has low memory requirements. The partition of the graph is carried out by a competition process between some key samples, known as prototypes, which offer optimum paths to the remaining nodes of the graph. Each prototype sample defines its optimum path tree (OPT), and the collection of all OPTs defines the optimum path forest, which gives the name to the classifier [26]. The OPF can be seen as a generalization of the well-known Dijkstra algorithm to compute optimum paths from a source node to the remaining ones [27]. The main difference relies on the fact that OPF uses a set of source nodes, i.e., the prototypes, with any path-cost function. In the case of Dijkstra’s algorithm, a function that summed the arc-weights along a path was applied. For OPF, a function that gives the maximum arc-weight along a path is used [26]. Let Z = Z1 ∪Z2 be a dataset labeled with a function λ, in which Z1 and Z2 are, respectively, training and test sets, and let S ⊆ Z1 be a set of prototype patterns (ultrasonic signal feature vectors). Essentially, the OPF classifier builds a discrete optimal partition of the feature space, such that any sample s ∈ Z2 can be classified according to this partition. This partition is an optimum path forest (OPF) computed in