Report generation method, electronic equipment, storage medium and program product

By using automated report generation methods, the problems of low efficiency and poor accuracy in report generation in the oil refining and chemical industry have been solved, achieving efficient and accurate data processing and report generation.

CN121960413APending Publication Date: 2026-05-01RICHFIT INFORMATION TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
RICHFIT INFORMATION TECH
Filing Date
2024-10-30
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing technologies, the report generation efficiency and accuracy of the oil refining and chemical industry are low, requiring manual data collection, processing and editing.

Method used

By responding to report generation commands, the system automatically determines the source data system and data processing strategy, retrieves data from the source data system, processes the data, and generates reports, including data processing and analysis, filtering, format conversion, name unification, and outlier handling.

Benefits of technology

It improves the efficiency and accuracy of report generation, automates data acquisition and processing, and reduces manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121960413A_ABST
    Figure CN121960413A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a report generation method, electronic equipment, a storage medium and a program product. The method comprises the following steps: in response to a report generation instruction, determining at least one source data system and a data processing strategy corresponding to the report generation instruction; wherein the report generation instruction is used for indicating to generate a corresponding report; obtaining source data corresponding to the report generation instruction from at least one source data system; performing data processing on the source data according to the data processing strategy to obtain processed source data; and generating a report corresponding to the report generation instruction according to the processed source data. The method is used for achieving the effect of improving the report generation efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method for generating reports, an electronic device, a storage medium, and a program product. Background Technology

[0002] In the development of industrial sectors such as oil refining and chemical processing, industry technical reports are typically used to present information related to production processes, product quality, equipment operation, energy efficiency, and other relevant data.

[0003] In existing technologies, data collection, processing, analysis, and editing require manual methods.

[0004] However, the existing methods result in low efficiency and poor accuracy in report generation. Summary of the Invention

[0005] This application provides a report generation method, electronic device, storage medium, and program product to improve the efficiency and accuracy of report generation.

[0006] In a first aspect, embodiments of this application provide a method for generating a report, including:

[0007] In response to a report generation instruction, at least one source data system and a data processing strategy corresponding to the report generation instruction are determined; wherein the report generation instruction is used to instruct the generation of a corresponding report;

[0008] Obtain the source data corresponding to the report generation instruction from the at least one source data system;

[0009] According to the data processing strategy, the source data is processed to obtain the processed source data;

[0010] Based on the processed source data, generate the report corresponding to the report generation instruction.

[0011] In one possible implementation, the report generation instruction is used to instruct the generation of a first type of report or a second type of report; wherein the first type of report is an automatically analyzed report; and the second type of report is a non-automatically analyzed report.

[0012] In one possible implementation, if the report generation instruction instructs the generation of the first type of report, then the data processing strategy includes a data processing strategy and a data analysis strategy.

[0013] According to the data processing strategy, the source data is processed to obtain processed source data, including:

[0014] According to the data processing strategy included in the data processing strategy, the source data is processed to obtain the processed source data;

[0015] According to the data analysis and processing strategy included in the data processing strategy, the processed source data is subjected to data analysis and processing to obtain the processed source data.

[0016] In one possible implementation, if the report generation instruction instructs the generation of the second type of report, then according to the data processing strategy, the source data is processed to obtain processed source data, including:

[0017] According to the data processing strategy, the source data is processed to obtain and present the processed source data, so that users can perform data analysis based on the processed source data.

[0018] The system receives the results of data analysis input by the user and determines the results of the data analysis and the source data after data processing as the processed source data.

[0019] In one possible implementation, the method further includes:

[0020] The source data is subjected to at least one of the following processes: filtering, format conversion, name unification, and outlier handling.

[0021] In one possible implementation, the report generation instruction is used to instruct the generation of a third type of report; wherein, the third type of report is a report of a type that does not automatically acquire source data; the method further includes:

[0022] In response to a report generation command, a source data upload page is generated and presented so that the user can upload the corresponding source data based on the source data upload page.

[0023] In one possible implementation, the report generation instruction is used to instruct the generation of a fourth type of report; wherein, the fourth type of report is a non-automatically generated report; the method further includes:

[0024] In response to a report generation command, the system acquires and presents the corresponding historical report data, enabling the user to input the current report data corresponding to the report generation command based on the historical report data.

[0025] Receive the current report data and generate the report corresponding to the report generation instruction based on the current report data.

[0026] In one possible implementation, the report corresponding to the report generation instruction is generated based on the processed source data, including:

[0027] Determine the report template corresponding to the report generation instruction;

[0028] The processed source data is combined with the report template to obtain the report corresponding to the report generation instruction.

