Transaction data processing method and apparatus, storage medium, and electronic device

By using intelligent feature selection and model prediction, and updating the predictive model of merchant transaction data using a combination of target parameters, the problem of low analysis accuracy in traditional methods is solved, and more efficient and accurate merchant transaction data processing is achieved.

CN119831739BActive Publication Date: 2025-10-21INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411863618.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-10-21
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

Traditional merchant transaction data processing methods rely on manual experience analysis, resulting in low analysis accuracy, making it difficult to capture the dynamic changes and complex correlations of merchant market behaviors, and unable to meet the rapid response and refined management needs of merchants.

Method used

By acquiring the transaction data and attribute information of the target merchants, using pre-trained and determined feature parameters to filter feature values, inputting them into the target prediction model for feature vector transformation, combining the target parameter combination to update the initial prediction model, and calculating the target proportional coefficient to improve the accuracy of the analysis.

Benefits of technology

It improved the matching degree between the prediction model and the actual situation of merchants, enhanced the accuracy of analysis, reduced the error of manual analysis, and improved the efficiency and speed of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119831739B_ABST
    Figure CN119831739B_ABST
Patent Text Reader

Abstract

The application discloses a transaction data processing method and device, a storage medium and an electronic device, and relates to the field of artificial intelligence. The method comprises the following steps: obtaining transaction data of a target merchant and attribute information of the target merchant; filtering at least one characteristic value from the transaction data of the target merchant and the attribute information of the target merchant according to a target characteristic sequence; inputting the filtered characteristic value into a target prediction model, converting the characteristic value into a target characteristic vector according to prior knowledge learned by the target prediction model in a model training stage, and determining a target proportion coefficient for commission extraction based on the transaction data and the attribute information of the target merchant according to the target characteristic vector; and calculating the difference between a preset proportion coefficient set by a user and the target proportion coefficient to obtain a processing result of the transaction data of the target merchant. The application solves the technical problem of low analysis accuracy caused by manual analysis of merchant transaction data in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and more specifically, to a method, device, storage medium, and electronic device for processing transaction data. Background Art

[0002] The rapid development of e-commerce has created unprecedented opportunities for business analysis and intelligent decision-making with massive amounts of merchant transaction data and multi-dimensional market information. However, faced with this data deluge, traditional methods for processing merchant transaction data have exposed serious limitations, becoming a bottleneck hindering the advancement of precision and intelligent business models.

[0003] For example, traditional methods for predicting merchant commission rates often rely on empirical analysis and manual data processing. This process is not only cumbersome and inefficient, but also prone to human error during data processing, resulting in significant deviations between analytical results and actual commission rates. More importantly, traditional forecasting models lack sufficient flexibility and intelligence to capture the dynamic changes and complex correlations of merchant market behavior. Consequently, they suffer from significant deficiencies in analytical accuracy and are unable to meet the rapid response and refined management needs of merchants.

[0004] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention

[0005] The main purpose of this application is to provide a transaction data processing method, device, storage medium and electronic device to at least solve the technical problem in the prior art of low analysis accuracy based on manual analysis of merchant transaction data.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for processing transaction data is provided, including: obtaining the transaction data and attribute information of the target merchant; screening at least one feature value from the transaction data and attribute information of the target merchant according to a target feature sequence, wherein the target feature sequence is a feature parameter determined according to pre-training; inputting the screened feature value into a target prediction model, converting the feature value into a target feature vector based on the prior knowledge learned by the target prediction model in the model training phase, and determining a target proportional coefficient for commission extraction based on the transaction data and attribute information of the target merchant based on the target feature vector, wherein the target prediction model is a model obtained by updating the initial prediction model through a target parameter combination, wherein the target parameter combination is a model parameter combination that meets a preset condition, wherein the preset condition is used to constrain the difference between the prediction result and the actual result of the initial prediction model to be less than a first preset threshold; calculating the difference between the preset proportional coefficient set by the user and the target proportional coefficient to obtain the processing result of the transaction data of the target merchant.

[0007] Optionally, the target prediction model is obtained by the following steps: obtaining the merchant's historical target information from a database, wherein the historical target information includes the merchant's historical transaction data and the merchant's historical attribute information; performing feature screening on the merchant's historical transaction data and the merchant's historical attribute information to obtain a target feature sequence consisting of X historical transaction features and Y historical attribute features, wherein X and Y are both integers greater than or equal to 1, and the feature screening is used to digitize the merchant's historical transaction data and historical attribute information, and continuously iteratively screen the digitized data to select features that meet the screening conditions, wherein the screening conditions are used to select features whose model prediction error is less than a second preset threshold; iteratively training the first prediction model according to the target feature sequence and the historical target information to obtain the target prediction model.

[0008] Optionally, feature screening is performed on the merchant's historical transaction data and the merchant's historical attribute information to obtain a target feature sequence consisting of X historical transaction features and Y historical attribute features, including: when the historical target information includes the historical transaction data and historical attribute information of N merchants, the historical transaction data and historical attribute information belonging to the same merchant are divided into a data set to obtain N data sets, where N is an integer greater than or equal to 1; a feature sequence is extracted from each data set in the N data sets to obtain N feature sequences; the N feature sequences are numerically converted to obtain N first feature sequences, where each first feature sequence includes an initial value and an initial weight, where the initial value is used to characterize whether each feature in the first feature sequence is selected; and multiple target operations are performed on the initial prediction model according to the N first feature sequences until the number of target operations is greater than or equal to the first number of iterations, thereby obtaining a target feature sequence consisting of X historical transaction data and Y historical attribute information, where each target operation is used to train the initial prediction model based on the prediction result of the initial prediction model for each first feature sequence.

[0009] Optionally, the target operation includes the following steps: setting a first function, wherein the first function is used to calculate the difference value between the model prediction result obtained according to each feature sequence and the actual result; obtaining a second function and a third function, wherein the second function is used to calculate the feature selection status in each of the N first feature sequences, and the third function is used to calculate the weight of each of the N first feature sequences; inputting the N first feature sequences into the initial prediction model for training, and calculating the prediction error corresponding to each of the N first feature sequences according to the first function; updating the feature selection status and weight in each first feature sequence according to the prediction error corresponding to each of the N first feature sequences, the second function and the third function to obtain N second feature sequences; obtaining a third feature sequence from the N second feature sequences, and using the third feature sequence as the target feature sequence, wherein the third feature sequence is a second feature sequence in the N second feature sequences whose prediction error is less than the corresponding preset threshold.

[0010] Optionally, the feature selection state and weight in each first feature sequence are updated according to the prediction error, the second function and the third function corresponding to each first feature sequence in the N first feature sequences, including: in the case of the first target operation, the prediction error corresponding to each first feature sequence in the N first feature sequences is used as the corresponding initial prediction error, and the weight of each first feature sequence is updated according to the third function; in the case of the i-th target operation, if the prediction error of the j-th first feature sequence is less than the prediction error of the j-th first feature sequence under the i-1-th target operation, the feature selection state in the j-th first feature sequence is updated according to the second function, and the weight of the j-th first feature sequence is updated according to the third function, wherein i is an integer greater than 1, and j is a positive integer less than or equal to N.

[0011] Optionally, before iteratively training the first prediction model based on the target feature sequence and historical target information to obtain the target prediction model, the transaction data processing method also includes: setting a parameter set for the initial prediction model, wherein the parameter set includes S groups of parameter combinations, and each group of parameter combinations includes L parameters, wherein S is an integer greater than or equal to 1, and L is an integer greater than or equal to 1; obtaining a target algorithm, wherein the target algorithm is used to search for a parameter combination that meets preset conditions in the parameter space; determining the target parameter combination from the parameter set according to the target algorithm; and determining the first prediction model based on the target parameter combination and the initial prediction model.

