Financial data information extraction system and tax and profit forecasting system based on machine learning
Through the financial data information extraction system based on machine learning, the correlation matrix is generated and the LSTM network is used for tax and profit prediction, which solves the problems of large financial data redundancy and low computing efficiency, and improves data analysis efficiency and prediction accuracy.
Patent Information
- Application Number
- CN202410893580.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-04
AI Technical Summary
When processing huge financial data, existing technology has problems such as large data redundancy and low computing efficiency, which results in the need to frequently review the entire database during data analysis, reducing the efficiency of data analysis.
A financial data information extraction system based on machine learning is used to generate a fusion database and extract a correlation matrix through the financial data collection module, business data collection module, data cleaning module and data processing module to reduce redundant information and improve data analysis efficiency. The data processing module introduces time tags, calculates the correlation matrix, and uses the LSTM network to predict taxes and profits to enhance prediction accuracy.
By reducing the amount of data redundancy, it improves the operational efficiency of data analysis, enhances the accuracy of financial indicator forecasts, reduces the time spent by the data forecast module on processing redundant data, and improves the accuracy of tax and profit forecasts.
Smart Images

Figure CN118410461B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to an information extraction system for financial data and a tax and profit forecasting system based on machine learning. Background Art
[0002] In tobacco companies, financial data is a very large amount of data, containing a variety of information. Usually, financial data is collected for big data processing and a financial forecasting model is constructed. For example, Chinese patent CN117541411B discloses a method and system for constructing a financial forecasting model based on big data processing. When constructing a financial forecasting model, the patent directly collects all the historical financial data of the enterprise, and then inputs it into the forecasting model for training to complete the construction of the financial forecasting model.
[0003] However, the amount of historical data of an enterprise is huge, and there are many items of the same type of historical data. Therefore, when the data prediction model learns the correlation between data and data, it cannot directly obtain the correlation matrix of each historical data. Therefore, for each historical data, it is necessary to review the entire database area to obtain the correlation information between the currently read historical data and the remaining historical data. As a result, when analyzing financial data, the redundancy of historical data that needs to be processed is large, and the amount of data analysis calculations is large and the calculation efficiency is low. Therefore, how to reduce the redundancy of data, improve data analysis efficiency, and quickly extract the required information from the data when processing huge data is an urgent problem to be solved. Summary of the invention
[0004] The content of this application is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this application is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0005] As a first aspect of the present application, in order to solve the technical problems of large data redundancy and low computing efficiency when processing huge data, the present application provides an information extraction system for financial data based on machine learning, comprising:
[0006] The financial data collection module is used to collect each item of financial data and generate a corresponding serial number for each item of financial data;
[0007] Business data collection module, used to collect each business data;
[0008] The data cleaning module matches each business data with the financial data, so that each business data and financial data are recorded under the same serial number to generate fused data;
[0009] A data collection module collects each fusion data to obtain a fusion database;
[0010] The data processing module extracts the financial information matrix and the business information matrix from the fusion database, and extracts the correlation of each fusion data in the fusion database according to the time series to obtain the correlation matrix.
[0011] In the technical solution provided by the present application, when predicting financial indicators for a period of time in the future, the correlation of each fused data is extracted from the fusion database to obtain a correlation matrix. Therefore, the data processing module can merge the redundant information in the fusion database. In this way, when the correlation matrix is used for data analysis, the correlation matrix can be used to obtain the correlation between each fused data, avoiding the need to frequently review the fusion database. This reduces the amount of calculation for data analysis and increases data operation efficiency.
[0012] Furthermore, financial data includes expenditures and income; expenditures include fixed expenditures and variable expenditures;
[0013] The data class of the fused data is determined according to the classification of the financial data.
[0014] Directly collecting each fused data and then extracting information makes it difficult to find the relationship between the fused data and time, and thus it is impossible to find the relationship between the fused data. To address this problem, this application provides the following technical solutions:
[0015] Furthermore, the data cleaning module adds a corresponding time tag to each fused data.
[0016] In the technical solution provided in this application, time tags are introduced into the fused data, so the time of occurrence of each transaction can be determined, and then the total expenditure and total income in any time period can be counted according to needs, and then the intrinsic correlation between the fused data can be found.
[0017] Because there is a lack of connection between business data and financial data, it is difficult to capture the information when business information and financial information are associated together, which leads to inaccurate correlation matrix extracted. To address this problem, this application provides the following technical solutions:
[0018] Further, the data processing module includes: a financial data processing unit, a business data processing unit, and a correlation processing unit;
[0019] The financial data processing unit extracts the financial information matrix from the fusion database;
[0020] The business data processing unit extracts a business information matrix from the fusion database, and the serial numbers of the business data and the financial data at corresponding positions in the business information matrix and the financial information matrix are the same;
[0021] The relevance processing unit is connected to the fusion database signal and is used to calculate the relevance of each business data to obtain a relevance matrix of the business data.
[0022] In the technical solution provided in the present application, the data processing module will generate corresponding financial information matrix and business information matrix from the fused data, and the corresponding relationship between the two matrices is realized through serial numbers, so there is corresponding correlation information between the business information matrix and the financial information matrix. Therefore, when used for the prediction of subsequent financial indicators, the prediction model can find the correlation between the corresponding indicators more quickly.
[0023] Because business data is introduced, the accuracy of future financial indicator prediction can be increased. However, because too much information is introduced, the correlation between business data and fusion data cannot be found. To address this problem, this application provides the following technical solutions:
[0024] Furthermore, the association processing unit calculates the association matrix using the following steps:
[0025] S1: Read the time tag of each fusion data in the fusion database, and divide the fusion database into several sub-databases M according to the time interval sequence. 1 、M 2 ,…M i …;M 1 Indicates the first sub-database, M 2 Indicates the second sub-database, M i represents the i-th sub-database, i represents the index of the sub-database;
[0026] S2: Read each fusion data in the sub-database, and perform matrixing according to the data class of each fusion data to obtain a digital matrix M of the fusion database;
[0027] ;
[0028] Among them, m 1,1 is the first data type in the first sub-database, m 1,n is the nth data class in the first sub-database, where n represents the type of data class;
[0029] m k,1 is the first data type in the kth sub-database, m k,n is the nth data class in the kth sub-database, where k represents the number of sub-databases;
[0030] If the corresponding data class exists in the digital matrix M, it is recorded as 1, and if the corresponding data class does not exist, it is recorded as 0;
[0031] S3: Calculate the association L of each data class in the digital matrix M o ,
[0032] ; where o represents the index of the data class, i represents the index of the sub-database, and SL o Indicates the degree of association of the oth data class in all sub-databases;
[0033] S4: Connect any two columns in the digital matrix M to generate a new frequent candidate item set Q op , o and p are the indexes of the data classes respectively, o≠p;
[0034] ;
[0035] Calculate the relevance SQ of the connected frequent candidate item set op ;
[0036] ;
[0037] S5: Starting from the first data class, use the current front column vector to intersect with the subsequent vectors in turn to obtain a new vector to obtain the correlation matrix D;
[0038] .
[0039] In the technical solution provided by the present application, the data processing module will continuously calculate the correlation between data when performing subsequent processing on the collected data, so as to find the correlation between data in different time periods by using the size of the correlation. Then, by using the correlation of the data, the correlation between several data is strengthened to increase the accuracy of subsequent predictions.
[0040] As a second aspect of the present application, in order to solve the technical problems of large data redundancy and low computational efficiency of data analysis, the present application provides a tax and profit prediction system based on machine learning, including:
[0041] The aforementioned information extraction system for financial data based on machine learning is used to extract a correlation matrix, a financial information matrix, and a business information matrix from financial data and business data;
[0042] The data prediction module predicts the total income and total expenditure for a period of time in the future based on the correlation matrix, financial information matrix and business information matrix, and calculates the tax and profit for a period of time in the future based on the total income and total expenditure.
[0043] In the technical solution provided in the present application, when performing tax and profit forecasting, the extracted correlation matrix is used to reduce the time for the data prediction module to process redundant data and increase the calculation efficiency of the data prediction module.
[0044] The data prediction module includes a data aggregation unit, a data preprocessing unit, and an LSTM network processing unit;
[0045] The data aggregation unit obtains a relevance matrix, a financial information matrix, and a business information matrix from the relevance processing unit, the financial data processing unit, and the business data processing unit, respectively;
[0046] The data preprocessing unit is connected with the data aggregation unit signal to preprocess the correlation matrix, the business information matrix, and the financial information matrix;
[0047] The LSTM network processing unit is signal-connected to the data preprocessing unit. The preprocessed correlation matrix, business information matrix, and financial information matrix are input into the LSTM network processing unit. The LSTM network processing unit obtains the total income and total expenditure for a future period based on the long short-term memory neural network, and calculates the tax and profit for a future period based on the total income and total expenditure.
[0048] In the technical solution provided by the present application, when predicting taxes and profits for a period of time in the future, the correlation matrix, business information matrix and financial information matrix are input into the LSTM network model. The LSTM network model can capture the correlation information in the input data and comprehensively consider the total income and total expenditure in the future, thereby increasing the accuracy of tax and profit predictions.
[0049] The data preprocessing unit normalizes each item in the financial information matrix and the business information matrix to obtain a financial matrix and a business matrix.
[0050] In the technical solution provided in the present application, the information at corresponding positions in the financial matrix, business matrix, and correlation matrix corresponds to each other. After being input into the LSTM neural network model, the implicit relationship between the information can be well discovered, and the required financial indicators can be accurately calculated.
[0051] Furthermore, the LSTM network processing unit includes an input layer, an LSTM network layer, a fully connected neural network processing layer, and a regression layer;
[0052] Among them, the correlation matrix, financial matrix, and business matrix are input into the input layer, converted into sequence form by the input layer, and then input into the LSTM network layer to capture the long-term dependencies in the sequence in the LSTM network layer;
[0053] The output of the LSTM network layer at the last moment is passed to the fully connected neural network processing layer, which learns the long-term dependencies learned by the LSTM network layer.
[0054] After passing through the fully connected neural network processing layer, the data will pass through a regression layer, which will give the total income and total expenditure at the next moment, and calculate the tax and profit for a period of time in the future based on the total income and total expenditure.
[0055] There are a lot of disturbance data in financial data, which mainly come from some special expenditures. Therefore, after these disturbance data are input into the LSTM network processing unit, the final prediction results will be affected, resulting in low prediction accuracy. To address this problem, this application provides the following technical solutions:
[0056] Furthermore, the loss function EMA in the LSTM network processing unit introduces a VAT regularization parameter to increase the robustness of the model;
[0057] ;
[0058] Where N is the number of samples, y t is the true value of the financial indicator at time t, is the predicted value of the financial indicator at time t, represents the predicted output distribution under the conditions of input x and model parameters θ, Indicates that virtual adversarial noise r is added to the input x vat After that, the predicted output distribution of the LSTM network processing unit is, Represents the divergence or difference between two prediction distributions, measuring the instability of the model's predictions between the original input and the input with added noise;
[0059] r vat It is virtual adversarial noise, which is a disturbance in the direction that makes the model prediction most unstable, found through the optimization process; adding this noise can help the model enhance its robustness to input disturbances during training;
[0060] θ represents the model parameters, including the weights and biases of the LSTM network, and the weights and biases of the fully connected layers.
[0061] In the technical solution provided in this application, a VAT regularization parameter is introduced into the loss function, which increases the robustness of the LSTM network and reduces the impact of special data on prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The illustrative embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application.
[0063] In addition, throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the components and elements are not necessarily drawn to scale.
[0064] In the attached picture:
[0065] Figure 1 Schematic diagram of the structure of the information extraction system for financial data based on machine learning.
[0066] Figure 2 Schematic diagram of the data processing module and the data collection module.
[0067] Figure 3 This is a structural diagram of the tax and profit prediction system based on machine learning. DETAILED DESCRIPTION
[0068] Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms, and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0069] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other.
[0070] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments.
[0071] Example 1: Reference Figure 1 The information extraction system of financial data based on machine learning includes a financial data collection module, a business data collection module, a data cleaning module, a data collection module, and a data processing module. The data cleaning module is respectively connected to the financial data collection module and the business data collection module by signal, the data collection module is connected to the data cleaning module by signal, and the data collection module is connected to the data processing module by signal.
[0072] The financial data collection module is used to collect each item of financial data and generate a corresponding serial number for each item of financial data; the business data collection module is used to collect each item of business data.
[0073] Financial data includes income and expenditure. According to the company's operating conditions, financial data can be summarized as: fixed expenditure and variable expenditure. Therefore, expenditure includes fixed expenditure and variable expenditure. Income includes fixed income and variable income. Fixed income and fixed expenditure mainly refer to some monthly or daily fixed income and expenditure, which generally refer to the expenses that the company must spend during the operation, or the funds that can be recovered from certain leased assets. Correspondingly, variable income and variable expenditure mainly refer to income and expenditure related to the main business. For example, the more tobacco is sold, the higher the operating income will be, and the corresponding expenditure incurred for selling tobacco will also increase.
[0074] Therefore, financial data can be divided into expenditure and income, among which expenditure includes fixed expenditure and variable expenditure; income includes fixed income and variable income.
[0075] For example, the expenditure and income are classified as follows: fixed expenditure may include technology usage fees, handling fees, commodity losses, customs fees, fumigation fees, sample shipping fees, late reporting and port demurrage fees, wharf fees, office supplies, postage and telecommunications fees, printing fees, other office expenses, monopoly anti-counterfeiting funds, monopoly anti-smuggling funds, monopoly management fees, communication fees, book and newspaper fees, information system maintenance fees, network communication fees, association dues, etc.;
[0076] Variable expenditures may include labor costs, wages, employee benefits, social insurance premiums, housing provident funds, tobacco tax payable, government funds, interest income, water conservancy construction funds, river management fees, price adjustment funds, dike protection fees, employment security funds for the disabled, and other government funds;
[0077] Fixed income may include other operating income, etc.; variable income may include income from the main business of cigarettes, etc.
[0078] It should be noted that the above enumeration of financial data is an illustrative example. In practice, various expenditure items and various income items are not limited to the above enumeration. Each type of financial data listed above can be understood as a classification of financial data. When the financial data is subsequently used to generate fused data, the data class of the fused data is determined according to the classification of the financial data.
[0079] The serial number of financial data is a string of numbers generated according to preset rules or random rules. Each financial data corresponds to a unique serial number. Therefore, the corresponding financial data can be found using the serial number.
[0080] For example, if a labor fee of 100 yuan was paid in a certain month in 2020, the corresponding serial number could be 20201001x.
[0081] Business data is a more specific description of financial data. For example, if financial data shows that a labor fee was spent, the corresponding business data is a specific description of the labor fee. Business data and financial data are of the same type and have the same corresponding quantities.
[0082] For example, if the company's financial system spent 100 yuan in December 2020, the financial system will only record that 100 yuan was spent in December 2020. However, the specific purpose of the 100 yuan will not be recorded. In the business system, the 100 yuan will be recorded as labor costs. Therefore, financial data is the income and expenditure data of specific amounts, while business data is the reason for the generation of income and expenditure data.
[0083] Furthermore, the data cleaning module matches each business data with the financial data, so that each business data and financial data are recorded under the same serial number to generate fused data.
[0084] The specific examples of fused data are shown in the following table:
[0085] Table 1: Fusion data table:
[0086] .
[0087] The data cleaning module adds the corresponding time label to each fused data. After adding the time label, the fused data is as follows:
[0088] Table 2: Fusion data table with time tags added:
[0089] .
[0090] The data cleaning module calculates the total income and total expenditure of the corresponding time node in the fused data to obtain the label data.
[0091] For example, all the fused data from October 2022 to December 2022 generate a label data. The total income is calculated by adding up all the income from October 2022 to December 2022. For the total expenditure, all the expenditure from October 2022 to December 2022 is added up.
[0092] The data collection module is connected with the data cleaning module to collect and fuse the data to form a fusion database.
[0093] refer to Figure 2,Furthermore, the data processing module includes: a financial data processing unit, a business data processing unit, and a correlation processing unit. In detail, the financial data processing unit extracts a financial information matrix from the fusion database; the business data processing unit extracts a business information matrix from the fusion database, and the serial numbers of the business data and financial data at corresponding positions in the business information matrix and the financial information matrix are the same; the correlation processing unit is connected to the fusion database signal to calculate the correlation of each fusion data to obtain the correlation matrix.
[0094] The association processing unit calculates the association matrix using the following steps:
[0095] S1: Read the time tag of each fusion data in the fusion database, and divide the fusion database into several sub-databases M according to the time interval sequence. 1 、M 2 ,…M i …;M 1 Indicates the first sub-database, M 2 Indicates the second sub-database, M i Represents the i-th sub-database, and i represents the index of the sub-database.
[0096] The time label is generally related to the cycle of tobacco sales, such as 1 month or 1 quarter. In a cycle, the categories are basically the same as the annual financial data. In this solution, the types of data classes contained in each sub-database are the same, but the values of the data classes under the same category in each sub-database may be different. Each sub-database corresponds to a label data, which is the total income and total expenditure.
[0097] S2: Read each fusion data in the sub-database, and perform matrixing according to the data class of each fusion data to obtain a digital matrix M of the fusion database;
[0098] ;
[0099] Among them, m 1,1 is the first data type in the first sub-database, m 1,n is the nth data class in the first sub-database, where n represents the type of data class;
[0100] m k,1 is the first data type in the kth sub-database, m k,n is the nth data class in the kth sub-database, where k represents the number of sub-databases;
[0101] If the corresponding data class exists in the digital matrix M, it is recorded as 1, and if the corresponding data class does not exist, it is recorded as 0.
[0102] Because each sub-database is a collection of all fused data within a period, the types of data classes in each sub-database are basically the same. In this solution, in order to make each digital matrix correspond to each other, a complete matrix of data class arrangement is pre-set. Then, for each sub-database, the existence of the corresponding data class is recorded as 1, and the non-existence of the corresponding data class is recorded as 0. Therefore, in the digital matrix M, each row represents the distribution of the corresponding project class in a sub-database.
[0103] For example, the matrix arrangement of the pre-set data class arrangement is: labor fees, customs fees, tobacco fees, 3 items arranged in sequence. In the first sub-database, there are only labor fees and customs fees, but no tobacco fees. The digital matrix M corresponding to the first sub-database is (1, 1, 0).
[0104] In the financial information matrix and the business information matrix, the setting method of both is the same as that of the digital matrix. In fact, the financial information matrix is to modify the 0 and 1 of the corresponding position in the digital information matrix into specific financial values. And the business information matrix is to modify the financial values into corresponding names. For this reason, the specific method of the financial data processing unit and the business data processing unit to obtain the financial information matrix and the business information matrix is not described here.
[0105] S3: Calculate the correlation L of each data class in the digital matrix M o ,
[0106] ; where o represents the index of the data class, i represents the index of the sub-database, and L o Indicates the degree of association of the oth data class in all sub-databases;
[0107] S4: Connect any two columns in the digital matrix M to generate a new frequent candidate item set Q op , o and p are the indexes of the data classes respectively, o≠p;
[0108] ;
[0109] Calculate the relevance SQ of the connected frequent candidate item set op ;
[0110] ;
[0111] S5: Starting from the first data class, use the current front column vector to intersect with the subsequent vectors in turn to obtain a new vector to obtain the correlation matrix D;
[0112] .
[0113] Because in the above operation, we record the existing items as 1 and the non-existent items as 0, so through the cross multiplication operation, we can well reflect the frequently appearing data items in the fusion database, and then obtain the correlation matrix of various types of data for financial indicators.
[0114] The above is how to obtain the financial information matrix, business information matrix, and correlation matrix. The determinant of the financial information matrix and business information matrix is the same as the determinant of the digital matrix.
[0115] Embodiment 2: A tax and profit forecasting system based on machine learning, comprising: the aforementioned financial data information extraction system based on machine learning and a data forecasting module.
[0116] Among them, the information extraction system of financial data based on machine learning is used to extract correlation matrix, financial information matrix and business information matrix from financial data and business data.
[0117] The data prediction module predicts the total income and total expenditure for a period of time in the future based on the correlation matrix, financial information matrix and business information matrix, and calculates the tax and profit for a period of time in the future based on the total income and total expenditure.
[0118] refer to Figure 3 ,The data prediction module includes a data aggregation unit, a data preprocessing unit, and an LSTM network processing unit.
[0119] The data aggregation unit obtains the relevance matrix, the financial information matrix, and the business information matrix from the relevance processing unit, the financial data processing unit, and the business data processing unit, respectively.
[0120] The data preprocessing unit is connected with the data aggregation unit signal to preprocess the correlation matrix, the business information matrix and the financial information matrix.
[0121] Furthermore, the data preprocessing unit normalizes each item in the financial information matrix and the business information matrix to obtain a financial matrix and a business matrix.
[0122] Specifically, the preprocessing is mainly to normalize the values of each element in the financial information matrix to reduce the order of magnitude difference between the data. For the business information matrix, the text information needs to be converted into digital information. The specific conversion method is not described here. Generally, by configuring the encoder and decoder, the business information can be encoded through the encoder to obtain the corresponding code string, and then the business information matrix becomes a matrix composed of code strings, and the decoder is used to convert the code string into text information.
[0123] The LSTM network processing unit is signal-connected to the data preprocessing unit. The LSTM network processing unit obtains the correlation matrix, the business information matrix, and the financial information matrix. The LSTM network processing unit obtains the total income and total expenditure for a future period based on the long short-term memory neural network, and calculates the tax and profit for a future period based on the total income and total expenditure.
[0124] Specifically, the LSTM network processing unit includes an input layer, an LSTM network layer, a fully connected neural network processing layer, and a regression layer;
[0125] Among them, the correlation matrix, financial matrix, and business matrix are input into the input layer, converted into sequence form by the input layer, and then transmitted to the LSTM network layer, where the long-term dependencies in the sequence are captured;
[0126] The output of the LSTM network layer at the last moment is passed to the fully connected neural network processing layer. The fully connected neural network processing layer learns how to predict the total income and total expenditure at the next moment based on long-term dependencies.
[0127] After the fully connected neural network processing layer, the data will pass through a regression layer, which gives the total income and total expenditure at the next moment, and calculates the tax profit for the next period of time based on the total income and total expenditure. Tax profit can be calculated according to the following formula: income - expenditure - expenses + tax = tax profit. This formula is only used for simple mathematical calculations.
[0128] Furthermore, the loss function EMA in the LSTM network processing unit introduces a VAT regularization parameter to increase the robustness of the model;
[0129] ;
[0130] Where N is the number of samples, y t is the true value of the financial indicator at time t, is the predicted value of the financial indicator at time t, represents the predicted output distribution under the conditions of input x and model parameters θ, Indicates that virtual adversarial noise is added to the input x After that, the model's predicted output distribution is, Represents the divergence or difference between two prediction distributions, measuring the instability of the model's predictions between the original input and the input with added noise;
[0131] r vatis virtual adversarial noise, which is a disturbance in the direction that makes the model prediction most unstable, found through the optimization process; adding this noise can help the model enhance its robustness to input disturbances during training; θ represents the model parameters, including the weights and biases of the LSTM network, and the weights and biases of the fully connected layer.
[0132] The above description is only some preferred embodiments of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present application is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present application to form a technical solution.
Claims
1. An information extraction system for financial data based on machine learning, characterized in that: include: The financial data collection module is used to collect each item of financial data and generate a corresponding serial number for each item of financial data; Business data collection module, used to collect each business data; The data cleaning module matches each business data with the financial data, so that each business data and financial data are recorded under the same serial number to generate fused data; A data collection module collects each fusion data to obtain a fusion database; The data processing module extracts the financial information matrix and the business information matrix from the fusion database, and extracts the correlation of each fusion data in the fusion database according to the time series to obtain the correlation matrix; The data processing module includes: a financial data processing unit, a business data processing unit, and a correlation processing unit; The financial data processing unit extracts the financial information matrix from the fusion database; The business data processing unit extracts a business information matrix from the fusion database, and the serial numbers of the business data and the financial data at corresponding positions in the business information matrix and the financial information matrix are the same; The correlation processing unit is connected to the fusion database signal and is used to calculate the correlation of each business data to obtain the correlation matrix of the business data; The association processing unit calculates the association matrix using the following steps: S1: Read the time tag of each fusion data in the fusion database, and divide the fusion database into several sub-databases M1, M2, ...M according to the time interval sequence. i ...; M1 represents the first sub-database, M2 represents the second sub-database, M i represents the i-th sub-database, i represents the index of the sub-database; S2: Read each fusion data in the sub-database, and perform matrixing according to the data class of each fusion data to obtain a digital matrix M of the fusion database; ; Among them, m 1,1 is the first data type in the first sub-database, m 1,n is the nth data class in the first sub-database, where n represents the type of data class; m k,1 is the first data type in the kth sub-database, m k,n is the nth data class in the kth sub-database, where k represents the number of sub-databases; If the corresponding data class exists in the digital matrix M, it is recorded as 1, and if the corresponding data class does not exist, it is recorded as 0; S3: Calculate the association L of each data class in the digital matrix M o , ; where o represents the index of the data class, i represents the index of the sub-database, and SL o Indicates the degree of association of the oth data class in all sub-databases; S4: Connect any two columns in the digital matrix M to generate a new frequent candidate item set Q op , o and p are the indexes of the data classes respectively, o≠p; ; Calculate the relevance SQ of the connected frequent candidate item set op ; ; S5: Starting from the first data class, use the current front column vector to intersect with the subsequent vectors in turn to obtain a new vector to obtain the correlation matrix D; 。 2. The information extraction system for financial data based on machine learning according to claim 1, characterized in that: Financial data includes expenditure and income; The data class of the fused data is determined according to the classification of the financial data.
3. The information extraction system for financial data based on machine learning according to claim 1, characterized in that: The data cleaning module adds corresponding time tags to each fused data.
4. The tax and profit forecasting system based on machine learning is characterized by: include: The information extraction system for financial data based on machine learning as claimed in any one of claims 1 to 3, used to extract a correlation matrix, a financial information matrix and a business information matrix from financial data and business data; The data prediction module predicts the total income and total expenditure for a period of time in the future based on the correlation matrix, financial information matrix and business information matrix, and calculates the tax and profit for a period of time in the future based on the total income and total expenditure.
5. The tax and profit forecasting system based on machine learning according to claim 4 is characterized in that: The data prediction module includes a data aggregation unit, a data preprocessing unit, and an LSTM network processing unit; The data aggregation unit obtains a relevance matrix, a financial information matrix, and a business information matrix from the relevance processing unit, the financial data processing unit, and the business data processing unit, respectively; The data preprocessing unit is connected with the data aggregation unit signal to preprocess the correlation matrix, the business information matrix, and the financial information matrix; The LSTM network processing unit is signal-connected to the data preprocessing unit. The preprocessed correlation matrix, business information matrix, and financial information matrix are input into the LSTM network processing unit. The LSTM network processing unit obtains the total income and total expenditure for a future period based on the long short-term memory neural network, and calculates the tax and profit for a future period based on the total income and total expenditure.
6. The tax and profit forecasting system based on machine learning according to claim 5 is characterized in that: The data preprocessing unit normalizes each item in the financial information matrix and the business information matrix to obtain a financial matrix and a business matrix.
7. The tax and profit forecasting system based on machine learning according to claim 5 is characterized in that: The LSTM network processing unit includes an input layer, an LSTM network layer, a fully connected neural network processing layer, and a regression layer; Among them, the correlation matrix, financial matrix, and business matrix are input into the input layer, converted into sequence form by the input layer, and then input into the LSTM network layer to capture the long-term dependencies in the sequence in the LSTM network layer; The output of the LSTM network layer at the last moment is passed to the fully connected neural network processing layer, which learns the long-term dependencies learned by the LSTM network layer. After passing through the fully connected neural network processing layer, the data will pass through a regression layer, which will give the total income and total expenditure at the next moment, and calculate the tax and profit for a period of time in the future based on the total income and total expenditure.