[0029] Secondly, embodiments of this application provide a report generation apparatus, comprising:

[0030] A determination module is used to determine at least one source data system and data processing strategy corresponding to a report generation instruction in response to the report generation instruction; wherein the report generation instruction is used to instruct the generation of a corresponding report;

[0031] The acquisition module is used to acquire the source data corresponding to the report generation instruction from the at least one source data system;

[0032] The processing module is used to process the source data according to the data processing strategy to obtain processed source data;

[0033] The generation module is used to generate the report corresponding to the report generation instruction based on the processed source data.

[0034] In one possible implementation, the report generation instruction is used to instruct the generation of a first type of report or a second type of report; wherein the first type of report is an automatically analyzed report; and the second type of report is a non-automatically analyzed report.

[0035] In one possible implementation, if the report generation instruction instructs the generation of the first type of report, then the data processing strategy includes a data processing strategy and a data analysis strategy; the processing module is specifically used to process the source data according to the data processing strategy included in the data processing strategy to obtain processed source data; and to perform data analysis on the processed source data according to the data analysis strategy included in the data processing strategy to obtain the processed source data.

[0036] In one possible implementation, if the report generation instruction instructs the generation of the second type of report, the processing module is specifically configured to process the source data according to the data processing strategy to obtain and present the processed source data, so that the user can perform data analysis based on the processed source data; receive the data analysis results input by the user, and determine the data analysis results and the processed source data as the processed source data.

[0037] In one possible implementation, the report generation device further includes a preprocessing module for performing at least one of the following processes on the source data: filtering, format conversion, name unification, and outlier handling.

[0038] In one possible implementation, the report generation instruction is used to instruct the generation of a third type of report; wherein, the third type of report is a report of a type that does not automatically acquire source data; the generation module is further used to generate and present a source data upload page in response to the report generation instruction, so that the user can upload the corresponding source data based on the source data upload page.

[0039] In one possible implementation, the report generation instruction is used to instruct the generation of a fourth type of report; wherein, the fourth type of report is a non-automatically generated report; the generation module is further used to respond to the report generation instruction by acquiring and presenting corresponding historical report data, so that the user can input the current report data corresponding to the report generation instruction based on the historical report data; receiving the current report data, and generating the report corresponding to the report generation instruction based on the current report data.

[0040] In one possible implementation, the generation module is specifically used to determine the report template corresponding to the report generation instruction; and to combine the processed source data with the report template to obtain the report corresponding to the report generation instruction.

[0041] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;

[0042] The memory stores computer-executed instructions;

[0043] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0044] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0045] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0046] The report generation method, electronic device, storage medium, and program product provided in this application embodiment, in response to a report generation instruction, determine at least one source data system and a data processing strategy corresponding to the report generation instruction, obtain the source data corresponding to the report generation instruction from at least one source data system, process the source data according to the data processing strategy to obtain processed source data, and generate a report corresponding to the report generation instruction based on the processed source data. In the report generation process, automatically obtaining the source data corresponding to the report generation instruction from at least one source data system in response to the report generation instruction can improve the efficiency and accuracy of obtaining source data, further improving the efficiency and accuracy of report generation. Furthermore, automatically generating the report corresponding to the report generation instruction by processing the source data according to the data processing strategy determined in response to the report generation instruction can improve the efficiency and accuracy of report generation. Attached Figure Description

[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0048] Figure 1 Flowchart of the report generation method provided in this application Figure 1 ;

[0049] Figure 2 Flowchart of the report generation method provided in this application Figure 2 ;

[0050] Figure 3 Flowchart of the report generation method provided in this application Figure 3 ;

[0051] Figure 4 A schematic diagram of the structure of the report generation device provided in this application;

[0052] Figure 5 A schematic diagram of the structure of the electronic device provided in this application.

[0053] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0054] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0055] Current technologies require manual methods for data collection, processing, analysis, and editing. However, these methods result in low report generation efficiency and poor accuracy.

[0056] The report generation method provided in this application, in response to a report generation instruction, determines at least one source data system and a data processing strategy corresponding to the report generation instruction, obtains the source data corresponding to the report generation instruction from at least one source data system, processes the source data according to the data processing strategy to obtain processed source data, and generates a report corresponding to the report generation instruction based on the processed source data. During the report generation process, automatically obtaining the source data corresponding to the report generation instruction from at least one source data system in response to the report generation instruction can improve the efficiency and accuracy of source data acquisition, further improving the efficiency and accuracy of report generation. Specifically, automatically generating the report corresponding to the report generation instruction by processing the source data according to the data processing strategy determined in response to the report generation instruction can improve the efficiency and accuracy of report generation. The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described repeatedly in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0057] Figure 1 Flowchart of the report generation method provided in this application Figure 1 ,like Figure 1 As shown, the method includes:

[0058] Step S101: In response to the report generation instruction, determine at least one source data system and data processing strategy corresponding to the report generation instruction.

[0059] Specifically, in response to a report generation instruction, at least one source data system and a data processing strategy corresponding to the report generation instruction can be determined. The report generation instruction is used to instruct the generation of a corresponding report. Optionally, the report generation instruction includes the type of report to be generated. This application does not limit the number of report types included in the report generation instruction; that is, this application does not limit the number of corresponding reports that the report generation instruction instructs to generate. Optionally, the report generation instruction can be used to instruct the generation of one corresponding report, or alternatively, it can be used to instruct the generation of multiple corresponding reports.

[0060] For example, in the field of chemical processes, the reports to be generated, that is, the reports to be generated by the report generation command, can be production plan reports, energy consumption reports, raw material consumption reports, product quality reports, equipment operation stability reports, environmental protection and testing reports, etc.

[0061] The source data system is the data system that provides source data for the report generation process.

[0062] For example, in the field of chemical processes, the source data system can be at least one of the following systems: MES (Manufacturing Execution System), LIMS (Laboratory Information Management System), integrated statistical data system, and energy-saving and water-saving system.

[0063] Specifically, the type and number of source data systems corresponding to the report generation instruction correspond to the report to be generated, i.e., the report to be generated by the report generation instruction. For example: if the report generation instruction is used to instruct the generation of a production plan report, the source data system corresponding to the report generation instruction can be a comprehensive statistical data system; for example: if the report generation instruction is used to instruct the generation of an energy consumption report, the source data system corresponding to the report generation instruction can be a refinery and chemical operation system (MES), a laboratory information management system (LIMS), a comprehensive statistical data system, and an energy-saving and water-saving system; for example: if the report generation instruction is used to instruct the generation of a raw material consumption report, the source data system corresponding to the report generation instruction can be a laboratory information management system (LIMS); for example: if the report generation instruction is used to instruct the generation of a product quality report, the source data system corresponding to the report generation instruction can be a laboratory information management system (LIMS); for example: if the report generation instruction is used to instruct the generation of an environmental protection and testing report, the source data system corresponding to the report generation instruction can be a laboratory information management system (LIMS) and an energy-saving and water-saving system; for example: if the report generation instruction is used to instruct the generation of a unit operation stability rate report, the source data system corresponding to the report generation instruction can be a refinery and chemical operation system (MES).

[0064] The data processing strategy refers to the strategy for processing the source data. Specifically, the report data processing strategy corresponds to the report to be generated, i.e., the report to be generated as instructed by the report generation instruction, and the source data obtained from the source data system corresponding to the report generation instruction. This application does not limit the data processing strategy; any strategy for processing the source data that corresponds to the report to be generated as instructed by the report generation instruction and the source data obtained from the source data system corresponding to the report generation instruction is a data processing strategy provided in this application.

[0065] For example, in the field of chemical processes, if a report generation command instructs the generation of a production plan report, the source data obtained from the comprehensive statistical data system corresponding to the report generation command is product production information. Therefore, the data processing strategy corresponding to the report generation command is a strategy for processing the product production information.

[0066] Step S102: Obtain the source data corresponding to the report generation instruction from at least one source data system.

[0067] Specifically, after determining at least one source data system and data processing strategy corresponding to the report generation instruction in response to the report generation instruction, the source data corresponding to the report generation instruction can be obtained from at least one source data system. The description of the source data system can be found in step S101 and will not be repeated here. Specifically, if the report generation instruction corresponds to one source data system, the source data corresponding to the report generation instruction is the data obtained from that source data system; if the report generation instruction corresponds to multiple source data systems, the source data corresponding to the report generation instruction is the data obtained from each of the multiple source data systems.

[0068] This application does not limit the process of obtaining the source data corresponding to the report generation instruction from at least one source data system. Any process capable of obtaining the source data corresponding to the report generation instruction from at least one source data system can be considered as the process provided in this application. Optionally, the process of obtaining the source data corresponding to the report generation instruction from at least one source data system can be based on interface call technology. Interface call technology refers to the technology of requesting data or services from a program or system using specific methods and protocols. Interface call technology allows different applications to communicate and share information, making data transmission and function invocation more convenient and reliable. This technology greatly promotes the interconnection and interoperability of software, enabling various applications to efficiently share resources and functions.