[0012] Optionally, the first prediction model is iteratively trained according to the target feature sequence and historical target information to obtain a target prediction model, including: extracting X historical transaction features and Y historical attribute features from each feature sequence of N feature sequences to obtain N model training features; obtaining N commission ratio coefficients of N merchants corresponding to the N feature sequences; normalizing the N model training features to obtain target features; and iteratively training the first prediction model according to the target features and the N commission ratio coefficients to obtain the target prediction model.

[0013] Optionally, the difference between the preset proportional coefficient and the target proportional coefficient set by the user is calculated to obtain the processing result of the transaction data of the target merchant. The method for processing the transaction data includes: when the difference between the preset proportional coefficient and the target proportional coefficient is less than the set threshold, calculating the target commission value corresponding to the target merchant according to the target proportional coefficient; setting a first interface, wherein the first interface is used to issue the commission value; sending the target commission value to the target platform through the first interface, wherein the target platform is a platform associated with the target merchant.

[0014] Optionally, after sending the target commission value to the target platform through the first interface, the transaction data processing method also includes: setting a target detection indicator, and setting a corresponding alarm threshold for each detection indicator in the target detection indicator; detecting the transaction data and target commission value of the target merchant to obtain a detection result set, wherein the detection result set includes abnormal transaction data between the target merchant and the user and / or the target platform; when the detection indicator corresponding to the tth detection result in the detection result set is greater than or equal to the alarm threshold corresponding to the detection indicator, issuing an early warning for the tth detection result, wherein t is an integer greater than or equal to 1.

[0015] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a transaction data processing device is further provided, comprising: an acquisition unit, which acquires the transaction data and attribute information of a target merchant; a screening unit, which screens at least one feature value from the transaction data and attribute information of the target merchant according to a target feature sequence, wherein the target feature sequence is a feature parameter determined according to pre-training; a determination unit, which inputs the screened feature value into a target prediction model, converts the feature value into a target feature vector according to prior knowledge learned by the target prediction model in the model training phase, and determines a target proportional coefficient for commission extraction based on the transaction data and attribute information of the target merchant according to the target feature vector, wherein the target prediction model is a model obtained by updating the initial prediction model through a target parameter combination, wherein the target parameter combination is a model parameter combination that meets a preset condition, wherein the preset condition is used to constrain the difference between the prediction result and the actual result of the initial prediction model to be less than a first preset threshold; a processing unit, which calculates the difference between the preset proportional coefficient set by the user and the target proportional coefficient, and obtains the processing result of the transaction data of the target merchant.

[0016] According to another aspect of an embodiment of the present application, a computer-readable storage medium is also provided, which includes a stored executable program, wherein when the executable program runs, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned transaction data processing method.

[0017] According to another aspect of an embodiment of the present application, an electronic device is further provided, including: a memory storing an executable program; and a processor for running the program, wherein the above-mentioned transaction data processing method is executed when the program is running.

[0018] According to another aspect of an embodiment of the present application, a computer program product is further provided, comprising computer instructions, which implement the steps of the above-mentioned transaction data processing method when executed by a processor.

[0019] In the present application, the transaction data and attribute information of the target merchant are first obtained, and then at least one feature value is screened from the transaction data and attribute information of the target merchant according to the target feature sequence, wherein the target feature sequence is a feature parameter determined according to pre-training, and then the screened feature value is input into the target prediction model, and the feature value is converted into a target feature vector according to the prior knowledge learned by the target prediction model in the model training stage, and the target proportional coefficient for commission extraction based on the transaction data and attribute information of the target merchant is determined according to the target feature vector, wherein the target prediction model is a model obtained by updating the initial prediction model through the target parameter combination, wherein the target parameter combination is a model parameter combination that meets the preset conditions, wherein the preset conditions are used to constrain the difference between the prediction result and the actual result of the initial prediction model to be less than a first preset threshold, and finally the difference between the preset proportional coefficient set by the user and the target proportional coefficient is calculated to obtain the processing result of the transaction data of the target merchant. That is, through intelligent feature selection and model prediction, the target proportional coefficient is obtained. By comparing the preset proportional coefficient set by the user with the target proportional coefficient, the purpose of improving the matching degree between the prediction model and the actual situation of the merchant is achieved, thereby achieving the technical effect of improving the accuracy of the analysis, and thus solving the technical problem of low analysis accuracy caused by manual analysis of merchant transaction data in the existing technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of this application. The exemplary embodiments and descriptions of this application are intended to explain this application and do not constitute an improper limitation on this application. In the accompanying drawings:

[0021] Figure 1 A hardware structure block diagram of a computer terminal for implementing a method for processing transaction data is shown;

[0022] Figure 2 is a flowchart of an optional transaction data processing method according to an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of an optional optimization prediction model according to an embodiment of the present application;

[0024] Figure 4 is a schematic diagram of an optional prediction model application according to an embodiment of the present application;

[0025] Figure 5 is a flowchart of an optional prediction model application according to an embodiment of the present application;

[0026] Figure 6 is a block diagram of an optional prediction model application according to an embodiment of the present application;

[0027] Figure 7 This is a schematic diagram of an optional transaction data processing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] It should be noted that the collected information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation portals for users to choose to authorize or refuse. If an interface is set up between this system and relevant users or institutions, a corresponding operation portal will be provided for users to choose to agree or refuse the automated decision-making results; if the user chooses to refuse, the expert decision-making process will be entered.

[0031] According to an embodiment of the present application, an embodiment of a method for processing transaction data is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0032] It should be noted that a merchant data processing system can be used as the execution subject of the transaction data processing method of the embodiment of the present application. It is understandable that the transaction data processing method provided in the embodiment of the present application can also be executed by other systems or devices, and the embodiment of the present application does not specifically limit this.

[0033] The method embodiments provided in this application can be executed in a mobile terminal, a computer terminal, or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for processing transaction data is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (illustrated as 102a, 102b, ..., 102n in the figure) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.

[0034] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuitry may be a single independent processing module, or may be fully or partially integrated into any of the other components in the computer terminal 10 (or mobile device). As in the transaction data processing method involved in the embodiments of the present application, the data processing circuitry serves as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0035] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the transaction data processing method in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the above-mentioned transaction data processing method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0036] The transmission device 106 is configured to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by the communications provider of the computer terminal 10. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.

[0037] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0038] Under the above operating environment, this application provides Figure 2 The transaction data processing method shown. Figure 2 FIG. 1 is a flow chart of an optional transaction data processing method according to an embodiment of the present application. Figure 2 As shown, the method includes the following steps:

[0039] Step S201: Acquire transaction data and attribute information of a target merchant.

[0040] Optionally, the merchant data processing system first obtains the transaction data and attribute information of the target merchant.

[0041] Optionally, the transaction data includes but is not limited to transaction records, transaction amount, transaction time, transaction type, and rebate rate data.

[0042] Optionally, the attribute information includes but is not limited to industry category, geographical location, number of people, asset size, and annual revenue size.

[0043] Step S202: Filter at least one feature value from the target merchant's transaction data and the target merchant's attribute information according to the target feature sequence.

[0044] In step S202, the target feature sequence is feature parameters determined according to pre-training.

