← Latest papers
💻 computer science

Non-Negative Matrix Factorization for Event Data

This paper introduces EventNMF, a mathematically principled and computationally efficient continuous-time non-negative matrix factorization model that directly analyzes raw event times via Poisson processes and B-splines to uncover interpretable temporal structures without the information loss associated with traditional binning or smoothing preprocessing.

Original authors: Raphaël Romero

Published 2026-06-05
📖 5 min read🧠 Deep dive

Original authors: Raphaël Romero

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

Imagine you are trying to understand the rhythm of a busy city. You have a list of millions of tiny "pings" from different people: a bus arriving at 8:03, a coffee shop opening at 8:15, a siren at 8:42, and so on. These are event data—discrete moments in time rather than a smooth, continuous line.

For a long time, scientists trying to find patterns in this data had to play a game of "connect the dots" by drawing boxes around the time (like 8:00–8:15, 8:15–8:30) and counting how many pings fell in each box. The paper calls this binning.

The author, Raphaël Romero, argues that this "boxing" method is like trying to understand a symphony by only counting how many notes were played in each 10-second chunk. You lose the melody, the specific timing, and the unique rhythm of each instrument.

The Problem: The "Boxing" Trap

When you force continuous time into boxes (bins), you risk two things:

  1. Smoothing out the details: You might miss a quick, important spike in activity because it got averaged out with the quiet time around it.
  2. Creating artificial noise: If your boxes are too small, you get empty boxes (noise). If they are too big, you blur the distinct patterns together. It's a frustrating guessing game to find the "right" box size.

The Solution: EventNMF (The "Direct Stream" Approach)

The paper introduces a new tool called EventNMF. Instead of forcing the data into boxes, EventNMF looks at the raw, exact timestamps of every single event.

Think of it this way:

  • Old Way (Binning): You take a bucket of water (the events) and try to measure it by pouring it into cups of a fixed size. You lose the shape of the water flow.
  • EventNMF: You look at the water flowing directly from the tap. You can see exactly when the stream is strong, when it trickles, and when it stops, without ever needing a cup.

How It Works: The "Recipe" Analogy

The core idea is that every entity (a person, a neuron, a city block) has its own unique "recipe" for when events happen. But these recipes aren't random; they are made by mixing a few master ingredients (latent factors).

  1. The Master Ingredients (Temporal Factors): Imagine there are a few basic "flavors" of time.
    • Flavor A: A sharp burst at the start (like a starting gun).
    • Flavor B: A steady hum in the middle (like a background conversation).
    • Flavor C: A slow fade-out at the end (like a sunset).
  2. The Mixing (Loadings): Each entity mixes these flavors in different amounts.
    • Entity 1 might be 90% Flavor A and 10% Flavor B.
    • Entity 2 might be 50% Flavor B and 50% Flavor C.

EventNMF's job is to figure out:

  • What are the shapes of the Master Ingredients?
  • How much of each ingredient did each entity use?

It does this using a mathematical "recipe" called a Poisson process, which is the standard way to model random events happening over time. It uses flexible curves (called B-splines) to draw the shapes of these ingredients smoothly, without needing to chop time into boxes.

What the Paper Found (The Results)

The author tested this method in three ways:

  1. Fake Data (Synthetic): They created a fake world with known patterns. EventNMF found the patterns perfectly, while the old "boxing" methods struggled unless the boxes were sized exactly right. EventNMF worked well even when the data was very sparse (few events).
  2. Earthquakes: They analyzed earthquake data from California and Nevada. The tool found two distinct "flavors" of shaking:
    • One was a massive, sharp spike in July 2019 (the Ridgecrest earthquake) followed by a quick fade (aftershocks).
    • The other was a slow, steady, low-level rumble near "The Geysers" area that happened constantly over ten years.
    • It successfully separated these two very different behaviors without mixing them up.
  3. Brain Neurons: They looked at a mouse's brain activity while it watched a visual stimulus. The tool found four distinct "rhythms" of brain firing: a sharp start, a steady beat, a delayed reaction, and a suppression (quieting down). It could tell which parts of the brain were doing which rhythm.
  4. School Contacts: They analyzed when students in a primary school bumped into each other. The tool automatically figured out the class schedules. It found "lesson time" patterns (steady interactions within a class) and "free time" patterns (sharp peaks when kids from different classes mixed at lunch). It even noticed that teachers moved between classes, so they didn't fit into just one "class" pattern.

Why This Matters

The paper claims that EventNMF is:

  • Mathematically sound: It doesn't rely on arbitrary boxes.
  • Fast: It can process thousands of entities and millions of events in seconds on a normal computer.
  • Flexible: It works on earthquakes, brain waves, and social interactions.

In short, EventNMF lets us listen to the "music" of time directly, rather than trying to count the notes inside a box.

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 →