Feature Articles: Unraveling the Mind and Intelligence, and Weaving an Interconnected World

Understanding and Predicting Event Timing: Event Time-series Analysis with Point Processes and Machine Learning

Hideaki Kim

Abstract

Predicting when an event will occur makes it possible to take proactive measures to mitigate risk or capitalize on emerging opportunities. For example, preventive maintenance can be carried out before equipment fails, while discount coupons can be delivered just before a customer visits a store to encourage a purchase. The framework for analyzing event data and predicting the timing of future events is known as event time-series analysis. This article presents recent advances in estimating event-generation models and forecasting future events through machine-learning-based event time-series analysis.

Keywords: event time-series analysis, timing prediction, point processes

PDF

1. Predicting events and why it matters

If we can predict when an event will occur, we can take action before it happens. Such predictions are important not only for reducing risk but also for identifying and making effective use of opportunities. For example, carrying out preventive maintenance before a machine fails can reduce unplanned downtime and repair costs. Likewise, if we can predict when a customer is about to visit a store or when their purchase intent is likely to increase, we can present discount coupons or personalized recommendations in a timely manner, thus encouraging purchases.

Attempts to predict the timing of events have a long history across many fields. Representative examples include predicting equipment failures, the arrival times of calls at telephone exchanges, times of death or accidents in actuarial science, and occurrence times of aftershocks in seismology. The range of applications has expanded further. Important examples include predictive maintenance based on sensor data in manufacturing; the prediction of accidents and traffic congestion in transportation; early detection of infectious disease outbreaks and sudden deterioration in patients’ conditions in medicine and public health; detection of unauthorized access and anomalous network traffic in cybersecurity; and prediction of customer purchases in marketing. Event prediction is thus becoming a foundational technology shared across engineering, healthcare, information and communications technology, and marketing.

The framework for analyzing event-related data and predicting event timing is referred to as event time-series analysis. As large volumes of data containing detailed event timestamps are increasingly collected through Internet-of-Things devices, smartphones, and online services, the importance of event time-series analysis is expected to further increase. This article introduces recent advances in estimating event-generation models and predicting future events through machine-learning-based event time-series analysis.

2. Event time-series analysis

Data that record when events occur are called event time-series data. Such data are accumulated every day for a wide variety of phenomena, including earthquakes, equipment failures, consumer purchases, social media posts, and even heartbeats. More specifically, each observation in an event time series consists of an event time paired with associated information. In a social media post, for example, the event time is the time of posting, while the associated information may include the identity of the user, post content, and location information. Such data provide important clues for identifying the mechanisms that generate events and for accurately predicting when future events will occur.

Event times are represented as points on a time axis. A point process is a mathematical framework for describing the stochastic occurrence of such points. When combined with machine learning, point processes provide a standard approach to analyzing event time-series data*1. In a point-process model, events are assumed to occur according to an intensity function, which represents the instantaneous probability of event occurrence. Figure 1 shows examples of event time series generated by point processes. As a basic property, events occur infrequently during periods when the intensity is low and more frequently when the intensity is high, as shown in Fig. 1(a). Because events are generated stochastically, however, their inter-event intervals vary even when the intensity is constant, as illustrated in Fig. 1(b). By introducing history dependence into the intensity function, that is, by allowing past events to affect the current event generation, the model can represent clustered or regular patterns of event occurrence, as shown in Figs. 1(c) and (d). These examples illustrate that event timing is determined probabilistically by the intensity function. Conversely, if the intensity function can be estimated from event time-series data, future event times can be predicted on the basis of that estimate. Therefore, estimating the intensity function with a point-process model and using it to predict future events are central tasks in event time-series analysis.


Fig. 1. Examples of event time series.

Three representative event-prediction tasks are described assuming that the intensity function has been estimated, as summarized in Fig. 2. The first is the prediction of the time of the next event, as shown in Fig. 2(a). The predictive distribution of the next event time can be evaluated from the intensity function. Predicting when a customer will next visit a store is one example. The second is the prediction of the number of events that will occur during a future time interval, as shown in Fig. 2(b). The expected number of events is obtained by integrating the intensity function over the interval of interest. Examples include predicting the number of customer visits or equipment failures during a specified period. The third is the evaluation of the probability that at least one event will occur during a future interval, that is, the event risk, as shown in Fig. 2(c). In equipment failure, for example, preventive maintenance may be carried out when the estimated failure risk exceeds a predetermined threshold, such as 60%. This makes it possible to prevent failures while avoiding excessive maintenance, enabling cost-effective maintenance planning.


Fig. 2. Representative event predictions.

*1 For clarity, this article focuses on events occurring along a time axis, that is, in one dimension. In principle, however, point processes can model events occurring in spaces of arbitrary dimension, not only in time. For example, by incorporating latitude and longitude together with time, predicting when and where an event will occur can be formulated as a three-dimensional problem. The approaches introduced below are likewise broadly applicable, regardless of the dimensionality of the event data.

3. Learning the intensity function

The most important requirement for accurate event prediction is to precisely estimate the intensity function from event time-series data. We at NTT Communication Science Laboratories are therefore developing techniques for learning intensity-function models using machine learning*2. There are two broad approaches to learning function models. One specifies the structure of the function model in advance and learns its parameters, while the other flexibly learns the structure of the function from the data. Deep learning*3 is a representative example of the former, whereas kernel methods are a representative example of the latter. We are currently investigating kernel-method-based learning of intensity functions, focusing on the advantage that kernel methods require relatively few prior assumptions about the shape of the function.