[0045] Optionally, the target feature sequence refers to a set of features determined based on previous training that are of great value in predicting the proportional coefficient. The merchant data processing system analyzes the target merchant's data and selects feature values ​​that match the target feature sequence for subsequent model input.

[0046] In step S203, the filtered feature values ​​are input into the target prediction model, and the feature values ​​are converted into target feature vectors based on the prior knowledge learned by the target prediction model during the model training phase. The target proportional coefficient for commission extraction based on the target merchant's transaction data and attribute information is determined based on the target feature vector.

[0047] In step S203, the target prediction model is a model obtained by updating the initial prediction model by combining target parameters.

[0048] In step S203, the target parameter combination is a model parameter combination that meets preset conditions.

[0049] In step S203, the preset condition is used to constrain the difference between the prediction result of the initial prediction model and the actual result to be less than a first preset threshold.

[0050] Optionally, the initial prediction model is an SVR model (Support Vector Regression model). The SVR model is a machine learning method based on support vector machine theory, and is mainly used to solve regression analysis problems.

[0051] Optionally, the merchant data processing system inputs the filtered eigenvalues ​​into the trained target prediction model, converts the eigenvalues ​​into target eigenvectors based on the prior knowledge learned by the target prediction model during the model training phase, and obtains the target proportional coefficient corresponding to the target merchant based on the target eigenvector.

[0052] Step S204 , calculating the difference between the preset proportional coefficient set by the user and the target proportional coefficient, and obtaining the processing result of the transaction data of the target merchant.

[0053] Optionally, the merchant data processing system can obtain a processing result, that is, the commission extraction ratio that should be adjusted, by comparing the preset ratio coefficient with the target ratio coefficient.

[0054] It can be seen from the contents of steps S201 to S204 that in the present application, the transaction data and attribute information of the target merchant are first obtained, and then at least one feature value is screened from the transaction data and attribute information of the target merchant according to the target feature sequence, wherein the target feature sequence is a feature parameter determined according to pre-training, and then the screened feature value is input into the target prediction model, and the feature value is converted into a target feature vector according to the prior knowledge learned by the target prediction model in the model training stage, and the target proportional coefficient for commission extraction based on the transaction data and attribute information of the target merchant is determined according to the target feature vector, wherein the target prediction model is a model obtained by updating the initial prediction model through the target parameter combination, wherein the target parameter combination is a model parameter combination that meets the preset conditions, wherein the preset conditions are used to constrain the difference between the prediction result and the actual result of the initial prediction model to be less than a first preset threshold, and finally the difference between the preset proportional coefficient set by the user and the target proportional coefficient is calculated to obtain the processing result of the transaction data of the target merchant. That is, through intelligent feature selection and model prediction, the target proportional coefficient is obtained. By comparing the preset proportional coefficient set by the user with the target proportional coefficient, the purpose of improving the matching degree between the prediction model and the actual situation of the merchant is achieved, thereby achieving the technical effect of improving the accuracy of the analysis, and thus solving the technical problem of low analysis accuracy caused by manual analysis of merchant transaction data in the existing technology.

[0055] In an optional embodiment, a merchant data processing system obtains historical target information of a merchant from a database, wherein the historical target information includes the merchant's historical transaction data and the merchant's historical attribute information. Feature screening is then performed on the merchant's historical transaction data and the merchant's historical attribute information to obtain a target feature sequence consisting of X historical transaction features and Y historical attribute features, wherein X and Y are integers greater than or equal to 1. Feature screening is used to digitize the merchant's historical transaction data and historical attribute information, and the digitized data is continuously iteratively screened to select features that meet a screening condition, wherein the screening condition is used to select features whose model prediction error is less than a second preset threshold. Iterative training is then performed on a first prediction model based on the target feature sequence and the historical target information to obtain a target prediction model. The target feature sequence consists of the historical transaction data and the Y historical attribute information, wherein each target operation is used to train the initial prediction model based on the prediction results of the initial prediction model for each first feature sequence.

[0056] Optionally, the merchant data processing system will obtain basic merchant information and build a comprehensive merchant profile, providing fundamental information support for the entire system. The merchant data processing system incorporates merchant contact information, such as address, phone number, and email, into its database to ensure the system can communicate with merchants quickly and accurately. It also collects merchant transaction records, covering key data such as transaction amount, sales volume, and product type. This initiative aims to gain a deeper understanding of merchants' sales performance, thereby providing sufficient historical transaction data support for commission rate prediction and processing. Transaction records are also timestamped to facilitate time series analysis to identify sales trends and seasonal changes. The system also collects customer reviews, comments, and feedback. Based on this information, the system can objectively assess merchants' reputation and user satisfaction in the market. This data provides the system with a more comprehensive merchant profile, facilitating intelligent commission rate analysis and providing more precise service recommendations for merchants. Finally, this data is integrated and mined to form a database.

[0057] Optionally, the database may include multiple tables, such as a customer information table, a customer history data table, a rebate rate table, etc., for storing and managing various types of data.

[0058] Optionally, the merchant data processing system obtains the merchant's historical target information from the database. The historical target information includes but is not limited to industry category, geographical location, number of people, asset size, annual revenue size, transaction records, transaction amount, transaction time, transaction type, and commission rate data.

[0059] Optionally, the merchant data processing system performs feature screening on the historical target information of the merchant obtained, aiming to identify features that have a significant impact on the prediction model from the historical target information, convert non-numerical features into numerical forms that can be processed by the model through digitization, and then screen out features whose prediction errors meet the threshold requirements through iterative training.

[0060] Optionally, feature screening can ensure a prediction result with a high accuracy by finding a subset as small as possible among multiple features and then learning through the features in this subset.

[0061] Optionally, the merchant data processing system obtains a target feature sequence consisting of X historical transaction features and Y historical attribute features through feature screening.

[0062] Optionally, the merchant data processing system iteratively trains the SVR model after parameter optimization according to the target feature sequence and historical target information, and finally obtains the target prediction model.

[0063] From the above content, it can be seen that the merchant data processing system digitizes the merchant's historical transaction data and attribute information, and through iterative screening, the system can select the features that have the greatest impact on the rebate rate prediction and form a target feature sequence. This process ensures the quality of input data in the model training phase, thereby improving the prediction accuracy of the first prediction model. In each target operation, the system iteratively trains the prediction results of each first feature sequence based on the initial prediction model. This not only optimizes the model parameters, but also enhances the model's ability to process unseen data. Automated feature screening and iterative training reduce reliance on manual analysis and decision-making, and improve the system's degree of automation. This not only reduces the errors and inconsistencies that may be caused by manual operations, but also significantly improves the efficiency and speed of data processing.

[0064] In an optional embodiment, when the merchant data processing system includes historical transaction data and historical attribute information of N merchants in the historical target information, the historical transaction data and historical attribute information belonging to the same merchant are divided into a data set to obtain N data sets, where N is an integer greater than or equal to 1, a feature sequence is extracted from each of the N data sets to obtain N feature sequences, and the N feature sequences are numerically converted to obtain N first feature sequences, where each first feature sequence includes an initial value and an initial weight, where the initial value is used to characterize whether each feature in the first feature sequence is selected, and finally, multiple target operations are performed on the initial prediction model based on the N first feature sequences until the number of target operations is greater than or equal to the first number of iterations, thereby obtaining a target feature sequence consisting of X historical transaction data and Y historical attribute information, where each target operation is used to train the initial prediction model based on the prediction result of the initial prediction model for each first feature sequence.

