Reconciliation data processing method and device, storage medium and computer program product
By extracting the data set to be reconciled and generating target reconciliation rules, and dividing data subsets based on business categories for parallel processing, the problem of low efficiency of reconciliation data processing in the existing technology is solved, and efficient and stable reconciliation data processing is achieved. .
Patent Information
- Application Number
- CN202410263870.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-07
- Publication Date
- 2024-10-18
AI Technical Summary
When the existing technology processes the reconciliation data of cooperative merchants in different modes, it is necessary to frequently adjust the code logic, resulting in low stability and low efficiency of the reconciliation results, and the reconciliation data processing time is long and the efficiency is low.
By extracting the data set to be reconciled, the decision factors are obtained and entered into the reconciliation rule matching model to generate target reconciliation rules, divide data subsets based on business categories, process in parallel, filter out redundant data, and improve reconciliation efficiency.
It effectively reduces the matching time of reconciliation rules for different cooperative merchants during reconciliation, improves reconciliation efficiency, meets high-performance, high-efficiency, and diversified carrying requirements, and improves the stability and efficiency of reconciliation data processing.
Smart Images

Figure CN118799094A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, storage medium and computer program product for processing reconciliation data. Background Art
[0002] Currently, when connecting with new cooperative merchants of different models for phone charge recharge services, it is necessary to conduct account audits on the new cooperative merchants to meet the needs of financial settlement. Since the reconciliation file formats and reconciliation audit rules of cooperative merchants of different models are different, each connection with a new cooperative merchant requires adjustment of the reconciliation audit procedures according to the merchant's reconciliation file format and reconciliation audit rules. If problems are found during the actual operation process, developers are required to adjust the code logic until the reconciliation audit results meet the requirements.
[0003] In conventional technologies, improving the accuracy of reconciliation and audit results mainly relies on product and developer understanding of the reconciliation file format and reconciliation audit rules of cooperative merchants, and relies on testers to write test cases to cover various scenarios for error correction. With the development of business, cooperative merchants frequently enter the market. The current customized development method by developers requires frequent adjustment of production reconciliation logic, which causes many uncertainties in the stability and reliability of reconciliation results. At the same time, the business data of billions of levels relies on database reconciliation, which makes the processing of reconciliation data long and inefficient.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present application is to provide a reconciliation data processing method, device, storage medium and computer program product, aiming to solve or at least partially solve the technical problem of low efficiency in reconciliation data processing.
[0006] To achieve the above purpose, the present application provides a method for processing reconciliation data, the method comprising:
[0007] According to the reconciliation requirements, extract the data set to be reconciled from the preset reconciliation data set;
[0008] Acquire a decision factor associated with the to-be-reconciled data set, and input the decision factor into a preset reconciliation rule matching model to obtain a target reconciliation rule;
[0009] Based on preset business categories, the data in the to-be-reconciled data set is divided to obtain a plurality of first subsets corresponding to different business categories;
[0010] According to the target reconciliation rule, reconciliation processing is performed on the data in each of the first subsets, and a reconciliation result is generated.
[0011] Optionally, before the step of extracting the to-be-reconciled data set from the preset reconciliation data set, the method further includes:
[0012] Acquire first data from a first data terminal and second data from a second data terminal;
[0013] Determining the information gain of each first service feature included in the first data;
[0014] According to the information gain, feature selection is performed on the first data to obtain a first feature set;
[0015] The reconciliation data set is generated according to the first feature set and the second data.
[0016] Optionally, the step of determining the information gain of each first service feature included in the first data includes:
[0017] Determining the category condition entropy of third data under each preset business category, wherein the third data is the first data under the preset business scale;
[0018] Determining the overall conditional entropy of each of the service categories according to the category conditional entropy;
[0019] Determine characteristic condition entropy of the third data under each of the first service characteristics;
[0020] The information gain is determined according to the overall conditional entropy and the characteristic conditional entropy.
[0021] Optionally, the step of dividing the data in the to-be-reconciled data set based on preset business categories to obtain a plurality of first subsets corresponding to different business categories includes:
[0022] Identifying second business features included in the to-be-reconciled data set, and determining the Gini impurity of each of the second business features;
[0023] Determining a target feature from each of the second service features according to the Gini impurity;
[0024] Based on the target feature, the data in the to-be-reconciled data set is divided into the first subsets corresponding to different business categories.
[0025] Optionally, the step of performing reconciliation processing on the data in each of the first subsets according to the target reconciliation rule and generating a reconciliation result includes:
[0026] identifying a third service feature included in the first subset;
[0027] Performing feature fusion on each of the third service features to obtain a fusion feature;
[0028] Based on the fusion feature, the data in the first subset is divided to obtain a plurality of second subsets;
[0029] According to the target reconciliation rule, the data in each of the second subsets is reconciled, and the reconciliation result is generated.
[0030] Optionally, the target reconciliation rule includes: a reconciliation order, a triggering event, and an execution action, and the step of reconciling the data in each of the second subsets according to the target reconciliation rule and generating the reconciliation result includes:
[0031] According to the reconciliation order, matching the target data from the two parties to be reconciled in the second subset to obtain a matching result;
[0032] Determining a target trigger event according to the fusion feature of the target data and the matching result;
[0033] Identify the target execution action pointed to by the target trigger event, and process the target data according to the target execution action to obtain a processing result;
[0034] The reconciliation result is generated according to the matching result and the processing result.
[0035] Optionally, after the step of generating the reconciliation result, the method further includes:
[0036] Obtaining a first result value of each of the first subsets in the reconciliation result;
[0037] Inputting each of the first subsets into a preset data reconciliation model to obtain a second result value of each of the first subsets;
[0038] A verification result is generated according to the difference between the first result value and the second result value, and the reconciliation result is updated according to the verification result.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes: a memory, a processor, and a reconciliation data processing program stored on the memory and executable on the processor, wherein the reconciliation data processing program is configured to implement the steps of the above-mentioned reconciliation data processing method.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a reconciliation data processing program is stored on the computer-readable storage medium. The reconciliation data processing program is executed by the processor to implement the steps of the above-mentioned reconciliation data processing method.
[0041] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a reconciliation data processing program, and when the reconciliation data processing program is executed by a processor, it implements the steps of the reconciliation data processing method described above.
[0042] The present application discloses a method for processing reconciliation data, which extracts a data set to be reconciled from a preset reconciliation data set according to reconciliation requirements; then obtains a decision factor associated with the data set to be reconciled, and inputs the decision factor into a preset reconciliation rule matching model to obtain a target reconciliation rule; stores the reconciliation and auditing rules of different cooperating merchants through a pre-trained reconciliation rule matching model, and then during actual reconciliation, only the decision factor needs to be input into the reconciliation rule matching model to quickly match the appropriate target reconciliation rule, which effectively reduces the matching time of reconciliation rules for different cooperating merchants during reconciliation and improves the reconciliation efficiency to cope with the differentiated reconciliation and auditing requirements of different funding channels. Then, based on the preset business categories, the data in the data set to be reconciled is divided to obtain multiple first subsets corresponding to different business categories; then, according to the target reconciliation rules, the data in each of the first subsets is reconciled, and a reconciliation result is generated; by dividing the data set to be reconciled into different subsets, some redundant data in the data set to be reconciled that does not need to be reconciled can be screened out, effectively reducing the amount of data, and at the same time, the subsets can be processed in parallel, further improving the processing efficiency of the reconciliation data, thereby meeting the high-performance, high-efficiency, and diversified carrying requirements of reconciliation and auditing to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present application;
[0044] Figure 2 This is a flow chart of the first embodiment of the present application;
[0045] Figure 3 A schematic diagram of a reconciliation rule matching model involved in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of a reconciliation rule matching model update process involved in an embodiment of the present application;
[0047] Figure 5 This is a flow chart of the second embodiment involved in the embodiment scheme of the present application.
[0048] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] In addition, the descriptions of "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, "and / or" in the full text includes three solutions. Taking A and / or B as an example, it includes technical solution A, technical solution B, and technical solution that satisfies both A and B; in addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0051] Reference Figure 1 , Figure 1 A schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiment of the present application.
[0052] like Figure 1 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0053] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0054] like Figure 1As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a reconciliation data processing program.
[0055] exist Figure 1 In the electronic device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present application can be set in the electronic device, and the electronic device calls the reconciliation data processing program stored in the memory 1005 through the processor 1001, and performs the following operations:
[0056] According to the reconciliation requirements, extract the data set to be reconciled from the preset reconciliation data set;
[0057] Acquire a decision factor associated with the to-be-reconciled data set, and input the decision factor into a preset reconciliation rule matching model to obtain a target reconciliation rule;
[0058] Based on preset business categories, the data in the to-be-reconciled data set is divided to obtain a plurality of first subsets corresponding to different business categories;
[0059] According to the target reconciliation rule, reconciliation processing is performed on the data in each of the first subsets, and a reconciliation result is generated.
[0060] Further, the processor 1001 may call the reconciliation data processing program stored in the memory 1005, and further perform the following operations:
[0061] Before the operation of extracting the to-be-reconciled data set from the preset reconciliation data set, the method further includes:
[0062] Acquire first data from a first data terminal and second data from a second data terminal;
[0063] Determining the information gain of each first service feature included in the first data;
[0064] According to the information gain, feature selection is performed on the first data to obtain a first feature set;
[0065] The reconciliation data set is generated according to the first feature set and the second data.
[0066] Further, the operation of determining the information gain of each first service feature included in the first data includes:
[0067] Determining the category condition entropy of third data under each preset business category, wherein the third data is the first data under the preset business scale;
[0068] Determining the overall conditional entropy of each of the service categories according to the category conditional entropy;
[0069] Determine characteristic condition entropy of the third data under each of the first service characteristics;
[0070] The information gain is determined according to the overall conditional entropy and the characteristic conditional entropy.
[0071] Furthermore, the operation of dividing the data in the to-be-reconciled data set based on the preset business categories to obtain a plurality of first subsets corresponding to different business categories includes:
[0072] Identifying second business features included in the to-be-reconciled data set, and determining the Gini impurity of each of the second business features;
[0073] Determining a target feature from each of the second service features according to the Gini impurity;
[0074] Based on the target feature, the data in the to-be-reconciled data set is divided into the first subsets corresponding to different business categories.
[0075] Furthermore, the operation of performing reconciliation processing on the data in each of the first subsets according to the target reconciliation rule and generating a reconciliation result includes:
[0076] identifying a third service feature included in the first subset;
[0077] Performing feature fusion on each of the third service features to obtain a fusion feature;
[0078] Based on the fusion feature, the data in the first subset is divided to obtain a plurality of second subsets;
[0079] According to the target reconciliation rule, the data in each of the second subsets is reconciled, and the reconciliation result is generated.
[0080] Furthermore, the target reconciliation rule includes: a reconciliation order, a triggering event, and an execution action. The operation of reconciling the data in each of the second subsets according to the target reconciliation rule and generating the reconciliation result includes:
[0081] According to the reconciliation order, matching the target data from the two parties to be reconciled in the second subset to obtain a matching result;
[0082] Determining a target trigger event according to the fusion feature of the target data and the matching result;
[0083] Identify the target execution action pointed to by the target trigger event, and process the target data according to the target execution action to obtain a processing result;
[0084] The reconciliation result is generated according to the matching result and the processing result.
[0085] Further, the processor 1001 may call the reconciliation data processing program stored in the memory 1005, and further perform the following operations:
[0086] After the operation of generating the reconciliation result, the following is further included:
[0087] Obtaining a first result value of each of the first subsets in the reconciliation result;
[0088] Inputting each of the first subsets into a preset data reconciliation model to obtain a second result value of each of the first subsets;
[0089] A verification result is generated according to the difference between the first result value and the second result value, and the reconciliation result is updated according to the verification result.
[0090] Based on the above structure, various embodiments of the reconciliation data processing method are proposed.
[0091] Reference Figure 2 , Figure 2 This is a flowchart of the first embodiment of the reconciliation data processing method of the present application.
[0092] In this embodiment, the execution subject of the reconciliation data processing method may be an electronic device, and the electronic device may be a local device or a network device, which is not limited in this embodiment. For the convenience of description, the following description of each embodiment is omitted. In this embodiment, the reconciliation data processing method includes:
[0093] Step S10, extracting a to-be-reconciled data set from a preset reconciliation data set according to the reconciliation requirement;
[0094] In the phone charge recharge business, it is necessary to conduct account audits on new cooperative merchants to meet the needs of financial settlement. Therefore, when performing reconciliation processing, the first data and the second data from the first data end and the second data end can be obtained in advance and stored in the reconciliation data center for reconciliation use, wherein the first data end and the second data end are the two parties that need to be reconciled. Specifically, the first data end can correspond to the data end on the merchant side (hereinafter referred to as the merchant end for distinction), and the first data can be the flow data generated by the merchant end; the second data end can correspond to the data end on the phone charge side (hereinafter referred to as the phone charge end for distinction), and the second data can be the order data generated by the phone charge end. Reconciliation processing refers to the process of checking and inspecting the first data from the first data end with reference to the second data from the second data end.
[0095] In a feasible embodiment, according to the reconciliation requirement, the to-be-reconciled data set pointed to by the reconciliation requirement is extracted from the pre-set reconciliation data set, wherein the to-be-reconciled data set includes data that need to be reconciled from the first data end and the second data end respectively.
[0096] Optionally, the reconciliation data set may be a memory data pool in which data from multiple terminals are stored.
[0097] In a feasible implementation manner, before the step of extracting the to-be-reconciled data set from the preset reconciliation data set in step S10, the method further includes:
[0098] Step S11, acquiring first data from the first data terminal and second data from the second data terminal;
[0099] In a feasible embodiment, first data from a first data terminal and second data from a second data terminal are obtained, wherein the first data terminal and the second data terminal are two parties that need to be reconciled.
[0100] Specifically, the first data end is the merchant end, and the first data is transaction data; the second data end is the call charge end, and the second data is order data.
[0101] Step S12, determining the information gain of each first service feature included in the first data;
[0102] In a feasible embodiment, since the first data is the original account flow data of the merchant end, the data will contain a large amount of noise data and redundant data; in order to reduce the amount of data to be processed, the most valuable features of account reconciliation information can be screened out through feature selection to reduce the data dimension and improve the efficiency of account reconciliation processing; and the second data is the data from the bill end, which does not contain noise data and redundant fields, so it does not need to be processed. Then determine the information gain of each first business feature contained in the first data.
[0103] Optionally, since the first data has a large amount of data, it contains data on features such as product name and product description, but the above data has little impact on the subsequent reconciliation processing; and there are many data formats for each feature, for example, the amount is positive or negative, and the precision is inconsistent; therefore, the data contained in the preset irrelevant business features in the first data is screened out, and the format is converted, for example, the format of the data contained in the amount feature is converted to a positive number, the precision is converted to a preset reference precision, and the first data (i.e., the third data) under the preset business scale is obtained, and then the information gain corresponding to each first business feature in the third data is determined.
[0104] The first business feature may include: at least one of a serial number, a date, an income amount, an expenditure amount, an order date, a business type, and a serial number. The first business feature may be set after analyzing the characteristics of the first data of the first data terminal.
[0105] Information gain is used to describe the amount of information (i.e. entropy) generated by each feature.
[0106] In one feasible implementation, step S12, the step of determining the information gain of each first service feature included in the first data includes:
[0107] Step S121, determining the category condition entropy of third data under each preset business category, wherein the third data is the first data under the preset business scale;
[0108] In a feasible embodiment, data under a preset business scale is screened out from the first data to serve as the third data, which can be obtained after analyzing the characteristics of the first data at the first data end, including at least one of a serial number, a date, an income amount, an expenditure amount, an order date, a business type, and a serial number. Then, the conditional entropy of the third data under each preset business category (hereinafter referred to as category conditional entropy for distinction) is determined, wherein the business categories include: phone charge recharge, phone charge refund, and phone charge irrelevant.
[0109] Since the call charge recharge service can be mainly divided into two service categories: call charge recharge and call charge refund, and the first data may contain at least some noise data, a service category irrelevant to call charges is further set.
[0110] Conditional entropy is used to represent the uncertainty or amount of information of a random event under certain known conditions.
[0111] The information gain is used to measure the gain of each first service feature to each service category at each service scale.
[0112] Step S122, determining the overall conditional entropy of each of the service categories according to the category conditional entropy;
[0113] In a feasible embodiment, the category conditional entropy of each service category is weighted and summed to obtain the overall conditional entropy.
[0114] Exemplarily, the overall conditional entropy is H(D|s), where D represents the first data (i.e., the third data) under the preset business scale s; first, the conditional probability of each third data is determined. There are c different business categories preset, denoted as {c1, c2, ..., c c}, and then for each business category c i Calculate its conditional probability P(c i |s); Secondly, according to the conditional probability of each third data, determine the probability of each service category c i The class conditional entropy H(D|s,c i ) to indicate the i The uncertainty of the third data is given by:
[0115] H(D|s,c i )=-Σ[P(c i |s)*log2(P(c i |s))]
[0116] The weighted sum of the category conditional entropies of all business categories is obtained to obtain the overall conditional entropy of the data at the business scale, which is H(D|s), to represent the overall uncertainty of the first data at the business scale. The calculation formula of the overall conditional entropy is:
[0117] H(D|s)=-Σ[P(ci|s)*H(D|s,ci)]
[0118] Step S123, determining characteristic condition entropy of the third data under each of the first service characteristics;
[0119] In a feasible embodiment, the conditional entropy of each third data under each first service feature (hereinafter referred to as feature conditional entropy for distinction) is calculated.
[0120] Exemplarily, the characteristic conditional entropy is H(D|s,x), which is used to measure the uncertainty of the category distribution of the first service characteristic x at the service scale.
[0121] Step S124: determining the information gain according to the overall conditional entropy and the characteristic conditional entropy.
[0122] In a feasible embodiment, the information gain of each first service feature is determined according to the difference between the overall conditional entropy and the characteristic conditional entropy under each first service feature.
[0123] Exemplarily, information gain=H(D|s)-H(D|s,x), wherein a larger information gain indicates a higher contribution value of the first service feature x to the service category at each service scale s.
[0124] In this embodiment, feature selection is performed through information gain to reduce the dimension of reconciliation data, improve the efficiency of data reconciliation processing, and reduce computing costs.
[0125] Step S13, performing feature selection on the first data according to the information gain to obtain a first feature set;
[0126] In a feasible embodiment, the first service feature with the largest information gain for each service category is screened out at each service scale to serve as the first feature, and a first feature set is obtained.
[0127] Step S14: Generate the reconciliation data set according to the first feature set and the second data.
[0128] In a feasible embodiment, first feature data corresponding to each first feature in the first feature set is filtered out from the first data, and the reconciliation data set is generated according to the first feature data and the second data.
[0129] Optionally, the first characteristic data is encoded to obtain first encoded data, and the reconciliation data set is generated according to the first encoded data and the second data for use in subsequent data reconciliation.
[0130] In this embodiment, feature selection is performed through information gain, data corresponding to features irrelevant to reconciliation are screened out, and the most informative data is retained in the reconciliation data set, thereby reducing the dimensionality of the reconciliation data, improving the efficiency of data reconciliation processing, and reducing computing costs.
[0131] Step S20, obtaining a decision factor associated with the to-be-reconciled data set, and inputting the decision factor into a preset reconciliation rule matching model to obtain a target reconciliation rule;
[0132] In one feasible embodiment, different cooperative merchants have different reconciliation rules, but the overall rules are determined by the configured decision factors. Therefore, the decision factors associated with the data to be reconciled are obtained, and the decision factors are input into a pre-trained reconciliation rule matching model to obtain target reconciliation rules that match the data to be reconciled, which effectively reduces the matching time of reconciliation rules for different cooperative merchants during reconciliation and improves reconciliation efficiency to meet the differentiated reconciliation and auditing needs of different funding channels.
[0133] Optionally, a decision factor associated with the data to be reconciled input by the user may be obtained, and the decision factor may be at least one of: cooperation channel, order number, recharge mobile phone number, recharge date, recharge amount, service fee rate, etc.
[0134] For example, refer to Figure 3 , the obtained multiple decision factors are input into the reconciliation rule matching model, wherein the rules of the reconciliation rule matching model include: LHS (Left Hand Side) part, i.e., conditional branch logic, and RHS (Right Hand Side) part, i.e., execution logic; and the LHS part and the RHS part are composed of one or more patterns, and the pattern is the smallest unit in the rule, and the input parameter of the pattern can be another pattern or a decision factor; then the reconciliation rule matching model matches the target reconciliation rule according to the association between the decision factor and each reconciliation rule, and outputs it as a result.
[0135] For example, refer to Figure 4 , the execution subject of the reconciliation data processing method is the application system, and the scheduling service side is used to store the reconciliation rule matching model and the latest reconciliation rule; B10, the application system stores the preset reconciliation rule matching model to the scheduling service side; B20, and regularly performs reconciliation rule new query processing through the preset timed task; B30, query the latest reconciliation rule according to the channel factor; B40, compare the latest reconciliation rule queried with the current reconciliation rule stored locally, and judge whether they are consistent; the judgment can be made through the rule identification number; B50, if they are inconsistent, the application system obtains the latest reconciliation rule from the scheduling service according to the channel factor; B60, the application system updates the locally stored reconciliation rule matching model according to the latest reconciliation rule obtained. The scheduling service realizes the centralized management and dynamic update of the reconciliation rules, and ensures the timeliness of the reconciliation rules.
[0136] Step S30, dividing the data in the to-be-reconciled data set based on preset business categories to obtain a plurality of first subsets corresponding to different business categories;
[0137] In a feasible embodiment, since the phone charge recharge service can be mainly divided into two service categories: phone charge recharge and phone charge refund, and the data to be reconciled may also contain at least some noise data, which has no effect on the reconciliation, a service category irrelevant to phone charges is further set, that is, the preset service categories include: phone charge recharge, phone charge refund and irrelevant to phone charges. Then, based on the service category, the data in the reconciliation data set is divided to obtain a plurality of first subsets corresponding to phone charge recharge, phone charge refund and irrelevant to phone charges.
[0138] Step S40: reconcile the data in each of the first subsets according to the target reconciliation rule and generate a reconciliation result.
[0139] In a feasible embodiment, according to the matched target reconciliation rule, reconciliation processing is performed on the data from the two reconciliation parties in each first subset, and a reconciliation result is generated.
[0140] Exemplarily, according to the target reconciliation rule, the first subsets corresponding to call charge recharge and call charge refund are processed respectively, while the first subset corresponding to call charge irrelevant items is not processed because it has no impact on the reconciliation result.
[0141] In this embodiment, according to the reconciliation requirements, a data set to be reconciled is extracted from a preset reconciliation data set; then, a decision factor associated with the data set to be reconciled is obtained, and the decision factor is input into a preset reconciliation rule matching model to obtain a target reconciliation rule; the reconciliation and auditing rules of different cooperating merchants are stored through a pre-trained reconciliation rule matching model, and then during the actual reconciliation, only the decision factor needs to be input into the reconciliation rule matching model to quickly match the appropriate target reconciliation rule, which effectively reduces the matching time of reconciliation rules for different cooperating merchants during reconciliation and improves the reconciliation efficiency to cope with the differentiated reconciliation and auditing requirements of different funding channels. Then, based on the preset business categories, the data in the data set to be reconciled is divided to obtain multiple first subsets corresponding to different business categories; then, according to the target reconciliation rules, the data in each of the first subsets is reconciled, and a reconciliation result is generated; by dividing the data set to be reconciled into different subsets, some redundant data in the data set to be reconciled that does not need to be reconciled can be screened out, effectively reducing the amount of data, and at the same time, the subsets can be processed in parallel, further improving the processing efficiency of the reconciliation data, thereby meeting the high-performance, high-efficiency, and diversified carrying requirements of reconciliation and auditing to the greatest extent.
[0142] Further, based on the above first embodiment, a second embodiment of the reconciliation data processing method of the present application is proposed, referring to Figure 5 In this embodiment, step S30, based on the preset business categories, the data in the to-be-reconciled data set is divided to obtain a plurality of first subsets corresponding to different business categories, including:
[0143] Step S31, identifying the second business features included in the to-be-reconciled data set, and determining the Gini impurity of each of the second business features;
[0144] In a feasible embodiment, business features (hereinafter referred to as second business features for distinction) included in the to-be-reconciled data set are identified, and the Gini impurity of each second business feature is calculated.
[0145] Gini impurity refers to the expected error rate of a data item when a certain result from a set is randomly applied to the set.
[0146] Exemplarily, the Gini impurity is calculated by the following formula:
[0147]
[0148] Where D is the data set to be reconciled, c is the number of business categories in the data set to be reconciled, and pi is the proportion of samples in the data set that belong to business category i. The value range of Gini(D) is 0 to 1, where 0 means that all samples in the data set belong to the same category, that is, the data set is pure; 1 means that the samples in the data set are evenly distributed in different categories, that is, the data set is very impure.
[0149] Step S32, determining a target feature from each of the second service features according to the Gini impurity;
[0150] In a feasible embodiment, since a smaller Gini impurity indicates a purer data set, a feature with the smallest Gini impurity is selected from the second business features as the target feature.
[0151] Step S33: based on the target feature, divide the data in the to-be-reconciled data set into the first subsets corresponding to different business categories.
[0152] In a feasible embodiment, based on preset business categories, multiple first subsets corresponding to different business categories are generated; and then based on target features, the data in the reconciliation data set is divided into the first subsets of each business category.
[0153] In this embodiment, the data in the reconciliation data set is divided by Gini impurity to obtain multiple pure first subsets, and each subset can be processed in parallel to further improve the efficiency of reconciliation data processing, thereby meeting the high performance, high efficiency and diversified carrying requirements of reconciliation and auditing to the greatest extent.
[0154] In a feasible implementation manner, after the step of generating the reconciliation result in step S40, the following steps are further included:
[0155] Step S50, obtaining a first result value of each of the first subsets in the reconciliation result;
[0156] In a feasible embodiment, a first result value of each first subset in the reconciliation result is obtained, wherein the first result value is used to measure the data reconciliation status between the data from the first data end and the second data end.
[0157] Step S60, inputting each of the first subsets into a preset data reconciliation model to obtain a second result value of each of the first subsets;
[0158] In a feasible embodiment, each first subset is input into a preset data reconciliation model to obtain a second result value of each first subset, wherein the data reconciliation model is a pre-trained model for predicting the reconciliation result value; since the reconciliation result includes not only the final result value but also the specific reconciliation details, it is difficult to meet the actual reconciliation needs using only the data reconciliation model.
[0159] Step S70: Generate a verification result according to the difference between the first result value and the second result value, and update the reconciliation result according to the verification result.
[0160] In a feasible embodiment, a verification result is generated based on the difference between the first result value and the second result value, and the reconciliation result is updated based on the verification result; wherein the verification result can also be used to determine whether the target feature used in the first subset division is appropriate.
[0161] Exemplarily, the mean square error between the first result value and the second result value is calculated. If the mean square error is smaller, it means that the two are closer, and the target feature is more appropriate.
[0162] In this embodiment, since the first subset is obtained based on the screened target features, the result value can be predicted by a pre-trained data reconciliation model and compared with the actual result value to verify the reconciliation result to improve the accuracy of the reconciliation result.
[0163] Further, based on the above-mentioned first and / or second embodiments, a third embodiment of the method for processing reconciliation data of the present application is proposed. In this embodiment, step S40, according to the target reconciliation rule, reconciliation processing is performed on the data in each of the first subsets, and the step of generating a reconciliation result includes:
[0164] Step S41, identifying a third service feature included in the first subset;
[0165] In a feasible embodiment, the service characteristics included in the first subset (hereinafter referred to as the third service characteristics for distinction) are identified.
[0166] Step S42, performing feature fusion on each of the third service features to obtain a fused feature;
[0167] In a feasible embodiment, when performing data reconciliation, due to the complex relationship between various business features, in order to better understand the interaction relationship in the data, a fusion feature is created based on the potential relationship between the various business features, that is, the third business features of each first subset are fused to obtain a fusion feature.
[0168] Exemplarily, referring to Table 1, the third business feature included in the first subset is subjected to feature fusion to obtain a fused feature, namely, the order type.
[0169] Table 1:
[0170]
[0171]
[0172] Step S43, dividing the data in the first subset based on the fusion feature to obtain multiple second subsets;
[0173] In a feasible embodiment, based on the fusion feature, the data in the first subset is further divided to obtain a plurality of second subsets corresponding to each first subset.
[0174] Step S44, reconciling the data in each of the second subsets according to the target reconciliation rule, and generating the reconciliation result.
[0175] In a feasible embodiment, according to the target reconciliation rule, the data in each second subset is reconciled and a reconciliation result is generated. By further dividing the first subset, the structural consistency of the data during reconciliation can be ensured, which helps to reduce the complexity of data processing, and plays a role in data filtering and data classification, making the reconciliation basis efficient and explainable.
[0176] Exemplarily, the fusion feature is the order type, and multiple second subsets are obtained according to the order type, including: other subsets, unprocessable subsets, refund subsets and payment subsets; further, if the order type of the data is other income or other expenditure, the data is divided into other subsets. If the order type of the data is withdrawal, unknown type or transfer, etc., the data is divided into the unprocessable subset, and the data in the subset is discarded. If the order type of the data is a transaction refund, the data is stored in the refund subset. If the order type of the data is payment, transfer expenditure or transfer income, the data is stored in the payment subset to achieve further division of the data set.
[0177] In one feasible implementation, the target reconciliation rule includes: a reconciliation order, a triggering event, and an execution action. Step S44, reconciling the data in each of the second subsets according to the target reconciliation rule, and generating the reconciliation result includes:
[0178] Step S441, matching the target data from both parties to be reconciled in the second subset according to the reconciliation order to obtain a matching result;
[0179] In a feasible embodiment, according to the reconciliation order, the target data from the two reconciliation parties, ie, the first data end and the second data end, in the second subset are matched to obtain a matching result.
[0180] Step S442, determining a target triggering event according to the fusion feature of the target data and the matching result;
[0181] In a feasible embodiment, the target reconciliation rule is used as a reference, and the target trigger event is determined according to the fusion characteristics and matching results of the target data.
[0182] Step S443, identifying the target execution action pointed to by the target triggering event, and processing the target data according to the target execution action to obtain a processing result;
[0183] In a feasible embodiment, the target reconciliation rule is used as a reference to identify the target execution action pointed to by the target trigger event, and the target data is processed according to the target execution action to obtain a processing result.
[0184] Exemplarily, the fusion feature is order type, the order type of the target data is: payment, the matching result is: the data does not exist in the second data terminal, and the target trigger event is determined as: registration is questionable with reference to the target reconciliation rule, and then referring to Table 2, according to the target trigger event, the target execution action is determined, and the target data is processed.
[0185] Table 2:
[0186]
[0187]
[0188] Step S444: generating the reconciliation result according to the matching result and the processing result.
[0189] In a feasible embodiment, reconciliation details are generated based on the matching results and the processing results, and a reconciliation result is obtained.
[0190] Optionally, since each business scenario has different requirements for reports, corresponding reports need to be generated. After generating the reconciliation results, the target report type is determined according to the report interface type; the reconciliation results are converted into the target report type and output to display detailed reconciliation and audit status.
[0191] In this embodiment, by further dividing the data of the first subset, redundant data or noise data in the data set that does not need to be reconciled can be further screened out, thereby effectively reducing the amount of data. At the same time, the subsets can be processed in parallel to further improve the efficiency of reconciliation data processing, thereby meeting the high-performance, high-efficiency, and diversified carrying requirements of reconciliation and auditing to the greatest extent.
[0192] Furthermore, an embodiment of the present application also provides a storage medium.
[0193] The storage medium is a computer-readable storage medium, on which a reconciliation data processing program is stored. When the reconciliation data processing program is executed by a processor, the steps of the reconciliation data processing method described above are implemented.
[0194] Among them, the method implemented when the reconciliation data processing program running on the processor is executed can refer to the various embodiments of the reconciliation data processing method of the present application, and will not be repeated here.
[0195] Furthermore, an embodiment of the present application also provides a computer program product.
[0196] The computer program product includes a reconciliation data processing program, and when the reconciliation data processing program is executed by a processor, the steps of the reconciliation data processing method described above are implemented.
[0197] Among them, the method implemented when the reconciliation data processing program running on the processor is executed can refer to the various embodiments of the reconciliation data processing method of the present application, and will not be repeated here.
[0198] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0199] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0200] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for processing reconciliation data, characterized in that: The reconciliation data processing method comprises the following steps: According to the reconciliation requirements, extract the data set to be reconciled from the preset reconciliation data set; Acquire a decision factor associated with the to-be-reconciled data set, and input the decision factor into a preset reconciliation rule matching model to obtain a target reconciliation rule; Based on preset business categories, the data in the to-be-reconciled data set is divided to obtain a plurality of first subsets corresponding to different business categories; According to the target reconciliation rule, reconciliation processing is performed on the data in each of the first subsets, and a reconciliation result is generated.
2. The method for processing reconciliation data according to claim 1, characterized in that: Before the step of extracting the to-be-reconciled data set from the preset reconciliation data set, the method further includes: Acquire first data from a first data terminal and second data from a second data terminal; Determining the information gain of each first service feature included in the first data; According to the information gain, feature selection is performed on the first data to obtain a first feature set; The reconciliation data set is generated according to the first feature set and the second data.
3. The method for processing reconciliation data according to claim 2, characterized in that: The step of determining the information gain of each first service feature included in the first data includes: Determining the category condition entropy of third data under each preset business category, wherein the third data is the first data under the preset business scale; Determining the overall conditional entropy of each of the service categories according to the category conditional entropy; Determine characteristic condition entropy of the third data under each of the first service characteristics; The information gain is determined according to the overall conditional entropy and the characteristic conditional entropy.
4. The method for processing reconciliation data according to claim 1, characterized in that: The step of dividing the data in the to-be-reconciled data set based on the preset business categories to obtain a plurality of first subsets corresponding to different business categories comprises: Identifying second business features included in the to-be-reconciled data set, and determining the Gini impurity of each of the second business features; Determining a target feature from each of the second service features according to the Gini impurity; Based on the target feature, the data in the to-be-reconciled data set is divided into the first subsets corresponding to different business categories.
5. The method for processing reconciliation data according to claim 1, characterized in that: The step of performing reconciliation processing on the data in each of the first subsets according to the target reconciliation rule and generating a reconciliation result comprises: identifying a third service feature included in the first subset; Performing feature fusion on each of the third service features to obtain a fusion feature; Based on the fusion feature, the data in the first subset is divided to obtain a plurality of second subsets; According to the target reconciliation rule, the data in each of the second subsets is reconciled, and the reconciliation result is generated.
6. The method for processing reconciliation data according to claim 5, characterized in that: The target reconciliation rule includes: a reconciliation sequence, a triggering event, and an execution action. The step of reconciling the data in each of the second subsets according to the target reconciliation rule and generating the reconciliation result includes: According to the reconciliation order, matching the target data from the two parties to be reconciled in the second subset to obtain a matching result; Determining a target trigger event according to the fusion feature of the target data and the matching result; Identify the target execution action pointed to by the target trigger event, and process the target data according to the target execution action to obtain a processing result; The reconciliation result is generated according to the matching result and the processing result.
7. The method for processing reconciliation data according to claim 1, characterized in that: After the step of generating the reconciliation result, the method further includes: Obtaining a first result value of each of the first subsets in the reconciliation result; Inputting each of the first subsets into a preset data reconciliation model to obtain a second result value of each of the first subsets; A verification result is generated according to the difference between the first result value and the second result value, and the reconciliation result is updated according to the verification result.
8. An electronic device, characterized in that: The device comprises: a memory, a processor, and a reconciliation data processing program stored in the memory and executable on the processor, wherein the reconciliation data processing program is configured to implement the steps of the reconciliation data processing method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a reconciliation data processing program is stored. When the reconciliation data processing program is executed by a processor, the steps of the reconciliation data processing method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product comprises a reconciliation data processing program, and when the reconciliation data processing program is executed by a processor, the steps of the reconciliation data processing method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Bank flow verification method and system based on OCR (Optical Character Recognition) technology
CN119624613A
Gateway configuration repushing method, device, equipment and medium
CN119892635A
