Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 23 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
23
Dung lượng
264,5 KB
Nội dung
Application ofApplicationof Back-Propagation neuralBack-Propagationneuralnetworkindata forecasting networkindata forecasting Le Hai Khoi, Tran Duc Minh Le Hai Khoi, Tran Duc Minh Institute Of Information Technology – VAST Institute Of Information Technology – VAST Ha Noi – Viet Nam Ha Noi – Viet Nam Acknowledgement Acknowledgement The authors want to Express our The authors want to Express our thankfulness to Prof. Junzo WATADA who thankfulness to Prof. Junzo WATADA who read and gave us worthy comments. read and gave us worthy comments. Authors Authors CONTENT CONTENT Introduction Introduction Steps indata forecasting modeling Steps indata forecasting modeling using neuralnetwork using neuralnetwork Determine network’s topology Determine network’s topology ApplicationApplication Concluding remarks Concluding remarks Introduction Introduction • Neural networks are “Universal Approximators” • To find a suitable model for the data forecasting problem is very difficult and in reality, it might be done only by trial-and-error • We may take the data forecasting problem for a kind ofdata processing problem Data collecting and analyzing Neural Networks Post-processing Pre-processing Figure 1: Data Processing. Steps indata forecasting modeling using neuralnetwork Steps indata forecasting modeling using neuralnetwork The works involved in are: * Data pre-processing: determining data interval: daily, weekly, monthly or quarterly; data type: technical index or basic index; method to normalize data: max/min or mean/standard deviation. * Training: determining the learning rate, momentum coefficient, stop condition, maximum cycles, weight randomizing, and size of training set, test set and verification set. * Network’s topology: determining number of inputs, hidden layers, number of neurons in each layer, number of neurons in output layer, transformation functions for the layers and error function Steps indata forecasting modeling using neuralnetwork Steps indata forecasting modeling using neuralnetwork The major steps in design the data forecasting model is as follow: 1 . Choosing variables 2. Data collection 3. Data pre-processing 4. Dividing the data set into smaller sets: training, test and verification 5. Determining network’s topology: number of hidden layers, number of neurons in each layer, number of neurons in output layer and the transformation function. 6. Determining the error function 7. Training 8. Implementation. In performing the above steps, it is not necessary to perform steps sequentially. We could be back to the previous steps, especially in training and choosing variables steps. The reason is because in the designing period, if the variables chosen gave us unexpected results then we need to choose another set of variables and bring about the training step Choosing variables and Data collection Determining which variable is related directly or indirectly to the data that we need to forecast. • If the variable does not have any affect to the value ofdata that we need to forecast then we should wipe it out of consider. • Beside it, if the variable is concerned directly or indirectly then we should take it on consider. Collecting data involved with the variables that are chosen Data pre-processing Analysis and transform values of input and output data to emphasize the important features, detect the trends and the distribution of data. Normalize the input and output real values into the interval between max and min of transformation function (usually in [0, 1] or [-1, 1] intervals). The most popular methods are following: SV = ((0.9 - 0.1) / (MAX_VAL - MIN_VAL)) * (OV - MIN_VAL) Or: SV = TFmin + ((TFmax - TFmin) / (MAX_VAL - MIN_VAL)) * (OV - MIN_VAL) where: SV: Scaled Value MAX_VAL: Max value ofdata MIN_VAL: Min value ofdata TFmax: Max of transformation function TFmin: Min of transformation function OV: Original Value Dividing patterns set Divide the whole patterns set into the smaller sets: (1) Training set (2) Test set (3) Verification set. The training set is usually the biggest set employed in training the network. The test set, often includes 10% to 30% of training set, is used in testing the generalization. And the verification set is set balance between the needs of enough patterns for verification, training, and testing. Determining network’s topology This step determines links between neurons, number of hidden layers, number of neurons in each layer. 1. How neurons innetwork are connected to each other. 2. The number of hidden layers should not exceed two 3. There is no method to find the most optimum number of neurons used in hidden layers. => Issue 2 and 3 can only be done by trial and error since it is depended on the problem that we are dealing with. [...]... examine the generalization ability of the network by checking the network after a pre-determined number of cycles? 3 Hybrid solution is having a monitoring tool so we can stop the training process or let it run until there is no noticeable progress 4 The result after examining of verification set of a neuralnetwork is most persuadable since it is a directly obtained result of the network after training... instances of components that are the instances of Output Layer and Hidden Layer Output Layer and Hidden Layer Input Layer is not implemented here Input Layer is not implemented here since it does not do any calculation on the since it does not do any calculation on the input data input data friend Output layer Hidden layer NEURAL NET class Application ApplicationApplication Concluding remarks The determination... lastest quality determination function is usually the Mean Absolute Percentage Error - MAPE Training Training tunes a neuralnetwork by adjusting the weights and biases that is expected to give us the global minimum of performance index or error function When to stop the training process ? 1 It should stop only when there is no noticeable progress of the error function against data based on a randomly... determination of the major works is important and realistic It will help develop more accuracy data forecasting systems and also give the researchers the deeper look in implementing the solution using neural networks In fact, to successfully apply a neural network, it is depended on three major factors: First, the time to choose the variables from a numerous quantity ofdata as well as perform pre-processing... feed-forward neural networks where: P: input vector (column vector) Wi: Weight matrix of neurons in layer i (SixRi: Si rows (neurons), Ri columns (number of inputs)) i b : bias vector of layer i (Six1: for Si neurons) ni: net input (Six1) fi: transformation function (activate function) ai: net output (Six1) ⊕: SUM function i = 1 N, N is the total number of layers Determine training algorithm and network s... perform pre-processing those data; Second, the software should provide the functions to examine the generalization ability, help find the optimal number of neurons for the hidden layer and verify with many input sets; Third, the developers need to consider, examine all the possible abilities in each time checking network s operation with various input sets as well as the network s topologies so that... Finally, weights and biases are updated by following formulas: W m ( k + 1) = W m ( k ) − α s m ( a m −1 ) T b m ( k + 1) = b m ( k ) − α s m (Details on constructing the algorithm and other related issues should be found on text book Neural Network Design) Using Momentum This is a heuristic method based on the observation of training results The standard back-propagation algorithm will add following... Implementation This is the last step after we determined the factors related to network s topology, variables choosing, etc 1 Which environment: Electronic circuits or PC 2 The interval to re-train the network: might be depended on the times and also other factors related to our problem Determine network s topology Multi-layer feed-forward neural networks R1 x1 S1xR1 1 P a1 W1 f ⊕ n1 1 S1x1 f S 1x... using momentum coefficient, this equation will be changed as follow: ∆Wm(k) = γ∆Wm(k – 1) – (1 – γ) αsm (am – 1)T, ∆bm(k) = γ∆bm(k – 1) – (1 – γ) αsm Application LAYER cla ss Arrow: inheritance relation Arrow: inheritance relation Rhombic antanna arrow: Rhombic antanna arrow: Aggregate relation Aggregate relation NEURAL NET class includes the NEURAL NET class includes the components that are the instances...Determining the error function • To estimate the network s performance before and after training process • Function used in evaluation is usually a mean squared errors Other functions may be: least absolute deviation, percentage differences, asymmetric least squares etc Performance index F(x) = E[eTe] = E [ ( t - a )T ( t - a ) ] Approximate Performance index F(x) = eT(k)e(k)] = . Networks Post-processing Pre-processing Figure 1: Data Processing. Steps in data forecasting modeling using neural network Steps in data forecasting modeling using neural network The works involved in are: * Data. CONTENT CONTENT Introduction Introduction Steps in data forecasting modeling Steps in data forecasting modeling using neural network using neural network Determine network s topology Determine network s topology Application Application Concluding. Application of Application of Back-Propagation neural Back-Propagation neural network in data forecasting network in data forecasting Le Hai Khoi, Tran Duc Minh Le Hai Khoi, Tran Duc Minh Institute