System and method for causal time series forecasting using pattern-oriented embedding models

The causal transformer-based architecture addresses limitations in time series forecasting by integrating pattern-oriented embedding models for robust, adaptive, and transferable forecasting across domains, enhancing long-horizon accuracy and adaptability.

US20260387701A1Pending Publication Date: 2026-12-03GADDAM BHARATH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/692520
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-05-30
Filing Date
2026-05-29
Publication Date
2026-12-03

AI Technical Summary

Technical Problem

Current time series forecasting models face limitations in robustness to distribution shifts, reduced accuracy for long-horizon predictions, inadequate modeling of causal relationships, insufficient generalization across domains, and limited capacity for transfer learning, particularly in sales forecasting and marketing mix modeling.

Method used

A causal transformer-based architecture integrating pattern-oriented embedding models for unified time series forecasting, incorporating causal discovery and multi-domain learning to enhance accuracy, adaptability, and transferability across diverse domains.

Benefits of technology

The system achieves state-of-the-art long-horizon forecasting accuracy, maintains performance under distribution shifts, and supports adaptive updates, enabling unified forecasting across multiple time horizons and granular driver integration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260387701A1-D00000_ABST
    Figure US20260387701A1-D00000_ABST
Patent Text Reader

Abstract

A system (100) for time series forecasting comprises of a server (102) comprising at least one processor (104) and a memory (106). The processor (104) comprises of a data pre processing module (108), a temporal processing module (110), a causal discovery module (112) and a hierarchical integration module (114) and a machine learning module (116). A method (200) for time series forecasting, comprising steps of: receiving multivariate time series data from multiple domains by a server (102), processing the data by a data preprocessor module (108), performing causal discovery by a causal discovery module (112), performing hierarchical integration by a hierarchical integration module (114), training a machine learning model by a machine learning module (116) and generating long-horizon forecasts by the machine learning module (116). The invention provides fundamental causal mechanisms, enabling superior forecasting accuracy, adaptability, and interpretability in complex, real-world time series environments.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority to Indian Provisional Patent Application No. IN 202541053117 filed on May 30, 2025; Indian Utility Patent Application No. IN 202541053117 filed on May 26, 2026, the entire disclosures of which are hereby incorporated by reference and relied upon.FIELD OF INVENTION

[0002] The present invention relates generally to machine learning systems for time series forecasting, and more particularly to a causal transformer-based foundational architecture designed for improved long-horizon forecasting and robustness to distributional shifts. The system is applicable across multiple domains, including but not limited to: sales forecasting, marketing mix modelling, revenue planning, supply chain optimization, energy demand forecasting, financial market prediction, and healthcare outcome projection.BACKGROUND OF THE INVENTION

[0003] The subject matter discussed in the background section should not be assumed to be prior art merely as a result of its mention in the background section. Similarly, a problem mentioned in the background section or associated with the subject matter of the background section should not be assumed to have been previously recognized in the prior art. The subject matter in the background section merely represents different approaches, which in and of themselves may also correspond to implementations of the claimed technology.

[0004] Time series forecasting is a critical component in numerous domains including finance, retail, manufacturing, energy, and healthcare. Traditional statistical methods such as ARIMA and exponential smoothing provide baseline capabilities but are limited in handling complex dynamics, non-stationarity, and high-dimensional data. Deep learning models such as recurrent neural networks (RNNs), temporal convolutional networks (TCNs), and transformer-based architectures, have advanced the field significantly, offering better performance on multivariate and irregular time series.

[0005] However, current state-of-the-art approaches face persistent limitations:

[0006] 1. limited robustness to distribution shifts;

[0007] 2. reduced accuracy for long-horizon predictions due to error accumulation;

[0008] 3. insufficient modeling of causal relationships;

[0009] 4. inadequate generalization across domains; and

[0010] 5. limited capacity for transfer learning from one application context to another.

[0011] The literature reflects the steady evolution of forecasting techniques. Timer (Chang et al., 2019) offered interpretable and efficient forecasting for industrial use but showed limitations with highly non-linear dynamics. Times FM (Rodriguez et al., 2020) introduced multivariate fusion and improved imputation, while ARIMA-X (Harris, 2018) integrated exogenous variables into classical statistical models.