[0065] Optionally, the merchant data processing system processes the data of N merchants separately, and integrates the transaction data and attribute information of each merchant into an independent data set, thereby forming N data sets. This approach ensures that the characteristics of each merchant can be considered independently, enhancing the personalized prediction ability of the model. Then, for each data set, the system performs a feature extraction operation to generate a feature sequence. The feature sequence here contains transaction data features (such as transaction amount, transaction frequency, etc.) and attribute information features (such as the merchant's industry, geographical location, scale, etc.) related to the merchant's rebate rate prediction. Then, the extracted N feature sequences are converted into numerical values ​​to obtain N first feature sequences. Each first feature sequence has a The feature sequence contains not only the initial numerical value of the feature (used to indicate whether the feature is selected), but also the initial weight of the feature. These two parameters are the basis for subsequent model feature extraction. The initial SVR model is then iteratively trained using N first feature sequences, namely "target operations". In each target operation, the model makes a prediction based on the current feature sequence, and then adjusts the model based on the difference between the predicted result and the actual rebate rate until the number of iterations reaches the preset first number of iterations. Finally, after multiple iterative training, the system determines a target feature sequence consisting of X historical transaction data features and Y historical attribute information features, which represents the optimal feature set for prediction in the final model.

[0066] Optionally, the merchant data processing system may perform numerical processing on the features through a Sigmoid function (Sigmoid Function, S-type function), and the Sigmoid function may convert any input value in the real number domain into an output value between (0, 1).

[0067] Optionally, Table 1 is an example of a feature combination in an optional target feature sequence according to an embodiment of the present application. As shown in Table 1, the features included in the target feature sequence include the merchant's industry, geographical location, number of people, asset scale (10,000), and annual revenue scale (10,000). The input feature vector obtained according to the target feature sequence is: [(0, 001, 500, 1000, 500), (1, 002, 600, 800, 300)...].

[0068] Table 1

[0069]

[0070] From the above content, it can be seen that the merchant data processing system not only improves the model's predictive ability on a single merchant data through multiple target operations, but also enhances the model's generalization ability by processing N data sets, enabling it to more accurately predict merchant rebate rates with different attributes and historical records, providing more reliable data support for the decision-making of merchants and platforms. At the same time, it realizes dynamic screening and optimization of features, ensuring that the final model only contains the features that contribute most to the prediction results, improving the accuracy of the prediction and the efficiency of the model. The target feature sequence finally obtained can significantly improve the accuracy of the prediction model and reduce the prediction error.

[0071] In an optional embodiment, the merchant data processing system first sets a first function, wherein the first function is used to calculate the difference between the model prediction result and the actual result obtained according to each feature sequence, and then obtains a second function and a third function, wherein the second function is used to calculate the feature selection status in each of the N first feature sequences, and the third function is used to calculate the weight of each of the N first feature sequences, and then inputs the N first feature sequences into the initial prediction model for training, and calculates the prediction error corresponding to each of the N first feature sequences according to the first function, and then updates the feature selection status and weight in each first feature sequence according to the prediction error corresponding to each of the N first feature sequences, the second function and the third function to obtain N second feature sequences, and finally obtains a third feature sequence from the N second feature sequences, and uses the third feature sequence as the target feature sequence, wherein the third feature sequence is a second feature sequence in the N second feature sequences whose prediction error is less than the corresponding preset threshold.

[0072] Optionally, the first function may be mean square error, mean absolute error, root mean square error, etc., and the goal is to minimize these error indicators.

[0073] Optionally, the merchant data processing system extracts and numerically processes N first feature sequences from N merchant data and inputs them into the initial prediction model for training. During the model training process, the prediction error corresponding to each feature sequence is calculated according to the first function. This is a key indicator for evaluating the model training effect and making the next adjustment. Based on the calculated prediction error, the second function (feature selection status) and the third function (feature weight), the system updates the feature selection status and weight in each first feature sequence to generate N second feature sequences. Finally, from the N second feature sequences, those feature sequences whose prediction errors are less than the preset threshold corresponding to the target number of operations are screened out to form a third feature sequence. This third feature sequence is the optimal set of feature sequences under the current target operation.

[0074] From the above content, it can be seen that the merchant data processing system can obtain the optimal feature sequence combination corresponding to the current target operation through each target operation. Finally, the final target feature sequence can be screened out through multiple groups of optimal feature sequence combinations. The determined target feature sequence can significantly improve the accuracy of the prediction model.

[0075] In an optional embodiment, in the case of the first target operation, the merchant data processing system takes the prediction error corresponding to each first feature sequence in the N first feature sequences as the corresponding initial prediction error, and updates the weight of each first feature sequence according to the third function. In the case of the i-th target operation, if the prediction error of the j-th first feature sequence is less than the prediction error of the j-th first feature sequence under the i-1-th target operation, the feature selection state in the j-th first feature sequence is updated according to the second function, and the weight of the j-th first feature sequence is updated according to the third function, where i is an integer greater than 1 and j is a positive integer less than or equal to N.

[0076] Optionally, in the first target operation (i.e., the initial stage of model training), the merchant data processing system uses the prediction error corresponding to each of the N first feature sequences (i.e., the feature sequences after digitization and weight initialization) as the initial prediction error. This step provides a benchmark for subsequent weight and feature state updates. Similarly, under the first target operation, the merchant data processing system will update the weight of each first feature sequence according to the third function. The weight update reflects the relative contribution of the feature to the model prediction results, which helps the model pay more attention to important features in subsequent iterations.

[0077] Optionally, in the i-th target operation (where i is an integer greater than 1), the system checks the prediction error of the j-th first feature sequence (j is a positive integer less than or equal to N). If the prediction error of the j-th feature sequence is smaller in the i-th time than in the i-1-th time, the feature selection status in the sequence is updated according to the second function, which usually means increasing or adjusting the numerical representation of the currently selected feature to further optimize the prediction performance of the model. At the same time, the weight of the j-th feature sequence is updated again according to the third function to continuously optimize the contribution of the feature to the model prediction.

[0078] Alternatively, the feature selection problem essentially involves selecting an appropriate string of 0s and 1s, where the length of the string is the number of features N in the original dataset, with 0 representing an attribute that is not selected and 1 representing a selected attribute. The merchant data processing system can use the Particle Swarm Optimization (PSO) algorithm to perform feature selection. The PSO algorithm assumes that there are particles randomly distributed in space, each with two attributes: position and velocity. The initial values ​​of these two attributes are random. Each particle maintains its own optimal point pbest (optimal refers to the position value when the fitness function is optimal), and the entire particle group maintains a global optimal point gbest (that is, the one with the largest fitness function corresponding to the pbest of all particles), and then iterates. The iterative process can be described as the particle changing its speed in a certain proportion according to the direction of its own optimal pbest and the direction of the global optimal gbest, and then changing the position reached by the particle in this iteration. The global optimal solution gbest (the position value when the fitness function is optimal) at the end of the iteration is the solution obtained by the algorithm, where the fitness function can be defined as the size of the prediction error. When the prediction error takes the minimum value, the optimal solution is obtained. In the PSO algorithm, the calculation methods for updating the position (that is, the selection state of the above-mentioned feature) and updating the speed (that is, the above-mentioned weight) are shown in formulas (1) and (2) respectively:

[0079]

[0080]

[0081] Where x is the position of the particle in the PSO algorithm, i represents the number or sequence of the particle in the particle swarm, t represents the number of iterations, v is the velocity of the particle in the PSO algorithm, w, c1, and c2 are all weight parameters, rand is a random number in [0, 1], pbest is the optimal position of each particle itself, and gbest is the optimal position of all particles.

[0082] It should be noted that the speed and position of each particle here are N-dimensional vectors, and since the PSO algorithm is an algorithm for solving continuous space problems, in order to find the corresponding optimal 0 / 1 string, it is necessary to convert the N-dimensional position vector of the continuous space into a 0 / 1 string of the discrete space (the distribution of 0 and 1 in the high-dimensional space). Because the Sigmoid function can be used for conversion, the obtained x is a 0 / 1 string, and the feature that is 1 in gbest is the feature to be selected in the end. At this time, the formula for updating the particle position is shown in formula (3), and the calculation method of the Sigmoid function is shown in formula (4):

[0083]

[0084] Among them, i represents the number or sequence of particles in the particle group, j represents the dimension number in the particle position and velocity vector, and otherwise represents other cases, namely Sigmoid (v ij ) is greater than or equal to rand.

[0085] From the above content, we can see that the merchant data processing system dynamically adjusts the feature selection status and weights, so that the model can find the target feature sequence, improve the accuracy of the prediction, and provide a basis for the subsequent construction of the target prediction model.

[0086] In an optional embodiment, the merchant data processing system first sets a parameter set of an initial prediction model, wherein the parameter set includes S groups of parameter combinations, and each group of parameter combinations includes L parameters, wherein S is an integer greater than or equal to 1, and L is an integer greater than or equal to 1, and then obtains a target algorithm, wherein the target algorithm is used to search for a parameter combination that meets preset conditions in the parameter space, and then determines the target parameter combination from the parameter set according to the target algorithm, and finally determines the first prediction model according to the target parameter combination and the initial prediction model.

[0087] Optionally, the merchant data processing system sets a set of initial parameter sets, which includes S groups of different parameter combinations, each group of combinations consists of L parameters, which may include learning rate, regularization term coefficient, SVR epsilon (the insensitive bandwidth of the loss function, which defines the width of an error tolerance or insensitive zone), C (penalty coefficient, which is used to control the trade-off between the generalization ability of the model and the training error) and gamma (kernel function coefficient, which controls the nonlinearity of the data mapping to the high-dimensional space, thereby affecting the complexity of the model), etc., which constitute the hyperparameter space of the prediction model. Then, the target algorithm, i.e., the PSO algorithm, is obtained to search for those parameters in the parameter space of the model that can meet the preset Parameter combination of performance conditions. In an embodiment of the present application, the PSO algorithm simulates the search behavior of particles in multidimensional space to find the optimal parameter combination and improve the accuracy of model prediction. According to the PSO algorithm, the system iteratively searches for the best parameter combination from the parameter set. In each iteration, the algorithm evaluates the performance of each set of parameter combinations based on the fitness function (such as minimizing prediction error, maximizing classification accuracy, etc.), and adjusts the position of the particles (i.e., parameter combination) to find a better solution. Finally, the PSO algorithm will determine a set of target parameter combinations that perform best under preset performance indicators. The system uses the determined target parameter combination to update or construct the initial prediction model, thereby obtaining a first prediction model.

[0088] Optionally, Figure 3 is a schematic diagram of an optional optimization prediction model according to an embodiment of the present application, such as Figure 3As shown, the merchant data processing system first obtains relevant customer data, including but not limited to transaction records, merchant attributes and market feedback, and then extracts customer features from the acquired data, performs feature selection through the PSO algorithm, and identifies the key features that have the greatest impact on the prediction of the commission ratio coefficient. Based on these selected features, a data matrix is ​​constructed, and then it is determined whether the preset termination conditions are met, such as the number of iterations reaching an upper limit or the prediction accuracy being stable at a certain level. If so, the optimal feature sequence is output, and the corresponding feature matrix is ​​constructed. At the same time, the parameters of the initial prediction model are optimized, and finally the constructed feature matrix is ​​input into the initial prediction model after parameter optimization for prediction, and the prediction results are output. If the preset termination conditions are not met, the optimal feature selection state in each feature sequence (the optimal individual particle) and the optimal feature sequence in all feature combinations (the global optimal of the entire group) are calculated according to the principle of the PSO algorithm, and the feature selection state in each feature sequence (particle position update) and the speed of each feature sequence (particle speed update, i.e., the weight mentioned above) are updated, and iteration is performed again until the termination conditions are met.

[0089] From the above content, it can be seen that the merchant data processing system optimizes the parameters of the initial prediction model through the target algorithm, ensuring that the prediction model can run with the most ideal parameter configuration, and the prediction of the merchant rebate ratio coefficient is more accurate, effectively improving the accuracy and efficiency of the prediction model.

[0090] In an optional embodiment, the merchant data processing system extracts X historical transaction features and Y historical attribute features from each of N feature sequences to obtain N model training features, then obtains N commission ratio coefficients of N merchants corresponding to the N feature sequences, then normalizes the N model training features to obtain target features, and then iteratively trains the first prediction model based on the target features and the N commission ratio coefficients to obtain a target prediction model.

[0091] Optionally, the merchant data processing system extracts X historical transaction features and Y historical attribute features from each sequence of N feature sequences to form N model training features, and then further obtains the commission ratio coefficients of the N merchants corresponding to the N feature sequences. In order to eliminate the dimensional differences and numerical range influences between the features, the system normalizes the N model training features, converts all feature values ​​to the same numerical range (such as between 0 and 1), and obtains the target features. Finally, using the processed target features and the merchant's commission ratio coefficient, the system iteratively trains the first prediction model to obtain the target prediction model.

[0092] Optionally, Figure 4 is a schematic diagram of an optional prediction model application according to an embodiment of the present application, such as Figure 4 As shown in the figure, after obtaining the target prediction model, when predicting the rebate rate for the merchant, the relevant information of the merchant (industry, geographical location, number of people, asset scale, annual revenue scale, etc.) is obtained, and then the obtained data is directly input into the target prediction model to obtain the corresponding rebate rate for the merchant.

[0093] From the above content, it can be seen that the merchant data processing system can generate high-quality model training features by accurately extracting historical transaction features and historical attribute features, and combining them with merchant-specific commission ratio coefficients, which helps to improve the model's prediction accuracy and generalization ability.

[0094] In an optional embodiment, when the difference between the preset proportional coefficient and the target proportional coefficient is less than a set threshold, the merchant data processing system calculates the target commission value corresponding to the target merchant based on the target proportional coefficient, then sets a first interface, wherein the first interface is used to issue the commission value, and finally sends the target commission value to the target platform through the first interface, wherein the target platform is a platform associated with the target merchant.

[0095] Optionally, after obtaining the target proportional coefficient, the merchant data processing will calculate the difference between the preset proportional coefficient and the target proportional coefficient. When the difference is less than the set threshold, the specific commission value that the target merchant should pay is determined based on the target proportional coefficient, and the commission is automatically paid to the platform that has a business cooperation relationship with the target merchant through the first interface set by the system.

[0096] Optionally, merchant data processing monitors merchant transaction activities in real time. After each merchant transaction occurs, the prediction model is used to calculate the corresponding commission extraction coefficient to ensure that the calculation process is efficient and accurate. A rebate data set containing merchant ID, transaction ID, rebate rate and other information can be generated through the target prediction model. This data set will be used for integration with the payment system or financial system. Merchant data processing can be achieved through interface calls, file transfers, message queues, etc. to communicate with the payment system or financial system, while ensuring that the interface is secure, reliable and efficient. After the target prediction model outputs the result, the rebate data is passed to the payment system or financial system, and the automatic issuance mechanism is triggered. After the payment system or financial system receives the rebate data, it performs corresponding payment processing through the first interface based on the calculated rebate rate information. This step may include generating payment orders, transfer operations or other payment methods, depending on the agreement and settlement method between the merchant and the platform.

[0097] From the above content, it can be seen that the merchant data processing system has achieved automation and precision in the determination of the commission extraction ratio and the calculation of the commission value by introducing the target prediction model, which greatly reduces the need for manual intervention, reduces the error rate, and improves the satisfaction of merchants with the platform. In addition, through the setting of the first interface and the implementation of the automated commission payment process, the efficiency of commission management has been significantly improved, the delays and inconveniences of traditional manual operations have been avoided, and the trust and cooperation between merchants and the platform have been enhanced. At the same time, the calculation process of the commission extraction ratio and the specific commission value based on model prediction is transparent and data-based, ensuring the fairness and transparency of commission management.

[0098] In an optional embodiment, the merchant data processing system sets a target detection indicator and sets a corresponding alarm threshold for each of the target detection indicators, detects the transaction data and target commission value of the target merchant, and obtains a detection result set, wherein the detection result set includes abnormal transaction data between the target merchant and the user and / or the target platform. When the detection indicator corresponding to the t-th detection result in the detection result set is greater than or equal to the alarm threshold corresponding to the detection indicator, an early warning is issued for the t-th detection result, wherein t is an integer greater than or equal to 1.

[0099] Optionally, the merchant data processing system uses big data analysis tools to collect merchants' rebate rate data, including transaction amount, transaction time, transaction type, rebate rate, etc., and then performs data cleaning, processes missing values ​​and outliers, ensures data quality, and then extracts key features, such as transaction frequency, distribution of transaction amount, changes in rebate rate in different time periods, etc., and combines other relevant data, such as the merchant's industry category, city, geographical location, etc. Based on these data, use time series analysis and other methods to explore the trend and periodicity of rebate rate, identify peak and trough periods, grasp the seasonal fluctuations of rebate rate, and provide merchants with more effective business strategies. At the same time, merchants are grouped according to different characteristics, such as transaction scale, geographical location, etc., analyze the rebate rate performance of different groups, find out the commonalities and differences between high rebate rate groups and low rebate rate groups, and use the SVR model to provide merchants with future rebate rate forecasts. Based on the analysis results, the merchant data processing system provides merchants with specific optimization suggestions, including but not limited to recommending promotional activities during specific time periods to increase transaction volume and commission rates, providing more accurate target customer groups to optimize promotion effects, providing suggestions for improving services and products for merchants with low commission rates, and optimizing merchants' pricing strategies to increase overall commission rates.

[0100] Optionally, the merchant data processing system provides visualization functions to display the above analysis results in the form of charts, reports, etc., which helps merchants understand the data more intuitively and establish a mechanism for regularly updating data to ensure the continued accuracy of analysis and predictions. By monitoring the changes in rebate rates after merchants implement the recommendations, the effectiveness of the recommendations can be optimized.

[0101] Optionally, the merchant data processing system captures key system performance and business indicators, including but not limited to system load, response time, transaction volume, and commission rate calculation time. These indicators can reflect the health of the system. Appropriate thresholds are set for each key indicator, and anomaly detection algorithms are used to analyze the monitoring data to identify potential anomalies. Alarms are triggered when indicators exceed or fall below the set thresholds. This helps to identify system anomalies or potential problems. The system also differentiates the urgency of alarms, setting different emergency levels for different anomalies. This helps administrators take timely action based on the urgency of the situation.

[0102] Optionally, the merchant data processing system uses monitoring tools to monitor the system status in real time, and sets up a dashboard to display key indicators to facilitate administrators to quickly understand the system performance and operating status. A detailed logging mechanism is added to the system to record key events, error messages, and important operations. The appropriate log level and format will help track and analyze abnormal situations, and implement an automated response mechanism for some known abnormal situations. For example, when the server load is detected to be too high, more server instances can be automatically started to respond.

[0103] Optionally, Figure 5 is a flowchart of an optional prediction model application according to an embodiment of the present application, such as Figure 5 As shown, the merchant data processing system first obtains the current transaction data of the current merchant, and then directly inputs the current transaction data into a pre-created model to obtain the current merchant's commission rate, obtains the commission value based on the commission rate, and automatically distributes the commission value to the relevant platform. After distribution, the commission rate is analyzed to identify abnormal commission rates, and an alarm is issued after an abnormal commission rate is detected.

[0104] Optionally, Figure 6 is a block diagram of an optional prediction model application according to an embodiment of the present application, such as Figure 6As shown, it includes a bank transaction system, a data acquisition module, a database, a rebate rate prediction module, an automatic rebate rate issuance module, an intelligent analysis module, and a monitoring and alarm module. The data acquisition module provides an interface that can be called to actively obtain merchant data from multiple channels (such as databases) to ensure timely and accurate collection of the latest basic information, transaction records, customer evaluations and other data. Through real-time data collection, the system can obtain the latest dynamics of merchants in a timely manner and provide real-time data support for other modules; the database is used to save merchant information tables (merchant industry, merchant identity, geographic location, number of people, asset size), merchant historical data tables (merchant historical transaction records of various products), rebate rate tables (actual rebate rate, predicted rebate rate, difference value (the difference between the actual rebate rate and the predicted rebate rate)); the rebate rate prediction module is the SVR prediction model. After predicting the customer's rebate rate data, the rebate rate data will be sent to the automatic rebate rate issuance module and the intelligent analysis module; the automatic rebate rate issuance module will automatically execute the rebate value issuance operation based on the rebate rate prediction data, reduce manual intervention, and ensure timely and accurate rebate value issuance; the intelligent analysis module uses artificial intelligence technology to conduct in-depth analysis of the rebate rate data, explore business opportunities and trends, generate intelligent analysis reports and send them to the bank transaction system and monitoring alarm module at the same time; the monitoring alarm module receives and monitors the data in the database, rebate rate data, and data analyzed by the intelligent analysis module in real time, discovers potential problems or abnormal situations, and promptly notifies the bank transaction system through a flexible alarm mechanism.

[0105] From the above content, it can be seen that the merchant data processing system monitors merchant-related data in real time, quickly identifies any possible abnormal situations, and improves the timeliness of risk warnings. By setting dynamic alarm thresholds for different detection indicators, the system can automatically adjust the warning standards according to the characteristics of merchant transaction behavior, thereby improving the accuracy and flexibility of warnings.

[0106] The present application also provides a transaction data processing device. It should be noted that the transaction data processing device of the present application can be used to execute the transaction data processing method provided in the present application. The transaction data processing device provided in the present application is described below.

[0107] According to an embodiment of the present application, a device for implementing the above-mentioned transaction data processing method is also provided. Figure 7 is a schematic diagram of an optional transaction data processing device according to an embodiment of the present application, such as Figure 7 As shown, the device includes: an acquisition unit 701, a screening unit 702, a determination unit 703, and a processing unit 704.

[0108] Optionally, an acquisition unit 701 is used to acquire the transaction data and attribute information of the target merchant; a screening unit 702 is used to screen at least one feature value from the transaction data and attribute information of the target merchant according to a target feature sequence, wherein the target feature sequence is a feature parameter determined according to pre-training; a determination unit 703 is used to input the screened feature value into a target prediction model, convert the feature value into a target feature vector based on the prior knowledge learned by the target prediction model in the model training phase, and determine a target proportional coefficient for commission extraction based on the transaction data and attribute information of the target merchant based on the target feature vector, wherein the target prediction model is a model obtained by updating the initial prediction model through a target parameter combination, wherein the target parameter combination is a model parameter combination that meets a preset condition, wherein the preset condition is used to constrain the difference between the prediction result and the actual result of the initial prediction model to be less than a first preset threshold; a processing unit 704 is used to calculate the difference between the preset proportional coefficient set by the user and the target proportional coefficient to obtain the processing result of the transaction data of the target merchant.

[0109] Optionally, the determination unit 703 includes: a first acquisition subunit, a first screening subunit, and a first training subunit. The first acquisition subunit is configured to acquire historical target information of a merchant from a database, wherein the historical target information includes the merchant's historical transaction data and the merchant's historical attribute information; the first screening subunit is configured to perform feature screening on the merchant's historical transaction data and the merchant's historical attribute information to obtain a target feature sequence consisting of X historical transaction features and Y historical attribute features, wherein X and Y are integers greater than or equal to 1; the feature screening is configured to digitize the merchant's historical transaction data and historical attribute information, and to continuously iteratively screen the digitized data to select features that meet a screening condition, wherein the screening condition is configured to select features whose model prediction error is less than a second preset threshold; and the first training subunit is configured to iteratively train the first prediction model based on the target feature sequence and the historical target information to obtain a target prediction model.

[0110] Optionally, the first screening subunit includes: a first partitioning module, a first extraction module, a first processing module, and a second processing module. The first partitioning module is configured to, when the historical target information includes historical transaction data and historical attribute information of N merchants, partition the historical transaction data and historical attribute information belonging to the same merchant into a data set, thereby obtaining N data sets, where N is an integer greater than or equal to 1; the first extraction module is configured to extract a feature sequence from each of the N data sets, thereby obtaining N feature sequences; the first processing module is configured to perform numerical conversion processing on the N feature sequences, thereby obtaining N first feature sequences, wherein each first feature sequence includes an initial value and an initial weight, wherein the initial value is used to indicate whether each feature in the first feature sequence is selected; and the second processing module is configured to perform multiple target operations on the initial prediction model based on the N first feature sequences, until the number of target operations is greater than or equal to the first number of iterations, thereby obtaining a target feature sequence consisting of X historical transaction data and Y historical attribute information, wherein each target operation is used to train the initial prediction model based on the prediction results of the initial prediction model for each first feature sequence.

[0111] Optionally, the second processing module includes: a first setting submodule, a first acquiring submodule, a first calculating submodule, a first updating submodule, and a first processing submodule. Among them, the first setting submodule is used to set the first function, wherein the first function is used to calculate the difference value between the model prediction result obtained according to each feature sequence and the actual result; the first acquisition submodule is used to obtain the second function and the third function, wherein the second function is used to calculate the feature selection status in each first feature sequence in N first feature sequences, and the third function is used to calculate the weight of each first feature sequence in N first feature sequences; the first calculation submodule is used to input the N first feature sequences into the initial prediction model for training, and calculate the prediction error corresponding to each first feature sequence in the N first feature sequences according to the first function; the first updating submodule is used to update the feature selection status and weight in each first feature sequence according to the prediction error corresponding to each first feature sequence in the N first feature sequences, the second function and the third function to obtain N second feature sequences; the first processing submodule is used to obtain a third feature sequence from the N second feature sequences, and use the third feature sequence as the target feature sequence, wherein the third feature sequence is a second feature sequence in the N second feature sequences whose prediction error is less than the corresponding preset threshold.

[0112] Optionally, the first updating submodule includes: a first processing component and a first updating component. The first processing component is used to, in the case of the first target operation, use the prediction error corresponding to each first feature sequence in the N first feature sequences as the corresponding initial prediction error, and update the weight of each first feature sequence according to a third function; the first updating component is used to, in the case of the i-th target operation, if the prediction error of the j-th first feature sequence is less than the prediction error of the j-th first feature sequence under the i-1 target operation, update the feature selection state in the j-th first feature sequence according to the second function, and update the weight of the j-th first feature sequence according to the third function, wherein i is an integer greater than 1 and j is a positive integer less than or equal to N.

[0113] Optionally, the first training subunit includes: a first setting module, a first acquisition module, a first determination module, and a second determination module. The first setting module is used to set a parameter set of the initial prediction model, wherein the parameter set includes S groups of parameter combinations, each group of parameter combinations includes L parameters, wherein S is an integer greater than or equal to 1, and L is an integer greater than or equal to 1; the first acquisition module is used to obtain a target algorithm, wherein the target algorithm is used to search for a parameter combination that meets preset conditions in the parameter space; the first determination module is used to determine a target parameter combination from the parameter set according to the target algorithm; and the second determination module is used to determine the first prediction model based on the target parameter combination and the initial prediction model.

[0114] Optionally, the first training subunit includes: a second extraction module, a second acquisition module, a third processing module, and a first training module. The second extraction module is configured to extract X historical transaction features and Y historical attribute features from each of N feature sequences to obtain N model training features; the second acquisition module is configured to obtain N commission ratio coefficients for N merchants corresponding to the N feature sequences; the third processing module is configured to normalize the N model training features to obtain target features; and the first training module is configured to iteratively train the first prediction model based on the target features and the N commission ratio coefficients to obtain a target prediction model.

[0115] Optionally, the processing unit 704 includes: a first calculation subunit, a first setting subunit, and a first sending subunit. The first calculation subunit is configured to calculate a target commission value corresponding to the target merchant based on the target proportional coefficient when the difference between the preset proportional coefficient and the target proportional coefficient is less than a set threshold; the first setting subunit is configured to set a first interface, wherein the first interface is used to issue the commission value; and the first sending subunit is configured to send the target commission value to a target platform via the first interface, wherein the target platform is a platform associated with the target merchant.

[0116] Optionally, the transaction data processing device further includes: a setting unit, a detection unit, and an early warning unit. The setting unit is configured to set target detection indicators and set a corresponding alarm threshold for each of the target detection indicators; the detection unit is configured to detect the transaction data and target commission value of the target merchant to obtain a detection result set, wherein the detection result set includes abnormal transaction data between the target merchant and the user and / or the target platform; and the early warning unit is configured to issue an early warning for the tth detection result in the detection result set when the detection indicator corresponding to the tth detection result is greater than or equal to the alarm threshold corresponding to the detection indicator, wherein t is an integer greater than or equal to 1.

[0117] According to another aspect of the present application, a computer-readable storage medium is provided, which includes a stored executable program, wherein when the executable program runs, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned transaction data processing method.

[0118] According to another aspect of the present application, an electronic device is provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the above-mentioned transaction data processing method is executed when the program is running.

[0119] According to another aspect of the present application, a computer program product is provided, comprising computer instructions, which implement the steps of the above-mentioned transaction data processing method when executed by a processor.

[0120] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0121] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0122] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0123] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0124] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0125] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0126] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing transaction data, characterized in that: include: Obtaining transaction data of a target merchant and attribute information of the target merchant; screening at least one feature value from the transaction data of the target merchant and the attribute information of the target merchant according to a target feature sequence, wherein the target feature sequence is a feature parameter determined according to pre-training; Inputting the filtered characteristic values ​​into a target prediction model, converting the characteristic values ​​into target characteristic vectors based on prior knowledge learned by the target prediction model during a model training phase, and determining a target proportional coefficient for commission extraction based on the transaction data and attribute information of the target merchant based on the target characteristic vector, wherein the target prediction model is a model obtained by updating the initial prediction model through a target parameter combination, wherein the target parameter combination is a model parameter combination that satisfies a preset condition, wherein the preset condition is used to constrain the difference between the prediction result of the initial prediction model and the actual result to be less than a first preset threshold value; The difference between the preset proportional coefficient set by the user and the target proportional coefficient is calculated to obtain the processing result of the transaction data of the target merchant.

2. The transaction data processing method according to claim 1, characterized in that: The target prediction model is obtained by the following steps: Acquiring historical target information of a merchant from a database, wherein the historical target information includes historical transaction data of the merchant and historical attribute information of the merchant; Performing feature screening on the merchant's historical transaction data and the merchant's historical attribute information to obtain the target feature sequence consisting of X historical transaction features and Y historical attribute features, where X and Y are both integers greater than or equal to 1. The feature screening is used to digitize the merchant's historical transaction data and historical attribute information, and continuously iteratively screen the digitized data to select features that meet a screening condition, wherein the screening condition is used to select features whose model prediction error is less than a second preset threshold; The first prediction model is iteratively trained according to the target feature sequence and the historical target information to obtain a target prediction model.

3. The method for processing transaction data according to claim 2, characterized in that: Perform feature screening on the merchant's historical transaction data and the merchant's historical attribute information to obtain the target feature sequence consisting of X historical transaction features and Y historical attribute features, including: When the historical target information includes historical transaction data and historical attribute information of N merchants, the historical transaction data and historical attribute information belonging to the same merchant are divided into one data set to obtain N data sets, where N is an integer greater than or equal to 1; Extracting a feature sequence from each of the N data sets to obtain N feature sequences; Performing numerical conversion processing on the N feature sequences to obtain N first feature sequences, wherein each of the first feature sequences includes an initial value and an initial weight, wherein the initial value is used to indicate whether each feature in the first feature sequence is selected; Multiple target operations are performed on the initial prediction model according to the N first feature sequences until the number of target operations is greater than or equal to the first number of iterations, thereby obtaining the target feature sequence consisting of the X historical transaction data and the Y historical attribute information, wherein each target operation is used to train the initial prediction model based on the prediction result of the initial prediction model for each first feature sequence.

