SYSTEMS AND METHODS FOR TIME SERIES FORECASTING

Systems and methods for providing a neural network system for time series forecasting are described. A time series dataset that includes datapoints at a plurality of timestamps in an observed space is received. A first state-space model of a dynamical system underlying the time series dataset is provided. The first state-space model includes a non-parametric latent transition model. One or more latent variables of a latent space for the time series dataset are determined using the neural network system based on the first state-space model. A first prediction result for the time series dataset is provided by the neural network system based on the estimated latent variables.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description

This application claims priority to U.S. Provisional Patent Application No. 63/344,495 filed May 20, 2022 which is incorporated by reference herein in its entirety.

TECHNICAL FIELD

The embodiments relate generally to time series forecasting, and more specifically to systems and methods for learning latent causal dynamics in time series forecasting.

BACKGROUND

Time series forecasting has been widely used in research and industries such as economic planning, epidemiology study, or energy consumption. State space models, together with deep learning, have been used for time series analysis and prediction. However, these methods usually rely on stringent assumptions regarding the nature of causal relationships that may not hold in practice. For example, if the forms of transition and emission processes with stringent assumptions in these models cannot approximate the actual data generation process, the results could be sub-optimal.

Therefore, there is a need for improved time series forecasting.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a simplified block diagram of a computing device for implementing the time series forecasting framework based on a non-parametric state space model described in embodiments herein.

FIG. 2 is a simplified block diagram of a networked system suitable for implementing the time series forecasting framework based on a non-parametric state space model described in embodiments herein.

FIG. 3 is an example logic flow diagram illustrating a method of providing time series forecasting based on a non-parametric state space model for a dynamical system underlying the time series data, according to some embodiments described herein.

FIG. 4 is an example logic flow diagram illustrating a method of providing time series forecasting based on the non-parametric state space model, according to some embodiments described herein.

FIG. 5 is an example block diagram illustrating an example architecture for a time series forecasting framework based on the non-parametric state space model in model training, according to some embodiments described herein.

FIG. 6 is an example block diagram illustrating an example transition prior modeling used in the time series forecasting framework of FIG. 5, according to some embodiments described herein.

FIGS. 7A and 7B illustrate comparison between example modeling dependencies in observation space and latent space used in the time series forecasting framework, according to some embodiments described herein

FIG. 8 illustrates a graph representation of a generation process of a dynamical system with time-varying change factors as used in the time series forecasting framework, according to some embodiments described herein.

FIGS. 9-18 provide example data tables and experimental results illustrating example data performance of the time series forecasting framework based on a non-parametric state space model described in relation to FIGS. 1-7B, according to some embodiments described herein.

In the figures, elements having the same designations have the same or similar functions.

DETAILED DESCRIPTION

As used herein, the term “network” may comprise any hardware or software-based framework that includes any artificial intelligence network or system, neural network, or system and/or any training or learning models implemented thereon or therewith.

As used herein, the term “module” may comprise hardware or software-based framework that performs one or more functions. In some embodiments, the module may be implemented on one or more neural networks.

Time series forecasting using deep learning models is often challenging because the deep learning models may not have a priori knowledge of the time series. For example, in modelling a pandemic transmission and recovery model, the assumptions of protocols such as containment strategies at different periods may not be apparent in the time-series data itself. For example, protocols such as self-quarantine and social distancing mandates, and the like, which were implemented at certain periods during a lookback time window, can often influence the outcome of time series forecasts. However, such knowledge of historical protocols may not be captured by the deep learning model by merely learning the time series data such as the number of new cases, 7-day average, and/or the like within a past time period.

Furthermore, deep learning models are often directly trained to minimize forecasting loss or reconstruction loss. However, deep learning models that are trained to minimize forecasting loss or reconstruction loss may not recover the correct latent processes. The lack of a correct latent process may result in models that capture spurious or over-completed dependencies with noise, which eventually impair the training performance.

In view of the need for a more accurate and computationally efficient time series forecasting mechanism, embodiments described herein provide a state space-model based framework that adopts a non-parametric transition model and a flexible emission model to learn the time-varying property. The state space model may be built upon a hierarchical variable auto encoder to estimate the a priori knowledge of the time series which may then be used in forecasting.

FIG. 1 is a simplified diagram of a computing device 100 for implementing a time series forecasting framework of FIG. 5, according to some embodiments. As shown in FIG. 1, computing device 100 includes a processor 110 coupled to memory 120. Operation of computing device 100 is controlled by processor 110. And although computing device 100 is shown with only one processor 110, it is understood that processor 110 may be representative of one or more central processing units, multi-core processors, microprocessors, microcontrollers, digital signal processors, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), graphics processing units (GPUs) and/or the like in computing device 100. Computing device 100 may be implemented as a stand-alone subsystem, as a board added to a computing device, and/or as a virtual machine.

Memory 120 may be used to store software executed by computing device 100 and/or one or more data structures used during operation of computing device 100. Memory 120 may include one or more types of machine readable media. Some common forms of machine readable media may include floppy disk, flexible disk, hard disk, magnetic tape, any other magnetic medium, CD-ROM, any other optical medium, punch cards, paper tape, any other physical medium with patterns of holes, RAM, PROM, EPROM, FLASH-EPROM, any other memory chip or cartridge, and/or any other medium from which a processor or computer is adapted to read.

Processor 110 and/or memory 120 may be arranged in any suitable physical arrangement. In some embodiments, processor 110 and/or memory 120 may be implemented on a same board, in a same package (e.g., system-in-package), on a same chip (e.g., system-on-chip), and/or the like. In some embodiments, processor 110 and/or memory 120 may include distributed, virtualized, and/or containerized computing resources. Consistent with such embodiments, processor 110 and/or memory 120 may be located in one or more data centers and/or cloud computing facilities.

In some examples, memory 120 may include non-transitory, tangible, machine readable media that includes executable code that when run by one or more processors (e.g., processor 110) may cause the one or more processors to perform the methods described in further detail herein. For example, as shown, memory 120 includes instructions for the time series forecasting module 130 that may be used to implement and/or emulate the systems and models, and/or to implement any of the methods described further herein. A time series forecasting module 130 may receive input 140 that includes an input such as time series data, and/or the like via the data interface 115. The time series forecasting module 130 may generate an output 150 such as a prediction.

In some embodiments, the time series forecasting module 130 includes the encoder submodule 131, the decoder submodule 132, the transition prior network submodule 133, and the auxiliary predictor submodule 134. In one embodiment, the time series forecasting module 130 and its submodules 131-134 may be implemented by hardware, software and/or a combination thereof.

Some examples of computing devices, such as computing device 100 may include non-transitory, tangible, machine readable media that include executable code that when run by one or more processors (e.g., processor 110) may cause the one or more processors to perform the processes of method. Some common forms of machine-readable media that may include the processes of method are, for example, floppy disk, flexible disk, hard disk, magnetic tape, any other magnetic medium, CD-ROM, any other optical medium, punch cards, paper tape, any other physical medium with patterns of holes, RAM, PROM, EPROM, FLASH-EPROM, any other memory chip or cartridge, and/or any other medium from which a processor or computer is adapted to read.

FIG. 2 is a simplified block diagram of a networked system suitable for implementing the time series forecasting framework described in FIG. 5 and other embodiments described herein. In one embodiment, block diagram 200 shows a system including the user device 210 which may be operated by user 240, data vendor servers 245, 270 and 280, server 230, and other forms of devices, servers, and/or software components that operate to perform various methodologies in accordance with the described embodiments. Exemplary devices and servers may include device, stand-alone, and enterprise-class servers which may be similar to the computing device 100 described in FIG. 1, operating an OS such as a MICROSOFT® OS, a UNIX® OS, a LINUX® OS, or other suitable device and/or server-based OS. It can be appreciated that the devices and/or servers illustrated in FIG. 2 may be deployed in other ways and that the operations performed, and/or the services provided by such devices and/or servers may be combined or separated for a given embodiment and may be performed by a greater number or fewer number of devices and/or servers. One or more devices and/or servers may be operated and/or maintained by the same or different entities.

