# S变换

S变换（[斯托克韦尔变换](https://www.edgepedia.org/zh/stockwell-transform)）是一种线性时频变换，它用一个宽度随频率成反比缩放的高斯窗分析信号，产生非平稳信号的可逆、频率相关频谱表示。<sup>[1](https://digital.csic.es/bitstream/10261/19699/1/2007-Simon-DIST.pdf)</sup> 它介于[短时傅里叶变换](https://www.edgepedia.org/zh/short-time-fourier-transform)（STFT）与连续小波变换（CWT）之间：在较高频率处窗更窄，在较低频率处窗更宽，同时保留STFT以时间原点为参考的相位。<sup>[2](https://imgw.univie.ac.at/fileadmin/user_upload/i_img/Geophyik/Publikationen_bis_2018/Tary_2014_Spectral.pdf)</sup><sup> • </sup><sup>[1](https://digital.csic.es/bitstream/10261/19699/1/2007-Simon-DIST.pdf)</sup> 其输出S矩阵是一个复值时频阵列，在每个频率上对时间积分可恢复信号的傅里叶频谱。<sup>[3](https://www.crewes.org/Documents/ResearchReports/2009/CRR200970.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 引入论文 | R.G. 斯托克韦尔（R.G. Stockwell）、L. 曼辛哈（L. Mansinha）、R.P. 洛（R.P. Lowe），《复频谱的定位：S变换》，《IEEE信号处理汇刊》44(4):998–1001，1996<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC3910128/)</sup> |
| 窗 | 标准差随频率变化的高斯窗 \( \sigma(f) = 1/|f| \)<sup>[5](http://imedlab.org/pdfs/papers/frequency-wwost.pdf)</sup> |
| 定义性质 | S变换的时间平均等于信号的傅里叶变换（频率边缘性质）<sup>[5](http://imedlab.org/pdfs/papers/frequency-wwost.pdf)</sup> |
| 与CWT的关系 | 一种带有相位校正的CWT，该校正将相位参考到时间原点<sup>[6](https://www.sciencedirect.com/science/article/abs/pii/S0165168414002618)</sup> |
| 离散计算成本 | 对N点信号为 \( O(N^{2} \log_{2} N) \)，利用FFT共轭对称性可降至 \( O((N/2+1)N \log_{2} N) \)<sup>[7](https://www.mdpi.com/2227-9717/13/3/743)</sup> |
| 可逆性 | 在连续域中完全可逆；在离散域中，两种逆变换都带有取决于信号长度和缩放的副作用<sup>[1](https://digital.csic.es/bitstream/10261/19699/1/2007-Simon-DIST.pdf)</sup> |
| 主要用途 | 电能质量扰动分类，<sup>[8](https://doi.org/10.1049/iet-spr.2019.0042)</sup> 地震谱分解，<sup>[9](https://library.seg.org/doi/10.1190/geo2015-0425.1)</sup> 脑电图癫痫发作检测，<sup>[10](https://www.maths.lu.se/fileadmin/maths/personal_staff/mariasandsten/TFkompver4.pdf)</sup> 以及机械故障诊断<sup>[11](https://iopscience.iop.org/article/10.1088/1361-6501/ad0e59)</sup> |

## 工作原理

对于信号 \( x(t) \)，标准S变换将信号与一个由傅里叶核调制的高斯窗卷积：<sup>[10](https://www.maths.lu.se/fileadmin/maths/personal_staff/mariasandsten/TFkompver4.pdf)</sup>

\[ S_{x}(\tau, f) = \int_{-\infty}^{+\infty} x(t)\, \frac{\|f\|}{\sqrt{2\pi}}\, e^{- (t-\tau)^{2} f^{2} / 2}\, e^{-i 2\pi f t}\, dt \]

高斯窗的标准差为 \( \sigma(f) = 1/\|f\| \)，因此窗在低频处时间上较宽（从而获得高频率分辨率），在高频处较窄（从而获得高时间分辨率）。<sup>[7](https://www.mdpi.com/2227-9717/13/3/743)</sup><sup> • </sup><sup>[5](http://imedlab.org/pdfs/papers/frequency-wwost.pdf)</sup> 该变换可以从伽博变换（即高斯窗STFT）导出，只需让窗的标准差成为频率的函数。<sup>[3](https://www.crewes.org/Documents/ResearchReports/2009/CRR200970.pdf)</sup>

有两个性质使它有别于相邻方法。第一，对S变换沿时间积分可返回信号的傅里叶变换 \( X(f) \)，这是小波变换所缺乏的频率边缘性质；S变换不满足相应的时间边缘性质。<sup>[5](http://imedlab.org/pdfs/papers/frequency-wwost.pdf)</sup> 第二，它是一种带有相位校正的CWT：傅里叶核将每个时频系数的相位参考到时间原点，而CWT在每个窗内局部参考相位。<sup>[6](https://www.sciencedirect.com/science/article/abs/pii/S0165168414002618)</sup> 斯托克韦尔、曼辛哈和洛将该变换描述为“带有相移的连续小波变换”。<sup>[2](https://imgw.univie.ac.at/fileadmin/user_upload/i_img/Geophyik/Publikationen_bis_2018/Tary_2014_Spectral.pdf)</sup> \( \|f\| \) 幅度因子的一个后果是，该变换强调较高频率的内容。<sup>[12](https://ar5iv.labs.arxiv.org/html/2101.06707)</sup>

## 实现方式

在离散实现中，信号的DFT只计算一次，然后在每个频率点对DFT频谱施加高斯窗：<sup>[6](https://www.sciencedirect.com/science/article/abs/pii/S0165168414002618)</sup>

\[ S[m, k] = \sum_{l=0}^{N-1} X[l+k]\, W(l, k)\, e^{j 2\pi l m / N}, \qquad W(l, k) = e^{- 2\pi^{2} l^{2} / k^{2}} \]

其中 \( k \) 是频率索引，\( m \) 是时间索引；零频率项 \( S[m, 0] \) 等于时域信号的均值。<sup>[6](https://www.sciencedirect.com/science/article/abs/pii/S0165168414002618)</sup> N点信号的计算复杂度为 \( O(N^{2} \log_{2} N) \)，FFT共轭对称性将其降至 \( O((N/2+1)N \log_{2} N) \)。<sup>[7](https://www.mdpi.com/2227-9717/13/3/743)</sup> 基于稀疏性的窗参数优化可以在与非优化算法相同的计算复杂度下正则化频率内容的突变。<sup>[9](https://library.seg.org/doi/10.1190/geo2015-0425.1)</sup>

存在两种逆变换。频率逆变换将S变换对所有时间求和，以恢复信号的傅里叶变换，在连续域中是精确的。时间逆变换对频率求和并直接返回时域信号，但包含一项近似，其误差可以任意小。<sup>[1](https://digital.csic.es/bitstream/10261/19699/1/2007-Simon-DIST.pdf)</sup> 在有限离散域中，两种逆变换都不精确；副作用取决于点数和可调缩放因子，而且频率逆变换需要的频率样本数与时间样本数一样多，对于只有少数频率重要的长地球物理记录而言效率低下。<sup>[1](https://digital.csic.es/bitstream/10261/19699/1/2007-Simon-DIST.pdf)</sup>

## 起源

它建立在两个传统之上。基本信号在二维时频“信息图”中占据尽可能小的面积，<sup>[10](https://www.maths.lu.se/fileadmin/maths/personal_staff/mariasandsten/TFkompver4.pdf)</sup> 而伽博展开和伽博变换是基础，S变换通过频率相关窗缩放从中导出。<sup>[3](https://www.crewes.org/Documents/ResearchReports/2009/CRR200970.pdf)</sup> 在小波方面，古皮约（Goupillaud）、格罗斯曼（Grossmann）和莫莱（Morlet）于1984年发表了《周期-倍频程及地震信号分析中的相关变换》，<sup>[13](https://doi.org/10.1016/0016-7142%2884%2990025-5)</sup> 多贝西（Daubechies）于1990年发表了《小波变换、时频定位与信号分析》。<sup>[14](https://doi.org/10.1109/18.57199)</sup> 曼辛哈、斯托克韦尔和洛于1997年将该方法推广到二维谱定位。<sup>[15](https://doi.org/10.1016/s0378-4371%2896%2900487-6)</sup>

## 变体

大多数变体修改高斯窗，同时保持变换的结构。

- <b>常数因子窗。</b> 曼辛哈、斯托克韦尔和洛（1997）在窗标准差中引入常数因子 \( k \)；较大的 \( k \) 以时间分辨率为代价换取频率分辨率，建议取 \( k = 3 \)。<sup>[3](https://www.crewes.org/Documents/ResearchReports/2009/CRR200970.pdf)</sup> 一种可变因子版本让 \( k \) 从零频率处的1线性上升到奈奎斯特频率处的6，其同时时频分辨率优于伽博变换和标准S变换。<sup>[3](https://www.crewes.org/Documents/ResearchReports/2009/CRR200970.pdf)</sup>
- <b>任意与非对称窗。</b> 平尼加（Pinnegar）和曼辛哈（2003）将该变换推广到形状任意且可变的窗，<sup>[16](https://doi.org/10.1190/1.1543223)</sup> 包括双高斯S变换。
- <b>窗宽优化S变换。</b> 塞伊迪奇（Sejdić）、久罗维奇（Djurović）和江（Jiang）（2008）引入控制窗宽的参数 \( p \)，\( S^{p}_{x}(t, f) = \int x(\tau)\, \|f\|^{p}/\sqrt{2\pi}\, e^{- (t-\tau)^{2} f^{2p} / 2}\, e^{-j 2\pi f \tau}\, d\tau \)，并按频率优化 \( p \) 以最大化集中度度量；其结果比标准S变换、STFT和伪维格纳-维尔分布更好地集中能量。<sup>[5](http://imedlab.org/pdfs/papers/frequency-wwost.pdf)</sup> 一种相关的指数形式使用 \( \sigma_{f} = \|f\|^{-r} \)，其中对于 \( f > 1 \) Hz，\( 0 < r < 1 \) 加宽时间窗，\( r > 1 \) 收窄时间窗。<sup>[17](https://journals.plos.org/plosone/article/file?id=10.1371%2Fjournal.pone.0310721&type=printable)</sup>
- <b>凯泽窗。</b> 用频率相关的凯泽窗（参数 \( \alpha(f) = \pi f \)）替代高斯窗，可在保持几乎相同自项宽度的同时收窄主瓣并减少旁瓣。<sup>[18](http://imedlab.org/pdfs/papers/kaiser-st.pdf)</sup>
- <b>广义S变换。</b> 一个三参数高斯窗（宽度因子 \( k \)、STFT与S变换行为之间的折中 \( m \)、以及宽度随频率变化的速率 \( s \)）可以自适应调谐，例如通过最小化雷尼熵。<sup>[19](https://api.geophysical-press.com/uploads/file/asp/Vol32-1_art3.pdf)</sup>
- <b>重构与快速形式。</b> 文托萨（Ventosa）及其同事（2008）从小波角度重新表述了该变换；<sup>[20](https://doi.org/10.1109/tsp.2008.917029)</sup> 斯托克韦尔（2006）给出了S变换高效表示的基础；<sup>[21](https://doi.org/10.1016/j.dsp.2006.04.006)</sup> 王（Wang）和奥查德（Orchard）（2009）提出了快速离散正交斯托克韦尔变换；<sup>[22](https://doi.org/10.1137/080737113)</sup> 布朗（Brown）、洛宗（Lauzon）和弗雷恩（Frayne）（2009）提出了一种快速、可逆的变换，以非冗余方式对连续S变换频谱采样。<sup>[23](https://doi.org/10.1109/tsp.2009.2028972)</sup> 阿苏斯（Assous）和博阿沙什（Boashash）（2012）评估了一种用于时频同步分析的改进S变换。<sup>[24](https://doi.org/10.1186/1687-6180-2012-49)</sup>
- <b>稀疏与集中形式。</b> 萨塔里（Sattari）、戈拉米（Gholami）和西亚库希（Siahkoohi）（2013）在该变换上构建了自适应稀疏时频分解，<sup>[25](https://doi.org/10.1190/geo2012-0550.1)</sup> 拉达德（Radad）、戈拉米（Gholami）和西亚库希（Siahkoohi）（2015）引入了一种用于非平稳地震反卷积的最大能量集中S变换，<sup>[26](https://doi.org/10.1016/j.jappgeo.2015.04.010)</sup> 黄（Huang）、张（Zhang）、赵（Zhao）和孙（Sun）（2015）引入了用于地震谱分解的同步挤压S变换。<sup>[27](https://doi.org/10.1109/tgrs.2015.2466660)</sup>

## 应用

2019年《IET信号处理》的一篇综述将S变换呈现为在单一函数中汇集了STFT和小波变换的优点，用于电能质量应用中的时变信号分析，同时指出从时变信号中提取低频和高频信息的最终解决方案尚未出现。在地球物理学中，该变换用于地震谱分解以及薄层和断层识别；基于自适应稀疏S变换的方法在薄层、圈闭气藏和断层数据上产生的瞬时复属性优于自适应稀疏STFT、稳健自适应加窗[希尔伯特变换](https://www.edgepedia.org/zh/hilbert-transform)和常规希尔伯特变换所产生的属性。<sup>[9](https://library.seg.org/doi/10.1190/geo2015-0425.1)</sup> 在生物医学信号处理中，已发表的应用包括从脑电图检测癫痫发作，以及用于声学回声消除的双讲检测。<sup>[10](https://www.maths.lu.se/fileadmin/maths/personal_staff/mariasandsten/TFkompver4.pdf)</sup> 在机械监测中，同步提取的推广形式用于变速条件下的旋转机械故障诊断。<sup>[11](https://iopscience.iop.org/article/10.1088/1361-6501/ad0e59)</sup> 近期工作大多将该变换与其他工具结合：一种快速S变换输入改进的CNN-LSTM混合模型，在强噪声下对单一扰动类型的电能质量扰动识别准确率保持在97%以上，对混合多类型扰动保持在95%以上；<sup>[7](https://www.mdpi.com/2227-9717/13/3/743)</sup> 一种同步挤压广义相移S变换已应用于探地雷达检测。<sup>[28](https://www.mdpi.com/1424-8220/24/10/2981)</sup>

## 局限与替代方法

S矩阵是冗余的：一个N点信号产生一个N×N复数组，而频率逆变换需要的频率槽与时间槽一样多，这对大型数据集是一个主要不便。<sup>[1](https://digital.csic.es/bitstream/10261/19699/1/2007-Simon-DIST.pdf)</sup> [离散化](https://www.edgepedia.org/zh/discretization)在两种逆变换中引入副作用，而滤波选择会与这些副作用相互作用：用于时间相关滤波的频率S变换-逆变换组合会导致时间定位问题，而用于频率相关滤波的时间S变换-逆变换组合会导致平滑；一种逆变换的伪影会叠加到另一种逆变换的伪影上，因此应避免混合使用两者。<sup>[1](https://digital.csic.es/bitstream/10261/19699/1/2007-Simon-DIST.pdf)</sup>

固定赋值 \( \sigma(f) = 1/\|f\| \) 对给定频率处的所有信号分量应用相同的标准差，<sup>[5](http://imedlab.org/pdfs/papers/frequency-wwost.pdf)</sup> 而原始变换无法以令人满意的频率轴分辨率表示高频分量。<sup>[17](https://journals.plos.org/plosone/article/file?id=10.1371%2Fjournal.pone.0310721&type=printable)</sup> 高斯窗和DFT泄漏在两个域中都导致较差的频率分辨率和能量集中，这促使了基于解析离散余弦变换的重构。<sup>[6](https://www.sciencedirect.com/science/article/abs/pii/S0165168414002618)</sup> 作为一种线性变换，它不受信号分量数目的影响，不同分量的时频分布线性叠加；但在[海森堡不确定性原理](https://www.edgepedia.org/zh/heisenberg-uncertainty-principle)下，它不能同时在时间和频率上达到高精度。<sup>[29](https://www.sciencedirect.com/science/article/abs/pii/S0926985123002252)</sup> S变换具有频率相关分辨率：其时间窗随频率增加而收窄，且在固定频率处分辨率随时间不变，而CWT的分辨率在尺度图上变化。<sup>[30](https://link.springer.com/article/10.1007/s11760-026-05421-3)</sup>

与替代方法相比：一项比较研究将斯托克韦尔变换的时频分辨率评为较差且依赖频率，但没有伪影，并建议在需要固定相位对齐下的可变分辨率时使用它；维格纳-维尔分布具有极好的分辨率，但有强烈的交叉项伪影，而平滑伪维格纳-维尔分布具有良好分辨率，偶尔有伪影。<sup>[12](https://ar5iv.labs.arxiv.org/html/2101.06707)</sup> 窗宽优化变体比STFT和伪维格纳-维尔分布实现更高的能量集中。<sup>[5](http://imedlab.org/pdfs/papers/frequency-wwost.pdf)</sup>

## References

1. [The S-Transform and Its Inverses: Side Effects of Discretizing and Filtering](https://digital.csic.es/bitstream/10261/19699/1/2007-Simon-DIST.pdf)
2. [Spectral estimation, What is new? What is next? (Tary et al., 2014)](https://imgw.univie.ac.at/fileadmin/user_upload/i_img/Geophyik/Publikationen_bis_2018/Tary_2014_Spectral.pdf)
3. [Variable-factor S-transform seismic data analysis](https://www.crewes.org/Documents/ResearchReports/2009/CRR200970.pdf)
4. [The S-Transform of Distributions](https://pmc.ncbi.nlm.nih.gov/articles/PMC3910128/)
5. [A Window Width Optimized S-Transform (Sejdić, Djurović, Jiang, EURASIP JASP 2008)](http://imedlab.org/pdfs/papers/frequency-wwost.pdf)
6. [S-transform based on analytic discrete cosine transform for time–frequency analysis](https://www.sciencedirect.com/science/article/abs/pii/S0165168414002618)
7. [Power Quality Disturbance Classification Strategy Based on Fast S-Transform and an Improved CNN-LSTM Hybrid Model](https://www.mdpi.com/2227-9717/13/3/743)
8. [S-transform: from main concepts to some power quality applications (IET Signal Processing, 2019), paper record](https://doi.org/10.1049/iet-spr.2019.0042)
9. [High-resolution seismic complex trace analysis by adaptive fast sparse S-transform](https://library.seg.org/doi/10.1190/geo2015-0425.1)
10. [Time-Frequency Analysis (lecture notes, Maria Sandsten, Lund University)](https://www.maths.lu.se/fileadmin/maths/personal_staff/mariasandsten/TFkompver4.pdf)
11. [A novel time-frequency analysis method for fault diagnosis based on generalized S-transform and synchroextracting transform](https://iopscience.iop.org/article/10.1088/1361-6501/ad0e59)
12. [Fourier, Gabor, Morlet or Wigner: Comparison of Time-Frequency Transforms](https://ar5iv.labs.arxiv.org/html/2101.06707)
13. [Cycle-octave and related transforms in seismic signal analysis (Geoexploration, 1984)](https://doi.org/10.1016/0016-7142%2884%2990025-5)
14. [I. Daubechies (1990). The wavelet transform, time-frequency localization and signal analysis. IEEE Transactions on Information Theory.](https://doi.org/10.1109/18.57199)
15. [Pattern analysis with two-dimensional spectral localisation: Applications of two-dimensional S transforms (Physica A Statistical Mechanics and its Applications, 1997)](https://doi.org/10.1016/s0378-4371%2896%2900487-6)
16. [C. Robert Pinnegar, Lalu Mansinha (2003). The S -transform with windows of arbitrary and varying shape. Geophysics.](https://doi.org/10.1190/1.1543223)
17. [Investigation and evaluation of cross-term reduction in masked Wigner-Ville distributions using S-transforms](https://journals.plos.org/plosone/article/file?id=10.1371%2Fjournal.pone.0310721&type=printable)
18. [S-Transform with Frequency Dependent Kaiser Window](http://imedlab.org/pdfs/papers/kaiser-st.pdf)
19. [Application of multi-synchrosqueezed generalized S-transform in seismic time frequency analysis](https://api.geophysical-press.com/uploads/file/asp/Vol32-1_art3.pdf)
20. [Sergi Ventosa and colleagues (2008). The $S$-Transform From a Wavelet Point of View. IEEE Transactions on Signal Processing.](https://doi.org/10.1109/tsp.2008.917029)
21. [R.G. Stockwell (2006). A basis for efficient representation of the S-transform. Digital Signal Processing.](https://doi.org/10.1016/j.dsp.2006.04.006)
22. [Yanwei Wang, Jeff Orchard (2009). Fast Discrete Orthonormal Stockwell Transform. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/080737113)
23. [Robert A. Brown, M. Louis Lauzon, Richard Frayne (2009). A General Description of Linear Time-Frequency Transforms and Formulation of a Fast, Invertible Transform That Samples the Continuous S-Transform Spectrum Nonredundantly. IEEE Transactions on Signal Processing.](https://doi.org/10.1109/tsp.2009.2028972)
24. [Said Assous, Boualem Boashash (2012). Evaluation of the modified S-transform for time-frequency synchrony analysis and source localisation. EURASIP Journal on Advances in Signal Processing.](https://doi.org/10.1186/1687-6180-2012-49)
25. [Hamid Sattari, Ali Gholami, Hamid R. Siahkoohi (2013). Seismic data analysis by adaptive sparse time-frequency decomposition. Geophysics.](https://doi.org/10.1190/geo2012-0550.1)
26. [Mohammad Radad, Ali Gholami, Hamid Reza Siahkoohi (2015). S-transform with maximum energy concentration: Application to non-stationary seismic deconvolution. Journal of Applied Geophysics.](https://doi.org/10.1016/j.jappgeo.2015.04.010)
27. [Zhong-lai Huang and colleagues (2015). Synchrosqueezing S-Transform and Its Application in Seismic Spectral Decomposition. IEEE Transactions on Geoscience and Remote Sensing.](https://doi.org/10.1109/tgrs.2015.2466660)
28. [An Improved Synchrosqueezing S-Transform and Its Application in a GPR Detection Task](https://www.mdpi.com/1424-8220/24/10/2981)
29. [Time-synchroextracting of generalized S-transform and its application in fault identification](https://www.sciencedirect.com/science/article/abs/pii/S0926985123002252)
30. [Enhancing heart sound signal denoising: unveiling the impact of time-frequency transformation in U-Net performance](https://link.springer.com/article/10.1007/s11760-026-05421-3)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 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/s-transform

English original: https://www.edgepedia.org/s-transform
