The Hilbert Transform is a tool for signal processing that allows us to convert a real valued signal into its analytic representation, which is a complex-valued signal. This transformation is particularly useful for extracting instantaneous amplitude and phase information from oscillatory signals, such as neural signals in computational neuroscience.

In layman’s terms, it is a filter that leaves the amplutude of each frequency component unchanged but shifts the phase of each component by 90 degrees. This phase shift allows us to construct a complex signal where the real part is the original signal and the imaginary part is the Hilbert transform of the original signal.
Intuition
The goal of the Hilbert Transform is to create its Analytic Signal. For real world signals like EEG data, it can be usefull to imagine them as rotating Phasors in the complex plane, allowing us to track how their amplitude and phase change over each moment.
Given a real signal , its analytic signal is defined as:
Where:
- is the original real-valued signal.
- is the Hilbert Transform of .
- is the imaginary unit
With this analytic signal, we can compute the Instantaneous Amplitude and Instantaneous Phase.
The Instantaneous Amplitude can be calculated by taking the magnitude of the complex vector . This traces the outline as seen in the above image.
The Instantaneous Phase can be calculated using the arctangent of the ratio of the imaginary part to the real part of the analytic signal . The derivative of this phase with respect to time gives us the Instantaneous Frequency.
Formulation
There exists two definitions of the Hilbert Transform, one in the time domain and one in the frequency domain.
Time Domain
We convolute the signal with the function . Defined formally using the Cauchy principal value, the Hilbert Transform is given by:
Revealing the local symmetry of the signal around each point in time.
Frequency Domain
This version is much more intuitive. The Hilbert Transform can be understood in terms of its effect on the frequency components of the signal. In the frequency domain, the Hilbert Transform is defined by multiplying the Fourier Transform of the signal by , where is the sign function.
Defining the function more explicitly:
For Positive Frequencies (): Multiply by (phase shift of -90 degrees)
For Negative Frequencies (): Multiply by (phase shift of +90 degrees)
And the DC Component (): Multiply by (removes the DC component)
Example
A simple example with trig functions for a cosine wave:
Hilbert Transform shifts it by 90 degrees to become a sine wave:
Yielding the analytic signal:
Where its envelope (instantaneous amplitude) is constant at , and its instantaneous phase increases linearly over time.
And it’s easy to see that the instantaneous frequency is simply , linear growth over time.