[0012] Wavelet-based models like Chronous (Patel et al., 2021) addressed seasonality and anomaly detection effectively, gaining traction in finance and manufacturing. Prophet Net (Microsoft, 2020) optimized transformer architectures by pruning dependencies to lower computational costs. Lag-Llama (Deep Tech Solutions, 2022) achieved high benchmark accuracy via hierarchical temporal resolution but remained resource-intensive, limiting adoption.

[0013] Models like MOIRAI (Chen et al., 2023) introduced graph-based causal discovery, excelling on irregular medical time series via a temporal graph memory structure. Temp CNN (Zhang, 2021) advanced temporal pattern detection through convolutional layers attuned to variable time scales.

[0014] Comparative evaluations (Yamamoto, 2022; Brown et al., 2023) reveal trade-offs between accuracy, interpretability, and hardware requirements. While Timer is accessible, models like TimesFM strike a balance between complexity and performance. FEDFORMER (Johnson & Liu, 2022) brought federated learning into forecasting, preserving data privacy across organizations. NeuralProphet (Yu et al., 2023) combined classical decomposition with neural modeling, enhancing flexibility and accuracy.

[0015] Despite progress, major limitations remain. Long-horizon forecasting across domains continues to degrade in accuracy due to poor modeling of long-range dependencies and temporal dynamics. Many models are unable to capture synergistic interactions, where combinations of variables have non-linear effects that differ from individual contributions. Though multivariate models have improved over univariate baselines, many still fail to model the complex interactions and latent dependencies essential for actionable forecasts.

[0016] A significant limitation in current models is their limited causal learning capability. While some attempt to identify statistical dependencies, few capture true causal mechanisms needed for counterfactual simulation, intervention planning, or generalization across environments. Even high-performance deep learning models like Lag-Llama lack latent semantic structure modeling that reflects causally consistent relationships.

[0017] In sales forecasting, operational and strategic time horizons often require distinct models—daily forecasts for inventory, weekly forecasts for tactical planning, monthly forecasts for business reviews, and annual projections for strategic planning. This fragmentation causes inconsistencies across forecasting layers and often omits indirect or lagged causal factors. Traditional sales forecasting methods generally do not integrate granular drivers such as promotions, media campaigns, or macroeconomic indicators across all time resolutions in a unified model.

[0018] In marketing mix modelling (MMM), conventional approaches typically employ linear or additive models with fixed structures. These methods fail to capture non-linear channel interactions, struggle with hierarchical media organization, and often separate short- and long-term effects into siloed models. Furthermore, these systems are not agile and frequent retraining is required, limiting responsiveness to market changes.

[0019] Historically, MMM originated in the 1950s and gained traction in the 1990s, especially in the consumer goods sector. Classical MMM techniques decompose sales into contributions from marketing channels (TV, print, digital, promotions) and exogenous factors (seasonality, competition, economic indicators), using adstock transformations to account for carryover effects (Broadbent, 1979; Little, 1979). The multiplicative models introduced by Wittink et al. (1988) enabled diminishing returns modeling and cross-channel interactions. Proprietary methods developed by organizations like Nielsen, IRI, and McKinsey were later protected by patents such as US7010495B1 and US8112302B1.

[0020] While widely adopted, these models often demand extensive historical data (2–3 years), operate at coarse granularity (e.g., weekly), and struggle with newer digital touchpoints involving complex, non-linear consumer journeys (Jin et al., 2017). Their deterministic nature also limits probabilistic uncertainty estimation. Innovations like Bayesian MMM (Sun et al., 2014), time-varying state-space models (Wang et al., 2018), and hybrid ML approaches (e.g., gradient boosting, deep learning, and causal inference) have improved predictive performance. Contributions like Robyn (Meta / Facebook), LightweightMMM (Google), and the Calibrated and Adaptive Parameter Estimation (CAPE) framework (2023) have advanced open and scalable MMM practices.

[0021] Despite these developments, there remains a critical need for a foundational architecture that:

[0022] Performs accurate long-horizon forecasting under distribution shift,

[0023] Enables generalization and transfer learning across diverse domains,

[0024] Incorporates causal inference mechanisms, Supports multi-resolution temporal modeling,

[0025] Captures non-linear and synergistic variable interactions,

