1. Introduction
In recent years, time series modeling and prediction are one of the most active research topics in academic research and engineering practice [
1,
2]. Time series modeling is usually a chronological series of observed data (information) according to the time sequence, whose values are sampled at invariable time intervals. Researchers often predict future changes based on the historical data. For example, according to the situation in the past or the current period of the market sales, changes of stock prices, population growth and the bank’s deposits and withdrawals in the future are predicted. Time series forecasting affects the life of people everywhere, so it has an important practical significance and research prospects in every field of today’s society, which is also an important direction in the computer application field.
The bank cash flow forecasting management information system is designed to create a system management platform for the prediction and analysis of commercial bank cash flow. It will realize the cash flow data statistics summary, the cash flow short-term and long-term predictions, and the management information related to commercial bank cash flow under three levels: secondary branches (Cash Operation Center), branch (Business Library) and Network. Its purpose is to provide effective data of all levels of organization to analyze and assess cash business operation conditions. It will also provide effective system management means for the cash operation managers and decision-making people at all levels.
Artificial neural network (ANN) is a very good approximation method, which has characteristics of adaptive and self-learning [
3,
4]. However, ANN is easy to fall into local minimum. Combined with the fuzzy inference system, a new kind of nonlinear prediction method was proposed, namely: adaptive neural fuzzy inference system (ANFIS) [
5]. This method can use both fuzzy rules and the structure of the neural network to realize adaptive self-learning, thus the prediction accuracy is higher than the single artificial neural network. In order to further improve the prediction precision of the adaptive ANFIS system, the PSO algorithm is also applied to optimize its structure parameters. A new hybrid approach, combining particle swarm optimization and adaptive-network-based fuzzy inference system for short-term wind power prediction in Portugal is proposed, forecasting accuracy is attainable using the proposed approach [
4,
5,
6]. The radial basis function neural network (RBFNN) with a nonlinear time-varying evolution particle swarm optimization (NTVE-PSO) algorithm is developed, and Simulation results illustrate that the proposed NTVE-PSO-RBFNN has better forecasting accuracy and computational efficiency for different electricity demands [
7,
8,
9,
10]. An improved PSO-based artificial neural network (ANN) is developed, the results show that the proposed SAPSO-based ANN has a better ability to escape from a local optimum and is more effective than the conventional PSO-based ANN [
11,
12,
13,
14]. A training algorithm is based on a hybrid of particle swarm optimization (PSO) and evolutionary algorithm (EA) to predict the 100 missing values from a time series of 5000 data points, where experimental results show that PSO-EA algorithm is effective [
15].
Aiming at the existed problem in the prediction of commercial bank cash flow, a hybrid learning algorithm is proposed based on an improved PSO algorithm combined with LMS to optimize the ANFIS’ configuration parameters, which is adopted to realize the prediction of cash flow time series. The simulation results show the effectiveness of the proposed method. The paper is organized as follows: in
Section 2, the technique of the adaptive network-based fuzzy inference system (ANFIS) is introduced. The optimization of ANFIS parameters based on improved PSO-LMS algorithm is presented in
Section 3. The simulation experiments and results analysis are introduced in detail in
Section 4. Finally, the conclusion illustrates the last part.
4. Time Series Prediction of Bank Cash Flow Based on APAPSO-ANFIS
In order to demonstrate the effectiveness of the proposed APAPSO-ANFIS algorithm, and verify its rationality to predict the bank cash flow time series, based on the collected information and the market data of a commercial bank, the APAPSO-ANFIS is used to realize the time series forecasting of bank cash flow by adopting the MATLAB R2012a simulation platform.
In this paper, the inventory limit data of each day from 2010 to 2012 of a commercial bank are selected as the experimental data (a total of 1095 sample points). The data were carried out the normalization pre-treatment, where the first 975 data is selected as the training data set, and the remaining 120 data is selected as the testing data set. As used herein, ANFIS contains 16 rules and each input variable is assigned two membership functions. The total numbers of the adjusted parameters are 104, including 24 premise (non-linear) parameters and 80 conclusion (linear) parameters. The number of particles
N is 30; the number of iterations is 100; the learning factors
c1 =
c2 = 2; the scope of the inertia weight
w is [0.5, 1.2]; the membership function of ANFIS is the bell-shaped function. Four input variables are given
. Thus, the initial membership function and their corresponding termination membership functions after the improved PSO algorithm learning are shown in
Figure 3 and
Figure 4, respectively.
Figure 3.
Initial membership function diagram of four input variables.
Figure 4.
Final membership functions diagrams.
Clearly seen from the comparison of the charts above, there are changes in the four membership functions after learning, which proves that the improved algorithm is feasible and effective. The prediction results and the error curves are obtained based on the improved PSO algorithm, which are shown in
Figure 5 and
Figure 6. It can be seen from
Figure 5 and
Figure 6 that the predicted results are very ideal. In order to show the advantage of APAPSO-LMS algorithm to optimize the parameters of ANFIS, three different algorithms (the BP-LMS algorithm, PSO-LMS algorithm with inertia weight linear decreasing strategy and the APAPSO-LMS algorithm) are used to optimize ANFIS. The experimental comparison results of RMSE evolution curve is shown in
Figure 7. The simulation prediction experimental results are shown in
Figure 8 and
Figure 9. Respectively, and the comparison results of prediction errors are shown in
Figure 10.
Figure 5.
Prediction results based on APAPSO-LMS algorithm.
Figure 6.
Error curve based on APAPSO-LMS algorithm.
Figure 7.
Comparison results of RMSE.
Figure 8.
Prediction results based on BP-LMS algorithm.
Figure 9.
Prediction results based on PSO-LMS algorithm.
Figure 10.
Comparison results of prediction errors.
Seen from the
Figure 7 that when the BP-LMS method is used to optimize ANFIS and the number of iterations runs to about 55 generation, the optimization error almost reaches a stable value. When using PSO-LMS algorithm of inertia weight decreasing linearly strategy, although the optimization effect is better than BP-LMS algorithm and the convergence rate is increased, but the result is not very ideal. That is to say that when the number of iterations runs to about 60 generations, the optimization error no longer reduces, the algorithm is probably falling into a local optimum.
When the APAPSO-LMS algorithm is used to optimize ANFIS, the error decreases all the time until 100 generations in the entire optimization process, and the rate of convergence and optimization results are much better than the previous two algorithms. Because the inertia weight of particles can be adjusted adaptively, the global search capability and the local exploitation ability of the algorithm can be balanced well, which can effectively avoid the premature convergence and improve the algorithm comprehensive optimization performance. By comparing the simulation results (
Figure 8,
Figure 9 and
Figure 10), it can be seen more intuitively that the proposed APAPSO-LMS prediction algorithm has much smaller error than the BP-LMS and PSO-LMS algorithm, and the prediction accuracy is higher. So, it can be concluded that the APAPSO-LMS algorithm is effective for the improvement of PSO algorithm and it has a certain practical significance.
In order to more clearly evaluate the predictive performance of the APAPSO-LMS algorithm, the results analysis is carried out based on the following five performance indexes. The prediction error is the deviation between the predicted results and the actual results, which determines the prediction accuracy. are the actual observations of predicted object and are the predicted values.
(1) Absolute error of predicted points
where
at is the absolute error at the point
t. Obviously,
at is the most direct measure index of the prediction error, but it is affected by the measurement unit of the predicted objects. So it is unsuitable as the final measure indicator of prediction accuracy.
(2) Relative error of predicted points
where
is the relative error at the point
t, which is usually expressed as a percentage and to measure the accuracy of the predicted values relative to the observed values at the predicted point
t.
(3) Prediction accuracy of the prediction points
where
At is the prediction accuracy at the prediction point
t.
(4) Mean square error (MSE)
Mean square error (MSE) is a kind of convenient method to measure the average error to evaluate the degree of data change, which is described as follows.
(5) Computational loading
The method of computational load is used in this paper to add “tic” direction as a started timer, and then put “toc” direction at the end of program as a terminate timer, and returning the total time since the “tic” direction is started.
The above mentioned three prediction algorithms are used to realize the time series prediction of bank cash flow. The simulation results summarized based on the training data and testing data are shown in
Table 1. It can be seen from
Table 1 that training data obtained accuracy is higher than the testing data, but the program running time is much longer, because the fitting degree of using training data is better and testing data need not spend more time to train the parameters. Although PSO-LMS algorithm may fall into local optimum lead to the computational time of the proposed APAPSO-LMS prediction algorithm is relatively longer, but for the time series prediction of bank cash flow it has the highest accuracy and the effectiveness of the proposed method is verified once again. In conclusion, by comparing the experiments’ results, it can be seen that the proposed prediction method is more suitable for bank cash flow time series forecasting and analysis.
Table 1.
Performance comparison results.
Performance indicators | Training data | Testing data |
---|
BP-LMS | PSO-LMS | APAPSO-LMS | BP-LMS | PSO-LMS | APAPSO-LMS |
---|
MSE | 7.54 × 10−5 | 5.29 × 10−5 | 2.25 × 10−6 | 8.39 × 10−5 | 5.78 × 10−5 | 2.81 × 10−6 |
Absolute error | 5.46 × 105 | 4.37 × 105 | 1.27 × 105 | 5.95 × 105 | 4.48 × 105 | 1.62 × 105 |
Relative error of (%) | 6.35% | 3.19% | 1.20% | 6.68% | 3.76% | 1.43% |
Prediction accuracy (%) | 93.65% | 96.81% | 98.80% | 93.32% | 96.24% | 98.57% |
Computational time (s) | 18.96 s | 150.37 s | 168.64 s | 3.24 s | 3.68 s | 3.71 s |