[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2020199483A1 - Image processing method and apparatus for financial data, and device and computer-readable storage medium - Google Patents

Image processing method and apparatus for financial data, and device and computer-readable storage medium Download PDF

Info

Publication number
WO2020199483A1
WO2020199483A1 PCT/CN2019/103244 CN2019103244W WO2020199483A1 WO 2020199483 A1 WO2020199483 A1 WO 2020199483A1 CN 2019103244 W CN2019103244 W CN 2019103244W WO 2020199483 A1 WO2020199483 A1 WO 2020199483A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
kmin
daily
vector
dimensional
Prior art date
Application number
PCT/CN2019/103244
Other languages
French (fr)
Chinese (zh)
Inventor
李海疆
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020199483A1 publication Critical patent/WO2020199483A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the embodiments of the application relate to the technical field of financial data processing, and in particular to an image processing method, device, device, and computer-readable storage medium for financial data.
  • the inventor realizes that the current financial images of the forecast type focus on the return rate and the relevant indicators derived from the return rate, and use a certain machine learning algorithm on the basis of the factor model to predict the future financial data.
  • this method is limited to the rate of return and its related indicators, this makes this processing prediction method have certain limitations, and it is impossible to make more accurate predictions.
  • this application provides an image processing method, device, computer equipment, and computer-readable storage medium for financial data, so as to achieve a more reliable and accurate preset of financial data trends from the perspective of image recognition.
  • an embodiment of the present application provides an image processing method for financial data, the method including:
  • Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
  • the financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
  • this application also relates to an image processing device for financial data, the device comprising:
  • the obtaining module is used to obtain the first data Kd at the daily level and the second data Kmin at the preset minute level, wherein the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
  • a processing module configured to perform data processing on the first data Kd of the daily level and the second data Kmin of the preset minute level, and establish a vector autoregressive model of the image sample space according to the processed data;
  • the regression module is used to input the financial data to be processed into the vector autoregressive model to obtain the predicted pattern of the financial data to be processed after inverse transformation and decoding operations.
  • the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the following steps when the processor executes the computer program:
  • Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
  • the financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
  • this application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
  • Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
  • the financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
  • This application constructs a vector autoregressive model by establishing a homeomorphic mapping from the image sample space to the feature space on the K-line image samples of financial data based on the law of manifold distribution.
  • the image display of future financial data can be obtained through the calculation of the model, and the financial data can be predicted from the perspective of image recognition, which replaces the traditional method of predicting the rate of return and can be extended to all other types of K Line graph data has a wide range of applications.
  • Fig. 1 is a schematic flowchart showing a method for image processing of financial data according to an exemplary embodiment.
  • Fig. 2 is a block diagram showing an image processing device for financial data according to an exemplary embodiment.
  • Fig. 3 is a block diagram showing a computer device for implementing a method according to an exemplary embodiment.
  • This application relates to an image processing method, device, computer equipment, and computer readable storage medium for financial data. It is mainly used in scenarios where financial data is predicted.
  • the basic idea is: the calculation of financial data based on the law of manifold distribution K-line image samples establish a homeomorphic mapping from the image sample space to the feature space, and construct a vector autoregressive model.
  • the financial data obtained that is, the financial data outside the sample
  • the future results can be obtained through the calculation of the model
  • the image display of financial data realizes the prediction of financial data from the perspective of image recognition, which replaces the traditional method of forecasting with yield indicators, and can be extended to all other types of K-line graph data, with a wide range of applications.
  • This embodiment is applicable to the case of an intelligent terminal with a vector autoregressive model for image processing of financial data.
  • the method can be executed by a control device of the vector autoregressive model, where the device can be software and/ Or hardware implementation, generally integrated in a smart terminal, or controlled by a central control module in the terminal, as shown in Figure 1, which is a schematic diagram of the basic flow of a financial data image processing method of this application. Specifically include the following steps:
  • step 110 first data Kd at a daily level and second data Kmin at a preset minute level are acquired, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
  • the daily level may be 1 trading day level, and the preset minute level may be 5 minutes as the preset level.
  • the daily data of each trading day includes K d equal to the first data Kd: (open price, daily opening price, close price, daily closing price, high price, daily highest price, low price, the lowest daily price), and K 5min equivalent to the second data Kmin: all open and close prices at the 5-minute level in the trading day.
  • the first data Kd has multiple data types, for example, financial data in four dimensions including open price, close price, high price, and low price
  • the second data Kmin includes two dimensions of open price, close price, etc.
  • Data and generally the dimension of the data type of the first data Kd is higher than that of the second data Kmin.
  • step 120 data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
  • the sample coordinate mapping is established by using the K-line chart sample with the A-share period of 5 days, then:
  • the data processing process includes; for 5-minute-level open price and close price, calculate the arithmetic average value, namely (open price+close price)/2, called the 5-minute average, count the median of 48 5-minute averages within a trading day.
  • Mapping This mapping is a comorphic mapping and enables the conversion of high-dimensional manifolds to low-dimensional manifolds.
  • the vector autoregressive model is an econometric model that is used to estimate the dynamic relationship of joint endogenous variables. It contains multiple sequence variables.
  • Pr i, M i, S i K are the physical size of the i-th line graph of days, and the median day amplitude.
  • K d represents the sample point of the daily K-line chart, including four data of the daily K-line chart: open price (day opening price), close price (day Closing price), high price (daily highest price), low price (daily lowest price);
  • K 5min represents the opening and closing prices of all 5-minute K-line charts in a trading day. It is a collection of two-dimensional data. Because the daily trading time of A shares is 4 hours, the sample capacity of a K 5min is 48 .
  • formula 1 for establishing the mapping includes:
  • ⁇ 1 , ⁇ 2 , ⁇ 3 , ⁇ 4 represent the four-dimensional data of the daily level
  • ⁇ 5 represents the median of the 5-minute level data within the day
  • K d represents the sample point of the daily K-line chart
  • K 5min represents the intra-day 5-minute K-line chart in a trading day
  • i 1, 2, 3, 4, 5, Form a local coordinate card.
  • x n is the k-line graph on the nth day
  • c is a three-dimensional constant vector
  • is an error vector
  • a i is a 3*3 dimensional regression coefficient matrix.
  • the regression coefficient matrix can be solved in the following logical sequence: the data vector on the fifth day is regressed with respect to the data vector on the first to fourth days, and the vector on the sixth day is related to the second The vector regression from day to day 5, and so on, is carried out on a rolling basis, a total of 96 times.
  • the optimal solution of the regression is formula 2:
  • x i is the sample point, which is an n*m-dimensional matrix in this scheme.
  • the L2 norm of the matrix is defined as the square root of the maximum eigenvalue of x i T x i
  • the purpose of the vector autoregressive model is to find the mapping Make
  • R d is a d-dimensional vector space
  • ⁇ x i ⁇ is a set of sample points.
  • step 130 input the obtained financial data into the vector autoregressive model to obtain the predicted pattern of the obtained financial data after inverse transformation and decoding operations.
  • Performing inverse transformation and decoding operations on the vector autoregressive model includes: a topological space S covered by a family of open sets U ⁇ , namely There is a homeomorphic mapping for any open set U ⁇ : It is an n-dimensional European space. Is called coordinate mapping, its inverse mapping The local coordinate representation called the manifold, in the machine learning framework, Is called code mapping, It is called decoding mapping, that is, inverse transformation and decoding operation process.
  • the financial data obtained from the 1st to the 4th day is input into the VAR model as the sample data, and the inverse transformation operation may be to compare the obtained forecast data
  • the corresponding sample data is obtained through the mapping and the matrix.
  • the K-line graph related data corresponding to the sample data is the predicted financial data.
  • the decoding operation is the analytical calculation process of the mapping and the matrix.
  • a homeomorphic mapping from the image sample space to the feature space is established for the K-line image samples of financial data, and a vector autoregressive model is constructed.
  • the image display of future financial data can be obtained through the calculation of the model, and the financial data can be predicted from the perspective of image recognition. It replaces the traditional method of predicting the rate of return and can be extended to all other types.
  • K-line chart data has a wide range of applications.
  • FIG. 2 is a schematic structural diagram of an image processing device for financial data provided by an embodiment of the application.
  • the device can be implemented by software and/or hardware, generally integrated in a smart terminal, and implemented by an image processing method for financial data.
  • this embodiment can provide an image processing device for financial data based on the foregoing embodiment, which mainly includes an acquisition module 210, a processing module 220, and a regression module 230.
  • the obtaining module 210 is configured to obtain the first data Kd at the daily level and the second data Kmin at the preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
  • the processing module 220 is configured to perform data processing on the first data Kd of the daily level and the second data Kmin of the preset minute level, and establish a vector autoregressive model of the image sample space according to the processed data;
  • the regression module 230 is used to input the financial data to be processed into the vector autoregressive model to obtain the predicted pattern of the financial data to be processed after inverse transformation and decoding operations.
  • the processing module 220 includes:
  • x n is the K-line graph on the nth day
  • c is the three-dimensional constant vector
  • is the error vector
  • Ai is the 3*3 dimensional regression coefficient matrix
  • Said inputting the financial data to be processed into the vector autoregressive model after inverse transformation and decoding operation to obtain the prediction pattern of the financial data to be processed includes:
  • the image processing device for financial data provided in the foregoing embodiment can execute the image processing method for financial data provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the method, which are not detailed in the foregoing embodiment.
  • the image processing method for financial data provided in any embodiment of this application please refer to the image processing method for financial data provided in any embodiment of this application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Image Processing (AREA)

Abstract

Disclosed are an image processing method and apparatus for financial data, and a computer device and a computer-readable storage medium. The method comprises: acquiring first data Kd of a day level and second data Kmin of a preset minute level (110), wherein the first data Kd is of a multi-dimensional data type, and the dimension thereof is higher than that of the second data Kmin; performing data processing on the first data Kd of the day level and the second data Kmin of the preset minute level, and establishing a vector autoregressive model of an image sample space according to the processed data (120); and inputting financial data to be processed into the vector autoregressive model, and after inverse transformation and decoding operations are performed, obtaining a prediction pattern of the financial data to be processed (130).

Description

金融数据的图像处理方法、装置、设备及计算机可读存储介质Financial data image processing method, device, equipment and computer readable storage medium
相关申请的交叉引用Cross references to related applications
本申请申明享有2019年04月04日递交的申请号为CN201910270950.9、名称为“金融数据的图像处理方法、装置、设备及可读存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application affirms that it enjoys the priority of the Chinese patent application filed on April 4, 2019 with the application number CN201910270950.9 and titled "Financial Data Image Processing Method, Device, Equipment and Readable Storage Medium". The Chinese patent application The overall content of is incorporated in this application by reference.
技术领域Technical field
本申请实施例涉及金融数据处理技术领域,尤其涉及一种金融数据的图像处理方法、装置、设备及计算机可读存储介质。The embodiments of the application relate to the technical field of financial data processing, and in particular to an image processing method, device, device, and computer-readable storage medium for financial data.
背景技术Background technique
现代经济的发展带动了金融市场的壮大,金融市场中的各类金融数据均反映了金融市场的各类信息,金融数据包括期货、股票、利率以及信贷等的变化趋势能够反映出金融市场的当前状态,而将金融数据绘制成变化曲线图像或表格能够更加直观地对这种状态进行展示,这些均能够作为下一步交易行为的参考依据。The development of the modern economy has driven the growth of the financial market. All kinds of financial data in the financial market reflect all kinds of information in the financial market. Financial data, including futures, stocks, interest rates, and credit, can reflect the current financial market. State, and drawing financial data into a change curve image or table can show this state more intuitively, which can be used as a reference for the next transaction behavior.
发明人意识到目前对于预测类型的金融图像都是着眼于收益率以及收益率衍生的相关指标,在因子模型的基础上以一定的机器学习算法,对未来的金融数据进行预测。然而,由于这种方式限定于收益率以及其相关的指标,如此使得这种处理预测方式有一定的局限性,也无法进行更为准确的预测。The inventor realizes that the current financial images of the forecast type focus on the return rate and the relevant indicators derived from the return rate, and use a certain machine learning algorithm on the basis of the factor model to predict the future financial data. However, since this method is limited to the rate of return and its related indicators, this makes this processing prediction method have certain limitations, and it is impossible to make more accurate predictions.
有这样一种理论即流形分布定律,该理论可理解为:自然界中同一类别的高维数据,往往集中在某个低维流形附近。关于流形分布定律,目前理论发展还不太完备,很多时候机器学习的效果在于调参。但是,很多实际应用的问题,都可以采取流形的框架来建模,从而可以用几何的语言来来描述和梳理,用几何理论工具来加以解决。金融数据图像,以最普遍的K线图来说,投资者最关 心的就是预测未来K线图走势,而流形分布定律应用于金融数据的处理暂没有相应的处理方法。There is such a theory, the law of manifold distribution, which can be understood as: the same type of high-dimensional data in nature is often concentrated near a low-dimensional manifold. Regarding the manifold distribution law, the current theoretical development is not complete, and often the effect of machine learning lies in parameter tuning. However, many practical application problems can be modeled in the framework of manifolds, which can be described and sorted out in geometric language, and solved with geometric theoretical tools. For financial data images, for the most common K-line chart, investors are most concerned about predicting the trend of the future K-line chart. However, there is no corresponding processing method for the law of manifold distribution applied to the processing of financial data.
发明内容Summary of the invention
为了克服相关技术中存在的问题,本申请提供一种金融数据的图像处理方法、装置、计算机设备及计算机可读存储介质,以实现从图像识别角度更加可靠、准确地预设金融数据的走势。In order to overcome the problems in the related technology, this application provides an image processing method, device, computer equipment, and computer-readable storage medium for financial data, so as to achieve a more reliable and accurate preset of financial data trends from the perspective of image recognition.
第一方面,本申请实施例提供了一种金融数据的图像处理方法,所述方法包括:In the first aspect, an embodiment of the present application provides an image processing method for financial data, the method including:
获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin;Acquire first data Kd of daily level and second data Kmin of preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
本申请第二方面,本申请还涉及一种金融数据的图像处理装置,所述装置包括:In the second aspect of this application, this application also relates to an image processing device for financial data, the device comprising:
获取模块,用于获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin;The obtaining module is used to obtain the first data Kd at the daily level and the second data Kmin at the preset minute level, wherein the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
处理模块,用于对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;A processing module, configured to perform data processing on the first data Kd of the daily level and the second data Kmin of the preset minute level, and establish a vector autoregressive model of the image sample space according to the processed data;
回归模块,用于将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The regression module is used to input the financial data to be processed into the vector autoregressive model to obtain the predicted pattern of the financial data to be processed after inverse transformation and decoding operations.
第三方面,本申请还提供了一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the following steps when the processor executes the computer program:
获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin;Acquire first data Kd of daily level and second data Kmin of preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
第四方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, this application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin;Acquire first data Kd of daily level and second data Kmin of preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
本申请通过基于流形分布定律对金融数据的K线图像样本建立图像样本空间至特征空间的同胚映射,构建向量自回归模型,当在该模型中输入已获得的金融数据即样本外的金融数据后通过模型的运算即可得到未来的金融数据的图像化展示,实现图像识别角度对金融数据进行预测,替代了传统的以收益率指标进行预测的方式,并且可以扩展到所有其它类型的K线图数据,适用范围广泛。This application constructs a vector autoregressive model by establishing a homeomorphic mapping from the image sample space to the feature space on the K-line image samples of financial data based on the law of manifold distribution. When the obtained financial data is input into the model, the financial data outside the sample After the data, the image display of future financial data can be obtained through the calculation of the model, and the financial data can be predicted from the perspective of image recognition, which replaces the traditional method of predicting the rate of return and can be extended to all other types of K Line graph data has a wide range of applications.
附图说明Description of the drawings
图1是根据一示例性实施例示出的一种金融数据的图像处理方法的流程示意图。Fig. 1 is a schematic flowchart showing a method for image processing of financial data according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种金融数据的图像处理装置的框图。Fig. 2 is a block diagram showing an image processing device for financial data according to an exemplary embodiment.
图3是根据一示例性实施例示出的实现方法的计算机设备的框图。Fig. 3 is a block diagram showing a computer device for implementing a method according to an exemplary embodiment.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The application will be further described in detail below with reference to the drawings and embodiments. It is understandable that the specific embodiments described here are only used to explain the application, but not to limit the application. In addition, it should be noted that, for ease of description, the drawings only show a part of the structure related to the present application instead of all of the structure.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图中将各步骤描述成顺序的处理,但是其中的许多步骤可以并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排,当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图内的其它步骤。处理可以对应于方法、函数、规程、子例程、子程序等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the steps are described as sequential processing in the flowchart, many of the steps can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the steps may be rearranged, and the process may be terminated when the operation is completed, but there may also be other steps not included in the drawings. Processing can correspond to methods, functions, procedures, subroutines, subroutines, and so on.
本申请涉及一种金融数据的图像处理方法、装置、计算机设备及计算机可读存储介质,其主要运用于对金融数据进行预测的场景中,其基本思想是:基于流形分布定律对金融数据的K线图像样本建立图像样本空间至特征空间的同胚映射,并构建向量自回归模型,当在该模型中输入已获得的金融数据即样本外的金融数据后通过模型的运算即可得到未来的金融数据的图像化展示,实现图像识别角度对金融数据进行预测,替代了传统的以收益率指标进行预测的方式,并且可以扩展到所有其它类型的K线图数据,适用范围广泛。This application relates to an image processing method, device, computer equipment, and computer readable storage medium for financial data. It is mainly used in scenarios where financial data is predicted. The basic idea is: the calculation of financial data based on the law of manifold distribution K-line image samples establish a homeomorphic mapping from the image sample space to the feature space, and construct a vector autoregressive model. When the financial data obtained, that is, the financial data outside the sample, is input into the model, the future results can be obtained through the calculation of the model The image display of financial data realizes the prediction of financial data from the perspective of image recognition, which replaces the traditional method of forecasting with yield indicators, and can be extended to all other types of K-line graph data, with a wide range of applications.
本实施例可适用于带有向量自回归模型的智能型终端中以进行金融数据的图像处理的情况中,该方法可以由向量自回归模型的控制装置来执行,其中该装置可以由软件和/或硬件来实现,一般地可集成于智能终端中,或者终端中的中心控制模块来控制,如图1所示,为本申请的一种金融数据的图像处理方法的基本流程示意图,所述方法具体包括如下步骤:This embodiment is applicable to the case of an intelligent terminal with a vector autoregressive model for image processing of financial data. The method can be executed by a control device of the vector autoregressive model, where the device can be software and/ Or hardware implementation, generally integrated in a smart terminal, or controlled by a central control module in the terminal, as shown in Figure 1, which is a schematic diagram of the basic flow of a financial data image processing method of this application. Specifically include the following steps:
在步骤110中,获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin;In step 110, first data Kd at a daily level and second data Kmin at a preset minute level are acquired, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
所述日度级别可以为1个交易日级别,所述预设分钟级别可以以5分钟为预设级别,本申请一种可行的实施方式中,以沪深300指数为例,首先提取连 续100个交易日的日度数据,每个交易日的数据包含等同于所述第一数据Kd的K d:(open price,日开盘价格,close price,日收盘价格,high price,日最高价格,low price,日最低价格),以及等同于所述第二数据Kmin的K 5min:该交易日里所有5分钟级别的open price和close price。 The daily level may be 1 trading day level, and the preset minute level may be 5 minutes as the preset level. In a feasible implementation manner of this application, taking the Shanghai and Shenzhen 300 Index as an example, first extract 100 consecutive 100 The daily data of each trading day, the data of each trading day includes K d equal to the first data Kd: (open price, daily opening price, close price, daily closing price, high price, daily highest price, low price, the lowest daily price), and K 5min equivalent to the second data Kmin: all open and close prices at the 5-minute level in the trading day.
所述第一数据Kd的数据类型为多个,例如包括open price,close price,high price,low price等四个维度的金融数据,所述第二数据Kmin包括openprice,close price等两个维度的数据,且一般地所述第一数据Kd的数据类型的维度高于第二数据Kmin。The first data Kd has multiple data types, for example, financial data in four dimensions including open price, close price, high price, and low price, and the second data Kmin includes two dimensions of open price, close price, etc. Data, and generally the dimension of the data type of the first data Kd is higher than that of the second data Kmin.
本申请示例性实施例中,以A股而言,其每一个交易日的交易时长为4个小时,故在一个交易日内包括有n=48个日度级别的第一数据Kd。In the exemplary embodiment of the present application, in terms of A shares, the trading time of each trading day is 4 hours, so n=48 first data Kd of daily level are included in one trading day.
在步骤120中,对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;In step 120, data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
本申请示例性实施例的一种可行实施方式中,以A股周期为5天的K线图样本建立样本坐标映射,则:In a feasible implementation manner of the exemplary embodiment of the present application, the sample coordinate mapping is established by using the K-line chart sample with the A-share period of 5 days, then:
Figure PCTCN2019103244-appb-000001
代表对一个周期为5天的K线图样本进行坐标映射的映射序列,
To
Figure PCTCN2019103244-appb-000001
Represents the mapping sequence of coordinate mapping for a K-line chart sample with a period of 5 days,
Figure PCTCN2019103244-appb-000002
构成局部坐标卡。
Figure PCTCN2019103244-appb-000002
Form a local coordinate card.
在本申请示例性实施例另一种实施方式中,以沪深300指数为例,提取连续100个交易日的日度数据,每个交易日的数据包含K d:(open price,close price,high price,low price),以及K 5min:该交易日里所有5分钟级别的open price和close price,数据处理过程包括;对5分钟级别的open price和close price,计算算术平均值,即(open price+close price)/2,称作5分钟平均值,统计一个交易日内48个5分钟平均值的中位数,具体做法是:对48个5分钟平均值从小到大进行排序,取排序为第24和25的两个数据,二者相加除以2,即为中位数M;计算日内振幅S=high price-low price;计算日K线图实体大小Pr=|open price-close price|,即交易日开盘价和收盘价之差的绝对值。因此,对于一个交易日的K线图来说,建立所述日度级别的 第一数据Kd和预设分钟级别的第二数据Kmin与K线图、中位数M以及日内振幅S之间的映射:
Figure PCTCN2019103244-appb-000003
该映射为一同胚映射并使得实现高维流形向低维流形的转换。
In another implementation of the exemplary embodiment of the present application, taking the Shanghai and Shenzhen 300 Index as an example, daily data of 100 consecutive trading days are extracted, and the data of each trading day includes K d : (open price, close price, high price, low price), and K 5min : All 5-minute-level open price and close price in this trading day, the data processing process includes; for 5-minute-level open price and close price, calculate the arithmetic average value, namely (open price+close price)/2, called the 5-minute average, count the median of 48 5-minute averages within a trading day. The specific method is: sort the 48 5-minute averages from small to large, and take the order as The 24th and 25th data are added and divided by 2, which is the median M; calculate the intraday amplitude S=high price-low price; calculate the daily K-line chart entity size Pr=|open price-close price |, that is, the absolute value of the difference between the opening price and the closing price of the trading day. Therefore, for a K-line chart of a trading day, the relationship between the first data Kd of the daily level and the second data Kmin of the preset minute level and the K-line chart, the median M and the intraday amplitude S is established. Mapping:
Figure PCTCN2019103244-appb-000003
This mapping is a comorphic mapping and enables the conversion of high-dimensional manifolds to low-dimensional manifolds.
向量自回归模型为一种计量经济模型,用于估计联合内生变量的动态关系,包含有多元序列变量,建立向量自回归模型的过程包括:建立时间序列映射、对K线图样本进行坐标映射,根据上述映射建立三维向量(Pr,M,S)的时间序列:x i=(Pr i,M i,S i),通过回归方程
Figure PCTCN2019103244-appb-000004
x n为第n日K线图,c为三维常数向量,ε为误差向量,A i是3*3维回归系数矩阵,确定想要的向量数据或映射数据。
The vector autoregressive model is an econometric model that is used to estimate the dynamic relationship of joint endogenous variables. It contains multiple sequence variables. The process of establishing a vector autoregressive model includes: establishing time series mapping and performing coordinate mapping on K-line chart samples ,Establish the time series of the three-dimensional vector (Pr,M,S) according to the above mapping: x i =(Pr i ,M i ,S i ), through the regression equation
Figure PCTCN2019103244-appb-000004
x n is the k-line chart on the nth day, c is the three-dimensional constant vector, ε is the error vector, and Ai is the 3*3 dimensional regression coefficient matrix. Determine the desired vector data or mapping data.
其中,Pr i,M i,S i分别是第i个交易日的K线图实体大小,中位数和日内振幅。 Wherein, Pr i, M i, S i K are the physical size of the i-th line graph of days, and the median day amplitude.
在本申请示例性实施例的一个可行的实施方式中,K d代表日度级别的K线图样本点,包括日K线图的四个数据:open price(日开盘价),close price(日收盘价),high price(日最高价),low price(日最低价); In a feasible implementation of the exemplary embodiment of the present application, K d represents the sample point of the daily K-line chart, including four data of the daily K-line chart: open price (day opening price), close price (day Closing price), high price (daily highest price), low price (daily lowest price);
K 5min代表一个交易日里的所有5分钟级别K线图的开盘价和收盘价,是一个二维数据的集合,因为A股每天交易时长为4个小时,所以一个K 5min的样本容量是48。 K 5min represents the opening and closing prices of all 5-minute K-line charts in a trading day. It is a collection of two-dimensional data. Because the daily trading time of A shares is 4 hours, the sample capacity of a K 5min is 48 .
当已知连续四个交易日的金融数据第一数据Kd和预设分钟级别的K5min时,需要得到第5日的预测图样时,建立映射的公式一包括:When the first data Kd of financial data for four consecutive trading days and K5min of the preset minute level are known, and the forecast pattern for the 5th day needs to be obtained, formula 1 for establishing the mapping includes:
Figure PCTCN2019103244-appb-000005
Figure PCTCN2019103244-appb-000005
i=1,2,3,4,5,其中,θ 1,θ 2,θ 3,θ 4代表日度级别的四个维度数据,θ 5代表由日内5分钟级别数据构成的中位数,K d代表日度K线图样本点,K 5min代表一个交易日里由日内5分钟级别K线图,
Figure PCTCN2019103244-appb-000006
代表对一个周期为5天的K线图样本进行坐标映射的映射序列,i=1,2,3,4,5,
Figure PCTCN2019103244-appb-000007
构成局部坐标卡。
i=1,2,3,4,5, where θ 1 , θ 2 , θ 3 , θ 4 represent the four-dimensional data of the daily level, and θ 5 represents the median of the 5-minute level data within the day, K d represents the sample point of the daily K-line chart, K 5min represents the intra-day 5-minute K-line chart in a trading day,
Figure PCTCN2019103244-appb-000006
Represents the mapping sequence of coordinate mapping for a K-line chart sample with a period of 5 days, i = 1, 2, 3, 4, 5,
Figure PCTCN2019103244-appb-000007
Form a local coordinate card.
构建向量自回归模型(VAR模型)的过程包括:当已知连续四个交易日的金融数据第一数据Kd和预设分钟级别的K5min时,需要得到第5日的预测图 样,其回归方程
Figure PCTCN2019103244-appb-000008
中n=5,如下:
The process of constructing a vector autoregressive model (VAR model) includes: when the first data Kd of financial data for four consecutive trading days and the preset minute level K5min are known, the forecast pattern of the 5th day needs to be obtained, and the regression equation
Figure PCTCN2019103244-appb-000008
Where n=5, as follows:
Figure PCTCN2019103244-appb-000009
其中,x n为第n日K线图,c为三维常数向量,ε为误差向量,A i是3*3维回归系数矩阵,通过所述向量自回归模型可得出A i和c,即回归得出3*3维回归系数矩阵和三维常数向量。
Figure PCTCN2019103244-appb-000009
Among them, x n is the k-line graph on the nth day, c is a three-dimensional constant vector, ε is an error vector, and A i is a 3*3 dimensional regression coefficient matrix. Through the vector autoregressive model, A i and c can be obtained, namely Regression obtains 3*3 dimensional regression coefficient matrix and 3D constant vector.
在本申请示例性实施例的上述回归方程中,回归系数矩阵的求解可按照如下逻辑顺序:第五日数据向量关于第一到第四日的数据向量进行回归,第六日的向量关于第二日到第五日的向量回归,以此类推,滚动进行,总共进行96次。回归的最优解为公式2:In the above regression equation of the exemplary embodiment of the present application, the regression coefficient matrix can be solved in the following logical sequence: the data vector on the fifth day is regressed with respect to the data vector on the first to fourth days, and the vector on the sixth day is related to the second The vector regression from day to day 5, and so on, is carried out on a rolling basis, a total of 96 times. The optimal solution of the regression is formula 2:
Figure PCTCN2019103244-appb-000010
x i为样本点,在本方案里为n*m维矩阵,矩阵的L2范数定义为 x i Tx i的最大特征值的平方根
Figure PCTCN2019103244-appb-000011
向量自回归模型的目的就是找到映射
Figure PCTCN2019103244-appb-000012
使得
Figure PCTCN2019103244-appb-000010
x i is the sample point, which is an n*m-dimensional matrix in this scheme. The L2 norm of the matrix is defined as the square root of the maximum eigenvalue of x i T x i
Figure PCTCN2019103244-appb-000011
The purpose of the vector autoregressive model is to find the mapping
Figure PCTCN2019103244-appb-000012
Make
Figure PCTCN2019103244-appb-000013
{x i}→R d,R d为d维向量空间,{x i}为样本点集合。
Figure PCTCN2019103244-appb-000013
{x i }→R d , R d is a d-dimensional vector space, {x i } is a set of sample points.
此时,损失函数
Figure PCTCN2019103244-appb-000014
损失函数达到最小。
At this point, the loss function
Figure PCTCN2019103244-appb-000014
The loss function is minimized.
在步骤130中,将已获得的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述已获得的金融数据的预测图样。In step 130, input the obtained financial data into the vector autoregressive model to obtain the predicted pattern of the obtained financial data after inverse transformation and decoding operations.
在所述向量自回归模型进行逆变换和解码运算,在本申请一示例性实施例中,包括:一个拓扑空间S,被一族开集Uα所覆盖,即
Figure PCTCN2019103244-appb-000015
任意一个开集Uα都存在一个同胚映射:
Figure PCTCN2019103244-appb-000016
为n维欧式空间。
Figure PCTCN2019103244-appb-000017
被称为坐标映射,其逆映射
Figure PCTCN2019103244-appb-000018
被称作流形的局部坐标表示,在机器学习框架中,
Figure PCTCN2019103244-appb-000019
被称为编码映射,
Figure PCTCN2019103244-appb-000020
被称作解码映射,即逆变换和解码运算过程。
Performing inverse transformation and decoding operations on the vector autoregressive model, in an exemplary embodiment of the present application, includes: a topological space S covered by a family of open sets Uα, namely
Figure PCTCN2019103244-appb-000015
There is a homeomorphic mapping for any open set Uα:
Figure PCTCN2019103244-appb-000016
It is an n-dimensional European space.
Figure PCTCN2019103244-appb-000017
Is called coordinate mapping, its inverse mapping
Figure PCTCN2019103244-appb-000018
The local coordinate representation called the manifold, in the machine learning framework,
Figure PCTCN2019103244-appb-000019
Is called code mapping,
Figure PCTCN2019103244-appb-000020
It is called decoding mapping, that is, inverse transformation and decoding operation process.
本步骤中,通过对当需要第5日的预测图样时,将第1~4日已获得的金融数据作为样本数据输入到所述VAR模型中,所述逆变换操作可以为对得到的预测数据通过所述映射和矩阵得到与其相符合的样本数据,该样本数据对应的K线图相关数据即预测得到的金融数据,所述解码操作为对所述映射和矩阵的解析运算过程,在本申请示例性实施例的一种可行实施场景中,通过对输入前4 日的金融数据到VAR模型,得到预测的第5日的金融数据经过逆变换和解码的局部坐标数据,并与前4日金融数据结合形成预测K线图。In this step, when the forecast pattern of the 5th day is needed, the financial data obtained from the 1st to the 4th day is input into the VAR model as the sample data, and the inverse transformation operation may be to compare the obtained forecast data The corresponding sample data is obtained through the mapping and the matrix. The K-line graph related data corresponding to the sample data is the predicted financial data. The decoding operation is the analytical calculation process of the mapping and the matrix. In a feasible implementation scenario of the exemplary embodiment, by inputting the financial data of the previous 4 days into the VAR model, the predicted financial data on the 5th day is inversely transformed and decoded to obtain the local coordinate data, which is compared with the financial data of the previous 4 days. The data is combined to form a predictive candlestick chart.
本实施例基于流形分布定律对金融数据的K线图像样本建立图像样本空间至特征空间的同胚映射,并构建向量自回归模型,当在该模型中输入已获得的金融数据即样本外的金融数据后通过模型的运算即可得到未来的金融数据的图像化展示,实现图像识别角度对金融数据进行预测,替代了传统的以收益率指标进行预测的方式,并且可以扩展到所有其它类型的K线图数据,适用范围广泛。In this embodiment, based on the law of manifold distribution, a homeomorphic mapping from the image sample space to the feature space is established for the K-line image samples of financial data, and a vector autoregressive model is constructed. When the obtained financial data is input into the model, the out-of-sample After the financial data, the image display of future financial data can be obtained through the calculation of the model, and the financial data can be predicted from the perspective of image recognition. It replaces the traditional method of predicting the rate of return and can be extended to all other types. K-line chart data has a wide range of applications.
图2为本申请实施例提供的一种金融数据的图像处理装置的结构示意图,该装置可由软件和/或硬件实现,一般地集成于智能终端中,可通过金融数据的图像处理方法来实现。如图所示,本实施例可以以上述实施例为基础,提供了一种金融数据的图像处理装置,其主要包括了获取模块210、处理模块220以及回归模块230。2 is a schematic structural diagram of an image processing device for financial data provided by an embodiment of the application. The device can be implemented by software and/or hardware, generally integrated in a smart terminal, and implemented by an image processing method for financial data. As shown in the figure, this embodiment can provide an image processing device for financial data based on the foregoing embodiment, which mainly includes an acquisition module 210, a processing module 220, and a regression module 230.
其中的获取模块210,用于获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin;The obtaining module 210 is configured to obtain the first data Kd at the daily level and the second data Kmin at the preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
其中的处理模块220,用于对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;The processing module 220 is configured to perform data processing on the first data Kd of the daily level and the second data Kmin of the preset minute level, and establish a vector autoregressive model of the image sample space according to the processed data;
其中的回归模块230,用于将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The regression module 230 is used to input the financial data to be processed into the vector autoregressive model to obtain the predicted pattern of the financial data to be processed after inverse transformation and decoding operations.
在本申请示例性实施例的一种实施方式中,所述获取模块的所述第一数据Kd的数据类型包括open price(日开盘价格),close price(日收盘数据),high price(日最高价格),low price(日最低价格)四个维度的金融数据,所述第二数据Kmin包括open price,close price两个维度的数据。In an implementation manner of the exemplary embodiment of the present application, the data type of the first data Kd of the acquisition module includes open price (daily opening price), close price (daily closing data), high price (daily highest) Price) and low price (daily lowest price) financial data in four dimensions, and the second data Kmin includes data in two dimensions: open price and close price.
在本申请示例性实施例的一种实施方式中,所述处理模220块包括:In an implementation of the exemplary embodiment of the present application, the processing module 220 includes:
构建子模块,用于构建所述向量自回归模型:The construction sub-module is used to construct the vector autoregressive model:
构建第一数据Kd的图像信息的同胚映射:公式1:
Figure PCTCN2019103244-appb-000021
Figure PCTCN2019103244-appb-000022
该映射使高维流形转换成低维流形;
Construct a homeomorphic mapping of image information of the first data Kd: Formula 1:
Figure PCTCN2019103244-appb-000021
Figure PCTCN2019103244-appb-000022
This mapping transforms high-dimensional manifolds into low-dimensional manifolds;
Figure PCTCN2019103244-appb-000023
代表对一个周期为5天的K线图样本进行坐标映射的映射序列,
Figure PCTCN2019103244-appb-000023
Represents the mapping sequence of coordinate mapping for a K-line chart sample with a period of 5 days,
Figure PCTCN2019103244-appb-000024
构成局部坐标卡;
Figure PCTCN2019103244-appb-000024
Form a local coordinate card;
建立三维向量(Pr,M,S)的时间序列:x i=(Pr i,M i,S i),Pr i,M i,S i分别是第i个交易日的K线图实体大小,中位数和日内振幅; Dimensional vector (Pr, M, S) time series: x i = (Pr i, M i, S i), Pr i, M i, S i K are the physical size of the i-th line in FIG trading day, Median and intraday amplitude;
回归方程为:The regression equation is:
Figure PCTCN2019103244-appb-000025
x n为第n日K线图,c为三维常数向量,ε为误差向量,A i是3*3维回归系数矩阵;
Figure PCTCN2019103244-appb-000025
x n is the K-line graph on the nth day, c is the three-dimensional constant vector, ε is the error vector, and Ai is the 3*3 dimensional regression coefficient matrix;
所述将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样,包括:Said inputting the financial data to be processed into the vector autoregressive model after inverse transformation and decoding operation to obtain the prediction pattern of the financial data to be processed includes:
通过所述回归方程得出A i和c。 A i and c are obtained by the regression equation.
上述实施例中提供的金融数据的图像处理装置可执行本申请中任意实施例中所提供的金融数据的图像处理方法,具备执行该方法相应的功能模块和有益效果,未在上述实施例中详细描述的技术细节,可参见本申请任意实施例中所提供的金融数据的图像处理方法。The image processing device for financial data provided in the foregoing embodiment can execute the image processing method for financial data provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the method, which are not detailed in the foregoing embodiment. For the described technical details, please refer to the image processing method for financial data provided in any embodiment of this application.
本实施例还提供一种计算机设备,如可以执行程序的智能手机、平板电脑、笔记本电脑、台式计算机、机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个服务器所组成的服务器集群)等。本实施例的计算机设备20至少包括但不限于:可通过系统总线相互通信连接的存储器21、处理器22,如图3所示。需要指出的是,图3仅示出了具有组件21-22的计算机设备20,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。This embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including independent servers, or A server cluster composed of multiple servers), etc. The computer device 20 in this embodiment at least includes but is not limited to: a memory 21 and a processor 22 that can be communicatively connected to each other through a system bus, as shown in FIG. 3. It should be pointed out that FIG. 3 only shows the computer device 20 with components 21-22, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
本实施例中,存储器21(即可读存储介质)包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器21可以是计算机设备20的内部存储单元,例如该计算机设备20的硬 盘或内存。在另一些实施例中,存储器21也可以是计算机设备20的外部存储设备,例如该计算机设备20上配备的插接式硬盘,智能存储卡(Smart MediaCard,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器21还可以既包括计算机设备20的内部存储单元也包括其外部存储设备。本实施例中,存储器21通常用于存储安装于计算机设备20的操作系统和各类应用软件,例如实施例一的RNNs神经网络的程序代码等。此外,存储器21还可以用于暂时地存储已经输出或者将要输出的各类数据。In this embodiment, the memory 21 (ie, readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), Read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 21 may be an internal storage unit of the computer device 20, such as a hard disk or memory of the computer device 20. In other embodiments, the memory 21 may also be an external storage device of the computer device 20, such as a plug-in hard disk equipped on the computer device 20, a smart memory card (Smart MediaCard, SMC), and a secure digital (Secure Digital, SD ) Card, Flash Card, etc. Of course, the memory 21 may also include both an internal storage unit of the computer device 20 and an external storage device thereof. In this embodiment, the memory 21 is generally used to store the operating system and various application software installed in the computer device 20, such as the program code of the RNNs neural network in the first embodiment, etc. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or will be output.
处理器22在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器22通常用于控制计算机设备20的总体操作。本实施例中,处理器22用于运行存储器21中存储的程序代码或者处理数据,例如实现金融数据的图像处理方法的程序代码,所述金融数据的图像处理方法的程序代码被执行时实现以下步骤:The processor 22 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 22 is generally used to control the overall operation of the computer device 20. In this embodiment, the processor 22 is used to run the program code or processing data stored in the memory 21, for example, the program code for implementing the image processing method of financial data. When the program code of the image processing method for financial data is executed, the following step:
获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,所述第一数据Kd为多维数据类型且维度高于所述第二数据Kmin;Acquiring first data Kd at a daily level and second data Kmin at a preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质可以为非易失性的计算机可读存储介质。如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘、服务器、App应用商城等等,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下方法步骤:This embodiment also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium. Such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable and programmable memory Read memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disks, optical disks, servers, App application malls, etc., have computer programs stored thereon, and when the computer programs are executed by the processor, the following method steps are implemented :
获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,所述第一数据Kd为多维数据类型且维度高于所述第二数据Kmin;Acquiring first data Kd at a daily level and second data Kmin at a preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据 处理,并根据处理后的数据建立图像样本空间的向量自回归模型;Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
另一个涉及计算机程序产品的实施例包括对应于所阐明的系统和/或产品中至少一个的装置中每个装置的计算机可执行指令。这些指令可以被再分成子例程和/或被存储在一个或者多个可能静态或者动态链接的文件中。Another embodiment involving a computer program product includes computer-executable instructions for each of the devices corresponding to at least one of the illustrated systems and/or products. These instructions can be subdivided into subroutines and/or stored in one or more files that may be statically or dynamically linked.
计算机程序的载体可以是能够运载程序的任何实体或者装置。例如,载体可以包含存储介质,诸如(ROM例如CDROM或者半导体ROM)或者磁记录介质(例如软盘或者硬盘)。进一步地,载体可以是可传输的载体,诸如电学或者光学信号,其可以经由电缆或者光缆,或者通过无线电或者其它手段传递。当程序具体化为这样的信号时,载体可以由这样的线缆或者装置组成。可替换地,载体可以是其中嵌入有程序的集成电路,所述集成电路适合于执行相关方法,或者供相关方法的执行所用。The carrier of the computer program may be any entity or device capable of carrying the program. For example, the carrier may contain a storage medium such as (ROM such as CDROM or semiconductor ROM) or magnetic recording medium (such as floppy disk or hard disk). Further, the carrier may be a transmissible carrier, such as an electrical or optical signal, which may be transmitted via a cable or an optical cable, or by radio or other means. When the program is embodied as such a signal, the carrier may be composed of such a cable or device. Alternatively, the carrier may be an integrated circuit in which the program is embedded, and the integrated circuit is suitable for performing the related method or used for the execution of the related method.
应该留意的是,上文提到的实施例是举例说明本申请,而不是限制本申请,并且本领域的技术人员将能够设计许多可替换的实施例,而不会偏离所附权利要求的范围。在权利要求中,任何放置在圆括号之间的参考符号不应被解读为是对权利要求的限制。动词“包括”和其词形变化的使用不排除除了在权利要求中记载的那些之外的元素或者步骤的存在。在元素之前的冠词“一”或者“一个”不排除复数个这样的元素的存在。本申请可以通过包括几个明显不同的组件的硬件,以及通过适当编程的计算机而实现。在列举几种装置的装置权利要求中,这些装置中的几种可以通过硬件的同一项来体现。在相互不同的从属权利要求中陈述某些措施的单纯事实并不表明这些措施的组合不能被用来获益。It should be noted that the above-mentioned embodiments illustrate the application, rather than limit the application, and those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims . In the claims, any reference signs placed between parentheses shall not be construed as limiting the claims. The use of the verb "to include" and its conjugations does not exclude the presence of elements or steps other than those recited in the claims. The article "a" or "an" before an element does not exclude the existence of a plurality of such elements. The application can be implemented by hardware including several distinct components, as well as by a suitably programmed computer. In the device claims enumerating several devices, several of these devices can be embodied by the same item of hardware. The mere fact that certain measures are stated in mutually different dependent claims does not indicate that a combination of these measures cannot be used to benefit.
如果期望的话,这里所讨论的不同功能可以以不同顺序执行和/或彼此同时执行。此外,如果期望的话,以上所描述的一个或多个功能可以是可选的或者可以进行组合。If desired, the different functions discussed herein may be performed in a different order and/or simultaneously with each other. Furthermore, if desired, one or more of the functions described above may be optional or may be combined.
如果期望的话,上文所讨论的各步骤并不限于各实施例中的执行顺序,不 同步骤可以以不同顺序执行和/或彼此同时执行。此外,在其他实施例中,以上所描述的一个或多个步骤可以是可选的或者可以进行组合。If desired, the steps discussed above are not limited to the execution order in each embodiment, and different steps may be executed in a different order and/or executed simultaneously with each other. In addition, in other embodiments, one or more of the steps described above may be optional or may be combined.
虽然本申请的各个方面在独立权利要求中给出,但是本申请的其它方面包括来自所描述实施方式的特征和/或具有独立权利要求的特征的从属权利要求的组合,而并非仅是权利要求中所明确给出的组合。Although various aspects of the application are given in the independent claims, other aspects of the application include combinations of features from the described embodiments and/or dependent claims with features of the independent claims, rather than just the claims. The combination clearly given in.
这里所要注意的是,虽然以上描述了本申请的示例实施方式,但是这些描述并不应当以限制的含义进行理解。相反,可以进行若干种变化和修改而并不背离如所附权利要求中所限定的本申请的范围。It should be noted here that although the example embodiments of the present application have been described above, these descriptions should not be understood in a limiting sense. On the contrary, several changes and modifications may be made without departing from the scope of the application as defined in the appended claims.
本领域普通技术人员应该明白,本申请实施例的装置中的各模块可以用通用的计算装置来实现,各模块可以集中在单个计算装置或者计算装置组成的网络组中,本申请实施例中的装置对应于前述实施例中的方法,其可以通过可执行的程序代码实现,也可以通过集成电路组合的方式来实现,因此本申请并不局限于特定的硬件或者软件及其结合。Those of ordinary skill in the art should understand that each module in the device of the embodiment of the application can be implemented by a general computing device, and each module can be concentrated in a single computing device or a network group composed of computing devices. The device corresponds to the method in the foregoing embodiment, which can be implemented by executable program code, or by a combination of integrated circuits, so this application is not limited to specific hardware or software and a combination thereof.
本领域普通技术人员应该明白,本申请实施例的装置中的各模块可以用通用的移动终端来实现,各模块可以集中在单个移动终端或者移动终端组成的装置组合中,本申请实施例中的装置对应于前述实施例中的方法,其可以通过编辑可执行的程序代码实现,也可以通过集成电路组合的方式来实现,因此本申请并不局限于特定的硬件或者软件及其结合。Those of ordinary skill in the art should understand that each module in the device in the embodiment of this application can be implemented by a universal mobile terminal, and each module can be concentrated in a single mobile terminal or a combination of devices composed of mobile terminals. The device corresponds to the method in the foregoing embodiment, which can be implemented by editing executable program codes, or can be implemented by a combination of integrated circuits, so this application is not limited to specific hardware or software and combinations thereof.
注意,上述仅为本申请的示例性实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only exemplary embodiments of this application and the technical principles applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made to those skilled in the art without departing from the protection scope of the present application. Therefore, although the application has been described in more detail through the above embodiments, the application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the application. The scope of is determined by the scope of the appended claims.

Claims (20)

  1. 一种金融数据的图像处理方法,其中,所述方法包括:An image processing method for financial data, wherein the method includes:
    获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,所述第一数据Kd为多维数据类型且维度高于所述第二数据Kmin;Acquiring first data Kd at a daily level and second data Kmin at a preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
    对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
    将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
  2. 根据权利要求1所述的方法,其中,所述获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin,包括:The method according to claim 1, wherein the first data Kd at the daily level and the second data Kmin at the preset minute level are obtained, wherein the first data Kd is a multi-dimensional data type and has a higher dimension than the second data Kmin, including:
    所述第一数据Kd的数据类型包括日开盘价格、日收盘数据、日最高价格、日最低价格四个维度的金融数据,所述第二数据Kmin包括open price,close price两个维度的数据。The data type of the first data Kd includes four dimensions of financial data of daily opening price, daily closing data, daily highest price, and daily lowest price, and the second data Kmin includes data of two dimensions: open price and close price.
  3. 根据权利要求2所述的方法,其中,所述对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型,包括:The method according to claim 2, wherein the data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector of the image sample space is established according to the processed data Autoregressive models, including:
    构建所述向量自回归模型,包括:Constructing the vector autoregressive model includes:
    构建第一数据Kd的图像信息的同胚映射:公式1:
    Figure PCTCN2019103244-appb-100001
    Figure PCTCN2019103244-appb-100002
    该映射使高维流形转换成低维流形;所述
    Figure PCTCN2019103244-appb-100003
    表示对一个周期为5天的K线图样本进行坐标映射的映射序列;
    Figure PCTCN2019103244-appb-100004
    构成局部坐标卡;
    Construct a homeomorphic mapping of the image information of the first data Kd: Formula 1:
    Figure PCTCN2019103244-appb-100001
    Figure PCTCN2019103244-appb-100002
    This mapping transforms a high-dimensional manifold into a low-dimensional manifold;
    Figure PCTCN2019103244-appb-100003
    Represents the mapping sequence of coordinate mapping for a K-line chart sample with a period of 5 days;
    Figure PCTCN2019103244-appb-100004
    Form a local coordinate card;
    建立三维向量(Pr,M,S)的时间序列:x i=(Pr i,M i,S i),Pr i,M i,S i分别是第i个交易日的K线图实体大小,中位数和日内振幅; Dimensional vector (Pr, M, S) time series: x i = (Pr i, M i, S i), Pr i, M i, S i K are the physical size of the i-th line in FIG trading day, Median and intraday amplitude;
    回归方程为:The regression equation is:
    Figure PCTCN2019103244-appb-100005
    x n为第n日K线图,c为三维常数向量,ε为误差向量,A i是3*3维回归系数矩阵;
    Figure PCTCN2019103244-appb-100005
    x n is the K-line graph on the nth day, c is the three-dimensional constant vector, ε is the error vector, and Ai is the 3*3 dimensional regression coefficient matrix;
    所述将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样,包括:Said inputting the financial data to be processed into the vector autoregressive model after inverse transformation and decoding operation to obtain the prediction pattern of the financial data to be processed includes:
    通过所述回归方程得出A i和c。 A i and c are obtained by the regression equation.
  4. 根据权利要求3所述的方法,其中,所述通过所述回归方程得出A i和c,包括: The method according to claim 3, wherein said regression equation derived by A i and c, comprising:
    通过以下公式2得出所述回归方程的最优解:The optimal solution of the regression equation is obtained by the following formula 2:
    Figure PCTCN2019103244-appb-100006
    x i为样本点,在本方案里为n*m维矩阵,矩阵的L2范数定义为x i Tx i的最大特征值的平方根
    Figure PCTCN2019103244-appb-100007
    得到映射
    Figure PCTCN2019103244-appb-100008
    使得
    Figure PCTCN2019103244-appb-100006
    x i is the sample point, which is an n*m-dimensional matrix in this scheme. The L2 norm of the matrix is defined as the square root of the maximum eigenvalue of x i T x i
    Figure PCTCN2019103244-appb-100007
    Get mapped
    Figure PCTCN2019103244-appb-100008
    Make
    Figure PCTCN2019103244-appb-100009
    R d为d维向量空间,{x i}为样本点集合。
    Figure PCTCN2019103244-appb-100009
    R d is a d-dimensional vector space, and {x i } is a set of sample points.
  5. 根据权利要求4所述的方法,其中,所述通过公式2得出所述回归方程的最优解时,损失函数
    Figure PCTCN2019103244-appb-100010
    The method according to claim 4, wherein when the optimal solution of the regression equation is obtained by formula 2, the loss function
    Figure PCTCN2019103244-appb-100010
  6. 一种金融数据的图像处理装置,其中,所述装置包括:An image processing device for financial data, wherein the device includes:
    获取模块,用于获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin;The obtaining module is used to obtain the first data Kd at the daily level and the second data Kmin at the preset minute level, wherein the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
    处理模块,用于对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;A processing module, configured to perform data processing on the first data Kd of the daily level and the second data Kmin of the preset minute level, and establish a vector autoregressive model of the image sample space according to the processed data;
    回归模块,用于将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The regression module is used to input the financial data to be processed into the vector autoregressive model to obtain the predicted pattern of the financial data to be processed after inverse transformation and decoding operations.
  7. 根据权利要求6所述的装置,其中,所述获取模块的所述第一数据Kd的数据类型包括日开盘价格,日收盘数据,日最高价格,日最低价格四个维度的金融数据,所述第二数据Kmin包括open price,close price两个维度的数据。The device according to claim 6, wherein the data type of the first data Kd of the acquiring module includes financial data in four dimensions: daily opening price, daily closing data, daily highest price, and daily lowest price. The second data Kmin includes data in two dimensions: open price and close price.
  8. 根据权利要求7所述的装置,其中,所述处理模块包括:The apparatus according to claim 7, wherein the processing module comprises:
    构建子模块,用于构建所述向量自回归模型:The construction sub-module is used to construct the vector autoregressive model:
    构建第一数据Kd的图像信息的同胚映射:公式1:
    Figure PCTCN2019103244-appb-100011
    Figure PCTCN2019103244-appb-100012
    该映射使高维流形转换成低维流形;所述
    Figure PCTCN2019103244-appb-100013
    表示对一个周 期为5天的K线图样本进行坐标映射的映射序列;
    Figure PCTCN2019103244-appb-100014
    构成局部坐标卡;
    Construct a homeomorphic mapping of the image information of the first data Kd: Formula 1:
    Figure PCTCN2019103244-appb-100011
    Figure PCTCN2019103244-appb-100012
    This mapping transforms a high-dimensional manifold into a low-dimensional manifold; the
    Figure PCTCN2019103244-appb-100013
    Represents the mapping sequence of coordinate mapping for a K-line chart sample with a period of 5 days;
    Figure PCTCN2019103244-appb-100014
    Form a local coordinate card;
    建立三维向量(Pr,M,S)的时间序列:x i=(Pr i,M i,S i),Pr i,M i,S i分别是第i个交易日的K线图实体大小,中位数和日内振幅; Dimensional vector (Pr, M, S) time series: x i = (Pr i, M i, S i), Pr i, M i, S i K are the physical size of the i-th line in FIG trading day, Median and intraday amplitude;
    回归方程为:The regression equation is:
    Figure PCTCN2019103244-appb-100015
    x n为第n日K线图,c为三维常数向量,ε为误差向量,A i是3*3维回归系数矩阵;
    Figure PCTCN2019103244-appb-100015
    x n is the K-line graph on the nth day, c is the three-dimensional constant vector, ε is the error vector, and Ai is the 3*3 dimensional regression coefficient matrix;
    回归模块,具体用于:Regression module, specifically used for:
    通过所述回归方程得出A i和c。 A i and c are obtained by the regression equation.
  9. 根据权利要求8所述的装置,其中,所述回归模块在实现通过所述回归方程得出A i和c的步骤时,具体用于: The device according to claim 8, wherein the regression module is specifically configured to: when implementing the step of obtaining Ai and c through the regression equation:
    通过以下公式2得出所述回归方程的最优解:The optimal solution of the regression equation is obtained by the following formula 2:
    Figure PCTCN2019103244-appb-100016
    x i为样本点,在本方案里为n*m维矩阵,矩阵的L2范数定义为x i Tx i的最大特征值的平方根
    Figure PCTCN2019103244-appb-100017
    得到映射
    Figure PCTCN2019103244-appb-100018
    使得
    Figure PCTCN2019103244-appb-100016
    x i is the sample point, which is an n*m-dimensional matrix in this scheme. The L2 norm of the matrix is defined as the square root of the maximum eigenvalue of x i T x i
    Figure PCTCN2019103244-appb-100017
    Get mapped
    Figure PCTCN2019103244-appb-100018
    Make
    Figure PCTCN2019103244-appb-100019
    R d为d维向量空间,{x i}为样本点集合。
    Figure PCTCN2019103244-appb-100019
    R d is a d-dimensional vector space, and {x i } is a set of sample points.
  10. 根据权利要求9所述的装置,其中,所述通过公式2得出所述回归方程的最优解时,损失函数
    Figure PCTCN2019103244-appb-100020
    The device according to claim 9, wherein when the optimal solution of the regression equation is obtained by formula 2, the loss function
    Figure PCTCN2019103244-appb-100020
  11. 一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:A computer device includes a memory, a processor, and a computer program stored on the memory and running on the processor, wherein the processor implements the following steps when the processor executes the computer program:
    获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,所述第一数据Kd为多维数据类型且维度高于所述第二数据Kmin;Acquiring first data Kd at a daily level and second data Kmin at a preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
    对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
    将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
  12. 根据权利要求11所述的计算机设备,其中,在实现所述获取日度级 别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin的步骤时,具体包括:The computer device according to claim 11, wherein the first data Kd at the daily level and the second data Kmin at the preset minute level are acquired, wherein the first data Kd is a multidimensional data type and has a higher dimension than The steps of the second data Kmin specifically include:
    所述第一数据Kd的数据类型包括日开盘价格、日收盘数据、日最高价格、日最低价格四个维度的金融数据,所述第二数据Kmin包括open price,close price两个维度的数据。The data type of the first data Kd includes four dimensions of financial data of daily opening price, daily closing data, daily highest price, and daily lowest price, and the second data Kmin includes data of two dimensions: open price and close price.
  13. 根据权利要求12所述的计算机设备,其中,在实现所述对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型的步骤时,具体包括:The computer device according to claim 12, wherein the first data Kd of the daily level and the second data Kmin of the preset minute level are processed after the realization of the data processing, and an image sample is created based on the processed data The steps of the spatial vector autoregressive model include:
    构建所述向量自回归模型,包括:Constructing the vector autoregressive model includes:
    构建第一数据Kd的图像信息的同胚映射:公式1:
    Figure PCTCN2019103244-appb-100021
    Figure PCTCN2019103244-appb-100022
    该映射使高维流形转换成低维流形;所述
    Figure PCTCN2019103244-appb-100023
    表示对一个周期为5天的K线图样本进行坐标映射的映射序列;
    Figure PCTCN2019103244-appb-100024
    构成局部坐标卡;
    Construct a homeomorphic mapping of the image information of the first data Kd: Formula 1:
    Figure PCTCN2019103244-appb-100021
    Figure PCTCN2019103244-appb-100022
    This mapping transforms a high-dimensional manifold into a low-dimensional manifold; the
    Figure PCTCN2019103244-appb-100023
    Represents the mapping sequence of coordinate mapping for a K-line chart sample with a period of 5 days;
    Figure PCTCN2019103244-appb-100024
    Form a local coordinate card;
    建立三维向量(Pr,M,S)的时间序列:x i=(Pr i,M i,S i),Pr i,M i,S i分别是第i个交易日的K线图实体大小,中位数和日内振幅; Dimensional vector (Pr, M, S) time series: x i = (Pr i, M i, S i), Pr i, M i, S i K are the physical size of the i-th line in FIG trading day, Median and intraday amplitude;
    回归方程为:The regression equation is:
    Figure PCTCN2019103244-appb-100025
    x n为第n日K线图,c为三维常数向量,ε为误差向量,A i是3*3维回归系数矩阵;
    Figure PCTCN2019103244-appb-100025
    x n is the K-line graph on the nth day, c is the three-dimensional constant vector, ε is the error vector, and Ai is the 3*3 dimensional regression coefficient matrix;
    在实现所述将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样的步骤时,具体包括:When implementing the step of inputting the financial data to be processed into the vector autoregressive model after inverse transformation and decoding operations to obtain the predicted pattern of the financial data to be processed, it specifically includes:
    通过所述回归方程得出A i和c。 A i and c are obtained by the regression equation.
  14. 根据权利要求13所述的计算机设备,其中,在实现所述通过所述回归方程得出A i和c的步骤时,具体包括: The computer device according to claim 13, wherein when the step of obtaining A i and c by the regression equation is implemented, it specifically comprises:
    通过以下公式2得出所述回归方程的最优解:The optimal solution of the regression equation is obtained by the following formula 2:
    Figure PCTCN2019103244-appb-100026
    x i为样本点,在本方案里为n*m维矩阵,矩阵的L2范数定义为x i Tx i的最大特征值的平方根
    Figure PCTCN2019103244-appb-100027
    得到映射
    Figure PCTCN2019103244-appb-100028
    使得
    Figure PCTCN2019103244-appb-100026
    x i is the sample point, which is an n*m-dimensional matrix in this scheme. The L2 norm of the matrix is defined as the square root of the maximum eigenvalue of x i T x i
    Figure PCTCN2019103244-appb-100027
    Get mapped
    Figure PCTCN2019103244-appb-100028
    Make
    Figure PCTCN2019103244-appb-100029
    R d为d维向量空间,{x i}为样本点集合。
    Figure PCTCN2019103244-appb-100029
    R d is a d-dimensional vector space, and {x i } is a set of sample points.
  15. 根据权利要求14所述的计算机设备,其中,所述通过公式2得出所述回归方程的最优解时,损失函数
    Figure PCTCN2019103244-appb-100030
    The computer device according to claim 14, wherein when the optimal solution of the regression equation is obtained by formula 2, the loss function
    Figure PCTCN2019103244-appb-100030
  16. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the following steps when executed by a processor:
    获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,所述第一数据Kd为多维数据类型且维度高于所述第二数据Kmin;Acquiring first data Kd at a daily level and second data Kmin at a preset minute level, where the first data Kd is a multidimensional data type and has a higher dimension than the second data Kmin;
    对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型;Data processing is performed on the first data Kd of the daily level and the second data Kmin of the preset minute level, and a vector autoregressive model of the image sample space is established according to the processed data;
    将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样。The financial data to be processed is input into the vector autoregressive model to obtain a prediction pattern of the financial data to be processed after inverse transformation and decoding operations.
  17. 根据权利要求16所述的计算机可读存储介质,其中,在实现所述获取日度级别的第一数据Kd和预设分钟级别的第二数据Kmin,其中,第一数据Kd为多维数据类型且维度高于第二数据Kmin的步骤时,具体包括:The computer-readable storage medium according to claim 16, wherein the first data Kd at the daily level and the second data Kmin at the preset minute level are acquired in the realization of the acquisition, wherein the first data Kd is a multi-dimensional data type and When the dimension is higher than the second data Kmin, the steps specifically include:
    所述第一数据Kd的数据类型包括日开盘价格、日收盘数据、日最高价格、日最低价格四个维度的金融数据,所述第二数据Kmin包括open price,close price两个维度的数据。The data type of the first data Kd includes four dimensions of financial data of daily opening price, daily closing data, daily highest price, and daily lowest price, and the second data Kmin includes data of two dimensions: open price and close price.
  18. 根据权利要求17所述的计算机可读存储介质,其中,在实现所述对所述日度级别的第一数据Kd和预设分钟级别的第二数据Kmin进行数据处理,并根据处理后的数据建立图像样本空间的向量自回归模型的步骤时,具体包括:The computer-readable storage medium according to claim 17, wherein the first data Kd of the daily level and the second data Kmin of the preset minute level are processed in the realization of the data processing, and the data is processed according to the processed data. The steps of establishing the vector autoregressive model of the image sample space include:
    构建所述向量自回归模型,包括:Constructing the vector autoregressive model includes:
    构建第一数据Kd的图像信息的同胚映射:公式1:
    Figure PCTCN2019103244-appb-100031
    Figure PCTCN2019103244-appb-100032
    该映射使高维流形转换成低维流形;所述
    Figure PCTCN2019103244-appb-100033
    表示对一个周期为5天的K线图样本进行坐标映射的映射序列;
    Figure PCTCN2019103244-appb-100034
    构成局部坐标卡;
    Construct a homeomorphic mapping of the image information of the first data Kd: Formula 1:
    Figure PCTCN2019103244-appb-100031
    Figure PCTCN2019103244-appb-100032
    This mapping transforms a high-dimensional manifold into a low-dimensional manifold; the
    Figure PCTCN2019103244-appb-100033
    Represents the mapping sequence of coordinate mapping for a K-line chart sample with a period of 5 days;
    Figure PCTCN2019103244-appb-100034
    Form a local coordinate card;
    建立三维向量(Pr,M,S)的时间序列:x i=(Pr i,M i,S i),Pr i,M i,S i分别是第i个交易日的K线图实体大小,中位数和日内振幅; Dimensional vector (Pr, M, S) time series: x i = (Pr i, M i, S i), Pr i, M i, S i K are the physical size of the i-th line in FIG trading day, Median and intraday amplitude;
    回归方程为:The regression equation is:
    Figure PCTCN2019103244-appb-100035
    x n为第n日K线图,c为三维常数向量,ε为误差向量,A i是3*3维回归系数矩阵;
    Figure PCTCN2019103244-appb-100035
    x n is the K-line graph on the nth day, c is the three-dimensional constant vector, ε is the error vector, and Ai is the 3*3 dimensional regression coefficient matrix;
    在实现所述将待处理的金融数据输入到所述向量自回归模型中逆变换和解码运算之后得到所述待处理的金融数据的预测图样的步骤时,具体包括:When implementing the step of inputting the financial data to be processed into the vector autoregressive model after inverse transformation and decoding operations to obtain the predicted pattern of the financial data to be processed, it specifically includes:
    通过所述回归方程得出A i和c。 A i and c are obtained by the regression equation.
  19. 根据权利要求18所述的计算机可读存储介质,其中,在实现所述通过所述回归方程得出A i和c的步骤时,具体包括: 18. The computer-readable storage medium according to claim 18, wherein when the step of obtaining Ai and c from the regression equation is implemented, it specifically comprises:
    通过以下公式2得出所述回归方程的最优解:The optimal solution of the regression equation is obtained by the following formula 2:
    Figure PCTCN2019103244-appb-100036
    x i为样本点,在本方案里为n*m维矩阵,矩阵的L2范数定义为x i Tx i的最大特征值的平方根
    Figure PCTCN2019103244-appb-100037
    得到映射
    Figure PCTCN2019103244-appb-100038
    使得
    Figure PCTCN2019103244-appb-100036
    x i is the sample point, which is an n*m-dimensional matrix in this scheme. The L2 norm of the matrix is defined as the square root of the maximum eigenvalue of x i T x i
    Figure PCTCN2019103244-appb-100037
    Get mapped
    Figure PCTCN2019103244-appb-100038
    Make
    Figure PCTCN2019103244-appb-100039
    R d为d维向量空间,{x i}为样本点集合。
    Figure PCTCN2019103244-appb-100039
    R d is a d-dimensional vector space, and {x i } is a set of sample points.
  20. 根据权利要求19所述的计算机可读存储介质,其中,所述通过公式2得出所述回归方程的最优解时,损失函数
    Figure PCTCN2019103244-appb-100040
    Figure PCTCN2019103244-appb-100041
    The computer-readable storage medium according to claim 19, wherein when the optimal solution of the regression equation is obtained by formula 2, the loss function
    Figure PCTCN2019103244-appb-100040
    Figure PCTCN2019103244-appb-100041
PCT/CN2019/103244 2019-04-04 2019-08-29 Image processing method and apparatus for financial data, and device and computer-readable storage medium WO2020199483A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910270950.9 2019-04-04
CN201910270950.9A CN110120082B (en) 2019-04-04 2019-04-04 Image processing method, device and equipment for financial data and readable storage medium

Publications (1)

Publication Number Publication Date
WO2020199483A1 true WO2020199483A1 (en) 2020-10-08

Family

ID=67520827

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/103244 WO2020199483A1 (en) 2019-04-04 2019-08-29 Image processing method and apparatus for financial data, and device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN110120082B (en)
WO (1) WO2020199483A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110120082B (en) * 2019-04-04 2023-08-18 平安科技(深圳)有限公司 Image processing method, device and equipment for financial data and readable storage medium
CN112446933B (en) * 2020-11-13 2024-05-03 中信银行股份有限公司 Imaging method and device of financial asset, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338534A (en) * 2005-06-03 2006-12-14 Dainippon Printing Co Ltd Variation event prediction system
CN106600070A (en) * 2016-12-20 2017-04-26 郭建峰 Short-period share price prediction algorithm based on IPSO-BP neural network
CN106651583A (en) * 2017-01-12 2017-05-10 中国银河证券股份有限公司 Transaction volume predicting method and equipment
CN108154435A (en) * 2017-12-26 2018-06-12 浙江工业大学 A kind of stock index price expectation method based on Recognition with Recurrent Neural Network
CN109117991A (en) * 2018-07-26 2019-01-01 北京京东金融科技控股有限公司 One B shareB order transaction method and apparatus
CN110120082A (en) * 2019-04-04 2019-08-13 平安科技(深圳)有限公司 Image processing method, device, equipment and the readable storage medium storing program for executing of finance data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7127100B2 (en) * 2001-06-25 2006-10-24 National Instruments Corporation System and method for analyzing an image
EP3287914A1 (en) * 2016-08-23 2018-02-28 Siemens Healthcare GmbH Determination of outcome data based on medical test data from different measurements
CN108319983A (en) * 2018-01-31 2018-07-24 中山大学 A kind of nonlinear data dimension reduction method of local nonlinearity alignment
CN108765153A (en) * 2018-05-23 2018-11-06 东莞市波动赢机器人科技有限公司 Transaction machine people's finance data computational methods and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338534A (en) * 2005-06-03 2006-12-14 Dainippon Printing Co Ltd Variation event prediction system
CN106600070A (en) * 2016-12-20 2017-04-26 郭建峰 Short-period share price prediction algorithm based on IPSO-BP neural network
CN106651583A (en) * 2017-01-12 2017-05-10 中国银河证券股份有限公司 Transaction volume predicting method and equipment
CN108154435A (en) * 2017-12-26 2018-06-12 浙江工业大学 A kind of stock index price expectation method based on Recognition with Recurrent Neural Network
CN109117991A (en) * 2018-07-26 2019-01-01 北京京东金融科技控股有限公司 One B shareB order transaction method and apparatus
CN110120082A (en) * 2019-04-04 2019-08-13 平安科技(深圳)有限公司 Image processing method, device, equipment and the readable storage medium storing program for executing of finance data

Also Published As

Publication number Publication date
CN110120082B (en) 2023-08-18
CN110120082A (en) 2019-08-13

Similar Documents

Publication Publication Date Title
US11106486B2 (en) Techniques to manage virtual classes for statistical tests
Guo et al. A stock market forecasting model combining two-directional two-dimensional principal component analysis and radial basis function neural network
WO2018059016A1 (en) Feature processing method and feature processing system for machine learning
CN115269512A (en) Object recommendation method, device and storage medium for realizing IA by combining RPA and AI
WO2019205384A1 (en) Electronic device, machine learning-based stock trade timing method and storage medium
CN111143344A (en) Completion method and device for time series data missing
WO2020199483A1 (en) Image processing method and apparatus for financial data, and device and computer-readable storage medium
WO2023050649A1 (en) Esg index determination method based on data complementing, and related product
Tu et al. A novel grey relational clustering model under sequential three-way decision framework
CN117271906B (en) Beef cattle transaction management system and method thereof
CN116777646A (en) Artificial intelligence-based risk identification method, apparatus, device and storage medium
CN117094729A (en) Request processing method, device, computer equipment and storage medium
CN115661472A (en) Image duplicate checking method and device, computer equipment and storage medium
WO2020037922A1 (en) Stock index forecasting method, device, and storage medium
Zhang et al. Load prediction based on depthwise separable convolution model
CN117436550B (en) Recommendation model training method and device
US20240104472A1 (en) Systems and methods for assessing mergers and acquisition vulnerabilities in financial markets
US11971901B1 (en) Systems for encoding data transforms by intent
CN116933869A (en) Map construction method, device, computer equipment and storage medium
Xiao et al. [Retracted] A Big Data Analysis Algorithm Designed for the Interactive Platform of the Intelligent Sensor Information System
CN117078406A (en) Customer loss early warning method and device, computer equipment and storage medium
Xue et al. SADCL-Net: Sparse-driven Attention with Dual-Consistency Learning Network for Incomplete Multi-view Clustering
CN118245802A (en) Model training method and device, storage medium and electronic device
Guo et al. Predicting Economic Advantages in Smart Innovative City Development: A CSO-MCNN Approach
CN117709801A (en) Client data processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19923179

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19923179

Country of ref document: EP

Kind code of ref document: A1