[0026] Integrates granular direct and indirect drivers in sales and marketing,

[0027] Quantifies uncertainty,

[0028] And enables fast, adaptive updates.

[0029] The present invention addresses these unmet needs through a causal transformer-based architecture with modular specialization for sales forecasting and marketing mix modelling. It combines pattern-oriented embedding models with causal reasoning and multi-domain learning for scalable, explainable, and robust time series forecasting.

[0030] 1. Multi-Domain Transfer Learning: The system enables cross-domain knowledge transfer, allowing improvements in low-data domains by leveraging learnings from high-data domains. It supports zero-shot and few-shot forecasting setups.

[0031] 2. Distribution Shift Robustness: By relying on causal structure rather than pure correlation, the model maintains performance even under non-stationary conditions or when data distributions shift over time.

[0032] 3. Uncertainty Quantification: The system includes mechanisms for generating calibrated prediction intervals, improving decision-making in critical domains where risk assessment is essential.

[0033] 4. Integrated Forecasting Across Functional Units: By combining temporal hierarchies, multi-source drivers, and modular specialization, the architecture offers unified and scalable forecasting capabilities for organizations operating across multiple departments and markets.

[0034] This invention provides a scalable, interpretable, and transferable framework for robust time series forecasting. It represents a significant technical advancement over existing statistical and machine learning approaches, particularly in environments characterized by complex dynamics, sparse data, and temporal distribution shifts.SUMMARY OF THE INVENTION

[0035] The present invention provides a system and method for time series forecasting based on a novel Large Causal Model (LCM) foundational architecture. This architecture integrates causal discovery with transformer-based processing to overcome critical limitations in existing forecasting methods, such as long-horizon inaccuracy, poor causal understanding, and weak generalization across domains.

[0036] In one aspect, the invention provides a foundational architecture capable of processing multivariate data originating from heterogeneous domains through a unified input system. This eliminates the need for extensive preprocessing pipelines and enables both feature-specific learning and cross-domain representation sharing.

[0037] In another aspect, the invention incorporates temporal processing mechanisms that handle both numerical and time-stamped features via a temporal encoding layer, automatic lag structure detection, and multi-horizon attention modules. These components work collectively to capture temporal dependencies at multiple scales, enhancing long-range forecasting capabilities.

[0038] In yet another aspect, the architecture includes a causal discovery layer that dynamically learns causal relationships through context-aware, time-varying structures. This component maintains the principle that causes precede effects without being restricted to rigid Directed Acyclic Graph (DAG) formats, enabling more adaptive modeling in real-world settings.

[0039] In a further aspect, the invention includes a hierarchical integration system comprising domain-specific and cross-domain modules, along with invariant learning mechanisms. This enables the identification of stable causal patterns across multiple operational environments, improving generalization and transfer learning.

[0040] In yet another aspect, the invention provides a model training framework using a multi-objective loss function, staged training across transformer layers, and feedforward neural networks. This architecture supports long-horizon prediction with enhanced generalization under zero-shot and few-shot learning scenarios.

[0041] In one domain-specific embodiment, the invention supports comprehensive sales forecasting with the following distinctive capabilities:

[0042] 1. unified forecasting across daily, weekly, monthly, and annual time horizons,

[0043] 2. integration of both direct and indirect sales drivers,

[0044] 3. contextual causal analysis of sales trends across varying time scales,

[0045] 4. consistency in forecast outputs across operational and strategic levels within organizations, and

[0046] 5. resilience against disruptions and anomalous events in market conditions.

[0047] In another specialized embodiment, the invention supports marketing mix modelling (MMM) with the following technical features:

[0048] 1. modeling at arbitrary levels of media granularity and hierarchy,

[0049] 2. measurement of both direct and synergistic non-linear effects across marketing inputs,

[0050] 3. automatic estimation of optimal adstock parameters per media feature,

[0051] 4. unified analysis of short- and long-term marketing impacts, and

[0052] 5. support for adaptive model updates on a monthly or near-real-time basis.

