Wavelet transforms work by applying a set of wavelet functions to the data, which are scaled and translated versions of a mother wavelet. These functions can capture details at different scales and positions, allowing for a multi-resolution analysis. The results can be visualized as a scalogram, a heatmap that shows how the signal's frequency content varies over time.