WO2020024718A1 - Method and device for predicting foreign exchange transaction volume - Google Patents

Method and device for predicting foreign exchange transaction volume Download PDF

Info

Publication number
WO2020024718A1
WO2020024718A1 PCT/CN2019/091735 CN2019091735W WO2020024718A1 WO 2020024718 A1 WO2020024718 A1 WO 2020024718A1 CN 2019091735 W CN2019091735 W CN 2019091735W WO 2020024718 A1 WO2020024718 A1 WO 2020024718A1
Authority
WO
WIPO (PCT)
Prior art keywords
foreign exchange
exchange transaction
transaction volume
business
data
Prior art date
Application number
PCT/CN2019/091735
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 WO2020024718A1 publication Critical patent/WO2020024718A1/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
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • 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

Definitions

  • This specification relates to the field of data processing technology, and particularly to a method and device for predicting foreign exchange transaction volume.
  • this manual provides methods and devices for predicting foreign exchange transaction volume.
  • a method for predicting foreign exchange transaction volume includes: acquiring time series data, the time series data including a foreign exchange transaction business data sequence for multiple business days in a historical time period, The foreign exchange transaction business data sequence is arranged in chronological order, and each foreign exchange transaction business data sequence includes multiple dimensions of foreign exchange transaction business data within the same business day; inputting the time series data into a pre-trained multilayer convolutional neural network A model to predict the volume of foreign exchange transactions in the future time period.
  • the method further includes: calculating a prediction accuracy according to the predicted value and the real value of the foreign exchange transaction volume in the future time period; and modeling the model parameters of the multi-layer convolutional neural network model according to the prediction accuracy. Make adjustments.
  • the method further comprises: acquiring historical foreign exchange transaction volumes for several periods in history; calculating an average value and a variance of the foreign exchange transaction volumes in the same period; and anomaly the predicted value of the foreign exchange transaction volume according to the average value and the variance. Detection.
  • the method further comprises: if the predicted value of the foreign exchange transaction volume is less than X1, modifying the predicted value of the foreign exchange transaction volume to X1; if the predicted value of the foreign exchange transaction volume is greater than X2, modifying the The forecast value of foreign exchange transaction volume was revised to X2.
  • the step of inputting the time series data into a pre-trained multi-layer convolutional neural network model includes: calculating a foreign exchange transaction business feature of a key merchant based on the time series data; and entering a foreign exchange transaction business feature of the key merchant. Enter a pre-trained multilayer convolutional neural network model.
  • the foreign exchange transaction business data includes forward transaction volume, reverse transaction volume, business day date attributes, business day promotion attributes, and / or business day preset marketing amounts for each business day.
  • a foreign exchange transaction volume prediction device includes an acquisition module for acquiring time series data, and the time series data includes foreign exchange for multiple business days in a historical time period.
  • Transaction business data sequence the foreign exchange transaction data sequence is arranged in chronological order, and each foreign exchange transaction data sequence includes multiple dimensions of foreign exchange transaction business data within the same business day;
  • a prediction module is configured to convert the time series data Enter a pre-trained multi-layer convolutional neural network model to predict foreign exchange trading volume in the future time period.
  • a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method according to any one of the embodiments is implemented.
  • a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements any implementation when the program is executed.
  • Example method Example method.
  • FIG. 1 is a flowchart of a method for predicting foreign exchange transaction volume according to an embodiment of the present specification.
  • FIG. 2 is a schematic diagram of foreign exchange transaction data according to an embodiment of the present specification.
  • FIG. 3 is a schematic diagram of an abnormality detection process according to an embodiment of the present specification.
  • FIG. 4 is a block diagram of a foreign exchange transaction volume prediction device according to an embodiment of the present specification.
  • FIG. 5 is a schematic diagram of a computer device for implementing a method of an embodiment of the present specification according to an embodiment of the present specification.
  • first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
  • word “if” as used herein can be interpreted as “at” or "when” or "in response to determination”.
  • FIG. 1 it is a flowchart of a method for predicting foreign exchange transaction volume according to an embodiment of the present specification.
  • the method may include the following steps:
  • Step 102 Obtain time series data.
  • the time series data includes a foreign exchange transaction data sequence for multiple business days in a historical time period.
  • the foreign exchange transaction data sequence is arranged in chronological order, and each foreign exchange transaction business data sequence includes Data on foreign exchange transactions in multiple dimensions within the same business day;
  • Step 104 input the time series data into a pre-trained multilayer convolutional neural network to predict the foreign exchange transaction volume in the future time period.
  • time series data is first obtained, that is, a set of data arranged in chronological order.
  • the business day is a statistical period of business volume, which can be the same as the natural day (0:00 to 23:59), or can be preset by the business system. For example, it can be set to 15 of a natural day: 00 to 14:59 the next day, or set to another time period.
  • these dimensions may include forward transaction volume, reverse transaction volume, business day date attributes, business day promotion attributes, and / or business day preset marketing amounts for each business day.
  • these dimensions may include forward transaction volume, reverse transaction volume, business day date attributes, business day promotion attributes, and / or business day preset marketing amounts for each business day.
  • the user's purchase and payment behavior and the user's refund behavior bring about the opposite flow of funds.
  • the user's payment behavior is a forward transaction
  • the user's refund behavior is a Reverse transactions
  • the forward transaction volume is the total amount of the user's payment to the merchant
  • the reverse transaction volume is the total amount of the user's refund from the merchant.
  • the business day date attribute is whether the date corresponding to the business day is at the beginning of the month, the end of the month, the middle of the month, the working day, the non-working day, or the holiday.
  • the business day promotion attribute is whether or not there is a promotion activity and the activity level of the promotion activity on the business day. Among them, the activity level is determined by factors such as the discount strength of the promotion activity, the coverage of merchants, and the expected transaction volume.
  • the preset sales amount for a business day can be a preset sales amount for a single business day, and different business days can be set for different preset sales amounts.
  • FIG. 2 A schematic diagram of foreign exchange transaction data of an embodiment is shown in FIG. 2.
  • T represents the selected predicted time node
  • T + N represents the Nth business day after time node T.
  • step 104 the time series data obtained in step 102 may be input to a multi-layer convolutional neural network model, and the multi-layer convolutional neural network model is used to predict the foreign exchange transaction volume in the future time period.
  • Multi-layer convolutional neural network models can be pre-trained. During training, the time series data in the historical time period can be used as input, the real value of the foreign exchange transaction volume in the historical time period can be used as the output, and the model parameters of the multi-layer convolutional neural network model can be solved.
  • the multi-layer convolutional neural network model is used to solve the problem that conventional linear regression methods cannot mine the correlation between adjacent time nodes, and conventional time series processing methods cannot handle high-dimensional data nodes.
  • the multi-layer convolutional neural network can not only ensure the scalability of the high-dimensional features of each time node data, but also can ensure the sequential evolution between time nodes. At the same time, the neural network can control overfitting and automatically realize the selection of high-dimensional features. In addition, for refund and other services in foreign exchange transactions, the refund window is generally a fixed length. Convolutional neural networks train a relatively short amount of business window data and can capture the rules of short-term business windows.
  • the prediction accuracy may also be calculated according to the predicted value and the real value of the foreign exchange transaction volume in the future time period;
  • the model parameters of the multi-layer convolutional neural network model are adjusted. In this way, the model parameters of the multi-layer convolutional neural network model can be dynamically adjusted, and the prediction accuracy can be improved.
  • the method in the embodiment of the present specification further includes:
  • Step 302 Obtain the historical foreign exchange transaction volume for several periods in history
  • Step 304 Calculate the mean and variance of the foreign exchange transaction volume over the same period
  • Step 306 Anomaly detection is performed on the predicted value of the foreign exchange transaction volume according to the mean and variance. Through anomaly detection, abnormal predicted values can be filtered out, thereby further improving prediction accuracy.
  • the period in this embodiment may be a time period including multiple business days with the same business day date attribute. It can be a time period that includes multiple business day date attributes as the business day of the beginning of the month. For example, a cycle includes 3 months, and the three business days include three business day date attributes as the business day of the beginning of the month. It may also be a time period that includes multiple business day date attributes as Sunday business days. For example, a period includes 4 weeks, and these 4 weeks include 4 business day date attributes with Sunday business days.
  • the foreign exchange transaction volume is the foreign exchange transaction volume with the same business day and date attributes. For example, it can be two or more business day dates. The date attributes of two or more business days are the foreign exchange transaction volume of the business day at the beginning of the month.
  • Anomaly detection is performed on the predicted value of the foreign exchange transaction volume according to the mean and variance, and a numerical range of the foreign exchange transaction volume may be set in advance. If the predicted value of the foreign exchange transaction volume exceeds a preset numerical range, determining that the predicted value of the foreign exchange transaction volume is abnormal; wherein the numerical range may be:
  • is the average value of the foreign exchange transaction volume in the same period
  • N is a preset positive integer
  • is the variance of the foreign exchange transaction volume in the same period.
  • the predicted value of the foreign exchange transaction volume may be corrected to X1; if the predicted value of the foreign exchange transaction volume is greater than X2, the foreign exchange transaction volume may be predicted The value is corrected to X2.
  • the step of inputting the time series data into a pre-trained multi-layer convolutional neural network model includes: calculating a foreign exchange transaction business feature of a key merchant according to the time series data; Business feature input is a pre-trained multilayer convolutional neural network model.
  • the key merchants may be the merchants whose trading volume ranks among the top several in the entire currency's trading volume on that day, or the average value of their trading volume in the historical time period (for example, one month) among the top merchants.
  • a number of merchants can also be the top ones in terms of transaction volume on the same day, and the average number of merchants in the historical period of time also ranks in the top several merchants.
  • other features or a combination of features can also be used to determine whether a merchant is a key merchant.
  • the characteristics of foreign exchange transactions of key merchants may include characteristics such as the proportion of key merchant transaction volume, the intensity of key merchant activities, and / or the proportion of key merchants' high-quality goods.
  • the transaction volume ratio of key merchants is the ratio of the transaction volume of key merchants to the total transaction volume.
  • the intensity of key merchant activities is used to characterize which level of promotion activities held by key merchants are on the trading platform's promotional activities.
  • the level of activities can be divided according to the expected sales of key merchants.
  • the proportion of key merchandise's high-quality goods can be calculated based on the ratio of the sales of the merchandise rated above a certain rating value to the total sales of the key merchant.
  • an embodiment of the present specification further provides a device for predicting foreign exchange transaction volume.
  • the device may include:
  • the obtaining module 402 is configured to obtain time series data, where the time series data includes a foreign exchange transaction data sequence of multiple business days in a historical time period, the foreign exchange transaction data sequence is arranged in chronological order, and each foreign exchange transaction service The data sequence includes multiple dimensions of foreign exchange transaction business data within the same business day;
  • a prediction module 404 is configured to input the time series data into a pre-trained multi-layer convolutional neural network model to predict a foreign exchange transaction volume in a future time period.
  • the relevant part may refer to the description of the method embodiment.
  • the device embodiments described above are only schematic, and the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, which may be located in One place, or can be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement without creative efforts.
  • the embodiments of the apparatus of the present specification can be applied to a computer device, such as a server or a terminal device.
  • the device embodiments may be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory and running the processor through the file processing processor.
  • FIG. 5 it is a hardware structure diagram of the computer equipment where the device of this specification is located, except for the processor 502, the memory 504, the network interface 506, and the non-volatile memory 508 shown in FIG. 5.
  • the server or electronic device where the device is located in the embodiment may generally include other hardware according to the actual function of the computer device, and details are not described herein again.
  • the embodiment of the present specification also provides a computer storage medium.
  • the storage medium stores a program, and when the program is executed by a processor, the method in any of the foregoing embodiments is implemented.
  • an embodiment of the present specification further provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor executes the program, any one of the foregoing embodiments is implemented.
  • the embodiments of the present specification may take the form of a computer program product implemented on one or more storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing program code.
  • Computer-usable storage media includes permanent and non-permanent, removable and non-removable media, and information can be stored by any method or technology.
  • Information may be computer-readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technologies
  • CD-ROM compact disc read-only memory
  • DVD digital versatile disc
  • Magnetic tape cartridges magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Technology Law (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method and device for predicting a foreign exchange transaction volume. The method comprises: obtaining time series data consisting of foreign exchange transaction business data series (102), wherein each foreign exchange transaction business data series comprises foreign exchange transaction business data of multiple dimensions within the same business day; and then, inputting the time series data to a pre-trained multilayer convolutional neural network to predict a foreign exchange transaction volume in a future time period (104). The mutual influence of the foreign exchange transaction business data between adjacent time nodes is considered during prediction, and the multi-dimensional characteristic attribute of a single time node is utilized, thereby improving the prediction accuracy.

Description

外汇交易量预测方法和装置Method and device for predicting foreign exchange transaction volume 技术领域Technical field
本说明书涉及数据处理技术领域,尤其涉及外汇交易量预测方法和装置。This specification relates to the field of data processing technology, and particularly to a method and device for predicting foreign exchange transaction volume.
背景技术Background technique
在国际汇兑业务中,需要通过提前购买下一个购汇结算周期的各外汇交易量,减少潜在的汇率敞口波动风险,进行损益控制。为了进行损益控制,需要对每个购汇结算周期的外汇交易量进行预测。因此,有必要对外汇交易量的预测方式进行改进。In the international currency exchange business, it is necessary to reduce the potential risk of fluctuations in exchange rate exposure and control profit and loss by purchasing the foreign exchange transaction volume of the next foreign exchange purchase settlement cycle in advance. In order to carry out profit and loss control, it is necessary to forecast the foreign exchange transaction volume of each foreign exchange settlement cycle. Therefore, it is necessary to improve the forecasting method of foreign exchange transaction volume.
发明内容Summary of the invention
基于此,本说明书提供了外汇交易量预测方法和装置。Based on this, this manual provides methods and devices for predicting foreign exchange transaction volume.
根据本说明书实施例的第一方面,提供一种外汇交易量预测方法,所述方法包括:获取时间序列数据,所述时间序列数据包括历史时间段内多个业务日的外汇交易业务数据序列,所述外汇交易业务数据序列按照时间顺序排列,且每条外汇交易业务数据序列包括同一业务日内的多个维度的外汇交易业务数据;将所述时间序列数据输入预先训练的多层卷积神经网络模型,以对未来时间段内的外汇交易量进行预测。According to a first aspect of the embodiments of the present specification, a method for predicting foreign exchange transaction volume is provided. The method includes: acquiring time series data, the time series data including a foreign exchange transaction business data sequence for multiple business days in a historical time period, The foreign exchange transaction business data sequence is arranged in chronological order, and each foreign exchange transaction business data sequence includes multiple dimensions of foreign exchange transaction business data within the same business day; inputting the time series data into a pre-trained multilayer convolutional neural network A model to predict the volume of foreign exchange transactions in the future time period.
可选地,所述方法还包括:根据所述未来时间段内外汇交易量的预测值和真实值计算预测准确度;根据所述预测准确度对所述多层卷积神经网络模型的模型参数进行调整。Optionally, the method further includes: calculating a prediction accuracy according to the predicted value and the real value of the foreign exchange transaction volume in the future time period; and modeling the model parameters of the multi-layer convolutional neural network model according to the prediction accuracy. Make adjustments.
可选地,所述方法还包括:获取历史若干个周期的同期外汇交易量;计算所述同期外汇交易量的均值和方差;根据所述均值和方差对所述外汇交易量的预测值进行异常检测。Optionally, the method further comprises: acquiring historical foreign exchange transaction volumes for several periods in history; calculating an average value and a variance of the foreign exchange transaction volumes in the same period; and anomaly the predicted value of the foreign exchange transaction volume according to the average value and the variance. Detection.
可选地,根据所述均值和方差对所述外汇交易量的预测值进行异常检测的步骤包括:若所述外汇交易量的预测值超出预设的数值范围,判定所述外汇交易量的预测值异常;其中,所述数值范围为:(X1,X2),其中,X1=μ-N*δ,X2=μ+N*δ;式中,μ为同期外汇交易量的均值,N为预设正整数,δ为同期外汇交易量的方差。Optionally, the step of abnormally detecting the predicted value of the foreign exchange transaction volume according to the mean and variance includes: if the predicted value of the foreign exchange transaction volume exceeds a preset numerical range, determining the prediction of the foreign exchange transaction volume The value is abnormal; wherein, the value range is: (X1, X2), where X1 = μ-N * δ, X2 = μ + N * δ; where μ is the average value of foreign exchange transactions during the same period, and N is the forecast Set a positive integer, δ is the variance of the foreign exchange transaction volume over the same period.
可选地,所述方法还包括:若所述外汇交易量的预测值小于X1,将所述外汇交易量的预测值修正为X1;若所述外汇交易量的预测值大于X2,将所述外汇交易量的预测值修正为X2。Optionally, the method further comprises: if the predicted value of the foreign exchange transaction volume is less than X1, modifying the predicted value of the foreign exchange transaction volume to X1; if the predicted value of the foreign exchange transaction volume is greater than X2, modifying the The forecast value of foreign exchange transaction volume was revised to X2.
可选地,将所述时间序列数据输入预先训练的多层卷积神经网络模型的步骤包括:根据所述时间序列数据计算重点商户的外汇交易业务特征;将所述重点商户的外汇交易业务特征输入预先训练的多层卷积神经网络模型。Optionally, the step of inputting the time series data into a pre-trained multi-layer convolutional neural network model includes: calculating a foreign exchange transaction business feature of a key merchant based on the time series data; and entering a foreign exchange transaction business feature of the key merchant. Enter a pre-trained multilayer convolutional neural network model.
可选地,所述外汇交易业务数据包括每个业务日的正向交易量、逆向交易量、业务日日期属性、业务日促销属性和/或业务日预设营销额。Optionally, the foreign exchange transaction business data includes forward transaction volume, reverse transaction volume, business day date attributes, business day promotion attributes, and / or business day preset marketing amounts for each business day.
根据本说明书实施例的第二方面,提供一种外汇交易量预测装置,所述装置包括:获取模块,用于获取时间序列数据,所述时间序列数据包括历史时间段内多个业务日的外汇交易业务数据序列,所述外汇交易业务数据序列按照时间顺序排列,且每条外汇交易业务数据序列包括同一业务日内的多个维度的外汇交易业务数据;预测模块,用于将所述时间序列数据输入预先训练的多层卷积神经网络模型,以对未来时间段内的外汇交易量进行预测。According to a second aspect of the embodiments of the present specification, a foreign exchange transaction volume prediction device is provided. The device includes an acquisition module for acquiring time series data, and the time series data includes foreign exchange for multiple business days in a historical time period. Transaction business data sequence, the foreign exchange transaction data sequence is arranged in chronological order, and each foreign exchange transaction data sequence includes multiple dimensions of foreign exchange transaction business data within the same business day; a prediction module is configured to convert the time series data Enter a pre-trained multi-layer convolutional neural network model to predict foreign exchange trading volume in the future time period.
根据本说明书实施例的第三方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现任一实施例所述的方法。According to a third aspect of the embodiments of the present specification, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to any one of the embodiments is implemented.
根据本说明书实施例的第四方面,提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现任一实施例所述的方法。According to a fourth aspect of the embodiments of the present specification, there is provided a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements any implementation when the program is executed. Example method.
应用本说明书实施例方案,获取由外汇交易业务数据序列构成的时间序列数据,且每条外汇交易业务数据序列包括同一业务日内的多个维度的外汇交易业务数据,然后将时间序列数据输入预先训练的多层卷积神经网络,以对未来时间段内的外汇交易量进行预测,在预测时考虑了相邻时间节点之间外汇交易业务数据的互相影响,并利用了单个时间节点的多维特征属性,提高了预测准确度。Apply the solution of the embodiment of this specification to obtain time series data composed of foreign exchange transaction business data sequences, and each foreign exchange transaction business data sequence includes multiple dimensions of foreign exchange transaction business data within the same business day, and then input the time series data into the pre-training Multi-layer convolutional neural network to predict the foreign exchange transaction volume in the future time period. In the prediction, the mutual influence of foreign exchange transaction business data between adjacent time nodes is considered, and the multi-dimensional characteristic attributes of a single time node are used. To improve prediction accuracy.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书。It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and should not limit the present specification.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本说明书的实施例,并与说明书一起用于解释本说明书的原理。The drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the specification, and together with the description serve to explain the principles of the specification.
图1是本说明书一个实施例的外汇交易量预测方法流程图。FIG. 1 is a flowchart of a method for predicting foreign exchange transaction volume according to an embodiment of the present specification.
图2是本说明书一个实施例的外汇交易业务数据示意图。FIG. 2 is a schematic diagram of foreign exchange transaction data according to an embodiment of the present specification.
图3是本说明书一个实施例的异常检测过程示意图。FIG. 3 is a schematic diagram of an abnormality detection process according to an embodiment of the present specification.
图4是本说明书一个实施例的外汇交易量预测装置的框图。FIG. 4 is a block diagram of a foreign exchange transaction volume prediction device according to an embodiment of the present specification.
图5是本说明书一个实施例的用于实施本说明书实施例方法的计算机设备的示意图。FIG. 5 is a schematic diagram of a computer device for implementing a method of an embodiment of the present specification according to an embodiment of the present specification.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Rather, they are merely examples of devices and methods consistent with certain aspects of the specification, as detailed in the appended claims.
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the specification. As used in this specification and the appended claims, the singular forms "a", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at" or "when" or "in response to determination".
如图1所示,是本说明书一个实施例的外汇交易量预测方法流程图。所述方法可包括以下步骤:As shown in FIG. 1, it is a flowchart of a method for predicting foreign exchange transaction volume according to an embodiment of the present specification. The method may include the following steps:
步骤102:获取时间序列数据,所述时间序列数据包括历史时间段内多个业务日的外汇交易业务数据序列,所述外汇交易业务数据序列按照时间顺序排列,且每条外汇交易业务数据序列包括同一业务日内的多个维度的外汇交易业务数据;Step 102: Obtain time series data. The time series data includes a foreign exchange transaction data sequence for multiple business days in a historical time period. The foreign exchange transaction data sequence is arranged in chronological order, and each foreign exchange transaction business data sequence includes Data on foreign exchange transactions in multiple dimensions within the same business day;
步骤104:将所述时间序列数据输入预先训练的多层卷积神经网络,以对未来时间段内的外汇交易量进行预测。Step 104: input the time series data into a pre-trained multilayer convolutional neural network to predict the foreign exchange transaction volume in the future time period.
在步骤102中,首先获取时间序列数据,即,一组按照时间顺序排列的数据。对于外汇交易这一业务场景,可以获取各个业务日产生的外汇交易业务数据,并将这些业务数据按照产生的时间进行排列,以得到所需的时间序列数据。其中,业务日即业务量的一个统计周期,其可以与自然日(0:00至23:59)相同,也可以由业务系统预先设定, 例如,可以设定为某个自然日的15:00至次日的14:59,或者设定为其他时间段。In step 102, time series data is first obtained, that is, a set of data arranged in chronological order. For the business scenario of foreign exchange transactions, you can obtain foreign exchange transaction business data generated on each business day, and arrange these business data according to the time of generation to obtain the required time series data. The business day is a statistical period of business volume, which can be the same as the natural day (0:00 to 23:59), or can be preset by the business system. For example, it can be set to 15 of a natural day: 00 to 14:59 the next day, or set to another time period.
可以获取连续的多个业务日产生的业务数据,每个业务日获取相同的数据。为了全面地描述业务数据的特征,可以获取多个不同维度的业务数据。例如,这些维度可以包括每个业务日的正向交易量、逆向交易量、业务日日期属性、业务日促销属性和/或业务日预设营销额。在消费场景中,用户的购买付款行为与用户退款行为带来的是相反的资金流动,在资金结算时,对于商户视角,用户付款行为为一种正向交易,用户退款行为为一种逆向交易,因此,正向交易量即用户向商户付款的总量,逆向交易量即为用户从商户退款的总量。业务日日期属性即业务日对应的日期是否月初、月末、月中、工作日、非工作日或者节假日等属性。业务日促销属性即业务日是否存在促销活动以及促销活动的活动等级,其中,活动等级由促销活动的折扣力度、覆盖商户范围、预期交易量等因素来决定。业务日预设营销额可以是单个业务日的预设营销额,不同的业务日可以设置不同的业务日预设营销额。You can obtain business data generated for multiple consecutive business days, and each business day obtains the same data. In order to comprehensively describe the characteristics of business data, multiple different dimensions of business data can be obtained. For example, these dimensions may include forward transaction volume, reverse transaction volume, business day date attributes, business day promotion attributes, and / or business day preset marketing amounts for each business day. In the consumption scenario, the user's purchase and payment behavior and the user's refund behavior bring about the opposite flow of funds. When the funds are settled, from the perspective of the merchant, the user's payment behavior is a forward transaction, and the user's refund behavior is a Reverse transactions, therefore, the forward transaction volume is the total amount of the user's payment to the merchant, and the reverse transaction volume is the total amount of the user's refund from the merchant. The business day date attribute is whether the date corresponding to the business day is at the beginning of the month, the end of the month, the middle of the month, the working day, the non-working day, or the holiday. The business day promotion attribute is whether or not there is a promotion activity and the activity level of the promotion activity on the business day. Among them, the activity level is determined by factors such as the discount strength of the promotion activity, the coverage of merchants, and the expected transaction volume. The preset sales amount for a business day can be a preset sales amount for a single business day, and different business days can be set for different preset sales amounts.
通过获取由外汇交易业务数据序列构成的时间序列数据,且每条外汇交易业务数据序列包括同一业务日内的多个维度的外汇交易业务数据,在预测时考虑了相邻时间节点之间外汇交易业务数据的互相影响,并利用了单个时间节点的多维特征属性,提高了预测准确度。一个实施例的外汇交易业务数据示意图如图2所示。图中,T表示选定的预测时间节点,T+N表示时间节点T之后的第N个业务日。By obtaining time series data composed of foreign exchange transaction data series, and each foreign exchange transaction data series includes multiple dimensions of foreign exchange transaction business data within the same business day, the foreign exchange transaction business between adjacent time nodes is considered in the forecast. The data interact with each other, and the multi-dimensional feature attributes of a single time node are used to improve the prediction accuracy. A schematic diagram of foreign exchange transaction data of an embodiment is shown in FIG. 2. In the figure, T represents the selected predicted time node, and T + N represents the Nth business day after time node T.
在步骤104中,可以将步骤102获取到的时间序列数据输入到多层卷积神经网络模型,通过多层卷积神经网络模型对未来时间段内的外汇交易量进行预测。In step 104, the time series data obtained in step 102 may be input to a multi-layer convolutional neural network model, and the multi-layer convolutional neural network model is used to predict the foreign exchange transaction volume in the future time period.
多层卷积神经网络模型可以预先训练。训练时,可以将历史时间段内的时间序列数据作为输入,将该历史时间段内的外汇交易量的真实值作为输出,对多层卷积神经网络模型的模型参数进行求解。采用多层卷积神经网络模型,解决了常规的线性回归方法无法挖掘相邻时间节点之间的关联性,而常规的时间序列处理方法又无法处理高维的数据节点的问题。Multi-layer convolutional neural network models can be pre-trained. During training, the time series data in the historical time period can be used as input, the real value of the foreign exchange transaction volume in the historical time period can be used as the output, and the model parameters of the multi-layer convolutional neural network model can be solved. The multi-layer convolutional neural network model is used to solve the problem that conventional linear regression methods cannot mine the correlation between adjacent time nodes, and conventional time series processing methods cannot handle high-dimensional data nodes.
多层卷积神经网络既可以保证每个时间节点数据的高维特征的可扩展性,有可以保证时间节点之间的顺序演变的性质。同时,神经网络可以控制过拟合,自动实现对高维特征的选择。另外,对于外汇交易中的退款等业务,退款的业务窗口一般为一个固定的长度。卷积神经网络训练一个相对较短的业务窗口数据,能抓住短期业务窗口的规律。The multi-layer convolutional neural network can not only ensure the scalability of the high-dimensional features of each time node data, but also can ensure the sequential evolution between time nodes. At the same time, the neural network can control overfitting and automatically realize the selection of high-dimensional features. In addition, for refund and other services in foreign exchange transactions, the refund window is generally a fixed length. Convolutional neural networks train a relatively short amount of business window data and can capture the rules of short-term business windows.
在一个实施例中,在得到未来时间段内外汇交易量的预测值之后,还可以根据所述 未来时间段内外汇交易量的预测值和真实值计算预测准确度;根据所述预测准确度对所述多层卷积神经网络模型的模型参数进行调整。这样,可以动态调整多层卷积神经网络模型的模型参数,提高预测准确度。In one embodiment, after obtaining the predicted value of the foreign exchange transaction volume in the future time period, the prediction accuracy may also be calculated according to the predicted value and the real value of the foreign exchange transaction volume in the future time period; The model parameters of the multi-layer convolutional neural network model are adjusted. In this way, the model parameters of the multi-layer convolutional neural network model can be dynamically adjusted, and the prediction accuracy can be improved.
在一个实施例中,如图3所示,本说明书实施例的方法还包括:In one embodiment, as shown in FIG. 3, the method in the embodiment of the present specification further includes:
步骤302:获取历史若干个周期的同期外汇交易量;Step 302: Obtain the historical foreign exchange transaction volume for several periods in history;
步骤304:计算所述同期外汇交易量的均值和方差;Step 304: Calculate the mean and variance of the foreign exchange transaction volume over the same period;
步骤306:根据所述均值和方差对所述外汇交易量的预测值进行异常检测。通过异常检测,能够筛选掉异常的预测值,从而进一步提高预测准确度。Step 306: Anomaly detection is performed on the predicted value of the foreign exchange transaction volume according to the mean and variance. Through anomaly detection, abnormal predicted values can be filtered out, thereby further improving prediction accuracy.
本实施例中的周期可以是包括多个具有相同业务日日期属性的业务日的时间段。可以是包括多个业务日日期属性为月初的业务日的时间段,例如,一个周期包括3个月,这3个月中包括3个业务日日期属性为月初的业务日。也可以是包括多个业务日日期属性为周日的业务日的时间段,例如,一个周期包括4周,这4周包括4个业务日日期属性为周日的业务日。同期外汇交易量即业务日日期属性相同的业务日的外汇交易量,例如,可以是两个或两个以上业务日日期属性均为周日的业务日的外汇交易量,也可以是两个或两个以上业务日日期属性均为月初的业务日的外汇交易量。The period in this embodiment may be a time period including multiple business days with the same business day date attribute. It can be a time period that includes multiple business day date attributes as the business day of the beginning of the month. For example, a cycle includes 3 months, and the three business days include three business day date attributes as the business day of the beginning of the month. It may also be a time period that includes multiple business day date attributes as Sunday business days. For example, a period includes 4 weeks, and these 4 weeks include 4 business day date attributes with Sunday business days. For the same period, the foreign exchange transaction volume is the foreign exchange transaction volume with the same business day and date attributes. For example, it can be two or more business day dates. The date attributes of two or more business days are the foreign exchange transaction volume of the business day at the beginning of the month.
根据所述均值和方差对所述外汇交易量的预测值进行异常检测,可以预先设定一个外汇交易量的数值范围。若所述外汇交易量的预测值超出预设的数值范围,判定所述外汇交易量的预测值异常;其中,所述数值范围可以是:Anomaly detection is performed on the predicted value of the foreign exchange transaction volume according to the mean and variance, and a numerical range of the foreign exchange transaction volume may be set in advance. If the predicted value of the foreign exchange transaction volume exceeds a preset numerical range, determining that the predicted value of the foreign exchange transaction volume is abnormal; wherein the numerical range may be:
(X1,X2),(X1, X2),
其中,X1=μ-N*δ,X2=μ+N*δ;Among them, X1 = μ-N * δ, X2 = μ + N * δ;
式中,μ为同期外汇交易量的均值,N为预设正整数,δ为同期外汇交易量的方差。In the formula, μ is the average value of the foreign exchange transaction volume in the same period, N is a preset positive integer, and δ is the variance of the foreign exchange transaction volume in the same period.
进一步地,若所述外汇交易量的预测值小于X1,可以将所述外汇交易量的预测值修正为X1;若所述外汇交易量的预测值大于X2,可以将所述外汇交易量的预测值修正为X2。Further, if the predicted value of the foreign exchange transaction volume is less than X1, the predicted value of the foreign exchange transaction volume may be corrected to X1; if the predicted value of the foreign exchange transaction volume is greater than X2, the foreign exchange transaction volume may be predicted The value is corrected to X2.
在一个实施例中,将所述时间序列数据输入预先训练的多层卷积神经网络模型的步骤包括:根据所述时间序列数据计算重点商户的外汇交易业务特征;将所述重点商户的外汇交易业务特征输入预先训练的多层卷积神经网络模型。在本实施例中,重点商户可以是当日交易量在整个币种的交易量中排名前若干名的商户,也可以是历史时间段(例 如,一个月)内交易量均值在各个商户中排名前若干名的商户,也可以是当日交易量排名前若干名,同时历史时间段内交易量均值排名前若干名的商户。当然,也可以采用其他特征或者特征的组合来判断商户是否为重点商户。In one embodiment, the step of inputting the time series data into a pre-trained multi-layer convolutional neural network model includes: calculating a foreign exchange transaction business feature of a key merchant according to the time series data; Business feature input is a pre-trained multilayer convolutional neural network model. In this embodiment, the key merchants may be the merchants whose trading volume ranks among the top several in the entire currency's trading volume on that day, or the average value of their trading volume in the historical time period (for example, one month) among the top merchants. A number of merchants can also be the top ones in terms of transaction volume on the same day, and the average number of merchants in the historical period of time also ranks in the top several merchants. Of course, other features or a combination of features can also be used to determine whether a merchant is a key merchant.
重点商户的外汇交易业务特征可包括重点商户交易量占比、重点商户活动力度和/或重点商户优质商品占比等特征。其中,重点商户交易量占比即重点商户的交易量占全部交易量的比值。重点商户活动力度用于表征重点商户举行的促销活动处于交易平台促销活动的哪个活动等级,可以根据重点商户的预期销售额来划分活动等级。重点商户优质商品占比可根据重点商户中评分在一定评分值以上的商品的销售额与该重点商户的全部销售额的比值来计算。The characteristics of foreign exchange transactions of key merchants may include characteristics such as the proportion of key merchant transaction volume, the intensity of key merchant activities, and / or the proportion of key merchants' high-quality goods. Among them, the transaction volume ratio of key merchants is the ratio of the transaction volume of key merchants to the total transaction volume. The intensity of key merchant activities is used to characterize which level of promotion activities held by key merchants are on the trading platform's promotional activities. The level of activities can be divided according to the expected sales of key merchants. The proportion of key merchandise's high-quality goods can be calculated based on the ratio of the sales of the merchandise rated above a certain rating value to the total sales of the key merchant.
重点商户对预测的影响比较大,因此,引入重点商户的外汇交易业务特征作为外汇交易量预测的依据,能够提高预测准确度。The influence of key merchants on the forecast is relatively large. Therefore, the introduction of foreign exchange transaction characteristics of key merchants as the basis for foreign exchange transaction volume prediction can improve the accuracy of the forecast.
应用本说明书实施例方案,获取由外汇交易业务数据序列构成的时间序列数据,且每条外汇交易业务数据序列包括同一业务日内的多个维度的外汇交易业务数据,然后将时间序列数据输入预先训练的多层卷积神经网络,以对未来时间段内的外汇交易量进行预测,在预测时考虑了相邻时间节点之间外汇交易业务数据的互相影响,并利用了单个时间节点的多维特征属性,提高了预测准确度。Apply the solution of the embodiment of this specification to obtain time series data composed of foreign exchange transaction business data sequences, and each foreign exchange transaction business data sequence includes multiple dimensions of foreign exchange transaction business data within the same business day, and then input the time series data into the pre-training Multi-layer convolutional neural network to predict the foreign exchange transaction volume in the future time period. In the prediction, the mutual influence of foreign exchange transaction business data between adjacent time nodes is considered, and the multi-dimensional characteristic attributes of a single time node are used. To improve prediction accuracy.
以上实施例中的各种技术特征可以任意进行组合,只要特征之间的组合不存在冲突或矛盾,但是限于篇幅,未进行一一描述,因此上述实施方式中的各种技术特征的任意进行组合也属于本说明书公开的范围。The various technical features in the above embodiments can be arbitrarily combined, as long as there is no conflict or contradiction in the combination of features, but it is limited in space and has not been described one by one. Therefore, the various technical features in the above embodiments can be arbitrarily combined. It also belongs to the scope disclosed in this specification.
如图4所示,本说明书实施例还提供一种外汇交易量预测装置,所述装置可包括:As shown in FIG. 4, an embodiment of the present specification further provides a device for predicting foreign exchange transaction volume. The device may include:
获取模块402,用于获取时间序列数据,所述时间序列数据包括历史时间段内多个业务日的外汇交易业务数据序列,所述外汇交易业务数据序列按照时间顺序排列,且每条外汇交易业务数据序列包括同一业务日内的多个维度的外汇交易业务数据;The obtaining module 402 is configured to obtain time series data, where the time series data includes a foreign exchange transaction data sequence of multiple business days in a historical time period, the foreign exchange transaction data sequence is arranged in chronological order, and each foreign exchange transaction service The data sequence includes multiple dimensions of foreign exchange transaction business data within the same business day;
预测模块404,用于将所述时间序列数据输入预先训练的多层卷积神经网络模型,以对未来时间段内的外汇交易量进行预测。A prediction module 404 is configured to input the time series data into a pre-trained multi-layer convolutional neural network model to predict a foreign exchange transaction volume in a future time period.
上述装置中各个模块的功能和作用的实现过程具体详情见上述方法中对应步骤的实现过程,在此不再赘述。For details of the implementation process of the functions and functions of each module in the above device, refer to the implementation process of corresponding steps in the foregoing method, and details are not described herein again.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件 说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, the relevant part may refer to the description of the method embodiment. The device embodiments described above are only schematic, and the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, which may be located in One place, or can be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement without creative efforts.
本说明书装置的实施例可以应用在计算机设备上,例如服务器或终端设备。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在文件处理的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图5所示,为本说明书装置所在计算机设备的一种硬件结构图,除了图5所示的处理器502、内存504、网络接口506、以及非易失性存储器508之外,实施例中装置所在的服务器或电子设备,通常根据该计算机设备的实际功能,还可以包括其他硬件,对此不再赘述。The embodiments of the apparatus of the present specification can be applied to a computer device, such as a server or a terminal device. The device embodiments may be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory and running the processor through the file processing processor. In terms of hardware, as shown in FIG. 5, it is a hardware structure diagram of the computer equipment where the device of this specification is located, except for the processor 502, the memory 504, the network interface 506, and the non-volatile memory 508 shown in FIG. 5. In addition, the server or electronic device where the device is located in the embodiment may generally include other hardware according to the actual function of the computer device, and details are not described herein again.
相应地,本说明书实施例还提供一种计算机存储介质,所述存储介质中存储有程序,所述程序被处理器执行时实现上述任一实施例中的方法。Correspondingly, the embodiment of the present specification also provides a computer storage medium. The storage medium stores a program, and when the program is executed by a processor, the method in any of the foregoing embodiments is implemented.
相应地,本说明书实施例还提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述任一实施例中的方法。Accordingly, an embodiment of the present specification further provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, any one of the foregoing embodiments is implemented. Method.
本说明书实施例可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。The embodiments of the present specification may take the form of a computer program product implemented on one or more storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media includes permanent and non-permanent, removable and non-removable media, and information can be stored by any method or technology. Information may be computer-readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed by computing devices.
本领域技术人员在考虑说明书及实践这里公开的说明书后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the specification disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include the common general knowledge or conventional technical means in the technical field not disclosed by this disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise structure that has been described above and illustrated in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the disclosure is limited only by the following claims.
以上所述仅为本公开的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。The above are merely preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modification, equivalent replacement, or improvement made within the spirit and principles of the present disclosure shall be included in the present disclosure. Within the scope of protection.

Claims (10)

  1. 一种外汇交易量预测方法,所述方法包括:A method for predicting foreign exchange transaction volume, the method includes:
    获取时间序列数据,所述时间序列数据包括历史时间段内多个业务日的外汇交易业务数据序列,所述外汇交易业务数据序列按照时间顺序排列,且每条外汇交易业务数据序列包括同一业务日内的多个维度的外汇交易业务数据;Obtaining time series data, the time series data includes a foreign exchange transaction data series of multiple business days in a historical time period, the foreign exchange transaction business data series are arranged in chronological order, and each foreign exchange transaction business data series includes the same business day Multi-dimensional foreign exchange transaction business data;
    将所述时间序列数据输入预先训练的多层卷积神经网络模型,以对未来时间段内的外汇交易量进行预测。The time series data is input into a pre-trained multi-layer convolutional neural network model to predict the foreign exchange transaction volume in the future time period.
  2. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    根据所述未来时间段内外汇交易量的预测值和真实值计算预测准确度;Calculating prediction accuracy according to the predicted value and real value of the foreign exchange transaction volume in the future time period;
    根据所述预测准确度对所述多层卷积神经网络模型的模型参数进行调整。Adjusting model parameters of the multi-layer convolutional neural network model according to the prediction accuracy.
  3. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    获取历史若干个周期的同期外汇交易量;Obtain the historical foreign exchange transaction volume for several periods in history;
    计算所述同期外汇交易量的均值和方差;Calculate the mean and variance of the foreign exchange transaction volume over the same period;
    根据所述均值和方差对所述外汇交易量的预测值进行异常检测。Anomaly detection is performed on the predicted value of the foreign exchange transaction volume according to the mean and variance.
  4. 根据权利要求3所述的方法,根据所述均值和方差对所述外汇交易量的预测值进行异常检测的步骤包括:The method according to claim 3, the step of performing anomaly detection on the predicted value of the foreign exchange transaction volume based on the mean and variance comprises:
    若所述外汇交易量的预测值超出预设的数值范围,判定所述外汇交易量的预测值异常;If the predicted value of the foreign exchange transaction volume exceeds a preset numerical range, determining that the predicted value of the foreign exchange transaction volume is abnormal;
    其中,所述数值范围为:The value range is:
    (X1,X2),(X1, X2),
    其中,X1=μ-N*δ,X2=μ+N*δ;Among them, X1 = μ-N * δ, X2 = μ + N * δ;
    式中,μ为同期外汇交易量的均值,N为预设正整数,δ为同期外汇交易量的方差。In the formula, μ is the average value of the foreign exchange transaction volume in the same period, N is a preset positive integer, and δ is the variance of the foreign exchange transaction volume in the same period.
  5. 根据权利要求4所述的方法,所述方法还包括:The method according to claim 4, further comprising:
    若所述外汇交易量的预测值小于X1,将所述外汇交易量的预测值修正为X1;If the predicted value of the foreign exchange transaction volume is less than X1, correct the predicted value of the foreign exchange transaction volume to X1;
    若所述外汇交易量的预测值大于X2,将所述外汇交易量的预测值修正为X2。If the predicted value of the foreign exchange transaction volume is greater than X2, modify the predicted value of the foreign exchange transaction volume to X2.
  6. 根据权利要求1所述的方法,将所述时间序列数据输入预先训练的多层卷积神经网络模型的步骤包括:The method according to claim 1, wherein the step of inputting the time series data into a pre-trained multilayer convolutional neural network model comprises:
    根据所述时间序列数据计算重点商户的外汇交易业务特征;Calculating foreign exchange transaction characteristics of key merchants according to the time series data;
    将所述重点商户的外汇交易业务特征输入预先训练的多层卷积神经网络模型。The foreign exchange transaction business features of the key merchants are input into a pre-trained multilayer convolutional neural network model.
  7. 根据权利要求1至6任意一项所述的方法,所述外汇交易业务数据包括每个业务日的正向交易量、逆向交易量、业务日日期属性、业务日促销属性和/或业务日预设营 销额。The method according to any one of claims 1 to 6, wherein the foreign exchange transaction business data includes forward transaction volume, reverse transaction volume, business day date attribute, business day promotion attribute, and / or business day forecast for each business day. Set marketing amount.
  8. 一种外汇交易量预测装置,所述装置包括:A foreign exchange transaction volume prediction device, the device includes:
    获取模块,用于获取时间序列数据,所述时间序列数据包括历史时间段内多个业务日的外汇交易业务数据序列,所述外汇交易业务数据序列按照时间顺序排列,且每条外汇交易业务数据序列包括同一业务日内的多个维度的外汇交易业务数据;An obtaining module, configured to obtain time series data, where the time series data includes a foreign exchange transaction data sequence of multiple business days in a historical time period, the foreign exchange transaction data sequence is arranged in chronological order, and each foreign exchange transaction data The sequence includes multiple dimensions of foreign exchange transaction business data within the same business day;
    预测模块,用于将所述时间序列数据输入预先训练的多层卷积神经网络模型,以对未来时间段内的外汇交易量进行预测。A prediction module is configured to input the time series data into a pre-trained multi-layer convolutional neural network model to predict a foreign exchange transaction volume in a future time period.
  9. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1至7任意一项所述的方法。A computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 7.
  10. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求1至7任意一项所述的方法。A computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
PCT/CN2019/091735 2018-08-03 2019-06-18 Method and device for predicting foreign exchange transaction volume WO2020024718A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810876277.9A CN109359758A (en) 2018-08-03 2018-08-03 Dealing amount of foreign exchange prediction technique and device
CN201810876277.9 2018-08-03

Publications (1)

Publication Number Publication Date
WO2020024718A1 true WO2020024718A1 (en) 2020-02-06

Family

ID=65349814

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/091735 WO2020024718A1 (en) 2018-08-03 2019-06-18 Method and device for predicting foreign exchange transaction volume

Country Status (3)

Country Link
CN (1) CN109359758A (en)
TW (1) TW202020781A (en)
WO (1) WO2020024718A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359758A (en) * 2018-08-03 2019-02-19 阿里巴巴集团控股有限公司 Dealing amount of foreign exchange prediction technique and device
CN110163752A (en) * 2019-04-16 2019-08-23 阿里巴巴集团控股有限公司 A kind of dealing amount of foreign exchange prediction technique, apparatus and system
CN110232437B (en) * 2019-05-30 2021-11-16 湖南大学 CNN-based time series prediction method and model determination method
CN110458664B (en) * 2019-08-06 2021-02-02 上海新共赢信息科技有限公司 User travel information prediction method, device, equipment and storage medium
CN111222631A (en) * 2020-01-17 2020-06-02 支付宝(杭州)信息技术有限公司 Service prediction method and device
CN113703974A (en) * 2021-08-27 2021-11-26 深圳前海微众银行股份有限公司 Method and device for predicting server capacity

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777874A (en) * 2016-11-18 2017-05-31 中国科学院自动化研究所 The method that forecast model is built based on Recognition with Recurrent Neural Network
CN107016571A (en) * 2017-03-31 2017-08-04 北京百分点信息科技有限公司 Data predication method and its system
CN107705155A (en) * 2017-10-11 2018-02-16 北京三快在线科技有限公司 A kind of consuming capacity Forecasting Methodology, device, electronic equipment and readable storage medium storing program for executing
CN108133391A (en) * 2017-12-22 2018-06-08 联想(北京)有限公司 Method for Sales Forecast method and server
CN109359758A (en) * 2018-08-03 2019-02-19 阿里巴巴集团控股有限公司 Dealing amount of foreign exchange prediction technique and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730052A (en) * 2017-11-07 2018-02-23 中国农业科学院农业信息研究所 A kind of agricultural product price Forecasting Methodology and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777874A (en) * 2016-11-18 2017-05-31 中国科学院自动化研究所 The method that forecast model is built based on Recognition with Recurrent Neural Network
CN107016571A (en) * 2017-03-31 2017-08-04 北京百分点信息科技有限公司 Data predication method and its system
CN107705155A (en) * 2017-10-11 2018-02-16 北京三快在线科技有限公司 A kind of consuming capacity Forecasting Methodology, device, electronic equipment and readable storage medium storing program for executing
CN108133391A (en) * 2017-12-22 2018-06-08 联想(北京)有限公司 Method for Sales Forecast method and server
CN109359758A (en) * 2018-08-03 2019-02-19 阿里巴巴集团控股有限公司 Dealing amount of foreign exchange prediction technique and device

Also Published As

Publication number Publication date
CN109359758A (en) 2019-02-19
TW202020781A (en) 2020-06-01

Similar Documents

Publication Publication Date Title
WO2020024718A1 (en) Method and device for predicting foreign exchange transaction volume
Elliott et al. Economic forecasting
US8577791B2 (en) System and computer program for modeling and pricing loan products
US11250499B2 (en) Generating optimal strategy for providing offers
EP2506207A1 (en) Computer system, computer-implemented method and computer program product for managing operations of a system
US20220121992A1 (en) Artificial intelligence for automated stock orders based on standardized data and company financial data
TWI714113B (en) Method and device for forecasting foreign exchange transaction volume
US20090144123A1 (en) System and Method of Demand Modeling for Financial Service Products
US11042930B1 (en) Insufficient funds predictor
JP2004528611A (en) Structured financial performance monitoring indicators
CN116188061B (en) Commodity sales predicting method and device, electronic equipment and storage medium
CN109583729B (en) Data processing method and device for platform online model
CN110135702A (en) Appraisal procedure, device, system and recording medium are actively spent in a kind of refund of real-time update
US20130226784A1 (en) System and method for credit balance transfer offer optimization
Tanaka Firm heterogeneity and FDI in distribution services
US8255316B2 (en) Integrated business decision-making system and method
US20170061347A1 (en) Computerized system and method for predicting quantity levels of a resource
US20140344021A1 (en) Reactive competitor price determination using a competitor response model
Li et al. Predicting loss given default of unsecured consumer loans with time-varying survival scores
JP2021502653A (en) Systems and methods for automated preparation of visible representations regarding the achievability of goals
US20240070552A1 (en) Methods and systems for determining payment behaviours
US20240161110A1 (en) Computing systems and methods for identifying and providing information about recurring transactions
Vazquez et al. Rethinking Inventory Forecasting Problems in E-commerce: Exploring the effect of integrating forecasting and inventory decisions
Gulati SAS for Finance: Forecasting and data analysis techniques with real-world examples to build powerful financial models
JP2000099497A (en) Method and device for predicting future value of variable related to input data sequence

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: 19843256

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: 19843256

Country of ref document: EP

Kind code of ref document: A1