A timing prediction method, apparatus and computing device cluster

By using variable-time fusion networks and hyperscan tensor techniques, the accuracy of existing time series prediction methods in complex multivariate coupling relationships and dynamic temporal changes is addressed, resulting in more efficient prediction results.

CN123158312APending Publication Date: 2026-11-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510656742.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-21
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing time series forecasting methods lack accuracy in handling complex coupling relationships and dynamic changes over time among multiple variables, and struggle to simultaneously consider variable relationships and time variations.

Method used

A predictive neural network, including a variable-temporal fusion network, is employed to capture the relationships between multiple temporal variables and adjust them along the time dimension. By using a hyperscan tensor and an enhanced feedforward network layer, key time segments are adaptively selected for feature extraction, thereby improving prediction accuracy.

Benefits of technology

It improves the accuracy and efficiency of time series forecasting, better captures the dependencies and time changes between variables, and enhances the precision of forecast results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158312A_ABST
    Figure CN123158312A_ABST
Patent Text Reader

Abstract

A time-series prediction method, applied in the field of artificial intelligence, includes: acquiring first data comprising at least multiple time-series variables; inputting the first data into a trained prediction neural network to obtain a prediction result, wherein the prediction neural network includes at least one variable-time fusion network, each variable-time fusion network including a first sub-network and a second sub-network, the first sub-network being used to capture the relationships between variables in the first data and adjust the relationships between variables along the time dimension to obtain a hyperscan tensor, the second sub-network being used to obtain an output result based on the hyperscan tensor; when there are multiple variable-time fusion networks, the output result is used as the input of the first sub-network in the variable-time fusion network; when there is only one variable-time fusion network, the prediction result is obtained based on the output result. Thus, the dependencies between variables that change over time can be captured, thereby improving the accuracy of the prediction result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence (AI) technology, and in particular to a time series prediction method, apparatus, and computing device cluster. Background Technology

[0002] With the continuous improvement of industrial automation and intelligence, time series forecasting is increasingly widely used in industrial production scenarios, such as blast furnace temperature prediction, heating furnace energy consumption prediction, and intelligent flotation process monitoring. However, existing time series forecasting methods still have significant limitations in handling complex coupling relationships between multiple variables and dynamic changes over time, making it difficult to guarantee the accuracy of predictions. Therefore, how to simultaneously consider complex variable relationships and time changes in time series forecasting is a technical problem that urgently needs to be solved. Summary of the Invention

[0003] This application provides a time series forecasting method, apparatus, computing device cluster, computer storage medium, and computer product that can improve the accuracy of forecasting.

[0004] In a first aspect, this application provides a time series prediction method, the method comprising: acquiring first data including at least a plurality of time series variables; inputting the first data into a trained prediction neural network to obtain a prediction result, wherein the prediction neural network includes at least one variable time fusion network, each variable time fusion network including a first sub-network and a second sub-network, the first sub-network being used to capture the relationship between variables in the first data and adjust the relationship between the variables along the time dimension to obtain a hyperscan tensor, the second sub-network being used to obtain an output result based on the hyperscan tensor; when there are multiple variable time fusion networks, the output result is used as the input of the first sub-network in the variable time fusion network; when there is only one variable time fusion network, the prediction result is obtained based on the output result.

[0005] For example, the first data includes multiple time-series variables, which are dynamic sequence variables that change over time. In addition, the first data may also include one or more constants that do not change over time. The constants in the first data are also in the same form as the variables, that is, the constants in the first data are in the form of expansion along the time dimension.

[0006] In this way, by first capturing the relationships between variables in the initial data, certain variable dependencies are captured. Subsequently, the relationships between variables are adjusted along the time dimension to account for the fluctuations in these dependencies as the variables change over time. This allows for a more accurate capture of the time-varying dependencies between variables, thereby improving the accuracy of the prediction results.

[0007] In one possible implementation, capturing the relationships between variables in the first data and adjusting these relationships along the time dimension to obtain a hyperscan tensor includes: scanning the first data along the variable dimension to capture the relationships between variables in the first data and obtain a state tensor; performing feature extraction processing on the state tensor along the time dimension based on the importance of different time segments in the state tensor to obtain a hyperstate tensor; and obtaining a hyperscan tensor based on the first data and the hyperstate tensor.

[0008] For example, the first sub-network includes a superscan network layer. In the superscan network layer, parameters in the selective state space can be used... A scan is performed along the variable dimension to obtain the state tensor. Then, the hyperstate tensor is multiplied by a gated multiplication matrix C in the selective state space to obtain the hyperscan tensor. When performing feature extraction on the state tensor along the time dimension, at least one of deformable convolution, linear mapping, or channel attention mechanisms can be used.

[0009] In this way, by identifying the time segments with higher importance in the state tensor, feature extraction can be performed using these higher-importance time segments. Therefore, when adjusting along the time dimension, the state tensor is no longer operated on uniformly, but rather the importance of each time segment is considered. This allows the hyperstate tensor to capture the fluctuations caused by the changing relationships between variables over time, resulting in better prediction performance.

[0010] In one possible implementation, the step of performing feature extraction processing on the state tensor along the time dimension based on the importance of different time segments in the state tensor to obtain a hyperstate tensor includes: performing feature extraction processing on the state tensor to generate a portion of the hyperstate tensor in any local feature extraction operation; wherein, in the current local feature extraction operation, a reference region is determined, wherein the reference region is used to characterize a two-dimensional feature extraction window on the state tensor in the current operation, and the reference region includes variable information and time information; based on the state tensor covered by the reference region, an offset in the time dimension is obtained, wherein the offset is used to characterize the relative position difference in the time dimension of a time segment in the state tensor relative to a time segment in the reference region, and the importance of a time segment in the state tensor is higher than that of a time segment in the reference region; adjusting the position of the reference region in the time dimension based on the offset to obtain a sampling region; and performing feature extraction on the state tensor in the sampling region to generate the corresponding portion of the hyperstate tensor.

[0011] For example, a reference region can cover multiple elements, and an offset can be generated for each element. Alternatively, convolution can be used to generate the offset for each element.

[0012] In this way, by using offsets, more important time segments can be identified during feature extraction, and features can be extracted based on these more important time segments. This makes the feature extraction of the state tensor more inclined to select elements with a greater influence on the prediction result, thereby enabling the prediction neural network to make more accurate predictions.

[0013] In one possible implementation, the method further includes: dividing the first data into two sub-tensors along the channel direction; inputting the two sub-tensors into the first sub-network with opposite variable directions to obtain two hyperscan sub-tensors associated with their respective sub-tensors; and obtaining a hyperscan tensor based on the two hyperscan sub-tensors associated with their respective sub-tensors.

[0014] In this way, the dependencies between variables can be modeled from both positive and negative perspectives, thereby capturing the interaction information between variables more comprehensively and improving the expressive power and accuracy of predictions.

[0015] In one possible implementation, the method further includes: reconstructing the state tensor during feature extraction processing along the time dimension, wherein the reconstruction is used to expand the time information in the state tensor into independent dimensions.

[0016] For example, the state tensor before and after reconstruction can be represented by (N,P×D) and (N,P,D). As you can see, P, which represents the time dimension, has become an independent dimension.

[0017] This makes it easier to process the time dimension, thus facilitating the execution of time-related offsets, weightings, or other processing, and improving the model's accuracy in responding to dynamic changes over time.

[0018] In one possible implementation, the second sub-network includes an enhanced feedforward network layer for integrating the temporal information of the variable sequences in the enhanced feature tensor.