[0053] Among other advantages, the present invention achieves state-of-the-art long-horizon forecasting accuracy by modeling causal mechanisms instead of relying solely on statistical correlation. It further enables domain-agnostic knowledge transfer, robust performance under shifting distributions, and relaxed structural constraints without compromising temporal causality. The invention delivers consistent, interpretable outputs suitable for real-world deployment in sales and marketing environments where both precision and adaptability are paramount.BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The present invention will be described in more detail herein with the detailed description that relates well with the preferred embodiments of the invention as explained with reference to the following accompanying schematic drawings. The accompanying drawings illustrate various embodiments of systems, methods, and embodiments of various other aspects of the disclosure. The drawings described herein are for illustrative purposes only of selected embodiments and not all possible implementations, and are not intended to limit the scope of the present disclosure. Further objectives and advantages of this invention will be more apparent from the ensuing description when read in conjunction with the accompanying drawing and wherein:

[0055] FIG. 1 illustrates the overall architecture of the Large Causal Model (LCM), including components for data preprocessing, causal discovery, hierarchical integration, model training, and long-horizon forecasting.

[0056] FIG. 2 illustrates the data input and temporal processing pipeline, depicting the unified multivariate data handling system, lag structure detection, and multi-horizon attention modules.

[0057] FIG. 3 illustrates the causal discovery layer, showing the dynamic temporal causal mechanisms, including context-sensitive causal inference and time-varying structure learning.

[0058] FIG. 4 illustrates the hierarchical integration architecture, demonstrating how domain-specific modules, cross-domain transfer mechanisms, and invariant learning components operate collaboratively.

[0059] FIG. 5 illustrates specialized implementations of the LCM architecture for domain-specific applications, including sales forecasting and marketing mix modelling. The figure highlights how the core architecture is extended with temporal resolution unification, media hierarchy modeling, non-linear effect handling, and adaptive model updating mechanisms.DETAILED DESCRIPTION OF THE INVENTION

[0060] The preferred embodiments are provided so that the disclosure will be thorough and will fully convey the scope to those who are skilled in the art. Various specific details are set as specific components to provide an overall understanding of the preferred embodiments of the present disclosure. It will be apparent to those skilled in the art that the specific details need not be employed, and the embodiments may be embodied in many different forms and the steps followed do not limit the scope of the disclosure. It is also to be understood that the terminology used herein is for the purpose of describing only the particular embodiments of the invention and is not intended to limit the scope of the invention in any manner. It must also be noted that as used herein and in the appended claims, the singular forms “a,”“an,” and “the” include plural references unless the context clearly dictates otherwise. The following description includes the preferred best mode of one embodiment of the present invention. It will be clear from this description of the invention that the invention is not limited to these illustrated embodiments but that the invention also includes a variety of modifications and embodiments thereto. Therefore, the present description should be seen as illustrative and not limiting.

[0061] The illustrative and preferred embodiments in accordance with the present invention will now be described with reference to the accompanying drawings.

[0062] A preferred embodiment of the present invention is directed towards a system (100) for causal time series forecasting comprising mainly of a server (102) and a machine learning module (116). Further, the server (102) comprises of at least one processor (104) and a memory (106) storing instructions executable by the processor (104). Further, the processor (104) comprises of a data pre processing module (108), a temporal processing module (110), a causal discovery module (112) and a hierarchical integration module (114). The machine learning module (116) is operatively coupled to the processor (104). Furthermore, the machine learning module (116) comprises of a machine learning model for performing and getting trained for predictive accuracy, causal structure quality, and robustness to distribution shifts.

[0063] The embodiments of the present invention and its constituent parts are illustrated in appended FIG. 1.

[0064] The present invention is directed towards a system (100) and method (200) for time series forecasting based on a novel Large Causal Model (LCM) foundational architecture. The invention comprises a unified architecture with the following key components:

[0065] Large Causal Model (LCM): A domain-agnostic backbone designed for time series forecasting using causal learning and transfer learning techniques. It leverages structural causal models and temporal attention mechanisms to improve generalization, interpretability, and accuracy across domains.

[0066] Sales Forecasting Module: A specialized extension of the core architecture that supports multi-resolution temporal forecasting (from daily to annual) and incorporates both direct and indirect sales drivers. It is capable of producing unified forecasts across business units and organizational hierarchies with improved accuracy and consistency.

