# Hot Spot Data Prediction Model Based on Wavelet Neural Network

Authors: Ming Zhang; Wei Chen
Journal: Mathematical Problems in Engineering
 (2018)

---

## Abstract

The novel hybrid multilevel storage system will be popular with SSD being integrated into traditional storage systems. To improve the performance of data migration between solid-state hard disk and hard disk according to the characteristics of each storage device, identifying the hot data block is significant issue. The hot data block prediction model based on wavelet neural network is built and trained by using historical data. This prediction model can overcome the cumulative effect of traditional statistical methods and has strong sensitivity to I/O loads with random variations. The experimental results show that the proposed model has better accuracy and faster learning speed than BP neural network model. In addition, it has less dependence on sample data and has better generalization ability and robustness. This model can be applied to the data migration of distributed hybrid storage systems to improve performance.


---

## Body

## 1. Introduction

The hybrid storage system with traditional hard disk drive (HDD) and solid-state drive (SSD) has become a significant storage system in large-scale data processing [1]. HDD have been broadly used as the primary storage medium in the past decades due to their relatively low cost per gigabyte and large storage capacities. However, the access performance of HDD has been improving slowly and the performance gap between HDD and CPU has been becoming bigger. The HDD has become the performance bottleneck of the computer system, even in the datacenter [2, 3]. The SSD is flash-based electronic storage device with low read delay and high writing delay [4]. So the SSDs are installed into the traditional HDD-based storage systems to build the HDD/SSD hybrid storage system [5]. To exploit the high random read performance owned by SSD, the hybrid storage systems focus on identifying hot data from cold data accurately. These systems perform data migration operation to copy hot data from HDD to SSD and cold ones from SSD into HDD for improving the access performance. Several authors analyzed the convergence and oscillatory properties of data using differential equations and dynamic equations on time scales; see, e.g., [6–9]. So the identification of data status in hybrid storage is a significant issue. Here we proposed a prediction model to identify the hot data in hybrid storage system and this model can be used in data migration in cloud storage system or distribution storage systems [10].To identify the hot data in storage system, the current researches focus on statistical method that logs and counts the number of accessing for each data block. Kgil [11] and Koltsidas [12] proposed data block classification model based on data page I/O statistics to guide data migration strategy. Yang put forward to a novel method for increasing intermediate state to reduce occasional read tendency page classification error and the caused false migration in order to reduce the error in the classification of data pages [1]. Chai et al. used data block temperature to qualify the data block status and identify hot data block by sorting data block temperature [13]. However, the above mentioned models belong to statistical method that has a congenital deficiency. This is because these statistical models calculate the accessing requests from the data block creation. It has a certain time accumulation effect, which will cause classification model to be insensitive to the change of random access load. There is a large number of I/O random access loads in complex application environments where large data is stored and calculated. This statistical classification model cannot respond quickly to changes in storage load and inevitably affects the accuracy and cost of data migration in hybrid storage systems. To solve the cumulative effect of statistical method and improve the response for random access workloads, we build a prediction model based on wavelet neural network to identify the hot and cold data block. Our contributions can be summarized as follows.( 1 ) We predict the data block status based on the wavelet neural network that has better nonlinear learning and generalization capacity. This model is very suitable for the small training data set and can learn with high resolution in sparse training data set. Additionally, the prediction model generates the thermal degree of data block, which is a continuous value within [0,1]. So it is more flexible for data migration mechanism than previous models.( 2 ) The prediction model can solve the shortcoming of statistical method and response of the variation of hot data faster than those statistical models. This model is more suitable to deal with the uncertain workloads in distribution storage system.This paper is organized as follows: in Section2 we briefly describe the problem of identifying hot data. Section 3 introduces the features and qualifying model. Section 4 provides the detailed prediction model. Section 5 we evaluate the prediction model by experiments and analyze the results. Finally, Section 6 concludes this paper with discussion of future work.


## 2. Problem Description

In this section, we introduce the problem firstly. Accessing Data block rules are very complex in large-scale data distributed storage environment. According to historical data access trends, the current data block read operation heat degree is predicted to provide basic basis for data migration in hybrid storage system. Distributed big data storage system is a multitenant computing platform. On the platform a large number of users launch random computing tasks, so a lot of data’s reading and writing requests will be produced. For the convenience of later discussion, some of the important concepts are defined as follows.Definition 1.
Data block B. A data block is a triple:B=F,S,P, where F is the file that the data block belongs to. S is the size of the attached file. P is the set of data block access rule attributes.Definition 2.
Data block access attribute set P. Data block access attribute set P = (δ,θ,T,ς), where δ is the data block unit time access frequency. θ is the access density in statistical period. T is the data block inertia; ς is the data block concurrency.Definition 3.
The access frequency per unit timeδ is the access frequency per unit time in a statistical cycle. For example, the statistical period for a data block is 30 days and 240 times of access happens in this statistical cycle. They happens in 3 days, respectively, and then δ = 240/3.Definition 4.
θ is the access density in statistical period. The ratio of the number of unit times of data access in a statistical period to the length of the statistical period. It reflects the distribution of data block access. For example, a month is calculated by 30 days, a total of 240 times of access happen, they happen in different 3 days respectively, then θ= 3/30; if happen in 18 days, then θ= 18/30.Definition 5.
The recent data block inertiaT. In distributed storage system, from the beginning of the creation of data block, the set of time for each access is t1,t2,…,tn. The time interval for each access is t2-t1, t3-t2, tn-tn-1. For easy measurement and use, this paper uses the most recent access interval of data block as the inertia value of data block. For example, if current time is ti, data inertia isT= ti-ti-1.Definition 6.
Data block concurrencyς is the number of processes which access data block. This index reflects the degree of concurrent access to data block to a certain extent.Definition 7.
Life of data blocksL. Time interval between current time and the time of data block creation. Usually the longer the life of the data block is, the lower the probability of being accessed is.In this case, the future access probability of data block is predicted according to the access characteristics and laws of large number of data blocks. The data blocks with high access probability are hot data. On the contrary, the data blocks with low access probability are cold data. Then whether the data state is hot or cold is determined to prepare for further data migration.


