A method for automatically generating a Chinese industrial inspection report based on a three-layer extensible architecture

By using a three-tier architecture for automatic generation, the problems of time-consuming handwritten reports and insufficient generation capabilities of general report software in existing technologies are solved, and efficient and unified automated generation of industrial inspection reports is achieved.

CN123139979APending Publication Date: 2026-11-20SHANGHAI QILIAN CONSTRUCTION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611330062.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies for generating industrial inspection reports suffer from time-consuming and inconsistent formats when using handwritten reports, and general reporting software cannot generate professional components such as statistical cards, color badges, defect lists, and image grids.

Method used

It adopts a three-layer scalable architecture, consisting of a style layer, a component layer, and an orchestration layer, which define page styles, reusable components, and data combinations respectively, and automatically generate inspection reports.

Benefits of technology

It enables the efficient generation of professional inspection reports in a unified format, automates the processing of visual semantic components, reduces manual intervention, and improves the efficiency and quality of report generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139979A_ABST
    Figure CN123139979A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on three-layer extensible architecture's chinese industrial inspection report automatic generation method, belong to industrial data report automation technical field.The specific implementation contains three actions: one is in style layer A4 page, header and footer text, cover layout, table interline background color, statistical card three-color gradient, according to the style specification of defect severity colored badge, etc., ready for use at one time;Two are in element layer pre-packaging statistical card, data table, defect list, four kinds of reusable components of image grid, each kind of component binds a kind of data type with a set of form template;Three are in arrangement layer according to the general data of inspection task and defect statistics result, according to report type corresponding component combination and chapter order, component is instantiated one by one and data is filled into template, in conclusion and suggestion chapter, according to defect severity level distribution, automatically form rectification opinion, finally, the whole description document is merged and rendered into finished product report of portable format.The layout structure can be self-adapting according to data type, and rectification opinion can also be aligned with defect distribution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial data reporting automation technology, and in particular to a method for automatically generating Chinese industrial inspection reports based on a three-tier scalable architecture. Background Technology

[0002] After the drone industrial inspection is completed, a professional inspection report needs to be generated and submitted to the owner. The report typically includes sections such as a mission overview, defect analysis, inspection images, and rectification suggestions, and is required to be formatted correctly, complete in information, and professional. In the existing technology, inspection reports are usually generated in two ways: one is that maintenance personnel manually write the report, extracting data from the inspection data and filling it into a manual template; the other is to use general reporting software to output simple statistics in tabular form. Manually writing reports is extremely inefficient for batch inspection tasks, requiring a significant amount of time for formatting and data entry for each report. General-purpose reporting software can only output simple table layouts and cannot generate complex pages with professional components such as statistical cards, color badges, defect lists, and image grids. Summary of the Invention