[0019] This enhances the time modeling capability within the variable sequence, extracts more stable and predictive time features, and thus improves overall prediction performance.

[0020] Thirdly, this application provides a time series prediction device, which includes an acquisition module and a processing module. The acquisition module is used to acquire first data including at least a plurality of time series variables, and the processing module is used to input the first data into a trained prediction neural network to obtain a prediction result. The prediction neural network includes at least one variable time fusion network, and each variable time fusion network includes a first sub-network and a second sub-network. The first sub-network is used to capture the relationship between variables in the first data and adjust the relationship between variables along the time dimension to obtain a hyperscan tensor. The second sub-network is used to obtain an output result based on the hyperscan tensor. When there are multiple variable time fusion networks, the output result is used as the input of the first sub-network in the variable time fusion network. When there is only one variable time fusion network, the prediction result is obtained based on the output result.

[0021] In one possible implementation, the processing module is used to capture the relationships between variables in the first data and adjust the relationships between variables along the time dimension to obtain a hyperscan tensor. In the process, the first data is scanned along the variable dimension to capture the relationships between variables in the first data and obtain a state tensor. Based on the importance of different time segments in the state tensor, feature extraction processing is performed on the state tensor along the time dimension to obtain a hyperstate tensor. Based on the first data and the hyperstate tensor, the hyperscan tensor is obtained.

[0022] In one possible implementation, the processing module is used to perform feature extraction on the state tensor along the time dimension based on the importance of different time segments in the state tensor to obtain a hyperstate tensor. During this process, feature extraction is performed on the state tensor to generate a portion of the hyperstate tensor in any local feature extraction operation. Specifically, in the current local feature extraction operation, a reference region is determined, which represents a two-dimensional feature extraction window on the state tensor in the current operation. The reference region includes variable information and time information. Based on the state tensor covered by the reference region, an offset in the time dimension is obtained, where the offset represents the relative position difference in the time dimension between a time segment in the state tensor and a time segment in the reference region. The importance of a time segment in the state tensor is higher than that of a time segment in the reference region. The position of the reference region in the time dimension is adjusted based on the offset to obtain a sampling region. Feature extraction is performed on the state tensor in the sampling region to generate the corresponding portion of the hyperstate tensor.

[0023] In one possible implementation, the processing module is further configured to: divide the first data into two sub-tensors along the channel direction; input the two sub-tensors into the first sub-network with opposite variable directions to obtain two super-scan sub-tensors associated with their respective sub-tensors; and obtain the super-scan tensor based on the two super-scan sub-tensors associated with their respective sub-tensors.

[0024] In one possible implementation, the processing module is further configured to: reconstruct the state tensor during the feature extraction process along the time dimension, wherein the reconstruction is used to expand the time information in the state tensor into independent dimensions.

[0025] In one possible implementation, the processing module is further configured to: adjust the relationship between variables along the time dimension using at least one of deformable convolution, linear mapping, or channel attention mechanisms.

[0026] In one possible implementation, the processing module is further configured to include an enhanced feedforward network layer in the second sub-network, which is used to integrate the temporal information of the variable sequences in the enhanced feature tensor.

[0027] Thirdly, this application provides a control method applied to an AI accelerator, the AI ​​accelerator including SRAM and HBM, the AI ​​accelerator being used to execute the method of any one of claims 1-7, the control method including: performing calculations on the SRAM relating to the relationships between variables in the captured first data, and performing calculations on the HBM relating to the relationships between the variables along the time dimension.

[0028] In this way, by scanning along the variable dimension and adjusting along the time dimension at different levels of the memory, the generation of the hyperstate tensor is accelerated, thereby improving the model inference speed and optimizing computational efficiency.

[0029] Fourthly, this application provides a computing device cluster, including at least one computing device, each computing device including a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the method described in the first aspect or any possible implementation of the first aspect.

[0030] Fifthly, this application provides a computer-readable storage medium including computer program instructions that, when executed by a cluster of computing devices, perform the method described in the first aspect or any possible implementation thereof. Exemplarily, the computing device cluster may include one or more computing devices.

[0031] Sixthly, this application provides a computer program product containing instructions that, when executed by a cluster of computing devices, cause the cluster of computing devices to perform the method described in the first aspect or any possible implementation thereof. Exemplarily, the cluster of computing devices may include one or more computing devices.

[0032] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0033] Figure 1 and Figure 2 This is a schematic diagram of the architecture of the Mamba model in existing technology;

[0034] Figure 3 This is a schematic diagram of a time-series prediction system for predicting blast furnace molten iron temperature provided in an embodiment of this application;

[0035] Figure 4 This is a schematic diagram illustrating the normalization of different variables in the input data provided in the embodiments of this application;

[0036] Figure 5 This is a schematic diagram illustrating the division and mapping of normalized data provided in an embodiment of this application;

[0037] Figure 6 This is a schematic diagram of the structure of a dynamic state construction unit provided in an embodiment of this application;

[0038] Figure 7 This is a schematic diagram illustrating the combined operation of a bidirectional mechanism and an ultra-scanning module, as provided in an embodiment of this application.

[0039] Figure 8 This is a schematic diagram of the principle of an ultra-scanning module provided in an embodiment of this application;

[0040] Figure 9 This is a schematic diagram illustrating the process of normalizing, dividing, and mapping input data according to an embodiment of this application;

[0041] Figure 10 This is a schematic diagram illustrating how a linear tensor is used to obtain a superscan tensor through a superscan module, as provided in an embodiment of this application.

[0042] Figure 11 This is a schematic diagram illustrating how a first state tensor is adjusted along the time dimension to obtain a first hyperstate tensor, as provided in an embodiment of this application.

[0043] Figure 12A This is a schematic diagram illustrating feature extraction without considering the time dimension, provided in an embodiment of this application.

[0044] Figure 12B This is a schematic diagram illustrating the calculation of offset provided in an embodiment of this application;

[0045] Figure 12C This is a schematic diagram illustrating how a new sampling region is defined based on an offset, as provided in an embodiment of this application.

[0046] Figure 12D This is a schematic diagram illustrating feature extraction based on a sampling region, provided in an embodiment of this application.

[0047] Figure 13 This is a schematic diagram of the hardware mapping relationship of the control strategy of a timing prediction system provided in an embodiment of this application;

[0048] Figure 14 This is a schematic diagram illustrating the interaction between a user and a cloud computing platform, provided in an embodiment of this application.

[0049] Figure 15 This is a flowchart illustrating a time series prediction method provided in an embodiment of this application;

[0050] Figure 16 This is a schematic diagram of the structure of a timing prediction device provided in an embodiment of this application;

[0051] Figure 17 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application;

[0052] Figure 18 This is a schematic diagram of the structure of a computing device cluster provided in an embodiment of this application;

[0053] Figure 19 This is a schematic diagram of another computing device cluster structure provided in an embodiment of this application. Detailed Implementation

[0054] In this article, the term "and / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The symbol " / " in this article indicates that the related objects are in an "or" relationship; for example, A / B means A or B.

[0055] The terms "first" and "second," etc., used in the specification and claims herein are used to distinguish different objects, not to describe a specific order of objects. For example, "first response message" and "second response message," etc., are used to distinguish different response messages, not to describe a specific order of response messages.

[0056] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0057] In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more, for example, multiple processing units means two or more processing units, multiple elements means two or more elements, etc.

[0058] First, the relevant technical terms involved in the technical solution provided in this application will be introduced.