The user device 210, data vendor servers 245, 270 and 280, and the server 230 may communicate with each other over a network 260. User device 210 may be utilized by a user 240 (e.g., a driver, a system admin, etc.) to access the various features available for user device 210, which may include processes and/or applications associated with the server 230 to receive an output data anomaly report.

User device 210, data vendor server 245, and the server 230 may each include one or more processors, memories, and other appropriate components for executing instructions such as program code and/or data stored on one or more computer readable mediums to implement the various applications, data, and steps described herein. For example, such instructions may be stored in one or more computer readable media such as memories or data storage devices internal and/or external to various components of system 200, and/or accessible over network 260.

User device 210 may be implemented as a communication device that may utilize appropriate hardware and software configured for wired and/or wireless communication with data vendor server 245 and/or the server 230. For example, in one embodiment, user device 210 may be implemented as an autonomous driving vehicle, a personal computer (PC), a smart phone, laptop/tablet computer, wristwatch with appropriate computer hardware resources, eyeglasses with appropriate computer hardware (e.g., GOOGLE GLASS®), other type of wearable computing device, implantable communication devices, and/or other types of computing devices capable of transmitting and/or receiving data, such as an IPAD® from APPLE®. Although only one communication device is shown, a plurality of communication devices may function similarly.

User device 210 of FIG. 2 contains a user interface (UI) application 212, and/or other applications 216, which may correspond to executable processes, procedures, and/or applications with associated hardware. For example, the user device 210 may receive a message indicating a prediction result from the server 230 and display the message via the UI application 212. In other embodiments, user device 210 may include additional or different modules having specialized hardware and/or software as required.

In various embodiments, user device 210 includes other applications 216 as may be desired in particular embodiments to provide features to user device 210. For example, other applications 216 may include security applications for implementing client-side security features, programmatic client applications for interfacing with appropriate application programming interfaces (APIs) over network 260, or other types of applications. Other applications 216 may also include communication applications, such as email, texting, voice, social networking, and IM applications that allow a user to send and receive emails, calls, texts, and other notifications through network 260. For example, the other application 216 may be an email or instant messaging application that receives a prediction result message from the server 230. Other applications 216 may include device interfaces and other display modules that may receive input and/or output information. For example, other applications 216 may contain software programs for asset management, executable by a processor, including a graphical user interface (GUI) configured to provide an interface to the user 240 to view the prediction result.

User device 210 may further include database 218 stored in a transitory and/or non-transitory memory of user device 210, which may store various applications and data and be utilized during execution of various modules of user device 210. Database 218 may store user profile relating to the user 240, predictions previously viewed or saved by the user 240, historical data received from the server 230, and/or the like. In some embodiments, database 218 may be local to user device 210. However, in other embodiments, database 218 may be external to user device 210 and accessible by user device 210, including cloud storage systems and/or databases that are accessible over network 260.

User device 210 includes at least one network interface component 219 adapted to communicate with data vendor server 245 and/or the server 230. In various embodiments, network interface component 219 may include a DSL (e.g., Digital Subscriber Line) modem, a PSTN (Public Switched Telephone Network) modem, an Ethernet device, a broadband device, a satellite device and/or various other types of wired and/or wireless network communication devices including microwave, radio frequency, infrared, Bluetooth, and near field communication devices.

Data vendor server 245 may correspond to a server that hosts one or more of the databases 203a-n (or collectively referred to as 203) to provide training datasets including time series dataset to the server 230. The database 203 may be implemented by one or more relational database, distributed databases, cloud databases, and/or the like.

The data vendor server 245 includes at least one network interface component 226 adapted to communicate with user device 210 and/or the server 230. In various embodiments, network interface component 226 may include a DSL (e.g., Digital Subscriber Line) modem, a PSTN (Public Switched Telephone Network) modem, an Ethernet device, a broadband device, a satellite device and/or various other types of wired and/or wireless network communication devices including microwave, radio frequency, infrared, Bluetooth, and near field communication devices. For example, in one implementation, the data vendor server 245 may send asset information from the database 203, via the network interface 226, to the server 230.

The server 230 may be housed with the time series forecasting module 130 and its submodules described in FIG. 1. In some implementations, module 130 may receive data from database 219 at the data vendor server 245 via the network 260 to generate a fixed patch of code. The generated fixed patch of code may also be sent to the user device 210 for review by the user 240 via the network 260.

The database 232 may be stored in a transitory and/or non-transitory memory of the server 230. In one implementation, the database 232 may store data obtained from the data vendor server 245. In one implementation, the database 232 may store parameters of the time series forecasting module 130. In one implementation, the database 232 may store previously generated fixed patch of code and the corresponding input feature vectors.

In some embodiments, database 232 may be local to the server 230. However, in other embodiments, database 232 may be external to the server 230 and accessible by the server 230, including cloud storage systems and/or databases that are accessible over network 260.

The server 230 includes at least one network interface component 233 adapted to communicate with user device 210 and/or data vendor servers 245, 270 or 280 over network 260. In various embodiments, network interface component 233 may comprise a DSL (e.g., Digital Subscriber Line) modem, a PSTN (Public Switched Telephone Network) modem, an Ethernet device, a broadband device, a satellite device and/or various other types of wired and/or wireless network communication devices including microwave, radio frequency (RF), and infrared (IR) communication devices.

Network 260 may be implemented as a single network or a combination of multiple networks. For example, in various embodiments, network 260 may include the Internet or one or more intranets, landline networks, wireless networks, and/or other appropriate types of networks. Thus, network 260 may correspond to small scale communication networks, such as a private or local area network, or a larger scale network, such as a wide area network or the Internet, accessible by the various components of system 200.

Referring to FIGS. 3-18, detailed description of various embodiments of the time series forecasting framework based on a non-parametric state space model are described. As various notations are used throughout, and the table below provides a summary of the notations used herein.

Index i Time index i, j, k Variable element (channel) index Time lag index L Maximum time lag for latent variable Lc Maximum time lag for time-varying change factors Variable x  Observation data xi Reconstructed observation z  lateat variable {circumflex over (z)}t estimated latent variable ct time-varying change variable ĉ  estimated time-varying change variable Pa(zit), Set of direct cause nodes/parents of node zit {z  } ηt measurement noise term ϵit Process noise term ζ  noise term for time-varying change factor Function and Hyperparameter p Distribution function (e.g., p  ) is the distribution of ϵit.) g Arbitrary nonlinear and invertible mixing function f  Nonlinear transition function for zit fc Nonlinear transition fonction for ct h Post nonlinear distortion function ri Learned inverse transition function for residual   ui Learned inverse change transition function for residual {circumflex over (ζ)}  β, γ, σ Weights in the augmented ELBO objective n Latent size π Permutation operation T Component-wise invertible nonlinearities indicates data missing or illegible when filed

Time series forecasting plays a crucial role in economic planning, epidemiology study, and energy consumption. In various applications, one critical step is to infer the causal structure of the underlying stochastic dynamical system from the time series of measurements. State space models provide a unified methodology to learn and analyze time-lagged causal relations. Formally, given the observed data xt, the dynamical system with latent process zt may be described as:

z t = f i ( z t - 1 ) + ϵ t , Transition x t = g ( z t ) + η t , Emission ( 1 )