## 3. Data Heat and Eigenvector

First, create an index to quantify data block heat degree, and this index can express the frequency that a data block is accessed.Definition 8.
Data heat degreeh. Using data block access frequency and access density, two important access attributes and weighting them to build data heat degree index, as shown in (1)h=wδ+1-wθ,h∈0,1.In Equation (1), δ and θ are the two dimensionless indexes with same direction. The larger the value is, the greater the heat of data block is. In addition, the maximum method is used to normalize δ, that is δ=δcur/δmax, δ∈[0,1]. θ is a real number in interval [0,1]. This method of describing data block heat mainly focuses on the main indexes of data block access. It has advantages of simpleness and intuitiveness. Because the weight is assigned value with subjective method, w = 0.7, this weight identification has a certain subjective shortcomings.In order to establish the prediction model of thermal data, we need to construct training data set from large number of data block access history data. First, we select eigenvalues which can reflect access rule and is easy to measure from sample data, and construct eigenvector for each data sample. The following lists the specific eigenvectorsT,ς,S,L: the recent data block inertia T, concurrency ς, data block life, etc. They are indexes which have more significant correlation with data block heat. Data block inertia is normalized by maximum value method, that is, T=Tcur/Tmax, T∈[0,1]. Then the method is used to perform co-oriented treatment for characteristic indexes, T=Tmax/Tcur. Data block concurrency also needs to be normalized with maximum value, that is, ς=ςcur/ςmax, ς∈[0,1].S the size of the file associated by data block is looked as a supplementary eigenvalue, after normalization, S=Scur/Smax, ς∈[0,1]. Data block life value is also normalized with maximum value. L=Lcur/Lmax, L∈[0,1]. Then this method is used to co-orient index value. According to the observation on training data set, the maximum value of the above eigenvalues is selected by artificial experience for normalization, where δmax = 500, Tmax = 200 statistical time points, ςmax = 30 concurrent users, Smax = 500MB, and Tmax = 1 year.


## 4. Data Block Heat Degree Prediction Model

Data heat degree prediction model is a nonlinear function relationshipf(T,ς,S,L)=h. The input of the prediction model is a quarternary real number vector. The model output is the heat state of data block h∈[0,1]. By training the prediction model, the nonlinear function relation between the features vector of data block access and the heat degree is fitted. We choose wavelet neural network (WNN) to construct the prediction model. The wavelet neural network integrates the advantages of wavelet analysis and artificial neural network, and has excellent nonlinear mapping ability and generalization ability [14]. In addition, the experimental observation data show that the training sample data has obvious sparsity. A large number of sample data show similar access characteristics. A small number of sample characteristics has diversity. Therefore, the wavelet neural network has obvious advantages in learning. Due to the multiscale time-frequency analysis capability of the wavelet function in wavelet neural network, the local singularity function can be studied with high accuracy by adjusting the expansion and translation of the wavelet function in training data-intensive region. In training data sparse area, low-scale parameters are used to learn smooth function. The characteristics of training data are the main reason to select wavelet neural network for fitting nonlinear prediction model. WNN has better adaptability and better prediction accuracy than traditional BP neural network [15].


### 4.1. Fuzzy Preprocessing Eigenvalues

In feature vectorT,ς,S,L, relevant file sizeS and data block lifeL have obvious uncertainty. The value difference of various sample data is larger. So if using the means of standard quantification, the value of two indexes will affect the proportion of other indexes and reduce the accuracy of training model. In order to solve this problem, these two indexes are quantified by fuzzy evaluation method, and the output of fuzzy processing is taken as the input of wavelet neural network [16].The concrete method is as follows: Firstly, we define the fuzzy setA={(a,μA(a)),a∈R,μA(a)∈[0,1])}, where μA(a) is the appurtenant degree function of the fuzzy set, which reflects the degree of the element a belonging to the fuzzy set A. For example, the data block-related file size is set to three levels: small, medium, and large. The appurtenant degree function of large file is μgreat(e(s)),{(e(s),μgreat(e(s))),e(s)∈[0,1],μgreat(e(s))∈[0,1])}, and it is expressed as the extent that the data block sizee(s) belongs to the fuzzy set large file. In order to blur file size index, we use fuzzy appurtenant function as in (2)μAa=0,a<la-lb-l,l≤a<b1,b≤a<ch-ah-c,c≤a<h.First normalize file size with maximum method, normalize it into [0,1]. Then use Equation (2) to process. For example, if e(s) = 0.47, then μsmall(0.47)=0.12, μmedian(0.47)=0.72,μgreat(0.47)=0.16; therefore E (s) = 0.47 represents the fuzzy set {(0.47,μsmall(0.47)),(0.47,μmedian(0.47)), (0.47,μgreat(0.47))}={(0.47,0.12),(0.47,0.72),(0.47,0.16)}. Design three fuzzy sets Us, Um, and Ug for data block association file size index; they represent small files, medium files, and large files, respectively (denoted as Small, Median, and Great). Then, the same method is used to define three fuzzy sets (old data, middle-aged data, and new data) for data block life index, so as to solve the fuzzy processing of this index.