[0059] (1) AI Accelerator: A hardware accelerator designed to accelerate AI neural networks, deep learning, and machine learning. AI accelerators include various types, such as neural processing units (NPUs), graphics processing units (GPUs), field-programmable gate arrays (FPGAs), and application-specific integrated circuits (ASICs). Typically, AI accelerators contain two types of cache: static random access memory (SRAM) and high-bandwidth memory (HBM). Generally, SRAM has a smaller capacity than HBM, but its bandwidth is greater.

[0060] Time series forecasting models are models used to predict future values ​​or states based on historical time series data. Common time series forecasting models include patch time series transformers (patchTST), interactive transformers (itransformer), and time-series networks (TimesNet). PatchTST can divide time series into segments and process all variables uniformly; iTransformer can model the relationships between variables; TimesNet is based on a convolutional structure and is computationally more efficient.

[0061] However, PatchTST struggles to capture the individual differences between variables, while iTransformer maps different variables uniformly to a coarse feature representation, making it difficult to identify fine-grained changes within variables. These methods fail to capture complex relationships and multi-delay features between variables, thus limiting predictive performance. Furthermore, convolutional models such as TimesNet have limited receptive fields, making it difficult to capture long-range dependencies; and although Transformer-based models such as PatchTST and iTransformer possess global modeling capabilities, their computational overhead is significant, making efficient deployment in practical applications difficult.

[0062] In addition, some other time series prediction models were derived from the structured state-space model. For example, the Mamba model is a model that can efficiently capture the relationships between variables. Figure 1 As shown in (A), the input is processed through multiple Mamba modules to finally produce the output. The structure of a single Mamba module is as follows: Figure 1 As shown in (B). Figure 1 In (B), the input is first upscaled through a linear layer to obtain the upscaled data. This upscaled data is then fed into various branch paths. On one hand, the data enters a convolutional module (Conv) to extract features. The output of the convolutional module then passes through an activation function (σ) to obtain the activated result x. Next, x is fed into a selective state-space module (Selective SSM), which scans the input sequence along the variable dimensions to obtain the output y. y is then fused with the output of another branch at a multiplication node. The output of the other branch is obtained by passing the upscaled data through the activation function. y is then multiplied element-wise with the output of the other branch to obtain the fused result after cross-path information fusion. This fused result is then downscaled through a linear layer 3 to obtain the result of the current Mamba module. The result of the current Mamba module can be used as the input of the next Mamba module. The final result is output after passing through multiple Mamba modules.

[0063] In addition, such as Figure 2 As shown, in the selective state-space module, there is a certain mapping relationship between the input x and the output y. In the selective state-space module, the hidden state h can be obtained first based on the input x, and then the output y can be obtained based on the hidden state h. Generally, this process can be expressed by the following formula:

[0064]

[0065] y k =Ch k (2)

[0066] Among them, h k : Represents the hidden state at the k-th time step. h k-1 The hidden state of the previous time step. k : Input for the current time step. It is a learnable weight matrix. y k : Output at the current time step. C: Gated multiplication matrix. It is derived from A. It is derived from A and B, and can be simply referred to here as Both C and C are derived from the projection of the input x.

[0067] In other words, the computation in the selective state-space module can be divided into two parts. First, the input x and... and After performing the calculation as shown in formula (1), the hidden state h can be obtained. Then, the hidden state h is multiplied by C (or "the hidden state h is gated multiplied by the input x") to obtain the output y.

[0068] Figure 1 While the Mamba model can capture the relationships between multiple variables in sequence data, it ignores the temporal differences between these variables, resulting in poor output performance. In other words, in multivariate time series forecasting, the influence of different variables on the target variable often occurs in different time intervals, but the Mamba model can only treat different time intervals equally (or "uniformly"), making it difficult to identify the key time points that are more important to the forecast results, thus leading to poor forecast performance.

[0069] In view of this, embodiments of this application provide a time series prediction method that can perceive along both the variable dimension and the time dimension when dealing with different variables, and adaptively select key time segments from the time dimension to adjust the prediction results, thereby obtaining better prediction results.

[0070] Taking blast furnace ironmaking as an example, in this scenario, the temperature of molten iron has a crucial impact on the quality of steel. In actual operation, multiple relevant variables can be acquired in real time, such as the temperature of the blast furnace waist, the temperature of the furnace belly, and the blast pressure inside the furnace. The ultimate goal is to predict the temperature of molten iron after a certain period of time (e.g., 2 hours later).

[0071] For this scenario, this application provides a time-series prediction system for predicting blast furnace molten iron temperature. For example, Figure 3 This diagram illustrates a time-series prediction system for predicting blast furnace molten iron temperature, as provided in an embodiment of this application. The time-series prediction system 300 includes: a preprocessing module 301, a partitioning and mapping module 302, and a prediction neural network. The prediction neural network may include L time-variable fusion modules 303 (or "variable-time fusion network"). The preprocessing module 301 receives input data and preprocesses it to obtain a first tensor. In this scenario, the input data may be variables such as the blast furnace waist temperature, furnace belly temperature, and furnace air pressure. Of course, the input data may also include constants, such as the radius of the inner furnace. Subsequently, the input data is preprocessed, which may include normalization. Figure 4As shown, preprocessing normalizes data of different dimensions in the input data, mapping different types of data within the same numerical range. After normalization, the variables in the input data are transformed into a unified structure, thus obtaining the first tensor. Preprocessing can also include data cleaning, which involves identifying and removing outliers and imputing missing values. Furthermore, when preprocessing constants in the input data, they can be expanded along the time dimension into a sequence representation of the same length as the variables, ensuring consistency in tensor structure with the variables, followed by subsequent processing consistent with the variables. For example, during normalization, any of the following methods can be used: Z-score normalization, min-max normalization, logarithmic transformation, or quantile normalization.

[0072] The partitioning and mapping module 302 is used to perform partitioning and mapping operations on the first tensor, thereby obtaining the second tensor (or "first data"). The partitioning and mapping module 302 can first partition the variables in the first tensor according to time, and then map the partitioned results. For example, the partitioning process can use non-overlapping, partially overlapping, or other methods. Figure 5 As shown, each variable can be divided according to a fixed time step length L, thus dividing each variable into P non-overlapping parts, each part corresponding to a different time period. Figure 5 In the first tensor, there are N variables. After partitioning, an intermediate tensor is obtained, which can be represented as (N, P, V), where N represents the number of variables, P represents the number of segments obtained after dividing the sequence corresponding to the variables according to a preset length, and V refers to the value of the variable after preprocessing and normalization. During the partitioning process, the complete sequence of each variable can be sliced ​​according to the time order, thereby obtaining multiple continuous subsequences of the variable in different time intervals. For example, if the sampling start point of each variable in the first tensor is the same and the sampling time is 1s, and the time step length used for partitioning is 0.5s, then each variable will be divided into two time segments. The intermediate tensor obtained by partitioning can be represented as (N, 2, V), where p = 1 represents the time interval of 0-0.5s, and p = 2 represents the time interval of 0.5-1s. In other words, P implicitly contains the time information of the input data. In addition, the partitioning and mapping module 302 maps the value V of the intermediate variable to obtain the feature dimension D representing the variable in a specific time period. Thus, the second tensor is obtained, which can be represented as (N, P, D). Figure 5In the process, the segment with N=A and P=1 can be mapped to obtain D1; the segment with N=A and P=2 can be mapped to obtain D2. Then, all segments of all variables are traversed to obtain D associated with all variable segments. This is then combined to obtain the second tensor (N, P, D). Additionally, the partitioning and mapping module 302 can flatten the second tensor to obtain a two-dimensional representation. For example, the dimensions P and D in the second tensor can be merged into a one-dimensional representation using a concatenation method, resulting in the flattened second tensor (N, P×D). In the second tensor, P×D can represent the overall feature dimension formed by each variable after being unfolded over time slices. P×D can accelerate the calculation speed along the variable scan in subsequent steps.

