# 线性预测

线性预测将信号的下一个样本估计为先前样本的线性组合，其中组合权重取为使均方预测误差最小。所得模型由 p 个预测器系数、一个白化残差（预测误差或新息）和一个全极点谱包络组成。就估计语音谱包络而言，LP 分析是最成功的技术，远胜其他方法，其在语音编码中的应用也十分自然。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/9781119060970.ch6)</sup> 线性预测分析基于自回归（AR）建模，而声道简化模型对应 AR 滤波器，因此这种拟合对语音而言很自然。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/9781119060970.ch6)</sup> 分析滤波器为 \( A(z) = 1 - \sum_{i=1}^{p} a_i \cdot z^{-i} \)，合成滤波器为其逆 \( H(z) = 1/A(z) \)；残差随后携带激励——浊音、清音或混合。<sup>[2](https://link.springer.com/chapter/10.1007/978-3-031-01516-8_2)</sup>

| 关键事实 | 值 | 来源 |
|---|---|---|
| 输出模型 | p 个系数、残差、全极点合成滤波器 \( 1/A(z) \) | <sup>[2](https://link.springer.com/chapter/10.1007/978-3-031-01516-8_2)</sup> |
| 白化 | 足够高阶的最优预测器可白化平稳过程 | <sup>[3](http://profesores.elo.utfsm.cl/~mzanartu/ELO313/Docs/11544036-c-B-7.pdf)</sup> |
| 求解成本 | 莱文森–杜宾：\( O(p^2) \) 次乘法，直接求逆为 \( O(p^3) \) | <sup>[4](https://phillip-deleon.com/Teaching/DigitalSpeechProcessing/Lecture_Notes/Lecture8.pdf)</sup> |
| 语音阶数 | \( m = 10 \) 可表示 0–4 kHz 范围内最多五个共振峰；LPC-10 在 2400 bps 下发送 10 个系数 | <sup>[5](https://ee.stanford.edu/~gray/lpcip.pdf)</sup>, <sup>[6](https://isip.piconepress.com/courses/msstate/ece_8463/lectures/current/lecture_16/lecture_16.pdf)</sup> |
| 系数量化 | 直接量化时每系数约 8–10 比特；改用 LSP 或对数面积比表示 | <sup>[7](https://doi.org/10.1121/1.1912679)</sup> |
| 条件性 | 采用 \( e = 0.0001 \) 的白噪声补偿将最坏自相关矩阵条件数从 56.4 dB 降至 48 dB | <sup>[8](https://mmsp.ece.mcgill.ca/Documents/Reports/2021/KabalR2021b.pdf)</sup> |
| 当前前沿 | LSPnet（2025）以 1.2 kbps 为目标，采用保留 LSP 包络但放弃显式 LP 估计的神经编解码器 | <sup>[9](https://www.isca-archive.org/interspeech_2025/zhang25l_interspeech.pdf)</sup> |

## 工作原理

预测器形成过去样本的线性组合，最小二乘系数由正规方程 \( R \cdot \alpha = r \) 得出，其中 R 是托普利茨自相关矩阵，r 是自相关向量。<sup>[4](https://phillip-deleon.com/Teaching/DigitalSpeechProcessing/Lecture_Notes/Lecture8.pdf)</sup> 将误差能量对每个系数的导数置零可推导出这些方程；在三种线性预测模型类别（全极点、全零与混合零极点 ARMA）中，全极点模型是研究和实现最广泛的一种。<sup>[10](https://arrow.tudublin.ie/cgi/viewcontent.cgi?article=1057&context=argcon)</sup>

白化是核心性质：目标可视为寻找一个滤波器，使预测误差尽可能白且方差正确；对 m 个相关值拟合的 AR 模型与这些相关值完全匹配。<sup>[5](https://ee.stanford.edu/~gray/lpcip.pdf)</sup> 最优预测器多项式是最小相位的，除非该过程是线谱过程，否则其零点严格位于单位圆内 <sup>[11](http://diglib.globalcollege.edu.et:8080/xmlui/bitstream/handle/123456789/253/Vaidyanathan%20P.%20The%20theory%20of%20linear%20prediction%20%28Morgan%2C%202008%29%28ISBN%201598295756%29%28197s%29_GL_.pdf?isAllowed=y&sequence=1)</sup>，因此用于合成的全极点逆滤波器稳定。

## 如何实现

实际语音处理流程将信号分帧、加汉明窗、计算十二阶自相关系数、用莱文森–杜宾算法将其转换为反射系数、通过全零分析滤波器得到残差，再用全极点逆滤波器重新合成。<sup>[12](https://ww2.mathworks.cn/help/dsp/ug/lpc-analysis-and-synthesis-of-speech.html)</sup>

莱文森–杜宾递推从 (i−1) 阶解构建 i 阶解。每一步计算偏相关（PARCOR）系数 \( k_i = \left( r[i] - \sum_{j=1}^{i-1} \alpha_j r[i-j] \right) / E_{i-1} \)，更新 \( \alpha_{(i,i)} = k_i \) 与 \( \alpha_{(i,j)} = \alpha_{(i-1,j)} - k_i \cdot \alpha_{(i-1,i-j)} \)，以及最小误差 \( E_i = (1 - k_i^2) E_{i-1} \)。<sup>[4](https://phillip-deleon.com/Teaching/DigitalSpeechProcessing/Lecture_Notes/Lecture8.pdf)</sup> 由于预测误差功率随阶数非增，一旦误差低于阈值即可停止递推，并且它给出直到 p 阶的所有阶预测器。<sup>[3](http://profesores.elo.utfsm.cl/~mzanartu/ELO313/Docs/11544036-c-B-7.pdf)</sup>

存在两种估计途径。自相关法在所有时间上最小化误差，对信号加窗使区间外样本为零 <sup>[10](https://arrow.tudublin.ie/cgi/viewcontent.cgi?article=1057&context=argcon)</sup>；它产生一个[托普利茨矩阵](https://www.edgepedia.org/zh/toeplitz-matrix)，可由莱文森–杜宾以 \( O(p^2) \) 次运算求解，并保证滤波器稳定。协方差法无需加窗，对周期声音更准确，但其矩阵缺少托普利茨对称性，需要乔列斯基分解，且可能产生不稳定滤波器 <sup>[13](https://people.engr.tamu.edu/rgutier/lectures/sp/l7.pdf)</sup>,.<sup>[10](https://arrow.tudublin.ie/cgi/viewcontent.cgi?article=1057&context=argcon)</sup>

## 起源

使计算高效的递推出现在[诺曼·莱文森](https://www.edgepedia.org/zh/norman-levinson)（Norman Levinson）1946 年发表于《应用数学研究》的论文《滤波器设计与预测中的维纳（均方根）误差准则》中。<sup>[14](https://doi.org/10.1002/sapm1946251261)</sup> J. 杜宾（J. Durbin）1960 年发表于《国际统计学会评论》的论文《时间序列模型的拟合》给出了用于拟合时间序列模型的相关递推。<sup>[15](https://doi.org/10.2307/1401322)</sup> 随后出现了语音应用：B. S. 阿塔尔（B. S. Atal）与苏珊娜·L. 哈瑙尔（Suzanne L. Hanauer）在 1971 年《美国声学学会杂志》论文中报告了语音 LP 分析-合成系统。<sup>[7](https://doi.org/10.1121/1.1912679)</sup> J. 马胡尔（J. Makhoul）1975 年发表于《IEEE 会刊》的教程综述整合了这些数学内容 <sup>[16](https://doi.org/10.1109/proc.1975.9792)</sup>，约翰·D. 马克尔（John D. Markel）与奥古斯丁·H. 格雷（Augustine H. Gray）1976 年的著作《语音的线性预测》考察了 LPC 理论。<sup>[17](https://doi.org/10.1007/978-3-642-66286-7)</sup> P. 德尔萨特（P. Delsarte）与 Y. 热南（Y. Genin）于 1986 年在《IEEE 声学、语音与信号处理汇刊》发表了分裂莱文森算法。<sup>[18](https://doi.org/10.1109/tassp.1986.1164830)</sup>

## 变体

**前向与后向预测。** 后向线性预测从 L 个未来值估计样本 \( x(k-L) \) <sup>[3](http://profesores.elo.utfsm.cl/~mzanartu/ELO313/Docs/11544036-c-B-7.pdf)</sup>；对平稳过程，两种误差信号具有相等功率，并馈入格型结构。

**反射与面积参数。** 反射（PARCOR）系数是前向与后向预测误差之间的归一化互相关；约束 \( |k_i| < 1 \) 可保证滤波器稳定，这使它们比直接系数更适合传输。<sup>[3](http://profesores.elo.utfsm.cl/~mzanartu/ELO313/Docs/11544036-c-B-7.pdf)</sup> 对数面积比 \( \ln[(1-k)/(1+k)] \) 是一种相关的稳健表示。<sup>[13](https://people.engr.tamu.edu/rgutier/lectures/sp/l7.pdf)</sup>

**线谱对。** LSP 参数是 \( F_1(z) = A(z) + z^{-(p+1)}A(z^{-1}) \) 与 \( F_2(z) = A(z) - z^{-(p+1)}A(z^{-1}) \) 的根；如果两个多项式的根在频率轴上交替，则合成滤波器稳定，且 LSP 对量化不如 PARCOR 和其他参数集敏感。<sup>[19](https://www.ntt-review.jp/archive/ntttechnical.php?contents=ntr201411in1.pdf)</sup>

**面向音频的变体。** 选择性线性预测、高阶全极点建模、约束零极点建模、基音（长期）预测和弯曲线性预测面向音调信号；WLP 用全通双线性变换将频率轴向巴克听觉尺度弯曲；长期预测最初为语音编码提出，后来应用于 MPEG-4 AAC。<sup>[20](https://link.springer.com/article/10.1155/2008/706935)</sup>

## 应用

**阶数选择。** 历史上语音最重要的阶数一直是 \( m = 10 \)，它在性能与复杂度之间取得平衡，可表示覆盖 0–4 kHz 的最多五个共振峰。<sup>[5](https://ee.stanford.edu/~gray/lpcip.pdf)</sup> 经验法则给出 \( p = f_s/1000 + 4 \) <sup>[13](https://people.engr.tamu.edu/rgutier/lectures/sp/l7.pdf)</sup> 或 \( p = f_s/1000 + 2 \) <sup>[10](https://arrow.tudublin.ie/cgi/viewcontent.cgi?article=1057&context=argcon)</sup>，在 8 kHz 采样时约为 10–12 个系数。阶数太低会遗漏共振；阶数太高会把谐波等声源特征也建模，因为每个共振峰需要一个复极点对。<sup>[10](https://arrow.tudublin.ie/cgi/viewcontent.cgi?article=1057&context=argcon)</sup>

**编码标准。** 阿塔尔与哈瑙尔的系统在每个分析区间传输 15 个参数（12 个系数、基音周期、清浊音和均方根值），在每秒 100 次参数更新时达到 7200 bps，在每秒 33 次时达到 2400 bps，约为直接 PCM 的 1/30。<sup>[7](https://doi.org/10.1121/1.1912679)</sup> LPC-10 是美国政府标准，在 180 样本帧、44.44 帧/秒下使用 10 个系数，每帧 54 比特，达到 2400 bps。<sup>[6](https://isip.piconepress.com/courses/msstate/ece_8463/lectures/current/lecture_16/lecture_16.pdf)</sup> CELP 编码器需要像 LSP 这样的高效谱包络表示，到 1993 年已在单个 DSP 芯片上实时运行。<sup>[21](https://www.csd.uoc.gr/~hy474/bibliography/LinearPredictionHistory.pdf)</sup> 美国联邦政府于 1991 年率先将 LSP 采纳为编码标准；ITU-T [G.723.1](https://www.edgepedia.org/zh/g-723-1) 和 G.729（1996）、3GPP 标准（1999）、MPEG-4（1999）以及 MPEG-D USAC（2010）都包含它。<sup>[19](https://www.ntt-review.jp/archive/ntttechnical.php?contents=ntr201411in1.pdf)</sup>

**谱估计与语音学。** LPC 参数可解释为共振峰频率和带宽，系数个数是共振峰数量的两倍。<sup>[22](https://hugoquene.github.io/TPhSA-EN/ch-LPC.html)</sup> 带宽估计本质上不如中心频率估计准确。<sup>[23](https://pmc.ncbi.nlm.nih.gov/articles/PMC5392065/)</sup>

## 局限与替代方案

语音仅在 20 到 400 毫秒的区间内平稳，因此系数必须频繁重新优化。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/9781119060970.ch6)</sup> 全极点模型无法表示反共振峰，即在鼻音、鼻化元音、边音和擦音中产生的反共振 <sup>[22](https://hugoquene.github.io/TPhSA-EN/ch-LPC.html)</sup>, <sup>[10](https://arrow.tudublin.ie/cgi/viewcontent.cgi?article=1057&context=argcon)</sup>，不过足够高的阶数可使全极点模型适用于几乎所有语音。<sup>[10](https://arrow.tudublin.ie/cgi/viewcontent.cgi?article=1057&context=argcon)</sup> 共识是，浊音的 LP 分析应限于声门闭合状态；高音嗓音的闭合相太短，不适合分析。<sup>[10](https://arrow.tudublin.ie/cgi/viewcontent.cgi?article=1057&context=argcon)</sup>

预测器系数的直接量化每个系数约需 8–10 比特才能保证稳定 <sup>[7](https://doi.org/10.1121/1.1912679)</sup>，而小的系数误差可能使整个频谱失真或使滤波器失稳。<sup>[24](https://ccrma.stanford.edu/~hskim08/lpc/)</sup> 对于高度可预测、接近正弦的信号，如高音鼻化语音，会出现自相关矩阵病态。<sup>[8](https://mmsp.ece.mcgill.ca/Documents/Reports/2021/KabalR2021b.pdf)</sup>

**音调音频。** N 个正弦波之和可由 AR(2N) 完美建模，但正弦波加白噪声需要 ARMA(2N,2N) 零极点模型，这就是传统低阶 LP 在音调音频上表现不佳的原因。<sup>[20](https://link.springer.com/article/10.1155/2008/706935)</sup> 对于复调音频，WLP 接近最优高阶性能，但为获得良好感知分辨率，所需系数数量比音调分量数量高一个数量级。<sup>[20](https://link.springer.com/article/10.1155/2008/706935)</sup>

**神经编解码器。** 苏布拉马尼（Subramani）及其同事于 2022 年在 arXiv 上提出端到端 LPCNet，使 LPC 估计完全可微，反射系数通过 tanh() 激活函数估计，其双曲正切前的 logit 与对数面积比仅相差一个缩放因子。<sup>[25](https://doi.org/10.48550/arxiv.2202.11301)</sup> LSPnet（2025）目标为 1.2 kbps，通过 LSP 传达谱包络以利用其量化稳健性，并用直接音频样本预测取代显式 LP 估计。<sup>[9](https://www.isca-archive.org/interspeech_2025/zhang25l_interspeech.pdf)</sup>

## References

1. [Linear Prediction (Chapter 6, Vary & Martin, Digital Speech Transmission and Enhancement, 2nd ed., Wiley, 2024)](https://onlinelibrary.wiley.com/doi/10.1002/9781119060970.ch6)
2. [Predictive Modeling of Speech (V. Atti, Springer Synthesis Lecture, 2011)](https://link.springer.com/chapter/10.1007/978-3-031-01516-8_2)
3. [Springer Handbook of Speech Processing: Chapter 7 (Linear Prediction)](http://profesores.elo.utfsm.cl/~mzanartu/ELO313/Docs/11544036-c-B-7.pdf)
4. [Digital Speech Processing Lecture 8: Linear Prediction Analysis of Stochastic Speech Sounds (P. DeLeon)](https://phillip-deleon.com/Teaching/DigitalSpeechProcessing/Lecture_Notes/Lecture8.pdf)
5. [Linear Predictive Coding and the Internet Protocol (R. M. Gray, Stanford)](https://ee.stanford.edu/~gray/lpcip.pdf)
6. [Lecture 16: Linear Prediction-Based Representations (Picone, MSState ECE 8463)](https://isip.piconepress.com/courses/msstate/ece_8463/lectures/current/lecture_16/lecture_16.pdf)
7. [B. S. Atal, Suzanne L. Hanauer (1971). Speech Analysis and Synthesis by Linear Prediction of the Speech Wave. The Journal of the Acoustical Society of America.](https://doi.org/10.1121/1.1912679)
8. [Ill-Conditioning and Bandwidth Expansion in Linear Prediction of Speech (Kabal, McGill, 2021)](https://mmsp.ece.mcgill.ca/Documents/Reports/2021/KabalR2021b.pdf)
9. [LSPnet: an ultra-low bitrate hybrid neural codec (Interspeech 2025)](https://www.isca-archive.org/interspeech_2025/zhang25l_interspeech.pdf)
10. [Computation of Linear Prediction Coefficients (Dublin Institute of Technology conference paper)](https://arrow.tudublin.ie/cgi/viewcontent.cgi?article=1057&context=argcon)
11. [The Theory of Linear Prediction (P.P. Vaidyanathan, Morgan & Claypool, 2008)](http://diglib.globalcollege.edu.et:8080/xmlui/bitstream/handle/123456789/253/Vaidyanathan%20P.%20The%20theory%20of%20linear%20prediction%20%28Morgan%2C%202008%29%28ISBN%201598295756%29%28197s%29_GL_.pdf?isAllowed=y&sequence=1)
12. [LPC Analysis and Synthesis of Speech - MATLAB & Simulink (MathWorks)](https://ww2.mathworks.cn/help/dsp/ug/lpc-analysis-and-synthesis-of-speech.html)
13. [Linear Prediction of Speech (Lecture 7, R. Gutierrez-Osuna, Texas A&M)](https://people.engr.tamu.edu/rgutier/lectures/sp/l7.pdf)
14. [Norman Levinson (1946). The Wiener (Root Mean Square) Error Criterion in Filter Design and Prediction. Studies in Applied Mathematics.](https://doi.org/10.1002/sapm1946251261)
15. [J. Durbin (1960). The Fitting of Time-Series Models. Revue de l Institut International de Statistique / Review of the International Statistical Institute.](https://doi.org/10.2307/1401322)
16. [J. Makhoul (1975). Linear prediction: A tutorial review. Proceedings of the IEEE.](https://doi.org/10.1109/proc.1975.9792)
17. [John D. Markel, Augustine H. Gray (1976). Linear Prediction of Speech. Communication and cybernetics.](https://doi.org/10.1007/978-3-642-66286-7)
18. [P. Delsarte, Y. Genin (1986). The split Levinson algorithm. IEEE Transactions on Acoustics Speech and Signal Processing.](https://doi.org/10.1109/tassp.1986.1164830)
19. [NTT Technical Review, Nov. 2014: Line Spectrum Pair (LSP) technology as an IEEE Milestone](https://www.ntt-review.jp/archive/ntttechnical.php?contents=ntr201411in1.pdf)
20. [Comparison of Linear Prediction Models for Audio Signals (EURASIP Journal on Audio, Speech, and Music Processing, 2008)](https://link.springer.com/article/10.1155/2008/706935)
21. [The History of Linear Prediction (B.S. Atal, IEEE Signal Processing Magazine, March 2006)](https://www.csd.uoc.gr/~hy474/bibliography/LinearPredictionHistory.pdf)
22. [Chapter 8: Linear Predictive Coding (Quené, Tutorial on Phonetics and Speech Analysis)](https://hugoquene.github.io/TPhSA-EN/ch-LPC.html)
23. [Statistical properties of linear prediction analysis underlying the challenge of formant bandwidth estimation (JASA/PMC)](https://pmc.ncbi.nlm.nih.gov/articles/PMC5392065/)
24. [Linear Predictive Coding is All-Pole Resonance Modeling (Stanford CCRMA)](https://ccrma.stanford.edu/~hskim08/lpc/)
25. [Subramani, Krishna and colleagues (2022). End-to-end LPCNet: A Neural Vocoder With Fully-Differentiable LPC Estimation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2202.11301)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Oct 15, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Fourier and signal transforms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/linear-prediction

English original: https://www.edgepedia.org/linear-prediction