[0003] The direct motivation for developing this automated report generation method is that, in batch inspection tasks, handwritten reports are time-consuming and inconsistent in style, while general reporting software can only output simple tables and cannot support professional components with visual semantics, such as statistical cards, colored badges, defect lists, and image grids. Therefore, the generation process is broken down into three stages: style layer, component layer, and layout layer. The style layer first defines the specifications such as page size, badge color, and table stripes. The component layer encapsulates reusable components such as statistical cards, data tables, and defect lists. The layout layer then dynamically selects and combines components based on the obtained data and fills in the final report. The advantage of this three-layer structure is that each layer can manage its own segment: when adding a new report type, you only need to add a component combination scheme in the layout layer, and the style layer and component layer do not need to be changed accordingly; the badge color is automatically matched according to the severity of the defect, so that it is a visually unified set; the conclusion and recommendation section is automatically generated according to the distribution of defects, so as to avoid omissions or typos when manually modifying it. Attached Figure Description Figure 1 This is a flowchart of the method for automatically generating a three-tier architecture report in an embodiment of the present invention. The meanings of the markings in the diagram are as follows: 101- Bottom Style Layer: Predefines page styles and component style specifications. 102- Middle Component Layer: Predefines reusable components such as statistical cards, tables, defect lists, image grids, etc. 103- Top Arrangement Layer: Receives task summaries and defect statistics. 104- Selects component combination schemes and chapter order based on report type. 105- Instantiates components and fills in data sequentially by chapter. 106- Assembles all chapter page fragments into a complete description document. 107- Renders the final report file. 108- Automatically generates rectification suggestion text based on defect severity distribution. Detailed Implementation The following is combined with Figure 1 Go through the entire generation process. The underlying style layer must first prepare a complete set of style specifications (such as...) Figure 1 (As shown in mark 101): The page uses A4 paper. The header contains the company name, the footer contains the generation statement, the cover is centered with a confidentiality label and compilation information, the tables have alternating light gray backgrounds for odd and even rows, and the statistical cards are color-coded with different gradients for three themes: alarm, normal, and information. Defect badges are colored according to severity: severe red, high-risk orange, medium-risk yellow, and low-risk green. These styles are not put together temporarily but are predefined in the template and can be used directly in subsequent instantiation. The intermediate component layer encapsulates four types of reusable page components (such as...). Figure 1 (As shown in mark 102): Statistical cards manage combinations of multi-column numerical labels, data tables manage row and column data, defect lists manage defect entries with badges and descriptions, and image grids manage multi-column thumbnails. Each component is bound to a data type and a set of form-filling templates, so that when data comes in at one level, there is a corresponding board to receive it. At the top-level arrangement layer (such as Figure 1 As shown in the middle (marked 103), first input the summary data of the inspection task and the defect detection statistics. The summary data includes the task name, task type, execution time, flight distance, number of waypoints completed, and coverage percentage; the defect statistics include the total number of defects, the number of defects at each severity level, and the number of defects in each category. After receiving the data, the organization layer first selects a set of component combinations and chapter order according to the report type (e.g., Figure 1 (As shown in mark 104). The three types of reports—inspection reports, defect reports, and operation analysis reports—have slightly different component combinations and chapter arrangements. Then proceed sequentially through the chapters (e.g., ...). Figure 1 (As shown in mark 105): Each chapter first instantiates the corresponding structured element, then selects the style applicable to the current element from the style specification set, fills the corresponding fields in the summary data or defect statistics data into the element's form template, and generates the page description fragment for this chapter. All chapter page fragments are pieced together in order (e.g., ... Figure 1As shown in markup 106, this constitutes a complete and coherent structured page description document. This description document is in Hypertext Markup Language format for easy rendering later. To the chapter on conclusions and recommendations (e.g.) Figure 1 As shown in the middle (marked 108), the system automatically writes rectification opinions according to the severity level of the defects: if there are severe defects, it will issue an emergency repair suggestion; if there are no severe defects but there are high-risk defects, it will issue a maintenance suggestion within 48 hours; if there are only medium-risk defects, it will issue a monthly maintenance suggestion; if there are only low-risk defects, it will issue a quarterly inspection suggestion; if there are no defects, it will write that the equipment is in good operating condition. The entire description document is rendered uniformly at the end (e.g.) Figure 1 As shown in mark 107, converting the Hypertext Markup Language document into a portable document format results in the final inspection report file that can be submitted.

Claims

1. A method for automatically generating Chinese industrial inspection reports based on a three-tier scalable architecture, characterized in that, The three-tier architecture includes the following steps: a bottom-level style layer, a middle-level component layer, and a top-level orchestration layer. A complete set of style specifications is predefined in the bottom style layer. The set of style specifications includes the A4 page size, the content rules for displaying the company name in the header and the generation statement in the footer, the cover style of the cover page with centered layout and containing confidentiality label and compilation information, the stripe style of the table with alternating odd and even rows and light gray background, the gradient style of the statistical card with different gradient colors applied according to three themes: alarm type, normal type and information type, and the color style of the defect severity badge. The color scheme for the defect severity badges is as follows: the background color for severe defect badges is red, the background color for high-risk defect badges is orange, the background color for medium-risk defect badges is yellow, and the background color for low-risk defect badges is green. The text color inside the badge is white or a dark color that contrasts with the background color. At least four reusable structured page elements are predefined in the intermediate element layer. Each element is associated with a data type and a set of data filling templates. The elements include: a statistical card element associated with a key-value pair list data type, a data table element associated with row and column data, a defect list element associated with badges and descriptions of defect entries, and an image grid element associated with multiple columns of thumbnails. The top-level orchestration layer receives inspection task summary data—including task name, task type, execution duration, flight distance, number of waypoints completed and coverage percentage—as well as defect detection statistics—including total number of defects, number of defects at each severity level and number of defects in each defect category. In the top-level orchestration layer, the corresponding component combination scheme is selected according to the report type. The report types include inspection reports, defect special reports, and operation analysis reports. Different report types correspond to different component combination schemes and chapter orders. According to the chapter order in the selected component combination scheme, the corresponding structured components are instantiated in each chapter in turn. The style applicable to the current component is selected from the style specification set. The corresponding fields in the task summary data or defect detection statistics are filled into the data filling template of the component to generate the page description fragment of the chapter. When arranging the conclusions and recommendations section, the text of rectification recommendations is automatically generated according to preset rules based on the distribution of defect severity levels: when there are severe defects, emergency repair recommendations are generated. When there are no severe defects but there are high-risk defects, a maintenance recommendation is generated within 48 hours; when there are only medium-risk defects, a monthly maintenance recommendation is generated; when there are only low-risk defects, a quarterly maintenance recommendation is generated; when there are no defects, a text indicating that the equipment is in good operating condition is generated. The page description fragments of all chapters are sequentially assembled into a complete structured page description document; the structured page description document is a Hypertext Markup Language (HTML) format document; Render the structured page description document to convert the Hypertext Markup Language document into a portable document format inspection report file.

2. The method according to claim 1, characterized in that, The color and style specifications for the defect severity badges are as follows: the background color of the severe defect badge is red, the background color of the high-risk defect badge is orange, the background color of the medium-risk defect badge is yellow, and the background color of the low-risk defect badge is green. The text inside the badge is white or dark to contrast with the background color.

3. The method according to claim 1, characterized in that, The data type associated with the statistical card element is a list of key-value pairs. Each key-value pair contains a numeric field, a label field, and a theme field. When the data is populated, it is rendered as a multi-column statistical card in a grid layout.

4. The method according to claim 1, characterized in that, When compiling the conclusions and recommendations section of the inspection report, the top-level compilation layer automatically generates rectification recommendation text based on the distribution of defect severity levels: emergency repair recommendations are generated when the severity of a defect is greater than zero, maintenance recommendations are generated within 48 hours when the risk of a defect is greater than zero, monthly maintenance recommendations are generated when the risk of a defect is greater than zero, and quarterly maintenance recommendations are generated when the risk of a defect is greater than zero.

5. The method according to claim 1, characterized in that, The structured page description document is in Hypertext Markup Language (HTML) format, and the rendering process is completed by converting the HTML document into a portable document format.

6. A Chinese industrial inspection report automatic generation system based on a three-tier scalable architecture, characterized in that, The system includes a style predefinition module, a component predefinition module, a data receiving module, an arrangement and assembly module, and a rendering output module. The style predefinition module is used to predefine complete style specifications for various page elements. The component predefinition module is used to pre-encapsulate reusable structured page components and their data filling templates. The data receiving module is used to receive summary data and defect detection statistics of inspection tasks. The arrangement and assembly module is used to select the corresponding component combination scheme according to the report type and complete the component instantiation and data filling in the order of chapters. The rendering output module is used to convert the assembled page description document into the final report format file.

7. The system according to claim 6, characterized in that, When arranging the conclusions and recommendations section, the arrangement and assembly module automatically generates rectification recommendations according to preset rules based on the distribution of defect severity levels.

8. A terminal device for generating drone inspection reports, characterized in that, The system includes the automatic generation system for Chinese industrial inspection reports based on a three-tier scalable architecture as described in claim 6 or 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.