where ηt and ϵt denote the i.i.d. Gaussian measurement/process noises. ƒ(⋅) and g(⋅) denote the nonlinear transition model and the nonlinear emission model, respectively. The transition model ƒ(⋅) aims to capture the latent dynamics underlying the observed data, while the emission model g(⋅) is designed for learning the mapping from the latent variables to the observed data. More expressive, scalable deep learning models may be leveraged for modeling complex transition and emission models effectively. Since the latent processes are typically unobserved, various works have focused on latent variable estimation via designing more efficient optimization methods. However, these works do not ensure that the models learn the correct underlying latent processes. First, they rely on stringent assumptions regarding the nature of causal relationships, which may not hold in practice. In particular, the additive noises in both transition and emission processes are not able to capture nonlinear distortions in the observed/latent values of the variables, which might be necessarily true in real-world applications, like sensor distortion, and motion capture.

Existing works often do not provide theoretical guarantees for identifiability. Usually in the implementations, state space models are directly trained with the forecasting loss or reconstruction loss. However, these objectives could not guarantee that they can recover the correct latent processes. These issues would be severe when using neural networks to learn transition and emission models. Because the parameter space has been significantly increased, the model tends to capture spurious and over-completed dependencies with noise. Then, the training processes are difficult and thus may result in sub-optimal performance. This situation would deteriorate when data are not abundant or the data generation process changes across the time period. Furthermore, the transition model ƒ(⋅) is usually assumed to be constant across the measured time period. It implicitly assumes that the underlying dynamical system is in a stationary environment, which may not hold in real-life problems. For example, the unemployment rate tends would rise much faster at the start of a recession than it drops at the beginning of a recovery. In the analysis of the COVID-19 outbreak, the transmission and removal processes may vary over time, governed by various virus containment strategies at different time periods, such as self-quarantine and social distancing mandates. If the forms of transition and emission processes with stringent assumptions cannot approximate the actual data generation process, the results will be sub-optimal.

As described herein, an improved framework using neural network model that is general enough when precise prior knowledge is unavailable is described. A general formulation of state space models, called Non-Parametric State Space Models (NPSSM), is described. NPSSM includes a completely non-parametric transition model and a flexible emission model. While the Non-Parametric State Space Model (NPSSM) is remarkably flexible, the latent processes are generally identifiable. In addition, a Time-Varying Non-Parametric State Space Model (TV-NPSSM) based on the NPSSM is described to capture the potential time-varying change property of the latent processes.

Furthermore, a time series forecasting framework may be provided by using a hierarchical VAE framework with the NPSSM. The time series forecasting framework may incorporate the stringent conditions for identifiability analysis to estimate the procedure and make it applicable for forecasting tasks. The time series forecasting framework may recover time-lagged latent variables and their causal relations from observed sequential data.

Accordingly, systems and methods described herein may be viewed to use a method for causal representation learning for time series data. Forecasting may benefit from this general and identifiable model, since the underlying latent process may be identified. Some of the features are listed as follows, which will be described in detail with reference to FIGS. 3-18 below.

First, general formulation of state space models, namely, NPSSM, are described. Further, an extension, namely, Time-Varying Non-Parametric State Space Model (TV-NPSSM), is described, which allows nonstationary of the latent process over time. These models provide a flexible form for transition and emission model that is expected to be widely applicable.

Second, the identifiability of the time-lagged latent variables and their influencing strengths for NPSSM under relatively mild conditions are established.

Third, by incorporating the independent noise conditions for the identifiable analysis, a new hierarchical VAE framework for model estimation and its use for forecasting tasks are described.

Fourth, estimation of the models described herein may be viewed as a way to learn the underlying temporal causal processes, which further facilitates forecasting of the time series.

Referring to FIG. 3, an example method 300 of providing time series forecasting based on a non-parametric state space model is illustrated. One or more of the processes described in FIG. 3 may be implemented, at least in part, in the form of executable code stored on non-transitory, tangible, machine-readable media that when run by one or more processors may cause the one or more processors to perform one or more of the processes 302-308. In some embodiments, method 300 may correspond to the method used by the module 130 in FIG. 1.

At step 302, a time series dataset is received (e.g., via data interface 215). The time series dataset comprises datapoints at a plurality of timestamps in the timeseries.

At step 304, a non-parametric state space model (NPSSM) for a dynamical system underlying the time series dataset is provided. As described in detail below, the non-parametric state space model includes a nonparametric latent transition model and a flexible emission model.

To make state space models in Eq. (1) flexible, functional causal model is used to characterize transition process. Each latent factor zit is represented with the non-parametric form zit=fi({zj,t-τ|zj,t-τϵPa(zit)},ϵit), where i,j denotes variable element index, Pa(zit) (parents) denotes the set of time-lagged variables that directly determine the latent factor zit, and τ denotes the time lag index. In this way, noise ϵit together with parents of zit generate zit via unknown non-parametric function ƒ(⋅). Formally, NPSSM can be formulated as

