Abstract
Accurate forecasting of electrical energy consumption of equipment maintenance plays an important role in maintenance decision making and helps greatly in sustainable energy use. The paper presents an approach for forecasting electrical energy consumption of equipment maintenance based on artificial neural network (ANN) and particle swarm optimization (PSO). A multilayer forward ANN is used for modeling relationships between the input variables and the expected electrical energy consumption, and a new adaptive PSO algorithm is proposed for optimizing the parameters of the ANN. Experimental results demonstrate that our approach provides much better accuracies than some other competitive methods on the test data.
1. Introduction
Equipment maintenance plays a key role in resuming and keeping regular operational capabilities of military equipment [1]. Today’s military equipment becomes more and more complicated and technology intensive, which has brought a heavy burden to equipment maintenance. As a result, the demand of electrical energy is increasing rapidly, and the trend is likely to continue in the future. On the one hand, the proportion of energy cost in the total maintenance cost increases rapidly, which was about 26% during 2006~2008 and 30% in 2009 and 2010, according to our historical data. Thus, an accurate forecasting of electrical energy consumption is very important for decision making in maintenance planning and implementation. On the other hand, the total electrical energy demand in China also has increasesd dramatically in recent years, which has caused many areas and industries to suffer (typically seasonal) electricity shortage [2–4]. In such cases, if we fail to anticipate the electrical energy consumption of maintenance adequately, prearranged maintenance plans will be interrupted or even abandoned, and a lot of important equipment cannot perform expected operations, which may cause significant economic losses or even catastrophic results. For example, in 2008 there are about 28% engineering machineries waiting for repair had their maintenance programs canceled due to unanticipated electricity shortage. In consequence, in some important disaster rescue operations in China in 2009 (such as the Ms6.0 Chuxiong Earthquake and the Ms6.4 Haixi earthquake), the rescue forces had to request a number of dozers, diggers, loaders, and other machineries from other areas, which reduced rescue efficiency.
There are a number of methods and models for forecasting electric energy consumption [5]. Conventional forecasting approaches, such as principal component analysis, least error square (LES), and regression techniques [5–8], become difficult and impractical to provide an adequate forecasting of electrical energy consumption, mainly due to the ever increasing complexity and diversity of equipment maintenance demands. Moreover, those approaches have some inherent limitation and disadvantages such as requirement for large training datasets, sensitivity to noise, and low capability of handling missing data. In recent years, methods and models based on artificial intelligence (AI), including artificial neural networks (ANNs) [9], fuzzy logic and expert systems [10], have received much interest and gained popularity in forecasting electric energy consumption.
Inspired by biological nervous systems, an ANN consists of an interconnection of a number of neurons. It uses processing elements connected by links of variable weights to form a black box representation of systems [11]. One of the most widely used ANNs is the multilayer feedforward neural network, which consists of an input layer, one or more hidden layers, and an output layer. Figure 1 presents an example of such a threelayer neural network.
One of the most useful and popular applications of ANNs is forecasting, the process of which can be divided into two steps: a learning step for constructing the network model based on training data and a forecasting step for predicting targets values for real data. The learning step is performed by iteratively processing a dataset of training tuples, comparing the network's output value for each tuple with the actual known target value, according to which adjusting the weights of the network so as to minimize the meansquared error between the network's output value and the actual target value.
The most wellknown neural network learning algorithm is backpropagation (BP) [12], which calculates the gradient of the error with respect to the weights for a given input by propagating error backwards through the network. However, BP involves long training times and its performance degrades rapidly when the problem complexity increases [13]. In the recent two decades, many intelligent heuristic algorithms, such as genetic algorithms (GAs) and particle swarm optimization (PSO) algorithms, have been applied to the problem of training different kinds of ANNs [14, 15], including the multilayer feedforward neural network, and have demonstrated their efficiency and effectiveness in training ANNs for improving their forecasting accuracies [16, 17].
In this paper, we propose an approach of forecasting electrical energy consumption of equipment maintenance using ANN and PSO. We use a feedforward neural network for modeling possible relationships between the input variables and the expected electrical energy consumption and develop a new adaptive PSO for training the network. Experimental results show that our approach is superior to some stateoftheart methods.
The rest of the review paper is synthesized as follows: Section 2 reviews the related work of the application of ANNs in electrical energy consumption forecasting and the related problems, Section 3 presents our approach in detail, Section 4 presents the computational experiments and the realworld applications, and Section 5 concludes.
2. Related Work
ANNs have gained much popularity in forecasting electric loads and energy demands since 1990s. Kawashima [18] developed an ANN model for building energy prediction, which is trained by the BP algorithm. To improve performance, the algorithm is combined with a threephase annealing method which gradually reduces the learning rate in order to improve accuracy in a relatively short time. In [19] Islam et al. proposed an ANNbased weatherload and weatherenergy models, where a set of weather and other variables are identified for both models together with their correlations and contribution to the forecasted variables. The models were applied to the historical energy, load, and weather data available for the Muscat power system from 1986 to 1990, and the forecast results for 19911992 showed that monthly electric energy and load can be predicted within a maximum error of 6% and 10%. In [20] AlShehri employed aANN for forecasting the residential electrical energy in the Eastern Province of Saudi Arabia, and the forecasting result was shown to be closer to the real data than that predicted by the polynomial fit model.
Hatziargyriou and Dialynas [21] proposed an adaptive ANN for midterm energy forecasting. Their model transforms the input variables to differences or relative differences, in order to predict energy values not included in the training set. The ANN parameters, such as the finally used input variables, the number of neurons, initial values, and time periods of momentum term and training rate, are simultaneously selected by an optimization process. Sözen et al. [22] also forecasted net energy consumption in Turkey based on an ANN approach, which employs a logistic sigmoid transfer function. They showed that the statistical coefficients of multiple determinations in the experiments are equal to 0.9999 and 1 for training and test data, respectively. In [23] Ermis et al. presented an ANN model which is trained based on world energy consumption data from 1965 to 2004 and applied for forecasting world green energy consumption to the year 2050. It is estimated that world green energy and natural gas consumption will continue increasing after 2050, while world oil and coal consumption are expected to remain relatively stable after 2025 and 2045, respectively.
The work of Azadeh et al. [24] presented an integrated algorithm for forecasting monthly electrical energy consumption based on ANN, computer simulation, and design of experiments using stochastic procedures. The integrated algorithm was applied for forecasting monthly electrical energy consumption in Iran from 1994 to 2005, the result of which demonstrated the effectiveness of the algorithm. Yokoyama et al. [25] proposed a global optimization method called “Modal Trimming Method” for determining ANN parameters, where the trend and periodic change are first removed from time series data on energy demand, and the converted data is used as the main input to a neural network. Their approach was validated by the application to predict the cooling demand in a building used for a benchmark test. Geem and Roper [26] proposed an ANN model with feedforward multilayer perceptron, error backpropagation algorithm, momentum process, and scaled data and applied the model to estimate the energy demand for the Republic of Korea. Nevertheless, to our best knowledge, research on the application of ANN models together with intelligent training algorithms to the field of energy consumption forecasting is still rare.
3. The Proposed Method
3.1. Network Structure
Our method adopts a threelayer forward neural network, since an ANN can solve a problem by using one hidden layer, provided it has the proper number of neurons [27]. From the original database of equipment maintenance, the input variables are preliminary selected by a team of experts in the domains of equipment maintenance and electrical power, and a dataset of twentythree fields is filtered out. In general, the input variables can be divided into two categories. The first category is related to the equipment to be repaired. The equipment is classified as heavy equipment, medium equipment, and light equipment. The maintenance levels include major maintenance, medium maintenance, and minor maintenance. Thus we identify nine variables N_{1,1}~N_{3,3}, where the first index denotes the equipment class (1heavy, 2medium, 3light) and the second denotes the maintenance level (1major, 2medium, 3minor). The first category also contains two variables related to rated power and three variables related to maintenance time of all equipment. The second category consists of nine variables related to maintenance resources and environments. Table 1 lists the input variables of our ANN for electrical energy consumption forecasting.
Preliminary normalization by the maximum and minimum values of each variable is executed based on the following equation: where and are the upper and lower values of the original variable, respectively, and and are the corresponding values of the normalized variable.
Given a unit in a hidden or output layer, the net input to unit , denoted by , is defined as where is the weight of the connection from unit in the previous layer to unit , is output of unit , and is acting as a threshold bias of the unit .
And we employ the widely used sigmoid transfer function to compute the output of unit from its net input:
3.2. PSO and Control Parameters
PSO is a stochastic, populationbased optimization technique that enables a number of individual solutions, called particles, to move through a hyperdimensional search space to search for the optimum or optima. Each particle has a position vector x and a velocity vector v, which are adjusted at iterations by learning from a personal best solution found by the particle itself and a global best solution gbest found by the whole swarm so far at each dimension : where is the inertia weight for controlling the velocity, and are the acceleration coefficients reflecting the weighting of “cognitive” and “social” learning, respectively, and and are two random numbers ranging from 0 to 1. Empirical studies have shown that PSO has a high efficiency in convergence to desirable optima and performs better than GAs in many problems [28–34].
Most PSO algorithms use a linear decreasing inertia weight and constant acceleration coefficients in (5). In recent years, some work has been conducted on the nonlinear and nonmonotonous change of control parameters, which has shown the ability of increasing the adaptivity and diversity of the swarm. In the work of Yang et al. [35], the inertia weight is adapted based on two characteristic parameters in the search course of PSO, namely, speed factor and aggregation degree factor. Arumugam and Rao [36] used the ratio of the global best fitness and the average of particles’ personal best fitness to determine the inertia weight in each iteration. Panigrahi et al. [37] proposed another PSO method where different particles are assigned with different inertia weights based on the ranks of the particles. In [38] Nickabadi et al. proposed a new adaptive inertia weight approach that uses the success rate of the swarm as its feedback parameter to ascertain the particles’ situation in the search space.
Zhan et al. [30] proposed an adaptive PSO that differentiates the evolutionary states as exploration, exploitation, convergence, and jumping out by evaluating the population distribution and particle fitness and uses the state information to automatically control inertia weight and acceleration coefficients at run time. Ratnaweera et al. [39] introduced a timevarying acceleration coefficient strategy where the cognitive coefficient is linearly decreased and the social coefficient is linearly increased. In [40] Zheng et al. introduced a new adaptive parameter strategy to the comprehensive learning particle swarm optimizer, which uses evolutionary information of individual particles to dynamically adapt the inertia weight and acceleration coefficient at each iteration.
3.3. An Adaptive PSO Algorithm for Evolving the ANN
Since the search process of PSO is highly complicated in the ANN training problems, here we use a selfadaptive mechanism for both the inertia weight and the acceleration coefficients. The mechanism is based on the concept of the success of a particle at an iteration, that is, whether or not a particle improves its personal best at iteration :
Based on that we compute the rate of success of the whole swarm :
That is, is the percentage of the particles which have had an improvement in the last iteration. A high value of indicates a high probability that the particles have converged to a nonoptimum point or slowly moving toward the optimum, while a low value of indicates that the particles are oscillating around the optimum without much improvement [38]. And we use the following equation for dynamically changing inertia weight of PSO:
PSO is a populationbased optimization method, which is preferred to encourage the exploration during the early stages and to enhance exploitation during the latter stages. Here we also employ a mechanism that linearly decreases the cognitive coefficient and increases the social coefficient as follows:
The dataset of our forecasting problem is partitioned into three sets: a training set, a validation set, and a testing set.
Our adaptive PSO contains a main procedure for evolving a swarm of ANNs with different structure (different number of the hidden nodes and the connection density), which is outlined in Algorithm 1, and a subprocedure for evolving a swarm of ANNs with the same structure but different connection weights, which is outlined in Algorithm 2. For each particle that represents an ANN, its fitness is defined as the root meansquared error (RMSE) of the training dataset, which is calculated as follows: where is the network output of the th training tuple and is its desired output. The fitness of particles in the mainswarm is evaluated as the best ANN obtained by its subswarms.


