A time series data mining method and system

Through dynamic time window and weighted processing technology, the problem of high dimensionality and rapid update of time series data in stock prediction is solved, the efficiency and reliability of data mining are improved, and more accurate stock portfolio and fund allocation decisions are achieved.

CN118364005BActive Publication Date: 2024-10-25NANJING UNIV OF FINANCE & ECONOMICS
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively handle the high-dimensional and rapid update problems of time series data in stock prediction, resulting in low data mining efficiency and insufficient reliability.

Method used

Dynamic time windows are used to divide the time series data into multiple time periods, and dynamic weighting is performed on each time period. Frequent item sets are mined based on the preset fund amount input by the user to determine the pre-purchased stock portfolio and fund allocation.

Benefits of technology

By reducing the amount of data while maintaining data characteristics, the effectiveness and reliability of data mining are improved, and the accuracy of stock predictions is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364005B_ABST
    Figure CN118364005B_ABST
Patent Text Reader

Abstract

The invention discloses a time series data mining method and system, and relates to the technical field of data mining. A time series is collected, and each time subsequence in the time subsequence is data after time series compression of any stock trading data; a dynamic time window is used to divide the time subsequence into multiple time periods, and each time period is dynamically weighted to obtain a corresponding target time subsequence; frequent item set mining is performed according to each target time subsequence and a preset amount of funds input by a user terminal, and the pre-purchased stock combination and the corresponding allocation funds for each stock are determined as data mining results. Through the collection terminal, the stock trading data can be compressed in time series at the front end, while the data characteristics of the time series data are maintained, and the overall data volume is reduced, which can improve the effectiveness of data mining. The cloud server weights and corrects the time series data based on time at the back end, and the influence of the data in each time period on the mining result can improve the reliability of data mining.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Time series is a data type that represents continuous data that changes over time. Time series data is usually composed of a series of timestamps and corresponding numeric values. For example, the closing price of a stock is a time series data, where each timestamp corresponds to the closing price of the stock. Time series analysis is a method used to study time series data. It is mainly used to describe and predict the trend and periodicity of time series data. The application of time series analysis is very wide, and it has a wide range of applications in finance, economics, meteorology, biology, engineering and other fields.

[0003] Due to the high degree of professionalism in stock prediction and the limited stock market information available, time series data mining has become a focus of attention in stock prediction and recommendation. The securities market includes a large number of listed stocks, each of which generates a time series every working day, and stock analysis requires the analysis of the long-term time series of multiple stocks. The existing research methods for building stock investment portfolios are all analyzed from traditional market transaction data and financial data. Due to the characteristics of time series such as large data volume, high data dimension, and fast update, direct data mining is not only computationally intensive, but also inefficient, affecting the reliability and effectiveness of data mining. Summary of the invention

[0004] The purpose of the present invention is to solve the problems of the above-mentioned background technology and to propose a time series data mining method and system.

[0005] The purpose of the present invention can be achieved through the following technical solutions:

[0006] According to a first aspect of an embodiment of the present invention, a time series data mining method is provided, the method is applied to a cloud server, and the method comprises:

[0007] Receive a time series within a historical time period sent by a data collection terminal; the time series includes multiple time subsequences, each time subsequence is data obtained by time series compression of any stock transaction data collected by the collection terminal in the securities market;

[0008] For each time subsequence, a dynamic time window is used to divide the time subsequence into multiple time periods, and each time period of the time subsequence is dynamically weighted to obtain a corresponding target time subsequence; the window size of the dynamic time window sliding is changed at the same time;

[0009] Perform frequent item set mining based on each target time subsequence and the preset amount of funds input by the user terminal, and determine the pre-purchased stock portfolio and the corresponding allocated funds for each stock as the data mining result;

[0010] The data mining result is sent to the user terminal.

[0011] Optionally, the starting point of the dynamic time window is the data point at the most recent moment of the time subsequence, and the moving direction is the data point at the most distant moment. The window size of the next cycle of the dynamic time window is twice the window size of the current cycle, and the moving step size of the current cycle of the dynamic time window is the window size of the current cycle.

[0012] Dynamically weighting each time period of the time subsequence to obtain the corresponding target time subsequence includes:

[0013] According to the window size of the dynamic time window when each time period is divided, downsampling the subsequence of the time period to obtain a sampling subsequence;

[0014] Compress each sampling subsequence to the same length and combine them to obtain the corresponding target time subsequence.

[0015] Optionally, performing frequent item set mining according to each target time subsequence and a preset amount of funds input by the user terminal, and determining the pre-purchased stock portfolio and the corresponding allocated funds for each stock as the data mining result includes:

[0016] Determine the trading volume of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the trading volume to obtain a first ranking table;

[0017] Determine the profit and loss of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the profit and loss to obtain a second ranking table;

[0018] Frequent item set mining is performed according to the first ranking table, the second ranking table and the preset fund amount input by the user terminal, and the pre-purchased stock combination and the corresponding allocated funds for each stock are determined as the data mining result.

[0019] Optionally, determining the trading volume of each corresponding stock according to each target time subsequence, and sorting each target time subsequence according to the trading volume to obtain a first ranking table includes:

[0020] Compare and sort the transaction volumes of the same time period of each target time subsequence to obtain multiple transaction volume vectors;

[0021] Normalize the data in each transaction volume vector respectively;

[0022] Sum the normalized values ​​of each time period in each target time subsequence to obtain the average transaction volume of the target time subsequence;

[0023] The target time subsequences are sorted in descending order according to the average transaction volume to obtain the first ranking table.

[0024] Optionally, determining the profit and loss of each corresponding stock according to each target time subsequence, and sorting each target time subsequence according to the profit and loss to obtain a second ranking table includes:

[0025] Calculate the long-term profit and loss of each target time subseries and the short-term profit and loss of each time period;

[0026] The short-term profit and loss of each time period is weighted and summed to obtain the average short-term profit and loss of the target time subsequence; the weight coefficient of the short-term profit and loss of each time period is inversely proportional to the window size of the time period;

[0027] The profit and loss of the target time subseries is obtained by weighted summing the average short-term profit and loss and the long-term profit and loss;

[0028] The target time subsequences are sorted in descending order according to the profit and loss to obtain the second ranking table.

[0029] Optionally, performing frequent item set mining according to the first ranking table, the second ranking table and the preset fund amount input by the user terminal, and determining the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result includes:

[0030] Remove the stocks whose buying / selling ratio is less than the preset ratio in the first ranking list to obtain the positive first ranking list, and remove the stocks whose profit / loss is negative in the second ranking list to obtain the positive second ranking list;

[0031] A two-dimensional coordinate system is established with the average buying / selling ratio as the horizontal coordinate and the profit / loss as the vertical coordinate, and the coordinates of each stock in the two-dimensional coordinate system are determined according to the positive first ranking table and the positive second ranking table;

[0032] Calculate the distance from each coordinate to the origin, and determine the pre-purchase stock portfolio based on the distance;

[0033] The corresponding allocation funds for each stock in the pre-purchased stock portfolio are determined according to the preset fund amount input by the user terminal as the data mining result.

[0034] A second aspect of an embodiment of the present invention provides a time series data mining method, which is applied to a collection terminal and includes:

[0035] For each stock in the securities market, the stock transaction data of the stock in the historical time period is collected, and the stock transaction data is compressed into a time subsequence after being compressed into a time series;

[0036] The time subsequences corresponding to all stocks are packaged as time series and sent to a cloud server; so that the cloud server uses a dynamic time window to divide each time subsequence into multiple time periods, dynamically weights each time period of the time subsequence to obtain a corresponding target time subsequence, performs frequent item set mining based on each target time subsequence and a preset amount of funds input by a user terminal, determines a pre-purchased stock combination and corresponding allocated funds for each stock as a data mining result, and sends the data mining result to the user terminal.

[0037] Optionally, the stock transaction data is compressed into a time series as a time subsequence including:

[0038] Calculate the slope of each data point in the stock trading data and its adjacent data points in turn, and determine the extreme value point in each data point;

[0039] Calculate the amplitude difference between each extreme point and the data points adjacent to the extreme point, and take the extreme point where the amplitude difference exceeds the preset amplitude as the dividing point;

[0040] For any two adjacent dividing points, the data points between the two adjacent dividing points are compressed in time series to obtain a time subsequence.

[0041] Optionally, performing time series compression on the data points between the two adjacent dividing points includes:

[0042] Calculate the fitting error between the straight line segment determined by the two adjacent dividing points and the fitted line segment fitted by the data points between the two adjacent dividing points;

[0043] If the fitting error is less than a preset error, or the number of data points between the two adjacent dividing points is less than a preset number, the straight line segment is used as the result of time series compression of each data point;

[0044] If the fitting error is not less than the preset error, and the number of data points between the two adjacent dividing points is not less than the preset number, then the deviation point with the largest error from the fitting line segment in the direct line segment is determined, and the connecting line segments between the two adjacent dividing points and the deviation point are used as the results of time series compression for each data point.

[0045] In a third aspect of an embodiment of the present invention, a time series data mining system is provided, including a cloud server, a data collection terminal and a user terminal; wherein:

[0046] The data collection terminal is used to collect the stock trading data of each stock in the securities market within a historical period, compress the stock trading data into a time subsequence after time series compression, and package the time subsequences corresponding to all stocks as a time series and send them to the cloud server;

[0047] The cloud server is used to receive a time series, divide each time subsequence into multiple time periods using a dynamic time window, and dynamically weight each time period of the time subsequence to obtain a corresponding target time subsequence; the window size of the dynamic time window sliding changes simultaneously;

[0048] The cloud server is further configured to receive a preset amount of funds input by the user terminal, perform frequent item set mining according to each target time subsequence and the preset amount of funds, determine a pre-purchased stock combination and corresponding allocated funds for each stock as a data mining result, and send the data mining result to the user terminal.

[0049] Beneficial effects of the present invention:

[0050] A time series data mining method provided by an embodiment of the present invention is applied to a cloud server, receiving a time series within a historical time period sent by a data acquisition terminal; the time series includes multiple time subsequences, each time subsequence is data after time series compression of any stock trading data collected by the acquisition terminal in the securities market; for each time subsequence, the time subsequence is divided into multiple time periods using a dynamic time window, and each time period of the time subsequence is dynamically weighted to obtain a corresponding target time subsequence; the window size of the dynamic time window sliding changes at the same time; frequent item set mining is performed according to each target time subsequence and the preset amount of funds input by the user terminal, and the pre-purchased stock combination and the corresponding allocation funds for each stock are determined as data mining results; and the data mining results are sent to the user terminal. Through the acquisition terminal, the stock trading data can be compressed in time series at the front end to maintain the data characteristics of the time series data while reducing the overall data volume, which can improve the effectiveness of data mining, and the cloud server can weight the time series data based on time at the back end to correct the influence of the data of each time period on the mining results, which can improve the reliability of data mining. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The present invention will be further described below in conjunction with the accompanying drawings.

[0052] Figure 1 A flowchart of a time series data mining method provided by an embodiment of the present invention;

[0053] Figure 2 A flowchart of another time series data mining method provided by an embodiment of the present invention;

[0054] Figure 3 A system block diagram of a time series data mining system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] The present invention provides a time series data mining method. Figure 1 , Figure 1 A flowchart of a time series data mining method provided by an embodiment of the present invention. The method is applied to a cloud server and includes:

[0057] S101, receiving a time series within a historical time period sent by a data collection terminal;

[0058] S102, for each time subsequence, using a dynamic time window to divide the time subsequence into multiple time periods, and dynamically weighting each time period of the time subsequence to obtain a corresponding target time subsequence;

[0059] S103, performing frequent item set mining according to each target time subsequence and the preset fund amount input by the user terminal, and determining the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result;

[0060] S104, sending the data mining result to the user terminal.

[0061] The time series includes multiple time subsequences, each of which is data obtained by time series compression of any stock transaction data collected by a collection terminal in the securities market; the window size of the dynamic time window sliding changes simultaneously.

[0062] Based on a time series data mining method provided by an embodiment of the present invention, the stock trading data can be compressed in time series at the front end through the acquisition terminal, while the data characteristics of the time series data are maintained, the overall data volume is reduced, and the effectiveness of data mining can be improved. The cloud server performs weighted correction on the time series data based on time at the back end, and the influence of the data in each time period on the mining results can improve the reliability of data mining.

[0063] In one implementation, the data acquisition terminal can periodically send time series to the cloud server, the cloud server can save the time series for a longer period of time for subsequent data mining, the user terminal can send a stock analysis request to the cloud server, the stock analysis request can include a preset amount of funds, and the cloud server can perform data mining based on the saved time series and the preset amount of funds and make stock recommendations to the user terminal.

[0064] In one implementation, since data mining for time series is to predict data based on historical data, the influence of historical data on the current result varies according to the time from the current moment to the present moment. The farther the historical data is from the current moment, the smaller the influence. By dividing the time subsequence into multiple time periods, the data of each time period can be weighted. The farther the time period is from the current moment, the lower the weight coefficient. This can correct the influence of the data of each time period on the mining result and improve the reliability of data mining.

[0065] In one embodiment, the starting point of the dynamic time window is the data point at the most recent time of the time subsequence, and the moving direction is the data point at the most distant time. The window size of the next cycle of the dynamic time window is twice the window size of the current cycle, and the moving step size of the current cycle of the dynamic time window is the window size of the current cycle.

[0066] In step S102, dynamically weighting each time period of the time subsequence to obtain the corresponding target time subsequence includes:

[0067] Step 1: downsample the subsequence of each time period according to the window size of the dynamic time window when each time period is divided to obtain a sampling subsequence;

[0068] Step 2: compress each sampling subsequence to the same length and combine them to obtain the corresponding target time subsequence.

[0069] In one embodiment, step S103 includes:

[0070] Step 1: determine the trading volume of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the trading volume to obtain a first ranking table;

[0071] Step 2: determine the profit and loss of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the profit and loss to obtain a second ranking table;

[0072] Step three, performing frequent item set mining according to the first ranking table, the second ranking table and the preset fund amount input by the user terminal, and determining the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result.

[0073] In one implementation, time series mining of stocks can be used to select stocks based on their trading volume and profit and loss. The larger the trading volume, the more active the stock is and the easier it is to trade.

[0074] In one embodiment, the trading volume of each corresponding stock is determined according to each target time subsequence, and the target time subsequences are sorted according to the trading volume to obtain a first ranking table, which includes:

[0075] Step 1: Compare and sort the transaction volumes of the same time period of each target time subsequence to obtain multiple transaction volume vectors;

[0076] Step 2: normalize the data in each transaction volume vector respectively;

[0077] Step 3, summing up the normalized values ​​of each time period in each target time subsequence to obtain the average transaction volume of the target time subsequence;

[0078] Step 4: Sort each target time subsequence in descending order according to the average transaction volume to obtain the first ranking table.

[0079] In one embodiment, the profit and loss of each corresponding stock is determined according to each target time subsequence, and the target time subsequences are sorted according to the profit and loss to obtain a second ranking table including:

[0080] Step 1: Calculate the long-term profit and loss of each target time subsequence and the short-term profit and loss of each time period;

[0081] Step 2: weighted sum of the short-term gains and losses of each time period to obtain the average short-term gains and losses of the target time subsequence; the weighted coefficient of the short-term gains and losses of each time period is inversely proportional to the window size of the time period;

[0082] Step 3: The profit and loss of the target time subseries is obtained by weighted summing the average short-term profit and loss and the long-term profit and loss;

[0083] Step 4: Sort each target time subsequence in descending order of profit and loss to obtain a second ranking table.

[0084] In one embodiment, frequent item set mining is performed according to the first ranking table, the second ranking table and the preset amount of funds input by the user terminal, and determining the pre-purchased stock combination and the corresponding allocation funds for each stock as the data mining result includes:

[0085] Step 1: remove the stocks whose buying / selling ratio is less than a preset ratio in the first ranking list to obtain a positive first ranking list, and remove the stocks whose profit / loss is negative in the second ranking list to obtain a positive second ranking list;

[0086] Step 2: Establish a two-dimensional coordinate system with the average buying / selling ratio as the horizontal axis and the profit / loss as the vertical axis, and determine the coordinates of each stock in the two-dimensional coordinate system according to the positive first ranking table and the positive second ranking table;

[0087] Step 3, calculate the distance from each coordinate to the origin, and determine the pre-purchase stock portfolio based on the distance;

[0088] Step 4: Determine the corresponding allocation funds for each stock in the pre-purchased stock portfolio as a data mining result according to the preset fund amount input by the user terminal.

[0089] In one implementation, the buy-sell ratio is the ratio of the buy volume to the sell volume in the transaction volume.

[0090] The present invention provides another time series data mining method. Figure 2 , Figure 2 A flowchart of another time series data mining method provided by an embodiment of the present invention. The method is applied to a collection terminal and includes:

[0091] S201, for each stock in the securities market, collect the stock transaction data of the stock in the historical time period, and compress the stock transaction data into a time subsequence after performing time series compression;

[0092] S202, packing the time subsequences corresponding to all stocks as a time series and sending them to the cloud server; so that the cloud server uses a dynamic time window to divide each time subsequence into multiple time periods, dynamically weights each time period of the time subsequence to obtain a corresponding target time subsequence, performs frequent item set mining based on each target time subsequence and a preset amount of funds input by the user terminal, determines the pre-purchased stock combination and the corresponding allocated funds for each stock as a data mining result, and sends the data mining result to the user terminal.

[0093] Based on a time series data mining method provided by an embodiment of the present invention, the stock trading data can be compressed in time series at the front end through the acquisition terminal, while the data characteristics of the time series data are maintained, the overall data volume is reduced, and the effectiveness of data mining can be improved. The cloud server performs weighted correction on the time series data based on time at the back end, and the influence of the data in each time period on the mining results can improve the reliability of data mining.

[0094] In one embodiment, in step S201, the stock transaction data is compressed into a time subsequence after time series compression, which includes:

[0095] Step 1, sequentially calculating the slope of each data point in the stock trading data and its adjacent data points, and determining the extreme value point in each data point;

[0096] Step 2: Calculate the amplitude difference between each extreme point and the data points adjacent to the extreme point, and use the extreme point whose amplitude difference exceeds the preset amplitude as the demarcation point;

[0097] Step three: for any two adjacent dividing points, time series compression is performed on the data points between the two adjacent dividing points to obtain a time subsequence.

[0098] In one embodiment, time series compression of the data points between the two adjacent demarcation points includes:

[0099] Step 1, calculating the fitting error between the straight line segment determined by the two adjacent dividing points and the fitting line segment fitted by the data points between the two adjacent dividing points;

[0100] Step 2: If the fitting error is less than the preset error, or the number of data points between the two adjacent dividing points is less than the preset number, the straight line segment is used as the result of time series compression of each data point;

[0101] Step three: if the fitting error is not less than the preset error, and the number of data points between the two adjacent dividing points is not less than the preset number, then determine the deviation point in the direct line segment with the largest error from the fitting line segment, and use the connecting line segments between the two adjacent dividing points and the deviation point as the result of time series compression for each data point.

[0102] In one implementation, the data between two adjacent dividing points is replaced by a line segment, which can reduce the amount of data while maintaining the change characteristics of the data.

[0103] The present invention also provides a time series data mining system. Figure 3 , Figure 3 A system block diagram of a time series data mining system provided by an embodiment of the present invention. The system includes a cloud server, a data acquisition terminal and a user terminal; wherein:

[0104] The data collection terminal is used to collect the stock trading data of each stock in the securities market within the historical time period, compress the stock trading data into time subsequences after time series compression, and package the time subsequences corresponding to all stocks as time series and send them to the cloud server;

[0105] The cloud server is used to receive the time series, divide each time subsequence into multiple time periods using a dynamic time window, and dynamically weight each time period of the time subsequence to obtain a corresponding target time subsequence; the window size of the dynamic time window sliding changes simultaneously;

[0106] The cloud server is also used to receive the preset fund amount input by the user terminal, perform frequent item set mining according to each target time subsequence and the preset fund amount, determine the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result, and send the data mining result to the user terminal.

[0107] Based on a time series data mining system provided by an embodiment of the present invention, the stock trading data can be compressed in time series at the front end through the acquisition terminal, while the data characteristics of the time series data are maintained, the overall data volume is reduced, and the effectiveness of data mining can be improved. The cloud server performs weighted correction on the time series data based on time at the back end, and the influence of the data in each time period on the mining results can improve the reliability of data mining.

[0108] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A time series data mining method, characterized in that: The method is applied to a cloud server, and the method comprises: Receive a time series within a historical time period sent by a data collection terminal; the time series includes multiple time subsequences, each time subsequence is data obtained by time series compression of any stock transaction data collected by the collection terminal in the securities market; For each time subsequence, a dynamic time window is used to divide the time subsequence into multiple time periods, and each time period of the time subsequence is dynamically weighted to obtain a corresponding target time subsequence; the window size of the dynamic time window sliding is changed at the same time; Perform frequent item set mining based on each target time subsequence and the preset amount of funds input by the user terminal, and determine the pre-purchased stock portfolio and the corresponding allocated funds for each stock as the data mining result; Sending the data mining result to the user terminal; The starting point of the dynamic time window is the data point at the most recent time of the time subsequence, and the moving direction is the data point at the most distant time. The window size of the next cycle of the dynamic time window is twice the window size of the current cycle, and the moving step size of the current cycle of the dynamic time window is the window size of the current cycle. Dynamically weighting each time period of the time subsequence to obtain the corresponding target time subsequence includes: According to the window size of the dynamic time window when each time period is divided, downsampling the subsequence of the time period to obtain a sampling subsequence; Compress each sampling subsequence to the same length and combine them to obtain the corresponding target time subsequence; Frequent item set mining is performed based on each target time subsequence and the preset amount of funds input by the user terminal, and the pre-purchased stock portfolio and the corresponding allocation funds for each stock are determined as data mining results including: Determine the trading volume of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the trading volume to obtain a first ranking table; Determine the profit and loss of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the profit and loss to obtain a second ranking table; Perform frequent item set mining according to the first ranking table, the second ranking table and the preset fund amount input by the user terminal, and determine the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result; Performing frequent item set mining according to the first ranking table, the second ranking table and the preset fund amount input by the user terminal, and determining the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result includes: Remove the stocks whose buying / selling ratio is less than the preset ratio in the first ranking list to obtain the positive first ranking list, and remove the stocks whose profit / loss is negative in the second ranking list to obtain the positive second ranking list; A two-dimensional coordinate system is established with the average buying / selling ratio as the horizontal coordinate and the profit / loss as the vertical coordinate, and the coordinates of each stock in the two-dimensional coordinate system are determined according to the positive first ranking table and the positive second ranking table; Calculate the distance from each coordinate to the origin, and determine the pre-purchase stock portfolio based on the distance; The corresponding allocation funds for each stock in the pre-purchased stock portfolio are determined according to the preset fund amount input by the user terminal as the data mining result.

2. A time series data mining method according to claim 1, characterized in that: Determine the trading volume of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the trading volume to obtain a first ranking table including: Compare and sort the transaction volumes of the same time period of each target time subsequence to obtain multiple transaction volume vectors; Normalize the data in each transaction volume vector respectively; Sum the normalized values ​​of each time period in each target time subsequence to obtain the average transaction volume of the target time subsequence; The target time subsequences are sorted in descending order according to the average transaction volume to obtain the first ranking table.

3. A time series data mining method according to claim 1, characterized in that: Determine the profit and loss of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the profit and loss to obtain a second ranking table including: Calculate the long-term profit and loss of each target time subseries and the short-term profit and loss of each time period; The short-term profit and loss of each time period is weighted and summed to obtain the average short-term profit and loss of the target time subsequence; the weight coefficient of the short-term profit and loss of each time period is inversely proportional to the window size of the time period; The profit and loss of the target time subseries is obtained by weighted summing the average short-term profit and loss and the long-term profit and loss; The target time subsequences are sorted in descending order according to the profit and loss to obtain the second ranking table.

4. A time series data mining method, characterized in that: The method is applied to a collection terminal, and the method comprises: For each stock in the securities market, the stock transaction data of the stock in the historical time period is collected, and the stock transaction data is compressed into a time subsequence after being compressed into a time series; Packing the time subsequences corresponding to all stocks as a time series and sending them to a cloud server; so that the cloud server divides each time subsequence into multiple time periods using a dynamic time window, dynamically weights each time period of the time subsequence to obtain a corresponding target time subsequence, performs frequent item set mining based on each target time subsequence and a preset amount of funds input by a user terminal, determines a pre-purchased stock combination and corresponding allocated funds for each stock as a data mining result, and sends the data mining result to the user terminal; The starting point of the dynamic time window is the data point at the most recent time of the time subsequence, and the moving direction is the data point at the most distant time. The window size of the next cycle of the dynamic time window is twice the window size of the current cycle, and the moving step size of the current cycle of the dynamic time window is the window size of the current cycle. Dynamically weighting each time period of the time subsequence to obtain the corresponding target time subsequence includes: According to the window size of the dynamic time window when each time period is divided, downsampling the subsequence of the time period to obtain a sampling subsequence; Compress each sampling subsequence to the same length and combine them to obtain the corresponding target time subsequence; Frequent item set mining is performed based on each target time subsequence and the preset amount of funds input by the user terminal, and the pre-purchased stock portfolio and the corresponding allocation funds for each stock are determined as data mining results including: Determine the trading volume of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the trading volume to obtain a first ranking table; Determine the profit and loss of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the profit and loss to obtain a second ranking table; Perform frequent item set mining according to the first ranking table, the second ranking table and the preset fund amount input by the user terminal, and determine the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result; Performing frequent item set mining according to the first ranking table, the second ranking table and the preset fund amount input by the user terminal, and determining the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result includes: Remove the stocks whose buying / selling ratio is less than the preset ratio in the first ranking list to obtain the positive first ranking list, and remove the stocks whose profit / loss is negative in the second ranking list to obtain the positive second ranking list; A two-dimensional coordinate system is established with the average buying / selling ratio as the horizontal coordinate and the profit / loss as the vertical coordinate, and the coordinates of each stock in the two-dimensional coordinate system are determined according to the positive first ranking table and the positive second ranking table; Calculate the distance from each coordinate to the origin, and determine the pre-purchase stock portfolio based on the distance; The corresponding allocation funds for each stock in the pre-purchased stock portfolio are determined according to the preset fund amount input by the user terminal as the data mining result.