z it = f i ( Pz j , t - τ z j , t - τ Pa ( z it ) { , ϵ it ) , Nonparametric latent transition ( 2 ) x t = g ( z t , η t ) = g 1 ( g 2 ( z t ) = η t ) Post nonlinear emissionion ,

where ϵit are mutually independent (i.e. spatially and temporally independent) random noises sampled from noise distribution p(ϵit). g2(⋅) is the nonlinear mixing function that takes latent factors as input. g1(⋅) denotes invertible post-nonlinear distortion on variable xt and ηt are independent noises. As such, a general form of the state space model is provided.

In NPSSM, the transition function of the latent processes is completely non-parametric: the effect zit is just a smooth function (referring to the condition 3 of Theorem 1 below, which is the core condition to guarantee the identifiability of NPSSM) of its parents and noise, and it may contain linear models, nonlinear models with additive noise, and even multiplicative noise model as special cases. The Independent Noise condition and Conditional Independent condition (see, e.g., J. Pearl., Causality. Cambridge university press, 2009) are widely satisfied in time series data. Furthermore, in the emission function, the post-nonlinear transformation g1(⋅) may model sensor or measurement distortion that usually happens when the underlying processes are measured with instruments.

Identifiability of NPSSM. Next, the identifiability of NPSSM in the function space is defined. Since the conditional independence relations fully capture time-delayed causal relations in the time-delayed causally sufficient system, NPSSMs are identifiable if the latent variables are identifiable up to permutation and component-wise invertible transformations.

Definition 1 (Identifiability of NPSSM). For a ground truth (f, g, p(ϵ)) and a learned ({circumflex over (f)},ĝ,{circumflex over (p)}(ϵ),) models as defined in Eq. (2), if the joint distribution for observed variables pf,g,p(ϵ) (xt) and p{circumflex over (f)},ĝ,{circumflex over (p)}(ϵ) (xt) are matched almost everywhere, then non-parametric state space models are identifiable if observational equivalence can always lead to identifiability of the latent variables up to permutation π and component-wise invertible transformation T:


pĝ,{circumflex over (f)},{circumflex over (p)}ϵ(xt)=pg,f,pϵ(xt)⇒g−1−1∘T∘π,  (3)

where g−1−1 are invertible functions that maps xt to and {circumflex over (z)}t respectively.

Next the identifiability result of the proposed model is discussed. Without loss of generality, assume the maximum time lag L=1 in the analysis. Note that it is trivial to extend the analysis for a long lag L>1. NPSSM is remarkably flexible, and further it is identifiable up to relative minimum indeterminacies. Each latent process can be recovered up to its nonlinear, invertible transformations. In many real time series applications, these indeterminacies may be inconsequential.

Theorem 1. Suppose that we observe data sampled from a generative model defined according to 2 with parameters ({circumflex over (f)},ĝ,{circumflex over (p)}(ϵ)). Assume the following holds:

    • 1. The set {xt∈χ|φηt(xt)=0} has measure zero, where φηt is the characteristic function of the density p(ηt)=pg(xt|zt). The post nonlinear functions g1,ĝ1 are invertible. The mixing functions g2,ĝ2 are injective and differentiable almost everywhere.
    • 2. The noise terms ϵit are mutually independent.
    • 3. Let ηktlog p(zkt|zt-1),↓kt is twice differentiable in zkt and is differentiable in zl,t-1, l=1, 2, . . . , n. For each value of zt, v1t, v̊1t, v2t, v̊2t, . . . , vnt, v̊nt as 2n vector functions in z1,t-1, z2,t-1, . . . , zn,t-1, are linearly independent, with vkt and v̊kt defined below:

v kt = Δ ( 2 η kt z kt z , 1 , t - 1 , 2 η kt z kt z 2 , t - 1 , , 2 η kt z kt z n , t - 1 ) T , v kt = Δ ( 3 η k t z k t 2 z 1 , t - 1 , 3 η k t z k t 2 z 2 , t - 1 , , 3 η k t z k t 2 z n , t - 1 ) T ,

then zt must be an invertible, component-wise transformation of a permuted version of 2t.

Compared to the form of conventional state space models in Eq. (1), NPSSM is remarkably flexible, and are applicable to many real problems. Further, Theorem 1 indicates that NPSSM is still generally identifiable. With NPSSM, the underlying causal latent processes may be determined from the observed data. The differentiability and linear independence in condition 3 is the core condition to assure the identifiability of latent factors zt from observed xt. It indicates that time-lagged variables must have a sufficiently complex and diverse effect on the transition distributions in terms of the second- and third-order partial derivatives. From this condition we can find that the linear Gaussian SSM is unidentifiable, since the second- and third-order partial derivatives would be constant, which violates the linear independence assumption.

Below a proof of the identifiability theory for NPSSM is provided. Lemma 1, which presents the identifiability of latent variables in fixed latent dynamics, is first introduced. This result will be used in the proof of Theorem 1.

Lemma 1. The fixed latent causal dynamics takes on the following form:


xt=g(zt)ziti({zj,t-1|zj,t-1∈Pa(zit)},∈it).  (4)

Let ηktlog p (zkt|zt-1), ηk(t) is twice differentiable in zkt and is differentiable in zl,t-1, l=1, 2, . . . , n. Suppose there exists invertible function ĝ that maps xt to zt, i.e., zt=ĝ(xt), such that the components of {circumflex over (z)}t are mutually independent conditional on {circumflex over (z)}t-1. Let

v kt = Δ ( 2 η kt z k , t z 1 , t - 1 , 2 η kt z k , t z 2 , t - 1 , , 2 η kt z k , t z n , t - 1 ) T , v kt = Δ ( 3 η k t z k , t 2 z 1 , t - 1 , 3 η k t z k , t 2 z 2 , t - 1 , , 3 η k t z k , t 2 z n , t - 1 ) T .

If for each value zt v1,t, {dot over (v)}1,t, v2,t, {dot over (v)}2,t, . . . , vn,t, {dot over (v)}n,t, as 2n vector functions in z1,t-1, z2,t-1, . . . , zn,t-1 are linearly independent, then zt must be an invertible, component-wise transformation of a permuted version of {circumflex over (z)}t.

Second, the additive noise model is considered, in which g1 is the identity mapping. To identify the noise-free distribution g(zt) from noisy data with assumption 1, convolution theorem is used to decouple measurement error. Since the volume of a matrix volA is defined as the product of the singular values of A. It is obtained that volA=|detA| when A is invertible. Use volA in the change of variables formula to replace the absolute determinant of the Jacobian, and suppose the joint distribution for observed variables pf,g,p(ϵ)(xt|zt-1) and p{circumflex over (f)},ĝ,{circumflex over (p)}(ϵ)(xt|{circumflex over (z)}t-1) are matched almost everywhere. Then:


zpf,p(ϵ)(zt|zt-1)pg(xt|zt)dzt=∫zp{circumflex over (f)},{circumflex over (p)}(ϵ)(zt|{circumflex over (z)}t-1)pĝ(xt|zt)dzt,  (5)


zpf,p(ϵ)(zt|zt-1)pηt(xt−g(zt))dzt=∫zp{circumflex over (f)},{circumflex over (p)}(ϵ)(zt|{circumflex over (z)}t-1)pηt(xt−ĝ(zt))dzt.  (6)

According to the Jacobian matrix of the mapping from xt=g(zt) and xt=ĝ(zt), we have


xpf,p(ϵ)(g−1(xt)|zt-1)vol Jg−1(xt)pηt(xtxt)dxt=∫xp{circumflex over (f)},{circumflex over (p)}(ϵ)(ĝ−1({circumflex over (x)}t)|{circumflex over (z)}t-1)vol Jg−1(xt)pηt(xtxt)dxt.  (7)

Assume pf,p(ϵ),g,zt-1(xt)=pf,p(ϵ)(g−1(xt)|zt-1)vol Jg−1IIx(xt), and then we have


xpf,p(ϵ),g,zt-1(xt)pηt(xtxt)dxt=∫xp{circumflex over (f)},{circumflex over (p)}(ϵ),ĝ,{circumflex over (z)}t-1(xt)pηt(xtxt))dxt  (8)

According to the convolution theorem that the convolution in one domain (e.g., time domain) equals point-wise multiplication in the other domain (e.g., frequency domain), the following is obtained,


(pf,p(ϵ),g,zt-1★pηt)(xt)=(p{circumflex over (f)},{circumflex over (p)}(ϵ),ĝ,{circumflex over (z)}t-1★pηt)(xt),  (9)


F[pf,p(ϵ),g,zt-1](ω)φηt=(ω)=F[p{circumflex over (f)},{circumflex over (p)}(ϵ),ĝ,{circumflex over (z)}t-1](ω)φηt(ω)   (10)

where ★ denotes the convolution operator and F[⋅] denotes the Fourier transform. We can find φηt=F[pηt] by the definition of characteristic function in Assumption 1. Then, we can remove φηt(ω) term from both sides as it is non-zero almost everywhere. We have


F[pf,p(ϵ),g,zt-1](ω)=F[p{circumflex over (f)},{circumflex over (p)}(ϵ),ĝ,{circumflex over (z)}t-1](ω),  (11)


pf,p(ϵ),g,zt-1(xt)=p{circumflex over (f)},{circumflex over (p)}(ϵ),ĝ,{circumflex over (z)}t-1(xt).  (12)

Thus, we can conclude that if the distributions are the same with additive noise, the noise-free distributions are still the same. Combined with the results from Lemma 1, the latent variables are identifiable up to permutation and component-wise invertible transformation.

Further, the effect of post non-linear function g1(⋅) is considered. Denote {circumflex over (x)}t=g2(zt)+ηt, then the learned post non-linear function xt1({circumflex over (x)}t) can be written as xt=(g1∘(g1)−1∘ĝ1)({tilde over (x)}t). Assume that ĝ1=g1∘((g1)−1∘g1)=g1∘g3, in which g3 represents the indeterminancy on the space of {tilde over (x)}t. Following the proof of Theorem 1, we have that g3 can only be a bijection if both g2, ĝ1 are injective functions. Thus, it may be treated as adding a component-wise invertible nonlinear function g3−1 on xt which does not affect the identifiability of zt up to permutation and component-wise invertible transformation. Therefore, NPSSM in (9) is identifiable.

As shown in FIG. 3, in some embodiments, step 304 includes a process at step 305, where the NPSSM provided includes time-varying change factors for capturing time-varying characteristics of the process, which is also referred to as Time-Varying Non-Parametric State Space Model (TV-NPSSM). Considering that time series are nonstationary in many real situations, in many embodiments, there is a need to explicitly model the time-varying change factors. TV-NPSSM may be formulated as

