Financial Anomaly Detection for the Canadian Market

This paper evaluates topological data analysis, principal component analysis, and neural network-based methods on TSX-60 data to detect Canadian financial anomalies, finding that neural networks and TDA offer the strongest performance by leveraging global topological properties to identify major stress events.

Luigi Caputi, Nicholas Meadows

Published 2026-04-06
📖 4 min read☕ Coffee break read

Imagine the Canadian stock market (the TSX-60) as a massive, bustling orchestra. Every musician (stock) plays their own instrument, but they are also listening to each other. Usually, they play in harmony. But sometimes, the music gets chaotic, dissonant, or the whole band starts playing out of sync. These moments of chaos are financial crises—like the 2008 crash or the pandemic panic.

The goal of this paper is to build a "super-listener" that can hear these moments of chaos before the music completely falls apart, warning investors to get ready.

The authors, Luigi and Nicholas, tested three different types of "super-listeners" to see which one is best at spotting these warning signs in the Canadian market.

The Three "Super-Listeners"

1. The "Shape Detective" (Topological Data Analysis - TDA)

Imagine you have a giant, tangled ball of yarn representing the relationships between all the stocks.

  • How it works: Instead of looking at individual knots, this method looks at the overall shape of the ball. Is it a smooth sphere? Does it have a hole in the middle? Is it twisted into a weird knot?
  • The Analogy: When the market is calm, the yarn ball looks like a nice, round beach ball. When a crisis is coming, the ball suddenly twists into a weird, spiky shape with holes.
  • The Result: This "Shape Detective" was very good. It realized that the global shape of the market changes before a crash happens.

2. The "AI Mimic" (Neural Networks)

Think of this as a student trying to learn a song by listening to a master teacher.

  • How it works: The AI listens to the "normal" music of the stock market for years. It builds a mental model of what "normal" sounds like. Then, it listens to the current market. If the current music sounds too different from what it learned, it raises an alarm.
  • The Twist: They used two specific types of AI. One tried to memorize the whole song perfectly (One-Shot), and the other tried to copy a "teacher" AI (Knowledge Distillation).
  • The Result: These were the champions. They were the most accurate at spotting both the big crashes and the smaller, sneaky stress events (like when oil prices crashed in 2015).

3. The "Flattener" (Principal Component Analysis - PCA)

Imagine trying to describe a complex 3D sculpture by squashing it flat onto a 2D piece of paper.

  • How it works: This method takes all the complex data and tries to simplify it into a few main lines (like summarizing a 500-page book into a 3-sentence summary).
  • The Result: It was okay at spotting the huge disasters (like 2008), but it missed the smaller, subtle warnings. It was too busy looking at the "big picture" summary and missed the fine details.

The Big Discovery

The authors tested these methods on the Canadian market from 2005 to 2021. They looked for famous "bad days" like:

  • The 2008 Financial Crisis.
  • The Greek Debt Crisis.
  • The 2020 Pandemic crash.
  • The 2015-2016 Oil Price crash (which hit Canada hard).

Here is what they found:

  • The Winners: The AI Mimics and the Shape Detectives were the best. They didn't just spot the massive earthquakes; they also felt the small tremors that happened before the big ones.
  • The Loser: The Flattener (PCA) missed a lot of the smaller, important stress events.
  • Why it matters: The fact that the "Shape Detective" worked so well suggests that financial crises aren't just about one or two stocks going down. They are about the entire structure of the market changing shape. It's like the whole orchestra suddenly deciding to play in a different key, not just one violinist playing a wrong note.

The Takeaway

If you want to predict when the Canadian stock market is about to have a meltdown, don't just look at the individual numbers. You need to look at the shape of the connections between companies or use smart AI that understands the complex "music" of the market.

The authors even tested this on the US market (the Dow Jones), and the same rule applied: Smart AI and Shape Analysis beat simple summaries every time.

In short: To find the storm before it hits, you need to understand the shape of the clouds, not just count the raindrops.

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →