Data mining method, system and storage medium based on time series

Through the MatrixProfile matrix profiling algorithm and the Euclidean distance algorithm, the problem of low efficiency and accuracy in predicting massive data patterns in enterprise online monitoring is solved, efficient pattern discovery and prediction of time series data is achieved, and the efficiency of pattern prediction is improved. and accuracy, enhancing the usability of pattern discovery.

CN118296406BActive Publication Date: 2024-10-15SHENZHEN AEROSPACE SMART CITY SYST TECH RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410727169.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-10-15
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

The existing technology is not efficient and accurate in predicting patterns of massive data in enterprise online monitoring. Traditional time series pattern discovery is difficult to interpret and apply, and it can only identify high-frequency patterns and cannot accurately identify a small number of patterns. Time series forecasting is less efficient and accurate.

Method used

The MatrixProfile matrix profiling algorithm is used for pattern discovery and prediction of time series data. Historical data is converted into high-dimensional feature space vectors through embedded learning. The length of the sliding time window is selected, the data is segmented, a distance matrix is ​​generated, and time is extracted. Sequence subsequence patterns, build a typical pattern library, and calculate the similarity of the data fragments to be mined through the Euclidean distance algorithm to achieve pattern prediction.

Benefits of technology

It improves the efficiency of discovering repeated patterns and periodic patterns in time series data, and can quickly locate typical patterns of emerging data fragments. It is suitable for large-scale real-time monitoring and offline analysis scenarios, improves the efficiency and accuracy of pattern prediction, and enhances Availability of pattern discovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118296406B_ABST
    Figure CN118296406B_ABST
Patent Text Reader

Abstract

The present invention discloses a data mining method, system and storage medium based on time series, and the method comprises: performing data mining of time series based on Matrix Profile matrix portrait algorithm model, and further improving the accuracy and usability of the algorithm model by establishing a typical pattern library. Performing similarity calculation and search through standardized Euclidean distance to complete pattern discovery and prediction. The method of the present invention predicts the occurrence of the next pattern, which improves the efficiency and accuracy of pattern prediction; the method of the present invention combines actual business scenarios, establishes a typical pattern library, combines actual data training, completes typical pattern discovery, and improves the usability of pattern discovery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data mining, and in particular relates to a data mining method, system and storage medium based on time series. Background Art

[0002] In the online monitoring business of enterprises, how to mine the emission patterns of enterprises from massive monitoring data and predict the emission situation of enterprises in advance has very important guiding value for enterprise supervision and law enforcement departments. Existing data mining technologies:

[0003] The efficiency and accuracy of pattern prediction for massive amounts of data are low. Furthermore, traditional time series pattern discovery methods are not highly usable, making them difficult to interpret and apply. They can only identify highly specific patterns, but cannot accurately identify patterns that occur infrequently. Furthermore, traditional time series predictions predict the value at the next point in time, making the efficiency and accuracy of predicting the next pattern low. In summary, traditional time series pattern discovery methods are not highly usable, difficult to interpret and apply, and can only identify highly specific patterns, but cannot accurately identify patterns that occur infrequently. Summary of the Invention

[0004] In response to the above problems, the present invention provides a time series-based data mining method, system and storage medium, which perform pattern discovery and prediction through time series. It can not only efficiently discover repeated patterns and periodic laws in time series data, but also quickly locate the most similar typical pattern for newly emerging data fragments. It is suitable for large-scale real-time monitoring and offline analysis scenarios.

[0005] According to a first aspect of an embodiment of the present disclosure, a time series-based data mining method is provided, the method comprising the following steps:

[0006] Utilize the MatrixProfile matrix profiling algorithm to pre-train the model. This involves converting the original historical time series data into a vector representation of a high-dimensional feature space through embedded learning. The appropriate sliding time window length is then selected to segment the continuous historical time series data set and generate vectors for the sliding time window.

[0007] The MatrixProfile matrix profiling algorithm is used to calculate the vectors of the sliding time window to generate a distance matrix. Time series subsequence patterns are extracted from the distance matrix. The time series subsequence patterns are combined with actual data to screen out typical pattern vectors and build a typical pattern library.

[0008] The similarity between the time series data segments to be mined and each typical pattern vector is calculated through the Euclidean distance algorithm, and the data segments with similarity greater than the preset threshold are output to realize the similarity calculation and prediction of the time series data segments.

[0009] In some embodiments, the original historical time series data is converted into a multidimensional vector representation of a high-dimensional feature space through embedded learning, specifically including: obtaining a vector representation of the high-dimensional feature space by calculating the z-normalized Euclidean distance between two time series subsequences, wherein the z-normalized Euclidean distance is related to the mean, standard deviation and dot product calculation of the time series subsequences.

[0010] In some embodiments, the vector of the sliding time window is calculated through the MatrixProfile matrix profiling algorithm to generate a distance matrix, and the time series subsequence pattern is extracted from the distance matrix, specifically including: setting the sliding window length, and calculating the distance of the window subsequence relative to the entire time series through the MatrixProfile matrix profiling algorithm.

[0011] In some embodiments, extracting a time series subsequence pattern from the distance matrix specifically includes: setting an exclusion region to ignore unimportant matches, where the exclusion region is only half of the window size (m) before and after the current window index; ignoring the values ​​at these indexes when calculating the minimum distance and the nearest neighbor index; and calculating the minimum distance and the nearest neighbor index to find a recurring pattern in the time series as the time series subsequence pattern.

[0012] According to a second aspect of an embodiment of the present disclosure, a time series-based data mining system is provided, the system comprising:

[0013] The time series data feature extraction module is used to pre-train the model using the MatrixProfile matrix profiling algorithm. It converts the original historical time series data into a vector representation of a high-dimensional feature space through embedded learning. It also selects an appropriate sliding time window length to segment the continuous historical time series data set and generate vectors of the sliding time window.

[0014] A typical pattern library establishment module is used to calculate the vectors of the sliding time window using the MatrixProfile matrix profiling algorithm to generate a distance matrix, extract time series subsequence patterns from the distance matrix, combine the time series subsequence patterns with actual data, screen out typical pattern vectors, and construct a typical pattern library;

[0015] The time series data prediction module is used to calculate the similarity between the time series data segments to be mined and each typical pattern vector through the Euclidean distance algorithm, output the data segments whose similarity is greater than the preset threshold, and realize the similarity calculation and prediction of the time series data segments.

[0016] In some embodiments, in the time series data feature extraction module, the original historical time series data is converted into a multi-dimensional vector representation of a high-dimensional feature space through embedded learning, specifically including: obtaining a vector representation of the high-dimensional feature space by calculating the z-normalized Euclidean distance between two time series subsequences, wherein the z-normalized Euclidean distance is related to the mean, standard deviation and dot product calculation of the time series subsequences, wherein the mean and standard deviation are obtained within O(1) time complexity.

[0017] In some embodiments, in the typical pattern library establishment module, the vector of the sliding time window is calculated through the MatrixProfile matrix portrait algorithm to generate a distance matrix, and the time series subsequence pattern is extracted from the distance matrix, specifically including: setting the sliding window length, and calculating the distance of the window subsequence relative to the entire time series through the MatrixProfile matrix portrait algorithm.

[0018] In some embodiments, in the typical pattern library establishment module, time series subsequence patterns are extracted from the distance matrix, specifically including: setting an exclusion area to ignore unimportant matches, where the exclusion area is only half of the window size (m) before and after the current window index; ignoring the values ​​at these indexes when calculating the minimum distance and nearest neighbor index; calculating the minimum distance and nearest neighbor index to find repeated patterns in the time series as time series subsequence patterns.

[0019] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned time series-based data mining method when executing the program.

[0020] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps of the above-mentioned time series-based data mining method are implemented.

[0021] The embodiments of the present disclosure provide a data mining method, system and storage medium based on time series, which performs data mining of time series based on the Matrix Portfolio (MP) matrix portrait algorithm model, and further improves the accuracy and usability of the algorithm model by establishing a typical pattern library. Similarity calculation and search are performed through the standardized-Euclidean distance to complete pattern discovery and prediction. Its beneficial effects include: traditional time series prediction is to predict the value of the next time point, and the method of the present invention is to predict the occurrence of the next pattern, which improves the efficiency and accuracy of pattern prediction; the present invention combines actual business scenarios, establishes a typical pattern library, combines actual data training, completes typical pattern discovery, and greatly improves the usability of pattern discovery.

[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present invention and, together with the description, serve to explain the principles of the present invention.

[0024] Figure 1 1 is a flow chart of a data mining method based on time series according to an embodiment of the present invention;

[0025] Figure 2 Schematic diagram of the structure of a time series-based data mining system according to an embodiment of the present invention;

[0026] Figure 3 It is a schematic diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0028] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0029] The present invention provides a method, system, and storage medium for data mining based on time series, and provides the following embodiments:

[0030] Example 1 is used to illustrate the data mining method based on time series, see Figure 1 , is a flow chart of the data mining method based on time series. The specific steps include:

[0031] S1. Using the MatrixProfile matrix profiling algorithm pre-training model, the original historical time series data is converted into a vector representation of a high-dimensional feature space through embedded learning. An appropriate sliding time window length is selected to segment the continuous historical time series data set and generate a vector of the sliding time window.

[0032] S2. Calculate the vectors of the sliding time window using the MatrixProfile matrix profiling algorithm to generate a distance matrix, extract time series subsequence patterns from the distance matrix, combine the time series subsequence patterns with actual data, screen out typical pattern vectors, and construct a typical pattern library;

[0033] S3. Calculate the similarity between the time series data segments to be mined and each typical pattern vector using the Euclidean distance algorithm, output the data segments whose similarity is greater than a preset threshold, and realize the similarity calculation and prediction of the time series data segments.

[0034] Through embedded learning, the original historical time series data is converted into a multidimensional vector representation of a high-dimensional feature space, specifically including: obtaining a vector representation of the high-dimensional feature space by calculating the z-normalized Euclidean distance between two time series subsequences, wherein the z-normalized Euclidean distance is related to the mean, standard deviation and dot product calculation of the time series subsequences.

[0035] Specifically, the z-normalized Euclidean distance formula is: ,in 、 Represents two normalized points in n-dimensional Euclidean space.

[0036] Normalization formula: , where x represents the sample value, min(x) represents the minimum sample value, and max(x) represents the maximum sample value.

[0037] The MatrixProfile algorithm calculates the vectors in the sliding time window to generate a distance matrix. Time series subsequence patterns are then extracted from this distance matrix. Specifically, this involves setting the sliding window length and calculating the distance of the window subsequence relative to the entire time series using the MatrixProfile algorithm. The sliding window length is based on data, and the data corresponding to the sliding time window is the window subsequence.

[0038] Extracting time series subsequence patterns from the distance matrix specifically includes: setting an exclusion region to ignore unimportant matches, where the exclusion region is only half of the window size (m) before and after the current window index; ignoring the values ​​at these indexes when calculating the minimum distance and nearest neighbor index; and calculating the minimum distance and nearest neighbor index to find repeated patterns in the time series as the time series subsequence patterns.

[0039] The Matrix Profile algorithm has two main components: the distance profile and the profile index. The distance profile is a vector of minimum normalized Euclidean distances. The profile index contains the index of its first nearest neighbor. In other words, the profile index is the position of the subsequence with the most similar distance profile. The algorithm for calculating the matrix profile uses a sliding window approach. When the window size is m, the specific steps include:

[0040] Step 1: Calculate the distance between the window subsequence and the entire time series;

[0041] Step 2. Set the exclusion area to ignore unimportant matches;

[0042] Step 3: Update the distance profile with the minimum value.

[0043] Step 4: Set the first nearest neighbor index;

[0044] The distance calculation in the above steps will occur nm + 1 times; where n is the length of the time series and m is the window size. Let motifs be recurring patterns in the time series, and discards be anomalies. By calculating the matrix profile, the top K motifs or discards can be found. The matrix profile stores distances in Euclidean space, meaning that distances close to 0 are most similar to other subsequences in the time series, while distances far from 0 (e.g., 100) are dissimilar to any other subsequence. Extracting the minimum distance yields the motif, and the maximum distance yields the discard.

[0045] In the specific implementation process of S1, first, the present invention adopts a pre-trained MatrixProfile (MP) matrix portrait algorithm model, that is, the original historical time series data is converted into a multidimensional vector representation V1 in a high-dimensional feature space through embedded learning technology. This step ensures the effective compression and dimensionality reduction of the data while retaining the key pattern characteristics of the original data. On this basis, an appropriate sliding time window length M1 is selected to segment the continuous historical data set to adapt to the MP algorithm's processing requirements for time series segments, and further extract the spatiotemporal characteristics within the local time period.

[0046] During the S2 implementation, the MatrixProfile (MP) algorithm is used to calculate the vectors within all sliding windows generated in the above steps. This involves using the normalized Euclidean distance formula to calculate the distances of subsequences of all window sizes relative to the entire time series, generating a representative minimum distance matrix from which significant, non-random subsequence patterns within the time series are extracted. These patterns are then aggregated and integrated with actual business operations to identify those with business significance. This results in a highly generalizable and universal library of typical patterns, each of which corresponds to a typical pattern vector.

[0047] Specifically, in an example of monitoring patterns and anomalies in enterprise wastewater data, an algorithm extracts significant patterns from the enterprise's historical wastewater monitoring data. Combined with actual discharge data, this algorithm further analyzes and selects business-relevant patterns, such as unauthorized discharge at night and data falsification, to form a typical pattern library. For predictive models, the Euclidean distance algorithm calculates the similarity between the time series data segments to be mined and the typical pattern vectors. Data segments with similarity exceeding a preset threshold are output, enabling similarity calculation and prediction of time series data segments.

[0048] During the specific implementation of S3, the similarity calculation and prediction of typical pattern vectors and time series data segments to be searched are performed through the standardized-Euclidean distance algorithm. The distance between the time series data segments to be searched and each pattern vector in the typical pattern library is calculated through the Euclidean distance algorithm, and the data segments greater than the preset threshold are output to realize the similarity calculation and prediction of time series data.

[0049] Another embodiment is used to illustrate a data mining system based on time series, see Figure 2 , the system 200 includes:

[0050] The time series data feature extraction module 210 is used to use the MatrixProfile matrix profiling algorithm pre-training model to convert the original historical time series data into a vector representation of a high-dimensional feature space through embedded learning, and select an appropriate sliding time window length to segment the continuous historical time series data set to generate a vector of the sliding time window;

[0051] The typical pattern library building module 220 is used to calculate the vectors of the sliding time window using the MatrixProfile matrix profiling algorithm to generate a distance matrix, extract time series subsequence patterns from the distance matrix, combine the time series subsequence patterns with actual data, screen out typical pattern vectors, and build a typical pattern library;

[0052] The time series data prediction module 230 is used to calculate the similarity between the time series data segments to be mined and each typical pattern vector using the Euclidean distance algorithm, output the data segments whose similarity is greater than a preset threshold, and realize the similarity calculation and prediction of the time series data segments.

[0053] In the time series data feature extraction module 210, the original historical time series data is converted into a multi-dimensional vector representation of a high-dimensional feature space through embedded learning, specifically including: obtaining a vector representation of the high-dimensional feature space by calculating the z-normalized Euclidean distance between two time series subsequences, wherein the z-normalized Euclidean distance is related to the mean, standard deviation and dot product calculation of the time series subsequences, wherein the mean and standard deviation are obtained within O(1) time complexity.

[0054] In the typical pattern library establishment module 220, the vector of the sliding time window is calculated through the MatrixProfile matrix portrait algorithm to generate a distance matrix, and the time series subsequence pattern is extracted from the distance matrix, specifically including: setting the sliding window length, and calculating the distance of the window subsequence relative to the entire time series through the MatrixProfile matrix portrait algorithm.

[0055] In the typical pattern library establishment module 220, the time series subsequence pattern is extracted from the distance matrix, specifically including: setting an exclusion area to ignore unimportant matches, and the exclusion area is only half of the window size (m) before and after the current window index; when calculating the minimum distance and the nearest neighbor index, the values ​​at these indexes will be ignored; the minimum distance and the nearest neighbor index are calculated to find the repeated pattern in the time series as the time series subsequence pattern.

[0056] In addition to the upper module, the system 200 may also include other components. However, since these components are irrelevant to the content of the embodiment of the present disclosure, their illustration and description are omitted here.

[0057] For other specific working processes of the time series-based data mining system 200 , please refer to the description of the above-mentioned embodiment of the time series-based data mining method, which will not be repeated here.

[0058] Another embodiment is used to illustrate that the system of the present invention can also be used with the help of Figure 3 The architecture of the computing device shown is implemented. Figure 3 The architecture of the computing device is shown in FIG. Figure 3 As shown, a computer system 310, a system bus 330, one or more CPUs 340, an input / output 320, a memory 350, etc. The memory 350 can store various data or files used for computer processing and / or communication, as well as program instructions executed by the CPU, including the time series-based data mining method of the embodiment. Figure 3 The architecture shown is only exemplary and may be adjusted based on actual needs when implementing different devices. Figure 3 One or more components in the memory 350. The memory 350, as a computer-readable storage medium, can be used to store software programs, computer executable programs, and modules, such as program instructions / modules corresponding to the time series-based data mining method in the embodiment of the present invention (for example, the time series data feature extraction module 210, the typical pattern library establishment module 220, and the time series data prediction module 230 in the time series-based data mining system 200). One or more CPUs 340 execute various functional applications and data processing of the system of the present invention by running the software programs, instructions, and modules stored in the memory 350, that is, to implement the above-mentioned time series-based data mining method, which includes the following steps:

[0059] Using the MatrixProfile matrix profiling algorithm pre-training model, the original historical time series data is converted into a vector representation of a high-dimensional feature space through embedded learning. The appropriate sliding time window length is selected to segment the continuous historical time series data set and generate vectors of the sliding time window.

[0060] The MatrixProfile matrix profiling algorithm is used to calculate the vectors of the sliding time window to generate a distance matrix. Time series subsequence patterns are extracted from the distance matrix. The time series subsequence patterns are combined with actual data to screen out typical pattern vectors and build a typical pattern library.

[0061] The similarity between the time series data segments to be mined and each typical pattern vector is calculated through the Euclidean distance algorithm, and the data segments with similarity greater than the preset threshold are output to realize the similarity calculation and prediction of the time series data segments.

[0062] Of course, the processor of the server provided by the embodiment of the present invention is not limited to executing the method operations described above, but can also execute related operations in the time series-based data mining method provided by any embodiment of the present invention.

[0063] The memory 350 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal, etc. Furthermore, the memory 350 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some instances, the memory 350 may further include memory remotely located relative to one or more CPUs 340, and these remote memories may be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0064] The input / output 320 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The input / output 320 may also include a display device such as a display screen.

[0065] Embodiments of the present invention also provide a non-transitory computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements the time series-based data mining method described in the above embodiments. The computer-readable storage medium of the embodiments of the present invention may be any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0066] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0067] The program code embodied on the storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0068] In addition, other specific working processes of a non-transitory computer-readable storage medium refer to the description of the above-mentioned embodiment of the time series-based data mining method, which will not be repeated here.

[0069] In summary, the technical solutions provided by the above embodiments provide a method, system and storage medium for data mining based on time series, which performs data mining of time series based on the Matrix Portal (MP) matrix portrait algorithm model, and further improves the accuracy and usability of the algorithm model by establishing a typical pattern library. Similarity calculation and search are performed through the standardized-Euclidean distance to complete pattern discovery and prediction. Its beneficial effects include: traditional time series prediction is to predict the value of the next time point, and the method of the present invention is to predict the occurrence of the next pattern, which improves the efficiency and accuracy of pattern prediction; the present invention combines actual business scenarios, establishes a typical pattern library, combines actual data training, completes typical pattern discovery, and greatly improves the usability of pattern discovery.

[0070] In this document, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a step or method that comprises a series of elements includes not only those elements, but also includes other elements not expressly listed, or also includes elements inherent to such step or method.

[0071] The above is a further detailed description of the present invention in conjunction with specific preferred embodiments, and the specific implementation of the present invention should not be considered to be limited to these descriptions. For those skilled in the art of the present invention, without departing from the concept of the present invention, several simple deductions or substitutions can be made, which should be considered to fall within the scope of protection of the present invention.

Claims