x t = g 1 ( g 2 ( z t ) + η t ) Post nonlinear emission , z it = f i ( { z j , t - τ | z j , t - τ ϵ Pa ( z it ) } , c t , ϵ it ) Nonparametric latent transition , c t = f c ( { c t - τ } τ = 1 L c , ϛ t ) Time - varying change factors , ( 13 )

where t, similar to ϵit are mutually independent (i.e., spatially and temporally independent) random noises. fc(⋅) is the transition function for the time-varying change factors, which is also formulated in a non-parametric way, ct is a low-dimensional vector to characterize the time-varying information, which is used as an input for the transition model fi(⋅). TV-NPSSM includes the conventional state space models in Eq. (1) as a particular case in which the time-varying change factors do not exist. It also includes the time-varying parameter vector autoregressive model as a special case, which allows the coefficients or the variances of noises in the linear auto-regressive model to vary over time following a specified law of motion.

At step 306, estimated latent variables of a latent space for the time series dataset is determined, using a neural network system, based on the non-parametric state space model. At step 308, a prediction result for the time series dataset based on the latent causal representation is provided using the neural network system. Example neural network models providing time series forecasting based on the non-parametric state space model are described in detail with reference to FIGS. 4-6 below.

Referring to FIGS. 4, 5, and 6, example method and system for providing time series forecasting using a neural network based on the non-parametric state space model are described. FIG. 4 illustrates an example method 400 of providing time series forecasting based on the non-parametric state space model. FIG. 5 illustrates an example time series forecasting framework 500 based on the non-parametric state space model that may be used to implement method 400. FIG. 6 illustrates example transition prior modeling used in the time series forecasting framework 500. One or more of the processes described in FIG. 4 may be implemented, at least in part, in the form of executable code stored on non-transitory, tangible, machine-readable media that when run by one or more processors may cause the one or more processors to perform one or more of the processes 402-412. In some embodiments, method 400 may correspond to the method used by the module 130 in FIG. 1.

Referring to FIG. 4, at step 402, a time series dataset is received (e.g., via data interface 215) by a time series forecasting framework. The time series dataset comprises datapoints at a plurality of timestamps in the timeseries. Referring to FIG. 5, an example time series forecasting framework 500 is illustrated. As shown in FIG. 5, time series forecasting framework 500 receives time series dataset 502, e.g., observed time series dataset xt of a dynamical system. The time series forecasting framework 500 includes the following important components: a variational auto-encoder (VAE) framework including encoder 504 and decoder 506 for reconstruction, regularization module 516 (e.g. using transition prior network module 508) for regularization, and an auxiliary predictor 510 for forecasting task. In some embodiments, regularization module 516 of the time series forecasting framework 500 provides regularization 518 between factorized posterior q({circumflex over (z)}1:T), q(ĉ1:T), and prior p({circumflex over (z)}1:T), p(ĉ1:T) for computing the augmented objective loss. Using the time series forecasting framework 500, the prediction procedure disentangles the multivariate forecasting task into the following steps: (1) The encoder captures the nonlinear correlation among series and recovers the latent causal representation from the observed data; (2) Next-step prediction is generated via the auxiliary predictor in the latent space; (3) prediction results are transformed into observed space by the decoder.

VAE. As shown in the example of FIG. 5, time series forecasting framework 500 includes a VAE framework including encoder 504 and decoder 506, where the VAE framework may imply that the measurement noise is additive. This is a particular case of the post nonlinear mixing procedure given in Eq. (2). In an example, to address challenges to model the temporal dependencies among observed and latent variables, especially for the design of the encoder/decoder, a dynamical VAE framework is used to encode the latent sequential information in the encoder explicitly. In some embodiments, to improve efficiency of the estimation, transition prior p({circumflex over (z)}1:T) is used to encode sequential information and approximate the joint probability of posterior on z1:T with factorized form. In an example, the encoder for z1:T may be defined as Πt-1Tq({circumflex over (z)}t|xt), and similarly the encoder for c1:T may be defined as Πt-1Tqct|{{circumflex over (z)}t-τ}τ=0Lc).

Transition Prior Network. In some examples, latent transition may be determined by leveraging the forward prediction function. However, forward prediction cannot model latent processes in a non-parametric way. In the example of time series forecasting framework 500, for implementation based on the non-parametric state space model, transition priors are obtained by learning inverse latent transition functions ƒ−1. Particularly, they may be implemented by a set of separate multilayer perceptron (MLP) Networks ri to satisfy the independent noise condition in Theorem (1), which take the estimated latent causal variables and time-varying change factors as input and output the noise terms, i.e. {circumflex over (ϵ)}it=ri({circumflex over (z)}itt,{{circumflex over (z)}t-τ}τ=1L). By applying the change of variables formula to the transformation, the transition probability may be formulated in a non-parametric way:

p z ( z ˆ it | { z ˆ t - τ } τ = 1 L c ˆ t ) = p ϵ i ( r i ( z ˆ it , c ˆ t , { z ˆ t - τ } τ = 1 L ) ) "\[LeftBracketingBar]" r i z ˆ it "\[RightBracketingBar]" . ( 14 )

Because of the mutually independent noise assumption, the Jacobian is a lower-triangular. As such, its determinant may be efficiently calculated as the product of each element. By applying the independent noise assumption, the transition probability can be formulated as:

log p z ( z ˆ t | { z ˆ t - τ } τ = 1 L , c ˆ t ) = i = 1 n log p ( ϵ ^ it ) + i = 1 n log "\[LeftBracketingBar]" r i z ˆ it "\[RightBracketingBar]" . ( 15 )

To fit the estimated noises terms, each noise p({circumflex over (ϵ)}it) is modeled as a transformation from the standard normal noise N(0,1) through function s( ), which may be formulated as

P ( ϵ ^ it ) = pN ( 0 , 1 ) ( s - 1 ( ϵ ^ it ) ) "\[LeftBracketingBar]" s - 1 ( ϵ ^ it ) ϵ ^ it "\[RightBracketingBar]" .

Specifically, explicitly estimation of the term

"\[LeftBracketingBar]" s - 1 ( ϵ ^ it ) ϵ ^ it "\[RightBracketingBar]"

may not be necessary, since inverse causal transition functions {ri} could compensate it. Similarly, the transition probability of change factors ct may be defined as

log p c ( c ˆ t | c ˆ t - 1 ) = i = 1 n log p ( ϛ it ) + i = 1 n log "\[LeftBracketingBar]" u i c ˆ it "\[RightBracketingBar]"

where ui denotes the inverse change transition function.

Auxiliary Predictor. Compared with the conventional forecasting models p(xt|{xt-τ}), which computes prediction loss in input space, in the time series forecasting framework described herein, the latent variables {{circumflex over (z)}t}τ=1L are recovered, and the auxiliary predictor is trained in the latent space p({circumflex over (z)}t|{{circumflex over (z)}t-τ}τ=1L). Note that although we do not explicitly involve the change factor ct in the predictor, it had to be inferred from the latent variables {{circumflex over (z)}t-τ}τ=0L as well, like the definition of encoder qct|{{circumflex over (z)}t-τ}τ=0L). In an example, the auxiliary predictor 510 uses the long short-term memory (LSTM) network to implement the auxiliary predictor ppred({circumflex over (z)}t|{circumflex over (ϵ)}t,{{circumflex over (z)}t-τ}τ=1L) in latent space. The noise {circumflex over (ϵ)}t is generated from the inverse latent transition function ri({circumflex over (z)}itt,{{circumflex over (z)}t-τ}τ=1L) in the training phase, while it may be sampled from standard normal distribution N(0,1) in the forecasting phase.

