By Dave DeFusco
Katz School researchersâRuslan Gokhman, a student in the Ph.D. in Mathematics and 2024 graduate of the M.S. in Artificial Intelligence, and Dr. Marian Gidea, a professor of mathematical sciencesâpresented a new way to detect financial bubbles before they pop at the 2025 SIAM Conference on Financial Mathematics and Engineering in July in Miami.
Their secret weapon? A combination of wavelets and a cutting-edge mathematical tool with a name straight out of science fiction: Topological Data Analysis, or TDA. If youâve ever watched the stock market soar, only to see it come crashing down days or weeks later, youâve witnessed a financial bubble in action. These bubbles can be âpositive,â where prices surge unsustainably before collapsing, or ânegative,â where they plummet sharply and then snap back.
Economists have long struggled to find reliable early warning signalsâpatterns that hint at a looming crash or sudden rebound. âMost traditional tools either miss these turning points or pick up too much noise,â said Gokhman. âWe wanted something that could see deeper patternsânot just in price, but in how the market is behaving over time.â
Thatâs where TDA comes in. At its heart, TDA is about shape, specifically the shape of data. Rather than looking at stock prices as a flat line moving up and down, TDA treats data like a 3D landscape, mapping out the geometry of how values change over time.
One of its key tools, persistent homology, examines the number and âvisibilityâ of holes or loops in that shapeâfeatures that can reflect repeating patterns, sudden shifts or structural changes in the market. These geometric features show up in something called a persistence diagram, and they can signal that the market is heading for turbulence.
To get this geometric insight, researchers first need to turn a one-dimensional time series, like a stock price chart, into a cloud of points in a higher-dimensional space. Thatâs done using delay-coordinate embedding, where you take windows of past prices and look at them like frames in a movie. Hereâs where it gets tricky: the size of that window mattersâa lot.
âIf the window is too small, you pick up a lot of noise,â said Gokhman. âToo large, and you lose the important features because everything gets smoothed out. You need a Goldilocks windowâjust right.â
To find that âjust rightâ window size, Gokhman and Gidea turned to another powerful tool: the wavelet transform. Think of wavelets as tiny waves you can stretch and shift to match different patterns in your dataâkind of like tuning a radio to hear signals buried in static.
Wavelet analysis lets researchers zoom in on dominant frequencies in the marketâs behavior and see how those patterns change over time. Using a specific type of waveletâthe Morlet wavelet with fine-tuned settingsâthey created something called a scaleogram, a heatmap showing where and when key frequencies appear in the market data.
By combining this wavelet decomposition with TDA, they created a method to automatically pick the optimal sliding window for the analysis, meaning they could consistently identify the clearest, most meaningful geometric features.
To test their approach, the researchers ran it on historical data from the S&P 500 from late 2013 to late 2018 and Bitcoin from spring 2021, right before a crash. As each market approached a bubble and began to wobble, the TDA method produced sharp spikes in whatâs called the âpersistence landscape norm,â a numerical measure of the dataâs geometric complexity. These spikes reliably appeared before the actual crash or rebound, offering a kind of mathematical early warning system.
âThis approach allows us to detect changes that are invisible to conventional time-series tools,â said Gidea. âIt reveals deep structural shifts in the dataâsignals that a critical transition is coming.â
Financial markets are noisy, chaotic systems influenced by everything from corporate earnings to global politics. But beneath that chaos, there may be patternsâhidden structures that can be revealed through geometry.
What makes Gokhman and Gideaâs work so significant is its ability to measure these hidden structures and tie them to real-world events like market crashes. Their method doesnât rely on assumptions about how markets âshouldâ behave; it finds signs that something big is about to change. Perhaps, most important, it helps answer a key question: not just whether a crash is coming, but when.
âThe real challenge in applying TDA to time-series data has always been the choice of window size,â said Gokhman. âOur contribution was to solve that problem by using wavelets, which gave us a dynamic, adaptive way to analyze markets that change over time.â