[0073] The time-variable fusion module 303 receives the second tensor after embedding processing and extracts the correlation information between variables and the change characteristics in the time dimension, thereby outputting the prediction result. In this scenario, the prediction result is the molten iron temperature 2 hours later. When multiple time-variable fusion modules 303 are connected in series in the time-series prediction system 300 for blast furnace molten iron temperature prediction, the interaction processing effect of variables and time information can be further improved, enhancing the responsiveness to complex time-series features and the prediction accuracy. Figure 3 As shown, the time-variable fusion module 303 may include a dynamic state construction unit 303-1, a normalization fusion unit A303-2, a time-enhanced feedforward unit 303-3, and a normalization fusion unit B303-4. Specifically, the dynamic state construction unit 303-1 extracts the inter-variable dependencies and dynamic changes in the time dimension from the second tensor to obtain the fused enhanced feature tensor; the normalization fusion unit A303-2 performs normalization and residual connection operations on the enhanced feature tensor to obtain the third tensor; the time-enhanced feedforward unit 303-3 further fuses the expressive power of the time (dimension P) and feature dimension (dimension D) in the third tensor to obtain the fourth tensor; and the normalization fusion unit B303-4 has the same structure as the normalization fusion unit A303-2 and is used for normalization processing in the output stage. When multiple time-variable fusion modules 303 are connected in series in the system, the output of the normalized fusion unit B303-4 can be used as the input of the next time-variable fusion module 303; when only one time-variable fusion module 303 is set, the output can be used as the final prediction result.

[0074] The dynamic state building unit 303-1 can be referenced. Figure 6(A). The state construction unit 303-1 includes two linear layers, a superscan module, an activation function, and a product component. For example, when the input to the state construction unit 303-1 is a second tensor, the second tensor is first input to linear layer A to project onto it, obtaining a linear tensor. The linear tensor is then input to the superscan module, which captures the relationships between variables in the linear tensor to obtain a state tensor. The relationships between variables in the state tensor are then adjusted along the time dimension to obtain a superscan tensor. Simultaneously, the second tensor is transformed by linear layer B, and a nonlinear expression is introduced through the activation function to obtain an activation tensor. Finally, the superscan tensor and the activation tensor are fused using the product component to obtain an enhanced feature tensor. This enhanced feature tensor can be used as the final output of the state construction unit 303-1 for further processing by subsequent modules. As a possible implementation, the superscan module can use a bidirectional scanning mechanism when scanning the linear tensor, which will be explained later.

[0075] The superscan module can be referenced. Figure 6 (B) In the superscan module, the linear tensor is first scanned along the variable dimension to generate a state tensor. Subsequently, the state tensor is adjusted along the time dimension to obtain a hyperstate tensor. By scanning along the variable dimension, each variable in the linear tensor can incorporate information from other variables, thus forming a state tensor reflecting the relationships between variables. Adjustment along the time dimension allows the superscan module to select representative time segments from the historical sequence of each variable, thereby generating a hyperstate tensor that incorporates temporal dynamics. Furthermore, the linear tensor can also utilize a bidirectional mechanism when passing through the superscan module, which can capture the dependencies of global variables. Figure 7 This is a schematic diagram of a two-way mechanism. Figure 7 In the process, a linear vector A can be divided into two sub-tensors (a first sub-tensor and a second sub-tensor) along the channel direction (P×D). Each sub-tensor has a feature dimension of (P×D) / 2. Then, the two sub-tensors are input into the super-scan module along opposite variable directions to obtain the first super-scan sub-tensor and the second super-scan sub-tensor, respectively. For example, the first sub-tensor can be input into the super-scan module along the positive variable direction (from the 1st variable to the Nth variable) to obtain the first super-scan sub-tensor; the second sub-tensor can be input along the negative variable direction (from the Nth variable to the 1st variable) to obtain the second super-scan sub-tensor. Finally, the first and second super-scan sub-tensors are concatenated to obtain the super-scan tensor.

[0076] Figure 8 yes Figure 6 The schematic diagram of (B) is shown below. Figure 8 As shown, the linear tensor is based on and The first state tensor is calculated. Then, based on the first hyperstate tensor and C, the first hyperscan sub-tensor is determined. Both C and Figure 2 The selective state-space module in [the original text] serves the same purpose, and will not be elaborated further here. Figure 8 In this example, the first-state tensor is adjusted along the time dimension to obtain the hyperscan tensor. For instance, the first-state tensor can be reconstructed to obtain the second-state tensor. This reconstruction is used to expand the temporal information (dimension P) in the state tensor into independent dimensions. Figure 8 In this model, the first-state tensor can be represented by a two-dimensional tensor (N, P×D), and the second-state tensor can be represented by a three-dimensional tensor (N, P, D). Thus, the reconstructed second-state tensor can be manipulated along its time dimension (dimension P). Subsequently, the second-state tensor is adjusted along its time dimension using deformable convolution to obtain the second hyperstate tensor. During deformable convolution, multiple convolution operations are performed. In one of these operations, the offset of the region to be convolved (or the "reference region") is first calculated; this offset indicates the offset in dimension P. Then, this offset is combined with the reference region to obtain a new convolution region (or "sampling region"). Next, a convolution operation is performed on this new region to obtain the convolution value. This completes one deformable convolution operation. The second-state tensor is then convolved using the aforementioned deformable convolution operation to obtain the second hyperstate tensor. Finally, the second hyperstate tensor can be reconstructed to obtain the first hyperstate tensor. As one possible implementation, the time offset can be determined from the reconstructed second-state tensor using convolution or other methods.

[0077] By introducing a scanning mechanism along the time dimension, the superscan module can no longer process every time segment uniformly, but instead adaptively determine the location of key time segments. This allows it to focus on time segments that are more important to the prediction task, improving the accuracy of the prediction results.

[0078] In other embodiments, when adjusting along the time dimension, a linear mapping method or a channel attention method can be used to scan the first state tensor. The linear mapping method uses a weighted fusion of embeddings from all time points, while the channel attention method selects key time points based on an attention mechanism. Both methods can determine the location of key time segments, improving the accuracy of the prediction results.

[0079] After that Figures 9 to 1 Taking 2 as an example, the time-series prediction system 300 used for predicting the temperature of molten iron in a blast furnace will be described in detail.

[0080] like Figure 9As shown, assuming the input data includes three variables: blast furnace waist temperature (variable A), furnace belly temperature (variable B), and furnace air pressure (variable C), it's easy to see that the dimensions of these three variables are different. Therefore, the input data can be preprocessed to obtain the first tensor. During preprocessing, normalization is used to map each variable in the input data to the same numerical range. Then, the first tensor is partitioned and mapped. In this process, each variable in the first tensor is divided by time, resulting in multiple continuous subsequences of that variable within different time intervals. These subsequences are then mapped to obtain their corresponding dimensions. Assuming all three variables correspond to the same time period, such as 0 to 2 seconds, after normalization, each variable can be partitioned into 0.5-second time segments, thus dividing each variable into four time segments. Next, each time segment is mapped to obtain the feature dimension D corresponding to that time segment. Additionally, N can be used to represent different vectors, and P can be used to represent time segments corresponding to different time periods (e.g., P=1 represents a time segment from 0 to 0.5s, and P=2 represents a time segment from 0.5 to 1s). This yields the second tensor (N, P, D). This three-dimensional tensor can represent the set of time segments after block mapping. Different time segments are only related to N and P, and D is an inherent property of that time segment. When N=A and P=1, it represents the time segment of variable A from 0 to 0.5s. Furthermore, the second tensor can also be flattened by dimension P and dimension D. The flattened second tensor can be represented as (N, P×D), where P×D represents the feature dimension of the corresponding time period.