[0069] This application does not limit the process of obtaining the source data corresponding to the report generation instruction from at least one source data system based on interface call technology. Optionally, it can obtain the source data corresponding to the report generation instruction from at least one source data system at a preset time period based on application programming interface (API) call technology. An API is a set of predefined functions designed to provide applications and developers with the ability to access a set of routines based on certain software or hardware without needing to access the source code or understand the details of the internal working mechanism. The preset time period is a preset time period for obtaining data from the source data system. Optionally, the preset time period may differ depending on the source data system, i.e., the time period for obtaining data from that source data system may also be different.

[0070] Step S103: According to the data processing strategy, process the source data to obtain the processed source data.

[0071] Specifically, according to the data processing strategy determined in step S101, the source data obtained in step S102 is processed to obtain processed source data. This application does not limit the process of processing the source data according to the data processing strategy to obtain processed source data; however, the process of processing the source data according to the data processing strategy to obtain processed source data corresponds to the determined data processing strategy and the obtained source data.

[0072] Step S104: Generate the report corresponding to the report generation instruction based on the processed source data.

[0073] Specifically, based on the processed source data obtained in step S103, a report corresponding to the report generation instruction can be generated. This application does not limit the process of generating the report corresponding to the report generation instruction based on the processed source data; any process capable of generating the report corresponding to the report generation instruction based on the processed source data can be considered as the process provided in this application. Optionally, a report template corresponding to the report generation instruction can be determined first, and then the processed source data can be combined with the report template to obtain the report corresponding to the report generation instruction.

[0074] The report generation method provided in this application embodiment determines at least one source data system and a data processing strategy corresponding to the report generation instruction in response to the report generation instruction. It then obtains the source data corresponding to the report generation instruction from the at least one source data system, processes the source data according to the data processing strategy to obtain processed source data, and generates the report corresponding to the report generation instruction based on the processed source data. In the report generation process, automatically obtaining the source data corresponding to the report generation instruction from at least one source data system in response to the report generation instruction improves the efficiency and accuracy of source data acquisition, further improving the efficiency and accuracy of report generation. Furthermore, automatically generating the report corresponding to the report generation instruction by processing the source data according to the data processing strategy determined in response to the report generation instruction improves the efficiency and accuracy of report generation.

[0075] In one possible embodiment, after obtaining the source data corresponding to the report generation instruction from at least one source data system, the report generation method further includes at least one of the following processes: filtering the source data, format conversion, name unification, and outlier handling.

[0076] The filtering process refers to the process of filtering the acquired source data. Specifically, among the source data corresponding to the report generation instruction obtained from at least one source data system, there may be data that is not needed in the report generation process. Therefore, this data can be deleted, that is, filtering out the data needed in the report generation process. This application does not limit the process of filtering the source data. Optionally, a strategy for filtering the source data can be determined first in response to the report generation instruction, and then the source data can be filtered according to the determined strategy.

[0077] The format conversion process refers to the process of converting the acquired source data into its correct format. Specifically, the source data corresponding to the report generation instruction obtained from at least one source data system may have a different format than the data format required for the report generation process. Therefore, this portion of data can be converted into the format required for the report generation process. This application does not limit the process of converting the source data into its correct format. Optionally, a strategy for converting the source data into its correct format can be determined first in response to the report generation instruction, and then the source data can be converted into its correct format according to the determined strategy.

[0078] The name unification process refers to the process of unifying the names of the acquired source data. Specifically, if the data names obtained from different source data systems are different, then the names of this data can be unified to the same name. This application does not limit the process of unifying the names of the source data; optionally, it can first determine a strategy for unifying the names of the source data in response to the report generation instruction, and then perform name unification processing on the source data according to the determined strategy.

[0079] Outlier handling refers to the process of processing outliers in the acquired source data. Specifically, the source data corresponding to the report generation instruction obtained from at least one source data system may contain some outliers; therefore, outlier handling can be performed on this portion of the data. This application does not limit the process of outlier handling for the source data; optionally, it may be one or more of the following: single-row exponentiation processing, coefficient processing, and processing of the addition of the final numerator (or denominator).

[0080] In this process, after obtaining the source data corresponding to the report generation instruction from at least one source data system, performing at least one of the following processing steps on the source data—filtering, format conversion, name unification, and outlier handling—can improve the accuracy of the source data and further enhance the accuracy of the report generation method.

