← Latest papers
🤖 machine learning

Quantifying Event Impacts on Time Series via Multiscale Contrastive Learning

The paper introduces EventTime, a multiscale contrastive learning framework paired with the SECURE dataset, to accurately predict short-term financial losses caused by cybersecurity breaches by effectively integrating long-horizon market context, pre-event dynamics, and event metadata while addressing the challenges of sparse supervision and market noise.

Original authors: Yiming Sun, Shengyu Chen, Zhengzhang Chen, Haoyu Wang, Xiaowei Jia, Haifeng Chen

Published 2026-08-21
📖 7 min read🧠 Deep dive

Original authors: Yiming Sun, Shengyu Chen, Zhengzhang Chen, Haoyu Wang, Xiaowei Jia, Haifeng Chen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Markets are not just machines that tick forward on their own; they are living systems that react to the world around them. When a company is healthy and the economy is steady, its stock price usually moves in predictable rhythms, rising and falling with the seasons of business and the habits of investors. But sometimes, something sudden and external happens—a news report about a data breach, a regulatory filing, or a public scandal—that shatters those rhythms. These events are discrete, like a stone dropped into a calm pond, but their consequences ripple through continuous financial data, causing prices to drop sharply and unexpectedly. The challenge for anyone trying to understand these markets is that while the event itself is a single moment in time, the damage it causes unfolds over days or weeks, often mixed in with normal market noise. Figuring out exactly how much a specific event hurt a company, separate from the general ups and downs of the stock market, is a difficult puzzle that traditional tools often fail to solve.

A team of researchers has developed a new way to measure this specific kind of damage, focusing on the moment a cybersecurity incident is made public. They created a system called EventTime, designed to look at the history of a company's stock price before a breach is announced and combine it with the details of the breach itself to predict the immediate financial loss that follows. Unlike older models that try to guess the entire future path of a stock price, this system asks a simpler, more precise question: given what we know about the market leading up to the news and the severity of the news itself, how much value will the company lose in the short term? The researchers found that by treating the event not just as a footnote but as a central part of the story, and by using a learning method that helps the computer recognize patterns in rare situations, they could predict these losses much more accurately than existing methods.

The core of the problem is that standard forecasting tools are excellent at spotting trends, like a company's steady growth or the seasonal cycles of retail sales, but they struggle when a rare, chaotic event hits. Most of these tools assume the future will look somewhat like the past, but a major data breach is not a routine occurrence. It is an outlier that breaks the rules. The researchers realized that to understand the impact of such an event, they needed to look at the market through multiple lenses simultaneously. They needed to see the long-term health of the company, the medium-term trends, and the very recent, jittery movements right before the news broke. They also needed to understand the specific nature of the event: was it a small leak of email addresses, or a massive theft of social security numbers? The impact of these two scenarios is vastly different, yet traditional models often treat them as just another data point.

To solve this, the team built a framework that acts like a multi-layered filter. First, it breaks down the history of a stock's performance into different time scales, looking at daily fluctuations, weekly trends, and monthly patterns all at once. This gives the system a full picture of the company's state before the shock. Then, it takes the details of the cybersecurity incident—the type of data stolen, the number of people affected, and the severity of the breach—and blends them into the financial picture. Instead of simply adding the event details to the end of the data, the system uses a special attention mechanism to find the specific moments in the recent past where the market was most sensitive to the kind of event that just happened. It asks, "Given this specific type of breach, which parts of the recent market history matter most?" This allows the model to isolate the signal of the event from the background noise of normal market activity.

Because major data breaches are rare, there is not a huge amount of historical data to teach a computer how to predict them. If a model is trained on too little data, it tends to memorize the noise rather than learning the real pattern. To overcome this, the researchers introduced a technique called contrastive learning. Imagine the system is shown two different companies that both suffered similar types of data breaches under similar market conditions. The system is trained to recognize that these two situations are alike and should be grouped together in its understanding, even if the exact dollar amount of their losses varies slightly. Conversely, it learns to push apart situations that look different, such as a minor breach during a market crash versus a major breach during a stable period. This method helps the model build a robust understanding of what drives financial loss in these rare events, making it more reliable even when it encounters a new type of incident or missing information.

The researchers tested their system on a massive, real-world dataset they created, which links thousands of cybersecurity incidents reported by the Privacy Rights Clearinghouse with the daily stock prices of hundreds of US companies. They found that their new system consistently outperformed the best existing models for predicting stock movements. While other tools often struggled to distinguish between a normal market dip and a crash caused by a specific news event, EventTime was able to pinpoint the abnormal loss with greater accuracy. The system proved particularly good at handling incomplete information; even when some details about a breach were missing, it could still make a solid prediction by relying on the patterns it had learned from similar past events. This suggests that the model has learned the underlying logic of how markets react to security failures, rather than just memorizing specific examples.

To ensure their approach was not just a fluke of the financial world, the team also tested it on a completely different field: hydrology. They applied the same logic to predict how river water levels would respond to extreme rainfall events. Just as a stock price reacts to a news story, a river's flow reacts to a sudden spike in rain. The system successfully predicted the immediate surge in water levels based on the history of the river and the details of the rainfall. This cross-domain success indicates that the method is not limited to finance; it is a general way of understanding how any continuous system reacts to a sudden, discrete shock.

The findings suggest that the way we analyze market shocks needs to change. We cannot rely on models that only look at the past behavior of prices to predict the future impact of a crisis. Instead, we must build systems that can read the event itself and understand how that event interacts with the current state of the market. By combining a deep look at the past with a careful reading of the present news, and by using learning techniques that help the computer recognize rare patterns, we can get a clearer picture of the true cost of a crisis. This work does not just offer a better tool for investors; it provides a new way to quantify the invisible damage that spreads through our digital and economic systems when security fails.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →