Own funds quota prediction method, device, electronic device and storage medium
By predicting the actual paid transaction amount of the payment channel and correcting the flow rate, accurate early warning values are generated, which solves the problem of inaccurate prediction of the amount of own funds, reduces the probability of advance payment of reserves, and improves the timely reflection of the use of funds. .
Patent Information
- Application Number
- CN202010651206.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-07-08
AI Technical Summary
In the existing technology, the prediction of the amount of self-owned funds is inaccurate, which leads to an increase in the probability of advance payment behavior. This is mainly due to the low frequency of feedback from the payment channel, which leads to inaccurate calculation of the paid amount.
By predicting the actual paid transaction amount of the payment channel, and correcting the amount according to the transaction flow, a more accurate early warning value is generated, prompts are issued in a timely manner that the own funds are insufficient or sufficient, and the probability of advance payment behavior is reduced.
It improves the accuracy of forecasting the amount of self-owned funds, reduces the advance of reserves due to insufficient funds, and ensures timely reflection of the use of funds.
Smart Images

Figure CN111815316B
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of financial technology, and in particular to a method, device, electronic device and storage medium for predicting an amount of owned funds. [Background technology]
[0002] With the development of the Internet, in addition to the traditional banking system, there are also a variety of different payment platforms on the market, such as WeChat Pay, Alipay and other platforms. However, no matter what kind of payment platform, there must be a payment channel corresponding to the payment entrance. For example, the payment entrance of the bank includes different payment channels. When merchants use UnionPay for fund settlement, the merchant fund settlement method requires the bank's reserve account to be pre-charged because UnionPay has not settled the merchant's funds to the bank account, and the bank's own funds are used to advance the merchant's payment. However, when transferring funds through the UnionPay channel, UnionPay will independently choose to pay the funds through different payment channels on the back end (such as the UnionPay channel or the People's Bank of China channel) according to its own business rules, but There will be advance payments of reserve funds due to insufficient own funds. In order to prevent insufficient own funds, relevant technologies often set an early warning value. When the total payment amount of the payment channel reaches the early warning value, there will be an early warning prompt. The calculation of the paid amount is often based on the transaction flow, but UnionPay stipulates that the transaction flow file will be fed back every half hour. Therefore, after a payment transaction is made and in the half hour before the transaction flow is fed back, if the payment transaction needs to be executed again, the paid amount will be calculated using relevant technologies. The calculated paid amount will be less than the actual paid amount, resulting in inaccurate prediction of the own funds limit, and increasing the probability of advance payments of reserve funds due to insufficient own funds limit. [Summary of the invention]
[0003] In view of this, an embodiment of the present invention provides a method, device, electronic device and storage medium for predicting the amount of owned funds, which solves the technical problem in the related art of inaccurate prediction of the amount of owned funds and increased probability of advance payment of reserve funds due to insufficient amount of owned funds.
[0004] As one aspect of an embodiment of the present invention, an embodiment of the present invention provides a method for predicting a self-owned funds amount, comprising:
[0005] Predicting a predicted payment channel of the first account based on the first account information of the current payment transaction;
[0006] Calculating the predicted paid transaction amount of the predicted payment channel to generate a first amount, where the first amount includes the actual paid transaction amount through the predicted payment channel and the transaction amount of the current payment transaction;
[0007] Acquire the transaction flow of the first account, and modify the first amount according to the transaction flow to generate a second amount;
[0008] Determining whether the first amount or the second amount is greater than a preset warning value;
[0009] When the second amount is greater than the preset warning value, or the first amount is greater than the preset warning value, sending a first message;
[0010] Among them, the first information is used to prompt that the amount of own funds is insufficient.
[0011] In one embodiment of the present invention, after the first warning information is issued, the fund amount prediction method further includes:
[0012] Obtaining the inward amount of the predicted payment channel;
[0013] amending the second amount according to the remitted amount to generate a third amount;
[0014] Determining whether the third amount is greater than the preset warning value;
[0015] When the third amount is less than or equal to the preset warning value, issuing a second message;
[0016] The second information is used to indicate that the amount of owned funds is sufficient.
[0017] In one embodiment of the present invention, predicting the predicted payment channel of the first account according to the current first account information includes:
[0018] Acquire a historical transaction table of the first account according to the first account information of the current payment transaction, wherein the historical transaction table includes a first date, a transaction sequence number, and a transaction channel corresponding to the transaction sequence number;
[0019] Determining whether the number of transactions in the historical transaction table is greater than one;
[0020] When the number of transactions in the historical transaction table is greater than one, assigning a value to the payment channel of each transaction within a first preset time period according to the first date, transaction sequence number, and transaction channel type in the historical transaction table, and generating a weight of the payment channel of each transaction within the first preset time period; and
[0021] The predicted payment channel of the first account is determined according to the weight of the payment channel of each transaction within the first preset time period.
[0022] In one embodiment of the present invention, assigning a value to a payment channel for each transaction within a first preset time period to generate a weight of the payment channel for each transaction within the first preset time period includes:
[0023] Determine whether the number of transactions occurring within the time period of the first date in the historical transaction table that is the same as the current date is less than one;
[0024] When the number of transactions occurring on the first date that is the same as the current date in the historical transaction table is less than one, the first preset time period includes at least one second preset time period, and the payment channel of each transaction in at least one second preset time period is assigned a value respectively, and the weight of the payment channel of each transaction in each second preset time period is generated.
[0025] In one embodiment of the present invention, assigning a value to the payment channel for each transaction within the at least one second preset time period includes:
[0026] In two adjacent second preset time periods, the first value is assigned to the payment channel for each transaction in the second preset time period close to the current date;
[0027] Assigning a second value to the payment channel for each transaction within a second preset time period away from the current date;
[0028] The first value is greater than the second value.
[0029] In one embodiment of the present invention, assigning a value to a payment channel for each transaction within a first preset time period to generate a weight of the payment channel for each transaction within the first preset time period also includes:
[0030] When the number of transactions occurring within the time period of the first date that is the same as the current date in the historical transaction table is equal to one, the first preset time period is the time period of the current date, and a value is assigned to the payment channel of a transaction within the time period of the current date to generate a weight of the payment channel of a transaction within the time period of the current date.
[0031] In one embodiment of the present invention, assigning a value to a payment channel for each transaction within a first preset time period to generate a weight of the payment channel for each transaction within the first preset time period also includes:
[0032] When the number of transactions occurring in the time period of the first date that is the same as the current date in the historical transaction table is greater than one, determining whether the transaction channels of each transaction occurring in the time period of the first date that is the same as the current date in the historical transaction table are the same;
[0033] When the transaction channels of each transaction occurring within the time period of the first date that is the same as the current date in the historical transaction table are the same, the first preset time period is the time period of the current date, and the transaction channel of each transaction within the time period of the current date is assigned a value to generate the weight of the payment channel of each transaction within the time period of the current date.
[0034] In one embodiment of the present invention, assigning a value to a payment channel for each transaction within a first preset time period to generate a weight of the payment channel for each transaction within the first preset time period also includes:
[0035] When the transaction channels of at least two transactions occurring within the time period of the first date which is the same as the current date in the historical transaction table are different, the first preset time period includes the time period of the current date and at least one third preset time period, and the payment channels of each transaction within the time period of the current date and the at least one third preset time period are assigned values respectively, and the weights of the payment channels of each transaction within each time period of the current date and the third preset time period are generated.
[0036] In one embodiment of the present invention, respectively assigning a value to the time period of the current date and the payment channel for each transaction within the at least one third preset time period includes:
[0037] The third value is assigned to the payment channel for each transaction during the current date period;
[0038] In two adjacent third preset time periods, a fourth value is assigned to the payment channel for each transaction in the second preset time period close to the current date;
[0039] Assigning a fifth value to the payment channel for each transaction within a third preset time period away from the current date;
[0040] The third value is greater than the fourth value, and the fourth value is greater than the fifth value.
[0041] In one embodiment of the present invention, determining the predicted payment channel of the first account according to the weight of the payment channel of each transaction in the first preset time period includes:
[0042] Calculate the total weight of each payment channel according to the weight of the payment channel for each transaction within the first preset time period;
[0043] According to the total weight of each payment channel, a payment channel with the largest total weight is determined, and the payment channel with the largest total weight is the predicted payment channel of the first account.
[0044] In one embodiment of the present invention, when the number of transactions in the historical transaction table is equal to one, the predicted payment channel of the first account is predicted based on the first account information of the current payment transaction.
[0045] The payment channel of the transaction in the historical transaction table is the predicted payment channel of the first account.
[0046] In one embodiment of the present invention, when the number of transactions in the historical transaction table is less than one, predicting the predicted payment channel of the first account according to the first account information of the current payment transaction includes:
[0047] The predicted payment channel of the first account is determined according to the length of the username of the first account.
[0048] In one embodiment of the present invention, the method for predicting the amount of owned funds further includes:
[0049] Determining whether the current transaction is the first transaction of the first account within the current date;
[0050] When the current transaction is the first transaction within the current date, obtaining a preset relationship table, the preset relationship table including a second account and a payment channel corresponding to the second account;
[0051] querying in the preset relationship table whether there is a second account that is the same as the first account;
[0052] When there is no second account identical to the first account in the preset relationship table, the predicted payment channel of the first account is determined according to the length of the account name of the first account.
[0053] In one embodiment of the present invention, when there is a second account identical to the first account in the preset relationship table, the predicted payment channel of the first account is determined to be the predicted payment channel corresponding to the second account.
[0054] In one embodiment of the present invention, when the current transaction is not the first transaction of the first account within the current date, a historical transaction table of the first account is obtained according to the current first account information, and the historical transaction table includes a first date, a transaction sequence number, and a transaction channel corresponding to the transaction sequence number.
[0055] In one embodiment of the present invention, after determining the payment channel of the first account according to the weight of the payment channel of each transaction within the first preset time period, the method for predicting the amount of own funds further includes:
[0056] At a preset time on the current date, statistics are collected based on the transaction channels of each transaction of all third accounts within the time period of the current date, and a predicted payment channel for each of the third accounts is determined, and the preset relationship table is updated.
[0057] As a second aspect of the present invention, an embodiment of the present invention provides a device for predicting a self-owned funds amount, comprising:
[0058] A payment channel prediction unit, configured to predict a predicted payment channel of the first account according to first account information of a current payment transaction;
[0059] a calculation unit, configured to calculate the predicted paid transaction amount of the predicted payment channel and generate a first amount, wherein the first amount includes the actual paid transaction amount through the predicted payment channel and the transaction amount of the current payment transaction;
[0060] a correction unit, configured to obtain the transaction flow of the first account, and correct the first amount according to the transaction flow to generate a second amount;
[0061] A judging unit, used to judge whether the second amount is greater than a preset warning value;
[0062] an information sending unit, configured to send a first message when the second amount is greater than the preset warning value;
[0063] Among them, the first information is used to prompt that the amount of own funds is insufficient.
[0064] As a third aspect of the present invention, an embodiment of the present invention provides a computer-readable storage medium, including a storage medium; the storage medium stores a computer program, wherein the computer program is used to execute the above-mentioned method for predicting the amount of own funds.
[0065] As a fourth aspect of the present invention, an embodiment of the present invention provides an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is used to execute the above-mentioned method for predicting the amount of own funds.
[0066] The embodiment of the present invention provides a method for predicting the amount of own funds, which predicts the payment channel of the current payment transaction, calculates the full amount of the payment of the current payment transaction into the first amount, and then compares the first amount with the preset warning value. When the first amount is greater than the preset warning value, a prompt of insufficient amount of own funds can be issued. Within half an hour after the current payment transaction, the accuracy of the prediction of the amount of own funds is greatly improved, and the probability of advance payment of reserve funds due to insufficient amount of own funds is greatly reduced. After receiving the actual flow feedback from UnionPay, the first amount is corrected again to generate the second amount, and the second amount is compared with the preset warning value, so that the amount used compared with the preset warning value can better reflect the actual use of own funds, thereby further improving the accuracy of the prediction of the amount of own funds.
Brief Description of the Drawings
[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0068] Figure 1 The figure is a flow chart of a method for predicting the amount of owned funds provided by one embodiment of the present invention;
[0069] Figure 2 FIG. 1 is a flow chart of a method for predicting a self-owned funds amount provided by another embodiment of the present invention;
[0070] Figure 3 FIG. 1 is a flow chart of a method for predicting a self-owned funds amount provided by another embodiment of the present invention;
[0071] Figure 4 FIG. 1 is a flow chart of a method for predicting a self-owned funds amount provided by another embodiment of the present invention;
[0072] Figure 5 FIG. 1 is a flow chart of a method for predicting a self-owned funds amount provided by another embodiment of the present invention;
[0073] Figure 6 FIG. 1 is a schematic diagram of the structure of a device for predicting a self-owned funds amount provided by an embodiment of the present invention. [Specific implementation method]
[0074] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0075] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0076] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0077] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0078] Figure 1 FIG. 1 is a flow chart of a method for predicting a self-owned funds amount provided by an embodiment of the present invention. Figure 1 As shown, the method for predicting the amount of own funds includes the following steps:
[0079] Step S101: predicting a predicted payment channel of the first account according to the first account information of the current payment transaction;
[0080] This step is to predict the payment channel of the first account when a payment transaction needs to be made to the current first account;
[0081] Step S102: Calculate the predicted paid transaction amount of the predicted payment channel and generate a first amount, where the first amount includes the actually paid transaction amount and the amount to be paid for the current payment transaction; for example, the predicted payment channel actually paid a transaction amount of 1 million, and the amount to be paid for the current payment transaction is 100,000, then the predicted paid transaction amount of the predicted payment channel is 1.1 million.
[0082] Then, within half an hour between the completion of the payment transaction and the feedback of the UnionPay flow, if there is another payment transaction, the first amount can be compared with the preset warning value. When the first amount is greater than the preset warning value, a prompt of insufficient own funds can be issued. Within half an hour after the current payment transaction, the accuracy of the prediction of the own funds limit is greatly improved, and the probability of advance payment of reserve funds due to insufficient own funds limit is greatly reduced.
[0083] After receiving the transaction flow from UnionPay, the estimated paid transaction amount can be corrected, that is, step S103 is executed.
[0084] Step S103: Obtain the transaction flow of the first account, and modify the first amount according to the transaction flow to generate a second amount;
[0085] Since the payment channel of the first account is predicted in step S102, in fact, the payment channel of the first account may be at least one payment channel, for example, it may be through both the PBOC payment channel and the UnionPay payment channel (for example, 80,000 yuan is paid through the PBOC payment channel and 20,000 yuan is paid through the UnionPay payment channel), or 100,000 yuan is paid only through the PBOC payment channel, or 100,000 yuan is paid only through the UnionPay payment channel. Therefore, the first amount is greater than or equal to the second amount.
[0086] Step S104: determining whether the second amount is greater than a preset warning value;
[0087] When the second amount is greater than the preset warning value, step S105 is executed.
[0088] Step S105: Sending a first message; wherein the first message is used to prompt that the own funds are insufficient. Since the second amount is revised based on the real transaction flow received from UnionPay, the used amount compared with the preset warning value can better reflect the actual use of own funds, thus making the warning more accurate.
[0089] When the second amount is less than or equal to the preset warning value, step S106 is executed.
[0090] Step S106: Sending a second message, where the second message is used to prompt that the amount of owned funds is sufficient.
[0091] The method for predicting the amount of own funds provided in the embodiment of the present invention predicts the payment channel of the current payment transaction, and calculates the full amount of the payment of the current payment transaction into the first amount through step S102, and then compares the first amount with the preset warning value. When the first amount is greater than the preset warning value, a prompt of insufficient amount of own funds can be issued. Within half an hour after the current payment transaction, the accuracy of the prediction of the amount of own funds is greatly improved, and the probability of advance payment of reserve funds due to insufficient amount of own funds is greatly reduced. After receiving the actual flow feedback from UnionPay, the first amount is corrected again to generate the second amount, and the second amount is compared with the preset warning value, so that the amount used compared with the preset warning value can better reflect the actual use of own funds, thereby further improving the accuracy of the prediction of the amount of own funds.
[0092] In actual applications, the payment channel is not only used for payment but also for remittance of funds. Therefore, in one embodiment of the present invention, Figure 2 As shown, after step S105, the method for predicting the amount of owned funds further includes:
[0093] Step S107: Obtain the inward amount of the predicted payment channel;
[0094] Step S108: modifying the second amount according to the remitted amount to generate a third amount;
[0095] Step S109: determining whether the third amount is greater than the preset warning value;
[0096] When the third amount is greater than the preset warning value, step S105 is executed.
[0097] Step S105: Sending a first message; wherein, the first message is used to prompt that the amount of owned funds is insufficient.
[0098] When the third amount is less than or equal to the preset warning value, step S106 is executed.
[0099] Step S106: Sending a second message, the second message is used to prompt that the amount of own funds is sufficient, that is, lifting the warning.
[0100] When the third amount is less than or equal to the preset warning value, issuing a second message;
[0101] The second information is used to indicate that the amount of owned funds is sufficient.
[0102] Wherein steps S107 to S109 are not performed, the second amount needs to be corrected not only when there is an inward remittance after step S105, but also when there is an inward remittance after step S106.
[0103] The method for predicting the own funds quota provided by the embodiment of the present invention can correct the paid quota in real time according to the payment and remittance of the prediction channel at any time, further improve the accuracy of the prediction of the own funds quota, and further reduce the probability of advance payment of reserve funds due to insufficient own funds quota.
[0104] In one embodiment of the present invention, Figure 3 As shown, step S101 (predicting the predicted payment channel of the first account based on the current first account information) specifically includes the following steps:
[0105] Step S1011: Obtain a historical transaction table of the first account according to the first account information of the current payment transaction, wherein the historical transaction table includes a first date, a transaction number, and a transaction channel corresponding to the transaction number; for example, the historical transaction table includes: a first date (January 19, 2020), a transaction number (for example, 1, 2, 3), a transaction channel (for example, a People's Bank of China channel or a UnionPay channel). Specifically, for example, there is a transaction information in the historical transaction table: January 19, 2020, the first transaction, the UnionPay channel; January 19, 2020, the fourth transaction, the People's Bank of China channel; January 22, 2020, the third transaction, the UnionPay channel.
[0106] Step S1012: Determine whether the number of transactions in the historical transaction table is greater than one;
[0107] That is, it is determined whether the number of transaction information in the historical transaction table is greater than one.
[0108] When the number of transactions in the historical transaction table is greater than one, execute step S1013, i.e.
[0109] Step S1013: assigning a value to the payment channel of each transaction within the first preset time period according to the first date, transaction sequence number and transaction channel type in the historical transaction table, and generating a weight of the payment channel of each transaction within the first preset time period; and
[0110] Step S1014: determining a predicted payment channel of the first account according to the weight of the payment channel of each transaction within the first preset time period.
[0111] When the number of transactions in the historical transaction table is less than or equal to one, step S1014 is executed.
[0112] Step S1015: Determine whether the number of transactions in the historical transaction table is equal to one;
[0113] When the number of transactions in the historical transaction table is equal to one, step S1016 is executed, i.e.
[0114] Step S1016: Determine the payment channel of the transaction in the historical transaction table as the predicted payment channel of the first account.
[0115] When the number of transactions in the historical transaction table is not equal to one, that is, equal to 0, step S1017 is executed, that is, step S1017: determining the predicted payment channel of the first account according to the length of the user name of the first account.
[0116] That is, there is no transaction information of the first account in the historical transaction table, indicating that this is the first transaction of the first account. Therefore, the predicted payment channel of the first account is determined according to the length of the first account, for example, according to the number of Chinese characters contained in the first account. Specifically, when the number of Chinese characters contained in the name of the first account is greater than 4, the predicted payment channel of the first account is determined to be the Bank of China channel; when the number of Chinese characters contained in the name of the first account is less than or equal to 4, the predicted payment channel of the first account is determined to be the UnionPay channel.
[0117] The embodiment of the present invention determines the predicted payment channel by calculating the weight of each transaction according to the transaction date, number of transactions and the weight of the payment channel of each transaction in the paid transaction table of the first account within a first preset time period (for example, within thirty days), thereby increasing the accuracy of the predicted payment channel.
[0118] In one embodiment of the present invention, Figure 4 As shown, the specific method of assigning a value to the payment channel of each transaction within the first preset time period may include the following steps, that is, step S1013 further includes the following steps:
[0119] Step (1): determine whether the number of transactions occurring within the time period of the first date in the historical transaction table that is the same as the current date is less than one;
[0120] That is, the date of the current transaction is the current date, that is, the time of the current transaction is April 23, 2020, then the current date is April 23, 2020, then step (1) is to determine whether the number of transactions of the account on April 23, 2020 in the historical transaction table is less than one.
[0121] When it is less than 1, that is, no transaction occurred in the historical transaction table before this payment transaction on that day. For example, on April 23, 2020, no transaction occurred in the first account before this payment transaction, and step (2) is executed.
[0122] Step (2): The first preset time period includes at least one second preset time period, and the payment channel of each transaction in at least one second preset time period is assigned a value, thereby generating a weight of the payment channel of each transaction in each second preset time period.
[0123] That is, the first preset time period is divided into a plurality of time periods, and the payment channels of the transactions in each time period are assigned values to generate the weights of the payment channels in each time period.
[0124] It should be understood that the second preset time period may be any time, and the time length of each second preset time period within the first preset time period may be the same or different.
[0125] Specifically, for example, all transactions before April 23, 2020 and within 30 days are divided into three time periods: within 7 days, within 7 to 15 days, and within 15 to 30 days. Then, the payment channel of each transaction within 7 days is assigned a value, the payment channel of each transaction within 7 to 15 days is assigned a value, and the payment channel of each transaction within 15 to 30 days is assigned a value, so that the weight of the payment channel of each transaction within the first preset time period can be generated. The transaction channels are assigned values according to different time periods, the weight of the payment channel of each transaction in different time periods is generated, and the predicted payment channel of the first account is determined, thereby increasing the accuracy of the predicted payment channel of the first account.
[0126] Optionally, in two adjacent second preset time periods, a first value is assigned to the payment channel for each transaction in the second preset time period close to the current date; a second value is assigned to the payment channel for each transaction in the second preset time period far from the current date; wherein the first value is greater than the second value.
[0127] For example, the weight of each payment channel for transactions within seven days is 1, the weight of each payment channel for transactions between seven and fifteen days is 0.7, and the weight of each payment channel for transactions between fifteen and thirty days is 0.5. The payment channel for transactions closest to the current date is given priority, which further increases the accuracy of the predicted payment channel for the first account.
[0128] It should be understood that the weight of the payment channel of each transaction within each second preset time period can also be assigned according to the distance from the current date. For example, the weight of the payment channel of the transaction closer to the current date is greater, and the weight of the payment channel of the transaction farther away from the current date is smaller. Specifically, for example, in each transaction within seven days, the weight of the payment channel of the transaction on the first day is 1, the weight of the payment channel of the transaction on the second day is 0.9, and the weight of the payment channel of the transaction on the third day is 0.8.
[0129] When in step (1), it is determined that the number of transactions occurring in the time period of the first date in the historical transaction table that is the same as the current date is not less than one, that is, greater than or equal to one, it is necessary to determine whether the number of transactions occurring in the time period of the first date in the historical transaction table that is the same as the current date is equal to one, that is, to execute step (3), that is,
[0130] Step (3): determine whether the number of transactions occurring in the time period of the first date in the historical transaction table that is the same as the current date is equal to one;
[0131] When the result of the judgment in step (3) is equal to one, step (4) is executed, that is,
[0132] Step (4): The first preset time period is the time period of the current date, and the payment channel of a transaction within the time period of the current date is assigned a value, and the weight of the payment channel of a transaction within the time period of the current date is generated, that is, the predicted payment channel of the first user is determined as the payment channel of a transaction that occurred within the time period of the first date that is the same as the current date in the historical transaction table. Since the number of transactions on the current date is one, the first preset time is the time period of the current date. Therefore, no matter how the weight of the payment channel of the transaction in the time period of the current date is assigned, the payment channel of the transaction is the predicted payment channel of the first account.
[0133] When the result of the judgment in step (3) is not equal to one, that is, greater than one, step (5) is executed, that is,
[0134] Step (5): Determine whether the transaction channel for each transaction occurring within the time period of the first date that is the same as the current date in the historical transaction table is the same;
[0135] For example, whether the payment channel of each transaction occurring in the first account on April 23, 2020 is the same.
[0136] When the result of step (5) is yes, that is, they are the same, then step (6) is executed.
[0137] Step (6): The first preset time period is the time period of the current date, and the transaction channel of each transaction in the time period of the current date is assigned a value, and the weight of the payment channel of each transaction in the time period of the current date is generated, that is, the predicted payment channel of the first account is determined as the payment channel of any transaction in the time period of the current date. Since the payment channel type of each transaction in the time period of the current date is the same, no matter how the weight of the payment channel of each transaction is assigned, the predicted payment channel of the first account is the payment channel of any transaction on the current date.
[0138] When the result of the judgment in step (5) is different, that is, the transaction channels of at least two transactions occurring in the time period of the first date that is the same as the current date in the historical transaction table are different, step (7) is executed, that is,
[0139] Step (7): The first preset time period includes the time period of the current date and at least one third preset time period, and the payment channels for each transaction in the time period of the current date and at least one third preset time period are assigned values respectively, and the weights of the payment channels for each transaction in each time period of the current date and each third preset time period are generated.
[0140] That is, the time period of the current date of the first preset time period and multiple third time periods are assigned to the payment channels of the transactions in each time period within the first time period to generate the weight of the payment channel in each time period.
[0141] Similarly, the third preset time period may be any time, and the time length of each third preset time period within the first preset time period may be the same or different.
[0142] Specifically, for example, thirty days are divided into three time periods: April 23, 2020, seven days, seven to fifteen days, and fifteen to thirty days. Then, the payment channel of each transaction on April 23, 2020, the payment channel of each transaction within seven days, the payment channel of each transaction from seven to fifteen days, and the payment channel of each transaction from fifteen to thirty days are assigned values, and the weight of the payment channel of each transaction in the first preset time period can be generated. The transaction channels are assigned values according to different time periods, the weight of the payment channel of each transaction in different time periods is generated, and the predicted payment channel of the first account is determined, thereby increasing the accuracy of the predicted payment channel of the first account.
[0143] Optionally, a third numerical value is assigned to the payment channel of each transaction within the current date, and in two adjacent third preset time periods, a fourth numerical value is assigned to the payment channel of each transaction within the third preset time period close to the current date; a fifth numerical value is assigned to the payment channel of each transaction within the third preset time period far from the current date; wherein the third numerical value is greater than the fourth numerical value, and the fourth numerical value is greater than the fifth numerical value.
[0144] For example, the weight of the payment channel of each transaction within the current date is 1, the weight of the payment channel of each transaction within seven days is 0.9, the weight of the payment channel of each transaction between seven and fifteen days is 0.7, and the weight of the payment channel of each transaction between fifteen and thirty days is 0.5. The payment channels of transactions within the current date and the payment channels of transactions closest to the current date are given priority consideration, which further increases the accuracy of the predicted payment channels of the first account.
[0145] It should be understood that the weight of the payment channel of each transaction within each third preset time period can also be assigned according to the distance from the current date. For example, the weight of the payment channel of the transaction closer to the current date is greater, and the weight of the payment channel of the transaction farther away from the current date is smaller. Specifically, for example, in each transaction within seven days, the weight of the payment channel of the transaction on the first day is 0.98, the weight of the payment channel of the transaction on the second day is 0.92, and the weight of the payment channel of the transaction on the third day is 0.9.
[0146] The above steps (1) to (7) are specific steps for generating the weight of the payment channel for each transaction in the first preset time period (i.e., step S1013). Then, according to the weight of the payment channel for each transaction in the first preset time period, determining the predicted payment channel of the first account (i.e., step S1014) specifically includes the following steps:
[0147] Step a: Calculate the total weight of each payment channel according to the weight of the payment channel of each transaction within the first preset time period;
[0148] Step b: According to the total weight of each payment channel, determine the payment channel with the largest total weight, and the payment channel with the largest total weight is the payment channel of the first account;
[0149] Specifically, the calculation formula of the weight of a payment type is equal to: the number of times the payment channel is multiplied by the weight, divided by the total number of payments made through the payment channel;
[0150] For example, the number of transactions in the time period of the current date is 3, of which 2 transactions were conducted through the PBOC channel, and the weights of the PBOC channels are both 1, and 1 transaction was conducted through the UnionPay channel, and the weight of the UnionPay channel is also 1;
[0151] The number of transactions within seven days is 10, of which 6 transactions were made through the PBOC channel, and the weights of the 6 PBOC channels are all 0.7; 4 transactions were made through the UnionPay channel, and the weights of the 4 UnionPay channels are also 0.7;
[0152] The number of transactions within seven to fifteen days is 15, of which 10 transactions were made through the PBOC channel, and the weights of the 10 PBOC channels are all 0.4; 5 transactions were made through the UnionPay channel, and the weights of the 5 UnionPay channels are also 0.4;
[0153] The number of transactions within 15 to 30 days is 20, of which 16 transactions were made through the PBOC channel, and the weights of the 16 PBOC channels are all 0.1; 4 transactions were made through the UnionPay channel, and the weights of the 4 UnionPay channels are also 0.1;
[0154] The weight of the pedestrian passage is calculated as follows: (2*1+6*(0.7)+10*(0.4)+16*(0.1)) / 34=0.35;
[0155] The weight of the UnionPay channel is calculated as follows: (1*1+4*(0.7)+5*(0.4)+4*(0.1)) / 13=0.48
[0156] Since 0.48 is greater than 0.35, the predicted payment channel of the first account is the UnionPay channel.
[0157] The above specifically describes the specific method for determining the predicted payment channel of the first account.
[0158] In one embodiment of the present invention, in order to further simplify the method for determining the predicted payment channel, as Figure 5 As shown, before step S1011, the specific method for predicting the payment channel also includes the following steps:
[0159] Step S1001: Determine whether the current transaction is the first transaction of the first account on the current date;
[0160] When the result of step S1001 is yes, that is, when the current transaction is the first transaction of the first account within the current date, step S1002 is executed.
[0161] Step S1002: Obtain a preset relationship table, where the preset relationship table includes a second account and a payment channel corresponding to the second account;
[0162] Step S1003: Querying in the preset relationship table whether there is a second account that is the same as the first account;
[0163] When there is no second account identical to the first account in the preset relationship table, the predicted payment channel of the first account is determined according to the length of the account name of the first account, and step S1017 is executed.
[0164] When the result of the judgment in step S1003 is yes, that is, when there is a second account that is the same as the first account in the preset relationship table, step S1004 is executed.
[0165] Step S1004: Determine that the predicted payment channel of the first account is the payment channel corresponding to the second account.
[0166] When the judgment result of step S1001 is no, that is, when the current transaction is not the first transaction of the first account within the current date, a historical transaction table of the first account is obtained according to the current first account information, and the historical transaction table includes the first date, the transaction sequence number and the transaction channel corresponding to the transaction sequence number, and step S1011 is executed.
[0167] The embodiment of the present invention uses an account-payment channel preset relationship table. When an account makes a payment for the first time on the same day, it can directly refer to the account-payment channel preset relationship table, without recalculating the weight of the payment channel of each previous transaction to determine the payment channel of the transaction, thereby improving work efficiency.
[0168] In one embodiment of the present invention, since each payment channel of an account on the same day may be different, when an account makes a payment for the first time on the same day, directly refer to the account-payment channel preset relationship table, then in order to make the channel prediction of the first payment of the account more accurate, after determining the payment channel of the first account, step S1018 is also included, that is,
[0169] Step S1018: At a preset time on the current date, statistics are collected based on the transaction channels of each transaction of all third accounts within the time period of the current date, and a predicted payment channel for each third account is determined, and the preset relationship table is updated.
[0170] For example, after a day of payment transactions on April 23, 2020, the People's Bank of China channel and UnionPay channel of that day are counted separately, and the predicted payment channels of the People's Bank of China channel and UnionPay channel are determined, and the preset relationship table is updated. The preset relationship table updated on that day serves as a reference for the payment channel of an account for the first transaction on April 24, 2020.
[0171] As a second aspect of the present invention, an embodiment of the present invention provides a fund amount prediction device, such as Figure 6 As shown, including:
[0172] A payment channel prediction unit 1, configured to predict a predicted payment channel of the first account according to first account information of a current payment transaction;
[0173] A calculation unit 2, configured to calculate the predicted paid transaction amount of the predicted payment channel and generate a first amount, wherein the first amount includes the actual paid transaction amount through the predicted payment channel and the transaction amount of the current payment transaction;
[0174] A correction unit 3 is used to obtain the transaction flow of the first account, and correct the first amount according to the transaction flow to generate a second amount;
[0175] A judging unit 4, used to judge whether the second amount is greater than a preset warning value;
[0176] An information sending unit 5 is used to send a first message when the second amount is greater than the preset warning value;
[0177] Among them, the first information is used to prompt that the amount of own funds is insufficient.
[0178] The own funds quota prediction device and the own funds quota prediction method provided by the embodiment of the present invention predict the payment channel of the current payment transaction, calculate the full amount of the payment of the current payment transaction into the first amount, and then compare the first amount with the preset warning value. When the first amount is greater than the preset warning value, a prompt of insufficient own funds quota can be issued. Within half an hour after the current payment transaction, the accuracy of the prediction of the own funds quota is greatly improved, and the probability of the advance payment of the reserve fund due to insufficient own funds quota is greatly reduced. After receiving the actual flow feedback from UnionPay, the first amount is corrected again to generate the second amount, and the second amount is compared with the preset warning value, so that the used amount compared with the preset warning value can better reflect the actual use of the own funds, thereby further improving the accuracy of the prediction of the own funds quota.
[0179] Exemplary Electronic Devices
[0180] As a third aspect of the present invention, an embodiment of the present invention further provides an electronic device, including one or more processors and a memory.
[0181] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0182] The memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may run the above-mentioned program instructions to implement the self-owned funds amount prediction and / or other desired functions of the various embodiments of the present application described above. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0183] Exemplary computer program products and computer-readable storage media
[0184] In addition to the above methods and devices, embodiments of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, cause the processor to perform the method described in the above “Exemplary Method” section of the present specification according to the present application. Figures 1 to 5 The steps of predicting the own funds amount in the illustrated embodiment.
[0185] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0186] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps in the prediction of the own funds amount according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0187] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0188] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0189] The block diagrams of devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems may be connected, arranged, or configured in any manner.
[0190] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0191] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0192] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for predicting the amount of own funds, It is characterized in that include: Predicting a predicted payment channel of the first account based on the first account information of the current payment transaction; Calculating the predicted paid transaction amount of the predicted payment channel to generate a first amount, where the first amount includes the actual paid transaction amount through the predicted payment channel and the transaction amount of the current payment transaction; Acquire the transaction flow of the first account, and modify the first amount according to the transaction flow to generate a second amount; Determining whether the first amount or the second amount is greater than a preset warning value; When the second amount is greater than the preset warning value, or the first amount is greater than the preset warning value, sending a first message; Wherein, the first information is used to indicate that the amount of owned funds is insufficient; The predicting the predicted payment channel of the first account according to the first account information of the current payment transaction includes: Acquire a historical transaction table of the first account according to the first account information of the current payment transaction, wherein the historical transaction table includes a first date, a transaction sequence number, and a transaction channel corresponding to the transaction sequence number; Determining whether the number of transactions in the historical transaction table is greater than one; When the number of transactions in the historical transaction table is greater than one, assigning a value to the payment channel of each transaction within a first preset time period according to the first date, transaction sequence number, and transaction channel type in the historical transaction table, and generating a weight of the payment channel of each transaction within the first preset time period; and determining a predicted payment channel of the first account according to the weight of the payment channel of each transaction within the first preset time period; Assigning a value to a payment channel for each transaction within a first preset time period to generate a weight of the payment channel for each transaction within the first preset time period includes: Determine whether the number of transactions occurring within the time period of the first date in the historical transaction table that is the same as the current date is less than one; When the number of transactions occurring on the first date that is the same as the current date in the historical transaction table is less than one, the first preset time period includes at least one second preset time period, and the payment channel of each transaction in at least one second preset time period is assigned a value respectively, and the weight of the payment channel of each transaction in each second preset time period is generated.
2. The method for predicting the amount of own funds according to claim 1, It is characterized in that After the first information is sent, the fund amount prediction method further includes: Obtaining the inward amount of the predicted payment channel; amending the second amount according to the remitted amount to generate a third amount; Determining whether the third amount is greater than the preset warning value; When the third amount is less than or equal to the preset warning value, issuing a second message; The second information is used to indicate that the amount of owned funds is sufficient.
3. The method for predicting the amount of own funds according to claim 1, It is characterized in that Assigning a value to the payment channel for each transaction within the at least one second preset time period, respectively, includes: In two adjacent second preset time periods, the first value is assigned to the payment channel for each transaction in the second preset time period close to the current date; Assigning a second value to the payment channel for each transaction within a second preset time period away from the current date; The first value is greater than the second value.
4. The method for predicting the amount of own funds according to claim 1, It is characterized in that Assigning a value to the payment channel of each transaction within the first preset time period to generate a weight of the payment channel of each transaction within the first preset time period, further comprising: When the number of transactions occurring within the time period of the first date that is the same as the current date in the historical transaction table is equal to one, the first preset time period is the time period of the current date, and a value is assigned to the payment channel of a transaction within the time period of the current date to generate a weight of the payment channel of a transaction within the time period of the current date.
5. The method for predicting the amount of own funds according to claim 4, It is characterized in that Assigning a value to the payment channel of each transaction within the first preset time period to generate a weight of the payment channel of each transaction within the first preset time period, further comprising: When the number of transactions occurring in the time period of the first date that is the same as the current date in the historical transaction table is greater than one, determining whether the transaction channels of each transaction occurring in the time period of the first date that is the same as the current date in the historical transaction table are the same; When the transaction channels of each transaction occurring within the time period of the first date that is the same as the current date in the historical transaction table are the same, the first preset time period is the time period of the current date, and the transaction channel of each transaction within the time period of the current date is assigned a value to generate the weight of the payment channel of each transaction within the time period of the current date.
6. The method for predicting the amount of own funds according to claim 5, It is characterized in that Assigning a value to the payment channel of each transaction within the first preset time period to generate a weight of the payment channel of each transaction within the first preset time period, further comprising: When the transaction channels of at least two transactions occurring within the time period of the first date which is the same as the current date in the historical transaction table are different, the first preset time period includes the time period of the current date and at least one third preset time period, and the payment channels of each transaction within the time period of the current date and the at least one third preset time period are assigned values respectively, and the weights of the payment channels of each transaction within each time period of the current date and the third preset time period are generated.
7. The method for predicting the amount of own funds according to claim 6, It is characterized in that Assigning values to the time period of the current date and the payment channel for each transaction within the at least one third preset time period respectively, including: The third value is assigned to the payment channel for each transaction during the current date period; In two adjacent third preset time periods, a fourth value is assigned to the payment channel for each transaction in the second preset time period close to the current date; Assigning a fifth value to the payment channel for each transaction within a third preset time period away from the current date; The third value is greater than the fourth value, and the fourth value is greater than the fifth value.
8. The method for predicting the amount of own funds according to claim 1, It is characterized in that Determining the predicted payment channel of the first account according to the weight of the payment channel of each transaction within the first preset time period includes: Calculate the total weight of each payment channel according to the weight of the payment channel of each transaction within the first preset time period; According to the total weight of each payment channel, a payment channel with the largest total weight is determined, and the payment channel with the largest total weight is the predicted payment channel of the first account.
9. The method for predicting the amount of own funds according to claim 1, It is characterized in that When the number of transactions in the historical transaction table is equal to one, predicting the predicted payment channel of the first account according to the first account information of the current payment transaction includes: The payment channel of the transaction in the historical transaction table is the predicted payment channel of the first account.
10. The method for predicting the amount of own funds according to claim 1, It is characterized in that When the number of transactions in the historical transaction table is less than one, predicting the predicted payment channel of the first account according to the first account information of the current payment transaction includes: The predicted payment channel of the first account is determined according to the length of the username of the first account.
11. The method for predicting the amount of own funds according to claim 1, It is characterized in that Also includes: Determining whether the current payment transaction is the first transaction of the first account within the current date; When the current payment transaction is the first transaction within the current date, obtaining a preset relationship table, the preset relationship table including a second account and a payment channel corresponding to the second account; querying in the preset relationship table whether there is a second account that is the same as the first account; When there is no second account identical to the first account in the preset relationship table, the predicted payment channel of the first account is determined according to the length of the account name of the first account.
12. The method for predicting the amount of own funds according to claim 11, It is characterized in that When there is a second account identical to the first account in the preset relationship table, the predicted payment channel of the first account is determined to be the predicted payment channel corresponding to the second account.
13. The method for predicting the amount of funds according to claim 11, It is characterized in that When the current payment transaction is not the first transaction of the first account within the current date, a historical transaction table of the first account is obtained according to the current first account information, and the historical transaction table includes a first date, a transaction sequence number, and a transaction channel corresponding to the transaction sequence number.
14. The method for predicting the amount of own funds according to claim 11, It is characterized in that After determining the predicted payment channel of the first account according to the weight of the payment channel of each transaction within the first preset time period, the method for predicting the amount of owned funds further includes: At a preset time on the current date, statistics are collected based on the transaction channels of each transaction of all third accounts within the time period of the current date, and a predicted payment channel for each of the third accounts is determined, and the preset relationship table is updated.
15. A device for predicting the amount of owned funds, It is characterized in that include: A payment channel prediction unit, configured to predict a predicted payment channel of the first account according to first account information of a current payment transaction; a calculation unit, configured to calculate the predicted paid transaction amount of the predicted payment channel and generate a first amount, wherein the first amount includes the actual paid transaction amount through the predicted payment channel and the transaction amount of the current payment transaction; a correction unit, configured to obtain the transaction flow of the first account, and correct the first amount according to the transaction flow to generate a second amount; A judging unit, used to judge whether the second amount is greater than a preset warning value; an information sending unit, configured to send a first message when the second amount is greater than the preset warning value; Wherein, the first information is used to indicate that the amount of owned funds is insufficient; The payment channel prediction unit is specifically used for: Acquire a historical transaction table of the first account according to the first account information of the current payment transaction, wherein the historical transaction table includes a first date, a transaction sequence number, and a transaction channel corresponding to the transaction sequence number; Determining whether the number of transactions in the historical transaction table is greater than one; When the number of transactions in the historical transaction table is greater than one, assigning a value to the payment channel of each transaction within a first preset time period according to the first date, transaction sequence number, and transaction channel type in the historical transaction table, and generating a weight of the payment channel of each transaction within the first preset time period; and determining a predicted payment channel of the first account according to the weight of the payment channel of each transaction within the first preset time period; The payment channel prediction unit is specifically used for: Determine whether the number of transactions occurring within the time period of the first date in the historical transaction table that is the same as the current date is less than one; When the number of transactions occurring on the first date that is the same as the current date in the historical transaction table is less than one, the first preset time period includes at least one second preset time period, and the payment channel of each transaction in at least one second preset time period is assigned a value respectively, and the weight of the payment channel of each transaction in each second preset time period is generated.
16. A computer-readable storage medium, It is characterized in that include: Storage media; The storage medium stores a computer program. Wherein, the computer program is used to execute the method for predicting the amount of owned funds as described in any one of claims 1-14 above.
17. An electronic device, It is characterized in that The electronic device comprises: processor; a memory for storing instructions executable by the processor; Wherein, the processor is used to execute the method for predicting the amount of owned funds as described in any one of claims 1-14 above.