[0081] Subsequently, the second tensor passes through the time-variable fusion module 303. In the time-variable fusion module 303, the second tensor is passed through a superscan module, which captures the relationships between the variables in the second tensor and adjusts these relationships along the time dimension. For example, the superscan module can be implemented using a superscan network layer.

[0082] During the process of the second tensor passing through the superscan module, it can be passed through a linear layer A to obtain a linear tensor that meets the dimensional requirements of the superscan module. This linear tensor can also be represented as (N, P×D). Subsequently, the linear tensor passes through the superscan module to obtain the superscan tensor.

[0083] Figure 10 This is a schematic diagram illustrating how a linear tensor is transformed into a superscan tensor using a superscan module. Figure 10In the process, the linear tensor is first divided into two sub-tensors along the channel direction (P×D direction). The first sub-tensor inherits all variables from 0 to (P×D) / 2 from the linear tensor. The second sub-tensor inherits all variables from (P×D) / 2 to P×D from the linear tensor. The two sub-tensors then enter the super-scan module with different variable directions. The variable direction is either forward or reverse. A forward variable direction refers to inputting the sub-tensor into the super-scan module from 1 to N (e.g., the order of variable A, variable B, variable C). A reverse variable direction refers to inputting the sub-tensor into the super-scan module from N to 1 (e.g., the order of variable C, variable B, variable A). In this embodiment, when the first sub-tensor is input into the super-scan module in a forward / reverse variable order, the second sub-tensor is input into the super-scan module in a reverse / forward variable order.

[0084] exist Figure 10 In this process, two sub-tensors are first scanned along the variable dimension, then adjusted along the time dimension, and finally gated multiplication and concatenation are performed to obtain the super-scan tensor. During this process, the sub-tensors can be adjusted according to the parameters... and Once the first state tensor is determined, the first hyperscan subtensor can be determined based on the first hyperstate tensor and the parameter C. Figure 10 Parameters in Both C and Figure 2 The selective state-space module in [the original text] functions the same way, so it will not be elaborated further here. Therefore, it will be combined with [other components] later. Figure 11 and Figure 12A D explains the process of adjusting along the time dimension.

[0085] Figure 11 This is a schematic diagram illustrating how the first state tensor is adjusted along the time dimension to obtain the first superstate tensor. During the adjustment along the time dimension, the more important time segments in the first state tensor are focused, and the first superstate tensor is generated based on these time segments. To facilitate adjustment, the time dimension in the first state tensor can be independently reconstructed during the adjustment process. Figure 11 The second-state tensor (N, P / 2, D) in the equation. Figure 11 In the process, the region to be convolved (or "reference region") is determined. Then, offsets are calculated for each element covered by this region, yielding the offsets corresponding to each element. The reference region is then added to the offsets to obtain a new convolution region (or "sampling region"). Next, a convolution operation is performed on the sampling region to obtain the feature values ​​in the second hyperstate tensor. This completes one deformable convolution operation. This convolution operation is repeated to scan each part of the second-state tensor, resulting in the second-state tensor.

[0086] Without considering the time dimension, such as Figure 12A As shown, in this convolution process, the first convolution kernel convolves three reference points (N=A, P=1), (N=A, P=2), and (N=A, P=3) in the reference region to obtain the eigenvalue 3 of (N=A, P=2) in the second hyperstate tensor. The reference region's location is determined by variable and temporal information.

[0087] When adjusting along the time dimension, convolution can be used to calculate the offset. For example... Figure 12B As shown, a 1×1 convolution kernel can be used to convolve the reference region in the second-state tensor to obtain the offsets corresponding to the three elements in the reference region. This 1×1 convolution kernel, after training, is multiplied by the dimension D of a certain element in the second-state tensor to obtain the offset of that element. Then, as... Figure 12C As shown, this offset is added to the reference region to obtain the sampling region. This offset is used to indicate the position of the time dimension offset within the reference region. As one possible implementation, in... Figure 12C In the process, the offset is processed (rounded) to ensure that the sampling region aligns with the elements in the second-state tensor. Finally, feature extraction is performed on the sampling region to obtain the feature values ​​in the second-state tensor. For example... Figure 12D As shown, the feature value obtained by convolution of the sampling region is 6, which is consistent with... Figure 12A The eigenvalue 3 obtained is not the same. It can be seen that by focusing on the more important time segment in the first state tensor, the final eigenvalue can be changed.

[0088] In this way, the sampling region focuses on more important time segments compared to the reference region, so that the generated second hyperstate tensor captures the fluctuations in the relationship between variables as they change over time, thus making the prediction results more accurate.

[0089] Subsequently, the second superstate tensor can be reconstructed to obtain the first superstate tensor.

[0090] Based on the aforementioned superscan module, this application proposes a technical concept for a control strategy of a timing prediction system. This control strategy, tailored to the computational characteristics of different sub-processes within the superscan module, maps them to different levels of storage resources in the hardware architecture, thereby achieving rational allocation of computational resources and improving overall system efficiency.

[0091] Figure 13 This is a schematic diagram of the hardware mapping relationship of the control strategy in a timing prediction system. Figure 13In the superscan module, the process of scanning along the variable dimension to generate the first state tensor, due to its relatively small data volume, can be preferentially allocated to on-chip SRAM for execution. However, the remaining computational processes in the superscan module, such as adjusting along the time dimension to generate the first hyperstate tensor and the subsequent generation of the superscan tensor, typically occupy a larger storage space and can therefore be scheduled to be performed in external video memory (such as HBM).

[0092] By employing the aforementioned control strategy, the memory access characteristics of each subtask in the superscan module can be used to allocate them to different storage media for execution as needed, thereby effectively improving the overall computing efficiency and execution performance of the system.

[0093] In some embodiments, each component of the above-described solution framework can be configured on a cloud computing platform, for example, deployed on at least one instance such as a virtual machine or container, so that the cloud computing platform can provide time series forecasting services. Of course, each component of the above-described solution framework can also be configured on nodes other than the cloud computing platform, for example, deployed in at least one data center or on at least one server, depending on the actual situation, and is not limited here. The cloud computing platform can provide pages related to public cloud services for users to remotely access public cloud services. In this embodiment, users can pre-purchase time series forecasting services on the cloud computing platform. For ease of understanding, the interaction between the user and the cloud computing platform is described below. Figure 14 As shown, the interaction between the user and the cloud computing platform mainly includes: the user logs into the cloud computing platform 600 through a client webpage, selects and purchases a time series forecasting service on the cloud computing platform 600, and after purchase, the user can use the functions provided by the time series forecasting service to predict specified variables on the cloud computing platform 600. The cloud computing platform 600 is primarily used to manage the infrastructure for running the time series forecasting service. For example, the infrastructure for running the time series forecasting service may include multiple data centers located in different regions, each data center including multiple servers. Data centers can provide basic resources for the time series forecasting service, such as computing resources and storage resources. Therefore, when purchasing and using the time series forecasting service, the user mainly pays for the resources used. When using the time series forecasting service, the user can input data through the configuration interface, application programming interface, or user interaction interface provided by the cloud computing platform 600. Then, the cloud computing platform 600 can predict the specified variables according to the user's input. In some embodiments, the various parts of the above-described scheme framework can also be configured on a local server, depending on the actual situation, and are not limited here.