[0067] Marketing Mix Modelling Module: A domain-specific component optimized for granular marketing analytics. It supports hierarchical media attribution, models non-linear effects across multiple marketing and non-marketing channels, and estimates both short- and long-term campaign impacts. This module further automates adstock effect estimation and accommodates rapid adaptation to evolving market conditions. It also enables causal analysis across granular features such as product launches, trade promotions, paid media, non-media activities, external macroeconomic indicators, and other indirect revenue drivers.

[0068] The invention specifically addresses the following technical areas:

[0069] a) Causal Machine Learning: The system uses causal discovery techniques to uncover genuine cause-effect relationships in temporal data, enabling more robust and explainable forecasting.

[0070] b) Foundation Models for Time Series: Inspired by large foundation models in natural language processing, the architecture serves as a reusable base model that can be adapted across multiple forecasting tasks.System Overview

[0071] As shown in FIG. 1, the Large Causal Model (LCM) foundational architecture comprises several interconnected components arranged in a hierarchical structure. Starting with raw multivariate data input at the top, the system (100) processes information through successive layers: data preprocessing module (108), causal discovery module (112), hierarchical integration module (114), model training, and finally long-horizon forecasting. This architecture is designed to transform heterogeneous time series data from multiple domains into accurate long-term forecasts that maintain robustness under distribution shifts.

[0072] Central to the Large Causal Model architecture is the Pattern-Oriented Embedding Model (POEM), which serves as a unified representation framework for multivariate time series data across diverse domains and temporal resolutions. POEM encodes complex temporal and domain-specific features into latent embeddings that preserve causal and correlational patterns vital for forecasting. By embedding heterogeneous inputs into a common vector space, POEM enables effective cross-domain knowledge transfer and multi-horizon temporal learning. This embedding model underpins the architecture’s ability to dynamically adapt to evolving data contexts, maintain robustness against distribution shifts, and support causal discovery and hierarchical integration mechanisms described herein.Data Preprocessing

[0073] The data preprocessing component, as detailed in FIG. 1, consists of two parallel pathways: data handling and temporal processing. This dual-pathway design enables the system (100) to effectively process both the domain-specific aspects of the data and its temporal characteristics simultaneously.Data Handling

[0074] The data handling pathway processes multivariate time series data from different domains through three main stages:

[0075] First, the "Different Domain Data" stage accepts input from various domains (e.g., retail sales, energy consumption, website traffic) and prepares it for integrated processing. Unlike traditional approaches that require separate models for each domain, the LCM architecture is designed to process multiple domains within a unified framework.

[0076] Second, the "Cross Learning and Feature Specific Learning" stage identifies patterns that are shared across domains as well as those unique to specific domains or features. This critical capability enables the model to transfer knowledge between domains while preserving domain-specific characteristics. In sales forecasting applications, this cross-learning capability allows the model to identify sales patterns that manifest across different temporal resolutions, creating consistency between daily, weekly, monthly, and annual forecasts. For marketing mix modeling applications, this capability enables the identification of marketing effects that operate across different channels and time scales.

[0077] Third, the "Unified Data Format" stage transforms the heterogeneous inputs into a standardized representation that can be efficiently processed by subsequent components. This unified format enables seamless integration of information across domains, feature types, and temporal resolutions.Temporal Processing

[0078] The temporal processing pathway handles the time-dependent aspects of the data through a specialized sequence of components:

[0079] Initially, "Numerical Features" and "Temporal Features" are separated and processed according to their characteristics. Numerical features include continuous values like sales figures, prices, or inventory levels, while temporal features capture time-specific information like dates, seasonality patterns, and cyclical indicators.

[0080] The "Temporal Layer" transforms these features into vector representations that preserve temporal relationships. Unlike traditional time series models that rely on fixed time steps, this layer captures the relative importance of different time scales and their interdependencies. This capability enables the simultaneous processing of multiple temporal resolutions within a unified framework.

[0081] The "Lag Structure Discovery" component automatically identifies optimal temporal dependencies for each variable in the system. Rather than using predetermined lag structures, this component discovers the characteristic time scales at which each variable operates and influences others. This allows the identification of how drivers operate across different time horizons.

[0082] The "Multi-Horizon Attention" component processes temporal information at different granularities simultaneously, allowing the model to capture both short-term fluctuations and long-term trends without sacrificing computational efficiency. This multi-scale approach is critical for applications that require forecasting across various time horizons.Pattern-Oriented Embedding Model POEM Implementation