The flowchart of the algorithm is shown in Figure 2.
4. Computational Experiment
The proposed method was applied to the actual historical data collected from seven equipment maintenance organizations from 1999 to 2011. We used the data from 1999 to 2006 and the data of 2008 as the training dataset, the data of 2007 and 2010 as the validation dataset, and the data of 2009 and 2011 as the testing dataset. Table 2 presents a summarization of the datasets.
We, respectively, implement three other approaches: the ANN trained by BP (denoted by ANN), the ANN trained by basic PSO (denoted by ANNPSO), and the nonlinear regression model optimized by PSO (denoted by RPSO) [41], in order to comparatively evaluate the performance of our method (denoted by ANNAPSO).
The experiments are conducted on a computer with Intel i5 3450 multicore processor and DDR3 8 GB memory. The basic parameters of our approach are set as , , , , , and . The maximum running time of the other approaches is set as they consume nearly the same CPU time as our method.
Tables 3 and 4, respectively, present the experimental results of the four approaches on the testing datasets of 2009 and 2011. As we can see from the results, on every test data tuple, our ANN trained by adaptive PSO achieves the minimum mean absolute percentage error (MAPE) among the four approaches. On the testing dataset of 2009, nearly all of the MAPEs of ANNAPSO are less than one percent. Roughly speaking, the testing dataset of 2011 is much more difficult than that of 2009, and thus the MAPEs of the other three approaches generally increase to a certain extent (except for the ANNPSO on organization #4), but the MAPEs of ANNAPSO decrease on organizations #1 and #6, remain zero on #7, and increase very slightly on the other four cases. Statistical tests also show the following.(i)On the dataset of 2009, our ANNAPSO has significant performance improvement over ANN in all cases and over ANNPSO and RPSO in most cases.(ii)On the dataset of 2011, the ANNAPSO always has significant performance improvement over the other three methods.
In summary, ANNAPSO provides the best forecasting accuracy on the testing datasets, and it is much more reliable and robust than the other three approaches.
5. Conclusion
The paper presents an approach for forecasting electrical energy consumption of equipment maintenance based on ANN trained by PSO. The ANN model is used for modeling possible relationships between the input variables and the expected electrical energy consumption, and a new PSO algorithm with adaptive control parameters is developed for evolving the ANN. Experimental results demonstrate that our approach performs better than some stateoftheart methods on the historical data of equipment maintenance in China. And we believe that the proposed method can be applied to a wider range of forecasting problems in engineering.
In practice, we find that it is often difficult to get exact values of a certain number of input variables, and currently we just use their expected or estimated values. To further improve the adaptivity and flexibility of our approach, we are testing the use of fuzzy numbers and fuzzyneural networks [42–46] in forecasting and adapting our ANNAPSO algorithm for training and evolving the fuzzyneural networks. Our future work also includes improving the algorithm by information sharing between different subswarms.
Acknowledgments
This work was supported by the Natural Science Foundation of China under Grant nos. 61020106009 and 61105073. The authors are grateful to the reviewers’ valuable comments that help to improve the paper greatly.