Kernel methods learn a function by minimizing a loss function that measures its fit to the data. Because this involves optimization over a function space with infinitely many degrees of freedom, the problem cannot generally be solved directly. Under certain conditions on the loss function, however, the problem can be reduced to a finite-dimensional optimization problem that can be solved efficiently. This result is known as the representer theorem and forms a theoretical foundation of kernel methods. It is known, however, that the standard representer theorem is difficult to apply directly to intensity function learning; the loss functions used for point processes contain a time-integral term involving the intensity function, and this term violates assumptions required with conventional representer theorems. Recent studies have pointed out that some of these assumptions are not necessarily essential and have shown that representer theorems can also be established for certain point-process problems when the problem setting is appropriately restricted [1]. Nevertheless, the applicability of these methods remains limited. For example, they may be unable to account for external factors or history dependence in event occurrence, leaving many open challenges.

We are therefore developing point-process models for which representer theorems can be established. Three recent results corresponding to three different problem settings are as follows. For the problem of learning an intensity function that varies over time, we first developed a method for substantially improving the stability and speed of learning while maintaining event-prediction accuracy through a carefully designed loss function [2]. This result enables the analysis of large-scale datasets and supports applications requiring real-time prediction. We then developed methods for learning how external factors affect the intensity function [3, 4]. When there is a sudden deterioration in a patient’s condition, for example, the number of days since hospitalization and the patient’s age may serve as external factors. By evaluating the future intensity function while accounting for such factors, event timing can be predicted more accurately. This problem setting is known as survival analysis, or time-to-event analysis, and is particularly important in medicine. We finally developed a method for rapidly learning the strengths of interactions among multiple event time series, the intensity functions of which impact one another [5]. This problem setting is described by a Hawkes process. Because Hawkes processes can model cascading phenomena in which one event triggers another, they are useful for analyzing information diffusion on social media, chains of transactions in financial markets, aftershock sequences following earthquakes, and the propagation of network failures.

*2 Learning a function model: Using observed data to estimate the parameters of a mathematical model that represents the target function.
*3 Deep learning: A machine-learning approach in which multilayer neural networks are trained on data to learn complex patterns and representations.

4. Future directions

Advances in information technology have dramatically expanded the volume and variety of time-series data available to businesses and society. Smartphones, wearable devices, and online services continuously generate detailed records of what happened, when it happened, and where it occurred. By applying machine learning to uncover complex patterns in these data, increasingly accurate and sophisticated predictions are becoming possible. Event time-series analysis, the focus of this article, represents one important application of this broader trend.

This article has presented our work on kernel-method-based approaches for event time-series analysis. Although kernel methods require optimization over infinite-dimensional function spaces and can therefore be mathematically demanding, their structure can be exploited to develop methods that are both flexible and computationally efficient. In parallel, deep-learning approaches to event time-series analysis have attracted increasing attention [6]. Deep learning is particularly well-suited to extracting predictive features automatically from high-dimensional and complex data, including text, images, sensor measurements, and behavioral histories. It therefore offers considerable potential for learning intensity functions with intricate forms of history dependence and achieving high predictive accuracy. Deep-learning models are also often easier to implement in practice because, unlike kernel methods, they do not require the direct treatment of infinite-dimensional optimization problems. These advantages, however, come with important limitations. Deep learning typically requires large datasets, substantial computational resources, and long training times. The reasoning behind a model’s predictions can also often be difficult to interpret. For these reasons, we believe that integrating deep learning with kernel methods will be an important direction for future research. By combining the powerful representational capabilities of deep learning with the flexible and computationally efficient function-learning framework of kernel methods, it may be possible to develop approaches that achieve both high predictive accuracy and practical efficiency, even when external factors and event histories interact in complex ways.

Building on a rigorous mathematical understanding of point processes and machine learning, we will continue to advance event time-series analysis technologies for predicting complex real-world events and using those predictions to reduce risk and create new opportunities.

References

[1] S. Flaxman, Y. W. Teh, and D. Sejdinovic, “Poisson Intensity Estimation with Reproducing Kernels,” Proc. of 20th International Conference on Artificial Intelligence and Statistics (AISTATS), Ft. Lauderdale, FL, USA, 2017.
[2] H. Kim, T. Iwata, and A. Fujino, “K2IE: Kernel Method-based Kernel Intensity Estimators for Inhomogeneous Poisson Processes,” Proc. of the 42nd International Conference on Machine Learning (ICML), Vancouver, Canada, 2025.
[3] H. Kim, T. Asami, and H. Toda, “Fast Bayesian Estimation of Point Process Intensity as Function of Covariates,” Advances in Neural Information Processing Systems (NeurIPS), 2022.
[4] H. Kim, “Survival Permanental Processes for Survival Analysis with Time-varying Covariates,” Advances in Neural Information Processing Systems (NeurIPS), 2023.
[5] H. Kim and T. Iwata, “A Representer Theorem for Hawkes Processes via Penalized Least Squares Minimization,” Proc. of 14th International Conference on Learning Representations (ICLR), Rio de Janeiro, Brazil, 2026.
[6] S. Zuo, H. Jiang, Z. Li, T. Zhao, and H. Zha, “Transformer Hawkes Process,” Proc. of 37th International Conference on Machine Learning (ICML), Virtual, 2020.
Hideaki Kim
Distinguished Researcher, Learning and Intelligent Systems Research Group, Communication Science Laboratories, NTT, Inc.
He received a B.E. in physics from Tohoku University, Miyagi, in 2007 and M.E. and Ph.D. in science from Kyoto University in 2009 and 2013. He joined NTT Service Evolution Laboratories in 2013, where he conducted research on recommendation systems and time-series analysis. He worked at NTT DATA from 2017 and has held his current position since 2019. His current research focuses on computationally efficient machine-learning methods for event time-series analysis. He is a member of the Information Processing Society of Japan.

↑ TOP