[0081] In one possible embodiment, after generating the report corresponding to the report generation instruction, the generated report can be sent and presented to the review terminal for review by the reviewer. If the review terminal receives a user input indicating that the review has failed, it receives a review failure notification message generated and sent by the review terminal, which includes the reason for the report's failure. Based on the reason for the failure included in the review failure notification message, the report is then modified. The modified report is then resent and presented to the review terminal until a review approval notification message is received from the review terminal. Alternatively, if the review terminal receives a user input indicating that the review has passed, it receives a review approval notification message generated and sent by the review terminal. Optionally, after receiving the review approval notification message generated and sent by the review terminal, a report file can be generated and stored for users to download and / or view.

[0082] In one possible embodiment, the process of generating the report corresponding to the report generation instruction based on the processed source data may include: determining the report template corresponding to the report generation instruction; and combining the processed source data with the report template to obtain the report corresponding to the report generation instruction.

[0083] The report template, combined with the processed source data, generates a template for the corresponding report. The report template corresponds to the specific report. Optionally, the report template includes at least one report area, which is used to populate the processed source data. Optionally, the report area includes at least one of the following areas: a table area, a summary area, and an analysis area.

[0084] The table area presents the processed source data, or the processed source data and source data. The summary area presents summary information, which is information summarizing the processed source data, or the processed source data and source data. This application does not limit the process of summarizing the processed source data, or the processed source data and source data; optionally, it can be generated based on a preset summary template. This application does not limit the process of generating summary information based on a preset summary template; optionally, it can convert the processed source data, or the processed source data and source data, into textual description information according to a preset word order, and generate judgment information based on a preset judgment strategy and the processed source data, or the processed source data and source data. The textual description information and the judgment information are determined as summary information. The analysis area presents the reasons corresponding to the data.

[0085] For example, in the field of chemical processes, a summary information example is shown below: "This month, 79,225.00 tons of Wax II were processed, an increase of 1,361.00 tons compared to last month." The textual description is "79,225.00 tons of Wax II were processed this month," and the judgment information is "an increase of 1,361.00 tons compared to last month." Another example of summary information is shown below: "This month's liquid yield was 99.04%, an increase of 0.10% compared to last month, a good result." The textual description is "This month's liquid yield was 99.04%," and the judgment information is "an increase of 0.10% compared to last month, a good result." Yet another example of summary information is shown below: "This month's processing loss was 0.2%, unchanged from last month." The textual description is "This month's processing loss was 0.2%," and the judgment information is "unchanged from last month." Another example of summary information is shown below: "The processing loss this month was 159.84 tons, an increase of 2.78 tons compared to last month." The textual description is "The processing loss this month was 159.84 tons," and the judgment information is "an increase of 2.78 tons compared to last month."

[0086] Specifically, the process of combining the processed source data with the report template to obtain the report corresponding to the report generation instruction can be achieved by first determining the report area in the report template, then determining the data corresponding to the report area based on the processed source data, and finally filling the determined data into the corresponding report area.

[0087] In one possible embodiment, the report generation instruction is used to instruct the generation of a first type of report or a second type of report. The first type of report is an automatically analyzed report. Specifically, the automatically analyzed report is an automatically analyzed report. The second type of report is a non-automatically analyzed report. Specifically, the non-automatically analyzed report is a non-automatically analyzed report.

[0088] Figure 2 Flowchart of the report generation method provided in this application Figure 2 ,like Figure 2 As shown, in this embodiment... Figure 1 Based on the embodiments, the process of processing source data according to a data processing strategy to obtain processed source data when a report generation instruction indicates the generation of a first type of report is described in detail. This method includes:

[0089] Step S201: According to the data processing strategy included in the data processing strategy, process the source data to obtain the processed source data.

[0090] If the report generation instruction specifies the generation of a first-type report, then the data processing strategy includes a data processing strategy and a data analysis strategy.

[0091] The data processing strategy refers to a strategy for processing the source data. This application does not limit the specific data processing strategy; any strategy capable of processing the source data can be used as the data processing strategy provided in this application. Optionally, it may include one or more of the following processing strategies: summation, difference, average, median, variance, year-on-year, month-on-month, and preset processing strategies. Optionally, the report generation instruction also indicates the time range for data processing. This application does not limit the time range for data processing; any time range can be used as the time range for data processing provided in this application. Optionally, it can be a monthly, quarterly, or yearly time range, etc.

[0092] The data analysis and processing strategy refers to the strategy of analyzing and processing the processed source data to obtain the corresponding reasons for the data. This application does not limit the data analysis and processing strategy; any strategy capable of analyzing and processing the processed source data to obtain the corresponding reasons for the data can be used as the data analysis and processing strategy provided in this application.

[0093] Specifically, the source data can be processed according to the data processing strategies included in the data processing strategy to obtain the processed source data. This application does not limit the process of processing the source data according to the data processing strategies included in the data processing strategy to obtain the processed source data; however, the process of processing the source data according to the data processing strategies included in the data processing strategy to obtain the processed source data corresponds to the data processing strategy itself.