1. A data mining method based on time series, characterized in that: The method comprises the following steps: Use the MatrixProfile matrix profiling algorithm to pre-train the model, that is, convert the original historical time series data into a vector representation of a high-dimensional feature space through embedded learning, select an appropriate sliding time window length, segment the continuous historical time series data set, and generate a vector of the sliding time window; The vector of the sliding time window is calculated by the MatrixProfile matrix profiling algorithm to generate a distance matrix, and the time series subsequence pattern is extracted from the distance matrix. The time series subsequence pattern is combined with the actual data to screen out the typical pattern vector and build a typical pattern library; The similarity between the time series data fragments to be mined and each typical pattern vector is calculated by the Euclidean distance algorithm, and the data fragments whose similarity is greater than the preset threshold are output to realize the similarity calculation and prediction of the time series data fragments; Among them, extracting the time series subsequence pattern from the distance matrix specifically includes: setting an exclusion area to ignore unimportant matches, the exclusion area is half of the window size before and after the current window index; when calculating the minimum distance and the nearest neighbor index through the Euclidean distance, the value at the index will be ignored; through the minimum distance and the nearest neighbor index, the repeated pattern in the time series is found as the time series subsequence pattern.

2. The time series-based data mining method according to claim 1, characterized in that: The original historical time series data is converted into a multi-dimensional vector representation of a high-dimensional feature space through embedded learning, specifically including: obtaining a vector representation of the high-dimensional feature space by calculating the z-normalized Euclidean distance between two time series subsequences, wherein the z-normalized Euclidean distance is related to the mean, standard deviation and dot product calculation of the time series subsequences.

3. The time series-based data mining method according to claim 1, characterized in that: The vector of the sliding time window is calculated by the MatrixProfile matrix profiling algorithm to generate a distance matrix, which specifically includes: setting the sliding window length and calculating the distance of the window subsequence relative to the entire time series by the MatrixProfile matrix profiling algorithm.

4. A time series-based data mining system, characterized in that: The system comprises: The time series data feature extraction module is used to use the MatrixProfile matrix profiling algorithm to pre-train the model, transform the original historical time series data into a vector representation of a high-dimensional feature space through embedded learning, select an appropriate sliding time window length, segment the continuous historical time series data set, and generate a vector of the sliding time window; A typical pattern library building module is used to calculate the vector of the sliding time window through the MatrixProfile matrix profiling algorithm to generate a distance matrix, extract the time series subsequence pattern from the distance matrix, combine the time series subsequence pattern with the actual data, screen out the typical pattern vector, and build a typical pattern library; The time series data prediction module is used to calculate the similarity between the time series data fragments to be mined and each typical pattern vector through the Euclidean distance algorithm, output the data fragments whose similarity is greater than the preset threshold, and realize the similarity calculation and prediction of the time series data fragments; Among them, extracting the time series subsequence pattern from the distance matrix specifically includes: setting an exclusion area to ignore unimportant matches, the exclusion area is half of the window size before and after the current window index; when calculating the minimum distance and the nearest neighbor index through the Euclidean distance, the value at the index will be ignored; through the minimum distance and the nearest neighbor index, the repeated pattern in the time series is found as the time series subsequence pattern.

5. The time series-based data mining system according to claim 4, characterized in that: In the time series data feature extraction module, the original historical time series data is converted into a multi-dimensional vector representation of a high-dimensional feature space through embedded learning, specifically including: obtaining a vector representation of the high-dimensional feature space by calculating the z-normalized Euclidean distance between two time series subsequences, and the z-normalized Euclidean distance is related to the mean, standard deviation and dot product calculation of the time series subsequences.

6. The time series-based data mining system according to claim 4, characterized in that: In the typical pattern library establishment module, the vector of the sliding time window is calculated through the MatrixProfile matrix profiling algorithm to generate a distance matrix, which specifically includes: setting the sliding window length and calculating the distance of the window subsequence relative to the entire time series through the MatrixProfile matrix profiling algorithm.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the time series-based data mining method according to any one of claims 1 to 3 are implemented.

8. A non-transitory computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed by a processor, the steps of the time series-based data mining method according to any one of claims 1 to 3 are implemented.

9. A method for monitoring and predicting enterprise wastewater discharge data, characterized in that: The time series-based data mining method described in any one of claims 1 to 3 is used to realize the monitoring and prediction of enterprise wastewater discharge data, including: extracting the time series subsequence patterns in the enterprise's historical wastewater monitoring data through the MatrixProfile matrix profiling algorithm, and building a typical pattern library in combination with the actual emission conditions of the enterprise; calculating the similarity between the time series enterprise wastewater data fragments to be mined and each typical pattern vector through the Euclidean distance algorithm, outputting the enterprise wastewater data fragments whose similarity is greater than a preset threshold, and finally realizing the similarity calculation and prediction of the time series enterprise wastewater data fragments.