A text-mining approach to assess the failure condition of wind turbines using maintenance service history
Abstract
Peer reviewed
Full text
energies Article A Text-Mining Approach to Assess the Failure Condition of Wind Turbines Using Maintenance Service History Alejandro Blanco-M. 1, Pere Marti-Puig 1, Karina Gibert 2,* , Jordi Cusidó 1,3 and Jordi Solé-Casals 1,* 1Data and Signal Processing Group, University of Vic—Central University of Catalonia, 08500 Vic, Catalonia, Spain; [email protected] (A.B.-M.); per[email protected] (P.M.-P.); [email protected] (J.C.) 2 Knowledge Engineering and Machine Learning Group at Intelligent Data Science and Artificial Intelligence Research Center (KEMLG-at-IDEAI), Polytechnic University of Catalonia, 08034 Barcelona, Catalonia, Spain 3Smartive-ITESTIT SL, 08225 Terrassa, Catalonia, Spain *Correspondence: [email protected] (K.G.); [email protected] (J.S.-C.); Tel.: +34-93-4017-323 (K.G.); +34-93-8815-519 (J.S.-C.) Received: 2 April 2019; Accepted: 16 May 2019; Published: 23 May 2019 Abstract: Detecting and determining which systems or subsystems of a wind turbine have more failures is essential to improve their design, which will reduce the costs of generating wind power. Two of the most critical failures, the generator and gearbox, are analyzed and characterized with four metrics. This failure analysis usually begins with the identification of the turbine’s condition, a process normally performed by an expert examining the wind turbine’s service history. This is a time-consuming task, as a human expert has to examine each service entry. To automate this process, a new methodology is presented here, which is based on a set of steps to preprocess and decompose the service history to find relevant words and sentences that discriminate an unhealthy wind turbine period from a healthy one. This is achieved by means of two classifiers fed with the matrix of terms from the decomposed document of the training wind turbines. The classifiers can extract essential words and determine the conditions of new turbines of unknown status using the text from the service history, emulating what a human expert manually does when labelling the training set. Experimental results are promising, with accuracy and F-score above 90% in some cases. Condition monitoring system can be improved and automated using this system, which helps the expert in the tedious task of identifying the relevant words from the turbine service history. In addition, the system can be retrained when new knowledge becomes available and may therefore always be as accurate as a human expert. With this new tool, the expert can focus on identifying which systems or subsystems can be redesigned to increase the efficiency of wind turbines. Keywords: wind turbine; service history; classification; fault diagnosis; renewable energy; text mining 1. Introduction Nowadays, the fastest growing renewable source of energy in the world is wind energy [ 1 ]. This technology makes an important contribution to meeting the ambitious climate and energy objectives for 2020 established by the European Commission [ 2 ]. One of the requirements is to ensure that at least 20% of electricity production is from renewable energy sources [ 3 ]. Although nowadays wind energy technology is already contributing to solving serious environmental problems such as climate change, it is anticipated that this role will be accentuated in the following years. It is calculated that the operation and maintenance costs of wind farms represent a range between 10–35% of total Energies 2019,12, 1982; doi:10.3390/en12101982 www.mdpi.com/journal/energies
Energies 2019,12, 1982 2 of 20 generation costs [ 4 ]; therefore this is one of the major issues concerning wind energy performance and exploitation. Being able to reduce these costs would have a direct impact in the increment of wind farm competitiveness, accelerating the transition from fossil fuels to other type of sources, cleaner and more sustainable [ 5 ]. The wind sector has an annual profit shortfall due to the malfunctioning of wind turbines. The amount of lost profits is estimated at less than one billion euros in Europe, and more than double for the rest of the world. In addition, if operating costs are added to the calculation, the loss can increased by a factor of three. Therefore, operation and maintenance (O&M) improvement tasks are crucial for all the actors involved, taking into account the current economic situation of the sector, without generation bonuses and also with the sales price policy of generation restricted by the new regulations (see [6,7]). A major task of the operation and maintenance process is to ascertain the possible causes of a failure leading to the stopping of production of the wind turbine. This is a key step in reducing inactivity of wind turbines or in identifying critical failures as soon as they appear. Therefore, the set of methodologies and tools that assist this procedures can be very beneficial for wind farm proprietors, not only for the sake of increasing energy production and availability, but also in terms of reducing costs. The first operation and maintenance processes were corrective, which means that after the turbines failed and faults were detected, maintenance was undertaken. This is a costly approach due to lack of planification. Conversely, preventive maintenance attempts to repair or replace components before they break down, but this is costly because maintenance tasks are performed more often. A good trade-off between the two strategies mentioned above is what we call condition-based maintenance (CBM), which relies on ongoing surveillance and detection of emerging faults and determining the necessary maintenance tasks before a fault occurs [ 8 ]. This is accomplished using condition monitoring systems (CMS), which entail the acquisition of data from sensors, its preprocessing, the posterior evaluation and finally the interpretation of the result. This is performed by means of ‘the supervisory control and data acquisition data’ (SCADA) systems. In order to obtain reliable information on possible breakdowns, it is necessary to continuously monitor and diagnose the state of health of the wind turbines. At the same time, it is necessary to develop preventive maintenance procedures to avoid unexpected problems in the wind turbines For this reason, many efforts are being made to improve the performance of the wind farms through the use of SCADA data which, in modern wind turbines, collects hundreds of signals (temperatures in several points, pressures, gearbox lubrication system data, currents, voltages, etc.). The complete SCADA data sets will frequently include the average values of 10 minutes or even 5 min windows, and also some statistics (min, max, std). A fundamental way to better understand the failures that occur in the wind turbine components as a previous step to improve designs, is the study of the resonant coupling of energy that occurs between coherent turbulent fields (phenomena that often occurs during at nighttime), and the natural vibrational modes of a turbine rotor blade, and how this resonance induces a flow or flux of turbulent kinetic energy into the blade structure which is propagated into the remainder of the turbine. That amount of energy must be dissipated by the turbine structure causing a decreasing of component lifetimes and reliability [ 9 ]. To better understand this phenomena, computationally intense numerical simulations were performed in [ 9 – 11 ], providing relevant insights about different component fatigue failures, as for instance those occurring in the drivetrain bearing. The presented approach differs from the general approach, and is inspired by the fact that today, expert knowledge still plays a fundamental role in this field. For example, when a wind farm that (mainly) contains a large number of turbines begins to be monitored, an important task is to identify a reduced set of turbines that are representative of the entire wind farm, for detailed inspection of these rather than having to spend time on all the turbines. To do this, we initially need to be able to group the turbines according to their condition. That task, assigned to an human expert, consist on analyzing the O&M historic data (written annotations made by maintenance personnel during their interventions on wind turbines). However, exhaustive and manual exploration of turbine variables becomes an unfeasible task, mainly because each manufacturer reports events in their own way, and
Energies 2019,12, 1982 3 of 20 the large number of manufacturers and potential events is too large. This means that, for example, the names of the variables and the physical location of the sensors may differ from one manufacturer to another. Failure events are also different for each manufacturer. For example, there is no standard code that refers to a particular kind of malfunction, such as a gearbox malfunction Human experts can only focus on a few turbines, as the amount of data to be processed and the significant number of working conditions would make it impossible to follow all of them comprehensively. When reviewing the repair and maintenance actions of a turbine, this expert may discover, for example, that a machine shortens oil change cycles and, as a consequence, may infer a possible failure of a subsystem related to that observation. In this paper, guided by the way experts proceed in their work, the underlying hypothesis is that automatic text mining can be used as an emerging and complementary tool to predict possible failures in the automatic processing of O&M information and could be extended to all machines. To test this hypothesis, the wind turbines on which a component replacement has been performed are selected. Particularly, two kinds of components have been investigated: (i) the generator subsystem (with brushes included) and (ii) the gearbox (gearbox bearing also included). This selection is in the interest of anticipating the detection of failures of this type, given their economic impact on the operation of the wind farm’s performance. So, in the first step, all the O&M records of machines that have undergone one of these replacements are divided into two parts, one containing the data from the O&M records before the action (replacement) and the other after it. On the other hand, 10-min measurements of wind speed and energy generated, retrieved from the SCADA system, are also used to verify that the power curve (power vs. wind speed) before and after component substitution actually manifests an observable variation in performance. From these power curves, which indicate the relationship between wind energy and the electrical energy generated, four metrics are extracted that will allow comparing the performance of the turbine before and after the change of components. This study attempts to automate the exploration of O&M documents and to quantify the frequency of the words that appear before and after the event (substitution/repair), in order to construct an ontology that links the presence of a set of words with the appearance of failure. The proposed method applies text pre-processing to select the word roots, when possible. This procedure applies to all datasets that will be used for the training of a decision tree (DT) and a Random Forest (RF) based classifier, where classes are tagged with ‘before’ and ‘after’ labels, corresponding to the information obtained pre- and post-event, respectively. Although text mining and ontology development has been used in various industrial applications such as in post-project reviews [ 12 ], knowledge discovery from the diagnosis data in the automotive sector [ 13 ] or the analysis of sustainability trends in the process industries [ 14 ], there is very little work done in the wind energy field [ 15 ] and as far as we know, the most significant works in this context is the semi-automatic construction of an ontology from Wikipedia articles [ 16 ], the accident analysis carried out in [ 17 ] and, the dictionary learning approach used to monitoring the train bearings of wind turbines in [ 18 ]. Other significant contributions in semantic networks and text mining in the industrial context can be found in [19,20]. The structure of the paper is the following: Section 2provides a description of the data, pre-processing, text-mining, performance metrics and model creation strategies. In Section 3the experimental work is presented, together with the discussion within the context of the presented research in a real wind farm. Finally, Section 4is devoted to the conclusions of the proposed methodology and outlines future work in this area. 2. Materials and Methods Two main aspects are discussed here: firstly, how to test and demonstrate that there is a change in the performance of the turbine after a maintenance intervention (performance metrics) and secondly, how to analyze the words used by the maintenance personnel, in order to discover which words are the important ones (text mining).
Energies 2019,12, 1982 4 of 20 2.1. Performance Metrics Power curves are a well-known method to determine the wind turbine health status [ 21 ]. In the present work, a logistic regression method was used as it generated low mean squared error (MSE) and mean absolute error (MAE) results compared to other methods [ 22 ]. The logistic regression was fitted to the data points with the tuning of three parameters that later on were used as metrics to compare the turbine behaviour before and after the failure. The performance metrics was carried out in the following way: • Download the wind and power features, separately for each turbine. Then, a discretization was applied to the wind values with a precision of 0.1 m/s. • Find the logistic function that better fits the cloud of points (wind speed, power). Two R functions were used (SSlogis and NLS) to derive the three parameters of the curve in a MSE framework. These three parameters were the horizontal asymptote (Asym), the inflection point (Xmid) and the step of the curve. 2.2. Data The data used in this work was the maintenance service history completed by the maintenance personnel. The maintenance service history is referred as work order (WO). Because there was no specific procedure on how to report all maintenance work, the available text was in a free format and can contain many errors (spelling, punctuation, etc.). An important pre-processing step needed to be carried out. The process was as follows: 2.2.1. Work Order Download All the work orders were downloaded from the maintenance database. These orders have the following characteristics: •The hour and date were instantaneous. • The WO id identified each intervention. There can be several lines for each WO id because each one was duplicated for each material used and for each comment entered in the system. •The “wo_class” tag identified a class of intervention categorized in one of the major failures. • The important files were: work_description (indicates in a extended way the work done), material_code (indicates the material used), problem_found (indicates what happened), problem_source (indicates the origin of the problem), problem_solution (indicates the adopted solution ). To build the input dataset, sentences with the same work order ID were added to a common paragraph (register entry/table row) separated by a punctuation mark. This was repeated for each work order id. 2.2.2. Common Errors A dictionary type file (“common_errors.csv”) was loaded, where misspelled words or words with different endings were mapped to a common or correct word, for example: aaverias → averiar, acaba/acababado → acabar, amarilloblanco → amarillo blanco, anntirobo → anti robo, etc. This file was used later in the text mining process. 2.2.3. Removing Words Different word files were loaded, containing words to be deleted, such as personal names, places names or words with no effect on the model such as bar, comer (eat), etc.
Energies 2019,12, 1982 5 of 20 2.3. Building the Training and Testing Dataset The training dataset was built by taking 60% of turbines with WO. The remaining 40% of turbines with WO and the remaining without WO were assigned to the testing dataset. For each turbine, and having all the N registers sorted by date, the process was as follows: •The register in which the repair intervention started is labelled as “F” register. •The register in which the repair intervention ended is labelled as “FF” register. •The registers 1 to F-1 are labelled as “1”, indicating ‘before failure repair’ events. •The The registers FF+1 to N are labelled as “0”, indicating ‘after failure repair’ events. 2.4. Text Mining Text mining can be applied using different methods and procedures [ 23 ]. An interesting procedure to process general text was described in [ 24 ], while [ 25 ] presented another strategy for social and economics text processing. These two methods were used in the present work, after adapting them to the wind turbines scenario. With the training and testing datasets built, a corpus was created using all the documents (WO inputs). The following steps were applied to it: 1. The dots and commas were eliminated: removePunctuation 2. The numbers were deleted: removeNumbers 3. The empty spaces at the begining and at the end were eliminated: stripWhitespace 4. All text was converted to lowercase: tolower 5. All the brackets such as ’()’, ’’ or ’[]’ were deleted : bracketX 6. All the words loaded in the step Section 2.2.3, together with the STOP words were eliminated: removeWords stopwords (for the Spanish language, ’ES’) 7. Common errors loaded in the step Section 2.2.2 were repaired. 8. All the accents were cleared, changing the vowel with accent for the equivalent without accent. 9. All the text was stemmed using the function STEMDOCUMENT of the package TM, using the parameters for the Spanish language (’ES’) 2.4.1. Document Term Matrix Finally, the document term matrix was created independently for the training and testing datasets. This matrix contains only “1” or “0”, where each column was a word and each row was a sentence. If the sentence i contained the word of column j , the cell (i , j) was set to “1”, otherwise it was set to “0”. 2.4.2. Word Clouds A word cloud [ 26 ] is a useful tool to analyze and find out the most common words in a document which are summarized in a simplified figure. Gan et al. [ 26 ] considered the word clouds as the most versatile methods over many document visualization tools. The generated figures used the size and the color to indicate clusters of words with almost the same frequencies. The larger a word was, the more frequently it was found in the document. The colors were used to identify the clusters. Word clouds were also helpful to compare between datasets or conditioned datasets with specific labeling that separated the document entries in different groups. In this case, we have selected Ian Fellows’ word cloud package [27], available through the CRAN project. 2.5. Modelling Two family models have been used: DT and RF. For both of them, different models have been derived from different frequency ranges. For each model, different optimization parameters, described in each section, have been applied. In all the cases, the parameter to be optimized is the ROC curve. These ranges established the minimum and maximum number of occurrences that a word must have throughout the training text to be taken in the model. Different experiments have been done
Energies 2019,12, 1982 6 of 20 with different ranges from the least common words to the most common words. For each of those ranges, four metrics have been calculated to characterize the models: the accuracy (classification rate), the F-score, the kappa and the area under the curve (AUC). These models have a 2D matrix as input, and a binary vector as output, indicating to which class the input belongs to. The 2D input matrix contains the maintenance interventions/service logs, organized as follows: the different words roots are in columns and the sentences in rows. The binary output vector contains a “0” or a “1” for the maintenance interventions after (“0”) or before (“1”) the turbine system is repaired. 2.5.1. Decision Trees DT-based models have been optimized by grid searching for “CP” complexity from 0 to 0.05 in 0.005 increments. A 10-fold cross validation was applied 10 times to each model. The models were tuned using the CARET library tuning tools through a grid search and with the ROC curve as a metric. Data was normalized by applying z-score before feeding the model. The tree was drawn in order to determine which words have had more importance in the different decisions. 2.5.2. Random Forest For the RF-based models, a five-fold cross-validation has been used, with a maximum number of 50 trees. Additionally, the model was tuned using grid search on the variable mtry, which controlled the number of random variables used for each tree. The importance given by the RF model to each word was extracted and used to obtain the relevant words. Because a stemming process was first applied, the original word has been retrieved when plotting it. 3. Results and Discussion 3.1. Performance Metrics Panel (a) of Figure 1shows the scatter-plot of the wind speed versus power of the generator before (red points) and after (blue points) failure for turbine 153. The horizontal axis corresponds to the wind speed (m/s) and the vertical axis corresponds to the power (Kw). Over the scatterplot, logistic functions (sigmoids) that best fit the data points before (red) and after (blue) the maintenance intervention were superimposed. The numerical values of the parameters of the logistic functions, before the intervention, were: (i) Asym = 1498 Kw, Xmid = 8.7 and steep = 1 / 0.63. After the intervention, all the parameters changed to: (i) Asym = 1531 Kw, Xmid = 8.8 and steep = 1 / 0.61. The area under the curve (AUC) was 8.9 before the intervention and 9.642 after the intervention, indicating that the performance of the turbine increased after the failure was repaired. Panel (b) of Figure 1, corresponds to the zoomed part, and shows that the blue line is mostly above the red line, indicating that after repair the performance of the turbine increases.
Energies 2019,12, 1982 7 of 20 0 500 1000 1500 0 5 10 15 20 0 500 1000 1500 0 5 10 15 20 (a) (b) Figure 1. Scatter-plot of the wind speed versus power of the generator before and after failure for turbine 153. Logistic functions (sigmoids) that best fit the data points before (red) and after (blue) the maintenance intervention are superimposed. Panel ( a ) shows the entire power curve, while panel ( b ) shows the critical part where maximum power is expected. Figure 2shows the differences of the power generated in KW, obtained as the subtraction between the power after the maintenance operation and the power before the maintenance. It is observed that in the range where the turbine operated at maximum efficiency (which corresponds to the zoomed part of Figure 1, between 13 and 25 m/s of wind speed), the turbine had higher energy production after repair (positive values of the subtraction curves), whatever the means (panel (a)) or the medians (panel (b)) are subtracted. 0 100 200 15 20 25 m/s KW (a) -10 0 10 20 15 20 25 m/s KW (b) Figure 2. Curve of the difference of the generated power after maintenance minus before maintenance. Horizontal axis is the wind speed in m/s, vertical axis is the energy production in KW. Panel ( a ) is calculated by subtracting the mean values, while panel ( b ) is calculated by subtracting he median values. 3.2. Word Clouds These are the results of applying the word cloud algorithm to the dataset that contains all the turbines sentences before and after the generator was changed on Figure 3. Also the same is done for the case of the gearbox change in Figure 4. Both algorithms were configured to analyze the top 200 words. It was important to note that the most common word root was prevent that stands for prevention and the same happened for the word root cambi that means change, so in both cases (before and after), there was a regular preventive change in the turbine, mainly produced by scheduled maintenance.
Energies 2019,12, 1982 8 of 20 realiz prevent cambi fall pal mayor pern arranc motor revis manten defect reductor maquin cimentacion filtr azul roll cabl rearm local hac romp fren crowb prob brid exterior ccu yaw basur bols mecan sistem reinici rotor aceit sustitu papel interior sub hor sensor din cliii equival ingetur sac temperatur activ elev guant jub nitril polv tall descarg fixol secant air gras men junt falt gir bot dispar tarjet caus conect fas coloc posicion valvul termic dej determin encontr orden tuerc buj cerr desengras except gale ith observ par vastag hidraul pasiv alimentacion grup subestacion veloc ver baj bidon brugarol fibr hdk solt negr recuperacion rel segu superior tog numer pod tornill util bien presion cin estacion instal marcador verd canal emergent error fuchs fug multiplexor rotat comunic exces fuent orientacion repar acumul lem nacell aliment induct limpi rellen traser bonfiglioli dar general van electr grafic marc parec rob mas vibracion cal ingeteam internorm proporcional anti augment correct detect mont volv escobill klub leer philips recog retorn ups armari bnla cfren codific fluorescent imb intens lamp modul pitch reserv rosc trap varistor antec bem carcas ceplattyn coron cub desc extractor grad kluberplex mach mfi nominal puent radiador silicagel sond xmm harting (a) prevent cambi realiz fall mayor pal defect cabl filtr revis maquin arranc multipl gras junt par tornill coloc hac rearm motor operari brid local roll din acumul bot pantall aceit fren bomb yaw prob presion air sistem bols basur azul papel rotat hidraul reinici caus part pern ccu segu determin sub bien baj rel romp polipast valvul celd sustitu correct orden repar cimentacion encontr tall koshkil dej grup dispar termic trabaj secant guant pendient jub nitril polv mecan rodriguez superior manten enriqu electr pod cin interior reductor gir ingetur desengras klub cerr fug descarg rellen general tub tom men fuchs instal arandel contact limpi sensor cliii eje volv buj fas elev bloqu induct antec hor bem kluberplex desplaz sac negr tiemp pasiv rotor canal display armari traser aliment equival observ lent ver orientacion temperatur qued pitch exterior ups recuperacion emili tuerc disc recog trap emergent crowb electron puert igbt esp retorn tarrag manuel apret estacion fixol mont mahl sml anti xmm garraf internorm mal conect rob nitrogen tres quit ceplattyn mas muestraanalit alimentacion carg mfi mov activ ingeteam zing blanc skf lgwm terminal leaz falt philips lamp caj escobill bas tension gimenez lopez bidon brugarol hdk tarjet rodamient jon peq (b) Figure 3. Word clouds with the top 200 most frequent words for the generator before ( a ) and after ( b ) the replacement. Notice that the most important words (the biggest ones) have changed. For example, the word realiz (to do something) is no longer the most important in ( a ); or the word manten (maintenance) appears before but not after. listv aaveri abrirlistv averiarlistv abiert absolut abrazader abren abrir abrim abre averi abiertolistv abril abrazaderalistv absolutoanterior realiz absolutolistv pern prevent anteriorlistv fall cambi mayor anterior pal defect abrirxlistv filtr mlistv interior nºlistv revision rotor azul roll coloc part cimentacion mecan march cabl abiertoxlistv motor bols basur maquin trabaj awlistv brid sig dinlistv ccu extraccion gras exterior papel arranc menor tall cliii ingetur falt fixol guant jub nitril polv rearm termic air abiertokg secant bot elev fren revis extra aceit hac local tuerc prueb yaw abrazaderaxlistv abrirkg rot sistem absoluto manten multipl nuev absolutowlistv desengras sac instal puert abrirml tarjet abrirl antirob dispar induct bidon brugarol hdk pued nºos resete arandel armari fas par elistv rel sensor encuentr verd encod general marcador orientacion tlistv celd fluorescent fuchs observ philips alimentacion descarg fug aerogener top caus cerroj escobill subestacion determin callistv eje ground lent lamp rob salt cin except gale ith posicion prev rellen abrirº cierr comunicacion klub negr presion tornill bem gelt igbts kluberplex abrircm glistv junt limpiez plistv pon recog temperatur trap vari absolutoxlistv apriet correspondient donaldson final nºs result abrazaderaf grad proteccion trampill variador abiertomm abrirkw averiar averiarvg dclistv desc internorm lelistv mfi optimiz plc potenciometr silicagel sobretension zing (a) listv aaveri abrirlistv averiarlistv abiert absolut abrazader abrir abren abrim abre abril abiertolistv abrazaderalistv averi absolutoanterior absolutolistv prevent mayor anteriorlistv awlistvrealiz anterior fall cambi filtr abrirxlistv defect gras celd pal maquin mlistv operari abrirkg rearm bot repar local motor brid abiertoxlistv air hac revision dinlistv roll reductor march aceit yaw coloc fren fug bols basur multipl papel cabl alimentacion revis descarg sistem tornill mand pendient dispar ccu termin klub resete caus azul abrircm crowb cin plc emili gimenez subestacion determin junt prueb tarrag tub abrirml activ recuperacion orientacion sig fuchs plistv part tall abiertokg arandel bem kluberplex secant top manuel line trabaj sac guant jub nitril polv qued instruccion tras antec dlistv segun sustitucion pued par puert avisp desengras gener glistv rotat megu negr netpolistv pasiv polimetronetmglistv tom esp limpiez armari pod vien abrirmm trap asi absolutoxlistv electr abrazaderaxlistv averiardxlistv fas averiar retorn escobill mahl manten sml elistv bien rel termic dej donaldson ing presion quit serv contactor muestrasanalit peq averiarvg baj ceplattyn ingeteam internorm tuerc abiertomm din disc enlistv mfi deteccion eje lgwmlistv skf abrazaderaaz khlistv koshkil lelistv netdmlistv pastill quitagras schunk zing menor sustitu elev mecan encuentr falt puls rot ups tap coron lent sensor acumul montaj (b) Figure 4. Word clouds with the top 200 most frequent words for the gearbox before ( a ) and after ( b ) the replacement. In this case, even if the most important words are similar, the clusters have changed. However, both word clouds seem similar, and further analysis has to be done in order to obtain clear differences. 3.3. Model Results Two different models were applied to both generator and gearbox failures. Table 1summarizes the metrics results for both DT and RF models. The same is presented in Table 2for the gearbox failures models. These results show that it was possible to determine the state of the turbine simply by capturing the combination of words that are present in the event of a fault. Depending on the type of model, the sequence or combination of words that are present in the unhealthy turbine was shown by printing the decision trees; in others evaluating their importance. Both methods achieved an adequate level of detection, but the most important point was which combination of words the expert should
Energies 2019,12, 1982 9 of 20 take into account when analyzing new turbines or creating a supervised classification problem with healthy and unhealthy turbines using analog SCADA data. 3.3.1. Decision Trees Generator Failures The classification results are shown in Figure 5. Numerical values are presented in the Table 1. We observe that the best range that a word has to be in the training dataset to be chosen to train the model (minimum and maximum frequency) is from 1% to 90%. A similar behavior (and therefore the same range) was observed for the kappa (panel (c)) and F-score (panel (b)) values. On the contrary, the AUC (panel (d)) got the best result in the range from 1% to 90%. The decision tree is shown in the Figure 5for the best range from 1% to 90%. This figure shows the decisions of the different levels of the sub-trees in boxes. These boxes were colored green when the probability of the class “before the failure” won, and blue when the probability class “after the failure” won. Each one of these boxes shows the probability of each class and the percentage of observations included in this node. In this case, the last sheet on the left side was selected if the text subestacion was smaller than 11. The winning class was “before the failure” and therefore the box was green. This node contains 83% of the observations, which is a large proportion of them. Table 1. Classification metrics results for generator failures with Decision Trees and Random Forest models. Min. frequency % and max. frequency % columns indicate the minimal and maximal frequency that a word has to be in the training dataset to be chosen to train the model. Model Type Min. Freq. % Mx. Freq. % Accuracy F-Score AUC Kappa DT 0 5 0.772 0.866 0.755 0.159 0 10 0.782 0.87 0.757 0.226 1 5 0.772 0.866 0.755 0.159 1 10 0.782 0.870 0.757 0.226 1 20 0.790 0.873 0.746 0.302 1 50 0.792 0.873 0.741 0.321 1 90 0.793 0.873 0.743 0.326 5 10 0.768 0.862 0.705 0.172 5 20 0.781 0.866 0.714 0.288 5 50 0.785 0.869 0.727 0.291 5 90 0.783 0.866 0.716 0.310 10 50 0.776 0.864 0.710 0.244 10 90 0.775 0.861 0.696 0.287 40 90 0.760 0.858 0.674 0.145 60 90 0.748 0.852 0.617 0.082 RF 0 5 0.9391 0.9686 0.950 0.008 0 10 0.9390 0.9685 0.924 0.007 1 5 0.9393 0.9687 0.841 0.023 1 10 0.9390 0.9685 0.750 0.019 1 20 0.9392 0.9686 0.788 0.025 1 50 0.9388 0.9685 0.869 0.001 1 90 0.9389 0.9685 0.969 0.003 5 10 0.9388 0.9684 NA NA 5 20 0.9388 0.9684 NA NA 5 50 0.9388 0.9684 NA NA 5 90 0.9388 0.9684 NA NA 10 50 0.9388 0.9684 NA NA 10 90 0.9388 0.9684 NA NA 40 90 0.9389 0.9685 0.969 0.003 60 90 0.9388 0.9684 NA NA
Energies 2019,12, 1982 16 of 20 01510 40 60 510 20 50 90 81.5 82.0 82.5 83.0 83.5 minfreq maxfreq (a) 01510 40 60 510 20 50 90 89.8 90.0 90.2 90.4 90.6 minfreq maxfreq (b) Min. Value Max. Value 01510 40 60 510 20 50 90 0 5 10 15 20 minfreq maxfreq (c) 01510 40 60 510 20 50 90 74 76 78 80 82 84 minfreq maxfreq (d) Figure 11. Summary of the results for the gearbox failures using a random forest model. The vertical axis indicates the minimal frequency % of a word in the training dataset in order to be selected by the model. The horizontal axis indicates the maximum frequency %. Each of the panels show a different metric for the same experiment; ( a ) shows the accuracy %, ( b ) the F-score in %, ( c ) the kappa in % and ( d ) indicates the AUC. Empty blocks (ranges) are values that cannot be calculated from a prediction with a unique class output. As can be seen, it is important to use the information available in the service history logs. This allows us to know what interventions and repairs have been carried out. The analysis of this information implies that several pre-processing steps must be performed. Among them, pre-cleaning the text was key. This cleaning step was a process that must include technical language. Note that this step depended on the wind turbine model, as many words were names of particular parts or components of a particular model. This implies that models built for one type of machine and wind turbine may not work properly for another type of turbine. Because the text used by maintenance personnel does not come from a set of predefined phrases, the complexity of the problem increases. This is why this first approach to text mining has required a
Energies 2019,12, 1982 17 of 20 great deal of effort. A dictionary of more than 600 terms has been built to replace the misspelled terms used by maintenance personnel with the correct ones. Another important issue has been the search for the roots of the words. The available library (TM) did not include the treatment of technical words. Therefore, a replacement text list (a dictionary with the root of the technical words) has been added to the library. With the previous pre-processing steps, it was possible to derive successful classification models using simple and traditional methods. abb abeil abiertokglistv abiertomm abiertonm abrirgr absolutohlistv acumul anduez anomali arrastr avis bidon abrazaderaaz ascensor automat alistv accion blistv abrazaderal abrirº averiarxlistv abiertov aklistv bas bien antecferod antirob averiardxlistv altemp absolutoº abrirkw anteriorlalistv anteriorº baliz bellevill abrirp apunt abrirv aerosol ahor adhes acces asi abrazaderaf apriet aerogener abrirl absoluto arranc 0 20 40 60 abb abeil abiertokglistv abiertomm abiertonm abrirgr absolutohlistv acumul anduez anomali arrastr avis bidon abrazaderaaz ascensor automat alistv accion blistv abrazaderal abrirº averiarxlistv abiertov aklistv bas bien antecferod antirob averiardxlistv altemp absolutoº abrirkw anteriorlalistv anteriorº baliz bellevill abrirp apunt abrirv aerosol ahor adhes acces asi abrazaderaf apriet aerogener abrirl absoluto arranc 0 20 40 60 abb abeil abiertokglistv abiertomm abiertonm abrirgr absolutohlistv acumul anduez anomali arrastr avis bidon abrazaderaaz ascensor automat alistv accion blistv abrazaderal abrirº averiarxlistv abiertov aklistv bas bien antecferod antirob averiardxlistv altemp absolutoº abrirkw anteriorlalistv anteriorº baliz bellevill abrirp apunt abrirv aerosol ahor adhes acces asi abrazaderaf apriet aerogener abrirl absoluto arranc 0 20 40 60 (a) (b) Figure 12. ( a ): Top 100 random forest variable importance for the gearbox failures. The model was generated with words that have a frequency from 1% to 50%. This range is a good trade-off according to the metrics of Figure 11. The top most and less frequent words can be seen in panel ( b ), delimited by an orange and a red square, respectively. The RF model selected the words arranc, which is the root of the word arrancar (to start), and absoluto (absolute), as the most important ones. 4. Conclusions In this work, a study based on the text-mining of work orders has been carried out to detect, by means of machine-learning tools, the essential words used by maintenance personnel in the maintenance/repair of turbines. It has been shown that when a turbine has a fault in the generator system and it has been repaired, there is a difference in the amount of wind production. This difference is shown in the power curve before and after the maintenance intervention. This difference is captured with the parameters of the sigmoid curve that best fit the cloud of points. These metrics are useful for selecting the turbine that has the greatest significant difference before and after the failure. Having
Energies 2019,12, 1982 18 of 20 access to the machine’s service reports which contains the description of the maintenance and/or repair carried on, having a real difference in turbine’s performance and being able to quantify and compare it, further analysis has been carried out using natural language processing techniques to train the DT and RF model with the maintenance logs of this turbine. The pre-processing of the text of the machine’s service reports allows the generation of classification models that obtain accuracy and F-score rates above 90% in several cases. This shows that the classifier has extracted the important words that characterize a failure case. We observe that the more important the difference in these metrics, the better the results obtained for the text classification model. Through the analysis of the relevance in the DT and RF models, it is possible to find which word/words indicate that a turbine has a failure. This allows to automate the detection of interventions in new turbines to know their state from start. So far, this is done manually by a human expert who looks for words and combinations of them that are key in maintenance and/or repair interventions. This is tedious work which can be biased by the expert judgement and/or affected by other non-technical aspects. Now, with the proposed system, this can be done using the classification model, and therefore we can know when a turbine has a failure through this text mining process, which applies a data labelling before and after a specific sequence or combination of words. A number of future works have been identified, and there is much room for improvement, because there are several critical steps that have a significant impact on the final result. For the pre-processing step, a better sentence analysis can be done; a syntax analysis step can be implemented to identify the technical domain nouns and verbs and create the model with them. In addition, the construction of the document term matrix can be improved by generating a combination of two, three, or “n” terms at the expense of computational time. In addition, a third dimension can be added indicating the type of term (verb, noun, adverb, etc.) since in the stemming process this information can be lost. Author Contributions: Conceptualization, A.B.-M., P.M.-P., K.G. and J.S.-C.; methodology, A.B.-M. and K.G.; software, A.B.-M. and K.G.; validation, P.M.-P., K.G. and J.S.-C.; formal analysis, A.B.-M. and K.G.; investigation, A.B.-M., P.M.-P. and J.S.-C.; resources, J.C.; data curation, A.-B.M. and J.C.; writing—original draft preparation, A.-B.M., P.M.-P. and J.S.-C.; writing—review and editing, A.B.-M., P.M.-P. and J.S.-C.; visualization, A.B.-M., K.G. and J.S.-C.; supervision, K.G. and J.S.-C.; project administration, J.C. and J.S.-C. Funding: This research received no external funding. Acknowledgments: The authors would like to thank the Smartive company (http://smartive.eu/) for providing the data used in the experimental part. Conflicts of Interest: The authors declare no conflict of interest. Abbreviations The following abbreviations are used in this manuscript: AUC area under the curve CBM condition based maintenance CMS condition monitoring systems CM confusion matrix CP decision trees complexity parameter DT decision trees MAE mean absolute error MSE mean squared error O&M operation and maintenance RF random forest SCADA supervisory control and data acquisition data WO work order
Energies 2019,12, 1982 19 of 20 References 1. Renewable Energy Policy Network for the 21st Century. Renewables 2016—Global Status Report; Technical Report; REN21: Paris, France, 2016, ISBN 978-3-9818107-0-7. 2. European Comission. Renewable Energy: Progressing towards the 2020 Target; Technical Report 31 November 2011. Available online: https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX: 52011DC0031 (accessed on 21 March 2019). 3. Eurostat. Energy Balance Sheets 2011–2012; Technical Report 9; Eurostats (European Union): Luxembourg, 2014. [CrossRef] 4. Milborrow, D. Operation and Maintenance Costs Compared and Revealed; Haymarket Business Media: London, UK, 2006; Volume 19, pp. 1–87. 5. Besnard, F.; Bertling, L. An approach for condition-based maintenance optimization applied to wind turbine blades. IEEE Trans. Sustain. Energy 2010,1, 77–83. [CrossRef] 6. European Commission. European Commission Guidance for the Design of Renewables Support Schemes; 2013. Available online: https://ec.europa.eu/energy/sites/ener/files/com_2013_public_intervention_ swd04_en.pdf (accessed on 21 March 2019). 7. European Commission. Energy and Environment State Aid Guidelines 2014–2020. Available online: https: //eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:52014XC0628(01)&from=EN (accessed on 21 March 2019). 8. García Márquez, F.P.; Tobias, A.M.; Pérez, J.M.P.; Papaelias, M. Condition monitoring of wind turbines: Techniques and methods. Renew. Energy 2012,46, 169–178. [CrossRef] 9. Kelley, N.D.; Jonkman, B.J.; Scott, G.; Bialasiewicz, J.; Redmond, L.S. Impact of Coherent Turbulence on Wind Turbine Aeroelastic Response and Its Simulation; Technical Report; National Renewable Energy Lab. (NREL): Golden, CO, USA, 2005. 10. Churchfield, M.J.; Lee, S.; Michalakes, J.; Moriarty, P.J. A numerical study of the effects of atmospheric and wake turbulence on wind turbine dynamics. J. Turbul. 2012,13, N14. [CrossRef] 11. Nandi, T.N.; Herrig, A.; Brasseur, J.G. Non-steady wind turbine response to daytime atmospheric turbulence. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2017,375, 20160103. [CrossRef] [PubMed] 12. Choudhary, A.K.; Oluikpe, P.; Harding, J.A.; Carrillo, P.M. The needs and benefits of Text Mining applications on Post-Project Reviews. Comput. Ind. 2009,60, 728–740. [CrossRef] 13. Rajpathak, D.G. An ontology based text mining system for knowledge discovery from the diagnosis data in the automotive domain. Comput. Ind. 2013,64, 565–580. [CrossRef] 14. Te Liew, W.; Adhitya, A.; Srinivasan, R. Sustainability trends in the process industries: A text mining-based analysis. Comput. Ind. 2014,65, 393–400. [CrossRef] 15. Hossain, M.L.; Abu-Siada, A.; Muyeen, S. Methods for Advanced Wind Turbine Condition Monitoring and Early Diagnosis: A Literature Review. Energies 2018,11, 1309. [CrossRef] 16. Küçük, D.; Arslan, Y. Semi-automatic construction of a domain ontology for wind energy using Wikipedia articles. Renew. Energy 2014,62, 484–489. [CrossRef] 17. Asian, S.; Ertek, G.; Haksoz, C.; Pakter, S.; Ulun, S. Wind turbine accidents: A data mining study. IEEE Syst. J. 2017,11, 1567–1578. [CrossRef] 18. Martin-del Campo, S.; Sandin, F.; Strömbergsson, D. Dictionary learning approach to monitoring of wind turbine drivetrain bearings. arXiv 2019, arXiv:1902.01426. 19. Çinicio˘glu, E.N.; Ertek, G.; Demirer, D.; Yörük, H.E. A framework for automated association mining over multiple databases. In Proceedings of the IEEE 2011 International Symposium on Innovations in Intelligent Systems and Applications, Istanbul, Turkey, 15–18 June 2011; pp. 79–85. 20. Ertek, G.; Tokdemir, G.; Sevinç, M.; Tunç, M.M. New knowledge in strategic management through visually mining semantic networks. Inf. Syst. Front. 2017,19, 165–185. [CrossRef] 21. Uluyol, O.; Parthasarathy, G.; Foslien, W.; Kim, K. Power curve analytic for wind turbine performance monitoring and prognostics. In Proceedings of the Annual Conference of the Prognostics and Health Management Society, Montreal, QC, Canada, 25–29 September 2011; Volume 2, pp. 1–8. 22. Lydia, M.; Selvakumar, A.I.; Kumar, S.S.; Kumar, G.E.P. Advanced Algorithms for Wind Turbine Power Curve Modeling. IEEE Trans. Sustain. Energy 2013,4, 827–835. [CrossRef] 23. Feinerer, I.; Hornik, K.; Meyer, D. Text Mining Infrastructure in R. J. Stat. Softw. 2008,25, 1–54. [CrossRef]
Energies 2019,12, 1982 20 of 20 24. Hotho, A.; Nürnberger, A.; Paaß, G. A Brief Survey of Text Mining. Ldv Forum 2005,20, 19–62. [CrossRef] 25. Karl, A.; Wisnowski, J.; Rushing, W.H. A practical guide to text mining with topic extraction. Wiley Interdiscip. Rev. Comput. Stat. 2015,7, 326–340. [CrossRef] 26. Gan, Q.; Zhu, M.; Li, M.; Liang, T.; Cao, Y.; Zhou, B. Document visualization: An overview of current research. Wiley Interdiscip. Rev. Comput. Stat. 2014,6, 19–36. [CrossRef] 27. Fellows, I. Wordcloud: Word Clouds; R Package Version 2.6. Available online: https://cran.r-project.org/ web/packages/wordcloud/wordcloud.pdf (accessed on 21 March 2019). c 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).