5. A time series data mining method according to claim 4, characterized in that: The stock trading data is compressed into a time series as a time subsequence including: Calculate the slope of each data point in the stock trading data and its adjacent data points in turn, and determine the extreme value point in each data point; Calculate the amplitude difference between each extreme point and the data points adjacent to the extreme point, and take the extreme point where the amplitude difference exceeds the preset amplitude as the dividing point; For any two adjacent dividing points, the data points between the two adjacent dividing points are compressed in time series to obtain a time subsequence.

6. A time series data mining method according to claim 5, characterized in that: The time series compression of the data points between the two adjacent dividing points includes: Calculate the fitting error between the straight line segment determined by the two adjacent dividing points and the fitted line segment fitted by the data points between the two adjacent dividing points; If the fitting error is less than a preset error, or the number of data points between the two adjacent dividing points is less than a preset number, the straight line segment is used as the result of time series compression of each data point; If the fitting error is not less than the preset error, and the number of data points between the two adjacent dividing points is not less than the preset number, then the deviation point with the largest error from the fitting line segment in the direct line segment is determined, and the connecting line segments between the two adjacent dividing points and the deviation point are used as the results of time series compression for each data point.

7. A time series data mining system, characterized in that: It includes cloud server, data collection terminal and user terminal; among which: The data collection terminal is used to collect the stock trading data of each stock in the securities market within a historical period, compress the stock trading data into a time subsequence after time series compression, and package the time subsequences corresponding to all stocks as a time series and send them to the cloud server; The cloud server is used to receive a time series, divide each time subsequence into multiple time periods using a dynamic time window, and dynamically weight each time period of the time subsequence to obtain a corresponding target time subsequence; the window size of the dynamic time window sliding changes simultaneously; The cloud server is further configured to receive a preset fund amount input by the user terminal, perform frequent item set mining according to each target time subsequence and the preset fund amount, determine a pre-purchased stock combination and corresponding allocated funds for each stock as a data mining result, and send the data mining result to the user terminal; The starting point of the dynamic time window is the data point at the most recent time of the time subsequence, and the moving direction is the data point at the most distant time. The window size of the next cycle of the dynamic time window is twice the window size of the current cycle, and the moving step size of the current cycle of the dynamic time window is the window size of the current cycle. Dynamically weighting each time period of the time subsequence to obtain the corresponding target time subsequence includes: According to the window size of the dynamic time window when each time period is divided, downsampling the subsequence of the time period to obtain a sampling subsequence; Compress each sampling subsequence to the same length and combine them to obtain the corresponding target time subsequence; Performing frequent item set mining according to each target time subsequence and the preset fund amount, determining the pre-purchased stock combination and the corresponding allocation funds for each stock as the data mining result includes: Determine the trading volume of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the trading volume to obtain a first ranking table; Determine the profit and loss of each corresponding stock according to each target time subsequence, and sort each target time subsequence according to the profit and loss to obtain a second ranking table; Perform frequent item set mining according to the first ranking table, the second ranking table and the preset fund amount input by the user terminal, and determine the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result; Performing frequent item set mining according to the first ranking table, the second ranking table and the preset fund amount input by the user terminal, and determining the pre-purchased stock combination and the corresponding allocated funds for each stock as the data mining result includes: Remove the stocks whose buying / selling ratio is less than the preset ratio in the first ranking list to obtain the positive first ranking list, and remove the stocks whose profit / loss is negative in the second ranking list to obtain the positive second ranking list; A two-dimensional coordinate system is established with the average buying / selling ratio as the horizontal coordinate and the profit / loss as the vertical coordinate, and the coordinates of each stock in the two-dimensional coordinate system are determined according to the positive first ranking table and the positive second ranking table; Calculate the distance from each coordinate to the origin, and determine the pre-purchase stock portfolio based on the distance; The corresponding allocation funds for each stock in the pre-purchased stock portfolio are determined according to the preset fund amount input by the user terminal as the data mining result.