A system and method for automatically analyzing enterprise financial statements

Through the automatic analysis system of corporate financial statements, web crawlers and PDF parsing technology are used to automatically obtain and parse corporate annual reports, solving the problems of long analysis and incomplete evaluation by investors, and providing a fast and accurate assessment of corporate health.

CN112950346BActive Publication Date: 2024-10-15TAXUNION DIGITAL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202110321638.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-26
Publication Date
2024-10-15
Estimated Expiration
2041-03-26

AI Technical Summary

Technical Problem

It takes a long time for investors with financial skills to analyze the health status of enterprises. The evaluation content of existing investment tools is incomplete and the results are rough, which cannot meet the needs of investors.

Method used

Design an automatic analysis system for enterprise financial statements, including a condition analysis setting module, an enterprise list acquisition module, an annual report acquisition module, an annual report data analysis module, a financial form acquisition module and an enterprise health assessment module. The enterprise list is obtained through web crawler technology , PDF parsing technology parses annual reports, automatically extracts and organizes financial forms, calculates and evaluates corporate health, and generates a comprehensive health report.

Benefits of technology

It realizes automatic acquisition and data analysis of corporate lists and annual reports, reduces the difficulty and time for investors to analyze corporate annual reports, provides comprehensive and accurate corporate health status assessment results, and improves investor analysis efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112950346B_ABST
    Figure CN112950346B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic analysis system for corporate financial statements, including a conditional analysis setting module, a working status and analysis result output module, and a corporate list acquisition module, an annual report acquisition module, an annual report data parsing module, a financial form acquisition module, and a corporate health status assessment module, which are respectively associated with the conditional analysis setting module and the working status and analysis result output module. Also disclosed is an automatic analysis method for corporate financial statements. The present invention realizes automatic acquisition of corporate lists, corporate annual reports, automatic extraction and sorting of financial forms, automatic acquisition of key corporate financial account values, and automatic generation of corporate comprehensive health status assessment reports, thereby improving the efficiency of investors analyzing corporate annual reports and reducing the difficulty of investors analyzing corporate annual reports.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of financial statement processing, and in particular to an automatic analysis system and method for enterprise financial statements. Background Art

[0002] For investors, investing in equity, stocks, corporate bonds, certain funds, etc., is actually investing in a company. The fastest and most effective way for investors to understand a company is through the company's annual report. Analyzing the company's financial statements in the company's annual report can determine the health of the company.

[0003] For investors with financial skills, the health of the company can be assessed from its financial statements, such as its cash flow, debt risk, industry position, profit quality, debt risk, the importance of the company, the degree of focus on its main business, stability, operating results and value, the combination type of net cash flow, product competitiveness, expansion capability, profitability, growth capability, operational capability, debt repayment capability, cost control capability, hematopoietic capability, capital profitability, corporate quality, etc. However, the evaluation process is time-consuming; for general investors who do not have professional financial skills, they can obtain a small amount of rough health information such as the cash flow, profitability, growth capability, operational capability, and debt repayment capability of the company to be invested from investment tools, but these cannot meet the needs of investors. Summary of the invention

[0004] The purpose of the present invention is to provide an automatic analysis system for corporate financial statements, which is used to solve the problems in the prior art that individual investors with financial skills take a long time to analyze the health status of a company and that the evaluation content of existing investment tools is incomplete and the evaluation results are rough.

[0005] The present invention solves the above problems through the following technical solutions:

[0006] An automatic analysis system for corporate financial statements includes a conditional analysis setting module, a corporate list acquisition module, an annual report acquisition module, an annual report data analysis module, a financial form acquisition module, an enterprise health status assessment module, and a work status and analysis result output module, wherein:

[0007] The conditional analysis setting module is used to set the analysis conditions, including the categories to be invested, the conditions of the selected investment products corresponding to the categories to be invested, the maximum annual report analysis period, the annual report extraction website, and the enterprise health status assessment standard, and send them to the enterprise list acquisition module, the annual report acquisition module, and the enterprise health status assessment module respectively;

[0008] The enterprise list acquisition module is used to acquire the enterprise list of products to be invested from the website using web crawler technology according to the categories to be invested and the conditions of the selected investment products corresponding to the categories to be invested;

[0009] The annual report acquisition module downloads and saves the annual report of an enterprise from the annual report extraction website according to the maximum annual report analysis period and the list of enterprises acquired;

[0010] The annual report data analysis module uses PDF analysis technology to analyze the downloaded corporate annual reports and obtain the annual report data;

[0011] The financial form acquisition module obtains the audit opinion of the company's annual report based on the annual report data obtained through analysis, extracts and organizes the financial forms, including the balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary form and parent net profit data, marks the names of the financial items with abnormal annual change rates in the financial forms, and outputs them to the working state, i.e. the analysis result output module;

[0012] The enterprise health status assessment module obtains the key financial items of the enterprise in each year according to the maximum annual report analysis period, enterprise health status assessment standards and various financial items in the financial form. The key financial items include total assets, total liabilities, monetary funds, short-term loans and interest payable; calculates the key process data required for assessing the health status of the enterprise, including the difference between monetary funds and interest-bearing liabilities, the growth rate of total assets, and the growth rate of total liabilities; assesses the cash flow, debt risk and industry status of the enterprise and completes the output of the health status report to the working status and analysis result output module;

[0013] The working status of the enterprise list acquisition module, annual report acquisition module, annual report data analysis module, financial form acquisition module and enterprise health status assessment module is output in real time to the working status and analysis result output module, and the working status and analysis result output module performs real-time output display and storage.

[0014] The present invention automatically obtains a list of companies of products to be invested, automatically downloads annual reports of companies, automatically analyzes annual report data of companies, automatically extracts and organizes financial forms such as consolidated balance sheets, consolidated income statements, consolidated cash flow statements, cash flow statement supplementary forms and the like in the annual report data of companies, automatically obtains key financial account values ​​of companies and automatically calculates key process data required for evaluating the health status of companies, automatically generates a comprehensive health status report of companies, and presents the health status evaluation results of companies in the same area, thereby greatly improving the efficiency of investors in analyzing annual reports of companies and overcoming the problem of regional dispersion of evaluation results; reducing the difficulty of investors in analyzing annual reports of companies, achieving the goal of quickly and accurately evaluating the health status of companies to be invested without the need for investors to master professional financial skills, and the financial form information is comprehensive, and the health status evaluation results of companies obtained on this basis are more accurate.

[0015] An automatic analysis method for enterprise financial statements, comprising:

[0016] Step S100: Setting the analysis conditions of the enterprise financial statements to be analyzed, including the investment category to be invested, the selected investment product conditions corresponding to the investment category to be invested, the maximum annual report analysis period, the annual report extraction website and the enterprise health status assessment template;

[0017] Step S200: According to the set analysis conditions, a list of companies of products to be invested is obtained through web crawler technology;

[0018] Step S300: Downloading annual reports of the companies respectively according to the obtained list of companies of products to be invested;

[0019] Step S400: parse the enterprise annual report using PDF parsing technology to obtain the enterprise annual data;

[0020] Step S500: extracting financial forms from the annual data of the enterprise and consolidating and collating them, the financial forms include the balance sheet, the consolidated income statement, the consolidated cash flow statement, the cash flow statement supplementary form and the net profit attributable to the parent company data; calculating and marking the names of the financial items with abnormal annual change rates in the financial forms;