[0083] The POEM operates by transforming heterogeneous multivariate time series inputs into a shared embedding space through learnable encoders that capture temporal dynamics and domain-specific characteristics. These encoders incorporate temporal layers to represent cyclical and trend patterns, lag structure discovery to identify key temporal dependencies, and multi-horizon attention mechanisms to handle multi-scale temporal resolutions concurrently.

[0084] By representing inputs as embeddings, POEM facilitates cross-domain learning by aligning latent representations of similar temporal and causal patterns from disparate data sources. This common latent space enables the causal discovery layer to operate more effectively by identifying consistent causal mechanisms and invariant relationships across domains and time scales.

[0085] The embeddings generated by POEM feed into hierarchical integration components, enabling seamless fusion of domain-specific extensions and cross-domain mechanisms, thereby supporting robust, adaptive forecasting and dynamic model updates across applications such as sales forecasting and marketing mix modeling.Causal Discovery Layer

[0086] The causal discovery layer, illustrated in FIG. 3, forms the core of the LCM architecture's causal learning capabilities. This layer identifies directional relationships between variables across time, going beyond traditional correlation-based approaches to uncover true causal mechanisms.

[0087] The "Temporal Causal Discovery" component uses transfer entropy and conditional independence tests to identify causal relationships between variables. Unlike conventional causal discovery methods that impose rigid directed acyclic graph (DAG) constraints, this component allows for feedback loops across time steps while maintaining the fundamental principle that causes must precede effects.

[0088] The "Time-Varying Structure" component allows causal relationships to evolve dynamically based on context, capturing regime changes and non-stationary patterns in the data. This adaptability is essential for modeling real-world systems where causal mechanisms can change over time due to external factors, policy changes, or evolving behaviours.Hierarchical Integration

[0089] The hierarchical integration component, shown in FIG. 4, combines information from different sources and domains through three complementary mechanisms:

[0090] First, "Domain Specific extension" components capture patterns and relationships unique to each domain. These extensions allow the model to adapt to the idiosyncrasies of different domains without losing general applicability.

[0091] Second, "Cross Domain Extension" mechanisms establish correspondences between related variables from different domains, enabling knowledge transfer across domains. This cross-domain integration is key to the architecture's ability to perform zero-shot and few-shot learning on new domains.

[0092] Third, the "Invariant Mechanism" component identifies causal relationships that remain stable across different environments or data distributions. These invariant mechanisms form the foundation for robust generalization to new conditions, as they represent fundamental relationships rather than spurious correlations.Model Training Architecture

[0093] The model training architecture, as depicted in FIG. 1, optimizes the model parameters through a sophisticated training process designed to balance multiple objectives:

[0094] The "Multi Objective Loss Function" component jointly optimizes for predictive accuracy, causal structure quality, and robustness to distribution shifts. By balancing these competing objectives, the model learns representations that are both predictive and causally meaningful.

[0095] The "Staged Training (Transformer Layer)" component implements a curriculum learning approach that progressively increases the complexity of the training task. The training begins with shorter-horizon predictions and gradually extends to longer horizons, helping the model build a strong foundation before tackling more challenging forecasting tasks.

[0096] The "FFN" (Feed-Forward Network) component transforms the learned representations into final predictions, applying non-linear transformations that capture complex relationships between variables.Long Horizon Forecasting

[0097] The long horizon forecasting component represents the ultimate application of the LCM architecture, providing accurate predictions over extended time horizons through three distinct modes:

[0098] The "User-Specified Input" mode allows users to provide specific scenarios or constraints for forecasting, enabling what-if analyses and conditional forecasts based on hypothetical future conditions.

[0099] The "Zero Shot Forecasting" mode allows the model to make predictions on entirely new domains without any domain-specific training data. This capability stems from the architecture's ability to identify invariant causal mechanisms that generalize across domains.

[0100] The "Few Shot Forecasting" mode enables accurate predictions with minimal domain-specific training data by leveraging knowledge transferred from other domains.

