AI-Driven Transaction Management System
The method addresses the inefficiencies of traditional budgeting by aggregating, clustering, and using machine learning to automate expenditure data categorization, improving accuracy and reducing labor intensity across various sectors.
Patent Information
- Application Number
- JP2020005928
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-01-17
- Filing Date
- 2020-01-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-01-17
AI Technical Summary
Traditional budgeting methods, such as zero-based budgeting, require significant human effort and are not easily transferable across different industry sectors due to the need for detailed knowledge of specific datasets, leading to inaccurate categorization of expenditure data.
A method involving data aggregation, clustering, and machine learning to categorize expenditure data, which includes generating a cleaned data set (CDS) through natural language processing, clustering logs into groups, and using a hierarchical category structure with machine learning models to automate categorization, reducing the need for detailed prior knowledge of client practices.
This approach significantly reduces labor intensity and improves accuracy in categorizing expenditure data, allowing for faster processing and more transparent budgeting by minimizing manual effort and enhancing the transferability of models across different sectors.
Smart Images

Figure 0007570812000001 
Figure 0007570812000002 
Figure 0007570812000003
Abstract
Description
[Background technology]
[0001] Budgeting is a key aspect for organizations to bring transparency to costs and provide opportunities to improve the bottom line. Zero-Based Budgeting (ZBB) is a method of budgeting where budgets are effectively built from scratch, forcing reevaluation of expenses by cost owners. Budgets are generated through a survey of activities, using price and consumption levers to evaluate the company's spending requirements for the coming period, whether each budget is higher or lower than the previous period. ZBB ties budgets to respective expenditures for specific functions, locations, and business units, allowing top-level strategic goals to be driven through the budgeting process, and grouping costs allows strategic prioritization in a way that allows measurement against previous results and current expectations.
[0002]
[0002] Zero-based budgeting helps lower costs by avoiding typical budgeting pitfalls such as blanket increases or decreases to the previous period budget, but it is generally a time-consuming process that takes much longer than traditional cost-based budgeting. In some cases, organizations use transactional data to understand the true nature of price and consumption drivers and to understand which parts of spending have clear value and which parts are waste. In some cases, this may require thousands or millions of transactions to be sorted, classified, and categorized. Inaccurate classification by accounting, unorganized record keeping, inefficient storage, and other related issues with the underlying financial data make it difficult to review such drivers and accurately recategorize expenses. Traditional approaches require significant human effort to recategorize data, often requiring the work of hundreds of individuals to review transaction-level data and recategorize into relevant cost categories. However, human categorization can fall victim to larger problems, as knowledge of cost classifications by different individuals can result in highly opaque and non-repeatable categorizations. Some more recent approaches to assessing and classifying transaction-level data use machine learning techniques to supplement this manual effort. Even such approaches require detailed knowledge of specific data sets in order to categorize them accurately. While these approaches may be successful in reducing manual categorization of spend data, the models and systems for categorizing spend data are often highly specific to the client and the client's business. The models used to categorize data are generally not transferable to other clients, particularly those in different industry sectors. As a result, the accuracy of these models is generally insufficient. Summary of the Invention
[0003]
[0003] Various embodiments according to the present disclosure are described with reference to the drawings. [Brief description of the drawings]
[0004] [Figure 1A] FIG. 1A is a diagram illustrating an application interface for presenting categorized spending data and allowing a user to explore the spending data. [Figure 1B] FIG. 1B is a diagram illustrating an application interface for presenting categorized spending data and allowing a user to explore the spending data. [Figure 2A]
[0005] FIG. 2A is a diagram illustrating an example of a log or invoice that may be included in the raw spend data. [Figure 2B] FIG. 2B is a diagram illustrating an example of a log or invoice that may be included in the raw spend data. [Diagram 3]
[0006] FIG. 3 illustrates a term-occurrence matrix that may contain log vectors that describe the characteristics of individual logs. [Figure 4]
[0007] FIG. 4 is a dendrogram illustrating one way in which logs can be hierarchically clustered. [Diagram 5]
[0008] FIG. 5 is a diagram illustrating how expense logs are clustered and categorized. [Figure 6]
[0009] FIG. 6 illustrates aspects of a model that uses one or more machine learning techniques to predict categories of expense logs. [Figure 7]
[0010] FIG. 7 is a plot that provides an example of how spend data may be categorized during the base mapping, high-value tagging, and AI mapping phases of the method described herein. [Figure 8]
[0011] FIG. 8 is a diagram providing a method for categorizing spend data that may be used in some embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0005]
[0012] Systems and methods according to various embodiments of the present disclosure may overcome one or more of the above-mentioned and other problems experienced in conventional approaches for categorizing and analyzing data.
[0006]
[0013] In particular, various embodiments described herein provide methods for categorizing spend data that may include general ledger (GL), accounts payable (AP), purchase order (PO) information, including but not limited to transactions, invoices, spend receipts, supplier-based data sets, and other documented expenses, collectively referred to herein as spend logs (or simply logs). After collecting spend data from all relevant data systems and / or sources, the data is processed and aggregated to generate a clean data set (CDS). The CDS includes spend data that has been filtered to remove less significant information and / or processed to standardize information used for log categorization. In some cases, the CDS includes an organized structure that breaks down spend information by field type (e.g., total cost, vendor, transaction date, etc.). In some cases, standardizing the spend data involves applying natural language processing operations to text information associated with the log. The logs from the CDS are then clustered into groups based on the similarity of words, costs, dates, or other patterns and features to generate a new dataset of smaller size, i.e., a minimal data set (MDS). The MDS constitutes a group of logs that represent the same type of transaction (e.g., "taxi fare" and "Supplier A"). Based on the clustering operation, each log in the same cluster may be mapped to the same cost category.
[0007]
[0014] In some cases, the hierarchical category structure is at least partially determined by the clustered structure, and in some cases, the category structure is based on specific client needs. The logs are then tagged or categorized in stages, and one or more representative logs from each cluster are used to determine category information for each of the logs associated with that cluster. In a first stage, some of the logs or clusters are categorized by smart algorithms and predefined rules, for example, logs or clusters that contain client context information (e.g., account structure) that meet certain criteria can be automatically categorized. In a second stage, high-value clusters are selected and automatically categorized. In a third stage, a machine learning model is trained using the categorized spending data and used to automatically categorize the remaining uncategorized spending data. In some cases, Human-in-the-Loop (HITL) methods can be used to increase the accuracy of the categorization, which allows the algorithm to determine the quality of the model prediction performance. If quality is determined for a portion of the spend below a certain threshold, the algorithm adjusts model parameters or identifies additional logs to be manually categorized. The second and third stages are then repeated until 95% to 100% of the spend is categorized.
[0008]
[0015] Unlike conventional methods, the disclosed method can be applied even in the absence of prior detailed knowledge of the client's practice. For example, an extensive database of prior categorizations (e.g., supplier matching) is not required when using the disclosed method. Through the operations of generating an MDS of spend data, clustering logs corresponding to similar transactions, and requesting user categorization of high-value clusters, a suitable training set of data can be quickly obtained that is suitable for a training model and can then be used to automatically categorize the remaining logs with a high accuracy rate. By clustering the logs, the number of category decisions is significantly reduced, making the process faster and less resource intensive. The disclosed method can also be used in machine learning techniques to make the process less labor intensive and more accurate over time. These and other advantages will become apparent from the following description.
[0009]
[0016] FIG. 1A illustrates an application for displaying categorized spend data to a user, often referred to as a spend cube. In the illustrated interface 100, total costs 102 for various level 1 categories 104a are shown, along with visualizations 106 (graphs, charts, diagrams, etc.) to communicate a breakdown of the categorized spend data to the user. The interface may provide a number of selectable features to allow the user to explore the spend data, for example, to quickly understand the organization's spend over a user-selected period (e.g., one month, six months, one year, or any other selected period for which spend data is provided). The spend cube allows the user to understand how spend is distributed across and between organizational units of the company by providing transparency at the most granular level across all cost packages.
[0010]
[0017] FIG. 1B shows a screenshot 101 provided by the application showing a higher resolution view of the categorized expense data. Thus, more detailed analysis is possible than that shown in the screenshot of FIG. 1A. Additional detail is provided using a hierarchical category structure in which the various expense logs are categorized. In the illustrated interface, each of the level 1 categories 104a is composed of one or more level 2 categories 104b, and each of the level 2 categories is composed of one or more level 3 categories 104c. Although a three-tiered hierarchical structure is shown, there may be more or fewer tiers. In some cases, expense data may be searched or displayed based on one or more log or invoice categories that do not fit within the hierarchical category structure. This is done in the context of the expense categories 104a-104c. For example, the property expenses 108 of an international organization may be broken down by the countries in which the organization does business. In some cases, a user may filter the expense data based on expense logs that meet date criteria, location criteria, department criteria, or any other selected criteria that may be useful for categorizing the expense data. In other cases, a user may be able to search for expense data based on an alternative hierarchical category structure. For example, a user may be able to select an alternative hierarchical category structure to understand how costs are distributed among various organizational units of a company, such as business units, sub-business units, or regions, countries, etc.
[0011]
[0018] In some cases, the application may be used to calculate cost metrics based on the categorized expenditure data. In some cases, the application may provide recommendations or warnings to the user based on the expenditure data. For example, the application may warn the user that a particular expenditure category has been highly variable over the past budgeting period, and that the user or organization should plan accordingly or investigate sources of variability. Many software tools now known or later developed for displaying and further analyzing expenditure data may be used with the categorized data set generated by the methods disclosed herein. For the sake of brevity, known tools for displaying and analyzing such expenditure data will not be described in detail herein.
[0012]
[0019] As used herein, a client may be any organization, business, individual, group, or entity that maintains a log of business expenses (also referred to as client expenditures). In general, the methods disclosed herein may be performed by someone other than the client. However, this is not required. Typically, the data needs of the client are determined prior to categorizing the expenditure data. Determining the data needs may include, for example, determining how many levels of a hierarchical category structure will be used or what additional category logs will be associated. For example, a client may wish to categorize expenses by geographic location, date, associated personnel, etc. In some cases, the client may already be using a hierarchical category structure in which they would like to categorize their expense logs.
[0013]
[0020] In some cases, a more basic categorization of expense data (e.g., fewer layers of category structures) can be provided to the client at a lower cost. The preliminary stage of determining client requirements can also be used to determine or estimate the level of detail at which expense data can be categorized. For example, if a large portion of the client's expense records are incomplete or lack sufficient detail, the client can be advised on how the credibility of the results may be affected and at what level of detail (e.g., how many layers) the expense logs can be categorized. In some cases, this stage involves manual or automated review of client data, including income statements, general ledgers, AP and PO certified reconciliation reports. Typically, this is done to show the client the potential value of categorizing the entire expense. As experience has shown, it is at such a particularly granular level that significant potential savings are lost due to lack of expense transparency.
[0014]
[0021] After data requirements are determined, the raw expense data is aggregated. The raw expense data may include, for example, business expense invoices, paper and electronic copies of receipts, and other documents. In some cases, the raw expense data may need to be scanned and digitized from paper records. In some cases, the raw expense data may include invoices that have been scanned (e.g., JPEG, PDF, PNG images) but do not have searchable text. In some cases, expense logs may be in different languages. In such cases, text from the image data can be recognized using advanced optical character recognition (OCR) techniques. Depending on the quality of the client's records, data collection may include various migration, transaction, decryption, and encoding operations.
[0015]
[0022] When aggregating raw spend data, the logs are stored in a common database, referred to herein as a cost database. The cost database may be, for example, a Structured Query Language (SQL) database, or any other relational or non-relational database. The database may be aggregated in a single memory device, distributed across multiple storage devices, for example, stored in the cloud. In some cases, the cost database is used only to store logs for a single budgeting period. In some cases, the cost database may include logs from past pay periods, which may be saved for comparison.
[0016]
[0023] 2A and 2B show examples of logs that may be included in the turnover of a client's raw expense data. FIG. 2A shows an example of an invoice that is properly formatted to aid in the readability of the listed fields. In traditional automated or manual operations, clear formatting of the invoice can increase the likelihood that essential data fields are correctly identified. On the other hand, FIG. 2B shows an invoice that does not include formatting to aid in the recognition of expense data. The lack of formatting may be the result of machine translation or prior file type conversion. In some cases, logs may be generated from scratch without clear formatting. Expense logs such as those shown in FIG. 2B make it difficult for humans to identify relevant information. These invoices may also generate errors when computers are used to analyze the log data. Sometimes computers may combine text fields that should be separated, resulting in invalid or inconsistent analysis of expense data. For example, improper formatting may result in combining date fields with cost fields. Many formatting obstacles can be avoided by applying natural language processing (NLP) techniques to the log data. In some cases, NLP operations may be applied only to logs whose formatting prevents automated analysis. In some cases, NLP operations are applied to all logs to normalize the formatting of spend data.
[0017]
[0024] To speed up the classification and categorization of logs, cost data is first cleaned and preprocessed to generate a consolidated cleaned data set (CDS). The CDS contains clean, clearly descriptive expenditure data that is free of corrupt, duplicate, or uninformative data. Using the CDS as the basis for log classification can greatly improve the efficiency and speed of categorization, eliminating unnecessary information and unclear formatting that can impede a human or computer's ability to process log data quickly or accurately.
[0018]
[0025] The creation of a CDS may involve filtering to remove duplicate transaction data. Duplicate transaction data often occurs when invoice data is stored in multiple locations or multiple times within a client's records. Failure to identify these duplicate transactions may result in errors and require significant effort to correct after the fact. Even worse, failure to identify duplicates may result in poor budgeting if the budget is built on erroneous data. In some cases, identical or matching entries may be automatically determined and removed based on a comparison of text data for each log. In some cases, duplicate or matching logs may be identified and a user may be requested to verify that the logs are duplicates.
[0019]
[0026] In generating a clean data set, various out-of-scope transactions such as depreciation, amortization, and taxes can also be removed. In some cases, logs containing internal financial movements (e.g., accruals & reversals), "non-value" transactions, and corrupted data are removed. To verify that the CDS is accurate and does not contain out-of-scope or duplicate transactions, the total costs represented by the log data in the CDS are compared to the client's baseline values recorded, for example, in the income statement or trial balance for the corresponding period. If substantial discrepancies or inconsistencies are identified, the differences can be reconciled by correcting the identified errors in the logs or by adding additional logs to the cost database to account for transactions missing in the raw data. If the expenditure data in the CDS can be traced back to values shown in the income statement (or other equivalent financial statement), the subsequently categorized expenditure data can be trusted to accurately represent total expenditures.
[0020]
[0027] When generating the CDS, various natural language processing (NLP) steps are applied to the cost data to aid in the subsequent analysis of each transaction. These operations can help determine relevant keywords and relationships between transactions for clustering. Some of these NLP operations are: (1) conversion to lowercase text, (2) removal of duplicate words, (3) removal of punctuation, (4) removal of non-alphanumeric characters, (5) removal of numbers (possibly only from certain fields), (6) (possibly) removal of characters below a threshold (e.g., two letters), (7) removal of codes identified as combinations of letters and numbers, (8) translation into a single language (e.g., English), (9) lemmatizing words by converting them to their base dictionary form (e.g., "expenses" becomes "expense"), (10) removal of month names and abbreviations, (11) removal of stop words such as "for" and "the", (12) removal of city names, (13) removal of proper nouns and proper names, (14) replacement of supplier family names if there is no supplier field, and (15) full description. Examples of NLP operations include removing supplier names if they appear in the transaction description, (16) selecting keywords based on a predefined list or ad-hoc analysis such as their occurrence in one or more categories, (17) using informative scoring such as term frequency-inverse document frequency (TF-IDF), and (18) using machine learning models for named entity recognition. More or fewer NLP operations may be applied to each log. Additionally, some NLP operations may be applied only to certain fields or portions of a transaction. For example, in some cases, NLP operations are applied only to invoice description fields and not to fields such as supplier name and supplier contact.
[0021]
[0028] After generating and validating the CDS, one or more clustering algorithms are used to cluster the logs into groups based on their similarity to construct a Minimum Data Set (MDS). If similar enough, the logs are presumed to belong to the same category and are tagged together. This eliminates the need to individually evaluate and categorize multiple similar logs that would ultimately receive the same category designation. For example, if a cluster has 500 logs, all 500 cost logs are categorized together, not individually. This greatly reduces the effort required to categorize the logs in the cost database.
[0022]
[0029] During clustering, clean log data from the CDS is taken into account. In some embodiments, a log vector for each log is determined based on the associated text contained in the CDS. These log vectors are used to characterize the logs by the words found in the logs. As described above, the CDS includes text for each expense log that has been processed with one or more natural language processing operations. NLP operations performed on the text data include, for example, removing stop words such as "a," "the," or "in" that do not convey meaningful meaning, removing proper nouns, and reducing words to their base forms. The NLP operations help standardize the text between logs so that it can be easily compared for clustering purposes.
[0023]
[0030] In some cases, the cost database may include additional information not in the MDS. Such additional information may be referenced when the log cannot be categorized from the information in the MDS alone or to maintain detailed client records. The additional information may include, for example, all of the text associated with the invoice, or the arrangement and format of the text in the invoice. In some cases, aspects such as font text size and relative spacing are also characterized. In some cases, the additional data may include metadata from an electronic file, such as a PDF, associated with the invoice. Metadata information may include data such as a timestamp when the invoice was created, a user account associated with the creation of the invoice, location data associated with the invoice, or system data for the machine that created the electronic file. In some cases, an image of the invoice may be recorded. This additional information may be useful, for example, to relate the expense log to other expense logs in the cost database. In some cases, the additional information stored in the cost database may be accessed by a user through an application such as that shown in FIG. 1A, FIG. 1B. For example, a user may request an itemized list of transactions in a category and may be presented with a selection prompting for additional information for one or more logs to be displayed. Although provided as examples of "additional information," data related to those fields is stored in the MDS in some cases, such as when a field is identified as relevant for clustering or tagging log data.
[0024]
[0031] In some embodiments, a dictionary of terms can be created based on words and common phrases found in the MDS. In some cases, a term occurrence matrix 300 can be created, as shown in FIG. 3, having a log vector 302 and a term vector 304. The log vector can record various log features along multiple dimensions of the log. For example, the index of the log vector may provide a value indicating the number of occurrences of the term in the log, or some other feature (e.g., cost, transaction time, transaction location, etc.). The term vector 304 indicates, for a particular term, the number of occurrences of that term in each expense log. In some cases, the term vector may correspond to other features such as dollar amount, where tracking the index of the vector may identify the dollar amount of each log.
[0025]
[0032] In some cases, the term occurrence matrix can be simplified, for example, by removing term vectors that appear in a maximum threshold of the cost logs from the term occurrence matrix (e.g., terms that appear in more than 50%, 75%, or even 80% of the cost logs). Terms that appear in a large portion of the logs may not be meaningful for categorization purposes. In some cases, terms from the dictionary may be determined to be irrelevant for tagging, and the corresponding term vectors can be removed from the term occurrence matrix. In some cases, proper nouns and codes are replaced with appropriate classifications during NLP operations. For example, "New York" and "Berlin" may each be replaced with "city". Similarly, "06-24-2017" may be replaced with "date". In some embodiments, the term vectors may relate to dimensions other than the number of occurrences of words. For example, the values of the vectors may represent dimensional information such as text shown on an invoice, pattern information text data, when the invoice was created, etc. In some cases, a term vector can be removed from the term occurrence matrix if a corresponding term cannot be found in a maximum threshold of the cost logs.
[0026]
[0033] Clustering can take into account word similarities and patterns between expense logs. For example, recurrent purchases may use a unique set of words and data that can identify the item or service purchased, the vendor, the interval between regular purchases, etc. These patterns and similarities are reflected in the log vectors for the expense logs and used to group the logs based on a similarity measure.
[0027]
[0034] Additionally, machine learning models using word embedding techniques such as Word2Vec or GLOVE can be used to obtain other log features. Clustering can be done using these feature vectors using various distance metrics such as cosine similarity, Euclidean distance, or the specially designed Word Mover distance ("From Word Embedding To Document Distances", MJ Kusner, Y. Sun, NI Kolkin, KQ Weinberger, Proceedings of the 32nd International Conference on Machine Learning, 2015).
[0028]
[0035] In some embodiments, if the invoice description has sufficient length, Latent Dirichlet Allocation (LDA) can also be used as an unsupervised algorithm to discover topics in the invoice description. For each log, the output can represent the relative weight of each topic associated with the text description of the log. This output is then embedded into a log vector and provided as input features to a clustering algorithm.
[0029]
[0036] FIG. 4 is an exemplary representation of a hierarchical clustering structure 400 that can be used in accordance with various embodiments. In this example, we show one way in which eight logs (Log A to Log I) are clustered. Clusters can exist at multiple levels, from each cluster representing a single log to a single cluster 402 at the root level that includes all of the logs. A desired similarity threshold 404 (resulting in three clusters in this example) can be a selected parameter for the clustering operation. In some cases, if it is determined that a cluster contains logs in which distinct categories are represented, the cluster can be split into two or more sub-clusters that use each log vector of the logs in the cluster. Although FIG. 4 shows clusters arranged hierarchically, non-hierarchical clusters can also be used. Furthermore, more or fewer clusters may be created according to the type and variety of spending logs being analyzed.
[0030]
[0037] The final spend categories are structured in a hierarchical tree. In some embodiments, a dendrogram (cluster tree) such as that shown in FIG. 4 may at least partially reflect the spend category structure. In some cases, one or more categories may be suggested based on terms or other variables associated with the clusters. In some cases, the suggested category structure may be provided via an application interface with options for the user to edit the category names or category structure. For example, the user may be provided with options to assign tier numbers or options to combine or split categories.
[0031]
[0038] The process of hierarchical clustering includes, for example, recursively dividing the cost logs into clusters. In some embodiments, the log vectors may be clustered using connectivity-based clustering techniques, and in some cases, the log vectors are clustered using density-based clustering. In some embodiments, the log vectors may be clustered using traditional hierarchical k-means clustering techniques, such as Ward's method as introduced in Nister et al., "Scalable Recognition with a Vocabulary Tree," Proceedings of the Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2006, and Ward, JH, "Hierarchical Grouping to Optimize an Objective Function," Journal of the American Statistical Association, 1963, or the DBSCAN algorithm as introduced in Ester, M. et al., "A density-based algorithm for discovering clusters in large spatial databases with noise," Proceedings of the Second International Conference on Knowledge Discovery and Data Mining (KDD-96), 1996. In some embodiments, detailed industry knowledge can be used to adjust the similarity measure, for example by adding weighting factors to the clustering process, such as weighting some dimensions of the log vectors more than others. In some cases, the weights and weighting values may be selected manually, and in some embodiments the weights can be determined over time using various machine learning techniques. Various clustering techniques known in the art can be used to cluster the log vectors.
[0032]
[0039] If the logs are clustered into similar groups of logs with the same category designation, the effort of categorizing the spending data is significantly reduced. For example, if the cost database has 8,000,000 logs, their transactions can be grouped into fewer than about 500,000 clusters. In this example, the number of decisions required to categorize all of the logs can be reduced by about 1 / 16. In some cases, the clustering operation is used to group the logs into fewer than about 1 / 10 the number of logs, and in some cases, the logs into fewer than about 1 / 50 the number of logs. In some cases, the number of clusters used may depend on, for example, the resolution of the expense categorization desired by the client (e.g., how many layers of categorization are desired). The number of clusters may depend on the diversity of the client's spending activities (e.g., supplier diversity and expense types) and the level of granularity required for categorization.
[0033]
[0040] FIG. 5 illustrates the clustering and categorization of expense logs when a three-tier category hierarchy as shown in FIG. 1B is used. As explained in the context of a three-tier category hierarchy, the described process can be applied to other category structures as well. Block 500 illustrates an aggregated clean data set (CDS) of expense logs in a cost database. Depending on the client and the time period the logs represent, this can represent millions of expense logs. Clustering 502 the logs from the CDS results in a minimum data set (MDS) 512 composed of cluster groups 506, 508, and 510. After clustering, the log groups are analyzed by the account structure of each client from the profit and loss statement, general ledger, AP and PO certification reconciliation reports. Depending on the results of this analysis, the clusters are split into cluster groups 506, 508, and 510 to facilitate the categorization effort. The logs in block 504 represent logs that cannot be clustered normally due to missing data.
[0034]
[0041] Cluster group 510 includes clusters that have logs that all map to a single level 3 category in the category structure (i.e., are fully categorized). Each cluster in this group includes logs that share the same associated account structure from the income statement, general ledger, AP and PO certified reconciliation reports. In other words, the associated spend data in the MDS is sufficient to provide at least a level 3 categorization for each cluster with a high degree of confidence. Generally, the logs in group 510 represent the most complete logs of a client's spend data.
[0035]
[0042] Cluster group 508 represents clusters that may be collectively categorized into level 1 or level 2 categories, where at least some logs or their associated account structures lack sufficient detail to fit within categories defined at the second or third levels of the hierarchical category structure. In some cases, these categories may be located within the "unmapped" category at the second or third levels of the hierarchical category structure.
[0036]
[0043] Cluster group 506 represents clusters that contain logs that fit into different categories at the first, second or third levels of the hierarchical category structure. These clusters contain logs associated with more than one account structure. This may occur when the data relevant to the clustering is not detailed enough to distinguish categories at level 3 granularity. For example, referring to the hierarchical category structure of FIG. 1B, a cluster in this group may have some logs that should be categorized as "patents and trademarks" and some logs that should be categorized as "product development". Such a cluster may not represent an actual group of logs of the same expenditure type and may be split into sub-clusters using additional log context (such as account structure) so that all the expense logs of those sub-clusters are each included in a single level 3 category.
[0037]
[0044] Finally, the final group 504 includes logs that were not clustered due to lack or missing data that needs to be processed by the clustering algorithm. Some of those logs may be categorized by base mapping rules, as described in detail elsewhere. In some cases, some of those logs may be combined with logs from other clusters due to additional log context. This is performed using a machine learning algorithm using client context features. In some cases, these logs may be mapped by a user, for example, if the logs represent a significant portion of the client's spending. However, in general, most of the logs in group 504 are categorized using a trained model. The displayed sizes of groups 504, 506, 508, and 510 are provided merely as example percentages of the client's spending. Individual cluster groups may represent a larger or smaller percentage of the client's spending based on factors such as the quality of the spending data, the clustering technique used, and the number of clusters generated.
[0038]
[0045] After clustering, some clusters may be automatically categorized by a base mapping process 518. The base mapping may be based on rules tailored to trusted client categories. In some cases, these mapping rules may be generated by categorizing client spending during a prior budgeting period using the disclosed methods. In some cases, these base rules may be related to industry sectors or may be generic rules used by various clients. In some cases, these base rules may be based on specific account structures with straightforward Level 3 categorization qualities. In some cases, the base mapping rules may be provided by the client or determined based on aspects of the client's practice.
[0039]
[0046] As an example, the mapping rule may place the cluster under the "Airfare" category 110 (level 3 category in the hierarchical category structure in FIG. 1B), which includes logs with known keywords associated with this category, such as "flight" or "air", one or two city fields, one or two time fields, a flight code, and a known airfare supplier. These include a representative arrival city (and may be a departure city), arrival time (and may be a departure time), and flight code (e.g., two letters followed by one to four numbers) that may be listed on the airfare invoice. In some cases, the rule may also consider the cost associated with the log to see if it is within a price range that may be expected for the airfare cost. This pattern may be determined from each cluster matrix, which includes the log vectors of the logs in the matrix. For example, it may be determined that each log vector has a value of 1 or more for a dimension corresponding to the number of cities, a value of 1 or more for a dimension corresponding to the number of time fields listed on the invoice, a value of 1 for a dimension corresponding to the number of flight codes, and at least a value of 1 for a dimension corresponding to at least the known keywords and suppliers associated with the airfare category. In some cases, the base mapping rules can be significantly more complex, and often the base mapping rules can be very specific to reduce the chances that a log will be miscategorized by the base rules, but in some cases these base mapping rules may be relatively simple. For example, in some cases the rules may only depend on a single keyword or supplier associated with a cluster.
[0040]
[0047] After the base rule-based mapping operation, a subset of the remaining clusters that represent the high-value cluster group is automatically determined by the algorithm. The selection may be based on the total cost per cluster, the number of transactions in the cluster, and / or the association of each cluster to under- or over-represented categories to improve the machine learning model. The subset of high-value cluster groups may possibly represent between 30% and 60% of the total spend and may represent clusters from each of the cluster groups 504, 506, 508, and 510. These clusters are then manually categorized. For example, a representative log of the cluster may be provided to a user who determines a selection of how all of the logs in the cluster are categorized. In some cases, the representative log may be automatically determined, for example, by determining a log that represents the average or centroid of the cluster group. In some cases, the user may be requested to categorize some logs from the cluster. For example, if a cluster represents a sufficient percentage of total spending or if there is at least one clear dimension to decompose a cluster into two or more sub-clusters, the user may be required to verify that the logs represent sub-clusters that belong to the same category.
[0041]
[0048] In some cases, the high-value tagging process continues until a certain percentage of the total spend has been categorized and / or a threshold number of logs have been categorized into each category of the hierarchical category structure. In some cases, clusters may be selected from a distributed portion of the cluster tree to reduce the number of selections where a user is required to provide a threshold number of logs to be categorized into each category. This method follows the Human-in-the-Loop (HITL) principle, where predictions from models deemed insufficient are sent to a human for manual categorization.
[0042]
[0049] The clusters and logs, either manually tagged or mapped via base mapping rules, are used as a training set 522 to train a machine learning model. This model is used to categorize the remaining logs and clusters 514, also referred to as a predicted set 520. The predicted set of clusters represents a subset of the cluster groups 504, 506, and 508.
[0043]
[0050] FIG. 6 shows how a model 600 can be used to select appropriate categories for a prediction set of clusters. The model receives training data 522 that has been categorized by base mapping operation 518 and high value tagging 516. The training data is used to determine model parameters that are used to determine the category of a log or cluster based on associated data in the MDS. Once the model is trained and applied to prediction 520, it provides a category prediction 602. The sets 520 and 522 provide the model with a log vector for each log. In some embodiments, only a subset of the log data is provided to the model, and in some cases, additional spending data in a cost database can be provided to the model. In some cases, logs may be withdrawn from the training set during model calibration to balance the likelihood of learning categories (e.g., avoiding over-representation of certain categories).
[0044]
[0051] In some cases, it may become more evolving and accurate over time through the iterative process shown in FIG. 6. This iterative process is driven by automated quality and error analysis to improve the model. Also, further manual tagging may be performed on logs with poor category predictions. In operation 604, a model is designed. Designing the model may include, for example, selecting which features of the log vector are selected to use as input variables and which model type or structure is used. In some cases, the model may include one or more machine learning algorithms such as logistic regression models, linear discriminant analysis algorithms, classification and regression trees, Naive Bayes algorithms as introduced in "Tackling the Poor Assumption of Naive Bayes Text Classifiers", J. D. Rennie, L. Shih, J. Teevan, D. R. Karger, Proceedings of the 20th International Conference on Machine Learning, 2003, K-nearest neighbors algorithms, learning vector quantization algorithms, support vector machines, Bagging, Boosting, Random Forests, XGBoost, LightGBM algorithms, artificial neural quantization algorithms, etc. Although some examples are given herein in the context of deep learning or neural network models, other models or combinations of models well known to those skilled in the art may also be used.
[0045]
[0052] Examples of neural network models that may be used in some embodiments to predict the category of an individual log or a cluster of logs include Perceptron (P) networks, Feed Forward (FF) networks, Radial Basis Networks (RBF) networks, Deep Feed Forward (DFF) networks, Recurrent Neural Networks (RNN), Long / Short Term Memory (LSTM) networks, Gated Recurrent Unit (GRU) networks, Auto Encoder (AE) networks, Variational AE Networks (VAE), Denoising AE Networks (DAE), Sparse AE Networks (SAE), Markov Chain (MC) networks, Hopfield Networks (HN), Boltzmann Machine (BM) networks, Restricted BM Networks (BRM), Deep Belief Networks (DBN), Deep Convolutional Networks (DFC), Deep Convolutional Networks (DCM ... Networks (DCN), Deconvolutional Networks (DN), Deep Convolutional Inverse Graphics Networks (DCIGN), Generative Adversarial Networks (GAN), Liquid State Machine (LSM) networks, Extreme Learning Machine (ELM) networks, Echo State Networks (ESN), Deep Residual Networks (DRN), Kohonen Networks (KN), Support Vector Machine (SVM) networks, Neural Turing Machines (Neural TuringThe model may take any number of forms, including neural network topologies, neural network models, neural network algorithms, neural network models ...
[0046]
[0053] In operation 606, the model is trained using the training dataset. The training includes any number of machine learning techniques known to those skilled in the art. For example, the model can be generated and trained in Python using the scikit-learn toolkit, or can be trained using libraries such as TensorFlow, Keras, MLib, gensim, etc. During training, the parameters of the model are learned by a machine learning algorithm from a categorized training set, and various model hyperparameters can be determined and / or optimized by using different techniques such as grid search, cross-validation, and Bayesian optimization to increase a selected metric of the model.
[0047]
[0054] In operation 608, a quality and error analysis of the model is performed automatically. In some cases, the quality and error analysis may be performed after the prediction set 520 is categorized to verify that the logs are accurately mapped. In some cases, the quality and error analysis may be performed periodically or continuously during the categorization of the prediction set 520. If the model is determined to have predicted the wrong category, the model may be updated by modifying the model design 604. There may be automatic tuning of hyperparameters associated with a given category 606 (e.g., false-positive predictions are detected). Alternatively, additional manual tagging 614 for a particular category may be performed.
[0048]
[0055] There are many manual and automated ways to check that the model 600 can be verified for prediction quality. For example, the predicted categories can be matched against the expected spending distribution for each category based on the client's account structure. There are several other distribution calculations that can be used as a combination of keyword frequency distribution, item cost distribution, etc. Additionally, a test subset of the training set can be used to get a good measure of the selected metric (e.g., accuracy rate, weighted accuracy, precision, or recall). Training on the test subset can be used to compare the automatic predictions with the actual tagging, and to characterize the error in each category in terms of a log vector. In some cases, the logs can provide a confidence metric for each category prediction. In some cases, a confusion matrix can characterize the error by comparing the predictions with the actual categories (such as false positives or false negatives).
[0049]
[0056] In some cases, the user may be required to verify the determined category for the log if the associated trust metric falls below a threshold. In some cases, the total spend value in a category may be checked as a sanity check. In some cases, if the spend value for a particular category exceeds a predetermined range (e.g., defined as a percentage of total spend), the user may be warned or required to spot check the logs and clusters assigned to that category.
[0050]
[0057] If the confidence metric of the prediction is deemed insufficient, e.g., below a certain threshold, in operation 608, the machine learning algorithm can adjust model hyperparameters or identify additional logs that are manually categorized. In the case of a false positive prediction, if it is determined that the model has incorrectly predicted logs in one category (e.g., the spending for one category is determined to significantly exceed the expected value), the model design and tuning parameters can be adjusted 612 to correct the error. In some cases, the model can be adjusted to get closer to the expected distribution by adjusting the machine learning weights. In some cases, fine-tuning other model parameters can result in a reduction in false positives.
[0051]
[0058] A false negative prediction indicates a situation where the model fails to place a log in the appropriate category. In some cases, the confusion matrix can be used to identify logs that have been or may have been mispredicted by the machine learning model. Those identified logs can be provided to a user to accurately tag the category of the log. The manually tagged logs can be added to the categorized training set 522 and used to further train the model, and in some cases, the design of the model can be modified.
[0052]
[0059] Categorization predictions that exceed a certain threshold of the confidence metric are considered to be categorized in operation 602. For all other log clusters, the cycle of model design, tuning, quality and error analysis is repeated iteratively until, for example, 95%-100% of the spends are categorized.
[0060] 7 shows a diagram 700 illustrating how spend data may be categorized during the mapping steps illustrated herein. This diagram is exemplary and embodiments may include additional steps or have fewer steps. In some embodiments, what is illustrated may overlap, such as when base mapping and high value tagging occur simultaneously.
[0053]
[0061] In step 702, raw spend data is received from clients and aggregated into a cost database. As described, this may include operations such as digitizing and / or recognizing text in documents, combining data fields, converting to a standardized target schema, and reconciliation of negative and out-of-range spend. The data is then aggregated and cleaned (e.g., corrupted, duplicate logs are removed), and various natural language processing operations are applied to text recognition resulting in an aggregated clean data set (CDS). In step 704, a minimal data set (MDS) is generated using various clustering techniques on the CDS multi-dimensional logs. In operation 706, base mapping rules are applied to automatically map the logs into level 3 cost categories. In some cases, this step results in categorization of approximately 10%-20% of the total spend. In some cases, a higher percentage of the total spend may be tagged during this step if detailed knowledge of the client's practices is known and the disclosed categorization process has been performed for the preceding budgeting period.
[0054]
[0062] After the base mapping stage, the high value clusters are manually tagged in operation 708. As explained, this may include requesting a user, such as an accountant, to manually tag one or more logs from each high value cluster. At the end of the high value tagging stage, a large portion of the total expenditures is considered, although not necessary in all circumstances. Finally, in a final stage 710, the logs corresponding to the remaining expenditures are categorized using a machine learning model. The model may be trained using logs categorized in previous stages, logs categorized during a previous budgeting period, and possibly using a pre-trained model based on categorization for other clients in the same industry. In some cases, at the end of stage 710, more than 95% of the expenditure data may be categorized into level 3 categories of the hierarchical category structure. To achieve high levels of categorized logs with high quality and confidence, a process called human-in-the-loop is used. This process builds on the concept of "active learning", which is a special case of semi-supervised machine learning. In some cases, the automated algorithm can determine model performance for a category below a certain threshold. In some cases, following the analysis, the model can auto-tune model hyperparameters or select specific logs or clusters to be manually tagged by human experts. After such action changes are fed back into the system, the model is run again along with performance analysis until 95%-100% of the spend is categorized at level 3.
[0055]
[0063] FIG. 8 illustrates a method 800 that can be used to classify and categorize spending data. The processes described herein and other processes may include additional, fewer, or alternative steps performed within the scope of various embodiments unless otherwise noted. In operation 802, raw spending data is received from a client. This includes receiving receipts, invoices, and other documents related to costs incurred. As the data is received, it is aggregated into a single data set or database, such as an SQL database. This operation may include, for example, digitizing and recognizing text associated with the expense log, combining data fields, modifying to a standardized target schema, and adjusting negative and out-of-range spending. In operation 804, an aggregated clean data set (CDS) is generated. As described elsewhere, generating a CDS involves various natural language processing operations used to remove data deemed unnecessary or unhelpful for clustering and categorization. Data that is not removed is cleaned to improve the analysis used for clustering and categorization. For example, each word associated with the log may be replaced with a base dictionary form. In operation 806, the CDS logs are clustered to generate an MDS. The MDS includes groups of logs resulting from transactions of the same nature that should belong to the same spending category. The clustering method is tailored to each application case, taking into account the available data and the required granularity level of the clusters. Generating an MDS can reduce the computation required to cluster the logs and predict categories of spending data.
[0056]
[0064] Following the clustering operation, the expense logs may be categorized (or tagged) into clusters. For example, a log representative of an MDS cluster may be categorized such that each of the other logs in the same cluster is given the same category designation. Categorizing logs at the cluster level, rather than categorizing each log individually, dynamically reduces the number of category decisions required and shortens the time to categorize a client's spending data. A first mapping operation 808 corresponds to categorizing logs and clusters according to whether they satisfy a set of predefined rules. Typically, these rules are very specific such that logs are rarely, if ever, incorrectly categorized.
[0057]
[0065] A high-value tagging operation 810 is then performed on cluster groups or on a number of logs in a cluster that represent a relatively high percentage of the total spend, or associated with an under-represented category. The classification in operation 810 is performed manually by trained personnel. Since human selection is the gold standard for categorization accuracy, the accounts are focused on categorizing high-value clusters, as those decisions represent a more substantial portion of the total spend. In some cases, high-value tagging may include requesting a user to appropriately categorize a representative invoice from each of a set of high-value clusters. Upon receiving the user's category selection for the representative log, each of the other logs in the cluster may be given the same category designation. In some cases, such as when it is determined that a cluster can be easily sub-divided along one or more dimensions, the user may be requested to categorize multiple representative logs from each cluster. If the user categorizes representative logs from the same cluster into discrete categories, the cluster may be split into subcategories categorized using the discrete category selections provided by the user.
[0058]
[0066] Following the base mapping and high-value tagging operations, a model is generated and trained 812 using the logs classified in the preceding tagging operations. The trained model is then used to categorize the remaining logs in operation 814. In some cases, the model may be used to categorize the remaining clusters, and in some cases, the model may be used to categorize the remaining logs individually. In some cases, the model may be used to automatically categorize the remaining logs based on the associated log vectors.
[0059]
[0067] In operation 816, the categories predicted using the model are validated. Validation can be an automated process that can look for unexpected trends in spending categorization or violations of base mapping rules. In some cases, if the spending category value exceeds the expected value due to the category prediction by the model, the user may be requested to verify the category prediction provided by the model. For example, if the category exceeds the expected budget by an amount corresponding to the cluster assigned to the category by the model, the user may be requested to determine whether the particular cluster was correctly categorized. Additional user input can be, for example, a HITL iterative process, similar to that requested from the user in operation 810. If the categorization is corrected by the user, this information can be used for further training of the model in operation 812. In some cases, each log categorized using the trained model may be recategorized if the model is updated or retrained as described elsewhere. In operation 818, it is determined whether all logs have been categorized. In some cases, all or a substantial portion of the logs must meet a predefined confidence threshold to complete the process. If some logs have not yet been categorized, the process returns to operation 814. When all logs have been categorized or when only the remaining logs have insufficient information to be given any category designation, the process is complete 820. If there are any remaining logs with insufficient information, they may be presented to the user to determine an appropriate category designation.
[0060]
[0068] After all logs are assigned to categories, the categorized spending data is provided to the client. In some cases, the categorized data may be added to a cost database and provided to the client. If the client is using an application such as that shown in FIG. 1B to explore the categorized data, the client may have access to certain log information, such as text contained in the invoice or invoice image. In some cases, the client application such as that shown in FIGS. 1A and 1B may provide the user with options to correct miscategorized data or edit the hierarchical category structure. In some cases, this information may be anonymized, sanitized, and used to generate model weights for other clients in the future (e.g., other clients in the same business sector). In some cases, the base mapping rules may be updated so that items are categorized with better accuracy rates for future budgeting periods or other clients. Any information that is stored or used to improve mapping categorization for other clients is anonymized and sanitized so that there is no possibility of tracing sensitive information back to the client. Using an artificial neural network, this may be done by removing certain layers of the model.
[0061]
[0069] Although the above examples are provided in the context of categorizing expenditure data, the disclosed method may be applicable to organize various data sets into a hierarchical category structure. The disclosed method may provide advantages over other categorization methods in situations where a significant amount of data needs to be sorted, where there are few pre-established rules for sorting the data, and where, for example, the goal of categorization is to determine patterns in the data. In the context of ZBB, the described method is primarily used for indirect expenditures, marketing and sales. It can also be used for other cost types such as raw materials and supply chain. Also, expenditure data can include operational expenditures (OPEX) as well as capital expenditures (CAPEX).
[0062]
[0070] The operations of method 800 are implemented using software, and thus one of the preferred implementations of the invention is as a set of instructions (program code) in a code module resident in a random access memory of a computer. Until required by the computer, the set of instructions may be stored in another computer memory, for example a hard disk drive, or a removable memory such as an optical disk (for eventual use in a CD ROM) or a floppy disk (for eventual use in a floppy disk drive), or downloaded via the Internet or some other computer network. Furthermore, while the various methods described are conveniently implemented in a general-purpose computer selectively activated or reconfigured by software, those skilled in the art will also recognize that such methods may be performed in hardware, firmware, or more specialized apparatus constructed to perform the specified method steps.
[0063]
[0071] While various embodiments have been described above, it should be understood that they have been presented by way of example and not limitation. It will be apparent to those skilled in the art that various changes in form and detail can be made without departing from the spirit and scope of the invention. Indeed, after reading the above description, it will be apparent to those skilled in the art how to implement alternative embodiments.
[0064]
[0072] Moreover, it should be understood that any diagrams highlighting functionality and advantages are presented by way of example only, and that each of the disclosed methods and systems is sufficiently flexible and configurable such that it may be utilized in ways other than those illustrated. The invention as described in the claims of the original application is set forth below. [C1] 1. A computer-implemented method for processing transaction records, comprising: Receiving transaction data; and generating a clean dataset (CDS) based on the transaction data, the CDS comprising logs for a plurality of transactions, wherein each log is associated with text that has been processed, at least in part, using natural language processing (NLP); clustering at least a subset of the logs from the CDS based at least in part on the associated text and a similarity threshold, where clustering produces a set of clusters; identifying a particular subset of the set of clusters; and receiving a user determination of a transaction type for a representative log for each cluster of the particular subset, where the received transaction type is associated with each log of each of the clusters; training a predictive model using logs from the particular subset of clusters and the associated transaction types; using the predictive model to determine transaction types for logs in the CDS that have not yet been associated with a transaction type; generating a transaction report, the transaction report comprising a plurality of calculated parameters determined at least in part based on a transaction type associated with the log. Computer-implemented method. [C2] identifying an additional subset of the set of clusters; and determining transaction types associated with the logs of the additional subset of clusters using a set of base mapping rules; wherein training the predictive model further comprises training the model using the logs from the additional subset and the associated transaction type. The computer-implemented method of claim 1. [C3] identifying the particular subset of clusters comprises selecting clusters for the subset based at least in part on a transaction value associated with each cluster. The computer-implemented method of claim 1. [C4] identifying the particular subset of the set of clusters comprises selecting clusters based at least in part on a distance metric between each cluster in the subset. The computer-implemented method of claim 1. [C5] generating the CDS comprises removing outlying or duplicate logs; The computer-implemented method of claim 1. [C6] 1. A computer-implemented method for processing transaction records, comprising: receiving transaction data comprising a plurality of logs, the logs having associated text; clustering at least a subset of the logs based on the associated text and a similarity threshold, where clustering produces a set of clusters; receiving a user determination of a transaction type for each of a particular subset of the set of clusters, wherein the received transaction type is associated with a respective log of each of the clusters; training a predictive model using logs from the particular subset of clusters and the associated transaction types; predicting a transaction type for an additional log using the predictive model; Equipped with Computer-implemented method. [C7] identifying an additional subset of the set of clusters; and determining transaction types associated with the logs of the additional subset of clusters using a set of base mapping rules; wherein training the predictive model further comprises training the model using the logs from the additional subset and the associated transaction type. 5. The computer-implemented method of claim 4, wherein the computer implements [C8] generating a clean dataset (CDS) of logs from the transaction data, where generating the CDS comprises processing at least a portion of the text associated with the logs using natural language processing (NLP). 5. The computer-implemented method of claim 4, wherein the computer implements [C9] generating the CDS comprises removing outlying or overlapping logs from the plurality of logs. 9. The computer-implemented method of claim 8, [C10] providing for displaying a representative log for the particular subset of clusters prior to receiving each of the user determinations of the transaction type for the cluster. 5. The computer-implemented method of claim 4, wherein the computer implements [C11] providing two representative logs for said particular subset of clusters for display; receiving different user decisions of the transaction type for the two representative logs; dividing the clusters based at least in part on the different user decisions regarding the transaction types for the two representative logs; Further comprising: 5. The computer-implemented method of claim 4, wherein the computer implements [C12] and validating the type of prediction provided by the trained predictive model using human-in-the-loop methods. 5. The computer-implemented method of claim 4, wherein the computer implements [C13] identifying the particular subset of clusters comprises selecting clusters for the subset based at least in part on a transaction value associated with each cluster. 5. The computer-implemented method of claim 4, wherein the computer implements [C14] performing an automated quality and error analysis of the transaction types predicted by the predictive model; modifying at least one model parameter based on said quality and error analysis; Further comprising: 5. The computer-implemented method of claim 4, wherein the computer implements [C15] performing an automated quality and error analysis of the transaction types predicted by the predictive model; identifying one or more logs for manual tagging based on said quality and error analysis; receiving a user determination of a transaction type for the one or more logs; Further comprising: 5. The computer-implemented method of claim 4, wherein the computer implements [C16] training the predictive model using the one or more logs and the associated transaction types. 5. The computer-implemented method of claim 4, wherein the computer implements [C17] predicting a transaction type for the additional log results in a log associated with more than 95% of the multiple logs. 5. The computer-implemented method of claim 4, wherein the computer implements [C18] using the trained model to predict a transaction type for a log from another set of transaction data. 5. The computer-implemented method of claim 4, wherein the computer implements [C19] 1. A non-transitory computer-readable storage medium storing instructions for processing transaction records, the instructions, when executed by a processor, causing the processor to: receiving transaction data comprising a plurality of logs, the logs having associated text; clustering at least a subset of the logs based on the associated text and a similarity threshold, where clustering produces a set of clusters; receiving a user determination of a transaction type for each of a particular subset of the set of clusters, wherein the received transaction type is associated with a respective log of each of the clusters; training a predictive model using logs from the particular subset of clusters and the associated transaction types; predicting a transaction type for an additional log using the predictive model; Execute the A non-transitory computer-readable storage medium. [C20] When executed by the processor, the processor: identifying an additional subset of the set of clusters and determining transaction types associated with the logs of the additional subset of clusters using a set of base mapping rules; training the predictive model using the logs from the additional subset and the associated transaction types; and further comprising instructions to execute: A non-transitory computer-readable storage medium as described in C19.
Claims
1. 1. A computer-implemented method for processing transaction records, comprising: Receiving transaction data; and generating a clean dataset (CDS) based on the transaction data, the CDS comprising logs for a plurality of transactions, wherein each log is associated with text that has been processed, at least in part, using natural language processing (NLP); clustering at least a subset of the logs from the CDS based at least in part on the associated text and a similarity threshold, where clustering produces a set of clusters; identifying a particular subset of the set of clusters; and receiving a user determination of a transaction type for a representative log for each cluster of the particular subset, where the received transaction type is associated with each log of each of the clusters; training a predictive model using logs from the particular subset of clusters and the associated transaction types; using the predictive model to determine transaction types for logs in the CDS that have not yet been associated with a transaction type; generating a transaction report, the transaction report comprising a plurality of calculated parameters determined at least in part based on a transaction type associated with the log. Computer-implemented method.
2. identifying an additional subset of the set of clusters; and determining transaction types associated with the logs of the additional subset of clusters using a base mapping rule; wherein training the predictive model further comprises training the model using the logs from the additional subset and the associated transaction type.
10. The computer-implemented method of claim 1.
3. identifying the particular subset of clusters comprises selecting clusters for the subset based at least in part on a number of transactions associated with each cluster.
10. The computer-implemented method of claim 1.
4. The clustering further comprises at least in part using a distance metric.
10. The computer-implemented method of claim 1.
5. generating the CDS comprises removing duplicate logs.
10. The computer-implemented method of claim 1.
6. 1. A computer-implemented method for processing transaction records, comprising: receiving transaction data comprising a plurality of logs, the logs having associated text; clustering at least a subset of the logs based on the associated text and a similarity threshold, where clustering produces a set of clusters; receiving a user determination of a transaction type for each of a particular subset of the set of clusters, wherein the received transaction type is associated with a respective log of each of the clusters; training a predictive model using logs from the particular subset of clusters and the associated transaction types; using the predictive model to predict transaction types for logs not yet associated with the transaction type; Equipped with Computer-implemented method.
7. identifying an additional subset of the set of clusters; and determining transaction types associated with the logs of the additional subset of clusters using a base mapping rule; wherein training the predictive model further comprises training the model using the logs from the additional subset and the associated transaction type.
7. The computer-implemented method of claim 6.
8. generating a log clean data set (CDS) from the transaction data, where generating the CDS comprises processing at least a portion of the text associated with the log using natural language processing (NLP).
7. The computer-implemented method of claim 6.
9. generating the CDS comprises removing duplicate logs from the plurality of logs.
9. The computer-implemented method of claim 8.
10. providing a representative log for the particular subset of clusters for display to a user prior to receiving each of the user determinations of the transaction type for the cluster.
7. The computer-implemented method of claim 6.
11. providing two representative logs for said particular subset of clusters for display; receiving different user decisions of the transaction type for the two representative logs; dividing the clusters based at least in part on the different user decisions regarding the transaction types for the two representative logs; Further comprising:
7. The computer-implemented method of claim 6.
12. and validating the transaction type provided by the trained predictive model using a human-in-the-loop method.
7. The computer-implemented method of claim 6.
13. identifying the particular subset of clusters comprises selecting clusters for the subset based at least in part on a number of transactions associated with each cluster.
7. The computer-implemented method of claim 6.
14. performing an automated quality and error analysis of the transaction types predicted by the predictive model; modifying at least one model parameter based on said quality and error analysis; Further comprising:
7. The computer-implemented method of claim 6.
15. performing an automated quality and error analysis of the transaction types predicted by the predictive model; identifying one or more logs for manual tagging based on the quality and error analysis; receiving a user determination of a transaction type for the one or more logs; Further comprising:
7. The computer-implemented method of claim 6.
16. training the predictive model using the one or more logs and the associated transaction types.
16. The computer-implemented method of claim 15.
17. predicting a transaction type for logs not yet associated with the transaction type results in a log being associated with more than 95% of the plurality of logs.
7. The computer-implemented method of claim 6.
18. using the trained model to predict a transaction type for a log from another set of transaction data.
7. The computer-implemented method of claim 6.
19. 1. A non-transitory computer-readable storage medium storing instructions for processing transaction records, the instructions, when executed by a processor, causing the processor to: receiving transaction data comprising a plurality of logs, the logs having associated text; clustering at least a subset of the logs based on the associated text and a similarity threshold, where clustering produces a set of clusters; receiving a user determination of a transaction type for each of a particular subset of the set of clusters, wherein the received transaction type is associated with a respective log of each of the clusters; training a predictive model using logs from the particular subset of clusters and the associated transaction types; using the predictive model to predict transaction types for logs not yet associated with the transaction type; Execute the A non-transitory computer-readable storage medium.
20. When executed by the processor, the processor: identifying an additional subset of the set of clusters and using a base mapping rule to determine transaction types associated with the logs of the additional subset of clusters; training the predictive model using the logs from the additional subset and the associated transaction types; and further comprising instructions to execute:
20. The non-transitory computer-readable storage medium of claim 19.
Citation Information
Patent Citations
Method and system for cleansing and de-duplicating data
US20170308557A1