[0021] Step S600: Obtain the key financial account values ​​of the financial form and calculate the key process data required for assessing the health status of the enterprise, and finally automatically generate a comprehensive health status assessment report for the enterprise.

[0022] The step S200 specifically includes:

[0023] Step S210: calling the preset Chrome or Firefox browser driver webdriver and the web automation access tool selenium to drive the browser to work, access the list of companies of the products to be invested in and automatically obtain the website address;

[0024] Step S220: Use webdriver's xpath to locate the category to be invested, and then filter the investment products that meet the requirements according to the set selected investment product conditions to obtain the company list corresponding to the investment product.

[0025] The method for downloading the enterprise annual report in step S300 is specifically as follows:

[0026] Step S310: calling the Selenium program module to drive the browser to access the website for extracting the company's annual report;

[0027] Step S320: Use the xpath of webdriver to locate the object to be searched, and input the company name to search the annual report data of the company to be analyzed;

[0028] Step S330: Obtain the total number of retrieved annual report data;

[0029] Step S340: Download the company's annual report according to the set maximum annual report analysis period.

[0030] The step S400 specifically includes:

[0031] Step S410: import the parsing library pdfplumber and the excel operation module xlwings, use the company list, annual report and PDF as search keywords, obtain all annual report file names in the company annual report storage directory, sort out a nested dictionary with the company name as the key and the list of annual report names as the value; automatically generate the corresponding excel file with the company name as the unit;

[0032] Step S420: Using the company name as the key, traverse the nested dictionary to obtain the file name of the company's annual report to be analyzed and add a corresponding form in the Excel file;

[0033] Step S430: Analyze the annual reports of the companies to be analyzed one by one, including:

[0034] Step S431: extract the audit opinions of accounting firms in each annual enterprise report by calling the extract_text() method in the pdfplumber library; extract all the tables in each annual enterprise report by calling the extract_tables() method in the pdfplumber library;

[0035] Step S432: Save the audit opinions of accounting firms for each year and all form contents obtained into the form corresponding to the Excel file.

[0036] The step S500 specifically includes:

[0037] Step S510: Using Python language, importing the xlwings module, and opening the Excel file;

[0038] Step S520: traverse the sheet names in the Excel document, extract the sheet names with the original data of the enterprise annual report and store them in the annual report file name list;

[0039] Step S530: traverse and open the forms in the annual report file name list, and use xlwings to obtain the row number and column number of the cell containing data in the form;

[0040] Step S540: Use xlwings to read the sheet to obtain the audit opinion; obtain the starting and ending row numbers of the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary table and net profit attributable to the parent company in the financial form, and calculate the number of Excel rows required to save the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary table and net profit attributable to the parent company data respectively;

[0041] Step S550: According to the number of Excel rows that need to be occupied, reorganize the form that only contains the audit opinion of the accounting firm on the annual report of the enterprise to be analyzed, the consolidated balance sheet, the consolidated income statement, the consolidated cash flow statement, the cash flow statement supplementary form and the net profit attributable to the parent company data to obtain a merged Excel file;

[0042] Step S560: Calculate and mark the abnormal account names of each financial account in the financial form whose annual change rate exceeds the preset value, and store the abnormal account names in the abnormal account dictionary.

[0043] The step S600 specifically includes:

[0044] Step S610: Obtain the key financial account values ​​of the enterprise to be analyzed in each year from the merged Excel table;

[0045] Step S620: Calculate the key process data required for assessing the health status of the enterprise according to the key financial account values ​​of the enterprise to be analyzed in each year, and mark the abnormal process data in the key process data;

[0046] Step S630: Generate an enterprise health status assessment report based on the maximum annual report analysis period, enterprise health status assessment standards and abnormal process data.

[0047] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0048] The present invention realizes automatic acquisition of enterprise lists of products to be invested, automatic downloading of enterprise annual reports, automatic parsing of enterprise annual report data PDF, automatic extraction and organization of financial forms such as enterprise consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary form, etc., automatic acquisition of key financial account values ​​of enterprises and automatic calculation of key process data required for evaluating the health status of enterprises, and automatic generation of a complete solution for comprehensive health status evaluation reports of enterprises, thereby improving the efficiency of investors in analyzing annual reports of enterprises; reducing the difficulty of investors in analyzing annual reports of enterprises, and investors can quickly and accurately evaluate the health status of enterprises to be invested without mastering professional financial skills; the evaluation results are comprehensive and presented in a unified manner in different regions. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a system block diagram of the present invention. DETAILED DESCRIPTION

[0050] The present invention is further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.

[0051] Embodiment 1:

[0052] Combined with Figure 1 As shown, an automatic analysis system for corporate financial statements includes a condition analysis setting module, a corporate list acquisition module, an annual report acquisition module, an annual report data analysis module, a financial form acquisition module, an enterprise health status assessment module, and a work status and analysis result output module, wherein:

[0053] The conditional analysis setting module is used to set the analysis conditions, which include the categories to be invested (such as A-shares, Hong Kong stocks, US stocks, equities, corporate bonds, index funds, etc.), the selected investment product conditions corresponding to the categories to be invested, the maximum annual report analysis period, the annual report extraction website, and the enterprise health status assessment standards. The categories to be invested and the selected investment product conditions corresponding to the categories to be invested are sent to the enterprise list acquisition module, the maximum annual report analysis period and the annual report extraction website are sent to the annual report acquisition module, and the enterprise health status assessment standards are sent to the enterprise health status assessment module;

[0054] The enterprise list acquisition module is used to automatically select a list of high-quality enterprise names with investment analysis value from the enterprise list acquisition website server according to the investment categories and the selected investment product conditions corresponding to the investment categories. The acquired enterprise name list information will be passed to the annual report acquisition module. The working status of the enterprise list acquisition module for products to be invested is transmitted to the working status and analysis result output module in real time;

[0055] The annual report acquisition module downloads the annual report from the annual report extraction website and saves it to the specified path of the mobile communication terminal or PC according to the maximum annual report analysis period and the list of acquired companies; at the same time, the downloaded annual report information is passed to the annual report data analysis module. The working status of the annual report acquisition module is transmitted to the working status and analysis result output module in real time;

[0056] The annual report data parsing module uses PDF parsing technology to parse the downloaded annual report of the enterprise to obtain the annual report data. The parsed annual report data is transmitted to the financial form acquisition module. The working status of the annual report data parsing module is transmitted to the working status and analysis result output module in real time.

[0057] The financial form acquisition module obtains the audit opinion of the company's annual report based on the annual report data obtained through analysis, extracts financial forms and organizes and merges them. The financial forms include the balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplement and parent net profit data. The names of the financial accounts with abnormal annual change rates in the financial forms are marked. The working status of the financial form acquisition module and the information of the financial accounts with abnormal annual change rates are transmitted to the working status and analysis result output module in real time;