[0094] Step S202: According to the data analysis and processing strategy included in the data processing strategy, perform data analysis and processing on the source data after data processing to obtain the processed source data.

[0095] Specifically, after obtaining the processed source data, data analysis and processing strategies included in the data processing strategy can be performed on the processed source data to obtain processed source data. This application does not limit the process of performing data analysis and processing on the processed source data according to the data analysis and processing strategies included in the data processing strategy to obtain processed source data; however, the process of performing data analysis and processing on the processed source data according to the data analysis and processing strategies included in the data processing strategy to obtain processed source data corresponds to the data analysis and processing strategy. Optionally, the corresponding cause data can be determined first based on the processed source data, and then the cause corresponding to the data can be determined based on the corresponding cause data. The cause data refers to the data corresponding to the cause of the indicator data related to the processed source data.

[0096] For example, in the field of chemical processes, if the processed data shows "This month's total liquid yield is 99.04%, an increase of 0.10% compared to last month," then we can first obtain the corresponding underlying data, namely, the yields of each liquid: "This month's hydrotreated wax oil yield is 97.26%, a decrease of 0.54% compared to last month; this month's diesel yield is 0%, unchanged from last month; this month's naphtha yield is 1.78%, an increase of 0.64% compared to last month; this month's dry gas yield is 0.76%, a decrease of 0.10% compared to last month." Then, based on... Based on the obtained corresponding data, the corresponding cause data was determined to be "This month's total liquid yield was 99.04%, an increase of 0.10% compared to last month. The reasons are as follows: Among the various liquid yields corresponding to this month's total liquid yield, naphtha yield increased by 0.64% compared to last month, a significant increase, which contributed greatly to the growth of the total liquid yield. Diesel yield remained the same as last month, but hydrotreated wax oil yield decreased by 0.54% compared to last month, a significant decrease, which reduced the growth of the total liquid yield. At the same time, dry gas yield decreased by 0.10% compared to last month, which also reduced the growth of the total liquid yield."

[0097] The embodiments of this application provide a process where, if a report generation instruction instructs the generation of a first type of report, the source data is processed according to a data processing strategy to obtain processed source data. This process involves processing the source data according to the data processing strategy, and then analyzing the processed source data according to the data analysis strategy. Specifically, if the report generation instruction instructs the generation of a first type of report, the source data is processed automatically using both the data processing strategy and the data analysis strategy, thereby improving the accuracy and efficiency of data processing and further enhancing the accuracy of report generation.

[0098] Figure 3 Flowchart of the report generation method provided in this application Figure 3 ,like Figure 3 As shown, in this embodiment... Figure 1 or Figure 2 Based on the embodiments, the process of processing the source data according to the data processing strategy to obtain processed source data when the report generation instruction indicates the generation of a second type of report is described in detail. The method includes:

[0099] Step S301: According to the data processing strategy, process the source data to obtain and present the processed source data so that users can perform data analysis based on the processed source data.

[0100] Specifically, the source data can be processed according to the data processing strategy to obtain and present the processed source data. If the report generation instruction instructs the generation of a second type of report, the process of processing the source data according to the data processing strategy to obtain the processed source data can be referred to in step S201, which describes the process of processing the source data according to the data processing strategy included in the data processing strategy to obtain the processed source data; this will not be repeated here.

[0101] Specifically, after obtaining the processed source data, the processed source data can be presented to enable users to perform data analysis based on it. This application does not limit the format in which the processed source data is presented. Optionally, it can be presented in the form of summary information as described in the above embodiments; that is, summary information is generated based on the processed source data and presented in the summary area of ​​the report template. Optionally, it can also be presented in the table area of ​​the report template.

[0102] Step S302: Receive the data analysis results input by the user, and determine the data analysis results and the processed source data as the processed source data.

[0103] Specifically, after processing the source data according to the data processing strategy to obtain and present the processed source data, the system can receive the data analysis results input by the user and determine the data analysis results and the processed source data as the processed source data.

[0104] For example, in the field of chemical processes, if the source data after data processing is "New water consumption this month is 55 tons, the same as last month.", then the result of the data analysis received from the user input can be "In normal production, the new water in this unit is only used for domestic water and water for eyewash stations in the unit, with a consumption of <1t / h. The consumption of new water is reduced due to the influence of water consumption in the control room."

