Electric power engineering audit data processing method and device
By using RPA and web crawler technology for automated data collection in power engineering audits, the problem of low efficiency and difficulty in ensuring accuracy of power engineering audit data collection is solved, efficient and accurate data collection and processing is achieved, and costs and systems are reduced. Complexity.
Patent Information
- Application Number
- CN202410660813.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-06
AI Technical Summary
Power engineering audit data collection efficiency is low, accuracy and completeness are difficult to guarantee, and existing technology has problems such as cumbersome manual operations, high costs, increased system complexity, and permission restrictions.
Robotic process automation (RPA) technology and web crawler technology are used for automated data collection. Electronic document information and local text data are extracted through coding, and integrated processing forms an engineering audit data mart, including engineering projects, participating units, bids, and market supervision. Website data.
It improves data collection efficiency, reduces manual operations, achieves data accuracy and completeness, reduces costs, avoids system complexity and authority restrictions, and adapts to the diverse needs of power engineering audits.
Smart Images

Figure CN118608069A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method and device for processing power engineering audit data. Background Art
[0002] The power industry project audit involves a large amount of data, such as contracts, budgets, schedules, quality inspection reports, etc., and also involves multiple data types (structured data, semi-structured data, unstructured data). There may be differences in data format, data standards, and data structure between different data sources. Data is the basis for power engineering audits, so ensuring the authenticity, validity, and integrity of data is of paramount importance. In terms of data quality and accuracy, engineering audit data may have errors, redundancy, duplication, missing, and other problems. On the other hand, the quantity and governance of data are related to the comprehensiveness and integrity of the audit content, and directly affect the quality of engineering audits. Therefore, whether the multi-source heterogeneous and multi-modal data in the field of engineering audits can be effectively collected and processed automatically is related to the efficiency and effectiveness of the audit, and directly affects the effectiveness of engineering audits.
[0003] In the traditional mode, audit data is collected only by the audited unit providing audit-related financial data and meeting records. With the development of digital technology, traditional audit technology methods are increasingly unable to meet the needs of audit under information conditions. Therefore, it is necessary to transform traditional audit methods and means and innovate audit concepts, models, systems, methods and technologies. Data-based auditing is a product of development under information conditions. The essence of the data-based audit model is to collect, organize, verify and analyze audit electronic data. Audit data collection, as the premise and foundation of data-based auditing, is crucial for the next step of auditing.
[0004] At present, the main methods of engineering audit data collection are as follows:
[0005] (1) Direct copying and direct reading: If data is collected from the audited unit, auditors can copy or directly read the audited unit's data through a USB flash drive or CD-ROM, provided that the audited unit allows it. This includes data in the unit's database (such as Access database, SQL Server database, etc.) and data files outside the database (such as EXCEL files, TXT files, etc.).
[0006] (2) Collect data using embedded audit modules. Collecting audit data using embedded audit modules means writing a program into the information system of the audited unit to collect all data in the system.
[0007] (3) Use the standard interface of financial software to collect data. For software data that conforms to the national standard interface, directly use audit software (such as AO) to collect audit data.
[0008] (4) Online collection: collecting government public network data or data from portals, search engines, and social networking sites through API (application programming interface) or manual acquisition.
[0009] (5) File exchange: data collection is achieved through the exchange of intermediate files. For example, files that do not conform to the audit system can be converted into files that conform to the audit system through file transmission in network auditing.
[0010] (6) Open Data Connectivity (ODBC) uses database connection middleware, such as the ODBC interface, to directly collect data from the audited entity.
[0011] In actual audit business, the collection of business data can be divided into the collection of non-database data and the collection of database data. The collection of audit data for power industry engineering projects is an important part of the audit business. Audit data collection will not only affect the accuracy of the final audit results, but also affect the input-output ratio of the audit plan. At the same time, audit data collection is also the basic premise for the development of audit big data. Therefore, in the collection of audit data, several data collection principles should be followed, rather than relying solely on the data of the audited unit to meet the audit needs. First of all, the selection of audit data should be based on the goal of realizing the audit project plan and investigating audit doubts and clues. Secondly, data collection should be carried out on the premise of fully understanding the business process of the audited unit and the application system of the audited unit. Finally, it is necessary not only to collect data within the audited unit, but also to collect external related data such as the market and industry related to the audited unit.
[0012] The current means of collecting and acquiring engineering audit data in the power industry have the following main disadvantages: 1) Complicated manual operation: Direct copying, direct reading, online collection and other methods require manual operation, which requires personnel to spend a lot of time and energy on data collection, and is prone to omissions and errors. 2) Inefficiency: Manual operation requires collecting data item by item, which is inefficient, especially when the data volume is large or periodic collection is more obvious, affecting the progress of audit work. 3) Collection cannot be customized: Some data collection methods may not meet specific needs, and cannot be customized according to the requirements of specific audit projects, resulting in difficulty in ensuring the accuracy and integrity of the data. 4) Huge software system: Collecting data using embedded audit modules often requires adding new functions or modules to existing software, which may increase the complexity of the software and pose potential risks to system resources and security. 5) Complicated interface: When collecting data using the standard interface or API of financial software, tedious configuration and debugging may be required, which has high technical requirements for users and is prone to operational errors or data acquisition problems. 6) High cost: Some collection methods may require additional high costs, such as purchasing specialized software, training personnel, maintaining and updating systems, etc., which increases audit costs. 7) Slow response: Some collection methods may result in slow data acquisition due to large data volumes and cumbersome interfaces, affecting the timeliness and real-time feedback of audit work. 8) Complex structure: Some collection methods may require reconstruction or transformation of existing systems, including adjustment of data structures and redesign of databases, which increases the complexity of system maintenance and management.
[0013] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0014] The embodiment of the present invention provides a method and device for processing power engineering audit data, so as to at least solve the technical problem in the prior art that the power engineering audit data is not standardized, resulting in time-consuming audit.
[0015] According to one aspect of an embodiment of the present invention, a method for processing power engineering audit data is provided, comprising: for data of different data types, data ranges and target sources, using different data collection modes to automatically collect data in stages and by content, wherein the data collection mode includes crawling data from the system front end, using robotic process automation (RPA) technology to automatically collect data for the system, automatically extracting information from electronic documents through encoding, and collecting local text data; fusing and processing the collected data to obtain a classified engineering audit data mart, wherein the engineering audit data mart includes the following data subsets: engineering project data, construction unit data, bidding document data, project construction personnel data, operating personnel data and market supervision website data.
[0016] According to another aspect of an embodiment of the present invention, there is also provided a power engineering audit data processing device, including: a collection module, configured to automatically collect data in stages and by content using different data collection modes for data of different data types, data ranges and target sources, wherein the data collection mode includes crawling data from the system front end, automatically collecting data for the system using RPA technology, automatically extracting information from electronic documents through encoding, and collecting local text data; a processing module, configured to perform data fusion and processing on the collected data to obtain a classified engineering audit data mart, wherein the engineering audit data mart includes the following data subsets: engineering project data, construction unit data, bidding document data, project construction personnel data, operating personnel data and market supervision website data.
[0017] In an embodiment of the present invention, for data of different data types, data ranges and target sources, different data collection modes are used to automatically collect data in stages and by content, wherein the data collection mode includes crawling data from the system front end, using robotic process automation (RPA) technology to automatically collect data from the system, automatically extracting information from electronic documents through coding, and collecting local text data; the collected data is fused and processed to obtain a classified engineering audit data mart, wherein the engineering audit data mart includes the following data subsets: engineering project data, construction unit data, bidding document data, project construction personnel data, operator data and market supervision website data. Through the above scheme, the technical problem that the non-standard power engineering audit data in the prior art leads to time-consuming audits is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 is a flow chart of a method for processing power engineering audit data according to an embodiment of the present application;
[0020] Figure 2 is a schematic diagram of a system architecture flow according to an embodiment of the present application;
[0021] Figure 3 is a flow chart of an intranet crawler method according to an embodiment of the present application;
[0022] Figure 4 is a flow chart of an external network crawler method according to an embodiment of the present application;
[0023] Figure 5This is an interface diagram of cloud crawling according to an embodiment of the present application;
[0024] Figure 6 is a flow chart of a method for collecting existing local electronic data according to an embodiment of the present application;
[0025] Figure 7 This is an interface diagram of contract information crawling according to an embodiment of the present application;
[0026] Figure 8 It is a structural schematic diagram of a power engineering audit data processing device according to an embodiment of the present application;
[0027] Fig. 9 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0029] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0030] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values of the parts and steps set forth in these embodiments do not limit the scope of the application. Meanwhile, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to actual proportional relationships. The technology, methods and equipment known to those of ordinary skill in the relevant art may not be discussed in detail. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.
[0031] The embodiment of the present application provides a method for processing power engineering audit data. The method is based on customized web crawlers and RPA data collection technology, collects required data from target websites or applications in an automated manner, processes and integrates data to form an audit intermediate table, and provides a data basis for subsequent audit work. This solution can improve data collection efficiency, reduce manual operations, and reduce error rates. Figure 1 As shown, the method provided in this embodiment includes the following steps:
[0032] Step S102, for different data types, data ranges and target source data, different data collection modes are used to automatically collect data in stages and by content, wherein the data collection modes include crawling data from the system front end, using robotic process automation (RPA) technology to automatically collect data from the system, automatically extracting information from electronic documents through coding, and collecting local text data.
[0033] like Figure 2 As shown in the figure, for different data types, scopes and target sources, such as specific websites, application systems, electronic data sets, etc., web crawlers, RPA technology and other program codes are integrated to realize the automatic data collection process of classification, stage and content. The data collection mode is divided into three categories: the first is to crawl data from the front end of the system by crawler technology; the second is to use RPA technology to automatically collect data from the system, and automatically interact with PDF, Web and system through prefabricated parts in RPA software to form batch processing of data collection, release manual operations and realize the transformation to digital labor. The third is to realize the automatic extraction of information from existing electronic documents including PDF, EXCEL, CSV, JSON and other texts through python coding. Based on the above six categories of data subsets including engineering projects, construction units, bidding documents, project construction personnel, operating personnel and market supervision website data, the engineering audit intermediate table is constructed through primary keys and foreign keys.
[0034] The specific data collection method will be described in detail below and will not be repeated here.
[0035] Step S104, data fusion and processing are performed on the collected data to obtain a classified engineering audit data mart, wherein the engineering audit data mart includes the following data subsets: engineering project data, construction unit data, bidding document data, project construction personnel data, operating personnel data and market supervision website data.
[0036] The data fusion and processing part uses ETL tools to realize the automated management of data fusion such as loading, cleaning, and linking of multi-source heterogeneous data, and finally forms an engineering audit data mart, including six major data subsets: engineering projects, construction units, bidding documents, project construction personnel, operating personnel, and market supervision website data, and constructs engineering audit intermediate tables through primary keys and foreign keys. The model layer includes experience-based verification models and data-driven artificial intelligence models. The two types of models complement each other and work together to improve the quality and efficiency of audit work. The application layer builds engineering audit data governance tools and adopts the application store model to provide personalized and modular application interfaces for engineering audits. It has low load, is lightweight, and is flexible in form, which can effectively reflect the important feature of "precisely providing intelligent services" in smart audits.
[0037] In some embodiments, data fusion can also be performed by the following method. First, the non-commutative error between different data sources is calculated. This error is caused by the different order of data collection or the different characteristics of the source. The non-commutative error is corrected using a trifurcated product term to capture the interactive relationship between different data sources, and the data from different data sources are adjusted and corrected through these interactive relationships. By calculating these interactive relationships, the data can be accurately adjusted and corrected to reduce the impact of the non-commutative error.
[0038] In some embodiments, an angular increment correction may also be performed. First, the angular increments involved in the angle change in the data set are calculated. These angular increments represent the angle changes of the data at different time points or under different conditions. Then, the cross product term of the angular increment is used to perform angle correction. The cross product term can accurately describe and process the errors caused by the angle change. Through this correction step, the accuracy of the angle change data can be ensured.
[0039] Finally, data fusion is performed. The data corrected for non-commutative errors and angular increments are unified and fused to form a complete engineering audit data mart. During the data fusion process, ETL tools are used to load, clean and link data to ensure data integrity and consistency. An engineering audit intermediate table is constructed to associate data subsets through primary keys and foreign keys. For example, the project number can be used as the primary key to associate subsets such as participating units, bidding documents, project participants, operating personnel, and market supervision website data to form a complete engineering audit data view.
[0040] Through the above method, the data fusion using the trigonometric product term and the cross product term of the angular increment can significantly improve the accuracy and consistency of data processing. These steps ensure that the data remains high quality during the processing and fusion process, providing a reliable basis for subsequent analysis and decision-making.
[0041] After data fusion, the method may also include using the engineering audit data governance model to audit the fused data. The engineering audit data governance model relies on digital empowerment to achieve automatic data collection, automatic processing and automatic analysis, build a closed-loop system for data governance throughout the entire process, extend new ideas for audit evidence collection, accurately locate audit doubts, effectively improve the quality and efficiency of engineering audits, and promote the digital transformation of engineering audits.
[0042] The data collection scheme will be described in detail below. There are three data collection schemes.
[0043] Solution 1: Targeted extraction of Python code.
[0044] 1) JSON data extraction
[0045] For data extraction in JSON format, the json library in Python is used to implement data collection and extraction. By reading JSON files or JSON data returned by Web API, data parsing, extraction and conversion are implemented.
[0046]
[0047]
[0048] 2) XML data extraction.
[0049] For XML format data extraction, use XML parsing libraries such as Python's lxml library or xml library to implement data collection and extraction.
[0050]
[0051] 3) CSV data extraction.
[0052] For CSV format data extraction, use Python's csv library or pandas library for large-scale data processing.
[0053]
[0054] 4) SQL data extraction.
[0055] Extract data from the SQL database by connecting to the server and executing query statements.
[0056]
[0057]
[0058] Solution 2: Web crawler data collection.
[0059] Use web crawler technology to crawl data from the target website or application. Use third-party libraries in Python (such as Scrapy, BeautifulSoup, etc.) to set crawler rules to automatically extract the required data from the target website, such as by accessing the target website's API or parsing web page content.
[0060] Web crawler technology is divided into intranet crawler technology and extranet crawler technology. Intranet crawlers use a simulated browser method to simulate real user access behavior when obtaining web page content to bypass some anti-crawler mechanisms. Specific methods include Figure 3 As shown, the following steps are included:
[0061] Step S302, selecting a suitable browser simulation tool.
[0062] Common tools include Selenium and Puppeteer, which simulate browser operations through programming language interfaces to implement functions such as page loading, clicking, and filling out forms.
[0063] Step S304, simulating a user agent.
[0064] The browser sends a "User-Agent" header containing its own information, which is used to identify the user's browser type and version. In order to better simulate user access, set the crawler's User-Agent header to make it similar to the request of a real browser.
[0065] Step S306, processing JavaScript rendering.
[0066] Many web pages use JavaScript technology to load dynamic content, which requires simulating the browser's JavaScript rendering capabilities. Through browser simulation tools, you can ensure that the crawler obtains the complete page data after dynamic rendering.
[0067] Step S308, processing Cookie and Session.
[0068] Websites usually use cookies and sessions to manage user status and login information. In order to simulate real users, the API of the browser simulation tool is used to operate cookies and sessions, including getting and setting.
[0069] Step S310, processing the verification code.
[0070] Some websites use verification codes to prevent crawlers. In the simulated browser mode, verification codes can be processed manually or by third-party verification code recognition services to bypass the verification process.
[0071] Step S312, setting the request frequency and page loading time.
[0072] In order to avoid excessive load on the website server and the risk of being blocked, you can set the crawler's request frequency and page loading time interval to simulate the user's normal access behavior and avoid being identified by the website's anti-crawling mechanism.
[0073] The following describes the external network crawler technology. In order to improve efficiency, the external network crawler technology uses the method of directly analyzing network requests and responses to crawl. The specific technical implementation is as follows: Figure 4 As shown, the following steps are included:
[0074] Step S402, sending a request.
[0075] Use a network request library (such as `requests`) to send an HTTP request to the URL of the target website. Use a GET request or a POST request, passing corresponding parameters and data as needed.
[0076] Step S404, obtaining a response.
[0077] After receiving the response from the server, get the status code, header information, and response content of the response. Use the methods provided by the network request library to obtain this information.
[0078] Step S406, parsing the content.
[0079] For the response content, select the corresponding parsing library including BeautifulSoup, lxml, json, etc. for parsing according to its type (such as HTML, JSON, XML, etc.).
[0080] Step S408, extracting target data.
[0081] According to the web page structure or the format of the response content, use JSON parsing technology to extract the target data. For some data in specific formats, regular expressions can be used to match and extract data.
[0082] Solution 3: RPA data collection.
[0083] In cases where data needs to be collected from applications, RPA technology is used to simulate human operation steps and automate the data collection process. Select RPA tools (such as UiPath, Automation Anywhere, etc.), configure automation tasks, simulate human operations, including opening applications, filling out forms, clicking buttons, etc., and extract the required data from applications. Figure 5 shown.
[0084] For existing local electronic data, such as audit reports, contract scans, etc., write a text extraction program to extract key data. The specific method is as follows: Figure 6 As shown, including the following:
[0085] Step S602, decrypt the encrypted files in batches, perform indirect text decryption by converting PDF to WORD, import local text in batches, and define the keywords and key content ranges that need to be extracted.
[0086] Step S604, pre-processing the text by using string processing functions and regular expressions, including removing special characters, punctuation marks and stop words (optional), and performing uppercase and lowercase conversion.
[0087] Step S606: word segmentation: The preprocessed text is segmented into words or word sequences by using a word segmentation library (such as NLTK, spaCy, etc.).
[0088] Step S608: extracting the subsequent contents of the keyword according to the keyword.
[0089] First, perform keyword matching on each sentence, and use string operations or regular expressions to find the occurrence of keywords. For example, use the `str.contains()` method or regular expression matching. For sentences that match keywords, use string operations (such as indexing, truncation) or regular expressions to obtain the text content near the keywords. Different keywords may correspond to different extraction methods, such as exact matching, pattern matching, part-of-speech tagging, etc. In the specific implementation, targeted processing is performed according to the keyword characteristics and requirements.
[0090] Step S610, further process and clean the extracted text content, such as removing noise and useless information, and store the processed data in the corresponding location of the local file system, such as Figure 7 shown.
[0091] The present application has the following beneficial effects: 1) Lightweight, low-code, low-cost and simple interface, which can be customized according to the diverse needs of power engineering audits. 2) Bypassing the system backend to realize front-end data collection, it avoids the difficulty of the system being deployed in the superior unit and the subordinate unit being unable to obtain the background data collection authority, and further solves the key problem of data being difficult to obtain due to the multi-level deployment of systems at all levels and the strictness of permissions. 3) Manual operation is simple, efficient and highly portable. The product form of the present application is a small tool, which does not need to be installed, can be run by clicking, and data collection and data storage are based on the local file system, which is not restricted by the PC side and can be migrated and used at any time. 4) The scope of data collection is wider, which meets the diverse needs of power engineering project audits, and effectively uses the operability of web crawler technology to carry out legal and flexible data collection, including not only data within the system, local electronic data, but also third-party external networks (such as Tianyancha, Four Library One Platform and other related website data).
[0092] The present application also provides a power engineering audit data processing device, such as Figure 8 As shown, it includes a collection module 82 and a processing module 84.
[0093] The collection module 82 is configured to automatically collect data in stages and by content using different data collection modes for different data types, data ranges and target source data, wherein the data collection mode includes crawling data from the system front end, using RPA technology to automatically collect data from the system, automatically extracting information from electronic documents through encoding, and collecting local text data; the processing module 84 is configured to perform data fusion and processing on the collected data to obtain a classified engineering audit data mart, wherein the engineering audit data mart includes the following data subsets: engineering project data, construction unit data, bidding document data, project construction personnel data, operating personnel data and market supervision website data.
[0094] It should be noted that the live broadcast device of the virtual anchor provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the live broadcast device of the virtual anchor provided in the above embodiment and the live broadcast method embodiment of the virtual anchor belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0095] This application mainly aims at the shortcomings of the existing technology. Based on the audit data collection needs of power engineering projects (including main network projects, distribution network projects, and technical transformation projects), this application develops and designs a lightweight and customized collection tool for audit data. It integrates crawler design and RPA technology to realize the automatic collection of non-database data, database data, and externally related network public data of the audited unit from the front end. It mainly solves the following key problems: (1) Lightweight and low-code, low cost and simple interface, which can be customized according to the diverse needs of power engineering audits. (2) Bypassing the system backend to realize front-end data collection, it avoids the difficulty of the system being deployed in the superior unit and the subordinate unit being unable to obtain the back-end data collection authority, and further solves the key problem of data difficulty caused by the multi-level deployment of systems at all levels and the strictness of permissions. (3) Simple manual operation, high efficiency and high portability. The product of this application is in the form of a small tool, which does not need to be installed and can be run by clicking. The data collection and data storage are based on the local file system, which is not restricted by the PC end and can be migrated and used at any time. (4) The scope of data collection is wider, in line with the diverse needs of power engineering project audits, and the operability of web crawler technology is effectively used to conduct legal and flexible data collection, which includes not only data within the system and local electronic data, but also third-party external networks (such as Tianyancha, Four Databases and One Platform and other related website data).
[0096] The embodiments of the present application have the following effects: 1) Lightweight and easy to operate. The present application is written in Python scripting language, integrating crawler and RPA technology. The data collection method is flexible and uses EXE executable applet as the main tool carrier to realize data collection. Click to execute data collection. 2) High flexibility and low restrictions. The present application performs multi-source data automatic collection based on the front end, taking into account the enterprise's intranet data and extranet data, bypassing the back end, and collecting data through the front end. As long as the user has the front-end login permission, data collection can be performed without being affected by the system back-end permissions. 3) High degree of customization. The data collection tool constructed by this application is light in code and simple in interface, so it can be quickly iterated and developed according to the needs of the audit unit, and can be deployed in the form of an application store.
[0097] Fig. 9 FIG. 1 shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. It should be noted that: Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0098] like Fig. 9As shown, the electronic device includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0099] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0100] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, various functions defined in the method and apparatus of the present application are executed. In some embodiments, the electronic device may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0101] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0102] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0103] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0104] As another aspect, the present application further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device.
[0105] The computer-readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device can implement each step of the method embodiment.
[0106] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0107] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0108] In the several embodiments provided in the present application, it should be understood that the disclosed terminal device can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0109] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0110] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0111] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for processing power engineering audit data, It is characterized in that include: According to different data types, data ranges and target source data, different data collection modes are used to automatically collect data in stages and by content. The data collection modes include crawling data from the system front end, using robotic process automation (RPA) technology to automatically collect data from the system, automatically extracting information from electronic documents through coding, and collecting local text data; The collected data are fused and processed to obtain a classified engineering audit data mart, wherein the engineering audit data mart includes the following data subsets: engineering project data, construction unit data, bidding document data, project construction personnel data, operating personnel data and market supervision website data.
2. The method according to claim 1, It is characterized in that Automatically extract information from electronic documents through coding, including: For JSON data, parse, extract and convert data by reading JSON files or JSON data returned by network application program interfaces; For XML data, use XML parsing library to realize data collection; For CSV format data, use the preset library in the preset language to collect large-scale data; For SQL data, data collection is achieved by connecting to the server and executing query statements.
3. The method according to claim 1, It is characterized in that Crawl data from the system front end, including: Use a simulated browser to simulate real user access behavior when obtaining web page content to crawl data; Data crawling is done by directly analyzing network requests and responses.
4. The method according to claim 3, It is characterized in that Use a simulated browser to simulate real user access behavior when obtaining web page content to crawl data, including: Select a browser simulation tool and use it to simulate user access; Simulate the browser's Java script rendering capabilities so that the crawler can obtain the complete page data after dynamic rendering; Use sessions to manage user status and login information, and process verification codes through third-party verification code recognition services; Set the crawler's request frequency and page loading time interval to simulate the user's normal access behavior.
5. The method according to claim 3, It is characterized in that Data crawling is done by directly analyzing network requests and responses, including: Use the network request library to send an HTTP request to the URL of the target website, or use the Get Data Request or Send Data Request to pass corresponding parameters and data; After receiving the response returned by the server of the target website, obtain the status code, header information and response content of the response; For the response content, a corresponding parsing library is selected for parsing according to the type of the response content, and the target data is extracted using JSON parsing technology according to the structure of the web page or the format of the response content.
6. The method according to claim 1, It is characterized in that Local text data collection, including: Decrypt encrypted texts in batches and import local texts in batches; Defining the range of keywords and key contents to be extracted, and preprocessing the local text by using string processing functions and regular expressions; The pre-processed local text is segmented into a sequence of words or phrases by using a word segmentation library, and data is extracted from the sequence of words or phrases according to the keywords.
7. The method according to claim 1, It is characterized in that Use RPA technology to automate data collection for the system, including: selecting RPA tools, configuring automated tasks, simulating opening applications, filling out forms, clicking buttons, and extracting data from applications.
8. A power engineering audit data processing device, It is characterized in that include: The collection module is configured to automatically collect data in stages and by content using different data collection modes for different data types, data ranges and target source data, wherein the data collection modes include crawling data from the system front end, automatically collecting data from the system using RPA technology, automatically extracting information from electronic documents through coding, and collecting local text data; The processing module is configured to perform data fusion and processing on the collected data to obtain a classified engineering audit data mart, wherein the engineering audit data mart includes the following data subsets: engineering project data, construction unit data, bidding document data, project construction personnel data, operating personnel data and market supervision website data.
9. An electronic device, It is characterized in that include: a memory configured to store a computer program; The processor is configured to make the computer execute the method according to any one of claims 1 to 7 when the program is executed.
10. A computer-readable storage medium having a program stored thereon, It is characterized in that When the program is executed, the computer is caused to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Auditing system for power grid enterprise
CN120806853A