[0058] The enterprise health status assessment module obtains the key financial items of the enterprise in each year according to the maximum annual report analysis period, enterprise health status assessment standards and various financial items in the financial form. The key financial items include total assets, total liabilities, monetary funds, short-term loans and interest payable; calculates the key process data required for assessing the health status of the enterprise, including the difference between monetary funds and interest-bearing liabilities, the growth rate of total assets, and the growth rate of total liabilities, assesses the cash flow, debt risk and industry status of the enterprise, and completes the output of the health status report to the working status and analysis result output module. The working status of the enterprise health status assessment module and the assessed health status are transmitted to the working status and analysis result output module in real time;

[0059] The working status and analysis result output module is used to display the setting results of the analysis conditions, the acquired enterprise name list information, the annual change rate abnormal subject information, the assessed enterprise health status, the enterprise list acquisition module for investment products, the annual report acquisition module, the annual report data analysis module, the financial form acquisition module, the enterprise health status assessment module and other modules in real time, and export the enterprise health status report to the specified path in the mobile communication terminal or PC.

[0060] The present invention automatically obtains a list of companies of products to be invested, automatically downloads annual reports of companies, automatically analyzes annual report data of companies, automatically extracts and organizes financial forms such as consolidated balance sheets, consolidated income statements, consolidated cash flow statements, cash flow statement supplementary forms and the like in the annual report data of companies, automatically obtains key financial account values ​​of companies and automatically calculates key process data required for evaluating the health status of companies, automatically generates a comprehensive health status report of companies, and presents the health status evaluation results of companies in the same area, thereby greatly improving the efficiency of investors in analyzing annual reports of companies and overcoming the problem of regional dispersion of evaluation results; reducing the difficulty of investors in analyzing annual reports of companies, achieving the goal of quickly and accurately evaluating the health status of companies to be invested without the need for investors to master professional financial skills, and the financial form information is comprehensive, and the health status evaluation results of companies obtained on this basis are more accurate.

[0061] Embodiment 2:

[0062] An automatic analysis method for enterprise financial statements, comprising:

[0063] Step S100: Setting the analysis conditions of the enterprise financial statements to be analyzed, including the investment categories to be analyzed (A-share stocks, Hong Kong stocks, US stocks, equity, corporate bonds, index funds, etc.), the selected investment product conditions corresponding to the investment categories to be analyzed, the maximum annual report analysis period, the annual report extraction website, and the enterprise health status assessment template;

[0064] For example, the investment category is A-share stocks;

[0065] The annual report extraction website is http: / / www.cninfo.com.cn / new / index.

[0066] The website for obtaining the list of enterprises is http: / / www.aiwencai.net;

[0067] The selected investment product conditions preset low, medium and high standards:

[0068] The low standard is that the dynamic price-earnings ratio is less than or equal to 50, the company has been listed for more than or equal to 3 years, the gross profit margin is greater than or equal to 35% for 3 consecutive years, the cash content of net profit is greater than or equal to 80% for 3 consecutive years, the ROE is greater than or equal to 15% for 3 consecutive years, and the debt-to-asset ratio is less than or equal to 60% for 3 consecutive years;

[0069] The medium standard is that the dynamic price-earnings ratio is less than or equal to 40, the company has been listed for more than or equal to 4 years, the gross profit margin is greater than or equal to 40% for 3 consecutive years, the cash content of net profit is greater than or equal to 85% for 3 consecutive years, the ROE is greater than or equal to 15% for 3 consecutive years, and the debt-to-asset ratio is less than or equal to 55% for 3 consecutive years;

[0070] The high standard is that the dynamic price-earnings ratio is less than or equal to 30, the company has been listed for more than or equal to 5 years, the gross profit margin is greater than or equal to 45% for 3 consecutive years, the cash content of net profit is greater than or equal to 100% for 3 consecutive years, the ROE is greater than or equal to 15% for 3 consecutive years, and the debt-to-asset ratio is less than or equal to 45% for 3 consecutive years;

[0071] The maximum annual report analysis period is 6 years.

[0072] Step S200: according to the set analysis conditions, a list of companies of products to be invested in investment categories such as A-shares, Hong Kong stocks, US stocks, equity, corporate bonds, index funds, etc. is obtained through web crawler technology;

[0073] The method for automatically obtaining the list of companies of products to be invested is as follows:

[0074] S200-1: Pre-install Chrome or Firefox browser driver webdriver and web automation access tool selenium;

[0075] S200-2: Use Python language to call the selenium program module to drive the browser to access the list of companies to be invested in and automatically obtain the website address;

[0076] S200-3: After the website of the company list of the products to be invested is accessed successfully, the xpath of the webdriver is used to locate the [Stock Search] object " / / *[@id="stockpick_bar"] / a / span". After the [Stock Search] object is located successfully, the click() method in the webdriver is used to click the object;

[0077] S200-4: After the [Stock Search] object is clicked successfully, the [Ask about the Financial Condition Input Box] object " / / *[@id="auto"] is located using the webdriver's xpath, and the selected investment product conditions are entered in the [Ask about the Financial Condition Input Box];

[0078] Taking the standard investment product conditions in A-shares as an example, the [Ask about financial conditions input box] will automatically enter "dynamic price-earnings ratio less than or equal to 40, listed for more than or equal to 4 years, gross profit margin greater than or equal to 40% for 3 consecutive years, cash content of net profit greater than or equal to 85% for 3 consecutive years, ROE greater than or equal to 15% for 3 consecutive years, and debt-to-asset ratio less than or equal to 55% for 3 consecutive years".

[0079] S200-5: After the investment product conditions are successfully input into the [Ask the Money Condition Input Box], the [Ask the Money Button] object " / / *[@id="qs-enter"]" of the webdriver is used to locate the [Ask the Money Button] object. After the [Ask the Money Button] object is located successfully, the click() method in the webdriver is used to click the object.

[0080] Taking the screening date of 2021.3.3 as an example, after clicking the [Ask the Finance Button] successfully, the browser will select 8 stocks that meet the screening requirements from 4205 A shares, and the company name objects corresponding to the 8 stocks will be displayed in the xpath as:

[0081] In “ / / *[@id="tableWrap"] / div[2] / div / div[2] / div / table / tbody / tr[Numble] / td[4] / div / a”, Numble is the nth selected enterprise. The list of enterprises whose products are to be invested is automatically obtained through the driver_selen.find_element_by_xpath().text method.

[0082] Step S300: Download the annual reports of the companies according to the obtained list of companies with products to be invested, including:

[0083] S300-1: Initialize the number of companies to be analyzed List_order = 1, and the year of the company to be analyzed Year_analysis is the current year minus 1;

[0084] S300-2: The annual report acquisition module uses Python language, imports the selenium.webdriver.common.keys import Keys class, and calls the Selenium program module to drive the browser to access the company's annual report extraction website;

[0085] S300-3: After successfully accessing the URL for extracting the company's annual report, use webdriver's xpath to locate the [code / abbreviation / pinyin / keyword / executive search] object

[0086] " / html / body / header / div / div[5] / div / div[1] / input"

[0087] [Code / Abbreviation / Pinyin / Keyword / Executive Search] After the object is successfully located, enter the List_order company name in the list of companies to be analyzed, use the send_keys() method in webdriver to enter the name of the company whose annual report is to be downloaded, and then use send_keys(Keys.ENTER) to start searching for the company data to be analyzed.

[0088] S300-4: After the enterprise data to be analyzed is successfully retrieved, the click() method in webdriver is used to click the [Classification] object