Referring back to FIG. 4, at step 404 of method 400, a training process is performed on the time series forecasting framework using the received time series dataset. During the training process 404, at step 406, one or more estimated latent variables of a latent space are generated. As shown in the example of FIG. 5, the time series forecasting framework 500 provides time series dataset 502 to encoder 504, which generates one or more estimated latent variables {circumflex over (z)}t of the latent space associated with the time series dataset 502. In some embodiments, the time series forecasting framework 500 uses a transition prior network 508 to obtain transition priors, e.g., with time-varying change factors. Referring to FIG. 6, illustrated therein is example transition prior modeling 600 of FIG. 6 representing the latent causal processes for latent variables {circumflex over (z)}t and change factors ĉt.

In some embodiments, during the training process 404, at step 408, an estimated noise is generated based on the one or more estimated latent variables and an estimated time-varying change factor. As shown in the example of FIG. 5, the time series forecasting framework 500 includes an auxiliary predictor 510, which may generate noise {circumflex over (ϵ)}t from the inverse latent transition function ri({circumflex over (z)}itt,{{circumflex over (z)}t-τ}τ=1L).

In some embodiments, during the training process 404, at step 410, a prediction result in the latent space is generated. As shown in the example of FIG. 5, auxiliary predictor 510 may generate a prediction 512 in the latent space p({circumflex over (z)}t|{{circumflex over (z)}t-τ}τ=1L). In an example, the auxiliary predictor 510 uses the long short-term memory (LSTM) network to implement the auxiliary predictor ppred({circumflex over (z)}t|{circumflex over (ϵ)}t,{{circumflex over (z)}t-τ}τ=1L) based on the estimated latent variables {circumflex over (z)}t and the estimated noise {circumflex over (ϵ)}t.

In some embodiments, during the training process 404, at step 412, a prediction result in the observed space is generated using a decoder. As shown in the example of FIG. 5, decoder 506 transforms prediction 512 in the latent space to generate a prediction 514 (also referred to as a reconstructed prediction 514) in the observed space (as the received time series dataset).

In some embodiments, during the training process 404, at step 414, parameters of the neural network models of the time series forecasting framework, including parameters of VAE, transition prior network, and auxiliary predictor, are updated, e.g., using an evidence lower bound objective (ELBO) as follows:

BLBO = t = 1 T log p z ( x t | z t ) + σ T t = 1 T log p pred ( z ^ t | ϵ ^ t , { z ^ t - τ } τ = 1 L ) - β D KL ( q z ( z ^ 1 : T | x ^ 1 : T ) | p ( z ^ 1 : T ) ) - γ D KL ( q c ( c ^ 1 : T | z ^ 1 : T ) | p ( c ^ 1 : T ) ) . ( 16 )

where Pz(xt|zt) and ppred({circumflex over (z)}t|{circumflex over (ϵ)}t, {{circumflex over (z)}t-τ}τ=1L) denote the decoder distribution and prediction distribution respectively, in which mean squared error (MSE) loss is used for the likelihood. In some embodiments, the training is performed in two phases, wherein during the first phase, the VAE parameters and transition prior network parameters are learned, but not the parameters of the auxiliary predictor. During the second phase after the first phase is performed, all parameters are learned jointly.

Referring to FIGS. 7A, 7B, and 8, benefits of time series forecasting via learning underlying causal processes as provided by the time series forecasting framework 500 are described. Specifically, time series forecasting tasks may benefit from causal representation learning, because estimated latent variables are generally identifiable in NPSSM. Given that observed data xt, following the generation process in Eq. (1), the goal of forecasting is to optimize model parameters θ such that it could maximize the conditional likelihood given the past, P(xt|x1:t-1) In contrast, the objective of estimation of NPSSM is to identify the model first, which aims to recover the latent processes zt and model parameters to maximize the data likelihood, or conditional likelihood in the time series case. Therefore, using NPSSM, the learned representation achieves the higher conditional likelihood, leading to better forecasting.

Further, learning the latent temporal processes (which are not instantaneously related), as performed by time series forecasting framework 500 based on NPSSM, improves prediction. First, it provides a compact representation for forecasting. As shown in FIG. 7B, true dependencies in observation and latent spaces are compact, compared with uncovered dependencies only from observation space as shown in FIG. 7A, which are complicated with many spurious dependencies. Further, in FIG. 7A, there may be instantaneous relations on xt but not on zt, which further increases the difficulty for prediction, because instantaneous relations can not be captured if the prediction results of each series are generated separately. Second, learning the latent temporal processes gives a compact way to model the change factors. In realistic situations, data distribution may change over time. In many examples, given the high-dimensional input, the change may happen in a relatively small space, which is known as the minimal and independent change principle in a causal system. By detecting these change factors, these change factors may be encoded with a low-dimensional vector instead of modeling the distribution shift in the high-dimensional input space. As illustrated in FIG. 8, which is a graph representation of generation process of the dynamical system with time-varying change factors, by using time series forecasting framework 500 based on NPSSM, time-varying change factors and fixed latent factors are disentangled from observed data. Third, the prediction given by the causal model is expected to be more robust to the distribution shift that happens to some of the modules in the system. For example, if some local intervention exists on one mechanism, it may not affect other modules, and those other modules may still contribute generously to the final prediction. These benefits are further illustrated with the example data experiments and performance discussed in detail below.

Example Data Experiments and Performance

The systems and methods described herein are evaluated on various synthetic and real-world datasets with next-step forecasting tasks. Experimental results demonstrate that latent causal dynamics could be reliably identified from observed data under various settings, and further verify that identifying and using the latent temporal causal processes consistently improve prediction.

Referring to FIG. 9, network architecture for both the training process and the interference process is summarized. Specifically, the models were implemented by PyTorch 1.9.0. The VAE network is trained using AdamW optimizer for a maximum of 100 epochs and early stops if ELBO loss does not decrease for five epochs. A learning rate of 0.002 and a mini-batch size of 64 are used. Three random seeds are used in each experiment, and the mean performance with standard deviation averaged across random seeds are reported.

In some embodiments, the hyperparameters of TV-NPSSM include [β, γ, σ], which represent the weights for transition prior for latent variable z, change factor c and auxiliary predictor. Since the objective of transition prior does not consider the initial time-lagged variables, conventional VAE is used, where the standard normal distribution N(0, 1) as the prior distribution for these initial latent variable instead. Therefore, we augment the hyperparameters to [β,βinit,γ,γinit,σ] The ELBO loss is used to select the best tuple of [β,βinit,γ,γinit,σ], because low ELBO always lead to high mean correlation coefficient (MCC). For the various datasets discussed below, the optimal configuration for COVID-19 dataset is [5e-2, 5e-3, 1e-4, 1e-3, 1e-1], the optimal configuration for Economics dataset is [5e-2, 1e-3, 5e-5, 1e-3, 1]. To facilitate comparison, the training parameters, e.g. optimizer, batch size, as well as the encoder and decoder architecture are identical to TV-NPSSM. Similarly, hyperparameters are chosen via objective loss. For all experiments, z∈R8 and c∈R4 are used, and the maximum time lag L=2 is set by the rule of thumb. For the initialization of VAE, the instruction of β-VAE is used and the He initialization is used. For the rest of modules/networks, the uniform initialization is used.

Training Stability. Various techniques are used improve training stability: (1) AdamW optimizer is used as a regularizer to prevent training from being interrupted by overflow or underflow of variance terms of VAE; (2) For the synthetic datasets, in the first phase, the VAE parameters and transition prior network parameters are learned, but not the parameters of the auxiliary predictor. After this phase, all parameters are learned jointly. This allows the model to first find good VAE embedding, and then learn how to utilize it for the forecasting task. For the real-world datasets, a single phase of training is performed, where all the model parameters are learned jointly. Nvidia A100 GPU is used to run the experiments.