### 4.2. Wavelet Neural Network Structure

The main idea of wavelet neural network is to combine wavelet function with traditional BP neural network, replace the sigmoid function in BP neural network with nonlinear wavelet basis function, and use the linear superposition of nonlinear wavelet basis to fit the nonlinear function [14]. In this paper, the wavelet neural network structure is shown in Figure 1.Figure 1
Architecture of wavelet neural networks.The wavelet neural network in Figure1 consists of input layer, fuzzy layer, inference layer, wavelet layer, and output layer. The number of neuron nodes in each layer is n, n × M, M, M, and 1, respectively.( 1 ) Input layer (Layer 1): Each node of this layer is directly connected to each input component xj of the eigenvector, and passes the input value X=[x1,x2,x3,…,xn] to the next layer. Here the eigenvector is T,ς,S,L, n=4;( 2 ) Fuzzy layer (Layer 2): Through the fuzzy rules, the input vector is transformed into fuzzy values. Here Gaussian function is used to complete the work of the fuzzy appurtenant function, as shown in (3)Fjxi=exp⁡-xi-cij22σij2j=1,2,…,n,i=1,2,…,m,where i is the component of input vector, j is the ordinal number of fuzzy rule, cij and σij are the center position and distribution parameter of Gaussian function, respectively. In addition, the fuzzy rule can be described as Ri: if x1 is Ai1 then yi = Bi1.( 3 ) Rule layer (Layer 3): Rule layer is also known as inference layer. Each neuron corresponds to a fuzzy rule. Then we use the following formula to calculate the fitness degree of fuzzy rules.(4)μjx=∏j=1nFjxii=1,…,m.In (4),n is the rule ordinal number and μj(x) is the input value of next layer.( 4 ) Wavelet layer (Layer 4): The wavelet network layer output is mainly used for output compensation. The output of the neurons of this layer is calculated by using (5)woj=wjΨjzΨjz=∑i=1m1aij1-zij2e-zij2/2,where zij=xi-bij/aij is the weight of the connection from theith node of input layer to thejth node of wavelet layer; wj is the weight of the connection from thejth node of wavelet layer to output layer;aij is the extension and contraction parameter of wavelet function;bij is the translation parameter of wavelet function.( 5 ) Output layer (Layer 5): This layer is the final output layer of wavelet neural network. It will produce prediction results of predictive model. As a result of using fuzzy rules to quantify eigenvector index, this layer also perform defuzzy calculation, so it is also known as anti-fuzzy layer.


### 4.3. Training Algorithm