4. The method for processing transaction data according to claim 3, characterized in that: The target operation includes the following steps: Setting a first function, wherein the first function is used to calculate the difference between the model prediction result obtained according to each feature sequence and the actual result; Obtaining a second function and a third function, wherein the second function is used to calculate a feature selection state in each of the N first feature sequences, and the third function is used to calculate a weight of each of the N first feature sequences; Inputting the N first feature sequences into the initial prediction model for training, and calculating the prediction error corresponding to each of the N first feature sequences according to the first function; updating the feature selection state and weight in each of the N first feature sequences according to the prediction error corresponding to each first feature sequence, the second function, and the third function, to obtain N second feature sequences; A third feature sequence is obtained from the N second feature sequences, and the third feature sequence is used as the target feature sequence, wherein the third feature sequence is a second feature sequence whose prediction error is less than a corresponding preset threshold among the N second feature sequences.

5. The method for processing transaction data according to claim 4, characterized in that: Updating the feature selection state and weight in each of the N first feature sequences according to the prediction error corresponding to each first feature sequence in the N first feature sequences, the second function, and the third function, including: In the case of the first target operation, taking the prediction error corresponding to each of the N first feature sequences as the corresponding initial prediction error, and updating the weight of each first feature sequence according to the third function; In the case of the i-th target operation, if the prediction error of the j-th first feature sequence is less than the prediction error of the j-th first feature sequence under the i-1-th target operation, the feature selection state in the j-th first feature sequence is updated according to the second function, and the weight of the j-th first feature sequence is updated according to the third function, where i is an integer greater than 1 and j is a positive integer less than or equal to N.