[0105] The embodiments of this application provide a process where, if a report generation instruction instructs the generation of a second type of report, the source data is processed according to a data processing strategy to obtain processed source data. By processing the source data according to the data processing strategy, processed source data is obtained and presented, allowing users to perform data analysis based on the processed source data. The system receives the data analysis results input by the user and identifies the data analysis results and the processed source data as the processed source data. Specifically, if the report generation instruction instructs the generation of a second type of report, the source data is first automatically processed according to the data processing strategy to obtain processed source data, which can improve the accuracy of data processing. Then, the processed source data is presented so that users can perform data analysis based on the processed source data, which can improve the accuracy of data analysis. In summary, the accuracy of report generation can be improved.

[0106] In one possible embodiment, the report generation instruction is used to instruct the generation of a third type of report. This third type of report refers to a report whose source data is not automatically retrieved. Specifically, if the report generation instruction instructs the generation of a third type of report, the corresponding source data cannot be automatically retrieved from the source data system described above. In this case, the report generation method further includes: responding to the report generation instruction by generating and presenting a source data upload page, so that the user can upload the corresponding source data based on the source data upload page.

[0107] For example, in the field of chemical processes, if a report generation command instructs the generation of a chemical three-agent report, then in response to the report generation command, a source data upload page can be generated and presented, allowing users to upload the corresponding source data, namely, catalyst data, solvent data, and additive data, based on the source data upload page. This application does not limit the catalyst data, solvent data, and additive data; optionally, they can be corresponding budget data or corresponding usage data.

[0108] Optionally, after uploading the corresponding source data, the source data can be processed according to the source data processing procedure described above.

[0109] In one possible embodiment, the report generation instruction is used to instruct the generation of a fourth type of report. This fourth type of report is a non-automatically generated report. Specifically, if the report generation instruction instructs the generation of a fourth type of report, and there is no corresponding source data, the report generation method further includes: responding to the report generation instruction by acquiring and presenting corresponding historical report data, so that the user can input the current report data corresponding to the report generation instruction based on the historical report data; receiving the current report data; and generating the report corresponding to the report generation instruction based on the current report data.

[0110] For example, in the field of chemical processes, if a report generation command instructs the generation of one of the following reports: process alarm operation and change status report, process interlock activation and change status report, process index and stability rate execution and change status report, operating procedure and operation card execution and change status report, rectification plan or suggestion report for production technical problems encountered in the unit report, process accident and event analysis report, scientific and technological research project completion status report, technical transformation project completion status report, new agent application status report, conversion and trial production status analysis report, planned and unplanned shutdown, cycle number and cause summary report, and unit compliance data and analysis report, then the command can respond to the report generation command by acquiring and presenting the corresponding historical report data, allowing the user to input the current report data corresponding to the report generation command based on the historical report data. This application does not limit the time range corresponding to the historical report data; optionally, it can be at least one month before the current month, at least one quarter before the current quarter, or at least one year before the current year, etc.

[0111] For example, in the field of chemical processes, if a report generation command instructs the generation of a report on process alarm operation and changes, the system can respond to the report generation command by obtaining and presenting the process alarm operation and changes data from the previous month. This allows the user to input the current report data corresponding to the report generation command based on the presented process alarm operation and changes data from the previous month.

[0112] Figure 4 A schematic diagram of the structure of the report generation device provided in this application is shown below. Figure 4 As shown, the report generation device 40 provided in this embodiment includes:

[0113] The determination module 401 is used to determine at least one source data system and data processing strategy corresponding to the report generation instruction in response to the report generation instruction; wherein, the report generation instruction is used to instruct the generation of the corresponding report;

[0114] The acquisition module 402 is used to acquire the source data corresponding to the report generation instruction from at least one source data system;

[0115] The processing module 403 is used to process the source data according to the data processing strategy to obtain the processed source data.

[0116] The generation module 404 is used to generate the report corresponding to the report generation instruction based on the processed source data.

[0117] In one possible embodiment, the report generation instruction is used to instruct the generation of a first type of report or a second type of report; wherein the first type of report is an automatically analyzed report; and the second type of report is a non-automatically analyzed report.

[0118] In one possible embodiment, if the report generation instruction instructs the generation of a first type of report, the data processing strategy includes a data processing strategy and a data analysis strategy; the processing module 403 is specifically used to process the source data according to the data processing strategy included in the data processing strategy to obtain the processed source data; and to perform data analysis on the processed source data according to the data analysis strategy included in the data processing strategy to obtain the processed source data.

[0119] In one possible embodiment, if the report generation instruction indicates the generation of a second type of report, the processing module 403 is specifically used to process the source data according to the data processing strategy, obtain and present the processed source data, so that the user can perform data analysis based on the processed source data; receive the data analysis results input by the user, and determine the data analysis results and the processed source data as the processed source data.

