归一化最小均方滤波器(Normalized Least Mean Square Filter, NLMS Filter)为最小均方滤波器的进阶版本,目的为解决基本的最小化均方滤波器对于输入
振幅过于敏感,振幅太大时会造成梯度噪声放大(gradient noise amplification)[1],使得设计者难以选择能够适当控制收敛速度及稳定性的步长
(step size)。使用 NLMS 算法能使在第
次的递回中,将施加在抽头权重向量(tap-weight vector,
)上的修正,会以第
次周期中抽头输入向量(tap-input vector,
)的欧示范数平方(squared Euclidean norm)进行归一化,因此称作归一化 LMS。[2]
结构上来说,LMS 和 NLMS 是一模一样的,两种自适应滤波算法都是建立在有限脉冲响应(FIR)滤波器的基础上,唯一的差别在于控制权重的机制。
抽头输入向量
会产生一个输出
,再与期望响应
相减得到估计误差(或称误差信号)
。根据输入向量
和误差信号
,权重控制器会对 FIR 滤波器施加权重调整(weight adjustment)。这个过程会在自适应周期中重复进行,直到滤波器达到稳态,这时的滤波器系数为
。
NLMS 算法体现了最小干扰原则:每一个周期中,自适应滤波器的权重向量应改变最小量,并同时满足对于更新后滤波器的输出限制。
利用数学式子表示这个原则如以下所述:
给定抽头输入向量
和期望响应
的条件下,找到抽头权重向量
的最小欧式范数
,而条件为
,H代表共轭转置,利用拉格朗日乘数(Lagrange Multiplier Method)解,得到代价函数
,
代表复数拉格朗日乘子的共轭。
为了找到更新后使代价函数值最小的权重向量的最佳解,我们将
对
微分并设为0,得 ![{\displaystyle {\mathbf {w} }(n+1)={\mathbf {w} }(n)+1/2\lambda ^{*}\mathbf {x} (n))]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2e19e7fc8efac36a2c234c0293423a15faa4c950)
- 把第一步结果带回条件
,得
与误差信号 
- 合并前两步结果,并加上正实数比例因子,也就是后续所称的归一化步阶参数
,得 
我们得到
从式子中能看到归一化最小均方算法的名字中有“归一化”的原因:
LMS 中的矫正函数
在NLMS中被输入向量的平方范数
将能量归一化变为
。
需要注意的是,NLMS有一个源自自身的问题——当抽头输入向量
很小时,位于分母的
也会很小。这里的解法是再加上一个大于零的
,因此最终整理出公式如下:
若没有干扰(
),归一化最小均方算法的最佳步长为
,且
独立于尚未解出的脉冲响应
。
若干扰存在(
),最佳步长为:
上述结果是在假定讯号
与
互不相关的前提下推导得出的,而该假设在大部分情形下皆符合现实。
将滤波器的错位设为
,我们能得到下一个错位期望值:
![{\displaystyle E\left[\Lambda (n+1)\right]=E\left[\left|{\hat {\mathbf {w} }}(n)+{\frac {\mu \,e^{*}(n)\mathbf {x} (n)}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}-\mathbf {w} (n)\right|^{2}\right]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2a7be9924316c84bc7681666f12fc43bc9446626)
![{\displaystyle E\left[\Lambda (n+1)\right]=E\left[\left|{\hat {\mathbf {w} }}(n)+{\frac {\mu \,\left(v^{*}(n)+y^{*}(n)-{\hat {y}}^{*}(n)\right)\mathbf {x} (n)}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}-\mathbf {w} (n)\right|^{2}\right]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2fd5bfa38592748d4248da28894fa42457c6be07)
设
、
![{\displaystyle E\left[\Lambda (n+1)\right]=E\left[\left|\mathbf {\delta } (n)-{\frac {\mu \,\left(v(n)+r(n)\right)\mathbf {x} (n)}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}\right|^{2}\right]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/6401070ffb4f3da143810178301b7c1b271f1927)
![{\displaystyle E\left[\Lambda (n+1)\right]=E\left[\left(\mathbf {\delta } (n)-{\frac {\mu \,\left(v(n)+r(n)\right)\mathbf {x} (n)}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}\right)^{H}\left(\mathbf {\delta } (n)-{\frac {\mu \,\left(v(n)+r(n)\right)\mathbf {x} (n)}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}\right)\right]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8a54266b1c94d17951480c419fc4352a75602f99)
假设独立,取出变数整理:
![{\displaystyle E\left[\Lambda (n+1)\right]=\Lambda (n)+E\left[\left({\frac {\mu \,\left(v(n)+r(n)\right)\mathbf {x} (n)}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}\right)^{H}\left({\frac {\mu \,\left(v(n)+r(n)\right)\mathbf {x} (n)}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}\right)\right]-2E\left[{\frac {\mu |r(n)|^{2}}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}\right]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/baf215570166652b34f43718c2c15de196336a7f)
![{\displaystyle E\left[\Lambda (n+1)\right]=\Lambda (n)+{\frac {\mu ^{2}E\left[|e(n)|^{2}\right]}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}-{\frac {2\mu E\left[|r(n)|^{2}\right]}{\mathbf {x} ^{H}(n)\mathbf {x} (n)}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f15422607283d5574f28261726f3b68b69fb2fd7)
最佳的步阶函数出现在
,这时能得到
![{\displaystyle 2\mu E\left[|e(n)|^{2}\right]-2E\left[|r(n)|^{2}\right]=0}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8cd365f334fb1d99808f740d1255b8b893d7eb44)
因此,得
归一化最小均方滤波器最大的优点就是避免因输入振幅太大而难以选择适合步阶函数的问题。跟传统 LMS 比较,NLMS的稳定性与自适应性都好,无论对于相关或是非相关输入讯号,收敛速度也都较快[3][4],且收敛速度是由输入讯号的相关性所决定[5][6]。
NLMS需要较多的运算量,其中一个是过程中需要求出
,若长度为M,则多出 2M 个实数乘法和 2M-1 个实数加法。且,一个
也需要一个实数加法及一个实数乘法。[7]
NLMS因着其对于输入讯号功率变化的稳定性而被广泛运用,对于即时回声消除,如线上即时会议的收音[8]、适应性噪声消除,如降噪耳机、生物讯号处理,如心电图的噪声,以及通道均衡、系统辨识、主动噪声控制等都有非常广泛的应用。
- Simon Haykin: Adaptive Filter Theory, Prentice Hall, 2013, ISBN 0-13-048434-2
- Simon S. Haykin, Bernard Widrow (Editor): Least-Mean-Square Adaptive Filters, Wiley, 2003, ISBN 0-471-21570-8
- Bernard Widrow, Samuel D. Stearns: Adaptive Signal Processing, Prentice Hall, 1985, ISBN 0-13-004029-0
- Slock, D. T. M.; On the Convergence Behavior of the LMS and the Normalized LMS Algorithms. IEEE Transactions on Signal Processing, Sept./1993, 41(9), [2025-06-10]. doi:10.1109/78.236504
- Mamdoh Abdulatef, Wasan; Rami Alomari, Zainab; Ahmed Mahmod, Mahmod. Improved LMS Performance for System Identification Application. International Journal of Computing and Digital Systems. 2024-09-15, 15 (1) [2025-06-10]. ISSN 2210-142X. doi:10.12785/ijcds/160194.
- ^ Haykin, Simon S. Adaptive filter theory. Always learning. Telagarapu Prabhakar 5. ed., internat. ed. Upper Saddle River, NJ Munich: Pearson. 2014. ISBN 978-0-273-76408-3.
- ^ Nagumo, J.; Noda, A. A learning method for system identification. IEEE Transactions on Automatic Control. 1967-06, 12 (3) [2025-06-10]. ISSN 0018-9286. doi:10.1109/TAC.1967.1098599. (原始内容存档于2025-05-12).
- ^ Nagumo, J.; Noda, A. A learning method for system identification. IEEE Transactions on Automatic Control. 1967-06, 12 (3) [2025-06-10]. ISSN 0018-9286. doi:10.1109/TAC.1967.1098599. (原始内容存档于2025-05-12).
- ^ Douglas, S.C.; Meng, T.H.-Y. Stochastic gradient adaptation under general error criteria. IEEE Transactions on Signal Processing. 1994-06, 42 (6) [2025-06-10]. doi:10.1109/78.286951. (原始内容存档于2024-09-14).
- ^ Abu el Ata-Doss, S.; Estival, J. L.; Richalet, J. Dynamics of Identification for the Normalized Least Mean Square Algorithm. IFAC Proceedings Volumes. 7th IFAC/IFORS Symposium on Identification and System Parameter Estimation, York, UK, 3-7 July. 1985-07-01, 18 (5) [2025-06-10]. ISSN 1474-6670. doi:10.1016/S1474-6670(17)60733-X.
- ^ Slock, D.T.M. On the convergence behavior of the LMS and the normalized LMS algorithms. IEEE Transactions on Signal Processing. Sept./1993, 41 (9) [2025-06-10]. doi:10.1109/78.236504. (原始内容存档于2024-04-28).
- ^ Sayed, Ali H. Adaptive filters. Hoboken, N.J: Wiley-Interscience : IEEE Press. 2008. ISBN 978-0-470-25388-5. OCLC 191318239.
- ^ N, Priyanka D.; M, Chandrashekar H. A Review of Adaptive Algorithms for Acoustic, Echo Cancellation (PDF). International Journal of Engineering Research & Technology. 2018-04-24, 6 (13) [2025-06-10]. ISSN 2278-0181. doi:10.17577/IJERTCONV6IS13037 (美国英语).