[0089] " / / *[@id="main"] / div[2] / div / div[2] / div / div / div[2] / div[1] / div[1] / form / div[2] / div / span / button"

[0090] Then use the click() method in webdriver to select the [Annual Report] object

[0091] " / / *[@id="el-popover-647"] / div[1] / label[1] / span[2] / span"

[0092] Finally, use the click() method in webdriver to click the [query] object

[0093] " / / *[@id="main"] / div[2] / div / div[2] / div / div / div[2] / div[1] / div[1] / form / div[4] / div / button / span"

[0094] Start retrieving the annual report data of the company to be analyzed;

[0095] S300-4: After the annual report data of the enterprise to be analyzed is retrieved successfully, the total number of retrieved annual report data items Total_number is obtained through the [Number of Search Results] object " / / *[@id="main"] / div[2] / div / div[2] / div / div / div[2] / div[1] / div[4] / div / span";

[0096] S300-5: Access search result link object

[0097] / / *[@id="main"] / div[2] / div / div[2] / div / div / div[2] / div[1] / div[3] / div / div / div[3] / table / tbody / tr[Numble2] / td[1] / div / a / span[1]

[0098] The variable Numble2 in tr[Numble2] is the xpath of the Numble2th link in the search result, and the name of the Numble2th link is extracted through the find_element_by_xpath().text method in webdriver.

[0099] S300-6: Determine whether the name year of the link No. Numble2 contains Year_analysis;

[0100] If the name year of the Numble2th link contains Year_analysis, then download the annual report corresponding to the Numble2th link, and at the same time, Numble2=Numble2+1, Year_analysis=Year_analysis-1, and go to step S300-7;

[0101] If the name year of the Numble2th link does not contain Year_analysis, then Numble2=Numble2+1, and the process returns to step S300-5.

[0102] S300-7: Determine whether Year_analysis is ≥ current year - (the maximum annual report analysis period of the enterprise to be analyzed, Years + 1);

[0103] If Year_analysis ≥ current year - (the maximum annual report analysis period of the enterprise to be analyzed Years + 1), then return to step S300-5;

[0104] If Year_analysis < current year - (the maximum annual report analysis period of the enterprise to be analyzed, Years + 1), the annual report data of the current analyzed enterprise has been downloaded, and the next annual report of the enterprise to be analyzed will be downloaded, List_order = List_order + 1, and steps S300-3 to S300-7 will be repeated until all annual reports of the enterprises in the list of enterprises to be analyzed are downloaded. If a download exception occurs, the fault routine is saved; if all annual reports of the enterprises in the list of enterprises to be analyzed are downloaded, the process proceeds to step S400, and the annual report data analysis module will perform PDF analysis on the annual reports of the enterprises to be analyzed.

[0105] Step S400: parse the enterprise annual report using PDF parsing technology to obtain the enterprise annual data, including:

[0106] S400-1: The annual report data parsing module uses Python language, imports the parsing library pdfplumber and the Excel operation module xlwings. PDFplumber is a PDF document parsing library based on pdfminer and completely developed by Python. It can not only obtain the specific information of each character, rectangle, line and other objects, but also extract text and tables; xlwings is a third-party library for reading and writing Excel data and modifying cell formats;

[0107] S400-2: Based on the names of the companies in the list of companies to be analyzed, search keywords such as "annual report", ".PDF", etc., the annual report data parsing module will obtain all annual report file names in the directory where the annual reports of the companies to be analyzed are saved, and will eventually compile a nested dictionary files_in with the names of the companies in the list of companies to be analyzed as keys and a list of the names of the annual reports to be analyzed as values.

[0108] Take the year of the enterprise to be analyzed, Year_analysis=2019, the maximum annual report analysis period of the enterprise to be analyzed, Years=3, and the list of enterprises to be analyzed includes two enterprises, "Yili Group" and "Rom Electric Appliances", as an example, then the nested dictionary files_in generated by the annual report data parsing module is {'Yili Group':['Yili Group: 2019 Annual Report.PDF', 'Yili Group: 2018 Annual Report.PDF', 'Yili Group: 2017 Annual Report.PDF'], 'Rom Electric Appliances':['Rom Electric Appliances: 2019 Annual Report.PDF', 'Rom Electric Appliances: 2018 Annual Report (Updated).PDF', 'Rom Electric Appliances: 2017 Annual Report.PDF']};

[0109] S400-3: Traverse the names of each company in the list of companies to be analyzed, and then automatically generate corresponding Excel files with the names of the companies to be analyzed as units, such as "Yili Group 2019 Financial Analysis Report_2021.2.23.xlsx", "Rom Electric Appliances 2019 Financial Analysis Report_2021.2.23.xlsx".

[0110] S400-4: Taking the enterprise to be analyzed as a key, traverse the files_in dictionary in S400-2, obtain the file name of the annual report of the enterprise to be analyzed and add a corresponding sheet in the Excel file.

[0111] Taking the company to be analyzed as "Yili Group" as an example, traverse the dictionary files_in[Yili Group], and obtain the annual report files of Yili Group to be analyzed, which are named "Yili Group: 2019 Annual Report.PDF", "Yili Group: 2018 Annual Report.PDF", and "Yili Group: 2017 Annual Report.PDF". The annual report data parsing module will add sheet forms named "2019 Financial Data", "2018 Financial Data", and "2017 Financial Data" to the "Yili Group 2019 Financial Analysis Report_2021.2.23.xlsx" file.

[0112] S400-5: After the sheet form in step S400-4 is added successfully, the annual report data parsing module will parse the annual reports of the companies to be analyzed one by one. During the parsing process, the audit opinions of the accounting firms in each annual corporate report are extracted by calling the extract_text() method in the pdfplumber library; all the forms in each annual corporate report are extracted by calling the extract_tables() method in the pdfplumber library. The audit opinions of the accounting firms for each year and all form contents are saved to the corresponding sheet form added in step S400-4, where the audit opinions of the accounting firms are saved in cell A1 of the sheet, and other form contents are saved one by one starting from cell A2.

[0113] Since the annual reports of all listed companies must be audited by accounting firms, the report format and the naming of financial accounts must follow certain rules. It has been verified in practice that the names of financial accounts in financial forms such as the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplement, and parent company net profit data parsed using the pdfplumber library are all saved in column A of the sheet.

[0114] S400-6: Repeat steps S400-4 to S400-5 until the annual report data of all enterprises in the list of enterprises to be analyzed are fully parsed.

[0115] Step S500: extracting financial forms from the annual data of the enterprise and consolidating and collating them, the financial forms include the balance sheet, the consolidated income statement, the consolidated cash flow statement, the cash flow statement supplementary form and the net profit attributable to the parent company data; calculating and marking the names of the financial items with abnormal annual change rates in the financial forms;

[0116] S500-1: The financial form acquisition module uses Python language, imports the xlwings module, and opens the Excel table that contains the company's annual report data parsed by step S400-6.

[0117] Such as "Yili Group 2019 Financial Analysis Report_2021.2.23.xlsx".

[0118] S500-2: traverse the sheet names in the Excel document, extract the sheet names that contain the original data of the annual report of the enterprise to be analyzed, and store them in the annualreport_filename list.