[0120] In one possible embodiment, the report generation apparatus further includes a preprocessing module 405 (not shown in the figure), which performs at least one of the following processes on the source data: filtering, format conversion, name unification, and outlier handling.

[0121] In one possible embodiment, the report generation instruction is used to instruct the generation of a third type of report; wherein, the third type of report is a report of the type that does not automatically acquire source data; the generation module 404 is also used to generate and present a source data upload page in response to the report generation instruction, so that the user can upload the corresponding source data based on the source data upload page.

[0122] In one possible embodiment, the report generation instruction is used to instruct the generation of a fourth type of report; wherein, the fourth type of report is a non-automatically generated type of report; the generation module 404 is also used to respond to the report generation instruction, obtain and present the corresponding historical report data, so that the user can input the current report data corresponding to the report generation instruction based on the historical report data; receive the current report data, and generate the report corresponding to the report generation instruction based on the current report data.

[0123] In one possible embodiment, the generation module 404 is specifically used to determine the report template corresponding to the report generation instruction; and to combine the processed source data with the report template to obtain the report corresponding to the report generation instruction.

[0124] The report generation device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0125] Figure 5A schematic diagram of the structure of the electronic device provided in this application. Figure 5 As shown, the electronic device 50 provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the device 50 further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus 504.

[0126] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.

[0127] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0128] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0129] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0130] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0131] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0132] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0133] This application also provides a vehicle including an electronic device that implements the above-described method.

[0134] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0135] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0136] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0137] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0138] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0139] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0140] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0141] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A method for generating reports, characterized in that, include: In response to a report generation instruction, at least one source data system and a data processing strategy corresponding to the report generation instruction are determined; wherein the report generation instruction is used to instruct the generation of a corresponding report; Obtain the source data corresponding to the report generation instruction from the at least one source data system; According to the data processing strategy, the source data is processed to obtain the processed source data; Based on the processed source data, generate the report corresponding to the report generation instruction.

2. The method according to claim 1, characterized in that, The report generation instruction is used to instruct the generation of a first type of report or a second type of report; wherein, the first type of report is an automatically analyzed report; and the second type of report is a non-automatically analyzed report.

3. The method according to claim 2, characterized in that, If the report generation instruction instructs the generation of the first type of report, then the data processing strategy includes a data processing strategy and a data analysis strategy. According to the data processing strategy, the source data is processed to obtain processed source data, including: According to the data processing strategy included in the data processing strategy, the source data is processed to obtain the processed source data; According to the data analysis and processing strategy included in the data processing strategy, the processed source data is subjected to data analysis and processing to obtain the processed source data.

4. The method according to claim 2, characterized in that, If the report generation instruction instructs the generation of the second type of report, then according to the data processing strategy, the source data is processed to obtain processed source data, including: According to the data processing strategy, the source data is processed to obtain and present the processed source data, so that users can perform data analysis based on the processed source data. The system receives the results of data analysis input by the user and determines the results of the data analysis and the source data after data processing as the processed source data.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: The source data is subjected to at least one of the following processes: filtering, format conversion, name unification, and outlier handling.

6. The method according to claim 5, characterized in that, The report generation instruction is used to instruct the generation of a third type of report; wherein, the third type of report is a report of a type that does not automatically acquire source data; the method further includes: In response to a report generation command, a source data upload page is generated and presented so that the user can upload the corresponding source data based on the source data upload page.

7. The method according to claim 5, characterized in that, The report generation instruction is used to instruct the generation of a fourth type of report; wherein, the fourth type of report is a non-automatically generated report; the method further includes: In response to a report generation command, the system acquires and presents the corresponding historical report data, enabling the user to input the current report data corresponding to the report generation command based on the historical report data. Receive the current report data and generate the report corresponding to the report generation instruction based on the current report data.

8. The method according to claim 5, characterized in that, Based on the processed source data, generate the report corresponding to the report generation instruction, including: Determine the report template corresponding to the report generation instruction; The processed source data is combined with the report template to obtain the report corresponding to the report generation instruction.

9. A report generation device, characterized in that, include: A determination module is used to determine at least one source data system and data processing strategy corresponding to a report generation instruction in response to the report generation instruction; wherein the report generation instruction is used to instruct the generation of a corresponding report; The acquisition module is used to acquire the source data corresponding to the report generation instruction from the at least one source data system; The processing module is used to process the source data according to the data processing strategy to obtain processed source data. The generation module is used to generate the report corresponding to the report generation instruction based on the processed source data.

10. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-8.

12. A computer program product comprising a computer program that, when executed by a processor, implements the method of any one of claims 1-8.