Summary of the invention:
Determine it mainly is the long-term work experience that relies on the site operation personnel at existing ball mill load, be difficult to measure the inner parameter that characterizes ball mill load, and existing detection method is difficult to fully extract the non-linear of signal, cause in the industrial process being the security of assurance equipment, bowl mill often operates in the underload state, influence bowl mill treatment capacity and product quality, can't produce the problem that obtains maximum economic benefits targetedly according to the market demand, but the invention provides a kind of ball mill load soft-sensing method based on the fusion of multi-source data feature of measure field ball mill load parameter.By adopting core pivot element analysis (KPCA) to carry out the nonlinear characteristic extraction respectively to ball mill barrel vibration and basic, normal, high three frequency ranges of acoustical signal in frequency domain of shaking, and the nonlinear characteristic of fusion time domain current signal, carry out feature selecting in conjunction with least square-support vector machine (LSSVM) method, to reach the purpose of accurate detection ball mill load parameter.
Flexible measurement method of the present invention is made up of bowl mill hardware support platform and soft Survey Software, and hardware platform provides the flexible measurement method desired data, and soft Survey Software is responsible for implementing flexible measurement method proposed by the invention.Soft Survey Software namely can be installed on the supervisory control comuter of distributed computer control system, also can run on independently on the computing machine.This method obtains real-time ball mill barrel vibration, the data of shake sound, current signal by carrying out communication with hardware support platform, detects ball mill load parameter (material ball ratio, pulp density, pack completeness).
It is as follows to the present invention includes step: as illustrated in fig. 1 and 2
Step 1: the vibration of collection bowl mill, shake sound and current data
Gather following signal by hardware support platform: the vibration acceleration signal X of ball mill barrel
VThe acoustical signal X that shakes of below, ball mill grinding zone
AThe current signal X of bowl mill driving motor
I
Above signal is carried out signal to be handled, with the input as soft-sensing model of the nonlinear characteristic extracting and select, On-line Estimation ball mill load inner parameter is material ball ratio, pulp density, pack completeness, ball mill load parameter flexible measurement method is formed sample according to following structure, and collects sample data.The sample expression formula is { x
k, y
k, wherein, x
kSignal---the vibration signal X of ball mill barrel that namely gathers for the input of sample
V, the acoustical signal of shaking X
A, current signal X
I, the output y of sample
kBe leading variable to be estimated---ball mill load parameter: material ball ratio y
1, pulp density y
2, pack completeness y
3Recording mechanism such as the table 1 of sample, the time is the time that sample obtains.
Table 1 sample data structure
Consider that sample data should be representative, and coverage should comprise the high pulp density in the ball mill grinding process, low pulp density than money as much as possible; High pack completeness, low pack completeness; Operating modes such as high material ball ratio, low material ball ratio.Sample is divided into two groups, and one group of training that is used for the model error minimum comes preference pattern parameter (comprising model training sample and error training sample), and another group is used for verification of model.
Step 2: the bowl mill vibration of gathering, shake sound and current data are carried out filtering
Adopt finite impulse response filter respectively bandpass filtering and low-pass filtering to be carried out in vibration and the acoustical signal of shaking.The wave filter formula is formula as follows:
In the formula, h (n)---the coefficient of wave filter;
The length of N---wave filter;
Y (m)---the output that wave filter is ordered at m;
X (m-n)---(m-n) individual input of wave filter;
N---sampling instant n=0,1 ... N-1;
M---current sampling instant;
Adopt the mean filter method that current signal is carried out filtering, formula is formula as follows:
In the formula, y (m)---the output of wave filter, the i.e. arithmetic mean of N sampling;
x
n---the n time sampled value;
N---sampling number;
Step 3: the time-frequency conversion is carried out in filtered vibration and the data of shaking
Comprising a large amount of useful informations relevant with process of lapping in the steady periodic vibration that produces in the bowl mill mechanical lapping process and the acoustical signal of shaking.But in the time domain, this information is but covered by random noise signal " white noise ".Ball mill barrel vibration and the acoustical signal of shaking can be decomposed into the sinusoidal signal of stack in frequency domain, and the amplitude of the sinusoidal signal of these different frequency ranges is comprising directly and the operation state information of bowl mill.For guaranteeing that the nothing of power spectrum is estimated partially, adopt improved average period figure method to ask the ball mill barrel vibration of bowl mill rotation complete cycle and the power spectrum density (PSD) of the acoustical signal of shaking, by following formula:
In the formula,
---the general power spectrum;
P
r(k)---the power spectrum of r section;
The hop count of R---segmentation;
N---the number of data points of X Serial No.;
K---for the frequency of trying to achieve is counted.
Step 4: frequency spectrum data and time domain current data to vibration and the acoustical signal of shaking are carried out the nonlinear characteristic extraction
4.1 the frequency spectrum data data of vibration and the acoustical signal of shaking are carried out nonlinear characteristic to be extracted
Analyze the feature of bowl mill frequency-region signal under the different operating modes of bowl mill, signal extension was to Mid Frequency when the time-frequency domain signal that dallies as can be known mainly concentrated on low-frequency range, dry grinding; And its Mid Frequency feature is obvious during wet-milling, and the concentration in bowl mill is lower, and there is tangible high band in pack completeness when higher; Then the high band feature is obvious during water mill.Therefore, the wet ball mill frequency-region signal can be divided into low-frequency range, Mid Frequency and high band, it is corresponding the natural frequency section of bowl mill, main frequency of impact section, less important frequency of impact section respectively.The ball mill barrel vibration signal remembered respectively in the data of basic, normal, high frequency be X
V_LF_org, X
V_MF_org, X
V_HF_orgThe acoustical signal of shaking is remembered respectively in the nonlinear characteristic of basic, normal, high frequency and is X
A_LF_org, X
A_MF_org, X
A_HF_org, there is the problem of higher-dimension and collinearity in these frequency spectrum datas, adopt core pivot element analysis (KPCA) respectively to X
V_LF_org, X
V_MF_org, X
V_HF_org, X
A_LF_org, X
A_MF_org, X
A_HF_orgCarrying out dimensionality reduction and nonlinear characteristic extracts.
Nonlinear characteristic leaching process based on core pivot element analysis is described below:
The basic thought of core principle component analysis is to pass through a nonlinear transformation Φ earlier input data X (X ∈ R
N) be mapped on the high-dimensional feature space F F={ Φ (X): X ∈ R
N, carry out classical linear principal component analysis (PCA) at feature space F then, in order to realize the linear classification that the input space can't realize.Sample vector after supposing to shine upon is by centralization, and namely satisfying its average is 0, can be expressed as
Then mapping back covariance matrix of sample set on the F space may be defined as
With this matrix characteristic of correspondence value equation be
λv=Cv (6)
According to reproducing kernel (theory of reproducing kernel) theory, because in feature space F, corresponding proper vector v one is positioned by { Φ (X for arbitrary eigenvalue ≠ 0
1) ..., Φ (X
M) in the space of opening.Consider that the institute's directed quantity among the feature space F all can be by Φ (X
i) linear combination, so have:
M * M rank nuclear matrix K is defined as:
K
i,j=K(X
i,X
j)=Φ(X
i)
TΦ(X
j) (8)
In the formula: i, j all represent which concrete sample;
After formula (5), formula (7), formula (8) substitution formula (6), can get the following eigenwert equation of all representing with kernel function
The problem that so just will find the solution formula (6) proper vector v converts the problem of the proper vector α of the formula of finding the solution (9) eigenwert equation to.If the solution of this eigenwert equation is descending be: λ
1〉=λ
1〉=... 〉=λ
M〉=0, the characteristic of correspondence vector is α
1, α
2..., α
M, be v corresponding to the eigenvector of formula (6)
1, v
2..., v
M, and hypothesis λ
MBe last nonzero eigenvalue, then advise a condition from the quadrature of eigenvector
Expression is to all g, r=1, and 2 ..., M has
Just can derive about proper vector α
kQuadrature advise a condition, namely
And then just can be drawn the unique solution { α of proper vector by formula (9) and conditional (11)
k, k=1,2 ... M};
So to arbitrary sample X of the input space, can try to achieve h the major component t of its Φ (X) in higher dimensional space F by following formula
h, namely it is at h major component eigenvector v
hProjection on the direction:
In the formula: t
h---h pivot;
α
k---the proper vector of covariance matrix;
The eigenwert of λ---covariance matrix;
Φ---non-linear transform function;
The number of M---sample data;
v
h---in the higher dimensional space, the eigenvector of h main composition;
K---M * M rank nuclear matrix;
The number of h---pivot.
Suppose the sample vector centralization of high-dimensional feature space before, so need handle carrying out centralization by the nuclear matrix after the original data space mapping by following formula:
In the formula:
---the nuclear matrix after centralization is handled;
I
M---coefficient is the unit matrix of 1/M;
Nuclear matrix before K---centralization is handled.
Thereby, to vibration and shake acoustical signal totally six frequency ranges extract nonlinear characteristics and all extract by following formula:
With the Spectral variation X of ball mill barrel vibration signal at basic, normal, high frequency
V_LF_org, X
V_MF_org, X
V_HF_orgThe nonlinear characteristic of extracting is remembered respectively and is X
V_LF, X
V_MF, X
V_HFThe bowl mill Spectral variation X of acoustical signal at basic, normal, high frequency that shake
A_LF_org, X
A_MF_org, X
A_HF_orgThe nonlinear characteristic of extracting is remembered respectively and is X
A_LF, X
A_MF, X
A_HF, its value is represented with following formula respectively:
In the formula,
---represent the maximum pivot number that each frequency range is extracted.The following formula of the employing of its value:
In the formula, CPV
HM---before expression vibration or the acoustical signal of shaking
The variance accumulation sum of individual pivot;
M=[V, A]---expression vibration (V) and the acoustical signal of shaking (A);
N=[L, M, H]---this do not represent frequency-region signal low (L), in (M), high (H) frequency range;
To the new samples data, press following formula produced nucleus matrix:
In the formula, X
Test---expression new samples data;
K
Test---the nuclear matrix of expression new samples data;
L---the sample size that is the new samples data is line number.
I
N' be a matrix that coefficient is 1/L L * M, L is the line number of new data.
New samples data core matrix carries out centralization by following formula:
In the formula,
---the new samples nuclear matrix after the centralization;
I
M'---coefficient is the matrix of 1/L L * M;
4.2 current data is carried out nonlinear characteristic to be extracted
Many theoretical researches and application in practice show, have tangible nonlinear relationship between current signal and ball mill load.Adopt with step 4.1 in identical method be nonlinear characteristic in the KPCA extraction time domain bowl mill current signal.Nonlinear characteristic note after the extraction is X
I, its value can be represented by the formula:
In the formula, t---pivot, i.e. nonlinear characteristic of Ti Quing; h
Imax---expression is carried out maximum pivot number after nonlinear characteristic is extracted at the time domain current signal.Its value adopts following formula to determine:
In the formula,
---h before the expression current signal
ImaxThe variance accumulation sum of individual pivot.
Step 5: the fused data after vibration, the sound that shakes, the extraction of electric current nonlinear characteristic is carried out feature selecting
Pivot analysis (PCA) when being applied to nonlinear system, though less pivot represents unessential variance, may comprise important system information based on linear dependence and Gaussian statistics hypothesis.Though core pivot element analysis (KPCA) method is to determine pivot in high-dimensional feature space, have good non-linear approximation capability and feature extraction ability, but its essence remains the characteristic information of describing in the response variable X data space, and the size of the characteristic information among the X might not be relevant with predictive variable Y.Therefore, need rationally to determine the pivot number of KPCA.Simultaneously, the mill load parameter that this paper will predict, the different frequency range in the vibration of material ball ratio, pulp density and pack completeness and grinding machine, the acoustical signal of shaking is relevant, need be the pivot number of different forecast model selection varying number.The choose reasonable of model input variable can also improve the precision of prediction of mill load parameter model, prevents from fitting.The present invention with every class in the nonlinear characteristic input variable the set of optimization variables number (the pivot number of KPCA) be called the characteristic parameter collection, and be expressed as:
In conjunction with least square-supporting vector machine model, the definite of the characteristic parameter collection of material ball ratio, pulp density and pack completeness soft-sensing model all adopts following characteristic parameter to optimize model:
In the formula, RMSE
Val---the minimum of least square-supporting vector machine model is estimated error;
---the low middle height of acoustical signal in frequency domain vibrates and shakes
Three frequency ranges are carried out the maximum pivot number that can select after KPCA dimensionality reduction and the feature extraction;
CPV
HMN---before expression vibration or the acoustical signal of shaking
The variance accumulation sum of individual pivot;
M=[V, A]---expression vibration (V) and the acoustical signal of shaking (A);
N=[L, M, H]---this do not represent frequency-region signal low (L), in (M), high (H) frequency range;
---be that the time domain current signal carries out the maximum pivot number after the KPCA nonlinear characteristic is extracted, generally get 1;
The line number of n---input variable is sample number;
Y---the true value of mill load parameter;
---the estimated value of mill load parameter is the calculated value of model.
According to the following steps material ball ratio model, concentration model, pack completeness model are carried out feature selecting, its selection course at first is to adopt whole characteristic variables to obtain the parameter of model as the input of least square-supporting vector machine model, and next carries out the selection of characteristic parameter.Its flow process as shown in Figure 3.Specific as follows:
(5.1) beginning: carry out initialization operation, by following formula assemblage characteristic variable and be designated as X
All, as the input variable of least square-supporting vector machine model: X
All=[X
V_LF, X
V_MF, X
V_HF, X
A_LF, X
A_MF, X
A_HF, X
I], the characteristic parameter collection of this moment
(5.2) whole sample datas are carried out standardization: the data that sample data are standardized as 0 average, 1 variance;
(5.3) setting range of Select Error punishment parameter and nuclear parameter: determine the error penalty of model training use and the interval range of kernel function are convenient to select the best model parameter according to experience;
(5.4) adjust error punishment parameter and nuclear parameter: from the lower limit of the scope setting of each autoregressive parameter, step-length of each parameter circulation as the parameter after adjusting, is used for setting up corresponding model and this group parameter being carried out error assessment at every turn;
(5.5) set up to select whole feature X
AllModel for the model input variable: the fundamental purpose of setting up this model is the initial option model parameter: error punishment parameter and nuclear parameter;
Based on the model of least square-support vector machine to set up process prescription as follows:
Be [x (k), y (k)] for given training set, k ∈ [1, M], wherein x (k) ∈ R
d, y (k) ∈ R, d is the number of auxiliary variable, the basic idea about modeling of support vector machine be at first by Nonlinear Mapping Φ (X) with input vector from former space R
dBe mapped to a high-dimensional feature space F, in this high-dimensional feature space, adopt structural risk minimization structure optimal decision function, and the kernel function of utilizing former space replaces the dot-product operation of high-dimensional feature space to avoid complex calculation, thereby the nonlinear function estimation problem is converted into the linear function problem of high-dimensional feature space, and the optimal decision function of its structure has following form:
f(x)=W
TΦ(x)+b (21)
In the formula, W---weight vector;
B---amount of bias;
Φ (x)---low-dimensional is to the Nonlinear Mapping of higher dimensional space;
The purpose of finding the solution is utilized structural risk minimization exactly, seeks parameter W
TAnd b, make for the outer input x of sample have | y
k-(W
TΦ (x
k)-b|≤ε seeks W
TBe equivalent to b and find the solution following optimization problem;
Wherein, the complexity of W control model; J is the performance index that need optimization; C>0th, the error penalty, the smoothness of representative function and permissible error are greater than trading off between the numerical value of ε; R
EmpBe empiric risk, i.e. ε insensitive loss function, it is defined as:
In the formula, M---sample size;
By defining different loss functions, just can construct different support vector machine, least square method supporting vector machine is exactly the quadratic term ξ that has selected error
k 2Loss function is ξ in the replacement standard support vector machine optimization aim
kNamely allow wrong slack variable of dividing, thereby the optimization problem of least square method supporting vector machine is:
s.t:y
k=W
TΦ(x
k)+b+ξ
k
J in the formula
pBe the performance index that new needs are optimized, find the solution above-mentioned optimization problem with Lagrangian method, the definition Lagrangian function is as follows:
According to optimal conditions
Can get
α
k=cξ
k,W
TΦ(x
k)+b+ξ
k-y
k=0, (25)
Definition kernel function k (x, x
k)=(Φ (x) Φ (x
k)) replacing Nonlinear Mapping, the optimization problem that can find the solution according to following formula is converted into finds the solution linear equation:
Determine coefficient b and α=[α by following formula
1..., α
M], can get soft-sensing model at last and be
Wherein kernel function is that satisfied silent plucked instrument is any symmetric function of Mercer condition, and this method adopts radially basic kernel function to replace Nonlinear Mapping, sets up soft-sensing model, and this kernel function form is:
In the formula: δ---nuclear parameter;
(5.6) read error assessment training sample data: read in one group of sample data preparing to be used for error assessment;
(5.7) recording error evaluation result and parameter: get error training sample data collection, the definition error function is:
In the formula, the sample size of L---error assessment training sample is line number;
Final error assessment function is:
E(c,δ)=min(e);
In the formula, c---be error punishment parameter;
Utilize soft-sensing model to obtain the error assessment index between given parameter region, and the record corresponding parameters;
(5.8) whether the parameter adjustment reach upper limit: definition l is for adjusting step-length, and c is error punishment parameter, c
UpBe the upper limit of punishment parameter area, δ is nuclear parameter, δ
UpThe upper limit for the nuclear parameter scope.If c+l 〉=c
UpAnd δ+l 〉=δ
UpSatisfy simultaneously, illustrate that then the error assessment work of all parameter combinations is finished, otherwise, the work of repeating step (5.4)~step (5.8);
(5.9) recording error is estimated best model parameter: with the error assessment index of record in the step (5.7), seek minimal value wherein, the selection corresponding parameters is model parameter, and this model parameter will be used as the LSSVM model parameter in the following steps;
(5.10) read in training sample after the standardization again: read in the standardized training sample of step (5.2) characteristic variable again;
(5.11) whether the feature number of Xuan Zeing reaches setting value: to input matrix X
AllDimension judge how dimension is less than setting value, think that then the calculated amount of feature selecting is less, adopt trellis algorithm to carry out feature selecting, forward step (5.24) to; Otherwise the employing genetic algorithm forwards step (5.12) to, accelerates search speed;
(5.12) characteristic variable coding: adopt the feature selecting based on genetic algorithm, directly adopt binary coding that characteristic variable is encoded, chromosomal length is made as the number of characteristic variable;
(5.13) initialization of population: random initializtion population;
(5.14) the characteristic variable coding is deciphered: the binary coding of characteristic variable is decoded as actual characteristic variable, obtains the characteristic parameter collection FP of this moment
Sel_GA_ini
(5.15) set up the LSSVM model: the method for (5.5) is set up the LSSVM model set by step, adopts model parameter and the characteristic parameter collection of step (5.9) storage;
(5.16) read error assessment training sample data;
(5.17) calculate ideal adaptation degree value: the root-mean-square error in the employing LSSVM calibration model is as the fitness function of population individuality;
(5.18) recording feature parameter set: the best characteristic parameter collection of record fitness is FP
Sel_GA_opt
(5.19) reach the setting reproductive order of generation? judge whether GA reaches the reproductive order of generation of setting, if reach, change step (5.30); Otherwise, change step (5.20);
(5.20) population is copied: the size according to ideal adaptation degree value sorts to individuality, selects optimized individual, and the more weak individuality of fitness is replaced in randomly ordered back;
(5.21) population is intersected: the single-point intersection is carried out in the male parent of assortative mating and point of crossing at random;
(5.22) population variation: adopt basic mutation operator to carry out mutation operation;
(5.23) population upgrades: the initialization population of adopting the population replacement step (5.13) after upgrading to produce, and change step (5.14);
(5.24) read a stack features parameter: read the stack features parameter F P in the grid
Sel_grid_ini
(5.25) LSSVM calibration model: the method for (5.5) is set up the LSSVM model set by step, adopts the model parameter of step (5.9) storage and the characteristic parameter that step (5.24) is selected;
(5.26) read the error assessment training sample;
(5.27) the characteristic parameter collection FP of record root-mean-square error minimum
Sel_grid_opt
Does (5.29) the total-grid search finish? judging whether trellis algorithm finishes, is then to change step (5.30); Otherwise, change step (5.20), the characteristic parameter collection step (5.24) behind the storage optimization;
(5.30) the characteristic parameter collection behind the storage optimization: select the FP by the genetic algorithm selection
Sel_GA_optOr the FP of trellis algorithm selection
Sel_GA_optThe characteristic parameter collection, and be rewritten as FP
Sel
(5.31) finish: the optimal characteristics of finishing the LSSVM model is selected;
Material ball ratio, pulp density and pack completeness model are carried out said process respectively, obtain preferred feature parameter set FP separately
Sel_mbr, FP
Sel_den, FP
Sel_bmwrCan unify to be expressed as FP
SelI, see following formula for details:
In the formula, i=1, the feature selecting parameter of 2,3 difference corresponding material ball ratio, pulp density and pack completenesss.
Step 6: load parameter material ball ratio, pulp density, the pack completeness of determining bowl mill
The flow process of setting up of ball mill load parametric prediction model is seen accompanying drawing 4, and its detailed step is as follows.
(6.1) beginning: the characteristic parameter collection FP that adopts three ball mill load parameters
Sel_iObtain the input variable of material ball ratio, pulp density and pack completeness model, the unified X that is expressed as
i, see following formula for details:
(6.2) setting range of Select Error punishment parameter and nuclear parameter: the same step of method (5.3);
(6.3) adjust error punishment parameter and nuclear parameter: the same step of method (5.4);
(6.4) set up the model of ball mill load parameter: the same step of method (5.5), the material ball ratio of foundation, pulp density and pack completeness model are as follows:
In the formula, i=1,2,3 difference corresponding material ball ratio, pulp density and pack completenesss;
(6.5) read error assessment training sample data: the same step of method (5.6);
(6.6) recording error evaluation result and parameter: the same step of method (5.7);
(6.7) the parameter adjustment reach upper limit whether: the same step of method (5.8);
(6.8) recording error is estimated best model parameter: the same step of method (5.9);
(6.9) determine model: according to the model parameter of selecting in the step (6.8), determine the model training result, determine soft-sensing model;
(6.10) read in the checking sample data: read in one group of sample data preparing to be used for modelling verification;
(6.11) modelling verification: adopt the definite model of step (6.9) according to the root-mean-square error in the step (5.7);
Does (6.12) model satisfy precision? precision meets the demands, and then changes the foundation that step (6.14) finishes model, adopts the model of setting up that material ball ratio, pulp density, pack completeness are carried out soft measurement; Otherwise, change step (6.13);
(6.13) collect the structure sample data again: the checking precision can not satisfy the needs of soft measurement, and needing increases test number (TN), re-constructs training sample, forwards step 2 to;
(6.14) finish.
Advantage of the present invention: utilize department of computer science the to unify ball mill barrel vibration that measuring instrument provides, shake sound and current signal, realized the soft measurement of ball mill load parameter (material ball ratio, pulp density, pack completeness).The present invention is highly sensitive by measurement, the ball mill barrel vibration signal of strong interference immunity, has increased sensitivity and the precision of prediction of model.Simultaneously, basic, normal, high three frequency ranges to cylindrical shell vibration and the acoustical signal of shaking that the present invention proposes are carried out the method that nonlinear characteristic is extracted respectively, combine the mechanism of production of grinding ball milling mechanism and vibration and the acoustical signal of shaking of bowl mill, fully extracted the ball mill load parameter information in the signal, the temporal signatures that has overcome vibration and the acoustical signal of shaking is difficult to extract, frequency domain variable superelevation is tieed up and the deficiency of common feature frequency range summation method.And, the feature selection approach that the present invention proposes, solve nonlinear characteristic quantity (pivot number) is difficult to rationally to determine and the input variable dimension of least square-supporting vector machine model too much causes training speed simultaneously slowly and the problem of over-fitting, improved robustness and the estimated performance of model.This method helps to realize optimal control and the stable operation of grinding process, reduces power consumption and the steel consumption of bowl mill, and treatment capacity when improving the platform of bowl mill has improved economic benefit of enterprises.