Group delay optimization design method of two-channel lattice type orthogonal filter group
Technical Field
The invention belongs to the technical field of digital signal processing, relates to coefficient optimization of a filter bank, and in particular relates to a group delay optimization design method of a two-channel lattice type orthogonal filter bank.
Background
The two-channel orthogonal filter bank is the earliest proposed and used filter bank in the digital filter bank, and the orthogonal filter bank with the lattice structure can well meet the aliasing-free condition of signal reconstruction and is widely applied to the fields of spectrum analysis, audio and video decoding, self-adaptive filtering, medical signal processing and the like. The front low-pass analysis filter and the high-pass analysis filter in the two-channel lattice orthogonal filter bank can decompose the signal to be processed into two groups of subband signals, and the subband signals are respectively processed according to processing requirements, so that the complexity of data processing operation is reduced, and the processed signals are reconstructed through the rear comprehensive filter bank to recover the original signals.
Since the two-channel lattice orthogonal filter bank mainly comprises an analysis filter bank and a synthesis filter bank, in order to meet the aliasing-free condition of signals, the synthesis filter bank must be designed into an association form of the analysis filter bank, and the analysis filter bank is composed of a pair of orthogonal low-pass-high-pass filters, the problem of designing the two-channel lattice orthogonal filter bank can be converted into the problem of optimizing the coefficients of a single prototype low-pass filter H 0 (z), and the objective function f of the two-channel lattice orthogonal filter bank is composed of a weighting function and a nonlinear function of the lattice coefficients of the low-pass analysis filter.
In the prior art, firstly, the problem of minimizing an objective function f is solved through a quasi-Newton algorithm, and then a Lim-Lee-Chen-Yang algorithm is used for updating a weighting function B (omega) in the objective function until an optimal perfect reconstruction orthogonal filter bank is obtained. But due toNonlinear phase filter, the filtered signal will generate certain error, which finally results in the filter set not meeting the perfect reconstruction characteristic, but the quasi-Newton algorithm cannot improveNonlinear phase problems of (a) are described.
Disclosure of Invention
Aiming at the defects of the prior art, a group delay optimization design method of a two-channel lattice type orthogonal filter bank is provided, the range of group delay is continuously reduced on the basis of a prototype low-pass filter, the optimized filter coefficient is obtained, and the prototype low-pass filter is improvedA problem of nonlinear phase of the optical element.
The group delay optimization design method of the two-channel lattice type orthogonal filter bank comprises the following specific steps:
Step one, determining a prototype low-pass filter according to design requirements The order of (2)Given a set of lattice coefficient values, a prototype low-pass filter is obtained:
S1.1, define a size ofLattice coefficient vector of (a)The method is used for storing a group of initial values of the lattice coefficients:
;
s1.2, acquisition of The lattice coefficient value is stored in the lattice coefficient vectorAs an initial coefficient value:
;
s1.3 using lattice coefficient vectors Obtaining a prototype lattice low-pass filter:
;
Wherein:
;
;
step two, defining a weighted least square objective function as a criterion for optimizing the perfect reconstruction orthogonal filter bank:
;
Wherein the method comprises the steps of The frequency point is represented by a frequency point,Representing the stop band cut-off frequency point,Is a weighting function that is used to determine the weight of the object,Is a nonlinear function of the lattice coefficients. Minimizing objective functions using gradient iterative algorithmsThe method comprises the following specific steps:
s2.1 relating the objective function to the lattice coefficients Performing first-order Taylor expansion and neglecting higher-order terms to obtain coefficient error vectors:
;
S2.2 solving the objective functionIs the first order derivative of (2):
;
Wherein the method comprises the steps ofRepresentation ofIs used for the conjugation of (a),The real part in the curly brace is shown.
S2.3, leading the first order offsetThe definition is as follows:
;
Wherein:
;
;
s2.4, order Definition ofFor storing the objective function value obtained in the previous cycle. Solving the current objective functionIf the value of (1)Finish the objective functionAnd (3) entering step three, otherwise, the current is to be calculatedThe value is passed toUpdating lattice coefficient vectorsBack s1.3:
;
step three, updating the weighting function by utilizing Lim-Lee-Chen-Yang algorithm Defining cut-off parametersDefinition ofFor storing the cut-off parameters obtained in the previous cycleIs a value of (2). Lattice coefficient vector based on step twoCalculated to obtainIf it meetsStep four is entered, otherwise the current state is to beIs passed toS1.3 is returned.
Fourth, based on the objective function and group delay of the perfectly reconstructed orthogonal filter bank, constructing an integral objective function, and solving parameters of the filter bank:
s4.1, lattice coefficient vector based on the above steps And a low pass filterCalculating phase-frequency responseAnd group delay:
;
Wherein the method comprises the steps ofThe representation takes the value of the imaginary part,Representing the real part value.
;
Wherein:
;
;
;
;
;
s4.2 defining a new function To characterize the initial objective function of group delay optimization:
;
Wherein the method comprises the steps of Is a constant variable. Taking the most significant difference of group delay as a measurement index for measuring group delay optimization, and recording as:
;
Pair functionPerforming first-order Taylor expansion, and ignoring higher-order terms:
;
;
Wherein:
;
;
;
;
;
s4.3, the objective function of the perfectly reconstructed orthogonal filter bank will be optimized Initial objective function optimized with group delayAnd (3) carrying out weighted sum as a final objective function of group delay optimization, and carrying out first-order Taylor approximation on the final objective function to convert the optimization problem into:
;
Wherein, 、Respectively represent the determination、Is a function of the infinite norm of (c),、As a weight variable,、Is a trusted domain boundary variable. Order theSetting according to design requirements、Is a value of (2). CVX optimization function toolbox solution in Matlab softwareAndUpdating the value of (2)And:
;
S4.4, return s4.2 calculationThe value is recorded asIf (if)Output optimal prototype low-pass filterOtherwise letCalculating an objective functionLow pass filterObjective functionFirst order bias guide of (a)And returns s4.1.
The invention has the following beneficial effects:
The method uses the thought of first-order Taylor approximation, takes the group delay as a part of an optimization target, avoids the complexity of calculating an approximate Hessian matrix by a quasi-Newton algorithm, greatly reduces the calculated amount and the calculated time, converts the original non-convex optimization problem of the filter coefficient into the convex optimization problem of the coefficient increment, acquires the optimal lattice coefficient through iteration, takes the optimal lattice coefficient as an initial value, continuously optimizes the group delay, flexibly changes the value of a variable according to the design requirement, and finally effectively improves the problem of the nonlinear phase of the filter to be close to the linearity. Therefore, errors introduced by signals filtered by the lattice type orthogonal filter are reduced, and the filter bank can better meet perfect reconstruction characteristics.
Drawings
FIG. 1 is a low-pass analysis filter optimized using a quasi-Newton algorithm in accordance with an embodimentA phase frequency response diagram;
FIG. 2 is a low-pass analysis filter optimized using the method in embodiment one A phase frequency response diagram;
FIG. 3 is a low-pass analysis filter optimized using a quasi-Newton algorithm in embodiment two A phase frequency response diagram;
FIG. 4 is a low-pass analysis filter optimized using the method in embodiment two Phase-frequency response diagram.
Detailed Description
The invention is further explained below with reference to the drawings;
The group delay optimization design method of the two-channel lattice type orthogonal filter bank specifically comprises the following steps:
step one, determining a prototype low-pass filter according to design requirements The order of (2)Stop band cut-off frequency pointAnd give a group ofIndividual lattice coefficient values from which a prototype low-pass filter is obtained。
Step two, defining a weighted least square objective function as a criterion for optimizing the perfect reconstruction orthogonal filter bank:
;
Wherein the method comprises the steps of The frequency point is represented by a frequency point,Representing the stop band cut-off frequency point,Is a weighting function that is used to determine the weight of the object,Is a nonlinear function of the lattice coefficients.
A first order Taylor approximation is performed on the objective function to obtain a set of coefficient error values for updating the lattice coefficient values. And recording the objective function value at the same time, if the calculated objective function value is larger than the objective function value recorded before, entering a step III, otherwise updating the lattice coefficient value, returning to the step I, and calculating a new prototype lattice low-pass filter.
Step three, updating the weighting function in the step two by utilizing a Lim-Lee-Chen-Yang algorithmWhen the updated result meets the set cutoff condition, a set of preferred lattice coefficient values and preferred values are considered to be obtainedAnd step four, if not, returning to the step one, and calculating a new prototype lattice low-pass filter by using the updated lattice coefficient value.
Step four, calculating the currently obtained lattice coefficient value and a low-pass filterCorresponding group delay function and weighting least square objective functionAnd group delay functionA new function is constructed as an overall objective function, and a first-order Taylor approximation is performed on the overall objective function to obtain a set of coefficient error values for updating the lattice coefficient values. Repeating the fourth step, recording the integral objective function value at the same time, if the calculated integral objective function value is larger than the value recorded before, ending the circulation, completing the optimization process, and outputting the lattice coefficient value and the low-pass filter at the moment。
To demonstrate the effectiveness of the method, the following two examples demonstrate the comparison of the performance of filters optimized using the method and the quasi-newton algorithm, respectively, for the same orthogonal filter.
Example 1
The present embodiment sets a prototype low-pass analysis filterThe order of (2)Normalized stop band cut-off frequencyAfter the passband cut-off frequency is normalized,、. The group delay is optimized by a quasi-Newton algorithm and the method respectively, and after the optimizationThe results of the phase-frequency response of (2) are shown in fig. 1 and 2.
Example two
The present embodiment sets a prototype low-pass analysis filterThe order of (2)Normalized stop band cut-off frequencyAfter the passband cut-off frequency is normalized,,. The group delay is optimized by a quasi-Newton algorithm and the method respectively, and after the optimizationThe results of the phase-frequency response of (2) are shown in fig. 1 and 2.
As can be seen by comparing fig. 1, 2 with fig. 3 and 4, the prototype low-pass analysis filter optimized by the methodThe radian of the phase frequency response curve is smaller and more approximate to a straight line, and the nonlinear problem is improved.
Specific optimization result data pairs are shown in table 1:
TABLE 1
;
As can be seen from the data in Table 1 and the accompanying drawings, compared with the quasi-Newton algorithm, the method has the advantages that the maximum difference of group delay and the frequency selectivity of the filter are greatly improved, the radian of the phase-frequency response curve is also smaller, namely, the low-pass analysis filter in the two-channel lattice type orthogonal filter bankThe non-linearity of the phase of (c) has been well optimized.