A method, device and storage medium for industrial time series prediction
By performing overlapping segmentation and multi-dimensional component decoupling on industrial time series data, constructing structured time series tokens and performing global context reasoning, the problems of long-term prediction error accumulation and stability degradation in existing technologies are solved, achieving high-precision and robust prediction.
Patent Information
- Application Number
- CN202611319870.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-24
AI Technical Summary
Existing industrial time series forecasting methods are prone to error accumulation and stability degradation in long-term forecasting tasks, making it difficult to meet the requirements of high accuracy and high robustness.
By sequentially extracting historical multivariate time series data along the time axis and dividing it into overlapping time blocks, performing time series decomposition processing, extracting trend components, structured short-term dynamic components and residual components respectively, constructing structured time series tokens, and using a time series inference model to model long-range dependencies.
It improves the long-term prediction accuracy and robustness of industrial time series in complex industrial scenarios, and generates prediction results with global consistency.
Smart Images

Figure CN123159759A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence data processing, and in particular to a method, apparatus and storage medium for industrial time series forecasting. Background Technology
[0002] In industrial settings such as power systems, manufacturing processes, transportation, and energy infrastructure, massive amounts of industrial time-series data are continuously generated, including monitoring data on temperature, pressure, current, and vibration. This type of data is typically characterized by high dimensionality, strong nonlinearity, significant non-stationarity, and the coexistence of multiple scales and dynamics, which places high demands on the time-series modeling capabilities and generalization stability of prediction models.
[0003] Currently, for long-term forecasting tasks involving industrial time series data, mainstream technologies primarily rely on statistical forecasting methods, traditional deep learning models, and Transformer-based attention mechanisms. Furthermore, to improve the efficiency of long-sequence modeling, some existing technologies employ a block-based processing strategy. This involves dividing the long-term series into multiple shorter time segments, utilizing local encoding to enhance the extraction of patterns within each segment, and then using a sequence network to model long-range dependencies and output prediction results.
[0004] However, current solutions are prone to problems such as prediction error accumulation, sequence jumps, and decreased stability under long prediction step lengths, making it difficult to meet the requirements of high-precision and high-robust prediction. Summary of the Invention
[0005] This application provides a method, apparatus, and storage medium for industrial time series forecasting, which can improve the long-term forecasting accuracy and robustness of industrial time series in complex industrial scenarios.
[0006] Firstly, this application provides an industrial time series forecasting method, which includes: acquiring historical multivariate time series data of an industrial system; the historical multivariate time series data includes measurement data of multiple dimensions corresponding to each sampling time in multiple sampling times. Multiple time blocks are extracted from the historical multivariate time series data; each time block is a data segment extracted sequentially along a time axis, containing multiple consecutive sampling times and their corresponding measurement data; each time block is arranged sequentially along the time axis in the historical multivariate time series data, and the time intervals corresponding to adjacent time blocks partially overlap. For each time block, time series decomposition processing is performed to obtain the trend component, structured short-time dynamic component, and residual component of the time block; the trend component is the low-frequency component of the time block on the time axis; the short-time dynamic component is the principal component component of the remaining signal after removing the low-frequency component from the time block; the residual component is the residual signal remaining after removing the low-frequency component and the principal component component from the time block; wherein, the frequency of the low-frequency component is lower than the frequency of the principal component component, and the amplitude of the residual signal is smaller than the amplitude of the principal component component. For each time block, the trend component, short-term dynamic component, and residual component of that time block are compressed and concatenated to obtain the corresponding structured time-series token. The structured time-series tokens corresponding to each time block are arranged in chronological order to obtain a structured time-series representation sequence. This sequence is then input into a time-series inference model for long-range dependency modeling to obtain contextualized time-series features. The time-series inference model is used to contextually encode all tokens based on the dependencies between them. The contextualized time-series features are the token-level feature sequence output by the time-series inference model, incorporating global contextual information. Based on these contextualized time-series features, prediction results for the industrial system are generated, containing estimates of multi-dimensional measurement data for the industrial system at multiple future time points.
[0007] The industrial time series forecasting method provided in this application extracts historical multivariate time series data sequentially along the time axis and divides it into overlapping time blocks, so that local time series features can retain continuous contextual information. Then, time series decomposition processing is performed on each time block to extract trend components, structured short-term dynamic components and residual components, so that the evolution information at different time scales is explicitly decoupled, reducing the interference caused by the mutual coupling of dynamic factors in non-stationary signals.
[0008] Building upon this foundation, trend, short-term dynamics, and residual components are compressed and concatenated to obtain structured temporal tokens. This transforms the original numerical sequence into a semantic representation suitable for high-level inference, resolving the mismatch between the large model and the original data representation. Simultaneously, the tokens are arranged sequentially to form a structured temporal representation sequence, which is then input into the temporal inference model. This allows the model to contextualize all tokens based on their dependencies, yielding contextualized temporal features. Finally, based on these contextualized temporal features, estimates of measurement data for multiple future timeframes are generated, resulting in stronger global consistency in the prediction results.
[0009] In summary, this invention improves the long-term prediction accuracy and robustness of industrial time series in complex industrial scenarios through the synergistic effects of overlapping block segmentation, multi-dimensional component decoupling, structured token construction, and global context reasoning.
[0010] In one possible implementation, multiple time blocks are extracted from historical multivariate time series data, including: obtaining the time block length and sliding step size; wherein the sliding step size is less than the time block length; using the time block length as the window length and the sliding step size as the sliding stride, the historical multivariate time series data is slidably extracted along the time axis to obtain multiple time blocks; the sampling time intervals corresponding to two adjacent sliding extractions partially overlap.
[0011] In one possible implementation, for each time block, a time series decomposition process is performed to obtain the trend component, structured short-time dynamic component, and residual component of the time block. This includes: filtering the time block using a low-pass smoothing operator to obtain the trend component; constructing a low-dimensional time series subspace representation for the time block after removing the trend component, and mapping it to obtain the structured short-time dynamic component; and obtaining the residual component based on the difference between the time block and the trend component and the structured short-time dynamic component.
[0012] In one possible implementation, for each time block, the trend component, short-term dynamic component, and residual component of that time block are compressed and concatenated to obtain the structured time series token corresponding to that time block. This includes: compressing the trend component, short-term dynamic component, and residual component separately to obtain the component vectors corresponding to each component; concatenating the component vectors to obtain the concatenated vector; and mapping the concatenated vector to the structured time series token.
[0013] In one possible implementation, compression is achieved using pooling operations, which are any one or a combination of average pooling, max pooling, weighted pooling, or attention pooling.
[0014] In one possible implementation, the industrial time series forecasting method further includes: obtaining the prediction error term during the training process of the time series inference model; extracting the overlapping part of adjacent time blocks; constructing a cross-time block consistency constraint term based on the representation difference of the overlapping part; combining the prediction error term with the cross-time block consistency constraint term to construct a joint loss function; and using the joint loss function to optimize the parameters of the time series inference model.
[0015] In one possible implementation, a cross-time-block consistency constraint is constructed based on the differences of each trend component in the overlapping region, including: extracting a subset of trend components in the overlapping region of each adjacent time block; calculating a difference measure between the two trend component subsets, wherein the difference measure adopts any one of L1, L2 or Huber loss; and determining the difference measure as the cross-time-block consistency constraint.
[0016] In one possible implementation, the temporal reasoning model employs one of the following: a large language model (LLM) architecture, a Transformer encoder, a sequence network with attention mechanisms, or a state-space model.
[0017] Secondly, this application provides an industrial time series forecasting device, which includes an acquisition module, a processing module, and a forecasting module. The acquisition module acquires historical multivariate time series data of an industrial system; the historical multivariate time series data includes measurement data of multiple dimensions corresponding to each sampling time in multiple sampling times. The processing module extracts multiple time blocks from the historical multivariate time series data; each time block is a data segment extracted sequentially along a time axis, containing multiple consecutive sampling times and their corresponding measurement data; each time block is arranged sequentially along the time axis in the historical multivariate time series data, and the time intervals corresponding to adjacent time blocks partially overlap; for each time block, time series decomposition processing is performed to obtain the trend component, structured short-time dynamic component, and residual component of the time block; the trend component is the low-frequency component of the time block on the time axis; the short-time dynamic component is the principal component component of the remaining signal after removing the low-frequency component from the time block; the residual component is the residual signal remaining after removing the low-frequency component and the principal component component from the time block; wherein, the low-frequency component... The frequency of the quantity is lower than that of the principal component components, and the amplitude of the residual signal is smaller than that of the principal component components. For each time block, the trend component, short-term dynamic component, and residual component of that time block are compressed and concatenated to obtain the structured time-series tokens corresponding to that time block. The structured time-series tokens corresponding to each time block are arranged in chronological order to obtain a structured time-series representation sequence. The structured time-series representation sequence is input into the time-series inference model for long-range dependency modeling to obtain contextualized time-series features. The time-series inference model is used to perform contextual encoding on all tokens based on the dependencies between the structured time-series tokens. The contextualized time-series features are the token-level feature sequences output by the time-series inference model that incorporate global contextual information. The prediction module is used to generate prediction results for the industrial system based on the contextualized time-series features. The prediction results include estimates of the measurement data of the industrial system in multiple dimensions at multiple future times.
[0018] Thirdly, this application provides an electronic device comprising: a processor and a memory; the memory storing processor-executable instructions; when the processor is configured to execute the instructions, causing the electronic device to implement the method of the first aspect described above.
[0019] Fourthly, this application provides a computer-readable storage medium comprising: computer software instructions; which, when executed in an electronic device, cause the electronic device to implement the method described in the first aspect.
[0020] Fifthly, this application provides a computer program product that, when run on a computer, causes the computer to perform the steps of the relevant method described in the first aspect above, so as to implement the method of the first aspect above.
[0021] The beneficial effects of the second to fifth aspects mentioned above can be referred to the corresponding description of the first aspect, and will not be repeated here. Attached Figure Description
[0022] Figure 1 A schematic diagram of an industrial time series forecasting system provided in this application; Figure 2 A schematic diagram outlining the framework of an industrial time series forecasting method provided in this application; Figure 3 A flowchart illustrating an industrial time series forecasting method provided in this application; Figure 4 A schematic diagram of a time-series decomposition process provided in this application; Figure 5 A flowchart illustrating the construction of a joint function provided in this application; Figure 6 A schematic diagram illustrating the construction of cross-time-block consistency constraints provided in this application; Figure 7 An example diagram of a temporal reasoning model provided in this application; Figure 8 A schematic diagram of an industrial time series prediction device provided in this application; Figure 9 This is a schematic diagram of an electronic device structure provided in this application. Detailed Implementation
[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0024] It should be noted that in the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0025] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.
[0026] As described in the background, existing technical solutions suffer from at least the following drawbacks when dealing with non-stationary long sequences in complex industrial scenarios: Existing block-based strategies typically treat time segments as a whole for direct encoding, lacking explicit separation and structured representation of dynamic features at different time scales within a segment. Specifically, long-term slow trends, short-term structured fluctuations, and random residual perturbations in the original signal are often co-encoded in the same feature representation, making it difficult for the model to effectively distinguish and capture the evolutionary patterns of different frequency components. Because the low-frequency components and principal components within the time block are not decoupled, the model struggles to capture the continuous evolutionary relationships between adjacent time segments, easily leading to prediction error accumulation, sequence jumps, and decreased stability at long prediction step lengths, thus failing to meet the requirements for highly robust prediction.
[0027] The industrial time series forecasting method provided in this application extracts historical multivariate time series data sequentially along the time axis and divides it into overlapping time blocks, so that local time series features can retain continuous contextual information. Then, time series decomposition processing is performed on each time block to extract trend components, structured short-term dynamic components and residual components, so that the evolution information at different time scales is explicitly decoupled, reducing the interference caused by the mutual coupling of dynamic factors in non-stationary signals.
[0028] Building upon this foundation, trend, short-term dynamics, and residual components are compressed and concatenated to obtain structured temporal tokens. This transforms the original numerical sequence into a semantic representation suitable for high-level inference, resolving the mismatch between the large model and the original data representation. Simultaneously, the tokens are arranged sequentially to form a structured temporal representation sequence, which is then input into the temporal inference model. This allows the model to contextualize all tokens based on their dependencies, yielding contextualized temporal features. Finally, based on these contextualized temporal features, estimates of measurement data for multiple future timeframes are generated, resulting in stronger global consistency in the prediction results.
[0029] In summary, this invention improves the long-term prediction accuracy and robustness of industrial time series in complex industrial scenarios through the synergistic effects of overlapping block segmentation, multi-dimensional component decoupling, structured token construction, and global context reasoning.
[0030] The industrial time series forecasting method provided in this application is applied to an industrial time series forecasting system. For example... Figure 1As shown, the industrial time series forecasting system includes a data acquisition device 11, a computing device 12, and a display device 13. The data acquisition device 11 is used in industrial scenarios such as power systems, manufacturing processes, transportation systems, or energy infrastructure. Multiple data acquisition devices may exist within an industrial scenario. These devices continuously collect historical multivariate time series data characterized by high dimensionality, significant non-stationarity, and multi-scale dynamic coexistence. The computing device 12 is communicatively connected to the data acquisition device 11 and is used to execute industrial time series forecasting methods. This involves overlapping and segmenting the acquired historical multivariate time series data, temporal decomposition, and structured token generation, and using a temporal inference model to perform long-range dependency modeling, ultimately generating forecast results for the industrial system at multiple future points in time. The display device 13 (or execution control device) is communicatively connected to the computing device 12 and is used to receive and display the forecast results, or to adjust and optimize the operating status of the industrial system in real time based on the forecast results, thereby addressing the problems of insufficient long-term forecast accuracy and insufficient cross-segment continuity modeling in existing technologies under non-stationary environments.
[0031] Data acquisition device 11 is installed at key monitoring points in industrial sites, such as substations in power systems, production lines in manufacturing processes, or vehicles / tracks in transportation systems, to acquire multi-dimensional measurement data in real time, including temperature, pressure, current, voltage, vibration, flow rate, speed, or load. In some embodiments, data acquisition device 11 and computing device 12 are connected via a wired communication interface or a wireless communication network. The wired communication interface is, for example, an industrial fieldbus, an Ethernet interface, or a serial communication interface, used to transmit high-frequency, high-volume monitoring signals. The wireless communication network is, for example, a 5G industrial private network, Wi-Fi 6, or an industrial wireless network, suitable for distributed monitoring scenarios. Computing device 12 can be deployed in a high-performance server cluster in a central control room, or it can be deployed as an edge computing node in an industrial field control cabinet close to the sensors to reduce data transmission latency. In one deployment method, computing device 12, data acquisition device 11, and display device 13 are integrated into the same smart terminal. In another deployment method, data acquisition device 11 connects to a local edge node for preliminary preprocessing, and the edge node sends the structured time-series representation sequence to computing device 12 deployed in the cloud for long-range inference modeling via a network.
[0032] The data acquisition device 11 includes a high-precision sensor array and signal conditioning and acquisition circuitry. The sensor array contains multiple different types of sensors used to acquire physical quantities in different dimensions of the industrial system, such as thermocouples or resistance temperature detectors (RTDs) for temperature monitoring, pressure transmitters for pressure monitoring, current transformers or Hall effect sensors for current and voltage monitoring, and accelerometers for vibration and velocity monitoring. To cope with non-stationary environments and frequent operating condition changes, the sensor array and acquisition circuitry can be configured with high sampling rates and strong anti-interference capabilities to ensure accurate capture of rapidly changing operating condition signals. The signal conditioning and acquisition circuitry amplifies, filters, isolates, and performs analog-to-digital conversion on the analog signals output by the sensors, converting them into historical multivariate time-series data in digital format and adding precise timestamps. The data acquisition device 11 transmits the historical multivariate time-series data to the computing device 12 in real-time or periodically via a communication interface, providing the raw data foundation for subsequent time block extraction and component decomposition.
[0033] The computing device 12 includes a processor, memory, a communication interface, and an input / output interface. The processor is electrically connected to the memory and is used to load and execute program instructions stored in the memory to perform various steps in the industrial time series forecasting method. Specifically, the processor acquires historical multivariate time series data from the data acquisition device 11, and uses a sliding window mechanism to extract multiple time blocks arranged sequentially along the time axis with partial overlap between adjacent time blocks. For each time block, a time series decomposition process is performed, using a low-pass smoothing operator to extract trend components, constructing a low-dimensional time series subspace mapping to obtain structured short-term dynamic components, and calculating residual components. Each component is compressed (e.g., through average pooling, max pooling, or attention pooling) and concatenated to generate a structured time series token in a unified format. The structured time series tokens corresponding to each time block are arranged in chronological order and input into a time series inference model for long-range dependency modeling to obtain contextualized time series features. Based on the contextualized time series features, a prediction result containing estimates of measurement data from multiple dimensions at multiple future times is generated. Furthermore, the processor is also used during the model training phase to extract the overlapping portions of adjacent time blocks, calculate the difference measure between subsets of trend components, construct cross-time block consistency constraints, and combine them with the prediction error term to construct a joint loss function to optimize the parameters of the time series inference model. The memory is used to store historical multivariate time series data, decomposed components of each time block, structured time series token sequences, model parameters, and training logs. The processor is, for example, a central processing unit, a graphics processing unit, a tensor processing unit, or a field-programmable gate array. In some embodiments, when the time series inference model employs a large language model architecture or a Transformer encoder, the computing device 12 is also equipped with a dedicated artificial intelligence (AI) accelerator card to support efficient inference.
[0034] Display device 13 includes a high-resolution display screen and a visual interactive interface, used to receive prediction results sent by computing device 12 and present the prediction results to operators in the form of multivariate trend curves, operating condition heat maps, or error distribution maps to assist them in fault warning and operation and maintenance decisions. Execution control equipment includes industrial controllers and actuators (such as valves, motors, transformer taps, air conditioning units, etc.), used to receive prediction results sent by computing device 12 and automatically adjust the operating parameters of the industrial system according to preset control strategies or optimization algorithms. For example, in a power system, when the prediction result shows that the load will exceed a threshold at a certain future time, the execution control equipment can automatically dispatch the energy storage system or adjust the generator output. In the manufacturing process, when an abnormal vibration trend of the equipment is predicted, the execution control equipment can trigger a shutdown maintenance command or adjust processing parameters. Both display device 13 and execution control equipment are connected to computing device 12 through a communication interface to achieve closed-loop interaction between prediction information and the industrial control loop.
[0035] During system operation, data acquisition device 11 collects multivariate time-series data from the industrial site in real time. After signal conditioning and acquisition circuitry, the data is converted into historical multivariate time-series data and transmitted to computing device 12. Computing device 12 uses a sliding window mechanism to extract multiple time blocks with overlapping regions from the data. For each time block, it explicitly separates the trend component, structured short-term dynamic component, and residual component, and compresses and concatenates these components into structured time-series tokens. Computing device 12 inputs the structured time-series token sequence into a time-series inference model, uses the model to context-encode the dependencies between tokens, and combines this with cross-time-block consistency constraints to generate high-precision and robust multi-moment-time prediction results for the industrial system. Finally, computing device 12 sends the prediction results to display device 13 for visualization or to execution control equipment to automatically adjust the operating parameters of the industrial system, thereby achieving accurate prediction and intelligent management of long-term multivariate time series in complex industrial scenarios such as power, manufacturing, transportation, and energy.
[0036] It should be noted that the system architecture and application scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0037] Figure 2 This is a schematic diagram outlining the framework of an industrial time series forecasting method provided in an embodiment of this application. Figure 2As shown, the industrial historical multivariate time series X is first input into a computing device, which then divides it into time blocks. Subsequently, block-level temporal decomposition is performed on each time block to extract trend components, structured short-term dynamic components, and residual components. These decomposed components are then constructed into a structured temporal token sequence, which is input into a temporal inference engine based on a large language model for long-range dependency modeling. Finally, after attention readout and predictive projection, multi-step prediction results are output.
[0038] Figure 3 This is a flowchart illustrating an industrial time series forecasting method provided in an embodiment of this application. Figure 3 As shown, the industrial time series forecasting method provided in this application can be implemented using the data acquisition device, computing device, and display device in the aforementioned industrial time series forecasting system, and specifically includes the following steps: S301. Obtain historical multivariate time series data of the industrial system.
[0039] The historical multivariate time series data includes measurement data in multiple dimensions corresponding to each sampling time in multiple sampling times.
[0040] It should be understood that historical multivariate time series data refers to a time series set containing multiple physical quantity dimensions that reflects the changing operating status of an industrial system over time, where each sampling moment corresponds to a set of multidimensional measurement data. This step is performed by data acquisition equipment, which can acquire historical multivariate time series data in two ways: one is to acquire it directly from field sensors in the industrial system through the data acquisition equipment, and the other is to have the data acquisition equipment directly read the records of the industrial system from a database.
[0041] In one possible implementation, after acquiring historical multivariate time series data, the data acquisition device can form a data matrix to be input. This data matrix is a representation of the historical multivariate time series data. Each row or column of the matrix can correspond to a sampling time, and each row or column can correspond to an industrial measurement variable.
[0042] For example, a data acquisition device obtains multivariate measurements from an industrial system at multiple consecutive sampling times, forming an input sequence: X∈R^(T×D), where T represents the number of historical sampling times, reflecting the length of historical observations used for prediction. D represents the number of variable dimensions, reflecting the number of industrial measurement variables included at the same sampling time. Each row of matrix X corresponds to a sampling time, and each data point in each row can correspond to an industrial measurement variable. For example, industrial measurement variables can be temperature, pressure, voltage, current, vibration, flow rate, rotational speed, load, and other industrial sensor quantities. In other words, each row of matrix X represents the industrial measurement variable corresponding to a certain sampling time. Each column of matrix X corresponds to an industrial measurement variable, and each column shows the changes of a single industrial measurement variable at different sampling times.
[0043] Through the above steps, the computing device can acquire processed historical multivariate time series data of the industrial system, providing data support for subsequent steps.
[0044] S302. Extract multiple time blocks from historical multivariate time series data.
[0045] A time block is a data segment extracted sequentially along the time axis, containing multiple consecutive sampling times and their corresponding measurement data. Each time block is arranged sequentially along the time axis in the historical multivariate time series data, and the time intervals corresponding to adjacent time blocks partially overlap.
[0046] It should be understood that a time block refers to a continuous data segment extracted along the time axis from historical multivariate time series data, containing multiple consecutive sampling times and corresponding measurement data. Time blocks can contain varying numbers of sampling times in different industrial time series forecasting scenarios. The computing device may include overlapping portions within adjacent time blocks; that is, the boundary portions of time blocks may contain the same sampling times, thus obtaining overlapping time blocks. After receiving historical multivariate time series data, the computing device sequentially generates multiple time blocks along the time axis according to a preset time window length and sliding step size.
[0047] In one feasible implementation, multiple time blocks are extracted from historical multivariate time series data, including: Step a1: Obtain the time block length and sliding step size.
[0048] The sliding step size is less than the time block length.
[0049] The computing device acquires the length of the time block and the sliding step size, which can be preset values by the operator before performing this step. The sliding step size must be less than the time block length; only when the sliding step size is less than the time block length can overlapping sampling times be generated in two adjacent time blocks.
[0050] Step a2: Using the time block length as the window length and the sliding step size as the sliding stride, slide and truncate the historical multivariate time series data along the time axis to obtain multiple time blocks.
[0051] Among them, the sampling time intervals corresponding to two adjacent sliding cuts partially overlap.
[0052] The computing device uses the time block length as the window length and the sliding step size as the sliding stride. Each time the device slides along the time axis for one sliding step, a time block can be extracted based on the window length. By sliding and extracting historical multivariate time series data along the time axis, multiple time blocks can be obtained. Since the sliding step size in step a1 is less than the time block length, the sampling time intervals of two adjacent time blocks partially overlap.
[0053] For example, when determining the sliding step size and time block length, we can set the time block length as P and the sliding step size as S, and divide the input sequence into N overlapping time blocks. The calculation formula N = ... (TP) / S +1, where T represents the number of historical sampling times, P represents the number of consecutive sampling points contained in a single time block (i.e., the aforementioned time block length), and S represents the starting sliding interval (i.e., sliding step size) between adjacent time blocks.
[0054] For example, time blocks can also be represented using the following formula. ,in, Let (i-1)S+1:(i-1)S+P represent the sampling time from (i-1)S+1 to (i-1)S+P.
[0055] The above steps extract multiple time blocks from historical multivariate time series data by determining the sliding step size and time block length. This enhances the ability to extract local change patterns while preserving local time context information, providing a more refined time series representation basis for subsequent long-term forecasting.
[0056] This embodiment employs an overlapping time block truncation strategy with a sliding step size smaller than the time block length to generate multiple time blocks. Because there is partial overlap between adjacent time blocks, the original industrial time series retains continuous temporal information when divided into time blocks, thus solving the feature loss problem caused by fragmentation in non-stationary environments. In this way, this embodiment improves the extraction accuracy of local temporal features while maintaining the overall temporal order.
[0057] S303. For each time block, perform time series decomposition processing to obtain the trend component, structured short-term dynamic component, and residual component of the time block.
[0058] The trend component is the low-frequency component of the time block on the time axis; the short-time dynamic component is the principal component component in the remaining signal after removing the low-frequency component in the time block; the residual component is the residual signal remaining after removing the low-frequency component and the principal component component in the time block; the frequency of the low-frequency component is lower than the frequency of the principal component component, and the amplitude of the residual signal is smaller than the amplitude of the principal component component. It should be understood that the trend component refers to the low-frequency component exhibited by the time block on the time axis, reflecting the long-term changing trend of the industrial system's operating state, and is used to characterize the slowly changing long-term evolution information within that time block. The structured short-time dynamic component refers to the principal component components in the remaining signal after removing the trend component from the time block, representing the system's main periodic or volatile characteristics, and is used to characterize local fluctuations, periodic ups and downs, or short-term patterns within that time block. The residual component refers to the residual signal remaining after removing the trend component and the structured short-time dynamic component from the time block, typically containing random noise or unmodeled small fluctuations, and is used to characterize random disturbances, transient changes, local anomalies, or residual information that the aforementioned two types of components fail to explain.
[0059] The computing device performs time-series decomposition processing on each time block, which can separate the trend component, structured short-term dynamic component and residual component corresponding to each time block.
[0060] For example, for any time block Decompose it into trend components Structured short-time dynamic components and residual components , can be represented as: .
[0061] For example, for wind turbine vibration data, the trend component may reflect a slow rise in the vibration baseline caused by bearing wear, the structured short-time dynamic component reflects periodic vibration caused by changes in wind turbine speed, and the residual component includes random shocks or environmental noise.
[0062] In one feasible implementation, for each time block, a time-series decomposition process is performed to obtain the trend component, structured short-term dynamic component, and residual component of the time block, including: Step b1: Use a low-pass smoothing operator to filter the time block to obtain the trend component.
[0063] It should be understood that a low-pass smoothing operator is a mathematical filtering tool used to extract low-frequency components of a signal and filter out high-frequency noise. After acquiring a time block, the computing device first loads a preset low-pass smoothing operator and performs filtering operations on the multivariate measurement data sequence within that time block.
[0064] As one possible implementation, the trend component is extracted using a learnable low-pass timing operator, and the trend component can be determined by the following formula:
[0065] in, This is a low-pass smoothing kernel matrix used to perform smoothing operations along the time dimension. These are smoothing control parameters used to control the degree of decay between different time positions. It is a learnable diagonal modulation matrix used to adjust the weights of different variables in the trend extraction process.
[0066] As one possible implementation, a low-pass smoothing kernel matrix It can be done through the formula:
[0067] The calculation yielded, where This is the time position index within the time block. For smooth control parameters. For example, by setting... By adjusting the parameters and bandwidth of the smoothing kernel, the computing device can suppress high-frequency fluctuations and local noise, highlighting the slow-changing trends in industrial processes. This step achieves adaptive smoothing filtering through learnable matrix operations, accurately extracting trend components that characterize long-term evolution information.
[0068] For example, for temperature data acquired at a frequency of 1 Hz, the low-pass smoothing operator can be set as a filter with a cutoff frequency of 0.01 Hz, thereby filtering out instantaneous fluctuations at the second level and retaining temperature change trends at the minute or hour level.
[0069] As another possible implementation, the computing device uses a moving average filter as a low-pass smoothing operator. By setting a specific window length, the moving average is calculated to smooth random fluctuations in the signal and retain long-term trends. The cutoff frequency of the low-pass smoothing operator can be set to be lower than the frequency of the principal component to ensure that only trend information representing the macroscopic operating state of the system is extracted.
[0070] For example, for temperature data acquired at a frequency of 1 Hz, the low-pass smoothing operator can be set as a filter with a cutoff frequency of 0.01 Hz, thereby filtering out instantaneous fluctuations at the second level and retaining temperature change trends at the minute or hour level.
[0071] This step, through low-pass filtering, can suppress high-frequency fluctuations and local noise in the original time block, highlighting the slow-changing trends in the industrial process. This allows for the extraction of trend components that characterize long-term evolution information, providing time blocks with trend components removed for the subsequent construction of low-dimensional temporal subspace representations, and also providing basic data for the calculation of residual components in each subsequent time block.
[0072] Step b2: For the time blocks after removing trend components, construct a low-dimensional temporal subspace representation and map it to obtain structured short-time dynamic components.
[0073] It should be understood that a time block after removing the trend component refers to the set of signals remaining after subtracting the trend component from the time block signal, which contains local fluctuation information. Low-dimensional time series subspace representation refers to the mathematical representation formed by mapping high-dimensional time series data to a low-dimensional feature space. After acquiring the signal after removing the trend component, the computing device performs the operation of constructing a low-dimensional time series subspace representation to map and obtain structured short-term dynamic components.
[0074] As one possible implementation, the structured short-time dynamic components can be determined by the following formula:
[0075] in, The above structured short-time dynamic components are represented by a learnable time basis matrix, which is used to represent the basis structure of the short-time dynamics. The coefficient matrix obtained through nonlinear transformation can be specifically implemented using the following formula:
[0076] in, For the linear mapping parameter matrix, For bias terms, It is a non-linear activation function. This indicates a vectorization operation. Specifically, the computing device first performs a vectorization operation on the time block after removing the trend component to obtain... Then input the linear mapping parameter matrix. and bias terms And through a nonlinear activation function Processed Ultimately passed and The product of .
[0077] For example, for a fluctuating signal containing three dimensions of pressure, flow rate, and temperature, by constructing a mapping from three dimensions to a low-dimensional subspace, the signal can be compressed into a one-dimensional or two-dimensional principal component sequence, which can reflect the main fluctuation patterns of equipment operation.
[0078] This step, by constructing a low-dimensional temporal subspace representation, can remove noise interference from time blocks and extract the core dynamic features of time blocks, compressing complex mixed changes within data blocks into a short-term dynamic representation that is easier to model.
[0079] Step b3: Obtain the residual components based on the differences between the time block, the trend component, and the structured short-term dynamic component.
[0080] It should be understood that the residual component refers to the residual signal remaining after removing the trend component and the structured short-time dynamic component from the time block. The computing device performs interpolation calculations to obtain the residual component after separately acquiring the trend component and the structured short-time dynamic component.
[0081] As one possible implementation, the residual components can be determined using the following formula:
[0082] This residual component is used to preserve anomalous fluctuations, transient changes, irregular disturbances, or other difficult-to-interpret information beyond trends and short-term dynamics, thereby enhancing the model's adaptability to complex industrial conditions.
[0083] This application employs a time-division decomposition method combining low-pass smoothing operators, low-dimensional subspace mapping, and difference calculation, which offers the following advantages: This application utilizes learnable low-pass smoothing operators to effectively filter out high-frequency noise and extract slowly varying trends. By constructing a low-dimensional time-series subspace, the remaining mixed signal is mapped into structured short-time dynamic components with clear physical meaning, thereby achieving explicit separation of three different mechanisms: trend evolution, periodic fluctuations, and random disturbances. Through this method, this application reduces the mutual coupling interference of multi-scale dynamic factors in the original non-stationary signal, improving the accuracy and robustness of long-term prediction under complex conditions.
[0084] Figure 4 This is a schematic diagram of a timing decomposition process provided in an embodiment of this application, such as... Figure 4 As shown, for a time block, the computing device can use a low-pass timing operator. The time block is filtered to obtain the trend component. Specifically, it can be implemented as follows: The computing device can construct a low-dimensional temporal subspace representation using a learnable basis matrix U, thereby obtaining structured short-time dynamic components. Specifically, it can be implemented as follows: The computing device can calculate the residual components through differential residuals. Specifically, it can be implemented as follows: .
[0085] S304. For each time block, compress and concatenate the trend component, short-term dynamic component, and residual component of the time block to obtain the structured time series token corresponding to the time block.
[0086] Structured time-series tokens are unified feature vectors formed by compressing and encoding the trend component, structured short-time dynamic component, and residual component after decomposing a time block. The computing device performs compression operations on the trend component, structured short-time dynamic component, and residual component for each time block separately, and then concatenates the compressed results in sequence.
[0087] This step integrates the decomposed multi-component information into a single token structure, which preserves the fine-grained features of the signal and reduces the input complexity of subsequent temporal reasoning models, providing an efficient data representation for global context modeling.
[0088] In one feasible implementation, for each time block, the trend component, short-term dynamic component, and residual component of that time block are compressed and concatenated to obtain the structured time series token corresponding to that time block, including: Step c1: Compress the trend component, short-term dynamic component, and residual component respectively to obtain the component vector corresponding to each component.
[0089] A component vector is a low-dimensional numerical vector that, after compression, can compactly represent trend components, short-term dynamic components, or residual characteristics. After acquiring the three components from the time block decomposition, the computing device performs compression operations to obtain the component vector corresponding to each component.
[0090] In one possible implementation, the computing device uses pooling operations to achieve compression, obtaining component vectors corresponding to the above components, wherein the pooling operation is used to compress each component into a compact vector representation.
[0091] Furthermore, compression is achieved using pooling operations, which can be any one or a combination of average pooling, max pooling, weighted pooling, or attention pooling. It should be understood that pooling operations can employ average pooling, which extracts globally smooth features by calculating the arithmetic mean of all time steps in the component sequence; max pooling, which captures significant peak features by extracting the maximum value in the component sequence; weighted pooling, which uses preset or learned weight coefficients to weight and sum the importance of different time steps; or attention pooling, which uses an attention mechanism to dynamically learn the weight distribution of each time step to focus on key information.
[0092] For example, for the trend component, the computing device can apply an average pooling operation to eliminate local small fluctuations and obtain a component vector representing the overall trend direction; for the residual component, a max pooling operation can be applied to preserve transient anomalies.
[0093] This step compresses time-series signals of different frequencies and characteristics separately, transforming them into fixed-dimensional vector representations to obtain component vectors, which provide data support for subsequent vector concatenation.
[0094] Step c2: Concatenate the component vectors to obtain the concatenated vector.
[0095] A concatenated vector is a combined vector formed by concatenating the component vectors corresponding to the trend component, the short-term dynamic component, and the residual component along the feature dimension. The computing device constructs the concatenated vector by performing a concatenation operation after obtaining the three types of component vectors.
[0096] In one possible implementation, the concatenation vector can be determined by the following formula:
[0097] in, This refers to the pooling compression operation corresponding to step 1 above. There are three components, vectors This indicates a splicing operation. This represents the concatenated vector corresponding to the i-th time block. The concatenation operation can be performed in a fixed order: first trend, then short-term dynamics, and finally residuals, ensuring that the semantic positions of each component in the concatenated vector are fixed and distinguishable.
[0098] This step involves concatenating the trend component, short-term dynamic component, and residual component of each time block through pooling operations, thereby integrating the three separate representations into a block-level representation.
[0099] Step c3: Map the concatenated vector to a structured time token.
[0100] Structured time tokens are feature units obtained by mapping concatenated vectors and used for high-level temporal modeling and long-range inference. After obtaining the concatenated vectors, the computing device performs a mapping operation to generate structured time tokens.
[0101] In one possible implementation, the computing device uses fully connected projection to map the concatenated vector to a predefined token dimension through linear transformation, or convolutional projection to extract the feature interaction relationships within the concatenated vector using convolutional kernels, or gated projection to introduce a gating mechanism to dynamically control the flow of feature information, or linear mapping to directly transform the vector dimension through a weight matrix.
[0102] For example, if the concatenated vector is The computing device inputs it into the fully connected layer and outputs a token. , That is, the structured time sequence token corresponding to the i-th time block.
[0103] This step transforms the original numerical industrial time series into a structured representation that is more suitable for high-level time series modeling and long-range inference, enabling multiple structured time series tokens to form a sequence for subsequent models to perform long-range dependency analysis.
[0104] After segmenting and decomposing the industrial time series, this embodiment of the application performs a structured token construction process on the extracted trend component, short-term dynamic component, and residual component vectors, respectively, involving compression, concatenation, and mapping. By independently compressing each component and retaining its independent vector representation, and then performing a concatenation operation, the final mapping is done to a structured time series token, ensuring that the original industrial time series can fully retain the independent information of each component when converted to a high-level representation.
[0105] S305. Arrange the structured time tokens corresponding to each time block according to the order of each time block to obtain the structured time representation sequence.
[0106] A structured time-series representation sequence is a sequence of structured time-series tokens arranged according to the chronological order of time blocks in the original data. After generating the structured time-series tokens corresponding to each time block, the computing device arranges the tokens sequentially to form a sequence based on the timestamp order or index order of the time blocks.
[0107] In one possible implementation, the computing device uses the structured time-series token generated in the first time block as the starting element of the sequence, and then concatenates the tokens generated in subsequent time blocks in sequence to maintain the relative temporal relationship of the time blocks.
[0108] For example, if there are N time blocks, the structured time sequence token corresponds to... The generated structured time-series representation sequence contains N structured time-series tokens, from which the formula for the structured time-series representation sequence can be derived:
[0109] in, Indicates the first The structured time-series tokens corresponding to each time block.
[0110] This step arranges the structured tokens into a sequence, enabling the subsequent temporal reasoning model to capture long-range dependencies between tokens based on the sequence order, providing ordered input for global context encoding.
[0111] S306. Input the structured temporal representation sequence into the temporal inference model to perform long-range dependency modeling and obtain contextualized temporal features.
[0112] Among them, the temporal reasoning model is used to perform contextual encoding on all tokens based on the dependencies between each structured temporal token; the contextualized temporal features are token-level feature sequences output by the temporal reasoning model that incorporate global contextual information.
[0113] A temporal reasoning model is a neural network model used to contextually encode all tokens based on the dependencies between structured temporal tokens, capturing long-range dependency information in the sequence. Contextualized temporal features are token-level feature sequences output by the temporal reasoning model that incorporate global contextual information. Each feature vector corresponds to a structured temporal token and contains global association information between that token and other tokens in the sequence. The computing device inputs the structured temporal representation sequence into the temporal reasoning model and performs forward propagation computation.
[0114] In one possible implementation, the computing device adds the structured token sequence to the positional encoding and then inputs it into the temporal inference network:
[0115] in, It is a positional encoding used to characterize the sequential relationship of each time block in the overall sequence. Representing a temporal reasoning network, This is a contextualized temporal representation.
[0116] For example, for a structured temporal representation sequence containing 10 time blocks, the contextualized temporal features output by the temporal inference model contain not only the original information of the i-th time block, but also the contextual information of the other 9 time blocks.
[0117] This step, through long-range dependency modeling, enables the model to understand the global evolution of the industrial system's operating state, thereby improving the accuracy of measurement data in predicting future moments.
[0118] S307. Based on contextualized temporal features, generate prediction results for the industrial system.
[0119] The prediction results include estimates of measurement data from multiple dimensions of the industrial system at multiple future points in time.
[0120] The prediction result refers to a sequence of estimated values of multi-dimensional measurement data of an industrial system at multiple future time points, generated based on contextualized temporal features. The computing device receives the contextualized temporal features output by the temporal inference model, generates the prediction result through prediction projection, and displays the prediction result through a display device.
[0121] In one possible implementation, the computing device performs attention readout of contextualized temporal features and global semantic vectors. It can be determined using the following formula:
[0122] in, For global semantic vectors, Indicates the first The contextualized representation of a structured time-series token This indicates the importance weight of the representation to the current prediction task. The value can be determined using the following formula:
[0123] in, For learnable parameter vectors, This is the expected computational operation. After obtaining the global semantic vector, the computing device predicts the future output of the projection layer. The multivariate prediction results at each time point can be determined using the following formula:
[0124] in, Indicates the prediction result. and These are the output layer parameters.
[0125] For example, if the flow and pressure are predicted for the next 10 minutes, the prediction results include flow and pressure estimates for the next 10 sampling times.
[0126] This step transforms features that integrate global context information into specific numerical predictions. The prediction results can be used in technical scenarios such as industrial equipment status early warning, energy load prediction, traffic flow prediction, fault precursor identification, and operation and maintenance scheduling assistance.
[0127] The industrial time series forecasting method provided in this application extracts historical multivariate time series data sequentially along the time axis and divides it into overlapping time blocks, so that local time series features can retain continuous contextual information. Then, time series decomposition processing is performed on each time block to extract trend components, structured short-term dynamic components and residual components, so that the evolution information at different time scales is explicitly decoupled, reducing the interference caused by the mutual coupling of dynamic factors in non-stationary signals.
[0128] Building upon this foundation, trend, short-term dynamics, and residual components are compressed and concatenated to obtain structured temporal tokens. This transforms the original numerical sequence into a semantic representation suitable for high-level inference, resolving the mismatch between the large model and the original data representation. Simultaneously, the tokens are arranged sequentially to form a structured temporal representation sequence, which is then input into the temporal inference model. This allows the model to contextualize all tokens based on their dependencies, yielding contextualized temporal features. Finally, based on these contextualized temporal features, estimates of measurement data for multiple future timeframes are generated, resulting in stronger global consistency in the prediction results.
[0129] In summary, this invention improves the long-term prediction accuracy and robustness of industrial time series in complex industrial scenarios through the synergistic effects of overlapping block segmentation, multi-dimensional component decoupling, structured token construction, and global context reasoning.
[0130] In some embodiments, in time series prediction based on a block-based mechanism, if adjacent time blocks are processed independently without correlation constraints, abrupt changes or inconsistencies in feature representations within overlapping regions can easily occur. When predicting results, directly outputting predictions from an untrained time series inference model without model training may lead to low prediction accuracy over the long term. Therefore, as a feasible implementation method, Figure 5 This is a flowchart illustrating the construction of a union function, as provided in an embodiment of this application. Figure 5 The specific implementation steps of this method are shown below: S501. Obtain the prediction error term during the training process of the time-series inference model.
[0131] The prediction error term refers to the numerical deviation between the predicted result output by the time-series inference model and the actual future observations of the industrial system. During the training phase of the time-series inference model's iterative optimization, the computing device predicts the measurement data of the industrial system at multiple future times and dimensions based on the model parameters at the current moment. The predicted estimates are then compared with the corresponding actual measurements in the historical multivariate time series data, and the difference between the two is calculated to generate the prediction error term.
[0132] In one possible implementation, the computing device can use the mean absolute error function to calculate the prediction error term, which is obtained by accumulating and averaging the absolute differences between the prediction results and the actual measured values.
[0133] The prediction error term can reflect the accuracy of the current time series inference model parameters on the prediction task, and provide basic data support for the subsequent construction of the joint loss function.
[0134] S502. Extract the overlapping portion of adjacent time blocks.
[0135] Adjacent time blocks refer to two time blocks arranged sequentially along the time axis in historical multivariate time series data, whose corresponding time intervals partially overlap. The overlapping portion refers to the data segment within the time interval jointly covered by the two adjacent time blocks on the time axis. During the training of the time series inference model, the computing device traverses all adjacent time block pairs, and based on the sliding step size and segment time length set when dividing the time blocks, locates and extracts the portion with the same time index between the two adjacent time blocks, thus obtaining the overlapping portion.
[0136] For example, if the two adjacent time blocks are the first time block and the second time block respectively, and the second time block has slid backward by a preset sliding step relative to the first time block, the computing device extracts the data in the time interval that coincides with the head of the second time block at the tail of the first time block as the specific content of the overlapping part.
[0137] The overlapping portion is the time series information shared between adjacent time blocks, which can provide data objects for subsequent extraction of trend components from the overlapping portion.
[0138] S503. Based on the differences of each trend component in the overlapping part, construct a consistency constraint term across time blocks.
[0139] The difference refers to the numerical difference between the feature vectors obtained after feature extraction or encoding of the corresponding overlapping parts in two adjacent time blocks. The cross-time block consistency constraint term is a penalty term used to quantify and constrain the consistency of feature expression in the overlapping area of adjacent time blocks.
[0140] After acquiring the overlapping portion, the computing device extracts the trend components of the corresponding overlapping portions in two adjacent time blocks, calculates the distance or difference between these two trend components, and constructs a cross-time block consistency constraint based on this difference.
[0141] It should be understood that the cross-temporal block consistency constraint is a local smoothing regularization term explicitly introduced into the global loss function. This term drives the encoding modules on both sides to produce more consistent mapping outputs for the same temporal physical segment during the mapping process, suppressing abrupt changes in boundary representations that may be induced by independent block computation. The computing device derives the consistency constraint term based on the differences in trend components in the overlapping regions and the calculation formula.
[0142] In one feasible implementation, based on the differences of each trend component in the overlapping region, a cross-time-block consistency constraint is constructed, including: Step d1: Extract the trend component subsets of adjacent time blocks in the overlapping region.
[0143] The subset of trend components in the overlapping region of adjacent time blocks refers to the data segment corresponding to the portion of the time interval that overlaps with the adjacent time blocks on the time axis, extracted from the trend components of adjacent time blocks according to the steps described above. In constructing cross-time block consistency constraints, the computing device first locates the overlapping interval of two adjacent time blocks on the time axis, and then extracts the data segments located within this overlapping interval from the complete trend component sequences corresponding to these two time blocks, thereby obtaining the subset of trend components in the overlapping region of each adjacent time block.
[0144] Step d2: Calculate the difference measure between the two trend component subsets. The difference measure can be any one of the L1 norm, L2 norm, or Huber loss.
[0145] A difference measure is a mathematical quantity that indicates the degree of deviation between two trend component subsets in terms of numerical magnitude or distribution pattern. The L1 norm, L2 norm, and Huber loss are three specific mathematical functions that measure this deviation. After obtaining two trend component subsets, the computing device calculates the sum of absolute values, the sum of squares, or the Huber function value of the differences between the two trend component subsets to obtain the difference measure.
[0146] The calculation of the difference metric aims to transform the continuous difference between two subsets of trend components into a scalar value. This value can intuitively reflect whether the trend expression of adjacent time blocks is consistent in the overlapping area, providing a direct quantitative basis for constructing the penalty term.
[0147] Step d3: Determine the difference metric as a consistency constraint across time blocks.
[0148] Cross-time-block consistency constraints are loss terms used to penalize inconsistencies in trend representation between adjacent time blocks during model training. After calculating the difference metric, the computing device either directly uses the difference metric as the value of the cross-time-block consistency constraint, or multiplies the difference metric by a preset weight coefficient and uses it as the cross-time-block consistency constraint, thus completing the mapping from difference calculation to constraint construction.
[0149] In one possible implementation, the computing device uses a norm distance to measure representation differences, and uses the resulting value as the specific value of the consistency constraint term across time blocks. The computing device can use the following formula:
[0150] To construct cross-time-block consistency constraints, where... Represents consistency constraints. This represents the overlapping region extraction operator, used to extract the corresponding overlapping parts from adjacent time blocks. Describes the norm 1. This represents the trend components of adjacent time blocks, which are extracted using the scientific low-pass time series operator described above.
[0151] Figure 6 This is a schematic diagram illustrating the construction of cross-time block consistency constraints, as provided in an embodiment of this application. Figure 6 The "cross-time block consistency loss" is given. The connection relationship between "" is used to analyze the trend components of time blocks. Structured short-time dynamic components and residual components After decomposition, based on trend components Consistency constraints can be constructed across time blocks. The object of the consistency constraint may not be the trend component itself, but rather the feature representation, pooling representation, or intermediate features of adjacent overlapping regions of the trend component after mapping.
[0152] Based on this formula, the consistency constraint term can be calculated. The cross-time block consistency constraint term can enable the time series prediction model to maintain a smooth transition of feature representation at the boundary of adjacent local segments, avoid abrupt changes in feature representation between adjacent time blocks, and thus enhance the model's ability to model the continuity of long-sequence time evolution.
[0153] S504. Combine the prediction error term with the cross-time block consistency constraint term to construct a joint loss function.
[0154] The joint loss function is used to optimize the parameters of the temporal inference model.
[0155] The joint loss function is an overall objective function used to guide the parameter updates of a time-series inference model, consisting of a weighted combination of a prediction error term and a cross-time-block consistency constraint term. The computing device linearly weights and sums the calculated prediction error term with the constructed cross-time-block consistency constraint term. The prediction error term reflects the model's accuracy in predicting the future state of the industrial system, while the cross-time-block consistency constraint term reflects the model's characteristic continuity between adjacent time segments. The combination of these two terms forms the joint loss function.
[0156] In one possible implementation, the computing device sets a preset balance coefficient, multiplies the prediction error term by the balance coefficient to obtain the first term, multiplies the cross-time block consistency constraint term by 1 to obtain the weighting term, and adds the first weighting term and the second weighting term to obtain the final expression of the joint loss function.
[0157] For example, the computing device uses a joint loss function to perform end-to-end optimization of the prediction model. The joint loss function can be determined by the following formula:
[0158] The first term is the prediction error term: Represents the true future value. The first term represents the model's predicted value. The second term is the consistency constraint term across time blocks. It is a balancing coefficient used to coordinate forecast accuracy and temporal continuity.
[0159] This application further introduces a cross-time-block consistency constraint term based on the trend differences in overlapping areas of adjacent time blocks, which, together with the prediction error term, constitutes a joint loss function. Through this joint loss function, the model training process not only considers the accuracy of the predicted values but also constrains the smooth transition and continuous connection of adjacent time segments in their evolutionary trends. This effectively suppresses boundary jumps and error accumulation caused by block processing in long-term predictions, enhancing the model's long-term robustness and generalization ability in complex, non-stationary industrial scenarios.
[0160] In some embodiments, when mapping time-series data to token sequences for modeling, directly using traditional recurrent neural networks or simple feedforward structures often fails to effectively capture the complex dependencies and global contextual information spanning long time series in industrial data, resulting in insufficient characterization of long-term evolutionary patterns such as operating condition switching. Therefore, the time-series inference model in this application can employ one of the following: a large language model architecture, a Transformer encoder, a sequence network with attention mechanisms, or a state-space model, to enhance the modeling capability for long-range time-series dependencies.
[0161] In one possible implementation, the temporal reasoning model in this embodiment adopts a large language model architecture. Figure 7 An example diagram of a temporal reasoning model provided in this application embodiment is shown below. Figure 7 As shown, after decomposing the time blocks into trend components, structured short-term dynamic components, and residual components, Temporal Token Construction (the process of constructing time-series token sequences) is used to pool and concatenate the trend components, short-term dynamic components, and residual components of each time block to form a block-level representation. This block-level representation is then mapped to structured time-series tokens through step Wz. Through the structured time-series token sequence construction operation, the structured time-series tokens are combined to form a structured time-series token sequence composed of multiple structured time-series tokens.
[0162] Structured time-series token sequences and position codes The sum is then input into the LLM timing inference engine to obtain... , For the contextualized temporal representation, Attention reading is performed to obtain the global semantic vector. Finally, the projection layer is predicted to obtain... Add to the results The prediction results were obtained.
[0163] Input the prediction results into the prediction loss. In the module, loss is predicted. It outputs multi-step prediction results.
[0164] This application further specifies that the temporal inference model can flexibly adopt advanced neural network structures with global context capture capabilities, such as large language model architecture, Transformer encoder, sequence network with attention mechanism, or state space model. In this way, this embodiment can flexibly adapt to inference models with different underlying logics in different industrial scenarios, ensuring that the model can identify long-range dependency features and output more accurate multi-step prediction results when processing different industrial multivariate data.
[0165] In an exemplary embodiment, this application also provides an industrial time series forecasting device. This industrial time series forecasting device may include one or more functional modules for implementing the industrial time series forecasting method of the above method embodiments.
[0166] For example, Figure 8 This is a schematic diagram of an industrial time series prediction device provided in an embodiment of this application. Figure 8 As shown, the industrial time series forecasting device includes: an acquisition module 801, a processing module 802, and a forecasting module 803.
[0167] The acquisition module 801 is used to acquire historical multivariate time series data of the industrial system. The historical multivariate time series data includes measurement data of multiple dimensions corresponding to each sampling time in multiple sampling times.
[0168] Processing module 802 is used to extract multiple time blocks from historical multivariate time series data; a time block is a data segment extracted sequentially along the time axis, containing multiple consecutive sampling times and their corresponding measurement data; each time block is arranged sequentially along the time axis in the historical multivariate time series data, and the time intervals corresponding to two adjacent time blocks partially overlap; for each time block, time series decomposition processing is performed to obtain the trend component, structured short-time dynamic component, and residual component of the time block; the trend component is the low-frequency component of the time block on the time axis; the short-time dynamic component is the principal component component of the remaining signal after removing the low-frequency component from the time block; the residual component is the residual signal remaining after removing the low-frequency component and the principal component component from the time block; wherein, low-frequency component... The frequency of the frequency component is lower than that of the principal component, and the amplitude of the residual signal is smaller than that of the principal component. For each time block, the trend component, short-term dynamic component, and residual component of that time block are compressed and concatenated to obtain the structured time-series token corresponding to that time block. The structured time-series tokens corresponding to each time block are arranged in chronological order to obtain the structured time-series representation sequence. The structured time-series representation sequence is input into the time-series inference model for long-range dependency modeling to obtain contextualized time-series features. The time-series inference model is used to perform contextual encoding on all tokens based on the dependency relationships between the structured time-series tokens. The contextualized time-series features are the token-level feature sequences output by the time-series inference model that incorporate global contextual information.
[0169] The prediction module 803 is used to generate prediction results for the industrial system based on contextualized time-series features. The prediction results include estimates of measurement data of the industrial system in multiple dimensions at multiple future times.
[0170] In the case of implementing the methods of the above embodiments in hardware, the present invention provides a schematic diagram of an electronic device structure involved in the above embodiments. For example... Figure 9 As shown, the electronic device 900 includes: a processor 902, a communication interface 903, and a bus 904. Optionally, the electronic device 900 may also include a memory 901.
[0171] Processor 902 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 902 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 902 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0172] The communication interface 903 is used to connect to other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0173] The memory 901 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0174] In one possible implementation, the memory 901 can exist independently of the processor 902. The memory 901 can be connected to the processor 902 via a bus 904 and is used to store instructions or program code. When the processor 902 calls and executes the instructions or program code stored in the memory 901, it can implement the method provided in the embodiments of the present invention.
[0175] In another possible implementation, the memory 901 can also be integrated with the processor 902.
[0176] The 904 bus can be an Extended Industry Standard Architecture (EISA) bus, etc. The 904 bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 9 The symbol is represented by only one line, but this does not mean that there is only one bus or one type of bus.
[0177] In exemplary embodiments, this application also provides a computer-readable storage medium storing computer program instructions thereon; when the computer program instructions are executed by a computer, the computer causes the computer to implement the methods described in the foregoing embodiments. The computer may be an electronic device, a network device, or a manager. The computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.
[0178] In an exemplary embodiment, this application also provides a computer program product that, when run on a computer, causes the computer to execute the aforementioned related method steps to implement the industrial time series forecasting method in the above embodiments.
[0179] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An industrial time series forecasting method, characterized in that, The method includes: Acquire historical multivariate time series data of the industrial system; the historical multivariate time series data includes measurement data of multiple dimensions corresponding to each sampling time in multiple sampling times; Multiple time blocks are extracted from the historical multivariate time series data; each time block is a data segment extracted sequentially along the time axis, containing multiple consecutive sampling times and their corresponding measurement data; each time block is arranged sequentially along the time axis in the historical multivariate time series data, and the time intervals corresponding to two adjacent time blocks partially overlap. For each time block, a time-series decomposition process is performed to obtain the trend component, structured short-time dynamic component, and residual component of the time block; the trend component is the low-frequency component of the time block on the time axis; the short-time dynamic component is the principal component component of the remaining signal after removing the low-frequency component from the time block; the residual component is the residual signal remaining after removing the low-frequency component and the principal component from the time block; wherein, the frequency of the low-frequency component is lower than the frequency of the principal component, and the amplitude of the residual signal is smaller than the amplitude of the principal component. For each time block, the trend component, short-term dynamic component and residual component of the time block are compressed and then concatenated to obtain the structured time series token corresponding to the time block; Arrange the structured time tokens corresponding to each time block in chronological order to obtain a structured time representation sequence; The structured temporal representation sequence is input into the temporal inference model for long-range dependency modeling to obtain contextualized temporal features; the temporal inference model is used to perform contextual encoding on all tokens based on the dependency relationships between each structured temporal token; the contextualized temporal features are token-level feature sequences output by the temporal inference model that incorporate global contextual information; Based on the contextualized temporal features, a prediction result corresponding to the industrial system is generated; the prediction result includes estimated values of the measurement data of the industrial system in multiple dimensions at multiple future times.
2. The method according to claim 1, characterized in that, The step of extracting multiple time blocks from the historical multivariate time series data includes: Obtain the time block length and the sliding step size; wherein the sliding step size is less than the time block length; Using the time block length as the window length and the sliding step size as the sliding stride, the historical multivariate time series data is truncate along the time axis to obtain multiple time blocks; the sampling time intervals corresponding to two adjacent truncates partially overlap.
3. The method according to claim 1, characterized in that, For each time block, a time series decomposition process is performed to obtain the trend component, structured short-time dynamic component, and residual component of the time block, including: The trend component is obtained by filtering the time block using a low-pass smoothing operator. For the time blocks after removing the trend components, a low-dimensional temporal subspace representation is constructed, which is then mapped to obtain the structured short-time dynamic components; The residual component is obtained based on the difference between the time block and the trend component and the structured short-term dynamic component.
4. The method according to claim 1, characterized in that, For each time block, the trend component, short-term dynamic component, and residual component of that time block are compressed and concatenated to obtain the structured time series token corresponding to that time block, including: The trend component, the short-term dynamic component, and the residual component are compressed respectively to obtain the component vector corresponding to each component; The component vectors are concatenated to obtain the concatenated vector. The concatenated vector is mapped to the structured time token.
5. The method according to claim 4, characterized in that, The compression is achieved using pooling operations, which are any one or a combination of average pooling, max pooling, weighted pooling, or attention pooling.
6. The method according to claim 1, characterized in that, The method further includes: Obtain the prediction error term during the training process of the time-series inference model; Extract the overlapping portion of adjacent time blocks; Based on the differences of each trend component in the overlapping portion, a cross-time block consistency constraint term is constructed; The prediction error term is combined with the cross-time block consistency constraint term to construct a joint loss function; the joint loss function is used to optimize the parameters of the time-series inference model.
7. The method according to claim 6, characterized in that, The step of constructing a cross-time-block consistency constraint term based on the differences of each trend component in the overlapping portion includes: Extract a subset of trend components from the overlapping region for each adjacent time block; Calculate a difference measure between two subsets of the trend components, wherein the difference measure is any one of the first norm, the second norm, or the Huber loss; The difference metric is determined as the cross-time block consistency constraint.
8. The method according to any one of claims 1-7, characterized in that, The temporal reasoning model adopts one of the following: a large language model architecture, a Transformer encoder, a sequence network with attention mechanism, or a state space model.
9. An electronic device, characterized in that, The electronic device includes: a processor and a memory; The memory stores instructions that the processor can execute; When the processor is configured to execute the instructions, the electronic device performs the method as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes: computer software instructions; When the computer software instructions are executed in an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-8.