Synthetic Datasets. To evaluate the identifiability and forecasting capability of the model under different conditions, various synthetic datasets are generated with 1) fixed causal dynamics; 2) fixed causal dynamics with distribution shift; 3) time-varying causal dynamics with changing noise variances and 4) time-varying causal dynamics with changing causal strengths. The first 80% data is used for training and the rest 20% is used for evaluation.

Fixed Casual Dynamics. For the fixed casual dynamics, 100,000 data points are generated based on the following equation:

Z k , t = q k ( { z t - τ } ) + 1 b k ( { z t - τ } ) ϵ k , t . ( 17 )

Here, ϵk,t is standard Gaussian and ϵ1,t, ϵ2,t, . . . , ϵn,t are mutually independent and independent from

z t - 1 · 1 b k ,

which depends on zt-1, is the standard deviation of the noise in zk,t. Set the latent size n=8 and the lag number of the process L=2. A 2-layer MLP with LeakyReLU is used as the state transition function. The emission function is a random three-layer MLP with LeakyReLU units. The process noise is sampled from i.i.d. Gaussian distribution (σ=0.1). The process noise terms are coupled with the history information through multiplication with the average value of all the time-lagged latent variables.

Fixed causal dynamics with distribution shift. Similar to the setting of fix causal dynamics, 80,000 data point are generated for the training set. To add changes, the values of the first layer of the MLP in the test set are varied to generate 20,000 samples. The entries of the kernel matrix of the first layer are uniformly distributed between [−1,1].

Time-varying causal dynamics with changing noise variances. For the time-varying causal dynamics with changing noise variances, 100,000 data points are generated based on the following equation:

c k , t = c k , t + ζ k , t z k , t = q k ( { z t - τ } ) + 1 b k ( { z t - τ } , c t ) ϵ k , t , ( 18 )

where the noises ζkt are sampled from i.i.d. Lapalace distribution (σ=1). In the latent transition process for zt, noise terms are coupled with the history information and change factors through multiplication with the average value of all the time-lagged latent variables zt-τ and current time varying change factor ct.

Time-varying causal dynamics with changing causal strengths. For the time-varying causal dynamics with changing causal strengths, the process for changing noise variances is used, and 100,000 data points are generated based on the following equation:

c k , t = c k , t + ζ k , t z k , t = q k ( { z t - τ } , c t ) + 1 b k ( { z t - τ } ) ϵ k , t , ( 19 )

where we take the change factor ct as a input for the latent transition function for zt.

Real-World Datasets. Two real-world datasets, including COVID-19 dataset and Economics dataset are used to evaluate the forecasting performance of the systems and methods described herein. The first 80% data is used for training and the rest 20% is used for evaluation.

