A method, device and medium for writing off creditor's rights and debtor's rights data
Through automated data processing processes, preset dimension weight tables and self-learning weight strategies are used to write off credit and debt data, which solves the problem of time-consuming and labor-intensive manual operations in traditional methods and improves the accuracy and efficiency of write-offs.
Patent Information
- Application Number
- CN202410962926.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-18
AI Technical Summary
The traditional write-off method of creditor's rights and debt data requires a lot of time and labor costs when faced with a huge amount of data, which leads to personnel fatigue, increases the probability of errors, and reduces the accuracy of write-off results.
Adopt automated data processing processes, including dimension determination, weight assignment, cluster analysis and data matching, dynamically adjust dimension weights through preset dimension weight tables and self-learning weight strategies, and use cluster analysis to aggregate similar data to improve write-off efficiency and accuracy.
It reduces manual operation time and costs, improves the accuracy and rationality of write-offs, reduces the probability of errors, and improves the efficiency and accuracy of data write-offs.
Smart Images

Figure CN118505371B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data write-off, and in particular to a method, device and medium for writing off creditor's rights and debtor's rights data. Background Art
[0002] In modern financial and commercial activities, the management and write-off of creditor-debtor relationships are crucial links in business operations. As the business scale of enterprises continues to expand and the business volume continues to increase, the data on creditor-debtor relationships will also grow rapidly.
[0003] However, when faced with such a huge amount of data, traditional write-off methods usually rely on cumbersome manual review and judgment methods. This method may be feasible when dealing with a small amount of data, but when dealing with massive amounts of data, manual operations require a lot of time and manpower costs, increasing the company's operating costs. Secondly, long-term continuous work can easily lead to personnel fatigue, which in turn increases the probability of errors and reduces the accuracy of the write-off results. Summary of the invention
[0004] The embodiments of the present application provide a method, device and medium for writing off debt and receivable data, which are used to solve the following technical problems: traditional writing-off methods require a lot of time and manpower costs when faced with huge amounts of data, and long-term continuous work can easily lead to personnel fatigue, thereby increasing the probability of errors and reducing the accuracy of the writing-off results.
[0005] The present application embodiment adopts the following technical solutions:
[0006] The embodiment of the present application provides a method for writing off credit and debt data. The method comprises: obtaining data to be written off, and determining the dimension corresponding to the data to be written off; determining a first dimension in the dimension corresponding to the data to be written off based on a preset dimension weight table, and assigning a preset weight to the first dimension; determining an unassigned second dimension in the data to be written off, and determining the weight values corresponding to the second dimension based on a self-learning weight strategy; constructing a distance function based on the data to be written off after the weight assignment when the weight value detection passes; randomly selecting multiple data to be written off as the centroid, and obtaining clustered data to be written off based on the distance function and the centroid; determining the creditor data and debtor data in the clustered data to be written off, matching the creditor data and the debtor data, and writing off the data to be written off based on the matching result.
[0007] The embodiments of the present application can reduce the time and cost of manual operations and improve the efficiency of write-offs through an automated data processing process, including dimension determination, weight assignment, cluster analysis, and data matching. Secondly, the embodiments of the present application can dynamically adjust the dimension weights according to the actual situation of the data through a preset dimension weight table and a self-learning weight strategy, and comprehensively analyze the data to be written off from multiple angles, thereby improving the accuracy and rationality of the write-off. Through cluster analysis, similar data to be written off are clustered together, thereby further improving the efficiency and accuracy of data write-offs.
[0008] In one implementation of the present application, based on a preset dimension weight table, before determining a first dimension in the dimension corresponding to the data to be written off, the method also includes: obtaining a first label group corresponding to the data to be written off, and determining first tolerance data based on the first label group; wherein the first tolerance data is data in the data to be written off that does not belong to the first label group, and the similarity between the data and the data corresponding to the first label group meets the similarity threshold; based on the first label group, determining a corresponding second label group in the preset dimension weight table, and determining second tolerance data based on the second label group; wherein the second tolerance data is data in the data to be written off that does not belong to the second label group, and the similarity between the data and the data corresponding to the second label group meets the similarity threshold.
[0009] In one implementation of the present application, based on a preset dimension weight table, a first dimension is determined in the dimensions corresponding to the data to be written off, and a preset weight is assigned to the first dimension, specifically including: comparing the first tolerance data with the second tolerance data to obtain reference tolerance data; based on the reference tolerance data, determining a reference label in the preset data dimension table, and adding the reference label to the second label group; based on the second label group, determining a weight value in the preset dimension weight table; based on the second label group, determining the first dimension in the dimensions corresponding to the data to be written off, and assigning a preset weight to the first dimension based on the determined weight value.
[0010] In one implementation of the present application, an unassigned second dimension is determined in the data to be written off, and based on a self-learning weight strategy, the weight values corresponding to the second dimension are determined, specifically including: according to the unassigned second dimension, multiple creditor's rights and debtor's rights data samples are determined in a preset sample database; random weights are assigned to the multiple bond and debtor's rights data samples, and clustering is performed based on the assigned data samples to obtain clustering results; multiple random weights are assigned to the multiple bond and debtor's rights data samples multiple times to obtain multiple clustering results; wherein the weight values of the multiple random weight assignments are all different; multiple clustering results are compared to determine the optimal weight value, and the optimal weight value is used as the weight value corresponding to the second dimension.
[0011] In one implementation of the present application, based on the data to be written off after weight assignment, before constructing the distance function, the method also includes: determining the importance arrangement corresponding to the first dimension and the second dimension based on a preset dimension arrangement table, and determining the weight distribution interval corresponding to each dimension based on the importance arrangement; comparing the weight values corresponding to the first dimension and the second dimension with the weight distribution interval; if each weight value belongs to the corresponding weight distribution interval, the weight value detection passes; if there is at least one weight value that does not belong to the weight distribution interval, the weight value detection fails, and the weight value is reallocated.
[0012] In one implementation of the present application, a distance function is constructed based on the data to be written off after weight assignment, specifically including: performing a first assignment on a preset Euler function based on the weight value corresponding to the first dimension; and performing a second assignment on the preset Euler function based on the weight value corresponding to the second dimension; determining the sum of the weight values after assignment, and when the sum of the weight values is 1, using the preset Euler function after assignment as the distance function.
[0013] In one implementation of the present application, a plurality of data to be written off are randomly selected as centroids, and clustered data to be written off are obtained based on a distance function and the centroid, specifically including: randomly selecting a plurality of data to be written off as centroids, and determining the distances between the plurality of data to be written off and the centroids based on a distance function; based on the distances, assigning each data to be written off to the cluster corresponding to the centroid closest to the distance; re-determining the centroid of each cluster until a preset iteration condition is reached, and outputting a reference clustering result; determining the average distance value between each data to be written off in the current cluster and other data to be written off in the current cluster; determining the nearest cluster that does not contain the current data to be written off, and determining the minimum average distance value between the current data to be written off and the nearest cluster; based on the average distance value and the minimum average distance value, testing the reference clustering result, and if the test passes, obtaining the clustered data to be written off based on the reference clustering result.
[0014] In one implementation of the present application, the creditor data and the debtor data in the clustered data to be written off are determined, the creditor data and the debtor data are matched, and the data to be written off is written off based on the matching result, specifically including: matching the creditor data and the debtor data in the clustered data to be written off based on data information; wherein the data information includes at least one of the contract information, transaction code, customer name and company name; when the amounts corresponding to the creditor data and the debtor data are consistent, establishing a write-off relationship between the creditor data and the debtor data; when the amounts corresponding to the creditor data and the debtor data are inconsistent, if the amount corresponding to the creditor data is less than the amount corresponding to the debtor data, establishing a sub-write-off task based on the amount corresponding to the debtor data.
[0015] An embodiment of the present application provides a device for writing off data of claims and debts, comprising: at least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain data to be written off, and determine the dimensions corresponding to the data to be written off; based on a preset dimension weight table, determine a first dimension in the dimensions corresponding to the data to be written off, and assign a preset weight to the first dimension; determine an unassigned second dimension in the data to be written off, and based on a self-learning weight strategy, determine the weight values corresponding to the second dimension respectively; if the weight value detection passes, construct a distance function based on the data to be written off after the weight assignment; randomly select multiple data to be written off as centroids, and obtain clustered data to be written off based on the distance function and the centroid; determine the creditor data and debtor data in the clustered data to be written off, match the creditor data and the debtor data, and write off the data to be written off based on the matching result.
[0016] A non-volatile computer storage medium provided in an embodiment of the present application stores computer executable instructions, wherein the computer executable instructions are configured to: obtain data to be written off, and determine the dimensions corresponding to the data to be written off; determine a first dimension in the dimensions corresponding to the data to be written off based on a preset dimension weight table, and assign a preset weight to the first dimension; determine an unassigned second dimension in the data to be written off, and determine the weight values corresponding to the second dimension based on a self-learning weight strategy; if the weight value detection passes, construct a distance function based on the data to be written off after the weight assignment; randomly select multiple data to be written off as centroids, and obtain clustered data to be written off based on the distance function and the centroid; determine the creditor data and debtor data in the clustered data to be written off, match the creditor data with the debtor data, and write off the data to be written off based on the matching result.
[0017] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: The embodiments of the present application can reduce the time and cost of manual operations and improve the efficiency of write-offs through an automated data processing process, including dimension determination, weight assignment, cluster analysis, and data matching. Secondly, the embodiments of the present application can dynamically adjust the dimension weights according to the actual situation of the data through a preset dimension weight table and a self-learning weight strategy, and comprehensively analyze the data to be written off from multiple angles, thereby improving the accuracy and rationality of the write-off. Through cluster analysis, similar data to be written off are clustered together, thereby further improving the efficiency and accuracy of data write-offs. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0019] Figure 1 A flow chart of a method for writing off credit and debt data provided in an embodiment of the present application;
[0020] Figure 2 A schematic diagram of the structure of a device for writing off credit and debt data provided in an embodiment of the present application.
[0021] Reference numerals:
[0022] 200: creditor's rights and debtor's rights data write-off device, 201: processor, 202: memory. DETAILED DESCRIPTION
[0023] The embodiments of the present application provide a method, device and medium for writing off credit and debt data.
[0024] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0025] The technical solution proposed in the embodiment of the present invention is described in detail below with reference to the accompanying drawings.
[0026] Figure 1 A flow chart of a method for writing off creditor's rights and debtor's rights data provided in an embodiment of the present application. Figure 1 As shown, the method for writing off credit and debt data includes the following steps:
[0027] Step 101: Obtain the data to be written off and determine the dimensions corresponding to the data to be written off.
[0028] In one embodiment of the present application, firstly, the data of credits and debts to be written off are collected from the financial system, transaction records or other relevant data sources of the enterprise, wherein the data to be written off includes transaction records, contract information, invoices and bills.
[0029] Furthermore, in the embodiment of the present application, the dimensions corresponding to the data to be written off may include a time dimension, an amount dimension, a contract information dimension, a customer dimension, and a business type dimension. Among them, the time dimension records the time when the creditor-debtor relationship occurs, such as the transaction date, the expiration date, etc. The amount dimension includes the total amount of creditor's rights and debts, the written-off amount, the unwritten-off amount, etc. The contract information dimension involves the contract number, contract type, contract term, etc. The customer dimension refers to the basic information of the customer or supplier who has a creditor-debtor relationship with the enterprise, such as name, contact information, credit rating, etc. The business type dimension includes the business type to which the creditor-debtor relationship belongs, such as sales, procurement, services, etc.
[0030] Step 102: Based on the preset dimension weight table, determine the first dimension in the dimensions corresponding to the data to be written off, and assign a preset weight to the first dimension.
[0031] In one embodiment of the present application, a first label group corresponding to the data to be written off is obtained, and first tolerance data is determined based on the first label group; wherein the first tolerance data is data in the data to be written off that does not belong to the first label group, and the similarity between the data and the data corresponding to the first label group meets the similarity threshold. Based on the first label group, a corresponding second label group is determined in a preset dimension weight table, and second tolerance data is determined based on the second label group; wherein the second tolerance data is data in the data to be written off that does not belong to the second label group, and the similarity between the data and the data corresponding to the second label group meets the similarity threshold.
[0032] Specifically, the write-off data is labeled according to dimensions such as business type, customer credit rating, and transaction amount to construct a preset label table, and the current data to be written off is compared with the preset label table to determine the first label group corresponding to the current data to be written off. Further, the similarity between each data item in the data to be written off and the data corresponding to the first label group is calculated, and the similarity is compared with the preset similarity threshold, and the data whose similarity exceeds the threshold but does not belong to the first label group is screened out as the first tolerance data. For example, a batch of accounts receivable data to be written off is obtained, and the first label group is first labeled for these data according to the business type, such as product sales, service contracts, etc. Then, it is found that although some data are classified as "other" in terms of business type, they are actually very similar to the data in the "product sales" category, such as transaction amount, customer type, etc. These data are the first tolerance data.
[0033] Furthermore, based on the first label group, the dimensions and weights related to the first label group can be searched in the preset dimension weight table to determine the corresponding second label group. Furthermore, the similarity between each data item in the data to be written off and the corresponding data of the second label group is calculated, and the similarity is compared with the preset similarity threshold, and the data whose similarity exceeds the threshold but does not belong to the second label group is screened out as the second tolerance data. For example, by checking the preset dimension weight table, it is found that in addition to the business type, customer credit rating is also an important dimension. Based on this dimension, a second label group is assigned to the data, such as Class A customers, Class B customers, etc. Because some data are classified as "unrated" in terms of customer credit rating, but they are very similar to the data of "Class A customers" in multiple dimensions. These data are the second tolerance data.
[0034] In one embodiment of the present application, the first tolerance data is compared with the second tolerance data to obtain reference tolerance data. Based on the reference tolerance data, a reference tag is determined in the preset data dimension table, and the reference tag is added to the second tag group. Based on the second tag group, a weight value is determined in the preset dimension weight table. Based on the second tag group, a first dimension is determined in the dimension corresponding to the data to be written off, and a preset weight is assigned to the first dimension based on the determined weight value.
[0035] Specifically, the first tolerance data and the second tolerance data are compared and processed as a union to obtain reference tolerance data. The reference tolerance data shows strong similarity with a certain label group in multiple dimensions. According to the characteristics of the reference tolerance data, a suitable reference label can be determined in the preset data dimension table, and the determined reference label is added to the second label group. For example, by comparing the first tolerance data and the second tolerance data, it is found that some data show strong similarity with the "A-level customer" label group in both the "customer credit rating" and "transaction amount" dimensions. These data are regarded as reference tolerance data.
[0036] Further, the dimensions and weights related to the second tag group are searched in the preset dimension weight table, wherein the preset dimension weight table includes different dimensions and weights corresponding to different dimensions. After the weight value is determined, the first dimension is determined from all dimensions of the data to be written off based on the second tag group. That is, the dimension existing in the preset dimension weight table is taken as the first dimension, and the preset weight is assigned to the first dimension according to the determined weight value.
[0037] Step 103: Determine the unassigned second dimension in the data to be written off, and determine the weight values corresponding to the second dimension based on the self-learning weight strategy.
[0038] In one embodiment of the present application, according to the unassigned second dimension, multiple credit and debt data samples are determined in the preset sample database. Random weights are assigned to the multiple bond and debt data samples, and clustering is performed based on the assigned data samples to obtain clustering results. Multiple random weights are assigned to the multiple bond and debt data samples multiple times to obtain multiple clustering results; wherein the weight values of the multiple random weight assignments are all different. Multiple clustering results are compared to determine the optimal weight value, and the optimal weight value is used as the weight value corresponding to the second dimension.
[0039] Specifically, the second dimension of the creditor's rights and debtor's rights data to be processed that has not been clearly assigned a weight is identified, and multiple creditor's rights and debtor's rights data samples related to the second dimension are selected from the preset sample database. Random weights are assigned to each selected data sample. That is, a random weight value is assigned to the second dimension of each sample, and these values can be any number between 0 and 1, which is used to simulate different weight distribution situations, and cluster analysis is performed based on the assigned data samples.
[0040] Furthermore, in order to obtain more stable and reliable clustering results, multiple bond debt data samples are randomly assigned weights multiple times. The weight values assigned each time are different to simulate more weight allocation possibilities. The multiple clustering results obtained after multiple random weight assignments are compared and analyzed. For example, the number of clusters, intra-cluster similarity, inter-cluster difference and other indicators of different clustering results can be compared to evaluate the effect of each weight allocation. Based on the comparison of clustering results, the optimal weight value is determined, where the optimal weight value is the weight value that shows the best clustering effect when the data sample is clustered, such as high intra-cluster similarity and large inter-cluster difference.
[0041] Step 104: When the weight value detection passes, a distance function is constructed based on the data to be written off after the weight value is assigned.
[0042] In one embodiment of the present application, based on the preset dimension arrangement table, the importance arrangement corresponding to the first dimension and the second dimension is determined, and the weight distribution interval corresponding to each dimension is determined based on the importance arrangement. The weight values corresponding to the first dimension and the second dimension are compared with the weight distribution interval. If each weight value belongs to the corresponding weight distribution interval, the weight value detection passes. If there is at least one weight value that does not belong to the weight distribution interval, the weight value detection fails, and the weight value is reallocated.
[0043] Specifically, based on the preset dimension ranking table, determine the importance of different dimensions in data analysis. This ranking is usually based on business logic, historical experience or expert judgment. For example, in the debt analysis, "transaction amount" may be regarded as a more important dimension and therefore ranked first, while "transaction frequency" may be relatively less important and ranked later. According to the importance ranking of the dimensions, a weight distribution range is set for each dimension. This range reflects the reasonable value range of the dimension in the total weight.
[0044] Furthermore, after determining the weight values of each dimension, these weight values are compared with the corresponding weight distribution intervals. To determine whether the weight values are within a reasonable range, thereby ensuring the accuracy and reliability of data analysis. If the weight values of all dimensions fall within their corresponding weight distribution intervals, then the weight value test passes, indicating that these weight values are reasonable. If there is at least one weight value that exceeds its corresponding weight distribution interval, then the weight value test fails. At this point, these weight values need to be re-evaluated and adjusted to ensure that they meet the preset standards and expectations.
[0045] In one embodiment of the present application, a first value is assigned to the preset Euler function based on the weight value corresponding to the first dimension. And, a second value is assigned to the preset Euler function based on the weight value corresponding to the second dimension. The sum of the weight values after the assignment is determined, and when the sum of the weight values is 1, the preset Euler function after the assignment is used as the distance function.
[0046] Specifically, the weight value of each dimension is determined, and a first assignment is performed with the preset Euler function based on the first dimension, that is, for the first dimension, the corresponding weight value is multiplied by the first dimension item in the preset Euler function. A second assignment is performed with the preset Euler function based on the second dimension, that is, for the second dimension, the corresponding weight value is multiplied by the second dimension item in the preset Euler function.
[0047] Furthermore, in order to ensure the correctness and interpretability of the distance function, the sum of the weight values of all dimensions must be 1. If the initial weight values do not meet this condition, they are normalized. Specifically, each weight value is divided by the sum of all weight values to ensure that the sum is 1. When the sum of the weight values is 1, the preset Euler function after assignment is used as the distance function, through which the distance between two data points can be calculated.
[0048] Step 105: randomly select multiple data to be written off as centroids, and obtain clustered data to be written off based on the distance function and the centroids.
[0049] In one embodiment of the present application, a plurality of data to be written off are randomly selected as the centroid, and the distance between the plurality of data to be written off and the centroid is determined based on a distance function. Based on the distance, each data to be written off is assigned to the cluster corresponding to the centroid with the closest distance. The centroid of each cluster is re-determined until a preset iteration condition is reached, and a reference clustering result is output. The average distance value between each data to be written off in the current cluster and other data to be written off in the current cluster is determined. The nearest cluster that does not contain the current data to be written off is determined, and the minimum average distance value between the current data to be written off and the nearest cluster is determined. Based on the average distance value and the minimum average distance value, the reference clustering result is tested, and if the test passes, the clustered data to be written off is obtained based on the reference clustering result.
[0050] Specifically, multiple data points are randomly selected from the data to be written off as the initial centroids, where the centroid is the center point of the cluster and represents the location of a cluster. The distance between each data to be written off and all centroids is calculated based on the distance function to assign each data to be written off to the cluster corresponding to the nearest centroid. When all the data to be written off are assigned to a cluster, the centroid of each cluster is recalculated, where the new centroid is usually the average of all data points in the cluster. Repeat this process (i.e., calculating distance, assigning data points, and re-determining the centroid) until the preset iteration conditions are met, such as the position of the centroid no longer changes significantly, the maximum number of iterations is reached, etc. When the iteration stops, the reference clustering result is output.
[0051] Furthermore, for each cluster in the reference clustering result, the average distance between each data to be written off in the current cluster and other data to be written off is calculated to obtain the average distance value of the cluster. For each data to be written off, the nearest cluster that does not contain the data is found, and the average distance between the data to be written off and all data in the nearest cluster is calculated to obtain the minimum average distance value. Based on the calculated average distance value and the minimum average distance value, the reference clustering result is tested. If the average distance and the minimum average distance both meet the preset range requirements, it is determined that the reference clustering result meets the requirements, and the final clustered data to be written off is obtained according to the reference clustering result.
[0052] Step 106: Determine the creditor data and debtor data in the clustered data to be written off, match the creditor data with the debtor data, and write off the data to be written off based on the matching result.
[0053] In one embodiment of the present application, based on data information, the creditor data and debtor data in the clustered data to be written off are matched; wherein the data information includes at least one of contract information, transaction code, customer name, and company name. When the amounts corresponding to the creditor data and the debtor data are consistent, a write-off relationship is established between the creditor data and the debtor data. When the amounts corresponding to the creditor data and the debtor data are inconsistent, if the amount corresponding to the creditor data is less than the amount corresponding to the debtor data, a sub-write-off task is established based on the amount corresponding to the debtor data.
[0054] Specifically, in the clustered data to be written off, the creditor data is matched with the debtor data. The matching in the embodiment of the present application is based on data information, which includes but is not limited to contract information, transaction code, customer name, and company name. This information is used to ensure that the data between the creditor and the debtor can correspond correctly.
[0055] Furthermore, during the matching process, if the amounts corresponding to the creditor's data and the debtor's data are consistent, it is considered that these two data points can be directly written off, and a write-off relationship is established for them. This means that the creditor's rights and debts offset each other and no further processing is required. If the amounts corresponding to the creditor's data and the debtor's data are inconsistent, it is necessary to further determine how to handle this situation. In particular, if the amount corresponding to the creditor's data is less than the amount corresponding to the debtor's data, a sub-write-off task will be established based on the amount corresponding to the debtor's data.
[0056] For example, creditor data A: contract number 123, company name Company A, amount 100,000 yuan;
[0057] Debtor data B: Contract number 123, company name Company A, amount 150,000 yuan.
[0058] First, A and B are matched based on information such as contract number and company name, and it is found that they are corresponding. Then, it is determined whether the amounts are consistent, and it is found that they are inconsistent (the amount of A is 100,000 yuan, and the amount of B is 150,000 yuan). Since the amount of the creditor data A is less than the amount of the debtor data B, a sub-write-off task is established based on the amount of the debtor data B. Specifically, a write-off task is created with a write-off amount of 100,000 yuan (the same as the amount of A), and the remaining 50,000 yuan is used as the unwritten portion. The unwritten portion can be further processed or matched with other creditor data according to needs.
[0059] Figure 2 A schematic diagram of a device for writing off credit and debt data provided in an embodiment of the present application. Figure 2As shown, the creditor's rights and debtor's rights data write-off device 200 includes: at least one processor 201; and a memory 202 that is communicatively connected to the at least one processor 201; wherein the memory 202 stores instructions that can be executed by the at least one processor 201, and the instructions are executed by the at least one processor 201 so that the at least one processor 201 can: obtain the data to be written off, and determine the dimensions corresponding to the data to be written off; based on the preset dimension weight table, determine the first dimension in the dimensions corresponding to the data to be written off, and assign preset weights to the first dimension; determine the unassigned second dimension in the data to be written off, and determine the weight values corresponding to the second dimension respectively based on the self-learning weight strategy; if the weight value detection passes, construct a distance function based on the data to be written off after the weight assignment; randomly select multiple data to be written off as centroids, and obtain clustered data to be written off based on the distance function and the centroid; determine the creditor's data and the debtor's data in the clustered data to be written off, match the creditor's data and the debtor's data, and write off the data to be written off based on the matching results.
[0060] A non-volatile computer storage medium provided in an embodiment of the present application stores computer executable instructions, wherein the computer executable instructions are configured to: obtain data to be written off, and determine the dimensions corresponding to the data to be written off; determine a first dimension in the dimensions corresponding to the data to be written off based on a preset dimension weight table, and assign a preset weight to the first dimension; determine an unassigned second dimension in the data to be written off, and determine the weight values corresponding to the second dimension based on a self-learning weight strategy; if the weight value detection passes, construct a distance function based on the data to be written off after the weight assignment; randomly select multiple data to be written off as centroids, and obtain clustered data to be written off based on the distance function and the centroid; determine the creditor data and debtor data in the clustered data to be written off, match the creditor data with the debtor data, and write off the data to be written off based on the matching result.
[0061] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0062] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various changes and variations. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims
1. A method for writing off creditor's rights and debtor's rights data, It is characterized in that The method comprises: Acquire the data to be written off, and determine the dimensions corresponding to the data to be written off; Based on a preset dimension weight table, a first dimension is determined from the dimensions corresponding to the data to be written off, and a preset weight is assigned to the first dimension; wherein the preset dimension weight table includes different dimensions and weights corresponding to different dimensions, and the dimension existing in the preset dimension weight table is used as the first dimension, and a preset weight is assigned to the first dimension according to the determined weight value; Based on the preset dimension weight table, before determining the first dimension in the dimensions corresponding to the data to be written off, the method further includes: Acquire a first label group corresponding to the data to be written off, and determine first tolerance data based on the first label group; wherein the first tolerance data is data in the data to be written off that does not belong to the first label group and whose similarity with the data corresponding to the first label group meets a similarity threshold; Based on the first label group, a corresponding second label group is determined in the preset dimension weight table, and second tolerance data is determined based on the second label group; wherein the second tolerance data is data in the data to be written off that does not belong to the data corresponding to the second label group and the similarity between the data and the data corresponding to the second label group meets the similarity threshold; The step of determining a first dimension from the dimensions corresponding to the data to be written off based on the preset dimension weight table and assigning a preset weight to the first dimension specifically includes: Comparing the first tolerance data with the second tolerance data to obtain reference tolerance data; Based on the reference tolerance data, determining a reference tag in a preset data dimension table, and adding the reference tag to the second tag group; Based on the second tag group, determining a weight value in the preset dimension weight table; Based on the second tag group, determining the first dimension from the dimensions corresponding to the data to be written off, and assigning a preset weight to the first dimension based on the determined weight value; Determining unvalued second dimensions in the data to be written off, and determining weight values corresponding to the second dimensions based on a self-learning weight strategy; Based on a preset dimension arrangement table, determining the importance arrangement corresponding to the first dimension and the second dimension, and determining the weight distribution interval corresponding to each dimension based on the importance arrangement; wherein the preset dimension arrangement table sets a weight distribution interval for each dimension according to the importance arrangement of the dimension; Comparing the weight values corresponding to the first dimension and the second dimension respectively with the weight distribution interval; If all the weight values belong to the corresponding weight distribution interval, the weight value detection passes; If there is at least one weight value that does not belong to the weight distribution interval, the weight value detection fails, and the weight value is reallocated; If the weight value detection passes, a distance function is constructed based on the data to be written off after the weight value is assigned; Randomly select a plurality of the data to be written off as centroids, and obtain clustered data to be written off based on the distance function and the centroids; Determine the creditor data and debtor data in the clustered data to be written off, match the creditor data with the debtor data, and write off the data to be written off based on the matching result.
2. A method for writing off credit and debt data according to claim 1, It is characterized in that The determining of the unvalued second dimension in the to-be-written-off data, and determining the weight values corresponding to the second dimension based on the self-learning weight strategy, specifically includes: According to the second dimension which has not been assigned a value, a plurality of creditor's rights and debtor's rights data samples are determined in a preset sample database; Randomly assigning weights to the multiple bond debt data samples, and performing clustering processing based on the assigned data samples to obtain clustering results; Performing multiple random weight assignments on the multiple bond debt data samples to obtain multiple clustering results; wherein the weight values of the multiple random weight assignments are all different; The plurality of clustering results are compared to determine an optimal weight value, and the optimal weight value is used as the weight value corresponding to each of the second dimensions.
3. A method for writing off credit and debt data according to claim 1, It is characterized in that The step of constructing a distance function based on the data to be written off after weight assignment specifically includes: Based on the weight value corresponding to the first dimension, a first value is assigned to the preset Euler function; And, based on the weight value corresponding to the second dimension, performing a second assignment on the preset Euler function; The sum of the weight values after the assignment is determined, and when the sum of the weight values is 1, the preset Euler function after the assignment is used as the distance function.
4. A method for writing off credit and debt data according to claim 1, It is characterized in that The randomly selecting a plurality of the to-be-written-off data as centroids, and obtaining clustered to-be-written-off data based on the distance function and the centroids, specifically includes: Randomly selecting a plurality of the data to be written off as centroids, and determining the distances between the plurality of the data to be written off and the centroids based on the distance function; Based on the distance, each of the to-be-written-off data is assigned to a cluster corresponding to the centroid closest to the distance; Re-determine the centroid of each cluster until a preset iteration condition is reached, and output a reference clustering result; Determine an average distance value between each of the to-be-written-off data in the current cluster and other to-be-written-off data in the current cluster; Determine the nearest cluster that does not contain the current data to be written off, and determine the minimum average distance value between the current data to be written off and the nearest cluster; The reference clustering result is tested based on the average distance value and the minimum average distance value. If the test passes, the clustered data to be written off is obtained based on the reference clustering result.
5. A method for writing off credit and debt data according to claim 1, It is characterized in that The determining of the creditor data and the debtor data in the clustered data to be written off, matching the creditor data with the debtor data, and writing off the data to be written off based on the matching result specifically includes: Based on the data information, matching the creditor data and the debtor data in the clustered data to be written off is performed; wherein the data information includes at least one of the contract information, transaction code, customer name and company name; When the amounts corresponding to the creditor data and the debtor data are consistent, establishing a write-off relationship between the creditor data and the debtor data; In the case where the amounts corresponding to the creditor data and the debtor data are inconsistent, if the amount corresponding to the creditor data is less than the amount corresponding to the debtor data, a sub-write-off task is established based on the amount corresponding to the debtor data.
6. A device for writing off creditor's rights and debtor's rights data, It is characterized in that The device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute the method according to any one of claims 1 to 5.
7. A non-volatile computer storage medium storing computer executable instructions, It is characterized in that The computer executable instructions can execute the method according to any one of claims 1 to 5.