6. The method for processing transaction data according to claim 2, characterized in that: Before iteratively training the first prediction model according to the target feature sequence and the historical target information to obtain the target prediction model, the transaction data processing method further includes: Setting a parameter set of the initial prediction model, wherein the parameter set includes S groups of parameter combinations, each group of parameter combinations includes L parameters, wherein S is an integer greater than or equal to 1, and L is an integer greater than or equal to 1; Acquiring a target algorithm, wherein the target algorithm is used to search for a parameter combination that meets the preset conditions in a parameter space; determining the target parameter combination from the parameter set according to the target algorithm; The first prediction model is determined according to the target parameter combination and the initial prediction model.

7. The method for processing transaction data according to claim 3, characterized in that: Iteratively training the first prediction model according to the target feature sequence and the historical target information to obtain a target prediction model, including: Extracting X historical transaction features and Y historical attribute features from each of the N feature sequences to obtain N model training features; Obtaining N commission ratio coefficients of N merchants corresponding to the N feature sequences; Normalizing the N model training features to obtain target features; The first prediction model is iteratively trained according to the target feature and the N commission ratio coefficients to obtain the target prediction model.

8. The method for processing transaction data according to claim 1, characterized in that: The difference between the preset proportional coefficient set by the user and the target proportional coefficient is calculated to obtain the processing result of the transaction data of the target merchant. The transaction data processing method includes: When the difference between the preset proportional coefficient and the target proportional coefficient is less than a set threshold, calculating the target commission value corresponding to the target merchant according to the target proportional coefficient; Setting a first interface, wherein the first interface is used to issue a commission value; The target commission value is sent to a target platform through the first interface, wherein the target platform is a platform associated with the target merchant.

