Financial statement automatic generation system and generation method thereof
Through convolution index and differential entropy analysis, the index reuse of financial data features is realized, which solves the problems of low efficiency and high index cost in traditional methods, and improves the efficiency and accuracy of financial statement generation.
Patent Information
- Application Number
- CN202411295094.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-09-15
AI Technical Summary
Traditional financial statement generation methods are inefficient when processing complex and large-scale financial data, resulting in a waste of computing resources and high indexing costs. They also lack reuse capabilities and are difficult to respond to data needs quickly.
Through convolution index and differential entropy analysis, the index structure characteristics of asset metadata are obtained, the reuse convolution operation is performed, the index granularity and index cost are determined, the index reuse of financial data characteristics is realized, and financial asset reports are generated.
It reduces the indexing cost when generating financial statements, improves the efficiency of data indexing and the accuracy of report generation, enhances the system's responsiveness, and adapts to changing data needs.
Smart Images

Figure CN118796841A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data indexing, and more specifically, to a financial report automatic generation system and a generation method thereof. Background Art
[0002] In the field of FinTech, financial statements play a vital role. They record detailed information on assets, liabilities, income and expenses to support financial analysis and decision-making. Financial statements help evaluate a company's financial status and operating performance, provide investors with a basis for decision-making, and provide data support for regulators to monitor financial stability and compliance. With the development of FinTech, automation and intelligent technologies have improved the accuracy and generation efficiency of financial statements, enhanced market transparency and the stability of the overall financial system.
[0003] In the existing financial report generation process, traditional indexing methods are inefficient when processing complex and large-scale financial data. They usually need to start indexing operations from scratch, repeatedly calculate and process similar data features. This repetitive operation not only leads to a waste of computing resources, but also significantly increases the time required to generate reports, ultimately leading to high indexing costs. In addition, the indexing mechanism of traditional methods lacks reuse capabilities and fails to effectively utilize intermediate data and feature information in the report generation process. This inefficient indexing process makes it difficult for financial asset management platforms to quickly respond to changing data needs, especially when the amount of data continues to grow. The system's processing capabilities and efficiency are further limited. Therefore, how to achieve index reuse of financial data features and thereby reduce the indexing cost when automatically generating financial reports has become a difficult problem faced by the industry. Summary of the invention
[0004] The present application provides a financial report automatic generation system and generation method thereof, which can realize index reuse of financial data features, thereby reducing the index cost when automatically generating financial reports.
[0005] In a first aspect, the present application provides a method for automatically generating financial statements, comprising the following steps: Obtain asset report records from the financial asset management platform within a specified time period and obtain asset metadata; Perform convolutional indexing on each asset report record in the asset metadata to obtain index structure features each time an asset report is generated, and then determine report index loss during the asset report generation process based on all index structure features; Determine the difference entropy between each index structure feature and other index structure features, perform a multiplexing convolution operation on the asset metadata through each difference entropy to obtain an asset multiplexing convolution sequence, and then determine the index granularity between asset attributes in the asset report generation process according to the gradient difference between each multiplexing feature in the asset multiplexing convolution sequence and the report index loss; Obtaining the module structure characteristics of each report module in the preset asset report template, and then determining the structural dependency relationship between the module structure characteristics, and determining the index cost when initially indexing the asset metadata through the structural dependency relationship and the report index loss; The asset metadata is indexed and reused by using the index granularity and the index cost to obtain an index reuse feature, and then a financial asset report is automatically generated based on the index reuse feature.
[0006] Preferably, convolution indexing is performed on each asset report record in the asset metadata to obtain index structure features each time an asset report is generated, specifically including: Selecting an asset report record from the asset metadata as a selected asset report record; Performing convolution mapping on the selected asset report record to obtain report mapping features; Performing a hierarchical pooling operation on the report mapping feature to obtain a mapping pooling feature; The mapped pooled features are formed into a two-dimensional feature self-attention matrix through a Sigmoid function; Indexing the data structure features in the selected asset report record based on the feature self-attention matrix to obtain the index structure features when the asset report is generated this time; Continue to determine the remaining index structure characteristics each time you generate an asset report.
[0007] Preferably, the report index loss determined by all index structure features during the asset report generation process specifically includes: Initialize a loss model; Determine the loss function of the loss model according to the similarity between the features of each index structure; All index structure features are used as input parameters of the loss model; This loss model outputs the report index loss during the asset report generation process.
[0008] Preferably, determining the difference entropy between each index structure feature and other index structure features specifically includes: Selecting an index structure feature as a selected index structure feature; Determine the structural difference between the selected index structural feature and other index structural features; Perform information entropy feature description on all structural differences to obtain the difference entropy between the selected index structure feature and other index structure features; Continue to determine the difference entropy between the remaining index structure features and other index structure features.
[0009] Preferably, performing a multiplexing convolution operation on the asset metadata through each difference entropy to obtain an asset multiplexing convolution sequence specifically includes: Presetting a first convolution kernel according to discrete information of the asset metadata; Performing initial convolution on the asset metadata using the first convolution kernel to obtain an initial convolution sequence; Determining a stability margin in performing a convolution index operation based on each difference entropy; Determining a second convolution kernel in the multiplexed convolution operation process based on the stability margin; The initial convolution sequence is convolved twice using the second convolution kernel to obtain an asset reuse convolution sequence.
[0010] Preferably, the asset metadata is indexed and reused by using the index granularity and the index cost, and the index reuse characteristics obtained specifically include: Determine an index reuse strategy according to the index granularity and the index cost; The asset metadata is index reused based on the index reuse strategy to obtain an index reuse feature.
[0011] Preferably, obtaining the module structural features of each report module in the preset asset report template refers to extracting the structural features of each report module from the pre-designed asset report template.
[0012] In a second aspect, the present application provides a system for automatically generating financial statements, including: The acquisition module is used to obtain the asset report records of the financial asset management platform within a specified time period and obtain asset metadata; A processing module, configured to perform convolution indexing on each asset report record in the asset metadata, obtain index structure features each time an asset report is generated, and further determine report index loss during the asset report generation process based on all index structure features; The processing module is further used to determine the difference entropy between each index structure feature and other index structure features, perform a multiplexing convolution operation on the asset metadata through each difference entropy, and obtain an asset multiplexing convolution sequence, and then determine the index granularity between asset attributes in the asset report generation process according to the gradient difference between each multiplexing feature in the asset multiplexing convolution sequence and the report index loss; The processing module is further used to obtain the module structure characteristics of each report module in the preset asset report template, and then determine the structural dependency relationship between the structural characteristics of each module, and determine the index cost when initially indexing the asset metadata through each structural dependency relationship and the report index loss; An execution module is used to index and reuse the asset metadata through the index granularity and the index cost to obtain index reuse characteristics, and then automatically generate a financial asset report based on the index reuse characteristics.
[0013] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores codes, and the processor is configured to obtain the codes and execute the above-mentioned method for automatically generating financial statements.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for automatically generating financial statements is implemented.
[0015] The technical solution provided by the embodiments disclosed in this application has the following beneficial effects: In an embodiment of the present application, firstly, the asset report records of the financial asset management platform within a specified time period are obtained to obtain asset metadata; convolution indexing is performed on each asset report record in the asset metadata to obtain index structure features when each asset report is generated, and then the report index loss in the asset report generation process is determined by all the index structure features; the difference entropy between each index structure feature and other index structure features is determined, and a reuse convolution operation is performed on the asset metadata through each difference entropy to obtain an asset reuse convolution sequence, and then the index granularity between asset attributes in the asset report generation process is determined by the gradient difference between each reuse feature in the asset reuse convolution sequence and the report index loss; then the module structure features of each report module in the preset asset report template are obtained, and then the structural dependency between each module structure feature is determined, and the index cost when the asset metadata is initially indexed is determined by each structural dependency and the report index loss; further, the asset metadata is index reused by the index granularity and the index cost to obtain the index reuse feature, and then the financial asset report is automatically generated based on the index reuse feature.
[0016] It can be seen that the present application indexes and reuses asset metadata through index granularity and index cost to obtain index reuse features, and then automatically generates financial asset statements based on the index reuse features; first, the asset metadata is subjected to a reuse convolution operation by the difference entropy between the index structure features to obtain an asset reuse convolution sequence. The reuse convolution operation can integrate similar index structure features in the asset metadata, avoiding the problem of repeated processing of similar structure features in traditional methods, thereby greatly reducing the waste of computing resources and time consumption, and further improving the indexing efficiency of the data; secondly, the index granularity between asset attributes is determined according to the gradient difference between each reuse feature in the asset reuse convolution sequence and the report index loss. The index granularity can reflect the level of detail when establishing the index in the search engine, and the index granularity can realize the report. The generation process is finely controlled to improve the accuracy of report generation; then, the index cost during initial indexing is determined based on the structural dependencies between the module structure features and the report index loss, and the index cost can be used to evaluate the resource consumption during the initial indexing of the asset metadata; finally, the asset metadata is indexed and reused by comprehensively considering the index granularity and the index cost, and index reuse features are generated, and then financial asset reports are automatically generated based on these features. Existing index feature information and intermediate data can be reused through index reuse, which improves the overall efficiency of the report generation process and the system responsiveness, and can quickly adapt to changing data requirements, thereby reducing the cost of re-creating indexes; in summary, the present application scheme can realize index reuse of financial data features, thereby reducing the index cost when automatically generating financial reports. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is an exemplary flow chart of a method for automatically generating financial statements according to some embodiments of the present application; Figure 2 It is a schematic diagram of a process of determining report index loss according to some embodiments of the present application; Figure 3 It is a schematic diagram of a flow chart of determining the structural dependency relationship between structural features of various modules according to some embodiments of the present application; Figure 4 is a schematic diagram of exemplary software modules of a financial statement automatic generation system according to some embodiments of the present application; Figure 5 It is a structural diagram of a computer device for implementing a method for automatically generating financial statements according to some embodiments of the present application. DETAILED DESCRIPTION
[0018] The core of this application is to determine the report index loss by the index structure features obtained by convolution indexing the asset metadata; to perform a reuse convolution operation on the asset metadata by the difference entropy between the index structure features to obtain an asset reuse convolution sequence, and then determine the index granularity between asset attributes in the report generation process by the gradient difference between each reuse feature in the asset reuse convolution sequence and the report index loss; to determine the index cost when performing the initial indexing of the asset metadata by the structural dependency relationship between the structural features of each module in the preset asset report template and the report index loss; to further index and reuse the asset metadata by the index cost and index granularity to obtain the index reuse features, and then automatically generate financial asset reports; the scheme can realize the index reuse of financial data features, thereby reducing the index cost when automatically generating financial reports.
[0019] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 , which is an exemplary flow chart of a method for automatically generating financial statements according to some embodiments of the present application. The method 100 for automatically generating financial statements mainly includes the following steps: In step 101, the asset report records of the financial asset management platform within a specified time period are obtained to obtain asset metadata.
[0020] In specific implementation, the financial asset management platform can be connected through API (Application Programming Interface), and the asset report records within a specified time period can be obtained from the database of the financial asset management platform, and then all the asset report records can be arranged into data groups in chronological order of corresponding occurrence times, so that the arranged data groups are used as asset metadata; it should be noted that the specified time period in this application refers to the time period corresponding to the current moment to the past 2 years. In other embodiments, the time corresponding to the specified time period can also be set to other time periods, which is not limited here; in addition, the asset report records in this application can be records of asset reports corresponding to each month.
[0021] It should be noted that the asset metadata in this application refers to a data group used to provide structured information and asset attributes about financial assets, wherein the structured information includes: basic identification information (such as asset ID, asset name, asset type), financial information (asset value, currency unit, asset quantity), time information (such as generation date), status information (status, risk level), and the asset attributes include basic identification attributes, financial attributes, time attributes, location attributes and status attributes.
[0022] In step 102, convolutional indexing is performed on each asset report record in the asset metadata to obtain index structure features each time an asset report is generated, and then the report index loss in the asset report generation process is determined based on all index structure features.
[0023] In some embodiments, convolution indexing is performed on each asset report record in the asset metadata to obtain index structure features when generating an asset report each time. The following steps can be used to achieve this: Selecting an asset report record from the asset metadata as a selected asset report record; Performing convolution mapping on the selected asset report record to obtain report mapping features; Performing a hierarchical pooling operation on the report mapping feature to obtain a mapping pooling feature; The mapped pooled features are formed into a two-dimensional feature self-attention matrix through a Sigmoid function; Indexing the data structure features in the selected asset report record based on the feature self-attention matrix to obtain the index structure features when the asset report is generated this time; Continue to determine the remaining index structure characteristics each time you generate an asset report.
[0024] It should be noted that in this application, the selected asset report record is converted into a feature map through a convolution operation, mainly to extract important features in the report record so that it can better represent the structure and content of the record; the convolution map features are reduced and abstracted through hierarchical pooling operations, which can reduce the data dimension while retaining important feature information; the Sigmoid function is used to convert the pooled feature map into a two-dimensional feature self-attention matrix, which can improve the accuracy of the index by utilizing the self-attention mechanism to enable the model to pay attention to the important parts of the features; in addition, the generated feature self-attention matrix is used to index the data structure features in the asset report record, so that the index structure features when the asset report is generated can be accurately extracted.
[0025] In the specific implementation, the selected asset report record is convoluted and mapped to obtain the report mapping feature, which can be implemented in the following manner, namely: a predefined convolution kernel can be used to perform a convolution operation on the selected asset report record, so as to map the selected asset report record into a two-dimensional feature, and then the mapped two-dimensional feature is used as the report mapping feature, wherein the predefined convolution kernel can usually be set to a moving average convolution kernel, and its convolution kernel size is usually 5x5; hierarchical pooling operation is performed on the report mapping feature, and the mapping pooling feature can be implemented in the following manner, namely: the report mapping feature is input into multiple pooling channels for Global maximum pooling is performed, and then a pooling feature is obtained in each channel, and then the high-dimensional feature composed of all the pooling features is used as the mapping pooling feature; the mapping pooling feature is formed into a two-dimensional feature self-attention matrix through the Sigmoid function, which can be implemented in the following way, namely: first define a weight matrix W (size is n×n, the size of n can be preset according to the number of pooling features), the weight matrix is used to map the feature to another space, the mapping pooling feature is multiplied by the weight matrix through matrix multiplication, and then a nonlinear transformation is performed through the Sigmoid function to obtain the self-attention matrix.
[0026] In addition, the data structure features in the selected asset report record are indexed based on the feature self-attention matrix to obtain the index structure features when the asset report is generated this time. This can be achieved in the following manner, namely: obtaining the data structure features of the selected asset report record, weighting each data in the data structure features by the elements in the feature self-attention matrix, and then using the structure features composed of all weighted data as the index structure features when the asset report is generated this time.
[0027] It should be noted that the index structure features in this application are features that reflect the core structure and key information in the report data. By quantifying the index structure features, the original complex report data can be converted into a structured and easy-to-process feature set, and then the key parts of the report data can be extracted, thereby simplifying the subsequent automatic report generation process.
[0028] In some embodiments, reference Figure 2 As shown, this figure is a schematic diagram of a process for determining report index loss in some embodiments of the present application. In this embodiment, the report index loss in the asset report generation process is determined by all index structure features and can be implemented by the following steps: In step 1021, a loss model is initialized; In step 1022, the loss function of the loss model is determined according to the similarity between the various index structure features; In step 1023, all index structure features are used as input parameters of the loss model; In step 1024, the report index loss in the asset report generation process is output through the loss model.
[0029] It should be noted that the loss model in the present application is a machine learning model used to evaluate the amount of loss in the process of generating index structure features. The algorithm structure of the loss model can adopt linear regression, and other algorithm structures can also be adopted in other embodiments, which is not limited here.
[0030] In specific implementation, the loss function of the loss model determined according to the similarity between each index structure feature can be implemented in the following manner, namely: the loss function can be selected by measuring the similarity difference between the index structure features. When the similarity between the index structure features is greater than a preset threshold, the loss function can select the mean square error. When the similarity between the index structure features is less than or equal to the preset threshold, the loss function can select the mean absolute error. It should be noted that in this application, the average value of the Euclidean distance between the index structure features can be used as the similarity between the various index structure features. In addition, the preset threshold can be set according to the similarity data between a large number of index structure features, which will not be elaborated here. Using all index structure features as input parameters of the loss model can be implemented in the following manner, namely: all index structure features can be input into the initialized loss model; the report index loss output by the loss model in the asset report generation process can be implemented in the following manner, namely: the result calculated by the loss model can be used as the report index loss in the asset report generation process.
[0031] It should be noted that the report index loss in this application refers to the loss caused by inaccurate index data due to mismatch of index structure during the asset report generation process. By quantifying the report index loss, the effectiveness of the current index structure in the asset report generation process can be evaluated, thereby identifying unreasonable or inefficient index structures. At the same time, the optimization process of the index structure can be guided according to the size of the report index loss, thereby adjusting the index strategy to reduce index loss and thereby improve the efficiency and accuracy of report generation.
[0032] In step 103, the difference entropy between each index structure feature and other index structure features is determined, and a multiplexing convolution operation is performed on the asset metadata through each difference entropy to obtain an asset multiplexing convolution sequence, and then the index granularity between asset attributes in the asset report generation process is determined by the gradient difference between each multiplexing feature in the asset multiplexing convolution sequence and the report index loss.
[0033] In some embodiments, determining the difference entropy between each index structure feature and other index structure features may be implemented by the following steps: Selecting an index structure feature as a selected index structure feature; Determine the structural difference between the selected index structural feature and other index structural features; Perform information entropy feature description on all structural differences to obtain the difference entropy between the selected index structure feature and other index structure features; Continue to determine the difference entropy between the remaining index structure features and other index structure features.
[0034] It should be noted that the structural difference in the present application is an indicator for measuring the degree of difference between two index structure features. In specific implementation, the structural difference between the selected index structure feature and each other index structure feature can be determined in the following manner, namely: the cosine similarity in the prior art can be used to describe the structural difference between the selected index structure feature and each other index structure feature. In other embodiments, the Euclidean distance can also be used to describe the structural difference between the selected index structure feature and each other index structure feature, which will not be elaborated here.
[0035] In the specific implementation, all structural differences are described by information entropy characteristics, and the difference entropy between the selected index structure feature and other index structure features can be obtained in the following way, namely: all structural differences are brought into the information entropy calculation formula in the prior art, and then the calculated information entropy is used as the difference entropy between the selected index structure feature and other index structure features.
[0036] It should be noted that the difference entropy in the present application is an indicator for measuring the uncertainty of the degree of difference between index structure features. The larger the difference entropy, the greater the uncertainty of the degree of difference between index structure features. The smaller the difference entropy, the smaller the uncertainty of the degree of difference between index structure features. In addition, by quantifying the difference entropy, the stability of an index structure feature under different conditions can be judged. If the difference entropy is low, it means that the index structure feature does not change much under various conditions and has higher stability. If the difference entropy is high, it means that it changes greatly and has lower stability.
[0037] In some embodiments, performing a multiplexing convolution operation on the asset metadata through each difference entropy to obtain an asset multiplexing convolution sequence can be implemented by the following steps: Presetting a first convolution kernel according to discrete information of the asset metadata; Performing initial convolution on the asset metadata using the first convolution kernel to obtain an initial convolution sequence; Determining a stability margin in performing a convolution index operation based on each difference entropy; Determining a second convolution kernel in the multiplexed convolution operation process based on the stability margin; The initial convolution sequence is convolved twice using the second convolution kernel to obtain an asset reuse convolution sequence.
[0038] In a specific implementation, the first convolution kernel is preset according to the discrete information of the asset metadata and can be implemented in the following manner, namely: first, the discrete information can be extracted from the asset metadata using the unique hot encoding in the prior art, wherein the discrete information includes the discreteness of financial information (asset value, currency unit, asset quantity), the discreteness of time information (such as generation date), and the discreteness of state information (state, risk level); secondly, the weighted average of the discreteness of financial information, the discreteness of time information, and the discreteness of state information is calculated, wherein the weight values of the discreteness of financial information, the discreteness of time information, and the discreteness of state information can be calculated according to each discreteness. The proportion of discreteness is determined. In other embodiments, other existing technologies can also be used for implementation, which is not limited here. Then, the weight of the first convolution kernel is set according to the size of the weighted average value. For example, the opposite of the weighted average value can be used as the weighted average opposite value, and the exponential function value of the weighted average opposite value with the natural logarithm as the base is used as the weight of the first convolution kernel; the asset metadata is initially convolved by the first convolution kernel to obtain the initial convolution sequence, which can be implemented in the following manner, namely: the designed first convolution kernel is used to perform an initial convolution operation on the asset metadata, and the generated sequence is used as the initial convolution sequence.
[0039] It should be noted that the stability margin in this application is an indicator for measuring the stability range of feature extraction during the convolution operation. It indicates the range of errors that the convolution kernel can tolerate during the data feature extraction process. This stability margin can help ensure that the convolution operation can still stably extract useful features when facing changes in different input data features.
[0040] In specific implementation, determining the stability margin in the process of executing the convolution index operation based on each difference entropy can be implemented in the following manner, namely: setting a basic margin as the starting value of the stability margin, and then taking the average value of all difference entropies as the average difference entropy, and then adjusting the stability margin according to the average difference entropy. As a preferred embodiment, adjusting the stability margin according to the average difference entropy can be implemented by the following formula, namely: stability margin = basic margin * EXP (average difference entropy), wherein the basic margin is used to ensure a certain stability without additional adjustment, and the basic margin can be a positive number, such as 0.5, and the value range of the stability margin is between 0.1 and 10; determining the second convolution kernel in the multiplexing convolution operation based on the stability margin can be implemented in the following manner, namely: first, adjusting the size of the convolution kernel according to the size of the stability margin. For example, the stability margin can be adjusted by comparing the size of the preset basic convolution kernel size. The product is used as the size of the second convolution kernel. It should be noted that in this application, when the stability margin is large, a larger convolution kernel needs to be selected to cover more data areas to ensure stability against data fluctuations. Therefore, the product of the stability margin and the preset basic convolution kernel size can be used as the size of the second convolution kernel; secondly, the opposite of the stability margin is used as the opposite value of the stability margin, and then the exponential function value of the opposite value of the stability margin with the natural logarithm as the base can be used as the weight of the convolution kernel. Further, a regularization method (such as L1 or L2 regularization) can be used to optimize the weight configuration, so that the optimized convolution kernel can be used as the second convolution kernel in the reused convolution operation process; the initial convolution sequence is convolved twice by the second convolution kernel to obtain an asset reuse convolution sequence, which can be implemented in the following way, namely: the initial convolution sequence can be convolved with the designed second convolution kernel, so that the sequence obtained by convolution is used as the asset reuse convolution sequence.
[0041] It should be noted that the reused convolution in this application refers to extracting and enhancing features in the data through secondary convolution operations based on the initial convolution of the asset metadata, and using these features for reuse in subsequent operations. The reused convolution operation is usually used to process and optimize large-scale data sets to improve data indexing and retrieval efficiency.
[0042] In some embodiments, determining the index granularity between asset attributes in the asset report generation process based on the gradient difference between each reused feature in the asset reuse convolution sequence and the report index loss can be implemented by the following steps: Determining the gradient value of each reuse feature in the asset reuse convolution sequence; Determine the gradient difference between each reused feature through all gradient values; Determine fine-grained dependencies between indexed asset attributes based on all gradient differences; The fine-grained dependency is compensated for in granularity by the report index loss, so as to obtain the index granularity between asset attributes in the process of generating an asset report.
[0043] In specific implementation, determining the gradient value of each reused feature in the asset reuse convolution sequence can be achieved in the following manner, namely: each reused feature in the asset reuse convolution sequence can be differentiated, and the differentiated results are used as the corresponding reused feature gradient values; determining the gradient difference between each reused feature through all gradient values can be achieved in the following manner, namely: the Euclidean distance between the gradient values can be used as the gradient difference between the corresponding reused features, and the gradient difference is an indicator to measure the degree of difference between the gradient values; determining the fine-grained dependency relationship indexing different asset attributes based on all gradient differences can be achieved in the following manner, namely: initializing a dependency model, using all gradient differences as input parameters of the dependency model, and then identifying the strongly correlated or weakly correlated feature pairs between different asset attributes through the dependency model, and then performing feature mapping on all feature pairs, and then using the vectors obtained by the feature mapping as the fine-grained dependency relationship indexing different asset attributes, wherein the asset attributes include basic identification attributes, financial attributes, time attributes, location attributes, and status attributes.
[0044] It should be noted that the fine-grained dependency in this application refers to the detailed and precise interdependence between different asset attributes. This dependency is not just an overall correlation, but a specific relationship down to each data feature. In the process of asset management and asset report generation, fine-grained dependencies can capture the subtle changes and mutual influences between asset attributes, thereby improving the accuracy of asset report generation.
[0045] In specific implementation, the fine-grained dependency is compensated for by the report index loss, and the index granularity between asset attributes in the asset report generation process can be achieved in the following manner, namely: first, the opposite of the report index loss can be used as the opposite value of the index loss, and then the exponential function value of the opposite value of the index loss with the natural logarithm as the base is used as the granularity compensation coefficient, and then the fine-grained dependency is compensated by the granularity compensation coefficient, that is, the granularity compensation coefficient can be multiplied with each element in the fine-grained dependency (the fine-grained dependency is a vector), and finally the average of all products is used as the index granularity between asset attributes in the asset report generation process.
[0046] It should be noted that the index granularity in this application refers to the level of detail when establishing an index in a search engine. The index granularity determines the segmentation of data and the level of detail of the index. The finer the granularity, the higher the level of detail of the index and the faster the retrieval speed, but it will also increase the storage and maintenance costs. The coarser the granularity, the lower the level of detail of the index. Although the storage cost and maintenance cost are lower, the retrieval speed may be affected.
[0047] In step 104, the module structure characteristics of each report module in the preset asset report template are obtained, and then the structural dependencies between the module structure characteristics are determined, and the index cost when the asset metadata is initially indexed is determined through the various structural dependencies and the report index loss.
[0048] It should be noted that obtaining the module structure characteristics of each report module in the preset asset report template refers to extracting the structural characteristics of each report module from the pre-designed asset report template, wherein the module structure characteristics include: module type, data structure, layout information and format attributes, wherein the module type means that different modules in the report represent different types of data information, such as balance sheet, income statement and cash flow statement, the data structure refers to the data fields contained in the module and their organization, such as table format, number of columns, number of rows and data type, the layout information refers to the position and layout of each module in the report, such as position coordinates, size, header, footer, page header and footer, and the format attributes refer to the format characteristics of the module, such as font, color and border style.
[0049] In some embodiments, reference Figure 3 As shown, this figure is a schematic diagram of a flow chart of determining structural dependencies in some embodiments of the present application. In this embodiment, determining the structural dependencies between the structural features of each module can be implemented by the following steps: In step 1041, the functional dependency relationship between the structural features of each module is determined; In step 1042, the spatial logical relationship between each report module in the preset asset report template is determined according to the layout information in all module structure features; In step 1043, the structural dependency relationship between the structural features of each module is determined based on the functional dependency relationship and the spatial logical relationship.
[0050] In specific implementation, the functional dependency relationship between the structural features of each module can be determined in the following manner, namely: the path of data flowing from one report module to another report module can be marked as a data flow node, a report module is selected, and the data flow nodes of each data flow from the report module to other report modules are counted, and the total number of data flow nodes between the report module and other report modules is used as the functional dependency value between the structural features of the corresponding module of the report module and the structural features of other modules, and the functional dependency values between the structural features of the remaining modules and the structural features of other modules are continued to be determined, and then the array composed of all the functional dependency values is used as the functional dependency relationship between the structural features of each module.
[0051] It should be noted that the spatial logical relationship refers to the spatial layout and relative position relationship of each report module in the preset report template, which describes the relative position and arrangement of each module on the page; in specific implementation, the spatial logical relationship between each report module in the preset asset report template is determined according to the layout information in the structural features of all modules, which can be implemented in the following way, namely: obtaining the layout information in the structural features of each module, initializing a logical relationship model, and using the layout information in the structural features of each module as the initialization of the logical relationship model, and then analyzing the spatial logical relationship between each report module in the preset asset report template through the logical relationship model, wherein the spatial logical relationship is an array composed of spatial logical values between two report modules; it should also be noted that in the present application, the spatial relationship between each report module, such as adjacent and nested, can be analyzed through the logical relationship model. In other embodiments, other existing technologies can also be used to analyze the spatial relationship between each report module, which is not limited here.
[0052] In specific implementation, the structural dependency relationship between each module structural feature is determined based on the functional dependency relationship and the spatial logical relationship, which can be achieved in the following manner, namely: first, a module structural feature is selected as the selected module structural feature; secondly, the functional dependency value between the selected module structural feature and other module structural features is obtained from the functional dependency relationship, and the functional dependency value is used as the selected functional dependency value; then, the spatial logical value between the report module corresponding to the selected module structural feature and other report modules is obtained from the spatial logical relationship, and the spatial logical value is used as the selected spatial logical value; finally, the product of the selected functional dependency value and the selected spatial logical value is used as the structural dependency relationship between the selected module structural feature and other module structural features, and the structural dependency relationship between the remaining module structural features and other module structural features is continued to be determined.
[0053] It should be noted that the structural dependencies in this application refer to the structural dependencies between different modules in the system. These relationships not only involve functional dependencies, but also include the mutual dependencies of modules in spatial layout and logical structure.
[0054] In some embodiments, determining the index cost of initially indexing the asset metadata based on the various structural dependencies and the report index loss may be implemented by the following steps: Determining, according to each structural dependency, an index tag sequence when initially indexing the asset metadata; The indexing cost of initially indexing the asset metadata is determined by using the discrete information of the index tag sequence and the report index loss.
[0055] In specific implementation, determining the index label sequence for initial indexing of the asset metadata based on various structural dependencies can be implemented in the following manner, namely: first, an index label can be provided for each data in the asset metadata based on all structural dependencies, wherein the index label refers to an indicator reflecting the complexity of the path of the data in the asset metadata when indexing. It should be noted that in the present application, the index label can be quantified by the strength of the structural dependency between the structural features of each module. The greater the structural dependency, the more complex the path for indexing the data in the asset metadata. Secondly, all index labels are arranged in chronological order of indexing time, and the sequence obtained by the arrangement is used as the index label sequence.
[0056] In addition, in a specific implementation, determining the index cost for the initial indexing of the asset metadata through the discrete information of the index tag sequence and the report index loss can be achieved in the following manner, namely: the variance of the index tag sequence can be used as the discrete information of the index tag sequence, and then the product of the variance of the index tag sequence and the report index loss can be used as the index cost for the initial indexing of the asset metadata. It should be noted that in this application, by using the variance of the index tag sequence as discrete information, the uniformity of the index tag distribution can be effectively measured, and the index cost for the initial indexing of the asset metadata can be further determined in combination with the report index loss. This method helps to optimize the indexing process, thereby improving the efficiency of data query and retrieval.
[0057] It should be noted that the index cost in this application refers to the resources and time consumed when indexing asset metadata. The index cost reflects the efficiency and performance of creating and maintaining indexes, and is an important indicator for measuring the pros and cons of indexing strategies. In financial asset management platforms, the index cost is usually used to evaluate the resource consumption during the initial indexing of asset metadata.
[0058] In step 105, the asset metadata is indexed and reused by using the index granularity and the index cost to obtain an index reuse feature, and then a financial asset report is automatically generated based on the index reuse feature.
[0059] In some embodiments, the asset metadata is indexed and reused by using the index granularity and the index cost to obtain the index reuse feature, which can be achieved by using the following steps: Determine an index reuse strategy according to the index granularity and the index cost; The asset metadata is index reused based on the index reuse strategy to obtain an index reuse feature.
[0060] In specific implementation, the index reuse strategy determined according to the index granularity and the index cost can be implemented in the following manner, namely: initialize the policy optimization model, use the index granularity as the initialization parameter of the policy optimization model, use the index cost as the constraint parameter of the policy optimization model, and then automatically generate the index reuse strategy through the policy optimization model. This index reuse strategy should be able to minimize the index cost while ensuring query efficiency, and use the index reuse strategy as the execution strategy for subsequent index reuse processes. It should be noted that in this application, the size of the index granularity can be used to retain some features when the asset metadata is initially indexed, and this part of the features is used as the reused data features during index reuse. By directly indexing the reused data features, the index overhead during indexing can be reduced, thereby greatly improving the indexing efficiency. For example, the product of the exponential function value of the index granularity with the natural logarithm as the base and the data reuse base ratio can be used as the data reuse ratio, wherein the data reuse base ratio is the ratio of the reused data features during index reuse, which can usually be set to 0.2, and then the reused data features of the data reuse ratio are screened out from the feature sequence generated during the initial indexing, and the screening principle is to screen in descending order according to the reuse probability corresponding to the reused data features, wherein the reuse probability can be obtained by statistical analysis based on historical index records; the asset metadata is indexed and reused based on the index reuse strategy, and the index reuse feature can be implemented in the following manner, namely: the reused data features of the asset metadata during reuse convolution can be reused according to the index reuse structure in the index reuse strategy, and then the indexed features are used as index reuse features.
[0061] It should be noted that index reuse in this application refers to indexing based on an existing initial index, by optimizing or reusing existing index feature data, thereby reducing the cost of re-creating the index; the index reuse feature refers to a set of features generated by reusing or optimizing the existing initial index in the financial asset management platform to accelerate data access and query, aiming to reduce repeated calculations, optimize query performance, and improve the overall efficiency of the system.
[0062] It should also be noted that automatically generating financial asset statements based on the index reuse features refers to automatically generating financial asset statements based on the index reuse features obtained by the index. In specific implementation, the previously extracted index reuse features are loaded from the memory, and the index reuse features are automatically filled into the preset asset statement template, and then the final financial asset statement file is generated based on the filled-in asset statement template; in addition, the present application scheme can significantly improve the generation efficiency and accuracy of financial asset statements, while optimizing the use of system resources, reducing index costs, and providing financial asset management platforms with more powerful data processing and report generation capabilities.
[0063] On the other hand, in some embodiments, the present application provides a financial report automatic generation system, referring to Figure 4 , which is a schematic diagram of exemplary software modules of a financial statement automatic generation system according to some embodiments of the present application, the financial statement automatic generation system 400 includes: an acquisition module 401, a processing module 402 and an execution module 403, which are described as follows: Acquisition module 401, in this application, acquisition module 401 is mainly used to acquire asset report records of the financial asset management platform within a specified time period to obtain asset metadata; Processing module 402, in the present application, is used to perform convolution indexing on each asset report record in the asset metadata, obtain index structure features when each asset report is generated, and then determine the report index loss in the asset report generation process based on all index structure features; The processing module 402 in the present application is also used to determine the difference entropy between each index structure feature and other index structure features, perform a multiplexing convolution operation on the asset metadata through each difference entropy, and obtain an asset multiplexing convolution sequence, and then determine the index granularity between asset attributes in the asset report generation process according to the gradient difference between each multiplexing feature in the asset multiplexing convolution sequence and the report index loss; The processing module 402 in the present application is also used to obtain the module structure characteristics of each report module in the preset asset report template, and then determine the structural dependency relationship between the structural characteristics of each module, and determine the index cost when initially indexing the asset metadata through each structural dependency relationship and the report index loss; Execution module 403, in the present application, execution module 403 is mainly used to index and reuse the asset metadata through the index granularity and the index cost, obtain index reuse characteristics, and then automatically generate a financial asset report based on the index reuse characteristics.
[0064] In addition, the present application also provides a computer device, which includes a memory and a processor, wherein the memory stores codes, and the processor is configured to obtain the codes and execute the above-mentioned method for automatically generating financial statements.
[0065] In some embodiments, reference Figure 5 , which is a schematic diagram of the structure of a computer device for implementing a method for automatically generating financial statements according to some embodiments of the present application. The method for automatically generating financial statements in the above embodiments can be Figure 5 The computer device 500 shown in the figure is implemented, and the computer device 500 includes at least one processor 501, a communication bus 502, a memory 503 and at least one communication interface 504.
[0066] The processor 501 may be a general-purpose central processing unit (CPU) or an application-specific integrated circuit (ASIC).
[0067] The communication bus 502 may be used to transmit information between the above-mentioned components.
[0068] The memory 503 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 503 may exist independently and be connected to the processor 501 via the communication bus 502. The memory 503 may also be integrated with the processor 501.
[0069] The memory 503 is used to store the program code for executing the solution of the present application, and the execution is controlled by the processor 501. The processor 501 is used to execute the program code stored in the memory 503. The program code may include one or more software modules. The automatic generation method of financial statements in the above embodiment can be implemented by the processor 501 and one or more software modules in the program code in the memory 503.
[0070] The communication interface 504 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0071] In a specific implementation, as an embodiment, a computer device may include multiple processors, each of which may be a single-CPU processor or a multi-CPU processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0072] The above-mentioned computer device may be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of computer device.
[0073] In addition, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for automatically generating financial statements is implemented.
[0074] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0075] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for automatically generating financial statements, characterized in that: The steps include: Obtain asset report records from the financial asset management platform within a specified time period and obtain asset metadata; Perform convolutional indexing on each asset report record in the asset metadata to obtain index structure features each time an asset report is generated, and then determine report index loss during the asset report generation process based on all index structure features; Determine the difference entropy between each index structure feature and other index structure features, perform a multiplexing convolution operation on the asset metadata through each difference entropy to obtain an asset multiplexing convolution sequence, and then determine the index granularity between asset attributes in the asset report generation process according to the gradient difference between each multiplexing feature in the asset multiplexing convolution sequence and the report index loss; Obtaining the module structure characteristics of each report module in the preset asset report template, and then determining the structural dependency relationship between the module structure characteristics, and determining the index cost when initially indexing the asset metadata through the structural dependency relationship and the report index loss; The asset metadata is indexed and reused by using the index granularity and the index cost to obtain an index reuse feature, and then a financial asset report is automatically generated based on the index reuse feature.
2. The method according to claim 1, characterized in that Convolutional indexing is performed on each asset report record in the asset metadata to obtain index structure features each time an asset report is generated, specifically including: Selecting an asset report record from the asset metadata as a selected asset report record; Performing convolution mapping on the selected asset report record to obtain report mapping features; Performing a hierarchical pooling operation on the report mapping feature to obtain a mapping pooling feature; The mapped pooled features are formed into a two-dimensional feature self-attention matrix through a Sigmoid function; Indexing the data structure features in the selected asset report record based on the feature self-attention matrix to obtain the index structure features when the asset report is generated this time; Continue to determine the remaining index structure characteristics each time you generate an asset report.
3. The method according to claim 1, characterized in that The report index loss during the asset report generation process determined by all index structure characteristics specifically includes: Initialize a loss model; Determine the loss function of the loss model according to the similarity between the features of each index structure; All index structure features are used as input parameters of the loss model; This loss model outputs the report index loss during the asset report generation process.
4. The method according to claim 1, characterized in that Determining the difference entropy between each index structure feature and other index structure features specifically includes: Selecting an index structure feature as a selected index structure feature; Determine the structural difference between the selected index structural feature and other index structural features; Perform information entropy feature description on all structural differences to obtain the difference entropy between the selected index structure feature and other index structure features; Continue to determine the difference entropy between the remaining index structure features and other index structure features.
5. The method according to claim 1, characterized in that The multiplexing convolution operation is performed on the asset metadata through each difference entropy to obtain the asset multiplexing convolution sequence, which specifically includes: Presetting a first convolution kernel according to discrete information of the asset metadata; Performing initial convolution on the asset metadata using the first convolution kernel to obtain an initial convolution sequence; Determining a stability margin in performing a convolution index operation based on each difference entropy; Determining a second convolution kernel in the multiplexed convolution operation process based on the stability margin; The initial convolution sequence is convolved twice using the second convolution kernel to obtain an asset reuse convolution sequence.
6. The method according to claim 1, characterized in that The asset metadata is indexed and reused by using the index granularity and the index cost, and the index reuse characteristics obtained specifically include: Determine an index reuse strategy according to the index granularity and the index cost; The asset metadata is index reused based on the index reuse strategy to obtain an index reuse feature.
7. The method according to claim 1, characterized in that Acquiring the module structural features of each report module in the preset asset report template refers to extracting the structural features of each report module from the pre-designed asset report template.
8. A financial report automatic generation system, characterized in that: include: The acquisition module is used to obtain the asset report records of the financial asset management platform within a specified time period and obtain asset metadata; A processing module, configured to perform convolution indexing on each asset report record in the asset metadata, obtain index structure features each time an asset report is generated, and further determine report index loss during the asset report generation process based on all index structure features; The processing module is further used to determine the difference entropy between each index structure feature and other index structure features, perform a multiplexing convolution operation on the asset metadata through each difference entropy, and obtain an asset multiplexing convolution sequence, and then determine the index granularity between asset attributes in the asset report generation process according to the gradient difference between each multiplexing feature in the asset multiplexing convolution sequence and the report index loss; The processing module is further used to obtain the module structure characteristics of each report module in the preset asset report template, and then determine the structural dependency relationship between the structural characteristics of each module, and determine the index cost when initially indexing the asset metadata through each structural dependency relationship and the report index loss; An execution module is used to index and reuse the asset metadata through the index granularity and the index cost to obtain index reuse characteristics, and then automatically generate a financial asset report based on the index reuse characteristics.
9. A computer device, comprising a memory and a processor, wherein the memory stores a code, characterized in that: The processor is configured to obtain the code and execute the method for automatically generating financial statements according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for automatically generating financial statements as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Index acquisition method and device
CN111522810A
Index extraction method and device for complex medical documents, medium and electronic equipment
CN112699642A
Knowledge graph-based index creation method and device
CN114297334A
Automatic inspection report generation and display method
CN115879430A
Index establishment method, electronic equipment and computer storage equipment
CN117290352A