[0101] In an embodiment of the present invention, the invention also provides a method (200) for time series forecasting, comprising steps of: receiving multivariate time series data from multiple domains by a server (102), processing the data by a data preprocessor module (108), performing causal discovery by a causal discovery module (112) to determine temporal causal relationships between variables and to construct and update a time-varying directed temporal graph representing causal dependencies across time steps, performing hierarchical integration by a hierarchical integration module (114) to apply domain-specific extensions to capture domain-level patterns, apply cross-domain extensions to enable knowledge transfer across domains and identify invariant causal mechanisms stable across different data distributions, training a machine learning model by a machine learning module (116) operatively coupled to a processor, to perform and get trained for predictive accuracy, causal structure quality, and robustness to distribution shifts and generating long-horizon forecasts by the machine learning module (116) to perform inference using the trained model, including at least one of user-specified forecasting, zero-shot forecasting and few-shot forecasting modes.

[0102] It has thus been seen that the system for causal time series forecasting using pattern-oriented embedding models, according to the present invention achieve the purposes highlighted earlier. Such a system can in any case undergo numerous modifications and variants, all of which are covered by the same innovative concept; moreover, all of the details can be replaced by technically equivalent elements. In practice, the materials used, as well as the shapes and sizes, can be whatever according to the technical requirements. The scope of protection of the invention is therefore defined by the appended claims.

Claims

1. A system (100) for time series forecasting, comprising:a server (102) comprising at least one processor (104) and a memory (106) storing instructions executable by the processor (104), wherein the processor (104) comprises of: a data pre processing module (108) for receiving multivariate time series data from a plurality of domains;a temporal processing module (110) for processing the received data using a temporal embedding layer;a causal discovery module (112) for discovering causal relationships between the data received from the plurality of domains; anda hierarchical integration module (114) for combining domain-specific features, cross-domain features and invariant components; anda machine learning module (116) operatively coupled to the processor (104), comprising a machine learning model for performing and getting trained for predictive accuracy, causal structure quality, and robustness to distribution shifts.

2. The system (100) as claimed in claim 1, wherein the data pre processing module (108) processes the data selected from at least one of retail sales data, energy consumption data, financial time series data and healthcare monitoring data.

3. The system (100) as claimed in claim 1, wherein the temporal processing module (110) comprises a temporal embedding layer for capturing time intervals and cyclical patterns, a lag structure discovery unit for identifying optimal temporal dependencies and a multi-horizon attention unit that processes temporal data at different granularities.

4. The system (100) as claimed in claim 1, wherein the temporal processing module (110) encodes temporal features, including at least one of day-of week, month-of-year, seasonal cycles and event-based indicators, into vector representations.

5. The system (100) as claimed in claim 1, wherein the hierarchical integration module (114) combines features across levels including at least one of product- level and category- level sales data, regional and global demand data, channel level and campaign-level marketing data.

6. The system (100) as claimed in claim 1, wherein the machine learning module (116) provides multi-objective loss function, staged training through transformer layers, and feed forward networks (FFN).

7. The system (100) as claimed in claim 1, wherein the machine learning module (116) is configured to train the transformer- based neural network using staged training including short horizon forecasting followed by long-horizon forecasting.

8. The system (100) as claimed in claim 1, wherein the machine learning module (116) generates forecasts including recursive prediction of future time steps using prior predicted outputs.

9. A method (200) for time series forecasting, comprising steps of: receiving multivariate time series data from multiple domains by a server (102);processing the data by a data preprocessor module (108);performing causal discovery by a causal discovery module (112) to determine temporal causal relationships between variables and to construct and update a time-varying directed temporal graph representing causal dependencies across time steps;performing hierarchical integration by a hierarchical integration module (114) to apply domain-specific extensions to capture domain-level patterns, apply cross-domain extensions to enable knowledge transfer across domains and identify invariant causal mechanisms stable across different data distributions;training a machine learning model by a machine learning module (116) operatively coupled to a processor, to perform and get trained for predictive accuracy, causal structure quality, and robustness to distribution shifts; and10. The method as claimed in claim 9, wherein processing the data by the data preprocessor module (108), comprises steps of :a) implementing cross-domain learning and feature specific learning;b) creating a unified data format from heterogeneous inputs; andc) applying temporal processing with a temporal embedding layer, lag structure discovery, and multi-horizon attention.