Time series processing method, computer terminal, storage medium and program product
By constructing and processing multiple target time series sets and determining the importance indicators of time steps, the problem of low interpretability of the time series model is solved and the credibility and interpretability of the model are improved.
Patent Information
- Application Number
- CN202410846635.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing time series models have low interpretability and are difficult to accurately interpret unknown models, especially when dealing with data containing strong time dependencies and interactions, resulting in insufficient model credibility and interpretability.
By obtaining the original time series set, construct multiple target time series sets, use the time series model to process these sets, and determine the importance indicators of the time steps, including individual contribution indicators and overall impact indicators, to reflect the interaction between time steps. , thereby improving the interpretability of the model.
It improves the interpretability and credibility of time series models, enhances the understanding of factors affecting the model, and solves the problem of low interpretability of unknown models.
Smart Images

Figure CN118395149B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence, and in particular, to a time series processing method, a computer terminal, a storage medium and a program product. Background Art
[0002] For common time series processing problems, for example, predicting the future load time series data of the power generation system in the future based on the historical load time series data of the power generation system, a time series model is usually used to solve the time series processing problem. Considering that some time series models may be black box models, that is, the time series model has low interpretability, which may affect the credibility of the time series model and is difficult to adjust and improve. At this time, it is necessary to interpret the time series model to improve the credibility of the time series model. However, due to the inherent characteristics of the data contained in different time series, such as the strong time dependence and interaction between the numerical values corresponding to different time steps in the time series, they may be different, and these characteristics are likely to affect the actual processing process of the time series model, resulting in the current interpretation of the time series model only based on the input parameters and output results of the time series model, and it is very likely that the time series model cannot be accurately interpreted. Summary of the invention
[0003] The embodiments of the present application provide a time series processing method, a computer terminal, a storage medium and a program product to at least solve the technical problem of low accuracy in interpreting unknown time series models in the related art.
[0004] According to one aspect of an embodiment of the present application, a time series processing method is provided, comprising: obtaining an original time series set, wherein the original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps; based on the original time series of any time variable in the original time series set, constructing multiple target time series sets corresponding to any time variable, wherein the target time series set includes a target time series of at least one time variable, and the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, except for any time variable. The target time series of other time variables except the time variables are composed of random values of multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different; the multiple target time series sets are processed respectively by using the time series model to obtain the processing results of the multiple target time series sets; based on the processing results of the multiple target time series sets, the importance index of any time variable to the time series model is determined, wherein the importance index includes: individual contribution index and overall influence index of multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except any time step.
[0005] According to one aspect of an embodiment of the present application, a power data processing method is also provided, including: obtaining original power data, wherein the original power data is composed of original power data values of multiple time steps; constructing multiple target power data based on the original power data, wherein the target power data is composed of original power data values of a time step interval and random values of other time steps except the time step interval, and the starting time step and / or length of the time step interval corresponding to different target power data are different; using a power prediction model to process the multiple target power data respectively to obtain power prediction results of the multiple target power data; based on the power prediction results of the multiple target power data, determining importance indicators of the multiple time steps for the power prediction model, wherein the importance indicators include: individual contribution indicators and overall influence indicators of the multiple time steps, and the overall influence indicator is used to characterize the influence of the interaction between any time step and other time steps except any time step.
[0006] According to one aspect of an embodiment of the present application, a device anomaly detection method is also provided, including: obtaining original operation and maintenance data of a device to be detected, wherein the original operation and maintenance data is composed of original operation and maintenance attribute values of multiple time steps; based on the original operation and maintenance data, constructing multiple target operation and maintenance data, wherein the target operation and maintenance data is composed of original operation and maintenance attribute values of a time step interval and random values of other time steps except the time step interval, and the starting time step and / or length of the time step interval corresponding to different target operation and maintenance data are different; using an anomaly detection model to process the multiple target operation and maintenance data respectively to obtain detection results of the multiple target operation and maintenance data; based on the detection results of the multiple target operation and maintenance data, determining the importance indexes of the multiple time steps for the anomaly detection model, wherein the importance indexes include: individual contribution indexes and overall influence indexes of the multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except any time step; based on the importance index, feature extraction is performed on the original operation and maintenance data to obtain operation and maintenance features; using the anomaly detection model to process the operation and maintenance features to obtain a target detection result of the device to be detected, wherein the target detection result is used to characterize whether the device to be detected has an abnormality.
[0007] According to one aspect of an embodiment of the present application, a time series processing method is also provided, including: in response to an input instruction acting on an operation interface, an original time series set is displayed on the operation interface, wherein the original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps; in response to a processing instruction acting on the operation interface, importance indicators of multiple time steps are displayed on the operation interface, wherein the importance indicators are determined based on processing results of multiple target time series sets corresponding to any time variable, and the processing results of the multiple target time series sets are the results of processing the multiple target time series sets respectively using a time series model, and the multiple target time series sets are based on the original A time series set constructed from the original time series of any time variable in the time series set, the target time series set contains a target time series of at least one time variable, the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, the target time series of other time variables except any time variable are composed of random values of multiple time steps, the starting time step and / or length of the time step interval corresponding to different target time series sets are different, the importance indicators include: individual contribution indicators and overall impact indicators of multiple time steps, the overall impact indicator is used to characterize the impact of the interaction between any time step and other time steps except any time step.
[0008] According to one aspect of an embodiment of the present application, a time series processing method is also provided, including: obtaining an original time series set by calling a first interface, wherein the first interface includes a first parameter, the parameter value of the first parameter includes the original time series set, the original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps; based on the original time series of any time variable in the original time series set, constructing multiple target time series sets corresponding to any time variable, wherein the target time series set includes a target time series of at least one time variable, the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, and the original time series of other time variables except any time variable The target time series is composed of random values of multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different; the multiple target time series sets are processed respectively using the time series model to obtain the processing results of the multiple target time series sets; based on the processing results of the multiple target time series sets, the importance index of any time variable to the time series model is determined, wherein the importance index includes: individual contribution indexes and overall influence indexes of multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except any time step; the importance index of at least one time variable is output by calling the second interface, wherein the second interface includes a second parameter, and the parameter value of the second parameter includes the importance index of at least one time variable.
[0009] According to one aspect of an embodiment of the present application, a time series processing device is also provided, including: a time series acquisition module, used to acquire an original time series set, wherein the original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps; a time series construction module, used to construct multiple target time series sets corresponding to any time variable based on the original time series of any time variable in the original time series set, wherein the target time series set includes a target time series of at least one time variable, and the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, except for any time variable The target time series of other time variables except the time variables are composed of random values of multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different; the time series processing module is used to use the time series model to process the multiple target time series sets respectively to obtain the processing results of the multiple target time series sets; the sequence index determination module is used to determine the importance index of any time variable to the time series model based on the processing results of the multiple target time series sets, wherein the importance index includes: individual contribution index and overall influence index of multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except any time step.
[0010] According to one aspect of an embodiment of the present application, there is also provided a power data processing device, including: a power data acquisition module, used to acquire original power data, wherein the original power data is composed of original power data values of multiple time steps; a power data construction module, used to construct multiple target power data based on the original power data, wherein the target power data is composed of original power data values of a time step interval and random values of other time steps except the time step interval, and the starting time step and / or length of the time step interval corresponding to different target power data are different; a power data processing module, used to use a power prediction model to process multiple target power data respectively to obtain power prediction results of multiple target power data; a data indicator determination module, used to determine the importance indicators of multiple time steps for the power prediction model based on the power prediction results of multiple target power data, wherein the importance indicators include: individual contribution indicators and overall influence indicators of multiple time steps, and the overall influence indicator is used to characterize the influence of the interaction between any time step and other time steps except any time step.
[0011] According to one aspect of an embodiment of the present application, there is also provided an equipment anomaly detection device, comprising: an operation and maintenance data acquisition module, used to acquire original operation and maintenance data of a device to be detected, wherein the original operation and maintenance data is composed of original operation and maintenance attribute values of multiple time steps; an operation and maintenance data construction module, used to construct multiple target operation and maintenance data based on the original operation and maintenance data, wherein the target operation and maintenance data is composed of original operation and maintenance attribute values of a time step interval and random values of other time steps except the time step interval, and the starting time step and / or length of the time step interval corresponding to different target operation and maintenance data are different; an operation and maintenance data processing module, used to process the multiple target operation and maintenance data respectively using the anomaly detection model to obtain the multiple target operation and maintenance data Detection results; an operation and maintenance index determination module, which is used to determine the importance indicators of multiple time steps for the anomaly detection model based on the detection results of multiple target operation and maintenance data, wherein the importance indicators include: individual contribution indicators and overall impact indicators of multiple time steps, and the overall impact indicator is used to characterize the impact of the interaction between any time step and other time steps except any time step; an operation and maintenance feature extraction module, which is used to extract features from the original operation and maintenance data based on the importance indicators to obtain operation and maintenance features; an equipment detection module, which is used to process the operation and maintenance features using the anomaly detection model to obtain the target detection results of the equipment to be detected, wherein the target detection results are used to characterize whether the equipment to be detected has an abnormality.
[0012] According to one aspect of an embodiment of the present application, a time series processing device is also provided, including: a first display module, which is used to respond to an input instruction acting on an operation interface and display an original time series set on the operation interface, wherein the original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps; a second display module, which is used to respond to a processing instruction acting on the operation interface and display importance indicators of multiple time steps on the operation interface, wherein the importance indicators are determined based on processing results of multiple target time series sets corresponding to any one time variable, and the processing results of the multiple target time series sets are the results of processing the multiple target time series sets respectively using a time series model, and the multiple target time series sets are respectively processed by a time series model. The target time series set is a time series set constructed based on the original time series of any time variable in the original time series set. The target time series set contains a target time series of at least one time variable. The target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval. The target time series of other time variables except any time variable are composed of random values of multiple time steps. The starting time step and / or length of the time step interval corresponding to different target time series sets are different. The importance indicators include: individual contribution indicators and overall influence indicators of multiple time steps. The overall influence indicator is used to characterize the influence of the interaction between any time step and other time steps except any time step.
[0013] According to one aspect of an embodiment of the present application, a time series processing device is also provided, including: a first calling module, used to obtain an original time series set by calling a first interface, wherein the first interface includes a first parameter, and the parameter value of the first parameter includes the original time series set, the original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps; a sequence construction module, used to construct multiple target time series sets corresponding to any time variable based on the original time series of any time variable in the original time series set, wherein the target time series set includes a target time series of at least one time variable, and the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, and the target time series of other time variables except any time variable The sequence is composed of random values of multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different; a sequence processing module is used to use the time series model to process the multiple target time series sets respectively to obtain the processing results of the multiple target time series sets; an indicator determination module is used to determine the importance index of any time variable for the time series model based on the processing results of the multiple target time series sets, wherein the importance index includes: individual contribution indexes and overall influence indexes of multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except any time step; a second calling module is used to output the importance index of at least one time variable by calling the second interface, wherein the second interface includes a second parameter, and the parameter value of the second parameter includes the importance index of at least one time variable.
[0014] According to another aspect of the embodiments of the present application, a computer terminal is further provided, including: a memory storing an executable program; and a processor for running the program, wherein the method in each embodiment of the present application is executed when the program is running.
[0015] According to another aspect of an embodiment of the present application, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in each embodiment of the present application.
[0016] According to another aspect of the embodiments of the present application, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the method in each embodiment of the present application is implemented.
[0017] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method in each embodiment of the present application is implemented.
[0018] According to another aspect of the embodiments of the present application, a computer program is also provided, and when the computer program is executed by a processor, the methods in the various embodiments of the present application are implemented.
[0019] In an embodiment of the present application, an original time series set is obtained; based on the original time series of any time variable in the original time series set, multiple target time series sets corresponding to any time variable are constructed; the multiple target time series sets are processed respectively by using a time series model to obtain processing results of the multiple target time series sets; based on the processing results of the multiple target time series sets, an importance index of any time variable for the time series model is determined. For any time variable included in the original time series set, on the basis of the original sequence value corresponding to the time variable, multiple target time series sets are constructed in which no other time variables will affect the numerical value corresponding to the time variable, and the importance index of different time steps in different time variables relative to the time series model is determined according to the processing results of the time series model for these multiple target time series sets. This can improve the rationality and accuracy of the determined importance index, thereby improving the interpretability of the time series model determined according to the importance index, and further solving the technical problem of low accuracy in interpreting unknown time series models in related technologies.
[0020] It is easy to notice that the above general description and the following detailed description are only for the purpose of exemplifying and explaining the present application, and do not constitute a limitation of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0022] Figure 1 It is a schematic diagram of an application scenario of a time series processing method according to Embodiment 1 of the present application;
[0023] Figure 2 It is a structural block diagram of a computing environment of a time series processing method shown in Example 1 of the present application;
[0024] Figure 3 is a flowchart of a time series processing method according to Embodiment 1 of the present application;
[0025] Figure 4 is a schematic diagram of an importance index of a time step according to Example 1 of the present application;
[0026] Figure 5 is a schematic diagram of an amplified importance index according to Example 1 of the present application;
[0027] Figure 6 is a flowchart of a time series processing method according to Embodiment 2 of the present application;
[0028] Figure 7 is a flow chart of a device abnormality detection method according to Embodiment 3 of the present application;
[0029] Figure 8 is a flowchart of a time series processing method according to Embodiment 3 of the present application;
[0030] Fig. 9 is a flowchart of a time series processing method according to Embodiment 4 of the present application;
[0031] Fig.10 is a schematic diagram of a time series processing device according to Embodiment 5 of the present application;
[0032] Fig.11 is a schematic diagram of a time series processing device according to Embodiment 6 of the present application;
[0033] Fig.12 is a schematic diagram of a device abnormality detection device according to Embodiment 8 of the present application;
[0034] Fig.13 is a schematic diagram of a time series processing device according to Embodiment 7 of the present application;
[0035] Fig.14 is a schematic diagram of a time series processing device according to Embodiment 8 of the present application;
[0036] Fig.15 It is a structural block diagram of a computer terminal shown in Example 9 of the present application. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0040] IG: Integrated Gradients, gradient integral.
[0041] SHAP: SHapley Additive exPlanations, SHAPley Additive Explanations.
[0042] LIME: Local Interpretable Model-agnostic explanations, a local interpretable method that is independent of the model.
[0043] FIT: Feature Importance in Time, feature importance in time series.
[0044] WinIT: Windowed Feature Importance in Time, window-based temporal feature importance.
[0045] KL divergence: Kullback-Leibler divergence.
[0046] At present, there are roughly three methods to interpret event sequence models, namely, local approximation-based methods, mask and perturbation-based methods, and distribution-based methods.
[0047] Local approximation-based methods: A common explanation method involves using an interpretable model to locally approximate a black-box model. Typical examples include LIME, SHAP, and IG. These methods usually first generate a set of counterfactual sample sequences according to a predefined strategy, then record the model output corresponding to each sample sequence, and obtain the importance score by training a simple interpretable model with these sample sequences. However, these methods usually ignore the time correlation in the data. Directly applying the sample sequence to the time series model may produce out-of-distribution samples, resulting in inaccurate explanations.
[0048] Masking and perturbation-based methods: A method that involves masking part of the time series and evaluating the degree of influence of the masked time series on the processing results of the time series model. In this method, if the output of the model does not change after masking part of the series, it can be considered that this part of the series is unimportant, so as to explain the time series model. However, the problem with this method is that it cannot accurately determine which parts need to be masked and how to mask the series based on the step that affects the characteristics of the series.
[0049] Distribution-based method: A method for generating explanations that can explain the time series model based on the characteristic distribution of the time series of the input time series model and the characteristic variable situation. FIT is such a method. In this method, the importance of each input is usually evaluated based on the KL divergence. Considering the importance of time dependencies between time steps, WinIT introduces the importance of windowed features in time. This method highlights the correlation of a feature's fluctuations over time by evaluating its importance within a specific preceding time step window, thereby capturing the dynamic nature of feature influences in time data. However, this method is costly and has limitations in the scenarios it is applicable to.
[0050] Based on this, the time series processing method shown below is proposed in this application to explain the time series model, as shown below.
[0051] Example 1
[0052] According to an embodiment of the present application, a time series processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0053] Considering that the machine learning model consumes a lot of computing resources of the mobile terminal, the above method provided in the embodiment of the present application can be applied to Figure 1The application scenarios shown are not limited to these. Figure 1 is a schematic diagram of an application scenario of a time series processing method according to Example 1 of the present application. Figure 1 In the application scenario shown, the machine learning model is deployed in the server 10, and the server 10 can be connected to one or more clients 20 through a local area network connection, a wide area network connection, an Internet connection, or other types of data networks. The client 20 here may include but is not limited to: smart phones, tablet computers, laptops, PDAs, personal computers, smart home devices, vehicle-mounted devices, etc. The client 20 can interact with the user through a graphical user interface to call the large model, thereby implementing the method provided in the embodiment of the present application.
[0054] It should be noted that, when the operating resources of the client device can meet the deployment and operating conditions of the large model, the embodiments of the present application can be carried out in the client device.
[0055] Figure 2 is a structural block diagram of a computing environment of a time series processing method according to Embodiment 1 of the present application, such as Figure 2 As shown, computing environment 201 includes multiple computing nodes (such as servers) running on a distributed network (shown as 210-1, 210-2, ..., in the figure). Different computing nodes contain local processing and memory resources, and end users 202 can remotely run applications or store data in computing environment 201. Applications can be provided as multiple services 220-1, 220-2, 220-3 and 220-4 in computing environment 201, representing services "A", "D", "E" and "H" respectively.
[0056] The end user 202 can provide and access services through a web browser or other software application on the client, and in some embodiments, the end user 202's provision and / or request can be provided to the entry gateway 230. The entry gateway 230 can include a corresponding agent to handle the provision and / or request for the service (one or more services provided in the computing environment 201).
[0057] Services are provided or deployed based on various virtualization technologies supported by the computing environment 201. In some embodiments, services can be provided based on virtual machine (VM)-based virtualization, container-based virtualization, and / or similar methods. Virtual machine-based virtualization can be to simulate a real computer by initializing a virtual machine, and execute programs and applications without directly contacting any actual hardware resources. While the virtual machine virtualizes the machine, according to container-based virtualization, a container can be started to virtualize the entire operating system (OS) so that multiple workloads can run on a single operating system instance.
[0058] In an embodiment based on container virtualization, several containers of a service can be assembled into a Pod (e.g., a Kubernetes Pod). Figure 2 As shown, service 220-2 can be equipped with one or more Pods 240-1, 240-2, ..., 240-N (collectively referred to as Pods). Pods can include a proxy 245 and one or more containers 242-1, 242-2, ..., 242-M (collectively referred to as containers). One or more containers in a Pod process requests related to one or more corresponding functions of the service, and the proxy 245 generally controls network functions related to the service, such as routing, load balancing, etc. Other services can also be equipped with similar Pods.
[0059] During operation, executing a user request from end user 202 may require invoking one or more services in computing environment 201, and executing one or more functions of one service may require invoking one or more functions of another service. Figure 2 As shown, service "A" 220-1 receives a user request from end user 202 from ingress gateway 230, service "A" 220-1 may call service "D" 220-2, and service "D" 220-2 may request service "E" 220-3 to perform one or more functions.
[0060] The computing environment described above can be a cloud computing environment, where the allocation of resources is managed by a cloud service provider, allowing the development of functions without considering the implementation, adjustment, or expansion of servers. The computing environment allows developers to execute code that responds to events without building or maintaining complex infrastructure. Services can be segmented to complete a set of functions that can be automatically and independently scaled, rather than expanding a single hardware device to handle potential loads.
[0061] Under the above operating environment, this application provides Figure 3 It should be noted that the time series processing method of this embodiment can be Figure 1 The server implementation of the illustrated embodiment. Figure 3 1 is a flow chart of a time series processing method according to Embodiment 1 of the present application. Figure 3 As shown, the method may include the following steps:
[0062] Step S302, obtaining an original time series set.
[0063] The original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps.
[0064] The above-mentioned original time series set may refer to a multivariate time series data set. The above-mentioned time variables may refer to data that will change over time, and may include but are not limited to: power data, meteorological data, financial data and other variables. In the same time series system, different time variables may have interactive and interdependent relationships. For example, in the power generation system, the time variables with associated relationships may include but are not limited to: power load, power generation, weather data, voltage level and other variables. The above-mentioned original time series may refer to a time series composed of the values of the time variables at different time steps, that is, the above-mentioned original sequence values. Different time variables correspond to different original time series. The original time series may include but are not limited to: power data time series, meteorological data time series, financial data time series, etc.
[0065] In an optional solution of this embodiment, in order to improve the interpretability of the time series model, so as to improve the credibility and practicality of the time series model when it is used, the time series processing system (hereinafter referred to as the processing system) can first obtain an original time series set of original time series containing at least one time variable, and analyze the original time series contained in the original time series set, such as determining the correlation between different time variables in the original time series set, the importance of different time variables in the time series system, and then use these determined information to analyze the operation process and processing results of the time series model to improve the understanding of the operation of the time series model. Among them, the time series model can include but is not limited to: data classification models, data prediction models, etc., which are used to determine unknown data based on known original time series. For example, the data classification model can be a model for determining the type of faults that occur in the power generation system in different time periods based on the power load time series, and the data prediction model can be a model for predicting the power load of the power generation system in the future period based on the power load time series.
[0066] Step S304: construct multiple target time series sets corresponding to any time variable based on the original time series of any time variable in the original time series set.
[0067] Among them, the target time series set contains a target time series of at least one time variable, the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, the target time series of other time variables except any time variable are composed of random values of multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different.
[0068] The time variables corresponding to the above target time series may include selected time variables and unselected time variables. The corresponding target time series set may include target time series corresponding to the selected time variables and target time series corresponding to the unselected time variables. The selected time variables may refer to the time variables whose influence on the time series model needs to be determined at present, and the unselected time variables may refer to the time variables whose influence on the time series model does not need to be determined at present. For ease of understanding, it is assumed that the original time series set contains 4 time variables, namely A, B, C and D. If the influence of time variable A on the time series model needs to be determined at present, the selected time variables may refer to time variable A, and the corresponding unselected time variables may refer to time variables B, C and D. The above time step interval may refer to an interval consisting of multiple continuous time steps selected from the original time series.
[0069] In an optional scheme of this embodiment, in order to be able to analyze the time series model to determine the degree of influence of different time variables on the time series model, the processing system can construct different time series for different time variables, and then use the time series model to process the constructed time series, and determine the degree of influence of the time variable on the time series model according to the processing result. For example, if the processing result is more accurate, it can be considered that the degree of influence of the time variable on the time series model is greater. Based on this, in order to ensure the practicality and rationality of the constructed time series, the processing system can first arbitrarily select a time variable from the time variables corresponding to the original time series set obtained, and select a time step interval from the time step of the original time series corresponding to the selected time variable, and at the same time determine the original sequence value corresponding to the time step interval in the original time series, and then retain the original sequence value, and adjust the values corresponding to other time steps in the original time series except the time step interval, for example, fill the values of other time steps with random values to construct the target time series of the selected time variable, so as to ensure that the constructed target time series is more consistent with the time series of the time variable in the actual scenario. It should be noted that, in order to ensure the rationality of the constructed target time series, the time steps included in the target time series of the selected time variables can be the same as the time steps included in the original time series as shown above.
[0070] To facilitate understanding of the target time series of the selected time variable, assume that the time steps of the original time series of the time variable include t1, t2, t3, t4 and t5, and the original sequence values corresponding to these five time steps are n1, n2, n3, n4 and n5 respectively. The original time series can be expressed as [t1: n1, t2: n2, t3: n3, t4: n4, t5: n5]. The above time step interval can refer to multiple consecutive time steps selected from these five time steps, for example, it can be [t2, t3]. Based on this, the target time series constructed above can be [t1: m1, t2: n2, t3: n3, t4: m2, t5: m3], where m1, m2 and m3 are random values.
[0071] Furthermore, as mentioned above, considering that there may be multiple time variables in the time series system at the same time, there may be correlations between these multiple time variables, which jointly affect the time series model. Therefore, in order to ensure that the process of determining the degree of influence of the selected time variable is more in line with the process of using the time series model to process the original time series set to obtain the result in actual situations, the processing system can also construct corresponding target time series for one or more other unselected time variables in the original time series set, and integrate the target time series of the selected time variables with the target time series of the unselected time variables here to obtain the target time series set of the selected time variables, and use the target time series set as input. After the output result is obtained after processing the time series model, the processing system can judge the influence of the selected time variable on the time series model according to the output result, thereby improving the interpretability of the time series model. In order to avoid the situation in which the target time series corresponding to other time variables contains the original sequence values of the original time series of other time variables, resulting in the inability to determine whether the obtained importance belongs to the selected time variable or other unselected time variables, when constructing the target time series set corresponding to other time variables, random values different from the original sequence values of other time variables can be filled in the target time series of other time variables, thereby improving the accuracy of determining the influence of the selected time variable on the time series model.
[0072] In an optional scheme of the present embodiment, in order to avoid the situation where the determined result, i.e., the degree of influence of the time variable on the time series model, is determined to be accidental due to too little test data, i.e., too few target time series are constructed, the processing system can determine a plurality of different time step intervals, and construct corresponding target time series sets for each of the different time step intervals, thereby increasing the number of constructed target time series sets to improve comprehensiveness, and thereby reducing possible errors that may occur when the time series model is analyzed using the target time series sets.
[0073] In an optional solution of this embodiment, considering that the time step of the time series obtained in the actual scene may not be fixed, the time step contained in the target time series of the selected time variable may also be different from the time step contained in the original time series. The size of the specific time step of the target time series can be set by the user, and it only needs to ensure that it can contain the above time step interval, which is not limited here. Correspondingly, the lengths of the target time series corresponding to different time variables may also be different. Based on this, when generating multiple target time series sets, in order to improve the comprehensiveness of the generated target time series sets, different sequence attributes can be set for different target time series sets. For example, assuming that there are currently 3 target time series sets, for the first target time series set, the processing system can uniformly set the time step to from t1 to t5, for the second target time series set, the processing system can uniformly set the time step to from t1 to t4, and for the third target time series set, the processing system can uniformly set the time step to from t2 to t5, thereby ensuring the diversity of the multiple target time series sets constructed.
[0074] Step S306: using the time series model to process the multiple target time series sets respectively, to obtain processing results of the multiple target time series sets.
[0075] In an optional scheme of the present embodiment, considering that the results obtained by processing different time series using a time series model can reflect the degree of influence of the different time series on the time series model, and the accurate degree of influence determined can improve the interpretability of the time series model, based on this, after obtaining multiple target time series sets corresponding to any time variable, the above-mentioned time series model can be used to process these multiple target time series sets to obtain the processing results corresponding to each of the above-mentioned multiple target time series sets, so as to judge the degree of influence of the time variable according to the processing results.
[0076] Step S308: determining the importance index of any time variable for the time series model based on the processing results of the multiple target time series sets.
[0077] Among them, the importance indicators include: individual contribution indicators of multiple time steps and overall impact indicators. The overall impact indicator is used to characterize the impact of the interaction between any time step and other time steps except any time step.
[0078] The above-mentioned importance index may refer to the influence of the time variable on the time series model.
[0079] In an optional scheme of the present embodiment, as shown above, the processing system can determine the importance index of the corresponding time variable for the time series model based on the processing results of the multiple target time series sets determined above. For example, the processing system can match the obtained processing results with the actual results corresponding to the original time series sets. If the processing results obtained based on the constructed multiple target time series sets have a higher degree of match with the actual results, it means that the selected time variables corresponding to the multiple target time series sets are more important to the processing process of the time series model, and the importance index corresponding to the time variable is higher, and vice versa. Alternatively, the processing system can directly display the processing results to the user in a preset operation interface, and the user can evaluate the processing results. The processing system can determine the importance index of the time variable for the time series model based on the user's evaluation results.
[0080] In an optional scheme implemented in the present invention, it is considered that when the time series model processes the time series, it processes the time series according to the correlation between different time steps in the time series. This means that the degree of influence of the time series on the time series model can be determined from the correlation between the time steps contained in the time series. Based on this, in order to clearly reflect the degree of influence of different time variables on the time series model, the importance indicators determined above may include at least the individual contribution indicators of multiple time steps contained in the target time series, and the overall influence indicators of different time steps relative to other time steps. The overall influence indicators can reflect the interaction relationship between different time steps, that is, the influence of the above-mentioned interaction.
[0081] In an optional scheme of the present embodiment, the interaction between the above-mentioned different time steps may include positive effects and negative effects, wherein a positive effect may refer to the fact that when there is a numerical value in a certain time step, the accuracy of the processing result of the time series model based on the numerical output of other time steps is greater than the accuracy of the processing result of the time series model based on the numerical output of other time steps when there is no numerical value in this time step; a negative effect may refer to the fact that when there is a numerical value in a certain time step, the accuracy of the processing result of the time series model based on the numerical output of other time steps is less than or equal to the accuracy of the processing result of the time series model based on the numerical output of other time steps when there is no numerical value in this time step.
[0082] In an embodiment of the present application, an original time series set is obtained; based on the original time series of any time variable in the original time series set, multiple target time series sets corresponding to any time variable are constructed; the multiple target time series sets are processed respectively by using a time series model to obtain processing results of the multiple target time series sets; based on the processing results of the multiple target time series sets, an importance index of any time variable for the time series model is determined. For any time variable included in the original time series set, on the basis of the original sequence value corresponding to the time variable, multiple target time series sets are constructed in which no other time variables will affect the numerical value corresponding to the time variable, and the importance index of different time steps in different time variables relative to the time series model is determined according to the processing results of the time series model for these multiple target time series sets. This can improve the rationality and accuracy of the determined importance index, thereby improving the interpretability of the time series model determined according to the importance index, and further solving the technical problem of low accuracy in interpreting unknown time series models in the related art.
[0083] In this embodiment, based on the original time series of any time variable in the original time series set, multiple target time series sets corresponding to any time variable are constructed, including: starting from any time step, sliding according to multiple preset lengths to obtain multiple time step intervals; determining the original sequence values of multiple time step intervals from the original time series of any time variable; and using the data generation model to process the original sequence values of multiple time step intervals to generate target time series in multiple target time series sets.
[0084] In an optional scheme of the present embodiment, when generating the target time series of the selected time vector, the processing system may select multiple time step intervals from the multiple time steps contained in the original time series according to the interval segments of preset lengths. For example, if there are currently 5 time steps, namely: t1, t2, t3, t4 and t5, and the above preset length is 3, then the processing system may randomly select 3 consecutive time steps from the 5 time steps as the above time step interval, for example, select t2, t3, t4, or t3, t4, t5 as the above time step interval, and in order to ensure the integrity of the multiple target time series sets that can be constructed, the above time step intervals may be selected by sliding selection, for example, starting from t1, sliding selection is performed to obtain multiple time step intervals, and the multiple time step intervals may include: [t1, t2, t3]; [t2, t3, t4]; [t3, t4, t5].
[0085] After obtaining the time step interval, the processing system can also determine the original sequence values of different time steps in the time step interval from the original time series, and input the time step interval and the corresponding original sequence value into the value data generation model to generate the corresponding target time series. For example, for the selected time vector, since the processing system can obtain the time step interval of the time vector, the data generation model can retain the time step interval and the original sequence value corresponding to the time step interval in the corresponding target time series, and use random values to fill the values of other time steps, and for the unselected time vector, since the time step interval corresponding to the time vector obtained by the processing system is an empty set, the data generation model can directly use random values to fill the values of different time steps in the corresponding target time series, thereby improving the efficiency of generating target time series corresponding to different time vectors.
[0086] In this embodiment, the original sequence values of multiple time step intervals are processed by using a data generation model to generate target time series in multiple target time series sets, including: based on the original sequence values of any time step interval, constructing an initial sub-time series and an initial mask matrix corresponding to any time step interval, wherein the length of the initial sub-time series is the same as the length of the target time series, and the initial mask matrix is used to characterize the position of the original sequence value of any time step interval in the initial sub-time series; inputting the initial sub-time series and the initial mask matrix into the data generation model, and obtaining the target time series output by the data generation model.
[0087] In an optional scheme of this embodiment, when using the data generation model to generate a target time series of different time variables, the processing system can first expand an initial sub-time series of a preset length based on the time step interval according to the acquired time step interval and the corresponding original sequence value. The preset length can refer to the length of the original time series, or it can be a length set by the user, which is not limited here. The initial sub-time series can include the time step interval and the corresponding original sequence value, and the corresponding constructed initial sub-time series can be regarded as the initially generated target time series. The time steps included in the initial sub-time series are the same as the time steps included in the target time series, that is, the lengths of the two are the same.
[0088] In an optional scheme of the present embodiment, in order to avoid the erroneous adjustment of the original sequence values of the time step intervals contained in the initial sub-time series when generating the target time series, the processing system can also generate an initial mask matrix corresponding to the initial sub-time series when generating the initial sub-time series. The length of the initial mask matrix is also the same as the length of the initial sub-time series. The values in the initial mask matrix can be used to characterize the position of the original sequence values of any time step interval in the initial sub-time series. The specific setting of the values in the initial mask matrix can be determined by the user with reference to relevant literature and is not limited here. After constructing the initial sub-time series and the corresponding initial mask matrix, the processing system can input the initial sub-time series and the above-mentioned initial mask matrix into the data generation model, and the data generation model can fill in the values corresponding to other time steps except the time step interval, thereby obtaining the above-mentioned target time series.
[0089] For ease of understanding, assume that the current time step interval is [t2, t3, t4], the original sequence values corresponding to this time step interval are n1, n2 and n3, and the relationship between the time step and the original sequence value is expressed as [t2: n1, t3: n2, t4: n3]. When generating the target time series, the initial sub-time series generated by the processing system based on the original sequence value can be expressed as [t1: 0, t2: n1, t3: n2, t4: n3, t5: 0, t6: 0], and the corresponding initial mask The matrix can be [0, 1, 1, 1, 0, 0]. At this time, the initial sub-time series and the initial mask matrix are input into the data generation model, and the data generation model fills other positions, that is, positions other than the positions of the original sequence values in the initial sub-time series, with random numbers according to the initial mask matrix, thereby outputting the above-mentioned target time series. The target time series can be expressed as [t1: m1, t2: n1, t3: n2, t4: n3, t5: m2, t6: m3], where m1, m2 and m3 can be random values.
[0090] In this embodiment, the above method also includes: obtaining a sample time series; constructing multiple training mask matrices, wherein different training mask matrices correspond to different sample time step intervals; obtaining the product of the sample time series and the multiple training mask matrices to obtain multiple training time series; and training the initial generation model using the multiple training time series and the training mask matrices corresponding to the multiple training time series to obtain a data generation model.
[0091] In an optional scheme of the present embodiment, in order to improve the processing accuracy of the data generation model, when training the data generation model, a sample time series can be obtained first, and the sample time series can be provided by the user or obtained by calling the historical data of the time series system. For the sample time series, multiple training mask matrices can be constructed. In these multiple training mask matrices, it is only necessary to ensure that the length of the training mask matrix is the same as the length of the sample time series, and the numerical values used to represent the position in the training mask matrix are continuous. According to the product of these multiple training mask matrices and the above sample time series, multiple training time series can be constructed. Finally, the initial generation model is trained using these multiple training time series and the corresponding training mask matrices, and the above data generation model can be obtained.
[0092] In this embodiment, based on the processing results of multiple target time series sets, the importance index of any time variable to the time series model is determined, including: based on the processing results of multiple target time series sets, determining the multi-order interaction intensity of any time step; based on the multi-order interaction intensity of any time step, determining the individual contribution index of any time step; based on the multi-order interaction intensity of any time step and the individual contribution index of any time step, obtaining the overall influence index of any time step.
[0093] The above-mentioned multi-order interaction intensity may refer to the intensity of the interaction between different time steps. Generally, the order here may refer to the interval between time steps. For example, assuming that the time step is between t1 and t2, the order may refer to t1-t2+1. The corresponding second order may refer to the case where t1 and t2 are adjacent. At this time, what is determined is the intensity of the interaction between two adjacent time steps. The third order may refer to the case where t1 and t2 are separated by one time step. At this time, what is determined is the intensity of the interaction between two time steps separated by one time step. The interaction here may refer to a linear or nonlinear relationship between different time steps.
[0094] In an optional scheme of the present embodiment, when determining the importance index corresponding to any time variable, the processing system can first determine the multi-order interaction intensity of the time steps contained in the target time series in the target time series set based on the processing results of different target time series sets, and determine the individual contribution index of the time step based on the multi-order interaction intensity, and finally determine the overall impact index of the time step based on the multi-order interaction intensity and individual contribution index of the time step. The specific process is shown below.
[0095] In this embodiment, based on the processing results of multiple target time series sets, the multi-order interaction strength of any time step is determined, including: based on the lengths of the time step intervals included in the multiple target time series sets, the processing results of the multiple target time series sets are divided to obtain multiple processing result sets, wherein the lengths of the time step intervals included in the target time series sets corresponding to the same processing result set are the same; based on the processing results in any one of the processing result sets, any first-order interaction strength is determined, wherein the order of any first-order interaction strength corresponds to the length of the time step interval corresponding to any one of the processing result sets.
[0096] In an optional scheme of the present embodiment, when determining the multi-order interaction strength of any time step, the processing system may first divide the processing results corresponding to each of the multiple target time series sets according to the length of the time step interval contained in the multiple target time series sets to obtain multiple processing result sets, and in order to facilitate the analysis of the processing results contained in the divided multiple processing sets from the perspective of time steps, the processing results corresponding to the target time series sets with the same time step interval may be divided into the same set to obtain the above-mentioned processing result set, and at this time, the length of the time step interval contained in the target time series sets corresponding to the same processing result set is the same. The processing system may determine the interaction strength of any order corresponding to different time steps according to the processing results in any processing result set, and summarize the interaction strengths of different orders to obtain the multi-order interaction strengths of different time steps. As shown above, the order of the above-mentioned multi-order interaction strength corresponds to the length of the time step interval, and the maximum order may be the number of time steps contained in the time step interval.
[0097] In this embodiment, based on the multi-order interaction intensity of any time step, determining the individual contribution index of any time step includes: based on the original time series of any time variable, constructing a first time series set corresponding to any time step, and a second time series set corresponding to the time step before any time step, wherein the first time series set includes a first time series of at least one time variable, the first time series of any time variable is composed of the original sequence values from the first time step to any time step, and the random values from any time step to the last time step, the second time series set includes a second time series of at least one time variable, and the first time series of any time variable is composed of the original sequence values from the first time step to any time step, and the random values from any time step to the last time step. The two time series are composed of the original sequence values from the first time step to the time step before any time step, and the random values from the time step before any time step to the last time step; the first time series set is processed by the time series model to obtain the first processing result of the first time series set, and the second time series set is processed by the time series model to obtain the second processing result of the second time series set; the difference between the first processing result and the second processing result is obtained to obtain the processing result difference; the multi-order interaction intensity of any time step is summarized to obtain the first summary result; the difference between the processing result difference and the first summary result is obtained to obtain the individual contribution index of any time step.
[0098] In an optional solution of this embodiment, when determining the individual contribution index of any time step, the processing system can first construct a first time series set of the time step and a second time series set of a time step before the time step based on the original time series of any time variable, wherein the first time series set can include at least one first time series of different time variables at the time step, and the first time series can be divided into two parts, the first part is the interval corresponding to the first time step to the time step in the original time series, and the value of each time step in this interval is the corresponding original sequence value in the original time series, and the second part is the original time series. The first part is the interval corresponding to the time step from the first time step to the time step before the time step in the original time series, and the value of each time step in this interval is a random value. The second time series set may include at least one second time series under a time step before the time step with different time variables, and the second time series may also be divided into two parts. The first part is the interval corresponding to the time step from the first time step to the time step before the time step in the original time series, and the value of each time step in this interval is the original sequence value corresponding to the original time series. The second part is the interval corresponding to the time step from the time step to the last time step in the original time series, and the value of each time step in this interval is a random value.
[0099] After constructing the first time series set and the second time series set, the processing system can use the above-mentioned time series model to process the first time series set and the second time series set respectively to obtain the first processing result and the second processing result corresponding to each of them, and then obtain the difference between the first processing result and the second processing result to obtain the above-mentioned processing result difference, and at the same time summarize the multi-order interaction intensity of any time step obtained above to obtain the above-mentioned first summary result, and finally according to the difference between the processing result difference and the first summary result, the individual contribution index of the any time step can be obtained.
[0100] For ease of understanding, the formula for determining the individual contribution value can be:
[0101] .
[0102] in, Can refer to the time step The individual contribution index of can refer to the first processing result, may refer to the second processing result, It can refer to individual contribution indicators. can refer to the time step, It can refer to time variable, can refer to a time series model, Can refer to random values, It can refer to the expectation determined for a random value, which can be obtained by using a data generation model to generate multiple time series, then inputting these multiple time series into a time series model for processing, and finally averaging the processed results.
[0103] The corresponding formula for determining the multi-order interaction strength can be:
[0104]
[0105] ;
[0106]
[0107] ;
[0108] ;
[0109] in, can refer to the multi-order interaction strength of the time step, Can refer to the time step
[0110] and The original sequence value of .
[0111] Taking the second-order interaction strength as an example, the corresponding determination formula can be:
[0112] .
[0113] In this embodiment, based on the multi-order interaction intensity of any time step and the individual contribution index of any time step, the overall influence index of any time step is obtained, including: summarizing the multi-order interaction intensity of multiple time steps to obtain a second summary result; obtaining the sum of the second summary result and the individual contribution index of any time step to obtain the overall influence index of the interaction between any time step and other time steps.
[0114] In an optional scheme of the present embodiment, when determining the overall influence index based on the multi-order interaction intensity and individual contribution index of any time step, the processing system can first summarize the multi-order interaction intensity of multiple time steps to obtain the above-mentioned second summary result, and then determine the overall influence index of the interaction between the time step and other time steps based on the second summary result and the sum of the individual contribution index of any time step determined above.
[0115] For ease of understanding, the formula for determining the overall impact index can be:
[0116] .
[0117] in, It can refer to the overall impact indicator at time step t.
[0118] Take the original time series as an example, which is a univariate time series with a length of 720. The original time series can be a user's electricity consumption sequence within 12 hours, and the data granularity is at the minute level. Since users may turn on and off different electrical devices at different times, different change trends may appear at different positions in the original time series. Assume that the electrical devices used by users can be divided into three categories, namely, the first category of electrical devices represented by washing machines, the second category of electrical devices represented by dryers, and the third category of electrical devices represented by dishwashers. If the time series problem to be solved is to classify the electrical devices used by users in different time periods based on the original time series obtained, the time series model used can be a three-layer LSTM model with a latent variable of 120. The output of the time series model can be a three-dimensional vector composed of 0 and 1 to indicate the classification result. After the original time series is input into the event sequence model, the corresponding processing result can be obtained. For different processing results, the importance index of different time steps can be determined. Figure 4is a schematic diagram of an importance index of a time step according to Example 1 of the present application, Figure 4 There are 9 sub-graphs in three columns and three rows. These three columns of sub-graphs correspond to the original time series generated by the first type of electrical appliances when they are running, the original time series generated by the second type of electrical appliances when they are running, and the original time series generated by the third type of electrical appliances when they are running. For easy viewing, you can Figure 4 The core areas of different sub-graphs are enlarged. Figure 5 is a schematic diagram of an amplified importance index according to Example 1 of the present application, wherein the importance index can be as follows Figure 5 As shown in the gray area in , the indicators above the 0 axis can correspond to positive effects, and the indicators below the 0 axis can correspond to negative effects. Through the interaction of different time steps, the time series model determines the electrical appliance categories corresponding to different original time series. Taking the three sub-graphs in the first column as an example, it can be seen from the sub-graph in the first row and the first column that the reason why the time series in the first column is divided into the first category is its falling edge, that is, there will be a short rise after the power consumption decreases. It can be seen from the sub-graph in the second row and the first column that the reason why the time series in the first column is not divided into the second category is that its overall trend is inconsistent with the second category data (the change trend of the second category refers to the second column). It can be seen from the sub-graph in the third row and the first column that the reason why the time series in the first column is not divided into the third category is that although its rising edge is similar to the third category, its unique falling edge does not match the third category, so the series is finally divided into the first category.
[0119] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0120] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0122] Example 2
[0123] According to an embodiment of the present application, a power data processing method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0124] Figure 6 is a flow chart of a power data processing method according to Embodiment 2 of the present application. Figure 6 As shown, the method may include the following steps:
[0125] Step S602, obtaining original power data.
[0126] The original power data is composed of original power data values of multiple time steps.
[0127] In an optional solution of this embodiment, in order to improve the interpretability of the power prediction model, the processing system may first obtain original power data consisting of original power data values of multiple time steps, which may be a time series corresponding to power data for a period of time.
[0128] Step S604: construct multiple target power data based on the original power data.
[0129] The target power data is composed of the original power data value of the time step interval and the random values of other time steps except the time step interval, and the starting time step and / or length of the time step interval corresponding to different target power data are different.
[0130] In an optional scheme of the present embodiment, in order to be able to analyze the time series model, the processing system can select a time step interval from the time steps of the acquired original power data, and determine the original power data value corresponding to the time step interval, and then retain the original power data value, and adjust the original power data values corresponding to other time steps in the original power data except for the time step interval, for example, fill the values of other time steps with random values to construct the above-mentioned target power data. Considering that the time step of the power design acquired in the actual scenario may not be fixed, the time step contained in the above-mentioned target power data may also be different from the time step contained in the original power data. The specific size of the time step of the target power data can be set by the user, and it only needs to ensure that it can contain the above-mentioned time step interval, which is not limited here.
[0131] In order to avoid the occurrence of random results due to too little test data, the processing system can determine multiple different time step intervals. The attribute parameters of different time step intervals, such as the starting time step, different lengths, etc., can be different. For different time step intervals, the processing system can construct multiple target power data based on the original power data to increase the number of constructed target power data to improve comprehensiveness.
[0132] Step S606: using the power prediction model to process the multiple target power data respectively to obtain power prediction results of the multiple target power data.
[0133] In an optional solution of this embodiment, after obtaining a plurality of target power data, the plurality of target power data may be processed using the above-mentioned power prediction model to obtain power prediction results of the plurality of target power data.
[0134] Step S608: determining importance indicators of multiple time steps for a power prediction model based on the power prediction results of the multiple target power data.
[0135] Among them, the importance indicators include: individual contribution indicators of multiple time steps and overall impact indicators. The overall impact indicator is used to characterize the impact of the interaction between any time step and other time steps except any time step.
[0136] In an optional scheme of the present embodiment, the processing system may determine the importance index of different time steps for the power prediction model based on the power prediction results determined above. For example, the processing system may match the obtained power prediction results with the actual results. If the degree of match between the two is higher, the corresponding importance index will be higher, and vice versa. Alternatively, the processing system may directly display the power prediction results to the user in a preset operation interface, and the user may evaluate the power prediction results. The processing system may determine the importance index based on the user's evaluation results.
[0137] In an optional scheme implemented in the present invention, it is considered that when the time series model processes the time series, it processes the time series according to the correlation between different time steps in the time series. This means that the degree of influence of the time series on the time series model can be determined from the correlation between the time steps contained in the time series. Based on this, in order to clearly reflect the degree of influence of different time variables on the time series model, the importance indicators determined above may include at least the individual contribution indicators of multiple time steps contained in the target time series, and the overall influence indicators of different time steps relative to other time steps. The overall influence indicators can reflect the interaction relationship between different time steps, that is, the influence of the above-mentioned interaction.
[0138] In an optional scheme of the present embodiment, the interaction between the above-mentioned different time steps may include positive effects and negative effects, wherein a positive effect may refer to the fact that when there is a numerical value in a certain time step, the accuracy of the processing result of the time series model based on the numerical output of other time steps is greater than the accuracy of the processing result of the time series model based on the numerical output of other time steps when there is no numerical value in this time step; a negative effect may refer to the fact that when there is a numerical value in a certain time step, the accuracy of the processing result of the time series model based on the numerical output of other time steps is less than or equal to the accuracy of the processing result of the time series model based on the numerical output of other time steps when there is no numerical value in this time step.
[0139] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0140] Example 3
[0141] According to an embodiment of the present application, a device anomaly detection method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0142] Figure 7 is a flow chart of a device abnormality detection method according to Embodiment 3 of the present application, such as Figure 7 As shown, the method may include the following steps:
[0143] Step S702: obtaining original operation and maintenance data of the device to be detected.
[0144] The original operation and maintenance data consists of original operation and maintenance attribute values of multiple time steps.
[0145] The above-mentioned original operation and maintenance data may refer to the time series data generated when the equipment to be tested is operated and maintained within a historical time period. The original operation and maintenance data may include multiple time steps, and different time steps correspond to different original operation and maintenance attribute values. For example, the original operation and maintenance data may be the temperature change data generated by the equipment within a historical time period. The original operation and maintenance attribute values corresponding to different time steps in the original operation and maintenance data may refer to the temperature values of the equipment at different time steps.
[0146] In an optional scheme of this embodiment, considering that the original operation and maintenance data generated by the device during operation or maintenance is related to the actual operation of the device and has a certain data change law, if the original operation and maintenance data that is inconsistent with the actual operation of the device or deviates from the data change law suddenly appears in a certain time period, it means that the device may be abnormal. Based on this, the original operation and maintenance data of the device that needs fault detection, that is, the above-mentioned device to be detected, can be analyzed to determine whether the device can operate normally. Correspondingly, the processing system can first obtain the original operation and maintenance data generated by the device to be detected in the historical time period according to the data acquisition conditions input by the user, or the historical detection records of the fault detection of the device to be detected. It should be noted that considering that there are many types of data generated by the device to be detected during operation or maintenance, there is more than one type of data that can reflect whether the device to be detected can operate normally. Therefore, when obtaining the original operation and maintenance data, multiple corresponding time series data can be obtained for multiple data types that can reflect whether the device to be detected can operate normally to construct the above-mentioned original operation and maintenance data, thereby improving the accuracy of determining whether the device to be detected can operate normally by analyzing the original operation and maintenance data.
[0147] Step S704: construct multiple target operation and maintenance data based on the original operation and maintenance data.
[0148] The target operation and maintenance data is composed of the original operation and maintenance attribute values of the time step interval and the random values of other time steps except the time step interval. The starting time step and / or length of the time step interval corresponding to different target operation and maintenance data are different.
[0149] The above-mentioned time step interval may refer to an interval consisting of multiple continuous time steps selected from multiple time steps included in the original operation and maintenance data.
[0150] In an optional scheme of the present embodiment, it is considered that different types of operation and maintenance data may reflect different degrees to which the equipment to be detected can operate normally. For example, among the temperature time series data and performance time series data generated during the operation or maintenance of the equipment to be detected, the performance time series data can better reflect whether the equipment to be detected can operate normally. If a larger impact weight is set for the temperature time series data and a smaller impact weight is set for the performance time series data, false detection may occur. Therefore, when analyzing the original operation and maintenance data to determine whether the equipment to be detected can operate normally, it is also necessary to consider the impact of different types of operation data on the equipment operation status detection results, that is, the impact of the results of whether the equipment to be detected can operate normally. Based on this, the processing system can construct different target operation and maintenance data according to the type of data contained in the original operation and maintenance data, and judge the impact of different types of operation data on the equipment operation status detection results through the target operation and maintenance data. To facilitate understanding, assuming that the original operation and maintenance data currently obtained contains the above-mentioned temperature timing data and performance timing data, you can first keep the temperature timing data unchanged and change the performance timing data to generate the target operation and maintenance data corresponding to the temperature timing data, and then keep the performance timing data unchanged and change the temperature timing data to generate the target operation and maintenance data corresponding to the performance timing data. By analyzing different target operation and maintenance data, you can determine the degree of operation of the data type corresponding to the target operation and maintenance data on the equipment operation status detection results. Among them, random numbers can be used to fill in the attribute values contained in different types of operation data to improve the randomness of the constructed target operation and maintenance data, thereby increasing the degree of influence determined for different data types and being affected by other data types, so as to improve the accuracy of the determined degree of influence.
[0151] Furthermore, in order to avoid the original operation and maintenance data obtained having a certain degree of randomness, for example, the temperature time series data obtained is the temperature time series data that will definitely be generated when the equipment to be detected fails, it may happen that no matter how the performance time series data is changed, the degree of influence determined for the temperature time series data will correspond to a higher influence weight, resulting in a situation that is inconsistent with the actual situation. Therefore, when constructing corresponding target operation and maintenance data for different types of operation and maintenance data, the above-mentioned time step interval can also be determined from the multiple time steps contained in the operation and maintenance data of this type, and then the attribute values corresponding to the multiple time steps in the time step interval are retained, and the attribute values corresponding to the time steps outside the time step interval are changed to construct new operation and maintenance data of this type, and then the new operation and maintenance data is combined with the changed operation and maintenance data of other types, so as to obtain the target operation and maintenance data corresponding to the operation and maintenance data of this type with lower randomness. In order to further improve the comprehensiveness of the constructed target operation and maintenance data, different starting time steps can be set for the above-selected time step intervals, or different interval lengths can be set, or the starting time step and the interval length can be changed at the same time to construct multiple different new operation and maintenance data, so that multiple different target operation and maintenance data can be constructed for different types of operation and maintenance data, so as to further improve the accuracy of the impact degree determined for different types of operation and maintenance data.
[0152] Step S706: Use the anomaly detection model to process the multiple target operation and maintenance data respectively to obtain detection results of the multiple target operation and maintenance data.
[0153] The above-mentioned anomaly detection model may refer to a model used to analyze the original operation and maintenance data of the device to be detected to determine whether the device to be detected can operate normally.
[0154] In an optional scheme of the present embodiment, considering that the results obtained by processing different target operation and maintenance data using the anomaly detection model can reflect the degree of influence of different types of operation and maintenance data on the equipment operation status detection results, for example, assuming that there are currently multiple target operation and maintenance data A corresponding to data type A, and multiple target operation and maintenance data B corresponding to data type B, if the results obtained by detecting the multiple target operation and maintenance data A through the anomaly detection model are the same, while the results obtained by detecting the multiple target operation and maintenance data B are not exactly the same, then it can be considered that the influence of the operation and maintenance data of data type A on the equipment operation status detection results is greater than the influence of the operation and maintenance data of data type B on the equipment operation status detection results. Therefore, after constructing multiple target operation and maintenance data, the processing system can first use the above-mentioned anomaly detection model to process these multiple target operation and maintenance data to obtain the detection results of multiple target operation and maintenance data.
[0155] Step S708: Determine importance indicators of multiple time steps for anomaly detection models based on the detection results of multiple target operation and maintenance data.
[0156] Among them, the importance indicators include: individual contribution indicators of multiple time steps and overall impact indicators. The overall impact indicator is used to characterize the impact of the interaction between any time step and other time steps except any time step.
[0157] The above importance indicators can reflect the impact of operation and maintenance data of different data types on the equipment operation status detection results.
[0158] In an optional solution of the present embodiment, the processing system may analyze the detection results of the corresponding multiple target operation and maintenance data to determine the degree of influence of the operation data of the corresponding data type on the detection results of the equipment operation status, that is, the above-mentioned importance index. Considering that the anomaly detection model is a time series model, and the time series model processes the time series data according to the correlation between different time steps in the time series data, this means that the degree of influence of the time series on the time series model can be determined from the correlation between the time steps contained in the time series data. Based on this, in order to clearly reflect the degree of influence of operation and maintenance data of different data types on the detection results of the equipment operation status, the above-mentioned importance indexes may at least include the individual contribution indexes of the multiple time steps contained in the target operation and maintenance data, and the overall influence index of different time steps relative to other time steps. The overall influence index can reflect the interaction relationship between different time steps, that is, the influence of the above-mentioned interaction.
[0159] In an optional scheme of the present embodiment, the interaction between the above-mentioned different time steps may include positive and negative effects, wherein the positive effect may refer to that when there is a numerical value at a certain time step, the accuracy of the processing result of the anomaly detection model based on the numerical output of other time steps is greater than the accuracy of the processing result of the anomaly detection model based on the numerical output of other time steps when there is no numerical value at this time step; the negative effect may refer to that when there is a numerical value at a certain time step, the accuracy of the processing result of the anomaly detection model based on the numerical output of other time steps is less than or equal to the accuracy of the processing result of the anomaly detection model based on the numerical output of other time steps when there is no numerical value at this time step.
[0160] Step S710: extracting features from the original operation and maintenance data based on the importance index to obtain operation and maintenance features.
[0161] After determining the above-mentioned importance indicators, the processing system can perform feature extraction on the original operation and maintenance data according to the importance indicators to determine the operation and maintenance features that can largely reflect whether the equipment can operate normally. For example, if it is determined that the performance timing data in the original operation and maintenance data can better determine whether the equipment to be tested can operate normally, then multiple data features can be improved for the performance timing data, and for other timing data, such as temperature timing data, fewer data features can be extracted to obtain the above-mentioned operation and maintenance features. According to the determined importance indicators, different impact weights are set for different types of operation data to avoid the operation and maintenance data with less impact from having an erroneous impact on the determined equipment operation status detection results.
[0162] Step S712: Use the anomaly detection model to process the operation and maintenance features to obtain the target detection results of the equipment to be detected.
[0163] The target detection result is used to characterize whether the device to be detected has an abnormality.
[0164] In an optional solution of this embodiment, after the operation and maintenance features are kicked out, the operation and maintenance features can be processed using an abnormality detection model to determine whether the device to be detected can operate normally, whether an abnormality has occurred, and other information. In addition, if an abnormality is detected in the device to be detected, the operation and maintenance features can be further analyzed to determine the cause of the current abnormality in the device to be detected. For the convenience of user viewing, after detecting the above target detection results, the processing system can also display the target detection results in a preset operation interface.
[0165] Example 4
[0166] According to an embodiment of the present application, a time series processing method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0167] Figure 8 is a flowchart of a time series processing method according to Embodiment 4 of the present application. Figure 8 As shown, the method may include the following steps:
[0168] Step S802, in response to an input instruction on the operation interface, the original time series set is displayed on the operation interface.
[0169] The original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps.
[0170] The above-mentioned input instruction may refer to an instruction for obtaining an original time series set. The above-mentioned original time series set may refer to a multivariate time series data set. The above-mentioned time variable may refer to data that changes over time, and may include but is not limited to: power data, meteorological data, financial data and other variables. In the same time series system, different time variables may have interactive and interdependent relationships. For example, in a power generation system, the time variables with associated relationships may include but are not limited to: power load, power generation, weather data, voltage level and other variables. The above-mentioned original time series may refer to a time series composed of the values of the time variables at different time steps, that is, the above-mentioned original sequence values. Different time variables correspond to different original time series. The original time series may include but is not limited to: power data time series, meteorological data time series, financial data time series, etc.
[0171] In an optional scheme of this embodiment, when an input instruction from a user on the operation interface is detected, the processing system can obtain an original time series set of an original time series of at least one time variable and display it to the user on the operation interface for easy viewing by the user.
[0172] Step S804, in response to the processing instruction acting on the operation interface, the importance indicators of multiple time steps are displayed on the operation interface.
[0173] Among them, the importance index is determined based on the processing results of multiple target time series sets corresponding to any time variable, the processing results of the multiple target time series sets are the results of processing the multiple target time series sets respectively using the time series model, the multiple target time series sets are time series sets constructed based on the original time series of any time variable in the original time series set, the target time series set contains a target time series of at least one time variable, the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, the target time series of other time variables except any time variable is composed of random values of multiple time steps, the starting time step and / or length of the time step interval corresponding to different target time series sets are different, the importance index includes: individual contribution index and overall influence index of multiple time steps, the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except any time step.
[0174] The above-mentioned processing instructions may refer to instructions for interpreting the time series model according to the original time series set.
[0175] In an optional scheme of the present embodiment, after detecting the processing instruction of the user on the operation interface, the processing system can first construct multiple target time series sets of any time variable based on the acquired original time series set, and then use the time series model to process these multiple target time series sets to obtain corresponding processing results, and finally use the processing results to determine the importance index of any time variable to the time series model.
[0176] In an optional scheme of the present embodiment, in order to be able to analyze the time series model, the processing system can first arbitrarily select a time variable from the time variables corresponding to the acquired original time series set, and select a time step interval from the time steps of the original time series corresponding to the selected time variable, and at the same time determine the original sequence value corresponding to the time step interval in the original time series, and then retain the original sequence value, and adjust the values corresponding to other time steps in the original time series except the time step interval, for example, fill the values of other time steps with random values to construct the target time series of the selected time variable, thereby ensuring that the constructed target time series is more consistent with the time series of the time variable in the actual scenario. Considering that there may be multiple time variables in the time series system at the same time, there may be a correlation between these multiple time variables, which jointly affect the time series model. Therefore, in order to ensure that the process of determining the influence of the selected time variable is more in line with the process of using the time series model to process the original time series set to obtain the result in actual conditions, the processing system can also construct corresponding target time series for one or more other unselected time variables in the original time series set, and integrate the target time series of the selected time variable with the target time series of the unselected time variable here to obtain the target time series set of the selected time variable. In an optional scheme of this embodiment, in order to avoid the occurrence of too few test data, that is, too few target time series constructed, resulting in the result determined, that is, the degree of influence of the time variable on the time series model is determined to be accidental, the processing system can determine multiple different time step intervals, and construct corresponding target time series sets for different time step intervals, thereby increasing the number of constructed target time series sets to improve comprehensiveness, thereby reducing the error that may occur when analyzing the time series model using the target time series set. Taking into account that the time step of the time series obtained in the actual scenario may not be fixed, in order to improve the comprehensiveness of the generated target time series set, different sequence attributes can be set for different target time series sets. For example, assuming that there are currently 3 target time series sets, for the first target time series set, the processing system can uniformly set the time step to be from t1 to t5, for the second target time series set, the processing system can uniformly set the time step to be from t1 to t4, and for the third target time series set, the processing system can uniformly set the time step to be from t2 to t5, thereby ensuring the diversity of the multiple target time series sets constructed.
[0177] In an optional scheme of the present embodiment, considering that the results obtained by processing different time series using a time series model can reflect the degree of influence of the different time series on the time series model, and the accurate degree of influence determined can improve the interpretability of the time series model, based on this, after obtaining multiple target time series sets corresponding to any time variable, the above-mentioned time series model can be used to process these multiple target time series sets to obtain the processing results corresponding to each of the above-mentioned multiple target time series sets, so as to judge the degree of influence of the time variable according to the processing results.
[0178] In an optional scheme of the present embodiment, as shown above, the processing system can determine the importance index of the corresponding time variable for the time series model based on the processing results of the multiple target time series sets determined above. For example, the processing system can match the obtained processing results with the actual results corresponding to the original time series sets. If the processing results obtained based on the constructed multiple target time series sets have a higher degree of match with the actual results, it means that the selected time variables corresponding to the multiple target time series sets are more important to the processing process of the time series model, and the importance index corresponding to the time variable is higher, and vice versa. Alternatively, the processing system can directly display the processing results to the user in a preset operation interface, and the user can evaluate the processing results. The processing system can determine the importance index of the time variable for the time series model based on the user's evaluation results.
[0179] In an optional scheme implemented in the present invention, it is considered that when the time series model processes the time series, it processes the time series according to the correlation between different time steps in the time series. This means that the degree of influence of the time series on the time series model can be determined from the correlation between the time steps contained in the time series. Based on this, in order to clearly reflect the degree of influence of different time variables on the time series model, the importance indicators determined above may include at least the individual contribution indicators of multiple time steps contained in the target time series, and the overall influence indicators of different time steps relative to other time steps. The overall influence indicators can reflect the interaction relationship between different time steps, that is, the influence of the above-mentioned interaction.
[0180] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0181] Example 5
[0182] According to an embodiment of the present application, a time series processing method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0183] Fig. 9 is a flowchart of a time series processing method according to Example 5 of the present application, such as Fig. 9 As shown, the method may include the following steps:
[0184] Step S902: Acquire the original time series set by calling the first interface.
[0185] The first interface includes a first parameter, the parameter value of the first parameter includes an original time series set, the original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps.
[0186] The above-mentioned original time series set may refer to a multivariate time series data set. The above-mentioned time variables may refer to data that will change over time, and may include but are not limited to: power data, meteorological data, financial data and other variables. In the same time series system, different time variables may have interactive and interdependent relationships. For example, in the power generation system, the time variables with associated relationships may include but are not limited to: power load, power generation, weather data, voltage level and other variables. The above-mentioned original time series may refer to a time series composed of the values of the time variables at different time steps, that is, the above-mentioned original sequence values. Different time variables correspond to different original time series. The original time series may include but are not limited to: power data time series, meteorological data time series, financial data time series, etc.
[0187] In an optional scheme of the present embodiment, in order to improve the interpretability of the time series model, the processing system may first obtain the first parameter by calling the first interface, that is, obtain the original time series set of the original time series of at least one time variable, and analyze the original time series contained in the original time series set, for example, determine the correlation between different time variables in the original time series set, the importance of different time variables in the time series system, and other information, and then use the determined information to analyze the operation process and processing results of the time series model to improve the understanding of the operation of the time series model.
[0188] Step S904: construct multiple target time series sets corresponding to any time variable based on the original time series of any time variable in the original time series set.
[0189] Among them, the target time series set contains a target time series of at least one time variable, the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, the target time series of other time variables except any time variable are composed of random values of multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different.
[0190] In an optional scheme of the present embodiment, in order to be able to analyze the time series model, the processing system can first arbitrarily select a time variable from the time variables corresponding to the acquired original time series set, and select a time step interval from the time steps of the original time series corresponding to the selected time variable, and at the same time determine the original sequence value corresponding to the time step interval in the original time series, and then retain the original sequence value, and adjust the values corresponding to other time steps in the original time series except the time step interval, for example, fill the values of other time steps with random values to construct the target time series of the selected time variable, thereby ensuring that the constructed target time series is more consistent with the time series of the time variable in the actual scenario. Considering that there may be multiple time variables in the time series system at the same time, there may be a correlation between these multiple time variables, which jointly affect the time series model. Therefore, in order to ensure that the process of determining the influence of the selected time variable is more in line with the process of using the time series model to process the original time series set to obtain the result in actual conditions, the processing system can also construct corresponding target time series for one or more other unselected time variables in the original time series set, and integrate the target time series of the selected time variable with the target time series of the unselected time variable here to obtain the target time series set of the selected time variable. In an optional scheme of this embodiment, in order to avoid the occurrence of too few test data, that is, too few target time series constructed, resulting in the result determined, that is, the degree of influence of the time variable on the time series model is determined to be accidental, the processing system can determine multiple different time step intervals, and construct corresponding target time series sets for different time step intervals, thereby increasing the number of constructed target time series sets to improve comprehensiveness, thereby reducing the error that may occur when analyzing the time series model using the target time series set.
[0191] In an optional scheme of the present embodiment, considering that the time step of the time series obtained in the actual scenario may be not fixed, in order to improve the comprehensiveness of the generated target time series set, different sequence attributes can be set for different target time series sets. For example, assuming that there are currently 3 target time series sets, for the first target time series set, the processing system can uniformly set the time step to be from t1 to t5, for the second target time series set, the processing system can uniformly set the time step to be from t1 to t4, and for the third target time series set, the processing system can uniformly set the time step to be from t2 to t5, thereby ensuring the diversity of the multiple target time series sets constructed.
[0192] Step S906: using the time series model to process the multiple target time series sets respectively, to obtain processing results of the multiple target time series sets.
[0193] In an optional scheme of the present embodiment, considering that the results obtained by processing different time series using a time series model can reflect the degree of influence of the different time series on the time series model, and the accurate degree of influence determined can improve the interpretability of the time series model, based on this, after obtaining multiple target time series sets corresponding to any time variable, the above-mentioned time series model can be used to process these multiple target time series sets to obtain the processing results corresponding to each of the above-mentioned multiple target time series sets, so as to judge the degree of influence of the time variable according to the processing results.
[0194] Step S908: Determine the importance index of any time variable for the time series model based on the processing results of the multiple target time series sets.
[0195] Among them, the importance indicators include: individual contribution indicators of multiple time steps and overall impact indicators. The overall impact indicator is used to characterize the impact of the interaction between any time step and other time steps except any time step.
[0196] In an optional scheme of the present embodiment, as shown above, the processing system can determine the importance index of the corresponding time variable for the time series model based on the processing results of the multiple target time series sets determined above. For example, the processing system can match the obtained processing results with the actual results corresponding to the original time series sets. If the processing results obtained based on the constructed multiple target time series sets have a higher degree of match with the actual results, it means that the selected time variables corresponding to the multiple target time series sets are more important to the processing process of the time series model, and the importance index corresponding to the time variable is higher, and vice versa. Alternatively, the processing system can directly display the processing results to the user in a preset operation interface, and the user can evaluate the processing results. The processing system can determine the importance index of the time variable for the time series model based on the user's evaluation results.
[0197] In an optional scheme implemented in the present invention, it is considered that when the time series model processes the time series, it processes the time series according to the correlation between different time steps in the time series. This means that the degree of influence of the time series on the time series model can be determined from the correlation between the time steps contained in the time series. Based on this, in order to clearly reflect the degree of influence of different time variables on the time series model, the importance indicators determined above may include at least the individual contribution indicators of multiple time steps contained in the target time series, and the overall influence indicators of different time steps relative to other time steps. The overall influence indicators can reflect the interaction relationship between different time steps, that is, the influence of the above-mentioned interaction.
[0198] Step S910: outputting the importance index of at least one time variable by calling a second interface, wherein the second interface includes a second parameter, and a parameter value of the second parameter includes the importance index of at least one time variable.
[0199] In an optional solution of the present embodiment, the processing system may output the determined importance index of at least one time variable, namely, the above-mentioned second parameter, by calling the second interface.
[0200] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0201] Example 6
[0202] According to an embodiment of the present application, a time series processing device for implementing the above-mentioned time series processing method is also provided, and the device can be deployed in a target client. Fig.10 is a schematic diagram of a time series processing device according to Embodiment 6 of the present application, such as Fig.10 As shown, the device 1000 includes: a time series acquisition module 1002 , a time series construction module 1004 , a time series processing module 1006 and a sequence indicator determination module 1008 .
[0203] The time series acquisition module 1002 is used to acquire an original time series set, wherein the original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps; the time series construction module 1004 is used to construct multiple target time series sets corresponding to any time variable based on the original time series of any time variable in the original time series set, wherein the target time series set includes a target time series of at least one time variable, and the target time series of any time variable is composed of the original sequence values of the time step interval and the random values of other time steps except the time step interval, and the target time series of other time variables except any time variable are composed of the original sequence values of the time step interval and the random values of other time steps except the time step interval. The target time series is composed of random values of multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different; the time series processing module 1006 is used to use the time series model to process the multiple target time series sets respectively, and obtain the processing results of the multiple target time series sets; the sequence index determination module 1008 is used to determine the importance index of any time variable for the time series model based on the processing results of the multiple target time series sets, wherein the importance index includes: individual contribution index and overall influence index of multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except any time step.
[0204] In this embodiment, the time series construction module 1004 includes: a time step interval division unit, which is used to start from any time step and slide according to multiple preset lengths to obtain multiple time step intervals; an original sequence value determination unit, which is used to determine the original sequence values of multiple time step intervals from the original time series of any time variable; a target time series generation unit, which is used to process the original sequence values of multiple time step intervals using a data generation model to generate target time series in multiple target time series sets.
[0205] In this embodiment, the target time series generation unit is also used to: construct an initial sub-time series and an initial mask matrix corresponding to any time step interval based on the original sequence value of any time step interval, wherein the length of the initial sub-time series is the same as the length of the target time series, and the initial mask matrix is used to characterize the position of the original sequence value of any time step interval in the initial sub-time series; input the initial sub-time series and the initial mask matrix into the data generation model, and obtain the target time series output by the data generation model.
[0206] In this embodiment, the above-mentioned device also includes: a sample acquisition module, used to obtain a sample time series; a matrix construction module, used to construct multiple training mask matrices, wherein different training mask matrices correspond to different sample time step intervals; a sequence generation module, used to obtain the product of the sample time series and multiple training mask matrices to obtain multiple training time series; a model training module, used to train the initial generation model using multiple training time series and the training mask matrices corresponding to the multiple training time series to obtain a data generation model.
[0207] In this embodiment, the sequence index determination module 1008 includes: an interaction strength determination unit, which is used to determine the multi-order interaction strength of any time step based on the processing results of multiple target time series sets; a first index determination unit, which is used to determine the individual contribution index of any time step based on the multi-order interaction strength of any time step; and a second index determination unit, which is used to obtain the overall influence index of any time step based on the multi-order interaction strength of any time step and the individual contribution index of any time step.
[0208] In this embodiment, the interaction strength determination unit is also used to: divide the processing results of multiple target time series sets based on the lengths of the time step intervals included in the multiple target time series sets to obtain multiple processing result sets, wherein the lengths of the time step intervals included in the target time series sets corresponding to the same processing result set are the same; determine any first-order interaction strength based on the processing results in any one of the processing result sets, wherein the order of any first-order interaction strength corresponds to the length of the time step interval corresponding to any one of the processing result sets.
[0209] In this embodiment, the first indicator determination unit is further used to: construct a first time series set corresponding to any time step and a second time series set corresponding to a time step before any time step based on the original time series of any time variable, wherein the first time series set includes a first time series of at least one time variable, the first time series of any time variable is composed of the original sequence values from the first time step to any time step, and the random values from any time step to the last time step, and the second time series set includes a second time series of at least one time variable, the second time series of any time variable is composed of the original sequence values from the first time step to any time step, and the random values from any time step to the last time step. The method comprises the following steps: the first time series set is processed by the time series model to obtain a first processing result of the first time series set, and the second time series set is processed by the time series model to obtain a second processing result of the second time series set; the difference between the first processing result and the second processing result is obtained to obtain the processing result difference; the multi-order interaction intensity of any time step is summarized to obtain a first summary result; the difference between the processing result difference and the first summary result is obtained to obtain the individual contribution index of any time step.
[0210] In this embodiment, the second indicator determination unit is also used to: summarize the multi-order interaction intensities of multiple time steps to obtain a second summary result; obtain the sum of the second summary result and the individual contribution index of any time step to obtain the overall impact index of the interaction between any time step and other time steps.
[0211] It should be noted that the above-mentioned time series acquisition module 1002, time series construction module 1004, time series processing module 1006 and sequence index determination module 1008 correspond to steps S302 to S308 in Example 1, and the four modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules or units can be hardware components or software components stored in a memory and processed by one or more processors, and the above-mentioned modules can also be run in the server 10 provided in Example 1 as part of the device.
[0212] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0213] Example 7
[0214] According to an embodiment of the present application, a time series processing device for implementing the above-mentioned time series processing method is also provided, and the device can be deployed in a target client. Fig.11 is a schematic diagram of a time series processing device according to Embodiment 7 of the present application, such as Fig.11 As shown, the device 1100 includes: a power data acquisition module 1102 , a power data construction module 1104 , a power data processing module 1106 and a data indicator determination module 1108 .
[0215] Among them, the power data acquisition module 1102 is used to obtain original power data, wherein the original power data is composed of original power data values of multiple time steps; the power data construction module 1104 is used to construct multiple target power data based on the original power data, wherein the target power data is composed of original power data values of a time step interval and random values of other time steps except the time step interval, and the starting time step and / or length of the time step interval corresponding to different target power data are different; the power data processing module 1106 is used to use the power prediction model to process multiple target power data respectively to obtain power prediction results of multiple target power data; the data indicator determination module 1108 is used to determine the importance indicators of multiple time steps for the power prediction model based on the power prediction results of multiple target power data, wherein the importance indicators include: individual contribution indicators and overall influence indicators of multiple time steps, and the overall influence indicator is used to characterize the influence of the interaction between any time step and other time steps except any time step.
[0216] It should be noted here that the above-mentioned power data acquisition module 1102, power data construction module 1104, power data processing module 1106 and data indicator determination module 1108 correspond to steps S602 to S608 in Example 2, and the four modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules or units can be hardware components or software components stored in a memory and processed by one or more processors, and the above-mentioned modules can also be run in the server 10 provided in Example 1 as part of the device.
[0217] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0218] Example 8
[0219] According to an embodiment of the present application, a device anomaly detection apparatus for implementing the above-mentioned device anomaly detection method is also provided, and the apparatus can be deployed in a target client. Fig.12is a schematic diagram of a device abnormality detection device according to Embodiment 8 of the present application, such as Fig.12 As shown, the device 1200 includes: an operation and maintenance data acquisition module 1202, an operation and maintenance data construction module 1204, an operation and maintenance data processing module 1206, an operation and maintenance indicator determination module 1208, an operation and maintenance feature extraction module 1210 and an equipment detection module 1212.
[0220] The operation and maintenance data acquisition module 1202 is used to obtain the original operation and maintenance data of the equipment to be detected, wherein the original operation and maintenance data is composed of the original operation and maintenance attribute values of multiple time steps; the operation and maintenance data construction module 1204 is used to construct multiple target operation and maintenance data based on the original operation and maintenance data, wherein the target operation and maintenance data is composed of the original operation and maintenance attribute values of the time step interval and the random values of other time steps except the time step interval, and the starting time step and / or length of the time step interval corresponding to different target operation and maintenance data are different; the operation and maintenance data processing module 1206 is used to process the multiple target operation and maintenance data respectively by using the anomaly detection model to obtain the detection results of the multiple target operation and maintenance data; the operation and maintenance indicator determination module 120 8 is used to determine the importance indicators of multiple time steps for the anomaly detection model based on the detection results of multiple target operation and maintenance data, wherein the importance indicators include: individual contribution indicators and overall impact indicators of multiple time steps, and the overall impact indicator is used to characterize the influence of the interaction between any time step and other time steps except any time step; the operation and maintenance feature extraction module 1210 is used to extract features from the original operation and maintenance data based on the importance indicators to obtain operation and maintenance features; the equipment detection module 1212 is used to process the operation and maintenance features using the anomaly detection model to obtain the target detection results of the equipment to be detected, wherein the target detection results are used to characterize whether the equipment to be detected has an abnormality.
[0221] It should be noted here that the above-mentioned operation and maintenance data acquisition module 1202, operation and maintenance data construction module 1204, operation and maintenance data processing module 1206, operation and maintenance index determination module 1208, operation and maintenance feature extraction module 1210 and equipment detection module 1212 correspond to steps S702 to S712 in Example 3, and the six modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules or units can be hardware components or software components stored in a memory and processed by one or more processors, and the above-mentioned modules can also be run in the server 10 provided in Example 1 as part of the device.
[0222] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0223] Example 9
[0224] According to an embodiment of the present application, a time series processing device for implementing the above-mentioned time series processing method is also provided, and the device can be deployed in a target client. Fig.13 is a schematic diagram of a time series processing device according to Embodiment 9 of the present application, such as Fig.13 As shown, the device 1300 includes: a first display module 1302 and a second display module 1308 .
[0225] Among them, the first display module 1302 is used to respond to the input instruction acting on the operation interface, and display the original time series set on the operation interface, wherein the original time series set includes the original time series of at least one time variable, and the original time series is composed of the original sequence values of multiple time steps; the second display module 1304 is used to respond to the processing instruction acting on the operation interface, and display the importance index of multiple time steps on the operation interface, wherein the importance index is determined based on the processing results of multiple target time series sets corresponding to any time variable, and the processing results of the multiple target time series sets are the results of processing the multiple target time series sets respectively using the time series model, and the multiple target time series sets are based on the original time. A time series set constructed from the original time series of any time variable in the sequence set. The target time series set contains a target time series of at least one time variable. The target time series of any time variable consists of the original sequence value of the time step interval and the random values of other time steps except the time step interval. The target time series of other time variables except any time variable consists of random values of multiple time steps. The starting time step and / or length of the time step interval corresponding to different target time series sets are different. The importance indicators include: individual contribution indicators and overall impact indicators of multiple time steps. The overall impact indicator is used to characterize the impact of the interaction between any time step and other time steps except any time step.
[0226] It should be noted that the first display module 1302 and the second display module 1308 correspond to steps S702 to S704 in Example 3, and the two modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules or units may be hardware components or software components stored in a memory and processed by one or more processors, and the above-mentioned modules may also be part of the device and may run in the server 10 provided in Example 1.
[0227] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0228] Example 10
[0229] According to an embodiment of the present application, a time series processing device for implementing the above-mentioned time series processing method is also provided, and the device can be deployed in a target client. Fig.14 is a schematic diagram of a time series processing device according to Embodiment 10 of the present application, such as Fig.14 As shown, the device 1400 includes: a first calling module 1402 , a sequence building module 1404 , a sequence processing module 1406 , an indicator determination module 1408 and a second calling module 1410 .
[0230] Among them, the first calling module 1402 is used to obtain the original time series set by calling the first interface, wherein the first interface includes a first parameter, the parameter value of the first parameter includes the original time series set, the original time series set includes the original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps; the sequence construction module 1404 is used to construct multiple target time series sets corresponding to any time variable based on the original time series of any time variable in the original time series set, wherein the target time series set includes a target time series of at least one time variable, the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, and the target time series of other time variables except any time variable is composed of random values of multiple time steps, different The starting time step and / or length of the time step interval corresponding to the target time series set are different; the sequence processing module 1406 is used to use the time series model to process multiple target time series sets respectively to obtain processing results of multiple target time series sets; the indicator determination module 1408 is used to determine the importance index of any time variable for the time series model based on the processing results of multiple target time series sets, wherein the importance index includes: individual contribution index and overall influence index of multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except any time step; the second calling module 1410 is used to output the importance index of at least one time variable by calling the second interface, wherein the second interface includes a second parameter, and the parameter value of the second parameter includes the importance index of at least one time variable.
[0231] It should be noted that the first calling module 1402, the sequence building module 1404, the sequence processing module 1406, the indicator determination module 1408 and the second calling module 1410 correspond to steps S802 to S810 in Example 4, and the five modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned embodiment 1. It should be noted that the above-mentioned modules or units may be hardware components or software components stored in a memory and processed by one or more processors, and the above-mentioned modules may also be part of the device and may be run in the server 10 provided in Example 1.
[0232] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0233] Embodiment 11
[0234] An embodiment of the present application may provide a computer terminal, which may include a server and a client. The server may be any server in a server device group or a cloud server.
[0235] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0236] In this embodiment, the computer terminal can execute the program code in the method.
[0237] Optionally, Fig.15 1 is a block diagram of a computer terminal according to Embodiment 11 of the present application. Fig.15 As shown, the computer terminal A may include: one or more (only one is shown in the figure) processors 1502, a memory 1504, a storage controller, and a peripheral interface, wherein the peripheral interface is connected to a radio frequency module, an audio module, and a display.
[0238] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implementing the methods in the above embodiments. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal A via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0239] The processor can call the information and application program stored in the memory through the transmission device to perform the following steps: obtaining an original time series set, wherein the original time series set includes an original time series of at least one time variable, and the original time series is composed of original sequence values of multiple time steps; based on the original time series of any time variable in the original time series set, constructing multiple target time series sets corresponding to any time variable, wherein the target time series set includes a target time series of at least one time variable, and the target time series of any time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, except any one The target time series of other time variables except a time variable is composed of random values of multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different; the multiple target time series sets are processed respectively by using the time series model to obtain the processing results of the multiple target time series sets; based on the processing results of the multiple target time series sets, the importance index of any time variable to the time series model is determined, wherein the importance index includes: individual contribution index and overall influence index of multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except any time step.
[0240] Optionally, the processor may also execute the program code of the following steps: starting from any time step, sliding according to multiple preset lengths to obtain multiple time step intervals; determining the original sequence values of multiple time step intervals from the original time series of any time variable; and processing the original sequence values of multiple time step intervals using a data generation model to generate target time series in multiple target time series sets.
[0241] Optionally, the processor may also execute the following program code: constructing an initial sub-time series and an initial mask matrix corresponding to any time step interval based on the original sequence value of any time step interval, wherein the length of the initial sub-time series is the same as the length of the target time series, and the initial mask matrix is used to characterize the position of the original sequence value of any time step interval in the initial sub-time series; inputting the initial sub-time series and the initial mask matrix into the data generation model, and obtaining the target time series output by the data generation model.
[0242] Optionally, the processor may also execute the program code of the following steps: obtaining a sample time series; constructing multiple training mask matrices, wherein different training mask matrices correspond to different sample time step intervals; obtaining the product of the sample time series and multiple training mask matrices to obtain multiple training time series; and training the initial generation model using multiple training time series and the training mask matrices corresponding to the multiple training time series to obtain a data generation model.
[0243] Optionally, the processor may also execute the program code of the following steps: determining the multi-order interaction intensity of any time step based on the processing results of multiple target time series sets; determining the individual contribution index of any time step based on the multi-order interaction intensity of any time step; obtaining the overall influence index of any time step based on the multi-order interaction intensity of any time step and the individual contribution index of any time step.
[0244] Optionally, the processor may also execute the program code of the following steps: based on the lengths of the time step intervals contained in the multiple target time series sets, dividing the processing results of the multiple target time series sets to obtain multiple processing result sets, wherein the lengths of the time step intervals contained in the target time series sets corresponding to the same processing result set are the same; based on the processing results in any one of the processing result sets, determining any first-order interaction strength, wherein the order of any first-order interaction strength corresponds to the length of the time step interval corresponding to any one of the processing result sets.
[0245] Optionally, the processor may also execute the following program code: based on the original time series of any time variable, construct a first time series set corresponding to any time step, and a second time series set corresponding to the time step before any time step, wherein the first time series set includes a first time series of at least one time variable, the first time series of any time variable is composed of the original sequence values from the first time step to any time step, and the random values from any time step to the last time step, and the second time series set includes a second time series of at least one time variable, the second time series of any time variable is composed of the first time step to any time step. The method comprises the following steps: a first time series set is processed by a time series model to obtain a first processing result of the first time series set, and a second time series set is processed by a time series model to obtain a second processing result of the second time series set; a difference between the first processing result and the second processing result is obtained to obtain a processing result difference; multi-order interaction intensities of any time step are summarized to obtain a first summary result; and a difference between the processing result difference and the first summary result is obtained to obtain an individual contribution index of any time step.
[0246] Optionally, the processor may also execute the following program code steps: summarizing the multi-order interaction intensities of multiple time steps to obtain a second summary result; obtaining the sum of the second summary result and the individual contribution index of any time step to obtain an overall impact index of the interaction between any time step and other time steps.
[0247] In an embodiment of the present application, an original time series set is obtained; based on the original time series of any time variable in the original time series set, multiple target time series sets corresponding to any time variable are constructed; the multiple target time series sets are processed respectively by using a time series model to obtain processing results of the multiple target time series sets; based on the processing results of the multiple target time series sets, an importance index of any time variable for the time series model is determined. For any time variable included in the original time series set, on the basis of the original sequence value corresponding to the time variable, multiple target time series sets are constructed in which no other time variables will affect the numerical value corresponding to the time variable, and the importance index of different time steps in different time variables relative to the time series model is determined according to the processing results of the time series model for these multiple target time series sets. This can improve the rationality and accuracy of the determined importance index, thereby improving the interpretability of the time series model determined according to the importance index, and further solving the technical problem of low accuracy in interpreting unknown time series models in related technologies.
[0248] It can be understood by those skilled in the art that Fig.15 The structure shown is for illustration only. The computer terminal A may also be a smart phone (eg, tablet computer, PDA, mobile Internet device (MID), PAD, etc. Fig.15 The structure of the electronic device is not limited. For example, the computer terminal A may also include Fig.15 More or fewer components (such as network interfaces, display devices, etc.) as shown in the figure, or Fig.15 Different configurations shown.
[0249] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0250] Example 10
[0251] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the storage medium is located is controlled to execute any one of the above-mentioned time series processing methods.
[0252] Embodiment 11
[0253] The embodiment of the present application further provides a computer program product. Optionally, in this embodiment, the computer program product may include a computer program, and the computer program implements the method provided in the embodiment when executed by a processor.
[0254] Example 12
[0255] The embodiments of the present application also provide a computer program product. Optionally, the computer program product may include a non-volatile computer-readable storage medium, which may be used to store a computer program, and when the computer program is executed by a processor, the method provided in the embodiments is implemented.
[0256] Embodiment 13
[0257] The embodiment of the present application further provides a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, the method provided in the above embodiment is implemented.
[0258] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0259] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0260] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0261] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0262] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0263] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0264] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A time series processing method, characterized in that: include: Acquire an original time series set, wherein the original time series set includes an original time series of at least one time variable, the original time series is composed of original sequence values of multiple time steps, and the original time series includes at least one of the following: a power data time series, a meteorological data time series, and a financial data time series; Based on the original time series of any one time variable in the original time series set, construct multiple target time series sets corresponding to the any one time variable, wherein the target time series set includes the target time series of the at least one time variable, the target time series of the any one time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, the target time series of other time variables except the any one time variable are composed of the random values of the multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different; Using the time series model to process the multiple target time series sets respectively, to obtain processing results of the multiple target time series sets, wherein the processing results correspond to the functions of the time series model; Based on the processing results of the multiple target time series sets, determine the importance index of any one of the time variables for the time series model, wherein the importance index includes: individual contribution indexes and overall influence indexes of the multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any one of the time steps and other time steps except the any one of the time steps.
2. The method according to claim 1, characterized in that: The constructing a plurality of target time series sets corresponding to any one time variable based on the original time series of any one time variable in the original time series set includes: Starting from any one of the time steps, sliding according to a plurality of preset lengths to obtain a plurality of time step intervals; Determine the original sequence values of the multiple time step intervals from the original time series of any one of the time variables; The original sequence values of the multiple time step intervals are processed using a data generation model to generate the target time series in the multiple target time series sets.
3. The method according to claim 2, characterized in that The using of the data generation model to process the original sequence values of the multiple time step intervals to generate the target time series in the multiple target time series sets includes: Based on the original sequence value of any time step interval, construct an initial sub-time series and an initial mask matrix corresponding to the arbitrary time step interval, wherein the length of the initial sub-time series is the same as the length of the target time series, and the initial mask matrix is used to represent the position of the original sequence value of the arbitrary time step interval in the initial sub-time series; The initial sub-time series and the initial mask matrix are input into the data generation model, and the target time series output by the data generation model is obtained.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: Get sample time series; Construct multiple training mask matrices, where different training mask matrices correspond to different sample time step intervals; Obtaining the product of the sample time series and the multiple training mask matrices to obtain multiple training time series; The initial generation model is trained using the multiple training time series and the training mask matrices corresponding to the multiple training time series to obtain the data generation model.
5. The method according to claim 1, characterized in that The determining, based on the processing results of the plurality of target time series sets, an importance index of the arbitrary time variable for the time series model comprises: Determining the multi-order interaction intensity of any one time step based on the processing results of the multiple target time series sets; Determining an individual contribution index of any time step based on the multi-order interaction intensity of any time step; Based on the multi-order interaction intensity of the arbitrary time step and the individual contribution index of the arbitrary time step, the overall influence index of the arbitrary time step is obtained.
6. The method according to claim 5, characterized in that The determining the multi-order interaction strength of any one time step based on the processing results of the multiple target time series sets includes: Based on the lengths of the time step intervals included in the multiple target time series sets, the processing results of the multiple target time series sets are divided to obtain multiple processing result sets, wherein the lengths of the time step intervals included in the target time series sets corresponding to the same processing result set are the same; Based on the processing results in any one of the processing result sets, an arbitrary first-order interaction strength is determined, wherein the order of the arbitrary first-order interaction strength corresponds to the length of the time step interval corresponding to the arbitrary one of the processing result sets.
7. The method according to claim 5, characterized in that The determining of the individual contribution index of the arbitrary time step based on the multi-order interaction intensity of the arbitrary time step includes: Based on the original time series of any one of the time variables, a first time series set corresponding to the any one of the time steps and a second time series set corresponding to a time step before the any one of the time steps are constructed, wherein the first time series set includes the first time series of the at least one time variable, the first time series of the any one of the time variables is composed of the original sequence values from the first time step to the any one of the time steps, and the random values from the any one of the time steps to the last time step, and the second time series set includes the second time series of the at least one time variable, the second time series of the any one of the time variables is composed of the original sequence values from the first time step to the time step before the any one of the time steps, and the random values from the time step before the any one of the time steps to the last time step; Processing the first time series set using the time series model to obtain a first processing result of the first time series set, and processing the second time series set using the time series model to obtain a second processing result of the second time series set; Obtaining a difference between the first processing result and the second processing result to obtain a processing result difference; Summarizing the multi-order interaction intensities of any one time step to obtain a first summary result; The difference between the processing result difference and the first summary result is obtained to obtain the individual contribution index of any time step.
8. The method according to claim 5, characterized in that The overall influence index of any time step is obtained based on the multi-order interaction intensity of any time step and the individual contribution index of any time step, including: Summarizing the multi-order interaction intensities of the multiple time steps to obtain a second summary result; The sum of the second summary result and the individual contribution index of the arbitrary time step is obtained to obtain the overall impact index of the interaction between the arbitrary time step and other time steps.
9. A method for processing power data, characterized in that: include: Acquire original power data, wherein the original power data is composed of original power data values of multiple time steps; Based on the original power data, construct multiple target power data, wherein the target power data is composed of the original power data value of the time step interval and the random value of other time steps except the time step interval, and the starting time step and / or length of the time step interval corresponding to different target power data are different; Using a power prediction model to process the multiple target power data respectively to obtain power prediction results of the multiple target power data; Based on the power prediction results of the multiple target power data, the importance indicators of the multiple time steps for the power prediction model are determined, wherein the importance indicators include: individual contribution indicators and overall impact indicators of the multiple time steps, and the overall impact indicator is used to characterize the impact of the interaction between any time step and other time steps except the any time step.
10. A method for detecting device anomaly, characterized in that: include: Acquire original operation and maintenance data of the device to be detected, wherein the original operation and maintenance data is composed of original operation and maintenance attribute values of multiple time steps; Based on the original operation and maintenance data, construct multiple target operation and maintenance data, wherein the target operation and maintenance data is composed of the original operation and maintenance attribute value of the time step interval and the random value of other time steps except the time step interval, and the starting time step and / or length of the time step interval corresponding to different target operation and maintenance data are different; Using an anomaly detection model to process the multiple target operation and maintenance data respectively to obtain detection results of the multiple target operation and maintenance data; Based on the detection results of the multiple target operation and maintenance data, determine the importance indexes of the multiple time steps for the anomaly detection model, wherein the importance indexes include: individual contribution indexes and overall impact indexes of the multiple time steps, and the overall impact index is used to characterize the influence of the interaction between any time step and other time steps except the any time step; Extracting features from the original operation and maintenance data based on the importance index to obtain operation and maintenance features; The operation and maintenance features are processed using the anomaly detection model to obtain a target detection result of the device to be detected, wherein the target detection result is used to characterize whether the device to be detected has an abnormality.
11. A time series processing method, characterized in that: include: In response to an input instruction on the operation interface, an original time series set is displayed on the operation interface, wherein the original time series set includes an original time series of at least one time variable, the original time series is composed of original sequence values of multiple time steps, and the original time series includes at least one of the following: a power data time series, a meteorological data time series, and a financial data time series; In response to a processing instruction acting on the operation interface, importance indicators of the multiple time steps are displayed on the operation interface, wherein the importance indicators are determined based on processing results of multiple target time series sets corresponding to any one time variable, the processing results of the multiple target time series sets are the results of processing the multiple target time series sets respectively using a time series model, and the processing results correspond to the function of the time series model. The multiple target time series sets are time series sets constructed based on the original time series of any one time variable in the original time series set, and the target time series set contains the target time series of at least one time variable, the target time series of any one time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, the target time series of other time variables except the any one time variable is composed of the random values of the multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different, and the importance indicators include: individual contribution indicators and overall influence indicators of the multiple time steps, and the overall influence indicator is used to characterize the influence of the interaction between any one time step and other time steps except the any one time step.
12. A time series processing method, characterized in that: include: Acquire an original time series set by calling a first interface, wherein the first interface includes a first parameter, a parameter value of the first parameter includes the original time series set, the original time series set includes an original time series of at least one time variable, the original time series is composed of original sequence values of multiple time steps, and the original time series includes at least one of the following: a power data time series, a meteorological data time series, and a financial data time series; Based on the original time series of any one time variable in the original time series set, construct multiple target time series sets corresponding to the any one time variable, wherein the target time series set includes the target time series of the at least one time variable, the target time series of the any one time variable is composed of the original sequence value of the time step interval and the random values of other time steps except the time step interval, the target time series of other time variables except the any one time variable are composed of the random values of the multiple time steps, and the starting time step and / or length of the time step interval corresponding to different target time series sets are different; Using the time series model to process the multiple target time series sets respectively, to obtain processing results of the multiple target time series sets, wherein the processing results correspond to the functions of the time series model; Based on the processing results of the multiple target time series sets, determining the importance index of the any time variable for the time series model, wherein the importance index includes: individual contribution indexes and overall influence indexes of the multiple time steps, and the overall influence index is used to characterize the influence of the interaction between any time step and other time steps except the any time step; The importance index of the at least one time variable is output by calling a second interface, wherein the second interface includes a second parameter, and a parameter value of the second parameter includes the importance index of the at least one time variable.
13. A computer terminal, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 12 when running.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 12.
15. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Industrial system time delay determination and controlled quantity prediction method based on time correlation
CN112270449A
Multi-dimensional time sequence interpretable prediction method based on multi-attention collaborative network
CN117764178A