[0119] For example, after extracting the original data sheet name of the annual report in S400-5 "Yili Group 2019 Financial Analysis Report_2021.2.23.xlsx", Annualreport_filename=["2019 Financial Data", "2018 Financial Data", "2017 Financial Data"].

[0120] S500-3: traverse and open the sheet in the annualreport_filename list, and use xlwings to obtain the row number rows_numb and column number columns_numb of the cell containing data in the sheet.

[0121] S500-4: Use xlwings to read the contents of cell A1 in the sheet to obtain the audit opinion of the accounting firm. If the audit opinion of the accounting firm contains the content of "standard unqualified opinion", proceed to step S500-5; if the audit opinion of the accounting firm does not contain the content of "standard unqualified opinion", there is no point in further analyzing the financial statements of this year, return to step S500-3, and start extracting other years' consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplement, net profit attributable to parent company data and other financial forms.

[0122] S500-5: Traverse the cells starting from the second row of column A of sheet and ending at rows_numb. Use Python's replace('',''), replace('\n','').replace('\r',''), and replace(':',':') methods to remove or replace special characters such as spaces, line breaks, and Chinese characters ":" in cells of column A, increase the success rate of subsequent financial account retrieval, and improve the compatibility of the system of the present invention with all corporate annual report data analysis.

[0123] S500-6: Starting from the second row of column A in the sheet and ending at rows_numb, traverse the cells to obtain the row numbers of the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplement, net profit attributable to the parent company and other financial forms in the sheet.

[0124] The annual reports of all listed companies must be audited by accounting firms, and the report format and financial account naming must follow certain rules. It has been verified in practice that more than 98% of the names of financial accounts corresponding to the financial forms such as the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplement, and parent net profit data in the annual reports of each company are the same. In order to solve the problem of inconsistent financial account names in the annual reports of each company, the present invention uses the "or" logical operator, "==" comparison operator, "in" member operator, etc. to perform logical judgment on the search keywords. For example, taking the start line number start_hbzcfzb and the end line number end_hbzcfzb of the consolidated balance sheet saved in the sheet form as an example, a python solution code is:

[0125] #------Get the start and end rows of the consolidated balance sheet-----#

[0126] For i in range(1,int(rows_numb)):

[0127] A_value=sht.range("A"+str(i)).value

[0128] if A_value==None:

[0129] continue

[0130] elif A_value == 'Current assets:':

[0131] start_hbzcfzb = i

[0132] elif ('Total liabilities and equity' in str(A_value)) or ('Liabilities and equity' in str(A_value) ):

[0133] end_hbzcfzb = i

[0134] Break

[0135] Similarly, the starting line number start_hblrb and the ending line number end_hblrb of the consolidated income statement in the sheet are located through the keywords "I. Operating Income" or "I. Total Operating Income" and "Earnings per Share:"; the starting line number start_hbxjllb and the ending line number end_hbxjllb of the consolidated cash flow statement in the sheet are located through the keywords "Cash Flow from Operating Activities:", "Year-End Cash and Cash Equivalents Balance" or "End-of-Period Cash and Cash Equivalents Balance"; the starting line number start_xjllbbc and the ending line number end_xjllbbc of the cash flow statement supplement in the sheet are located through the keywords "Adjust Net Profit to Operating Activities" and "Net Change in Cash and Cash Equivalents:"; the starting line number start_gmjlr of the net profit attributable to the parent company in the sheet is located through the keyword "Weighted Average Return on Net Assets".

[0136] S500-7: According to the starting and ending row numbers of the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary sheet, net profit attributable to the parent company and other financial forms obtained in step S500-6, obtain the form content of the corresponding financial statements and assign them to list variables such as Balance_sheet_Date, Income_statement_Date, Cash_flow_Date, Cash_suppflow_Date, Net_profit_Date, etc. For example, a python implementation code:

[0137] Balance_sheet_Date=sht.range("A"+str(start_hbzcfzb)+":AB"+str(end_hbzcfzb)).value #Merge balance sheet data

[0138] Income_statement_Date=sht.range("A"+str(start_hblrb)+":AB"+str(end_hblrb)).value #Merge income statement data

[0139] Cash_flow_Date=sht.range("A"+str(start_hbxjllb)+":AB"+str(end_hbxjllb)).value #Merge cash flow statement data

[0140] Cash_suppflow_Date=sht.range("A"+str(start_xjllbbc)+":AB"+str(end_xjllbbc)).value #Cash flow supplementary table data

[0141] Net_profit_Date=sht.range("A"+str(start_gmjlr)+":AB"+str(start_gmjlr)).value#Net profit data attributable to parent company

[0142] S500-8: Clear the sheet contents except for cell A1, and calculate the number of Excel rows Balance_sheet_len, Income_statement_len, Cash_flow_len, Cash_suppflow_len, Net_profit_len required to save the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary form, net profit attributable to the parent company and other financial forms according to the starting and ending row numbers of the sheet. For example, a python implementation method:

[0143] Balance_sheet_len=end_hbzcfzb-start_hbzcfzb+5#Number of consolidated balance sheet rows

[0144] Income_statement_len=end_hblrb-start_hblrb+5#Number of rows in the consolidated income statement

[0145] Cash_flow_len=end_hbxjllb-start_hbxjllb+5#Number of rows in the consolidated cash flow statement

[0146] Cash_suppflow_len=end_xjllbbc-start_xjllbbc+5 #Number of rows in the cash flow supplement table

[0147] Net_profit_len=4 #Number of rows of net profit attributable to parent company

[0148] S500-9: According to the number of excel rows required to save the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary form, net profit attributable to the parent company and other financial forms, reorganize the sheet that only contains the audit opinion of the accounting firm on the annual report of the analyzed enterprise, the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary form, net profit attributable to the parent company and other financial forms. For example, a python implementation method:

[0149] sht.range('A2:A10000').api.EntireRow.Delete() #Delete the row where the cell 'A2:A10000' is located.

[0150] sht.range("A2").value='The following is the consolidated balance sheet'

[0151] sht.range("A3").value=Balance_sheet_Date#Save the consolidated balance sheet data starting from cell A2

[0152] sht.range('A'+str(Balance_sheet_len-1)).value='The following is a consolidated income statement'

[0153] sht.range('A'+str(Balance_sheet_len)).value=Income_statement_Date

[0154] sht.range('A'+str(Balance_sheet_len+Income_statement_len-1)).value='The following is a consolidated cash flow statement'

[0155] sht.range('A'+str(Balance_sheet_len+Income_statement_len)).value=Cash_flow_Date

[0156] sht.range('A'+str(Balance_sheet_len+Income_statement_len+Cash_flow_len-1)).value='The following is a supplementary cash flow statement'

[0157] sht.range('A'+str(Balance_sheet_len+Income_statement_len+Cash_flow_len)).value=Cash_suppflow_Date

[0158] sht.range('A'+str(Balance_sheet_len+Income_statement_len+Cash_flow_len+Cash_suppflow_len-1)).value='The following is the net profit attributable to the parent company'

[0159] sht.range('A'+str(Balance_sheet_len+Income_statement_len+Cash_flow_len+Cash_suppflow_len)).value=Net_profit_Date

[0160] S500-10: Calculate and mark the abnormal account names of each financial account in the financial form whose annual change rate exceeds ±30%, and store the abnormal account names in the Abnormal_account dictionary.

[0161] S500-11: Repeat steps S500-3 to S500-10 until all financial forms such as the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplement, and net profit attributable to the parent company for the corresponding year in the Annualreport_filename list are extracted and organized.

[0162] Step S600: Obtain the key financial account values ​​of the financial form and calculate the key process data required for assessing the health status of the enterprise, and finally automatically generate a comprehensive health status assessment report for the enterprise.

[0163] S600-1: The enterprise health status assessment module uses Python language to automatically obtain the key financial account values ​​of the enterprise to be analyzed in each year from the Excel document extracted and sorted in step S500.

[0164] The key financial account values ​​that need to be obtained in the present invention include but are not limited to: "Total Assets", "Total Liabilities", "Money", "Short-term Loans", "Interest Payable", "Non-current Liabilities Due within One Year", "Long-term Loans", "Bonds Payable", "Long-term Payables", "Notes Payable", "Accounts Payable", "Advance Payments", "Notes Receivable", "Accounts Receivable", "Prepayments", "Fixed Assets", "Construction in Progress", "Construction Materials", "Financial Assets at Fair Value Through Profit and Loss", "Available-for-Sale Financial Assets", "Hold-to-Maturity Investments", "Investment Properties", "Cash Received from Sales of Goods and Rendering of Services", "Operating Income for the Current Year", "Operating Income for the Previous Year", "Operating Income" or "Total Operating Income", "Operating Costs" or "Total Operating Costs", "Taxes and Surcharges", "Sales" The following items include "expenses", "administrative expenses", "financial expenses", "total profit", "net cash flow from operating activities", "net profit", "weighted average return on equity (ROE)", "depreciation of fixed assets", "amortization of intangible assets", "cash paid to repay debts", "cash paid as dividends to common shareholders and restricted stock holders" or "cash paid for dividends, profits or interest payments", "cash paid to acquire or construct fixed assets, intangible assets and other long-term assets", "net cash received from disposal of fixed assets, intangible assets and other long-term assets", "net cash flow from operating activities", "net cash flow from financing activities", "net increase in cash and cash equivalents", "year-end cash and cash equivalents balance" or "end-of-period cash and cash equivalents balance".

[0165] Furthermore, the present invention discloses a method for obtaining the key financial account values ​​of the enterprise to be analyzed in each year:

[0166] S600-1-1: Locate the column number of the Excel sheet where the financial account values ​​of this year and last year are located;

[0167] It has been verified in practice that the financial account values ​​of most companies are saved in column B of Excel after being processed by the S600 financial form acquisition module, and the financial account values ​​of a small number of companies are kept in other columns of Excel. It has been verified that the annual account value header contains the year number of this year (such as "2019") or the "end of period" or "current period" keywords, and the cells in the same row as the annual account value header contain the "project" keyword. In this regard, the present invention provides a method for locating the column number column of the Excel sheet where the financial account values ​​of this year and the previous year are located: traverse the cells in column A of the sheet, locate the row number when the cell content is equal to "project", and start from the second column of the row (i.e., column B) to determine whether the cell content contains the year number of this year (such as "2019") or the "end of period" or "current period" keywords. If it is contained, the column number column of the Excel sheet where the financial account values ​​of this year and the previous year are located can be located. A Python implementation code is as follows:

[0168] cell_new = sht.used_range.last_cell #sheet The cell at the bottom right corner of the page, get the maximum number of rows and columns

[0169] rows_numb_new=cell_new.row#number of rows

[0170] columns_numb_new=cell_new.column#Number of columns

[0171] column_ID=0

[0172] for row in range(1,int(rows_numb_new)):

[0173] A_value = sht.range("A"+ str(row)).value

[0174] if A_value == None:

[0175] continue

[0176] elif 'item' == A_value:

[0177] for column in range(2,columns_numb_new +1):

[0178] Cell_value = sht.range(colun_name[str(column)]+ str(row)).value

[0179] if type(Cell_value ) == datetime.datetime:#2020-09-25 00:00:00

[0180] my_date_handler = lambda year, month, day, **kwargs: "%04i-%02i-%02i" % (year, month, day)

[0181] Cell_value=str(sht.range(colun_name[str(column)]+ str(row)).options(dates=my_date_handler).value)#Date, 2020-09-25

[0182] if Cell_value == None:

[0183] continue

[0184] if (Analyzed_year_current in Cell_value) or ('end of period' in Cell_value) or ('current period' in Cell_value):

[0185] Currentyear_ID = column

[0186] column_ID =1

[0187] break

[0188] if column_ID == 1:

[0189] break

[0190] S600-2: According to the financial account name, retrieve the corresponding account value in the Excel sheet;

[0191] In the enterprise health assessment module, a financial account value retrieval function Data_Search(Current_value,lis=[]) is designed, where the row parameter Current_value is the name of the financial account to be retrieved, and multiple lists can be nested in the row parameter lis. For example, the row parameter lis[0][0] stores the financial account keyword used for retrieval, and the row parameter lis[0][1] is used to store the comparison method between the financial account keyword to be retrieved and the cell content in column A in the excel sheet. When the row parameter lis[0][1]=1, the comparison operator "==" is used to compare the retrieved financial account keyword with the cell content in column A in the excel sheet; when the row parameter lis[0][1]=2, the member operator "in" is used to compare the retrieved financial account keyword with the cell content in column A in the excel sheet. Taking the retrieval of the "Total Assets" and "Year-end Cash and Cash Equivalents Balance" account values ​​as an example, a retrieval code is as follows:

[0192] zczj_date=Data_Search('Total assets',lis=[['Total assets',1]])#Total assets

[0193] nmxjjxjdjwye_date=Data_Search('Year-end cash and cash equivalents balance',lis=[['Year-end cash and cash equivalents balance',2],['End of period cash and cash equivalents balance',2]])#Year-end cash and cash equivalents balance

[0194] Furthermore, it has been verified in practice that the financial account values ​​of most companies' financial statements processed by the S600 step financial form acquisition module are in the same row as the corresponding financial account in the excel sheet, but there are line breaks in the annual report (PDF) document of a very small number of company account names, resulting in the abnormal situation that the financial account values ​​processed by the S600 step financial form acquisition module are not in the same row as the corresponding financial account in the excel sheet, and the account name will occupy 3 rows of column A. In view of this abnormal phenomenon, when locating the financial account name, the present invention first compares the financial account name to be retrieved with a single cell in column A of the excel sheet, and if the retrieval fails, it will try to integrate nearly 3 rows of cells in column A of the excel sheet as a string type and then compare them with the financial account name to be retrieved.

[0195] S600-3: The enterprise health status assessment module automatically calculates the key process data required to assess the enterprise health status based on the key financial account values ​​of the enterprise to be analyzed in each year.