[0094] The following describes the specific implementation process of the above technical concept.

[0095] For example, Figure 15 This diagram illustrates a flowchart of a timing prediction method provided in an embodiment of this application. It is understood that this method can be executed by any device, apparatus, platform, or cluster of devices with computing and processing capabilities. For example, the method can be executed by a timing prediction device, which can be implemented in software and / or hardware, and can be, but is not limited to, configured in an electronic device or server; typically, it can be configured on a server. Figure 15 As shown, the time series prediction method may include the following steps:

[0096] S1501: Obtain the first data, which includes at least a number of time series variables.

[0097] In this embodiment, the first data can be in tensor form, represented as (N, PD) or (N, P × D), where N represents the number of variables, P represents the number of segments obtained by dividing the sequence corresponding to the variables according to a preset length, and D represents the feature dimension of the variables in a specific time period. The first data is obtained from the original input data (hereinafter referred to as input data). As a possible implementation, the first data can be obtained by preprocessing, normalizing, partitioning, and mapping the input data. The first data includes multiple time-series variables, which refer to dynamic sequence variables (hereinafter referred to as "variables") that change over time. In addition, the first data may also include one or more constants that do not change over time. The constants in the first data are also in the same form as the variables, that is, the constants in the first data are in the form of expansion along the time dimension. The variable can be wind speed, temperature, humidity, etc., and the constant can be width, weight, etc. In different application scenarios, the dynamic sequence variables contained in the input data can be single variables or multiple variables. In this regard, those skilled in the art can set the input data according to the actual application scenario based on the above description, and no limitation is made here.

[0098] For example, when the first data is represented as (N, P×D), P×D can be used to characterize the overall feature dimension formed by expanding each variable over time slices. P×D can speed up the calculation of subsequent scans along the variables.

[0099] S1502: Input the first data into the trained prediction neural network to obtain the prediction result. The prediction neural network includes at least one variable time fusion network. Each variable time fusion network includes a first sub-network and a second sub-network. The first sub-network is used to capture the relationship between variables in the first data and adjust the relationship between variables along the time dimension to obtain the hyperscan tensor. The second sub-network is used to obtain the output result based on the hyperscan tensor.

[0100] In this embodiment, the prediction result is the expected outcome based on the first data, and this prediction result is a value whose properties change over time. Of course, the prediction result can vary depending on the actual scenario. For example, in industrial production, the prediction result could be whether equipment will malfunction within a certain period of time; in meteorological forecasting, the prediction result could be a prediction of future weather changes.

[0101] For example, the prediction neural network includes one or more variable-temporal fusion networks. This variable-temporal fusion network is similar to the aforementioned time-variable fusion module 303. The first sub-network includes a superscanning network layer, which captures the relationships between variables in the first data and adjusts these relationships along the time dimension to obtain a superscanning tensor. This superscanning network layer is essentially the same as the aforementioned superscanning module and will not be described further here. The second sub-network includes at least an enhancement feedforward network layer, which is similar to the aforementioned temporal enhancement feedforward unit 303-3 and will not be described further here. Additionally, the first sub-network may include a residual normalization layer, located after the superscanning network layer. The second sub-network may also include a residual normalization layer, located after the enhancement feedforward network layer. These two residual normalization layers are used to alleviate the vanishing gradient phenomenon during neural network training and to improve the stability of the training process.

[0102] Furthermore, the first sub-network can also include linear layers and activation functions. When the first data is input into the first sub-network, it can first undergo linear processing to obtain a linear tensor. This linear tensor is then input into a hyperscan tensor to obtain a hyperscan tensor. Subsequently, based on the hyperscan tensor and the activation tensor, an enhanced feature tensor is obtained, where the activation tensor is based on the first data processed by the linear processing and activation function. This enhanced feature tensor can then be processed by a residual normalization layer before being input into the second sub-network. For example, the hyperscan tensor and the activation tensor can be multiplied to obtain the enhanced feature tensor.

[0103] Furthermore, when processing the first data, the superscan network layer can scan the first data along the variable dimension to capture the relationship between the variables in the first data and obtain the state tensor; based on the importance of different time segments in the state tensor, feature extraction processing is performed on the state tensor along the time dimension to obtain the superstate tensor; based on the first data and the superstate tensor, the superscan tensor is obtained.

[0104] For example, the first data and the hyperstate tensor can be gated multiplied to obtain the hyperscan tensor. This can be achieved by multiplying the gated multiplication matrix in formula (2) with the hyperstate tensor. For the first data, it can first be linearized, and then adjusted along the variable dimension and the time dimension respectively. When scanning along the variable dimension, formula (1) can be used. and Obtain the state tensor.

[0105] However, the state tensor struggles to accurately capture the dependencies between variables, which fluctuate over time as the variables themselves change. Therefore, this method employs a predictive neural network to scan the state tensor along the time dimension, resulting in a hyperstate tensor. During this time-series scan, at least one of deformable convolution, linear mapping, or channel attention mechanisms can be used to scan the state tensor. The goal of this scan is to identify more important time segments from the state tensor and adjust the state tensor based on these more important time segments to reconcile the dependencies between variables.

[0106] For example, feature extraction can be performed on a state tensor to obtain a hyperstate tensor. The feature extraction process can be divided into multiple local feature extraction operations. At any given local feature extraction, a portion (one or more feature values) of the hyperstate tensor can be generated. In any given local feature extraction, a reference region is first determined. This reference region represents the two-dimensional feature extraction window on the state tensor in the current operation, and includes variable and temporal information. Subsequently, based on the state tensor covered by the reference region, an offset in the time dimension is obtained. This offset represents the relative position difference of a time segment in the state tensor relative to a time segment within the reference region in the time dimension. A time segment in the state tensor is more important than a time segment within the reference region. Then, the position of the reference region in the time dimension is adjusted based on the offset to obtain a sampling region. Finally, feature extraction is performed on the state tensor within the sampling region to generate the corresponding portion of the hyperstate tensor.

[0107] Taking deformable convolution as an example, the state tensor can be convolved multiple times to generate a portion of the hyperstate tensor in any given convolution. In the current convolution, a reference region is determined. Based on the state tensor covered by the reference region, an offset in the time dimension is obtained. Subsequently, the position of the reference region in the time dimension is adjusted based on the offset to obtain the adjusted sampling region. Finally, the state tensor in the sampling region is convolved to generate the corresponding portion of the hyperstate tensor. When scanning along the time dimension, the state tensor can be unfolded, making the time dimension independent, thus facilitating adjustment of the time dimension. In other computations within the variable-temporal fusion network, the corresponding tensor can be flattened to obtain a tensor form such as (N, P×D). This can accelerate the computation speed of processes such as variable scanning and other processes. Furthermore, in the enhanced feedforward network layer, it also facilitates the fusion of the time dimension and the feature dimension.

[0108] In this way, by using offsets, higher-importance time segments can be identified during feature extraction, and features can be extracted based on these higher-importance time segments. Therefore, the feature extraction process does not uniformly operate on the state tensor, but rather considers the importance of each time segment. This leads to a preference for selecting elements with a greater impact on the prediction result when extracting features from the state tensor, thus enabling the predictive neural network to make more accurate predictions.