9. The method for processing transaction data according to claim 8, characterized in that: After sending the target commission value to the target platform through the first interface, the transaction data processing method further includes: Setting target detection indicators and setting corresponding alarm thresholds for each of the target detection indicators; Detecting the transaction data of the target merchant and the target commission value to obtain a detection result set, wherein the detection result set includes abnormal transaction data between the target merchant and the user and / or the target platform; When the detection index corresponding to the t-th detection result in the detection result set is greater than or equal to the alarm threshold corresponding to the detection index, an early warning is issued for the t-th detection result, where t is an integer greater than or equal to 1.

10. A transaction data processing device, characterized in that: include: An acquisition unit, which acquires transaction data of a target merchant and attribute information of the target merchant; a screening unit, configured to screen at least one feature value from the transaction data of the target merchant and the attribute information of the target merchant according to a target feature sequence, wherein the target feature sequence is a feature parameter determined according to pre-training; a determination unit, inputting the filtered characteristic values ​​into a target prediction model, converting the characteristic values ​​into target characteristic vectors based on prior knowledge learned by the target prediction model during a model training phase, and determining a target proportional coefficient for commission extraction based on the transaction data and attribute information of the target merchant based on the target characteristic vector, wherein the target prediction model is a model obtained by updating the initial prediction model through a target parameter combination, wherein the target parameter combination is a model parameter combination that satisfies a preset condition, wherein the preset condition is used to constrain a difference between a prediction result of the initial prediction model and an actual result to be less than a first preset threshold; The processing unit calculates the difference between the preset proportional coefficient set by the user and the target proportional coefficient to obtain a processing result of the transaction data of the target merchant.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute the transaction data processing method according to any one of claims 1 to 9.

12. An electronic device, characterized in that: include: a memory storing an executable program; A processor, configured to run the program, wherein the program, when running, executes the transaction data processing method according to any one of claims 1 to 9.

13. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the steps of the transaction data processing method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Receiving method and device for merchant receipt commission and electronic equipment

    CN117993900A

  • User commission settlement method and device, electronic equipment and readable storage medium

    CN118154337A