[0196] The key process data to be calculated in the present invention include but are not limited to: the difference between "cash and cash equivalents" and "interest-bearing liabilities", the ratio of "cash and cash equivalents" to "total assets", the difference between "accounts receivable and payable" and "advance payments", the ratio of "accounts receivable" to "total assets", the ratio of "fixed assets + construction in progress + construction materials" to "total assets", the ratio of "financial assets measured at fair value and whose changes are included in current profit and loss + available-for-sale financial assets + held-to-maturity investments + investment properties" to "total assets", the ratio of "cash received from sales of goods and provision of services" to "operating income", the ratio of "expense rate" to "gross profit margin", the ratio of "main operating profit" to "total profit", the ratio of "net cash flow generated from operating activities" to "main operating profit", the difference between "net cash flow generated from operating activities" and "depreciation of fixed assets + amortization of intangible assets + loan interest + cash dividends", and the payment for the purchase and construction of fixed assets, intangible assets and other long-term assets. The key process data required to assess the health of an enterprise include the ratio of "cash received from disposal of fixed assets, intangible assets and other long-term assets" to "net cash flow from operating activities", the ratio of "net cash recovered from disposal of fixed assets, intangible assets and other long-term assets" to "cash paid for purchase and construction of fixed assets, intangible assets and other long-term assets", dividend rate (the ratio of "cash paid as dividends to common shareholders and restricted stock holders" to "net profit"), total asset growth rate, total liabilities growth rate, debt ratio, monetary capital growth rate, "cash received from sale of goods and rendering of services" growth rate, operating income growth rate, operating income growth rate, operating cost growth rate, gross profit margin, taxes and surcharges growth rate, sales expense growth rate, administrative expense growth rate, total profit growth rate, main operating profit growth rate, main operating profit margin, net cash flow growth rate, net profit growth rate, net profit cash ratio (the ratio of "net cash flow from operating activities" to "net profit"), etc.

[0197] S600-4: The enterprise health status assessment module obtains the information such as the maximum annual report analysis period of the enterprise to be analyzed, the enterprise health status assessment standard, etc. input by the conditional analysis setting module, and marks the abnormal process data whose growth rate calculated in step S600-2 exceeds ±30%, and passes the process data information of the abnormal growth rate to step S600-5.

[0198] Furthermore, one of the evaluation standards prepared in the present invention (the following standards are all average values ​​in the most recent year and the analyzed years) is: cash and cash equivalents are greater than interest-bearing liabilities; the ratio of cash and cash equivalents to total assets is ≥0.2; "receivables and payables" (notes payable + accounts payable + advances received) - "prepayments and advances received" (notes receivable + accounts receivable + payments) ≥0; accounts receivable / total assets ≤0.1; the ratio of (fixed assets + construction in progress + construction materials) / total assets ≤0.45; (financial assets measured at fair value and whose changes are included in current profit and loss + available-for-sale financial assets + held-to-maturity investments + investment properties) / total assets ≤0.1; "cash received from sales of goods and provision of services" / "operating income" ≥0.6; operating income growth rate ((operating income this year - operating income last year) / operating income last year) ≥0.1; expense rate / gross profit rate <0.5; main operating profit Ratio (main operating profit / operating cost)>0.1; "main operating profit" / "total profit"≥0.8; net profit≥0; "net cash flow from operating activities" / "main operating profit"≥1; net cash flow from operating activities-(depreciation of fixed assets + amortization of intangible assets + loan interest + cash dividends)>0; 10%≤(cash paid for the purchase and construction of fixed assets, intangible assets and other long-term assets) / net cash flow from operating activities≤0.7; "net cash recovered from the disposal of fixed assets, intangible assets and other long-term assets" / "cash paid for the purchase and construction of fixed assets, intangible assets and other long-term assets"≤0.05; "net cash flow from operating activities"≥0; "net cash flow from financing activities"≤0; "net increase in cash and cash equivalents"≥0; "year-end cash and cash equivalents balance" or "end-of-period cash and cash equivalents balance"≥0.

[0199] S600-5: Automatically generate a comprehensive enterprise health status assessment report based on the enterprise health status assessment standards, key process data required for assessing the enterprise health status, and abnormal process data output by step S600-4.

[0200] The enterprise health assessment module automatically assesses the key process data required for assessing the enterprise health calculated in step S600-3, the enterprise health assessment standards obtained in step S600-4, and the abnormal process data output in step 600-4, and produces a number of comprehensive health status reports of the enterprise to be analyzed, such as cash flow, debt risk, industry status, profit quality, debt risk, the importance of the enterprise, the degree of focus on the main business, stability, operating results and gold content, combination types of net cash flow, product competitiveness, expansion ability, profitability, growth ability, operational ability, debt repayment ability, cost control ability, hematopoietic ability, capital profitability, enterprise quality, etc.

[0201] Furthermore, the relationship between the evaluation criteria prefabricated in step S600-4 of the present invention and the health report generated in S600-5 is as follows: the strength and expansion capacity of the company to be evaluated is evaluated through the "total assets" subject and the total assets growth rate; the debt risk of the enterprise is evaluated through the "liability ratio (total liabilities / total assets) ≤ 60%"; the debt repayment risk of the enterprise is evaluated through "cash and cash equivalents are greater than interest-bearing liabilities" and "the ratio of cash and cash equivalents / total assets ≥ 20%"; the industry status of the enterprise is evaluated through "receivables and payables (notes payable + accounts payable + advances) - prepayments and advances (notes receivable + accounts receivable + payments) ≥ 0" and "accounts receivable / total assets ≤ 0.1"; the industry status of the enterprise is evaluated through "(fixed assets + The importance of an enterprise is assessed by the ratio of ((construction in progress + construction materials) / total assets ≤ 0.45); the focus of an enterprise is assessed by "(financial assets at fair value through profit or loss + available-for-sale financial assets + held-to-maturity investments + investment properties) / total assets ≤ 0.1"; the industry position and growth capacity of an enterprise are assessed by "cash received from sales of goods and provision of services / operating income ≥ 0.6" and "operating income growth rate ((operating income of this year - operating income of the previous year) / operating income of the previous year) ≥ 0.1"; the competitiveness of an enterprise is assessed by "gross profit margin> 0.4"; the cost control ability of the company is assessed by "expense ratio / gross profit margin< 0.5" The profitability and profit quality of an enterprise shall be evaluated through "main operating profit (operating income - operating cost - taxes and surcharges - sales expenses - administrative expenses - financial expenses)>0", "main operating profit margin (main operating profit / operating cost)>0.1" and "main operating profit / total profit ≥0.8"; the operating results and gold content of an enterprise shall be evaluated through "net profit ≥0", "net cash flow from operating activities / main operating profit ≥1" and "net cash flow from operating activities - (depreciation of fixed assets + amortization of intangible assets + loan interest + cash dividends)>0"; the profitability of an enterprise's own capital shall be evaluated through "weighted average return on net assets (ROE)>0.15"; The company's hematopoietic capacity is evaluated by "net cash flow from operating activities - (depreciation of fixed assets + amortization of intangible assets + interest on loans + cash dividends) > 0"; the company's future growth capacity is evaluated by "10% ≤ (cash paid for the purchase and construction of fixed assets, intangible assets and other long-term assets) / net cash flow from operating activities ≤ 0.7" and "net cash recovered from the disposal of fixed assets, intangible assets and other long-term assets" / "cash paid for the purchase and construction of fixed assets, intangible assets and other long-term assets ≤ 0.05"; the dividend rate = ('cash paid for dividends distributed to common shareholders and restricted stock holders' or 'cash dividend amount') / net profit > 0.3” to evaluate the quality of the enterprise; “net cash flow from operating activities ≥ 0” and “net cash flow from financing activities ≤ 0” to evaluate the type of enterprise; “net increase in cash and cash equivalents ≥ 0” and “‘end of year cash and cash equivalents balance’ or ‘end of period cash and cash equivalents balance’ ≥ 0” to evaluate the stability of the enterprise.