The wavelet neural network model in the previous section can be expressed as follows:(6)QX=∑j=1NWijJΨjz+θ¯,where X=x1,x2,x3,…,xMT is input vector; as shown in (5) and Ψj(z) is the neuron wavelet activation function of wavelet layer; Wij is the weight of the connection from thejth node of wavelet layer to output layer and θ¯ is the average estimated value of output sequence; Q(X) is the output value of wavelet neural network. The purpose of wavelet neural network training is to use sample data to determine the important parameters. This model parameters to be trained areZij,Wj,aj,bj, and θ¯. We do not use the batch approach of traditional BP for training. Here we use genetic algorithm for repeated approximation to actual measurement data in sample space to obtain. Firstly, the parameters to be trained in model are constructed into parameter vector with string structure by their order. Each vector is a chromosome for genetic operation. Each chromosome is encoded with a real number. The initial value of the parameter is determined by the following method:(1) Determination of Stretching and Translation Parameters.According to the nature of wavelet function, the window center position and width of the wavelet function are fixed values. Given that the initial center of the wavelet window isx0j and the window width is Δx0j, then the scaling factoraj is given by the following formula:(7)aj=∑j=1Mxjmax-∑j=1MxjminΔx0j.The translation factorbj is determined by Equation (8):(8)bj=0.5×∑j=1Mxjmax+∑j=1Mxjmin-aj×x0j,M in (7) and (8) are the number of input vectors. xjmax and xjmin are the maximum and minimum sample values of thej-th neuron of the input layer, respectively.(2) Determination of Network Weights.The initial value of the weight from input layer to wavelet layer Zij and the weight from wavelet layer to output layer Wj is to select a uniformly distributed random number in [-1,1] and to ensure that the various values are not zero.(3) Determination of the Parameter θ ¯ .It is obtained according to the calculated mean of partial sample data.Then it is constantly updated and corrected during calculation.Before the start of wavelet neural network training, the genetic population size was set toL = 200, the maximum number of iterations wasJ = 300, the network convergence accuracy was = ε=3×10−3, the probability of selection was ps = 0.65, the crossover probability was pc=0.8, and the probability of variation is pm=0.03. The specific training algorithm is as follows [17]:Step 1.
Set the initial value of the iteration variable,J = 0, and then base on the determination method of parameter initial value to createL initial parent classes T1(0), T2(0), …, TL(0);Step 2.
Calculate fitness function, as shown in (9). When the smaller the value of the adaptive function is, it means the better the network training effect is [18].(9)ETlJ=12∑k=1KQ(Xk,TlJ-Q′k2,where Q(Xk,Tl(J) is the wavelet neural network output value calculated by (6), Q′k is the expected output value of prediction model, andK is the number of elements in training sample set.Step 3.
Cross and mutate thejth generation of chromosomes, and select N individuals to enter the next generation of evolution.Step 4 (determine convergence).
When the condition(Emax-Emin)/Eavg≤ε or J>Jmax is satisfied, the training algorithm ends; otherwise update the variableJ,J =J +1 and then return to Step 3. Emax, Emin, and Eavg represent the maximum, minimum, and average value of the calculated fitness function, respectively.Step 5.
Select the best combination of parameters that has reached best fitness accuracy in the previous step and then perform real-time prediction.By now, the data block hotspot prediction model with wavelet neural network as core has been completed. The training and learning of the predictive model is described in a concrete example. First, the eigenvectord1=T,ς,S,L of a data block is obtained by measuring,d1= (0.47,0.38,0.6,0.3) after normalization. Then the heat degree of data block is calculated by the heat degree equation,h = 0.45. The calculated heat degree value is the expected output value of the sample. The sample data is denoted as d1=(0.47,0.38,0.6,0.3),0.45. After selecting 1000 such sample data, the training algorithm is used to obtain the main parameters of wavelet neural network. The constructed wavelet neural network model is used to predict. For example, the input vector of the data block to be predicted isd2= (0.37,0.18,0.3,0.3); then the model output value h~=0.39 is the predicted heat degree of the data block.


## 4.1. Fuzzy Preprocessing Eigenvalues

In feature vectorT,ς,S,L, relevant file sizeS and data block lifeL have obvious uncertainty. The value difference of various sample data is larger. So if using the means of standard quantification, the value of two indexes will affect the proportion of other indexes and reduce the accuracy of training model. In order to solve this problem, these two indexes are quantified by fuzzy evaluation method, and the output of fuzzy processing is taken as the input of wavelet neural network [16].The concrete method is as follows: Firstly, we define the fuzzy setA={(a,μA(a)),a∈R,μA(a)∈[0,1])}, where μA(a) is the appurtenant degree function of the fuzzy set, which reflects the degree of the element a belonging to the fuzzy set A. For example, the data block-related file size is set to three levels: small, medium, and large. The appurtenant degree function of large file is μgreat(e(s)),{(e(s),μgreat(e(s))),e(s)∈[0,1],μgreat(e(s))∈[0,1])}, and it is expressed as the extent that the data block sizee(s) belongs to the fuzzy set large file. In order to blur file size index, we use fuzzy appurtenant function as in (2)μAa=0,a<la-lb-l,l≤a<b1,b≤a<ch-ah-c,c≤a<h.First normalize file size with maximum method, normalize it into [0,1]. Then use Equation (2) to process. For example, if e(s) = 0.47, then μsmall(0.47)=0.12, μmedian(0.47)=0.72,μgreat(0.47)=0.16; therefore E (s) = 0.47 represents the fuzzy set {(0.47,μsmall(0.47)),(0.47,μmedian(0.47)), (0.47,μgreat(0.47))}={(0.47,0.12),(0.47,0.72),(0.47,0.16)}. Design three fuzzy sets Us, Um, and Ug for data block association file size index; they represent small files, medium files, and large files, respectively (denoted as Small, Median, and Great). Then, the same method is used to define three fuzzy sets (old data, middle-aged data, and new data) for data block life index, so as to solve the fuzzy processing of this index.


## 4.2. Wavelet Neural Network Structure

The main idea of wavelet neural network is to combine wavelet function with traditional BP neural network, replace the sigmoid function in BP neural network with nonlinear wavelet basis function, and use the linear superposition of nonlinear wavelet basis to fit the nonlinear function [14]. In this paper, the wavelet neural network structure is shown in Figure 1.Figure 1
Architecture of wavelet neural networks.The wavelet neural network in Figure1 consists of input layer, fuzzy layer, inference layer, wavelet layer, and output layer. The number of neuron nodes in each layer is n, n × M, M, M, and 1, respectively.( 1 ) Input layer (Layer 1): Each node of this layer is directly connected to each input component xj of the eigenvector, and passes the input value X=[x1,x2,x3,…,xn] to the next layer. Here the eigenvector is T,ς,S,L, n=4;( 2 ) Fuzzy layer (Layer 2): Through the fuzzy rules, the input vector is transformed into fuzzy values. Here Gaussian function is used to complete the work of the fuzzy appurtenant function, as shown in (3)Fjxi=exp⁡-xi-cij22σij2j=1,2,…,n,i=1,2,…,m,where i is the component of input vector, j is the ordinal number of fuzzy rule, cij and σij are the center position and distribution parameter of Gaussian function, respectively. In addition, the fuzzy rule can be described as Ri: if x1 is Ai1 then yi = Bi1.( 3 ) Rule layer (Layer 3): Rule layer is also known as inference layer. Each neuron corresponds to a fuzzy rule. Then we use the following formula to calculate the fitness degree of fuzzy rules.(4)μjx=∏j=1nFjxii=1,…,m.In (4),n is the rule ordinal number and μj(x) is the input value of next layer.( 4 ) Wavelet layer (Layer 4): The wavelet network layer output is mainly used for output compensation. The output of the neurons of this layer is calculated by using (5)woj=wjΨjzΨjz=∑i=1m1aij1-zij2e-zij2/2,where zij=xi-bij/aij is the weight of the connection from theith node of input layer to thejth node of wavelet layer; wj is the weight of the connection from thejth node of wavelet layer to output layer;aij is the extension and contraction parameter of wavelet function;bij is the translation parameter of wavelet function.( 5 ) Output layer (Layer 5): This layer is the final output layer of wavelet neural network. It will produce prediction results of predictive model. As a result of using fuzzy rules to quantify eigenvector index, this layer also perform defuzzy calculation, so it is also known as anti-fuzzy layer.