[0109] Furthermore, a bidirectional mechanism can be used during the input of the first data into the super-first sub-network. Specifically, the first data can be divided into two sub-tensors along the channel direction; the two sub-tensors are input into the super-scan network layer with opposite variable directions to obtain two super-scan sub-tensors associated with their respective sub-tensors; and the super-scan tensor is obtained based on the two super-scan sub-tensors associated with their respective sub-tensors.

[0110] S1503: When there are multiple variable time fusion networks, the output result is used as the input of the first sub-network in the variable time fusion network. When there is only one variable time fusion network, the prediction result is obtained based on the output result.

[0111] In this embodiment, the setting of a multi-variable time fusion network can help to repeatedly fuse and adjust the relationship between variables and the dynamic changes in the time dimension, so as to enhance its predictive ability, especially its long-term forecasting ability.

[0112] It is understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. In addition, the various embodiments described above can be combined according to actual conditions, and the combined solutions are still within the protection scope of this application.

[0113] Next, based on the methods in the above embodiments, a timing prediction device provided in this application will be introduced.

[0114] For example, Figure 16 A schematic diagram of the structure of a timing prediction device provided in an embodiment of this application is shown. Figure 16 As shown, the time series prediction device 1600 includes an acquisition module 1601 and a processing module 1602. The acquisition module 1601 is used to acquire first data including at least a plurality of time series variables. The processing module 1602 is used to input the first data into a trained prediction neural network to obtain a prediction result. The prediction neural network includes at least one variable time fusion network. Each variable time fusion network includes a first sub-network and a second sub-network. The first sub-network is used to capture the relationship between variables in the first data and adjust the relationship between variables along the time dimension to obtain a hyperscan tensor. The second sub-network is used to obtain an output result based on the hyperscan tensor. When there are multiple variable time fusion networks, the output result is used as the input of the first sub-network in the variable time fusion network. When there is only one variable time fusion network, the prediction result is obtained based on the output result.

[0115] In one possible implementation, the processing module 1602 is used to scan the first data along the variable dimension to capture the relationship between the variables in the first data and adjust the relationship between the variables along the time dimension to obtain the hyperscan tensor. Based on the importance of different time segments in the state tensor, feature extraction processing is performed on the state tensor along the time dimension to obtain the hyperstate tensor. Based on the first data and the hyperstate tensor, the hyperscan tensor is obtained.

[0116] In one possible implementation, the processing module 1602 is used to perform feature extraction processing on the state tensor along the time dimension based on the importance of different time segments in the state tensor to obtain a hyperstate tensor. During this process, feature extraction processing is performed on the state tensor to generate a portion of the hyperstate tensor in any local feature extraction operation. Specifically, in the current local feature extraction operation, a reference region is determined, which represents a two-dimensional feature extraction window on the state tensor in the current operation. The reference region includes variable information and time information. Based on the state tensor covered by the reference region, an offset in the time dimension is obtained, where the offset represents the relative position difference in the time dimension between a time segment in the state tensor and a time segment in the reference region. The importance of a time segment in the state tensor is higher than that of a time segment in the reference region. The position of the reference region in the time dimension is adjusted based on the offset to obtain a sampling region. Feature extraction is performed on the state tensor in the sampling region to generate the corresponding portion of the hyperstate tensor.

[0117] In one possible implementation, the processing module 1602 is further configured to: divide the first data into two sub-tensors along the channel direction; input the two sub-tensors into the first sub-network in opposite variable directions to obtain two super-scan sub-tensors associated with their respective sub-tensors; and obtain the super-scan tensor based on the two super-scan sub-tensors associated with their respective sub-tensors.

[0118] In one possible implementation, the processing module 1602 is further configured to: reconstruct the state tensor during the feature extraction process along the time dimension, wherein the reconstruction is used to expand the time information in the state tensor into independent dimensions.

[0119] In one possible implementation, the processing module 1602 is further configured to: adjust the relationship between variables along the time dimension using at least one of deformable convolution, linear mapping, or channel attention mechanism.

[0120] In one possible implementation, the processing module 1602 is further configured to include an enhanced feedforward network layer in the second sub-network, the enhanced feedforward network layer being used to integrate the temporal information of the variable sequences in the enhanced feature tensor.

[0121] In some embodiments, Figure 16 Both the acquisition module 1601 and the processing module 1602 shown can be implemented in software or in hardware. For example, the implementation of the acquisition module 1601 will be described below. Similarly, the implementation of the processing module 1602 can refer to the implementation of the acquisition module 1601.

[0122] As an example of a software functional unit, module 1601 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, or a container. Further, the aforementioned computing instance may be one or more. For example, module 1601 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed within the same region or in different regions. Further, the multiple hosts / virtual machines / containers used to run the code may be distributed within the same availability zone (AZ) or in different AZs, each AZ including one or more geographically proximate data centers. Typically, a region may include multiple AZs.

[0123] Similarly, multiple hosts / virtual machines / containers used to run this code can be distributed within the same Virtual Private Cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Communication between two VPCs within the same region, as well as between VPCs in different regions, requires a communication gateway to be set up within each VPC to enable interconnection between VPCs.

[0124] As an example of a hardware functional unit, the acquisition module 1601 may include at least one computing device, such as a server. Alternatively, the acquisition module 1601 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be implemented using a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), generic array logic (GAL), or any combination thereof.

[0125] The multiple computing devices included in the acquisition module 1601 can be distributed in the same region or in different regions. Similarly, the multiple computing devices included in the acquisition module 1601 can be distributed in the same Availability Zone (AZ) or in different AZs. Likewise, the multiple computing devices included in the acquisition module 1601 can be distributed in the same VPC or in multiple VPCs. These multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0126] It should be noted that, in other embodiments, the acquisition module 1601 can be used to execute any step in the timing prediction method described in the above embodiments, and the processing module 1602 can also be used to execute any step in the timing prediction method described in the above embodiments. Furthermore, the steps implemented by the acquisition module 1601 and the processing module 1602 can be specified as needed, and different steps in the timing prediction method described in the above embodiments can be implemented by the acquisition module 1601 and the processing module 1602 respectively. Figure 16 The timing prediction device 700 shown has all the functions.

[0127] This application also provides a computing device 1700. For example... Figure 17 As shown, the computing device 1700 includes a bus 1702, a processor 1704, a memory 1706, and a communication interface 1708. The processor 1704, the memory 1706, and the communication interface 1708 communicate with each other via the bus 1702. The computing device 1700 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in the computing device 1700.

[0128] The 1702 bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 17 The bus 1704 may be represented by a single line, but this does not mean that there is only one bus or one type of bus. The bus 1704 may include a path for transmitting information between various components of the computing device 1700 (e.g., memory 1706, processor 1704, communication interface 1708).

[0129] Processor 1704 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0130] The memory 1706 may include volatile memory, such as random access memory (RAM). The processor 1704 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0131] The memory 1706 stores executable program code, and the processor 1704 executes the executable program code to implement the aforementioned functions. Figure 16 The functions of the acquisition module 1601 and processing module 1602 shown are used to implement the timing prediction method described in the above embodiments. That is, the memory 1706 stores instructions for executing the timing prediction method described in the above embodiments.

[0132] Alternatively, the memory 1706 stores executable code, and the processor 1704 executes the executable code to implement the aforementioned functions respectively. Figure 16 The timing prediction device 700 shown functions to implement the timing prediction method described in the above embodiments. That is, the memory 1706 stores instructions for executing the timing prediction method described in the above embodiments.