[0202] Although the present invention is described herein with reference to the illustrative embodiments of the present invention, the above embodiments are only preferred embodiments of the present invention, and the embodiments of the present invention are not limited to the above embodiments. It should be understood that those skilled in the art can design many other modifications and embodiments, which will fall within the scope and spirit of the principles disclosed in this application.

Claims

1. A method for automatically analyzing corporate financial statements, characterized in that: include: Step S100: Setting the analysis conditions of the enterprise financial statements to be analyzed, including the investment category to be invested, the selected investment product conditions corresponding to the investment category to be invested, the maximum annual report analysis period, the annual report extraction website and the enterprise health status assessment template; Step S200: According to the set analysis conditions, a list of companies of products to be invested is obtained through web crawler technology; Step S300: Downloading annual reports of the companies respectively according to the obtained list of companies of products to be invested; Step S400: parse the enterprise annual report using PDF parsing technology to obtain the enterprise annual data; Step S500: extracting financial forms from the annual data of the enterprise and consolidating and collating them. The financial forms include the balance sheet, the consolidated income statement, the consolidated cash flow statement, the cash flow statement supplementary form and the net profit attributable to the parent company; Calculate and mark the names of financial accounts with abnormal annual change rates in financial forms; Step S600: Obtain the key financial account values ​​of the financial form and calculate the key process data required for assessing the health status of the enterprise, and finally automatically generate a comprehensive health status assessment report for the enterprise; The step S200 specifically includes: Step S210: calling the preset Chrome or Firefox browser driver webdriver and the web automation access tool selenium to drive the browser to work, access the list of companies of the products to be invested in and automatically obtain the website address; Step S220: Use webdriver's xpath to locate the category to be invested, and then select investment products that meet the requirements according to the set selected investment product conditions, and obtain the list of companies corresponding to the investment products; The method for downloading the enterprise annual report in step S300 is specifically as follows: Step S310: calling the Selenium program module to drive the browser to access the website for extracting the company's annual report; Step S320: Use the xpath of webdriver to locate the object to be searched, and input the company name to search the annual report data of the company to be analyzed; Step S330: Obtain the total number of retrieved annual report data; Step S340: downloading the annual report of the enterprise according to the set maximum annual report analysis period; The step S400 specifically includes: Step S410: import the parsing library pdfplumber and the excel operation module xlwings, use the company list, annual report and PDF as search keywords, obtain all annual report file names in the company annual report storage directory, sort out a nested dictionary with the company name as the key and the list of annual report names as the value; automatically generate the corresponding excel file with the company name as the unit; Step S420: Using the company name as the key, traverse the nested dictionary to obtain the file name of the company's annual report to be analyzed and add a corresponding form in the Excel file; Step S430: Analyze the annual reports of the companies to be analyzed one by one, including: Step S431: extract the audit opinions of accounting firms in each annual enterprise report by calling the extract_text() method in the pdfplumber library; extract all the tables in each annual enterprise report by calling the extract_tables() method in the pdfplumber library; Step S432: Save the audit opinions of accounting firms for each year and all form contents obtained into the form corresponding to the Excel file; The step S500 specifically includes: Step S510: Using Python language, importing the xlwings module, and opening the Excel file; Step S520: traverse the sheet names in the Excel document, extract the sheet names with the original data of the enterprise annual report and store them in the annual report file name list; Step S530: traverse and open the forms in the annual report file name list, and use xlwings to obtain the row number and column number of the cell containing data in the form; Step S540: Use xlwings to read the sheet to obtain the audit opinion; obtain the starting and ending row numbers of the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary table and net profit attributable to the parent company in the financial form, and calculate the number of Excel rows required to save the consolidated balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary table and net profit attributable to the parent company data respectively; Step S550: According to the number of Excel rows that need to be occupied, reorganize the form that only contains the audit opinion of the accounting firm on the annual report of the enterprise to be analyzed, the consolidated balance sheet, the consolidated income statement, the consolidated cash flow statement, the cash flow statement supplementary form and the net profit attributable to the parent company data to obtain a merged Excel file; Step S560: Calculate and mark the abnormal account names of each financial account in the financial form whose annual change rate exceeds the preset value, and store the abnormal account names in the abnormal account dictionary; The step S600 specifically includes: Step S610: Obtain the key financial account values ​​of the enterprise to be analyzed in each year from the merged Excel table; Step S620: Calculate the key process data required for assessing the health status of the enterprise according to the key financial account values ​​of the enterprise to be analyzed in each year, and mark the abnormal process data in the key process data; Step S630: Generate an enterprise health status assessment report based on the maximum annual report analysis period, enterprise health status assessment standards and abnormal process data.

2. An automatic analysis system for enterprise financial statements that implements the automatic analysis method for enterprise financial statements as claimed in claim 1, characterized in that: It includes condition analysis setting module, enterprise list acquisition module, annual report acquisition module, annual report data analysis module, financial form acquisition module, enterprise health status assessment module and work status and analysis result output module, among which: The conditional analysis setting module is used to set the analysis conditions, including the categories to be invested, the conditions of the selected investment products corresponding to the categories to be invested, the maximum annual report analysis period, the annual report extraction website, and the enterprise health status assessment standard, and send them to the enterprise list acquisition module, the annual report acquisition module, and the enterprise health status assessment module respectively; The enterprise list acquisition module is used to acquire the enterprise list of products to be invested from the website using web crawler technology according to the categories to be invested and the conditions of the selected investment products corresponding to the categories to be invested; The annual report acquisition module downloads and saves the annual report of an enterprise from the annual report extraction website according to the maximum annual report analysis period and the list of enterprises acquired; The annual report data analysis module uses PDF analysis technology to analyze the downloaded corporate annual reports and obtain the annual report data; The financial form acquisition module obtains the audit opinion of the company's annual report based on the annual report data obtained through analysis, extracts and organizes the financial forms, including the balance sheet, consolidated income statement, consolidated cash flow statement, cash flow statement supplementary form and parent net profit data, marks the names of the financial items with abnormal annual change rates in the financial forms, and outputs them to the working state, i.e. the analysis result output module; The enterprise health status assessment module obtains the key financial items of the enterprise in each year according to the maximum annual report analysis period, enterprise health status assessment standards and various financial items in the financial form. The key financial items include total assets, total liabilities, monetary funds, short-term loans and interest payable; calculates the key process data required for assessing the health status of the enterprise, including the difference between monetary funds and interest-bearing liabilities, the growth rate of total assets, and the growth rate of total liabilities; assesses the cash flow, debt risk and industry status of the enterprise and completes the output of the health status report to the working status and analysis result output module; The working status of the enterprise list acquisition module, annual report acquisition module, annual report data analysis module, financial form acquisition module and enterprise health status assessment module is output in real time to the working status and analysis result output module, and the working status and analysis result output module performs real-time output display and storage.

Citation Information

Cited By

  • Enterprise financial statement automatic analysis system and method

    CN121998782A