## 4.3. Training Algorithm

The wavelet neural network model in the previous section can be expressed as follows:(6)QX=∑j=1NWijJΨjz+θ¯,where X=x1,x2,x3,…,xMT is input vector; as shown in (5) and Ψj(z) is the neuron wavelet activation function of wavelet layer; Wij is the weight of the connection from thejth node of wavelet layer to output layer and θ¯ is the average estimated value of output sequence; Q(X) is the output value of wavelet neural network. The purpose of wavelet neural network training is to use sample data to determine the important parameters. This model parameters to be trained areZij,Wj,aj,bj, and θ¯. We do not use the batch approach of traditional BP for training. Here we use genetic algorithm for repeated approximation to actual measurement data in sample space to obtain. Firstly, the parameters to be trained in model are constructed into parameter vector with string structure by their order. Each vector is a chromosome for genetic operation. Each chromosome is encoded with a real number. The initial value of the parameter is determined by the following method:(1) Determination of Stretching and Translation Parameters.According to the nature of wavelet function, the window center position and width of the wavelet function are fixed values. Given that the initial center of the wavelet window isx0j and the window width is Δx0j, then the scaling factoraj is given by the following formula:(7)aj=∑j=1Mxjmax-∑j=1MxjminΔx0j.The translation factorbj is determined by Equation (8):(8)bj=0.5×∑j=1Mxjmax+∑j=1Mxjmin-aj×x0j,M in (7) and (8) are the number of input vectors. xjmax and xjmin are the maximum and minimum sample values of thej-th neuron of the input layer, respectively.(2) Determination of Network Weights.The initial value of the weight from input layer to wavelet layer Zij and the weight from wavelet layer to output layer Wj is to select a uniformly distributed random number in [-1,1] and to ensure that the various values are not zero.(3) Determination of the Parameter θ ¯ .It is obtained according to the calculated mean of partial sample data.Then it is constantly updated and corrected during calculation.Before the start of wavelet neural network training, the genetic population size was set toL = 200, the maximum number of iterations wasJ = 300, the network convergence accuracy was = ε=3×10−3, the probability of selection was ps = 0.65, the crossover probability was pc=0.8, and the probability of variation is pm=0.03. The specific training algorithm is as follows [17]:Step 1.
Set the initial value of the iteration variable,J = 0, and then base on the determination method of parameter initial value to createL initial parent classes T1(0), T2(0), …, TL(0);Step 2.
Calculate fitness function, as shown in (9). When the smaller the value of the adaptive function is, it means the better the network training effect is [18].(9)ETlJ=12∑k=1KQ(Xk,TlJ-Q′k2,where Q(Xk,Tl(J) is the wavelet neural network output value calculated by (6), Q′k is the expected output value of prediction model, andK is the number of elements in training sample set.Step 3.
Cross and mutate thejth generation of chromosomes, and select N individuals to enter the next generation of evolution.Step 4 (determine convergence).
When the condition(Emax-Emin)/Eavg≤ε or J>Jmax is satisfied, the training algorithm ends; otherwise update the variableJ,J =J +1 and then return to Step 3. Emax, Emin, and Eavg represent the maximum, minimum, and average value of the calculated fitness function, respectively.Step 5.
Select the best combination of parameters that has reached best fitness accuracy in the previous step and then perform real-time prediction.By now, the data block hotspot prediction model with wavelet neural network as core has been completed. The training and learning of the predictive model is described in a concrete example. First, the eigenvectord1=T,ς,S,L of a data block is obtained by measuring,d1= (0.47,0.38,0.6,0.3) after normalization. Then the heat degree of data block is calculated by the heat degree equation,h = 0.45. The calculated heat degree value is the expected output value of the sample. The sample data is denoted as d1=(0.47,0.38,0.6,0.3),0.45. After selecting 1000 such sample data, the training algorithm is used to obtain the main parameters of wavelet neural network. The constructed wavelet neural network model is used to predict. For example, the input vector of the data block to be predicted isd2= (0.37,0.18,0.3,0.3); then the model output value h~=0.39 is the predicted heat degree of the data block.


## 5. Experiment and Analysis

Since the existing disk load dataset does not provide detailed I/O information, we use the disk access data in actual production environment to train the prediction model and perform performance analysis. The experimental environment is Linux operating system, and the file system is ext2, each data block is 4KB. The following methods are used to measure the access character data of data blocks in disk: Blktrace is used to collect I/O data of disk data blocks in Linux system. Blktrace can monitor the I/O events of a particular disk block device, capture and record events such as reading, writing, and synchronous operations [19]. Then blkparse is used to analyze blktrace log data, and we can obtain the attributes such as the processes which accessed the data block, the associated file node, and timestamp. Writing script analysis program based on this tool software, access feature attributes of any one data block of the monitored disk such as access frequency, access density, associated file size, and concurrent program number can be obtained.


### 5.1. Performance Analysis

In this section, we mainly validate the advantages of the prediction model constructed by wavelet neural network. In this paper, we use traditional BP neural network as the benchmark model to compare. First observe the distribution of access attributes of sample data block, as shown in Figure2.Figure 2
Sample data attribute distribution diagram.In Figure2, x, y and z denotes the access frequency, access density and data block inertia within unit time in data block respectively, and the data range is [0,1] after normalization. It can be seen from the figure that the access property has a certain extent of regularity. There is obvious aggregation phenomenon. In BP model, the excitation function of neuron isS function. The common sample data of two models is used to train the batch model. The weights and coefficients in BP network are adjusted adaptively. The minimum mean square error energy function is used to optimize network parameters. The error is as follows:(10)E=12∑l=1Lyl-y^l2,where l is the number of samples and yl and y^l are the actual value and the predicted value, respectively. The gradient descent method is used to calculate the instantaneous gradient vector. The learning rate parameter in the reverse propagation process η=0.05. In order to facilitate distinction, the proposed model is denoted as WNN and the benchmark model is BP neural network. The two models use same sample data to train and test. The training speed of the two predictive models is compared. Firstly, 300 sample data are randomly selected to train the two prediction models. The data preprocessing modes are same. The error of WNN and BP model is shown in Figure 3. The error accuracy of WNN is lower than the pre-set value after 57 iterations. BP is not lower than the preset value until after 217 iterations.Figure 3
Training comparisons of WNN and BP.In addition to adjusting network weights, the WNN model can adjust the scaling factor and translation factor of wavelet function. It has better adaptability and elasticity than BP model and has more sensitive nonlinear fitting ability.


### 5.2. Comparison of Prediction Accuracy

In this section, we use the trained prediction model in previous section for identifying hot data block The main purpose is to compare prediction accuracy of the two models. The accuracy of wavelet neural network and BP is compared by selecting 10 actual measured data, as shown in Table1. Table 1 lists the predicted values (average values) and the variance of predicted values generated by the two models.Table 1
Comparison of predicted results.
ID measured value WNN BP predicted variance predicted variance 1 0.592 0.583 0.019 0.610 0.044 2 0.081 0.082 0.003 0.010 0.001 3 0.453 0.446 0.015 0.467 0.034 4 0.403 0.409 0.013 0.415 0.03 5 0.102 0.103 0.003 0.098 0.007 6 0.073 0.071 0.002 0.075 0.005 7 0.415 0.421 0.014 0.402 0.029 8 0.524 0.515 0.017 0.540 0.039 9 0.173 0.175 0.006 0.167 0.012 10 0.393 0.386 0.013 0.380 0.027The experimental results show that the prediction error of WNN is 1.6%, while the prediction error of BP is 3.1%. This indicates that WNN has better nonlinear fitting ability. In addition, the variance of the predicted value of WNN is 3.3%, while the variance of BP is 7.1%. This indicates that WNN prediction model has better fault tolerance capacity. This is because that BP neural network excitation function uses conventionalS function. This excitation function is relatively smooth. It cannot quickly respond to those sample data which changes rapidly from wave peak to wave trough, resulting in that the trained model is not stable enough in real-time prediction.


### 5.3. Model Robustness

In this section, we can verify that WNN has multi-dimensional learning ability, train the learning with high frequency by adjusting scaling and translation factors in data dense area and train the learning with low frequency in data sparse area. So it has the ability to automatically adapt to sample data. Here 300 samples of sample data intensive area are selected to train the two prediction models. Then 10 testing data of previous section are used to verify prediction accuracy. Training and comparison is shown in Figure4.Figure 4
Training comparisons of dense sample data of WNN and BP.As shown in Figure4, the WNN model reaches the preset error value after 56 iterations. The BP model is lower than the pre-set error after 75th iteration. Comparing Figure 4 and Figure 3, it can be found that the convergence rate of BP model is greatly improved. This is mainly due to the better training effect of dense sample. The prediction accuracy comparison is shown in Table 2.Table 2
Comparison of predictive results of dense area data after training.
ID Measured value WNN BP predicted variance predicted variance 1 0.592 0.581 0.019 0.580 0.020 2 0.081 0.083 0.003 0.079 0.003 3 0.453 0.447 0.015 0.463 0.016 4 0.403 0.406 0.013 0.395 0.014 5 0.102 0.104 0.003 0.104 0.004 6 0.073 0.074 0.002 0.071 0.002 7 0.415 0.422 0.014 0.424 0.015 8 0.524 0.517 0.017 0.513 0.018 9 0.173 0.174 0.006 0.177 0.006 10 0.393 0.387 0.013 0.385 0.013As shown in Table2, the prediction error of WNN is basically the same, while the prediction error of BP is reduced to 2.1%. This indicates that BP model is better trained in the dense data area. So the prediction accuracy is improved. In addition, the predicted variance of BP model decreases from 7.1% in previous section to 3.5%, which is basically similar to the predicted variance of WNN. The above results show that the training effect of BP is improved and the prediction ability is enhanced in the area with dense sample data. In order to highlight the advantages that WNN has better adaptive ability to sample data, another 100 data are selected from the sparse area of sample data to retrain the two prediction models. Finally, the verification data is used to compare the prediction accuracy and stability.As shown in Figure5, when using sparse area sample data to train the prediction model, WNN converges into the pre-set error range at the 61st iteration, while BP model is just lower than the pre-set error at 225th iteration. This indicates that BP model has a poorer adaptive ability to sparse area sample data. The comparison of prediction accuracy is shown in Table 3.Table 3
Comparison of predicted results of sparse area data after training.
ID Measured value WNN BP predicted variance predicted variance 1 0.592 0.584 0.019 0.612 0.057 2 0.081 0.083 0.003 0.078 0.007 3 0.453 0.444 0.015 0.468 0.044 4 0.403 0.408 0.013 0.390 0.036 5 0.102 0.104 0.003 0.105 0.010 6 0.073 0.070 0.002 0.071 0.007 7 0.415 0.422 0.014 0.429 0.040 8 0.524 0.514 0.017 0.507 0.047 9 0.173 0.175 0.006 0.179 0.017 10 0.393 0.385 0.013 0.380 0.035Figure 5
Training comparisons of sparse sample data of WNN and BP.In prediction accuracy, the predicted mean value and variance of WNN are kept stable. The prediction accuracy of BP is reduced from 3.1% to 3.3%. Especially, the variance of the predicted value is reduced to 9.7%. This indicates that the prediction robustness of BP is lower than that of WNN. The dependence on sample data is stronger. It indicates that the generalized learning ability of WNN prediction model is better than that of the prediction model constructed with BP neural network.


### 5.4. Comparison with Statistical Method

In literature [13], the identifying hot data block is used as a Data-block temperature model. This model called EESDC was applied to reducing data migration overhead and improving energy-efficient of large-scale streaming media storage systems. Note that we used the identifying hot data method as benchmark model, which belongs to the statistical model. To compare with EESDC, we further demonstrate that our proposed model is better than the traditional statistical models. This experiment is designed on a video learning website of campus. The hybrid storage system of website has large-scale stream video files for students. These video files have different hot degree for users. Such as some videos may be popular for one or two hours, some videos even keep hot for many days. Here we select different kind’s videos to verify our model and benchmark model.As shown in Figure6, x axis represents the data block frequency period. Asx equals 4, this means that this kind video files are accessed frequently in four hours. Here 100 file of each kind of stream video is selected and used two prediction models to identify the data block status. y axis shows the prediction accuracy. The WNN prediction model is stable for different kinds of video files. However, EESDC is not well in handling video files, whose hot degree change fast in short period. The prediction accuracy of EESDC gradually increases while increasing the frequency access period. This comparison shows that our proposed model overcomes the cumulative effect of traditional statistical methods and is suitable to prediction short-term variation data block.Figure 6
Prediction accuracy comparison of WNN and traditional statistical model.


## 5.1. Performance Analysis

In this section, we mainly validate the advantages of the prediction model constructed by wavelet neural network. In this paper, we use traditional BP neural network as the benchmark model to compare. First observe the distribution of access attributes of sample data block, as shown in Figure2.Figure 2
Sample data attribute distribution diagram.In Figure2, x, y and z denotes the access frequency, access density and data block inertia within unit time in data block respectively, and the data range is [0,1] after normalization. It can be seen from the figure that the access property has a certain extent of regularity. There is obvious aggregation phenomenon. In BP model, the excitation function of neuron isS function. The common sample data of two models is used to train the batch model. The weights and coefficients in BP network are adjusted adaptively. The minimum mean square error energy function is used to optimize network parameters. The error is as follows:(10)E=12∑l=1Lyl-y^l2,where l is the number of samples and yl and y^l are the actual value and the predicted value, respectively. The gradient descent method is used to calculate the instantaneous gradient vector. The learning rate parameter in the reverse propagation process η=0.05. In order to facilitate distinction, the proposed model is denoted as WNN and the benchmark model is BP neural network. The two models use same sample data to train and test. The training speed of the two predictive models is compared. Firstly, 300 sample data are randomly selected to train the two prediction models. The data preprocessing modes are same. The error of WNN and BP model is shown in Figure 3. The error accuracy of WNN is lower than the pre-set value after 57 iterations. BP is not lower than the preset value until after 217 iterations.Figure 3
Training comparisons of WNN and BP.In addition to adjusting network weights, the WNN model can adjust the scaling factor and translation factor of wavelet function. It has better adaptability and elasticity than BP model and has more sensitive nonlinear fitting ability.


## 5.2. Comparison of Prediction Accuracy

In this section, we use the trained prediction model in previous section for identifying hot data block The main purpose is to compare prediction accuracy of the two models. The accuracy of wavelet neural network and BP is compared by selecting 10 actual measured data, as shown in Table1. Table 1 lists the predicted values (average values) and the variance of predicted values generated by the two models.Table 1
Comparison of predicted results.
ID measured value WNN BP predicted variance predicted variance 1 0.592 0.583 0.019 0.610 0.044 2 0.081 0.082 0.003 0.010 0.001 3 0.453 0.446 0.015 0.467 0.034 4 0.403 0.409 0.013 0.415 0.03 5 0.102 0.103 0.003 0.098 0.007 6 0.073 0.071 0.002 0.075 0.005 7 0.415 0.421 0.014 0.402 0.029 8 0.524 0.515 0.017 0.540 0.039 9 0.173 0.175 0.006 0.167 0.012 10 0.393 0.386 0.013 0.380 0.027The experimental results show that the prediction error of WNN is 1.6%, while the prediction error of BP is 3.1%. This indicates that WNN has better nonlinear fitting ability. In addition, the variance of the predicted value of WNN is 3.3%, while the variance of BP is 7.1%. This indicates that WNN prediction model has better fault tolerance capacity. This is because that BP neural network excitation function uses conventionalS function. This excitation function is relatively smooth. It cannot quickly respond to those sample data which changes rapidly from wave peak to wave trough, resulting in that the trained model is not stable enough in real-time prediction.


## 5.3. Model Robustness

In this section, we can verify that WNN has multi-dimensional learning ability, train the learning with high frequency by adjusting scaling and translation factors in data dense area and train the learning with low frequency in data sparse area. So it has the ability to automatically adapt to sample data. Here 300 samples of sample data intensive area are selected to train the two prediction models. Then 10 testing data of previous section are used to verify prediction accuracy. Training and comparison is shown in Figure4.Figure 4
Training comparisons of dense sample data of WNN and BP.As shown in Figure4, the WNN model reaches the preset error value after 56 iterations. The BP model is lower than the pre-set error after 75th iteration. Comparing Figure 4 and Figure 3, it can be found that the convergence rate of BP model is greatly improved. This is mainly due to the better training effect of dense sample. The prediction accuracy comparison is shown in Table 2.Table 2
Comparison of predictive results of dense area data after training.
ID Measured value WNN BP predicted variance predicted variance 1 0.592 0.581 0.019 0.580 0.020 2 0.081 0.083 0.003 0.079 0.003 3 0.453 0.447 0.015 0.463 0.016 4 0.403 0.406 0.013 0.395 0.014 5 0.102 0.104 0.003 0.104 0.004 6 0.073 0.074 0.002 0.071 0.002 7 0.415 0.422 0.014 0.424 0.015 8 0.524 0.517 0.017 0.513 0.018 9 0.173 0.174 0.006 0.177 0.006 10 0.393 0.387 0.013 0.385 0.013As shown in Table2, the prediction error of WNN is basically the same, while the prediction error of BP is reduced to 2.1%. This indicates that BP model is better trained in the dense data area. So the prediction accuracy is improved. In addition, the predicted variance of BP model decreases from 7.1% in previous section to 3.5%, which is basically similar to the predicted variance of WNN. The above results show that the training effect of BP is improved and the prediction ability is enhanced in the area with dense sample data. In order to highlight the advantages that WNN has better adaptive ability to sample data, another 100 data are selected from the sparse area of sample data to retrain the two prediction models. Finally, the verification data is used to compare the prediction accuracy and stability.As shown in Figure5, when using sparse area sample data to train the prediction model, WNN converges into the pre-set error range at the 61st iteration, while BP model is just lower than the pre-set error at 225th iteration. This indicates that BP model has a poorer adaptive ability to sparse area sample data. The comparison of prediction accuracy is shown in Table 3.Table 3
Comparison of predicted results of sparse area data after training.
ID Measured value WNN BP predicted variance predicted variance 1 0.592 0.584 0.019 0.612 0.057 2 0.081 0.083 0.003 0.078 0.007 3 0.453 0.444 0.015 0.468 0.044 4 0.403 0.408 0.013 0.390 0.036 5 0.102 0.104 0.003 0.105 0.010 6 0.073 0.070 0.002 0.071 0.007 7 0.415 0.422 0.014 0.429 0.040 8 0.524 0.514 0.017 0.507 0.047 9 0.173 0.175 0.006 0.179 0.017 10 0.393 0.385 0.013 0.380 0.035Figure 5
Training comparisons of sparse sample data of WNN and BP.In prediction accuracy, the predicted mean value and variance of WNN are kept stable. The prediction accuracy of BP is reduced from 3.1% to 3.3%. Especially, the variance of the predicted value is reduced to 9.7%. This indicates that the prediction robustness of BP is lower than that of WNN. The dependence on sample data is stronger. It indicates that the generalized learning ability of WNN prediction model is better than that of the prediction model constructed with BP neural network.


## 5.4. Comparison with Statistical Method

In literature [13], the identifying hot data block is used as a Data-block temperature model. This model called EESDC was applied to reducing data migration overhead and improving energy-efficient of large-scale streaming media storage systems. Note that we used the identifying hot data method as benchmark model, which belongs to the statistical model. To compare with EESDC, we further demonstrate that our proposed model is better than the traditional statistical models. This experiment is designed on a video learning website of campus. The hybrid storage system of website has large-scale stream video files for students. These video files have different hot degree for users. Such as some videos may be popular for one or two hours, some videos even keep hot for many days. Here we select different kind’s videos to verify our model and benchmark model.As shown in Figure6, x axis represents the data block frequency period. Asx equals 4, this means that this kind video files are accessed frequently in four hours. Here 100 file of each kind of stream video is selected and used two prediction models to identify the data block status. y axis shows the prediction accuracy. The WNN prediction model is stable for different kinds of video files. However, EESDC is not well in handling video files, whose hot degree change fast in short period. The prediction accuracy of EESDC gradually increases while increasing the frequency access period. This comparison shows that our proposed model overcomes the cumulative effect of traditional statistical methods and is suitable to prediction short-term variation data block.Figure 6
Prediction accuracy comparison of WNN and traditional statistical model.


## 6. Conclusion

To handle the large-scale data migration in distribution storage system and improve the performance of migration, a novel prediction model of data block status was provided to judge the heat degree of data block. We extracted the access features of data block and used those features as input vector to train the prediction model. The kernel of prediction model is wavelet neural network that has better capacity than other models. Additionally, we used the fuzzy rule to deal with the uncertain of sampling data. Compared with BP neural network, our proposed prediction model has better nonlinear fitting capacity due to the fact that wavelet neural network can learn with low frequency in sparse sample area and with high frequency in dense sample area. The experimental results show that our proposed prediction model has better generalization capacity and robustness than BP model and relevant model. In the future, we will integrate this prediction model into the data migration model and verify the prediction accuracy in the production environment.



---

*Source: 3719564-2018-10-30.xml*