# 小波包分解

小波包分解是一种信号处理方法，它在每个频率尺度上递归地将信号分裂为小波子带，产生系数集的完整二叉树，而非离散小波变换那种按尺度排序的金字塔结构。在分解深度 N 处，它产生 \( 2^{N} \) 个不同的系数集，而标准 DWT 仅有 N + 1 个集合；每个节点的函数构成该节点子空间的正交基，而任意容许子树的叶节点共同构成信号的正交基。<sup>[1](https://technav.ieee.org/topic/wavelet-packets/)</sup> 由于低通和高通两个分支都被重新分解，该方法在整个频谱上达到等宽的频带，而 DWT 的频率分辨率随频率升高而下降。<sup>[2](https://ar5iv.labs.arxiv.org/html/2206.06126)</sup><sup> • </sup><sup>[3](https://www.lopezbenitez.es/journals/IEEE_Access_2022_2.pdf)</sup> 正是这种更精细、更均匀的频率划分，使小波包在压缩、去噪以及机器学习流水线中的特征提取中发挥作用。

| 关键事实 | 数值 |
|---|---|
| 深度 N 处的输出 | \( 2^{N} \) 个系数集，而 DWT 为 \( N + 1 \) 个<sup>[1](https://technav.ieee.org/topic/wavelet-packets/)</sup> |
| 树结构 | 一维为完整二叉树；二维为四叉树<sup>[4](https://www.mathworks.com/help/wavelet/ref/wpdec.html)</sup> |
| 可能基的数目 | 对于长度 \( N = 2^{L} \) 的信号，至少有 \( 2^{N/2} \) 棵二叉子树<sup>[5](https://www.mathworks.com/help/wavelet/ug/wavelet-packets.html)</sup> |
| 变换代价 | \( O(N \log N) \)，与快速傅里叶变换相当<sup>[6](http://congres.cran.univ-lorraine.fr/1998/ICASSP_98/pdf/author/ic981036.pdf)</sup> |
| 标准代价函数 | 可加香农熵，\( E_{1}(s) = -\sum_{i} s_{i}^{2} \log(s_{i}^{2}) \)<sup>[5](https://www.mathworks.com/help/wavelet/ug/wavelet-packets.html)</sup> |
| 典型软件 | MATLAB `wpdec`；PyWavelets 小波包类<sup>[4](https://www.mathworks.com/help/wavelet/ref/wpdec.html)</sup><sup> • </sup><sup>[7](https://pywavelets.readthedocs.io/en/stable/ref/wavelet-packets.html)</sup> |
| 示例结果 | 三类运动想象脑电分类中准确率 70.3%，比先前的小波包方法高 4.2%<sup>[8](https://iopscience.iop.org/article/10.1088/1741-2560/3/4/001)</sup> |

## 工作原理

该方法建立在离散小波变换背后的双通道滤波器组之上。一对共轭镜像滤波器——低通滤波器 \( h[n] \) 和高通滤波器 \( g[n] \)，其中 \( g[n] = (-1)^{1-n} \, h[1-n] \)——将信号分裂为平滑近似分量和细节分量，各自再以二抽取。在标准 DWT 中，只有近似分支被再次处理；细节系数从不重新分析。<sup>[5](https://www.mathworks.com/help/wavelet/ug/wavelet-packets.html)</sup> 小波包分解将同一滤波器对也应用于细节分支，并在每一层重复此操作。每个基本模块以 \( \pi/2 \) 的截止频率对输入进行低通或高通滤波，然后以二抽取，以时间分辨率减半为代价换取频率分辨率加倍；经过 L 层后，信号分布在 \( 2^{L} \) 个节点上，形成具有等宽频带的时频表示。<sup>[2](https://ar5iv.labs.arxiv.org/html/2206.06126)</sup>

用马拉（Mallat）框架的多分辨率语言来说，树的每个节点是一个以深度 j 和位置 p 标记的向量空间，分裂一个节点即将其正交基分解为两个子节点的两个新正交基。<sup>[9](https://www.di.univr.it/documenti/OccorrenzaIns/matdid/matdid607090.pdf)</sup> 完整的树是过完备的：长度为 \( N = 2^{L} \) 的信号可以以 \( \alpha \) 种不同方式展开，其中 \( \alpha \) 计算完整树的二叉子树数目，且 \( \alpha \ge 2^{N/2} \)。<sup>[5](https://www.mathworks.com/help/wavelet/ug/wavelet-packets.html)</sup> 快速变换本身运行时间为 \( O(N \log N) \)，与快速傅里叶变换同阶，<sup>[6](http://congres.cran.univ-lorraine.fr/1998/ICASSP_98/pdf/author/ic981036.pdf)</sup> 而标准双正交小波变换仅需 \( O(N) \) 次运算，<sup>[10](http://jstarck.free.fr/StarckEncyclop07.pdf)</sup> 因此小波包树以对数级的代价溢价换取频率分辨率。

## 操作步骤

从业者在去噪或压缩时执行四个步骤。<sup>[11](http://www.ece.northwestern.edu/local-apps/matlabhelp/toolbox/wavelet/ch05_us2.html)</sup>

1. **分解。** 选择一个小波和最大深度 N，然后计算完整的包树。在 MATLAB 中，`wpdec(x,n,wname)` 返回第 n 层的树，默认使用香农熵；一维情况下为完整二叉树，二维情况下为四叉树。<sup>[4](https://www.mathworks.com/help/wavelet/ref/wpdec.html)</sup> PyWavelets 提供一维、二维和 n 维包结构，接口基本通用。<sup>[7](https://pywavelets.readthedocs.io/en/stable/ref/wavelet-packets.html)</sup>
2. **计算最佳树（可选）。** 为每个节点附加一个可加代价函数，满足 \( E(0) = 0 \) 且 \( E(s) = \sum_{i} E(s_{i}) \)。非归一化香农熵为 \( E_{1}(s_{i}) = -s_{i}^{2} \log(s_{i}^{2}) \)，约定 \( 0 \log(0) = 0 \)。<sup>[5](https://www.mathworks.com/help/wavelet/ug/wavelet-packets.html)</sup> 最佳基自底向上寻找，从叶到根：当节点自身的代价小于或等于其子节点最优代价之和时，该节点保留在基中，随后移除子节点的标记。<sup>[5](https://www.mathworks.com/help/wavelet/ug/wavelet-packets.html)</sup><sup> • </sup><sup>[9](https://www.di.univr.it/documenti/OccorrenzaIns/matdid/matdid607090.pdf)</sup> 代价不必是熵；在压缩中，它可以简单地是表示结果所需的比特数。<sup>[9](https://www.di.univr.it/documenti/OccorrenzaIns/matdid/matdid607090.pdf)</sup>
3. **阈值处理。** 对除近似分量外的每个包应用阈值，以抑制噪声或小系数。<sup>[11](http://www.ece.northwestern.edu/local-apps/matlabhelp/toolbox/wavelet/ch05_us2.html)</sup>
4. **重构。** 在选定的基上逆变换。

一个实用细节：由于下采样使高通分量发生镜像，子带的频率排序遵循二进制格雷码顺序，在识别哪些频带被使用时必须考虑到这一点。<sup>[12](https://export.arxiv.org/pdf/1304.3795v1.pdf)</sup>

## 起源

小波包建立在 斯特凡·马拉（Stéphane Mallat）1989 年发表于《IEEE 模式分析与机器智能汇刊》的多分辨率信号分解理论之上，该理论形式化了小波表示和滤波器组递归，而小波包树正是对此的扩展。<sup>[13](https://doi.org/10.1109/34.192463)</sup> 包分析的算法核心——从正交基库中基于熵选择最佳基——由 R.R. 科伊夫曼（R.R. Coifman）和 M.V. 维克豪泽（M.V. Wickerhauser）于 1992 年在《IEEE 信息论汇刊》上发表，名称为自适应波形分析。<sup>[14](https://doi.org/10.1109/18.119732)</sup> 该框架通过效率泛函将基与信号或信号族匹配，并支持声音和图像的高效压缩。<sup>[14](https://doi.org/10.1109/18.119732)</sup>

## 变体

**代价函数。** MATLAB 的 `wpdec` 接受香农、对数能量、阈值、SURE、范数、用户定义和自定义熵类型，并带一个可选参数。<sup>[4](https://www.mathworks.com/help/wavelet/ref/wpdec.html)</sup> 对于分类任务，熵代价常被判别性度量替代：扩展斋藤（Saito）和科伊夫曼（Coifman）1994 年工作的局部判别基方法使用库尔贝克-莱布勒（Kullback-Leibler）、詹森-香农（Jensen-Shannon）、欧几里得和海林格（Hellinger）代价，在初始纹理分类实验中海林格和欧几里得表现最佳。<sup>[15](https://wrap.warwick.ac.uk/id/eprint/7673/1/WRAP_Rajpoot_waveletsX03.pdf)</sup>

**多维与复小波包。** 二维情况下包树为四叉树而非二叉树。<sup>[4](https://www.mathworks.com/help/wavelet/ref/wpdec.html)</sup> 双树复小波包变换（DT-CWPT）将金斯伯里（Kingsbury）1998 年的双树复小波变换扩展到包结构，将科伊夫曼-维克豪泽（Coifman-Wickerhauser）基选择算法适配到复小波包框架。<sup>[16](https://web.itu.edu.tr/ibayram/dtcwpt.pdf)</sup>

**可学习小波包。** 近期变体将包变换嵌入神经网络。WPT-CNN 将变换实现为递归可训练卷积层，其小波滤波器系数通过反向传播学习；在固定系数下，它以周期边界模式复现 MATLAB 的 `wpdec`。<sup>[17](https://mdpi-res.com/d_attachment/sensors/sensors-20-04965/article_deploy/sensors-20-04965-v2.pdf?version=1599107380)</sup> 弗鲁斯克（Frusque）和芬克（Fink）的可学习 WPT（L-WPT）于 2024 年发表在《高级工程信息学》上，通过可学习激活函数将 WPT 去噪与小波收缩及深度自编码器去噪相结合。<sup>[18](https://doi.org/10.1016/j.aei.2024.102669)</sup>

## 应用

**压缩。** 自适应波形分析是为声音和图像的高效压缩而设计的。<sup>[14](https://doi.org/10.1109/18.119732)</sup> 在金字塔树矢量量化的图像编码中，WPT/PTSVQ 在所有测试的矢量维度上均优于 DWT/PTSVQ，因为 DWT 是 WPT 的子集；峰值信噪比（PSNR）随分解深度提高但增益递减，因此超过 3 层可能不值得。<sup>[6](http://congres.cran.univ-lorraine.fr/1998/ICASSP_98/pdf/author/ic981036.pdf)</sup>

**生物医学信号。** 一种用于运动想象脑电的小波包最佳基分解从包库中选择分类基，并使用子带能量作为特征，在三个运动想象任务中达到 70.3% 的准确率，比现有小波包方法高 4.2%。<sup>[8](https://iopscience.iop.org/article/10.1088/1741-2560/3/4/001)</sup>

**故障诊断与谱估计。** 旋转机械诊断使用包基来定位振动信号中的故障瞬态。<sup>[19](https://www.sciencedirect.com/science/article/abs/pii/S0022460X04006078)</sup> 在采用仿酉滤波器组的功率谱密度估计中，降低分解深度以频率分辨率为代价改善方差；一个 11 层小波包估计器的方差小于所有测试的加窗周期图变体。<sup>[12](https://export.arxiv.org/pdf/1304.3795v1.pdf)</sup> 纹理分类和一般机器学习特征提取使用包子带统计量作为输入。<sup>[15](https://wrap.warwick.ac.uk/id/eprint/7673/1/WRAP_Rajpoot_waveletsX03.pdf)</sup>

## 局限与替代方案

**平移可变性。** 标准小波包分解及相关的局部余弦分解对信号相对于所选时间原点的位置敏感。<sup>[20](https://israelcohen.com/wp-content/uploads/2018/05/sp_Mar1997.pdf)</sup> 经典离散小波通常表现出这种平移敏感性，微小移位导致系数大幅波动。<sup>[3](https://www.lopezbenitez.es/journals/IEEE_Access_2022_2.pdf)</sup> 补救措施包括平移不变小波包分解（SIWPD），它将父节点与子节点之间的相对移位限制为两个值以保持正交性；其最佳基复杂度为 \( O(2^{d} \cdot (L-d+2) \cdot N) \)，在完全深度下其信息代价低于或等于标准 WPD。<sup>[20](https://israelcohen.com/wp-content/uploads/2018/05/sp_Mar1997.pdf)</sup> DT-CWPT 最佳基也比实 DWPT 最佳基对信号移位更不敏感。<sup>[16](https://web.itu.edu.tr/ibayram/dtcwpt.pdf)</sup>

**小波选择与边界。** 多贝西（Daubechies）证明，在紧支撑两带正交小波中，除哈尔（Haar）外不存在对称或反对称小波，这在对称性重要时限制了小波选择。<sup>[3](https://www.lopezbenitez.es/journals/IEEE_Access_2022_2.pdf)</sup> 抽取变换丧失平移不变性，在重构前修改系数时也会产生伪影。<sup>[10](http://jstarck.free.fr/StarckEncyclop07.pdf)</sup>

**代价函数失配。** 科伊夫曼-维克豪泽（Coifman-Wickerhauser）熵准则适合压缩，但较小的子带熵并不保证类别可分性，因此若无判别代价，它与纹理分类等任务关系不大。<sup>[15](https://wrap.warwick.ac.uk/id/eprint/7673/1/WRAP_Rajpoot_waveletsX03.pdf)</sup> 在故障诊断中，最佳基选择由频带内相对较大的信号分量主导，因此小于背景振动的瞬态可能被遗漏。<sup>[19](https://www.sciencedirect.com/science/article/abs/pii/S0022460X04006078)</sup>

**与替代方案比较。** DWT 是 WPT 的严格子集且更廉价，双正交变换为 O(N)，而包变换为 O(N log N)，但在高频处频率分辨率更粗。<sup>[6](http://congres.cran.univ-lorraine.fr/1998/ICASSP_98/pdf/author/ic981036.pdf)</sup><sup> • </sup><sup>[10](http://jstarck.free.fr/StarckEncyclop07.pdf)</sup> 双树复小波变换以 \( 2^{d} \) 冗余换取近平移不变性和方向分析。<sup>[21](https://www.math.ucdavis.edu/~saito/data/summer08/selesnick-baraniuk-kinsbury-cwt.pdf)</sup> 尚无已发表的定量基准比较小波包与短时傅里叶变换或经验模态分解在特征提取方面的表现。

## References

1. [Wavelet packets | IEEE Technology Navigator](https://technav.ieee.org/topic/wavelet-packets/)
2. [Robust Time Series Denoising with Learnable Wavelet Packet Transform (arXiv; published in Advanced Engineering Informatics 2024)](https://ar5iv.labs.arxiv.org/html/2206.06126)
3. [Wavelet construction and transform review (IEEE Access, 2022)](https://www.lopezbenitez.es/journals/IEEE_Access_2022_2.pdf)
4. [wpdec - Wavelet packet decomposition 1-D - MATLAB](https://www.mathworks.com/help/wavelet/ref/wpdec.html)
5. [Wavelet Packets - MATLAB & Simulink (MathWorks documentation)](https://www.mathworks.com/help/wavelet/ug/wavelet-packets.html)
6. [Joint Optimal Bit Allocation and Best-Basis Selection for Wavelet Packet Trees (ICASSP 98)](http://congres.cran.univ-lorraine.fr/1998/ICASSP_98/pdf/author/ic981036.pdf)
7. [Wavelet Packets (PyWavelets documentation)](https://pywavelets.readthedocs.io/en/stable/ref/wavelet-packets.html)
8. [Feature extraction for EEG-based brain–computer interfaces by wavelet packet best basis decomposition (J. Neural Engineering, 2006)](https://iopscience.iop.org/article/10.1088/1741-2560/3/4/001)
9. [Wavelet Packets (lecture notes based on Mallat, A Wavelet Tour of Signal Processing, Università di Verona)](https://www.di.univr.it/documenti/OccorrenzaIns/matdid/matdid607090.pdf)
10. [Numerical Issues When Using Wavelets (Starck et al., encyclopedia chapter)](http://jstarck.free.fr/StarckEncyclop07.pdf)
11. [Using Wavelet Packets (Wavelet Toolbox documentation)](http://www.ece.northwestern.edu/local-apps/matlabhelp/toolbox/wavelet/ch05_us2.html)
12. [Wavelet packet transform-based power spectral density estimation compared with Periodogram, Welch and multitaper methods](https://export.arxiv.org/pdf/1304.3795v1.pdf)
13. [S.G. Mallat (1989). A theory for multiresolution signal decomposition: the wavelet representation. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/34.192463)
14. [R.R. Coifman, M.V. Wickerhauser (1992). Entropy-based algorithms for best basis selection. IEEE Transactions on Information Theory.](https://doi.org/10.1109/18.119732)
15. [Adaptive wavelet packet basis selection for texture classification (Rajpoot et al., Wavelets X, 2003)](https://wrap.warwick.ac.uk/id/eprint/7673/1/WRAP_Rajpoot_waveletsX03.pdf)
16. [On the Dual-Tree Complex Wavelet Packet and M-Band Transforms (Bayram & Selesnick, IEEE Trans. Signal Processing, 2008)](https://web.itu.edu.tr/ibayram/dtcwpt.pdf)
17. [WPT-CNN: an end-to-end bearing fault diagnosis method integrating a learnable wavelet packet transform layer (Sensors, 2020)](https://mdpi-res.com/d_attachment/sensors/sensors-20-04965/article_deploy/sensors-20-04965-v2.pdf?version=1599107380)
18. [Gaëtan Frusque, Olga Fink (2024). Robust time series denoising with learnable wavelet packet transform. Advanced Engineering Informatics.](https://doi.org/10.1016/j.aei.2024.102669)
19. [Selection of wavelet packet basis for rotating machinery fault diagnosis (Journal of Sound and Vibration, 2005)](https://www.sciencedirect.com/science/article/abs/pii/S0022460X04006078)
20. [Shift-invariant wavelet packet decomposition and best basis search (Cohen, Raz & Malah, Signal Processing 57, 1997)](https://israelcohen.com/wp-content/uploads/2018/05/sp_Mar1997.pdf)
21. [The Dual-Tree Complex Wavelet Transform: A Coherent Framework for Multiscale Signal and Image Processing (IEEE Signal Processing Magazine, 2005)](https://www.math.ucdavis.edu/~saito/data/summer08/selesnick-baraniuk-kinsbury-cwt.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Harmonic analysis, transforms, and integral equations

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/wavelet-packet-decomposition

English original: https://www.edgepedia.org/wavelet-packet-decomposition