The COVID-19 incidence data is publicly available at JHU-CSSE (https://github.com/CSSEGISandData/COVID-19) and COVID-19 tracking project (https://covidtracking.com). The COVID-19 dataset used in the experiments covers the report from 2020 Jan. 23 to 2022 Jan. 1 from 50 states and DC in the US. Consider the skew distribution of new cases, preprocessing step is performed, and the data are normalized with log-transformation log (x+1).

The economics dataset was downloaded from https://www.theglobaleconomy.com. The time-lagged causal relationships about 10 macro-economic variables ranging from CPI, inflation to unemployment rate with monthly data from 1965 to 2017 in the USA, are investigated. Preprocessing step is performed and the data are normalized by subtracting the mean and dividing them by the standard deviation.

Evaluation Metric. To evaluate the identifiability of the learned latent variables, Mean Correlation Coefficient (MCC) is reported, which is a standard metric in ICA literature for continuous variables. MCC is a standard metric for evaluating the recovery of latent factors in ICA literature. It first computes the absolute values of the Spearman's rank correlation coefficients between every ground-truth factor against every estimated latent factor. The possible permutation is adjusted by solving a linear sum assignment problem in polynomial time on the computed correlation matrix. MCC reaches 1 when latent variables are identifiable up to component wise invertible transformation and permutation. To evaluate the forecasting performance, Mean Absolute Error (MAE) and ρ-risk which quantifies the accuracy of a quantile ρ of the predictive distribution are reported. Formally, they are defined as:

MAE i , t "\[LeftBracketingBar]" x it - x ˆ it "\[RightBracketingBar]" R p - loss = i , t ( x ˆ it p - x it ) ( pI x ˆ i t p > x i t - ( 1 - p ) I x ˆ i t p x i t ) , ( 20 )

where {circumflex over (x)}itp is the empirical p-quantile of the prediction distribution and I is the indicator function. For the probabilistic forecasting models, forecast distribution are estimated by 50 trials of sampling. We use the predicted median value as {circumflex over (x)}it.

Baselines. The proposed method is compared with typical deep forecasting models and deep state space models: (1) LSTM which is a baseline for the deterministic deep forecasting model; (2) DeepAR which is an encoder-based probabilistic deep forecasting model; (3) VRNN and (4) KVAE which are deep state space models. Note that KVAE implicitly considers time-varying change factors by formulating the transition matrix as a weighted average of a set of base matrices and using an RNN to predict the combination weights at each step. Finally, (5) TV-NPSSM and NPSSM are compared to verify the effectiveness of incorporating time-varying change factors.

Experimental Results. Synthetic datasets that satisfy the identifiability conditions in the theorems are generated as discussed above. Specifically, four representative settings are considered respectively to validate the identifiability and forecasting results under fixed causal dynamics (Synthetic1), fixed causal dynamics with distribution shift (Synthetic2), time-varying causal dynamics with changing noise variances (Synthetic3) and time-varying causal dynamics with changing causal strengths (Synthetic4). For all the synthetic datasets, set latent size n=8 and the maximum latent process lag is set to L=2. The emission function g(⋅) is a random three-layer MLP with LeakyReLU units.

Referring to FIG. 10, results therein illustrate that that TV-NPSSM can successfully recover the latent processes under different settings, as indicated by the highest MCC (close to 1). The baselines models (including deep forecasting model and deep state space models) cannot recover the latent processes. Besides, TV-NPSSM gives the best forecasting accuracy, as indicated by the lowest MAE and R0.9-loss. In the forecasting task, the best baseline model DeepAR has the highest MCC among them.

Referring to FIGS. 11, results therein illustrate the comparison between TV-NPSSM with NPSSSM and verifies the effectiveness of incorporating time-varying change factors in TV-NPSSM, and illustrate the importance of modeling time-varying change factors.

Referring to FIG. 12, each left sub-figure shows the MCC correlation matrix of each factor, while each right sub-figure shows the scatter plot of recovered factor and truth factor. As shown in FIG. 12, the time delayed causal relationships are successfully recovered as indicated by high MCC for the causally-related factors. Besides, the latent causal variables are estimated up to permutation and component wise invertible transformation.

Referring to FIG. 13, illustrated therein are the recovered causal relationships from NPSSM and KVAE in terms of MCC and causal-related factors in Synthetic3 dataset. Compared to KVAE, NPSSM has a better latent causal variables recovery, which are estimated up to permutation and component-wise invertible transformation.

Referring to FIG. 14, the total number of parameters of different methods in our synthetic experiments is summarized. Compared to baselines models, NPSSM and TV-NPSSM requires more extra parameters. This is because these two methods have extra transition prior models. Compared to NPSSM, TV-NPSSM has more parameters since it needs to explicitly model the encoder for ĉ1:T conditioned on

{ z ˆ t - τ } L c τ = 0 .

Referring to FIG. 15, TV-NPSSM is evaluated on two real-world datasets: COVID-19 and Economics, and the forecasting performance is compared with baselines. As seen in FIG. 15, TV-NPSSM outperforms all competitors in terms both of MAE and R0.9-loss, which verifies the effectiveness of TV-NPSSM and the corresponding time series forecasting framework.

Referring to FIG. 16, different models are tested using the Economics dataset for qualitative evaluation. As shown in FIG. 16, TV-NPSSM predicts well under various temporal data characteristics.

Referring to FIG. 17, illustrated are causal relation between latent variables and observed variables with Economics dataset. The circles to the left with number indicate latent factors, while the circles to the right indicate the observed variables. To visualize nonlinear relations, a post-processing tool (e.g., LassoNet) is used to remove weak edges and generate the sparse causal relation graph from the results on economics dataset. This method prunes input nodes by jointly feeding the first hidden layer and the residual layer through a hierarchical threshold-based optimizer. The LassoNet is first fit on the emission model, which receives latent variables and outputs the observation variables at the same time step. As shown in FIG. 17, industry production and business confidence survey are simultaneously correlated, as both of them are effected by latent factor ‘1’ to the left. Additionally, foreign exchange reserves, Consumer Price Index (CPI) and money supply are simultaneously correlated, as all of them effected by latent factor ‘4’. Note that latent factors ‘0’, ‘2’ and ‘5’ has been removed by a pruning step when constructing this relation graph. It means these factors do not demonstrate strong causal strengths.

Referring to FIG. 18, time-lagged causal relations graph for latent variables graph based on the results for Economics dataset are illustrated. The circles ending with “_t” indicate the time-lagged source latent factors, and other circles indicate the target latent factors. A post-processing tool, LassoNet, is used to extract the sparse time-lagged causal relation in the latent space. As shown in FIG. 18, most of the latent factors are affected by their time-lagged parents node. Meanwhile, NPSSM can recover the cross relations between latent variables.

This description and the accompanying drawings that illustrate inventive aspects, embodiments, implementations, or applications should not be taken as limiting. Various mechanical, compositional, structural, electrical, and operational changes may be made without departing from the spirit and scope of this description and the claims. In some instances, well-known circuits, structures, or techniques have not been shown or described in detail in order not to obscure the embodiments of this disclosure. Like numbers in two or more figures represent the same or similar elements.

In this description, specific details are set forth describing some embodiments consistent with the present disclosure. Numerous specific details are set forth in order to provide a thorough understanding of the embodiments. It will be apparent, however, to one skilled in the art that some embodiments may be practiced without some or all of these specific details. The specific embodiments disclosed herein are meant to be illustrative but not limiting. One skilled in the art may realize other elements that, although not specifically described here, are within the scope and the spirit of this disclosure. In addition, to avoid unnecessary repetition, one or more features shown and described in association with one embodiment may be incorporated into other embodiments unless specifically described otherwise or if the one or more features would make an embodiment non-functional.

Although illustrative embodiments have been shown and described, a wide range of modification, change and substitution is contemplated in the foregoing disclosure and in some instances, some features of the embodiments may be employed without a corresponding use of other features. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. Thus, the scope of the invention should be limited only by the following claims, and it is appropriate that the claims be construed broadly and, in a manner, consistent with the scope of the embodiments disclosed herein.

Claims

1. A method of providing a neural network system for time series forecasting, comprising:

receiving, via an input interface, a time series dataset that includes datapoints at a plurality of timestamps in an observed space;
providing a first state-space model of a dynamical system underlying the time series dataset, wherein the first state-space model includes a first non-parametric transition function for generating one or more latent variables of a latent space for the time series dataset;
determining, using the neural network system based on the first state-space model, one or more estimated latent variables; and
providing, using the neural network system, a first prediction result for the time series dataset based on the estimated latent variables.

2. The method of claim 1, wherein each of the latent variables is identifiable from a corresponding observed data.

3. The method of claim 1, wherein the first nonparametric transition function has a first input including the one or more parent time-lagged variables of the latent factor and a second input including a first noise.

4. The method of claim 3, wherein the first nonparametric transition function has a third input including one or more time-varying change factors.

5. The method of claim 4, wherein the one or more time-varying change factors are associated with a second nonparametric transition function.

6. The method of claim 5, wherein the second nonparametric transition function includes an input including a second noise, and

wherein the first noise and the second noise are mutually independent.

7. The method of claim 1, wherein the neural network system includes:

an encoder configured to determine the one or more estimated latent variables;
an auxiliary predictor configured to generate a first latent-space prediction result based on the one or more estimated latent variables; and
a decoder configured to transform the first latent-space prediction result to the first prediction result in the observed space.

8. A non-transitory machine-readable medium comprising a plurality of machine-readable instructions which, when executed by one or more processors, are adapted to cause the one or more processors to perform a method comprising:

receiving, via an input interface, a time series dataset that includes datapoints at a plurality of timestamps in an observed space;
providing a first state-space model of a dynamical system underlying the time series dataset, wherein the first state-space model includes a first non-parametric transition function for generating one or more latent variables of a latent space for the time series dataset;
determining, using a neural network system based on the first state-space model, one or more estimated latent variables; and
providing, using the neural network system, a first prediction result for the time series dataset based on the estimated latent variables.

9. The non-transitory machine-readable medium of claim 8, wherein each of the latent variables is identifiable from a corresponding observed data.

10. The non-transitory machine-readable medium of claim 8, wherein the first nonparametric transition function has a first input including the one or more parent time-lagged variables of the latent factor and a second input including a first noise.

11. The non-transitory machine-readable medium of claim 10, wherein the first nonparametric transition function has a third input including one or more time-varying change factors.

12. The non-transitory machine-readable medium of claim 11, wherein the one or more time-varying change factors are associated with a second nonparametric transition function.

13. The non-transitory machine-readable medium of claim 12, wherein the second nonparametric transition function has an input including a second noise, and

wherein the first noise and the second noise are mutually independent.

14. The non-transitory machine-readable medium of claim 8, wherein the neural network system includes:

an encoder configured to determine the one or more estimated latent variables;
an auxiliary predictor configured to generate a first latent-space prediction result based on the one or more estimated latent variables; and
a decoder configured to transform the first latent-space prediction result to the first prediction result in the observed space.

15. A system, comprising:

a non-transitory memory; and
one or more hardware processors coupled to the non-transitory memory and configured to read instructions from the non-transitory memory to cause the system to perform a method comprising: receiving, via an input interface, a time series dataset that includes datapoints at a plurality of timestamps in an observed space; providing a first state-space model of a dynamical system underlying the time series dataset, wherein the first state-space model includes a first non-parametric transition function for generating one or more latent variables of a latent space for the time series dataset; determining, using a neural network system based on the first state-space model, one or more estimated latent variables; and providing, using the neural network system, a first prediction result for the time series dataset based on the estimated latent variables.

16. The system of claim 15, wherein each of the latent variables is identifiable from a corresponding observed data.

17. The system of claim 15, wherein the first nonparametric transition function has a first input including the one or more parent time-lagged variables of the latent factor and a second input including a first noise.

18. The system of claim 17, wherein the first nonparametric transition function has a third input including one or more time-varying change factors.

19. The system of claim 18, wherein the one or more time-varying change factors are associated with a second nonparametric transition function.

20. The system of claim 19, wherein the second nonparametric transition function has an input including a second noise, and

wherein the first noise and the second noise are mutually independent.
Patent History
Publication number: 20230376734
Type: Application
Filed: Sep 16, 2022
Publication Date: Nov 23, 2023
Inventors: Chenghao Liu (Singapore), Chu Hong Hoi (Singapore), Kun Zhang (Hong Kong)
Application Number: 17/946,365
Classifications
International Classification: G06N 3/04 (20060101);