[0133] The communication interface 1708 uses transceiver modules, such as, but not limited to, network interface cards and transceivers, to enable communication between the computing device 1700 and other devices or communication networks.

[0134] This application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0135] like Figure 18As shown, the computing device cluster includes at least one computing device 1700. The memory 1706 of one or more computing devices 1700 in the computing device cluster may store the same instructions for executing the timing prediction method described in the above embodiments.

[0136] In some possible implementations, the memory 1706 of one or more computing devices 1700 in the computing device cluster may also store partial instructions for executing the timing prediction method described in the above embodiments. In other words, a combination of one or more computing devices 1700 can jointly execute instructions for executing the timing prediction method described in the above embodiments.

[0137] It should be noted that the memory 1706 in different computing devices 1700 within the computing device cluster can store different instructions, each used to execute the aforementioned instructions. Figure 16 The timing prediction device 700 shown contains some of the functions. That is, the instructions stored in the memory 1706 in the different computing devices 1700 can implement the functions of one or more modules in the acquisition module 1601 and the processing module 1602.

[0138] In some possible implementations, one or more computing devices in a computing device cluster can be connected via a network. This network can be a wide area network (WAN) or a local area network (LAN), etc. Figure 19 One possible implementation is shown. For example... Figure 19 As shown, the two computing devices 1700A and 1700B are connected via a network. Specifically, they are connected to the network through communication interfaces in each computing device. In this possible implementation, the memory 1706 in computing device 1700A stores instructions for executing the functions of the acquisition module 1601. Simultaneously, the memory 1706 in computing device 1700B stores instructions for executing the functions of the processing module 1602.

[0139] It should be understood that Figure 19 The functions of computing device 1700A shown can also be performed by multiple computing devices 1700. Similarly, the functions of computing device 1700B can also be performed by multiple computing devices 1700.

[0140] This application also provides another computing device cluster. The connection relationships between the computing devices in this computing device cluster can be similarly referred to... Figure 18 and Figure 19 The connection method of the computing device cluster is different in that the memory 1706 of one or more computing devices 1700 in the computing device cluster can store the same instructions for executing the methods in the above embodiments.

[0141] In some possible implementations, the memory 1706 of one or more computing devices 1700 in the computing device cluster may also store partial instructions for executing the aforementioned timing prediction method. In other words, a combination of one or more computing devices 1700 can jointly execute the instructions for executing the aforementioned timing prediction method.

[0142] It should be understood that each step of the above method embodiments can be accomplished by hardware logic circuits or software instructions in a processor.

[0143] Based on the methods in the above embodiments, this application provides a computer-readable storage medium including computer program instructions. When executed by a cluster of computing devices including at least one computing device, the computer program instructions cause the cluster of computing devices to perform the methods in the above embodiments. Exemplarily, the computer-readable storage medium can be any available medium that the computing device can store, or a data storage device such as a data center containing one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives).

[0144] Based on the methods in the above embodiments, this application provides a computer program product containing instructions that, when executed by a cluster of computing devices containing at least one computing device, cause the cluster of computing devices to perform the methods in the above embodiments.

[0145] It is understood that the processor in the embodiments of this application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. A general-purpose processor can be a microprocessor or any conventional processor.

[0146] The method steps in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.

[0147] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive (SSD)).

[0148] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of this application.

Claims

1. A time series prediction method, characterized in that, include: Obtain the first data, which includes at least multiple time-series variables; The first data is input into a trained predictive neural network to obtain a prediction result. The predictive neural network includes at least one variable time fusion network. Each variable time fusion network includes a first sub-network and a second sub-network. The first sub-network is used to capture the relationship between variables in the first data and adjust the relationship between variables along the time dimension to obtain a hyperscan tensor. The second sub-network is used to obtain an output result based on the hyperscan tensor. When there are multiple variable-time fusion networks, the output result is used as the input of the first sub-network in the variable-time fusion network. When there is only one variable-time fusion network, the prediction result is obtained based on the output result.

2. The method according to claim 1, characterized in that, The process of capturing the relationships between variables in the first data and adjusting these relationships along the time dimension to obtain a hyperscan tensor includes: The first data is scanned along the variable dimension to capture the relationships between the variables in the first data and obtain the state tensor; Based on the importance of different time segments in the state tensor, feature extraction processing is performed on the state tensor along the time dimension to obtain the hyperstate tensor. Based on the first data and the hyperstate tensor, the hyperscan tensor is obtained.

3. The method according to claim 2, characterized in that, The process of extracting features from the state tensor along the time dimension based on the importance of different time segments in the state tensor to obtain a hyperstate tensor includes: The state tensor is subjected to feature extraction processing so that a portion of the hyperstate tensor is generated in any local feature extraction operation; In the current local feature extraction operation, a reference region is determined. The reference region is used to characterize the two-dimensional feature extraction window on the state tensor in the current operation. The reference region includes variable information and time information. Based on the state tensor covered by the reference region, an offset in the time dimension is obtained, wherein the offset is used to characterize the relative position difference in the time dimension of a time segment in the state tensor relative to a time segment in the reference region, and the importance of a time segment in the state tensor is higher than that of a time segment in the reference region. The position of the reference region in the time dimension is adjusted based on the offset to obtain the sampling region; Feature extraction is performed on the state tensor in the sampling region to generate the corresponding part in the hyperstate tensor.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: The first data is divided into two sub-tensors along the channel direction; The two sub-tensors are input into the first sub-network with opposite variable directions to obtain two hyperscan sub-tensors associated with their respective sub-tensors; The hyperscan tensor is obtained from the two hyperscan subtensors associated with their respective subtensors.

5. The method according to any one of claims 2, characterized in that, The method further includes: During the feature extraction process of the state tensor along the time dimension, the state tensor is reconstructed, wherein the reconstruction is used to expand the time information in the state tensor into an independent dimension.

6. The method according to any one of claims 1, characterized in that, In the process of modulating the relationship between variables along the time dimension, at least one of deformable convolution, linear mapping, or channel attention mechanism is used for modulation.

7. The method according to any one of claims 1-6, characterized in that, The second sub-network includes an enhanced feedforward network layer, which is used to integrate the temporal information of each variable sequence in the enhanced feature tensor.

8. A time series prediction device, characterized in that, include: Acquisition module and processing module The acquisition module is used to acquire first data that includes at least a plurality of time series variables; The processing module is used to input the first data into a trained predictive neural network to obtain a prediction result. The predictive neural network includes at least one variable time fusion network. Each variable time fusion network includes a first sub-network and a second sub-network. The first sub-network is used to capture the relationship between variables in the first data and adjust the relationship between the variables along the time dimension to obtain a hyperscan tensor. The second sub-network is used to obtain an output result based on the hyperscan tensor. When there are multiple variable-time fusion networks, the output result is used as the input of the first sub-network in the variable-time fusion network. When there is only one variable-time fusion network, the prediction result is obtained based on the output result.

9. A computing device cluster, characterized in that, It includes at least one computing device, each computing device including a processor and memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the cluster of computing devices to perform the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The method includes computer program instructions that, when executed by a cluster of computing devices, cause the cluster of computing devices to perform the method as described in any one of claims 1-7, wherein the cluster of computing devices includes at least one computing device.

11. A computer program product containing instructions, characterized in that, When the instruction is executed by the computing device cluster, the computing device cluster causes the computing device cluster to perform the method as described in any one of claims 1-7, wherein the computing device cluster includes at least one computing device.