A method, apparatus, equipment, and medium for generating inspection reports.

The problem of inconsistent naming of test items was solved by using field and semantic matching technology, which ensures that the test items are accurately matched, simplifies the data processing flow, and improves the accuracy and efficiency of test reports. It is suitable for a variety of application scenarios.

CN119740559BActive Publication Date: 2025-11-14GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411625276.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-11-14
Estimated Expiration
2044-11-14

AI Technical Summary

Technical Problem

Inconsistent naming of inspection items in inspection reports for different materials increases the complexity of data processing and raises the error rate, affecting the accuracy and efficiency of inspection reports.

Method used

By using field matching and semantic matching techniques to process the description fields of the testing equipment and the preset standard testing items, we can ensure that the testing items are accurately matched under different naming rules. We can further improve the matching accuracy by using a thesaurus and a domain corpus.

Benefits of technology

It achieves accurate matching of inspection items, reduces manual intervention, simplifies data processing, improves the efficiency of quality management processes and the standardization of inspection reports, and enhances the comparability and consistency of inspection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119740559B_ABST
    Figure CN119740559B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, device, and medium for generating inspection reports. The method includes: acquiring a description field of an inspection device and inspection data; performing field matching based on the description field of the inspection device and a description field of a preset standard inspection item to obtain a field matching result and thus determine a first target inspection item; if the first target inspection item does not exist in the preset standard inspection items, performing semantic matching based on the description field of the inspection device and the description field of the preset standard inspection item to obtain a semantic matching degree between the inspection item of the inspection device and the preset standard inspection item, obtaining a semantic matching result to determine a second target inspection item; and determining an inspection report based on the second target inspection item. This ensures that the inspection items of the inspection device can be accurately matched with the preset standard inspection items even under different naming rules, effectively avoiding data correspondence errors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of inspection report technology, and in particular to an inspection report generation method, apparatus, equipment, and medium. Background Technology

[0002] In quality management processes, it is inevitable to perform multiple inspections on materials and compile standardized inspection reports based on these results to verify the quality compliance of the materials. However, in practice, inspection reports for different materials often use different naming conventions for inspection items. This inconsistency in naming makes it difficult to directly correlate raw data obtained from inspection equipment with specific inspection items. This mismatch not only increases the complexity of data processing and the necessity of manual intervention but may also introduce errors, thereby affecting the accuracy of inspection reports and reducing work efficiency. Therefore, a method is needed to solve the data correspondence problem caused by differences in inspection item naming to ensure that inspection reports accurately and efficiently reflect the actual inspection status of materials. Summary of the Invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a method, apparatus, device and medium for generating inspection reports that overcomes or at least partially solves the above problems.

[0004] To address the above problems, this invention discloses a method for generating inspection reports, the method comprising:

[0005] Obtain the description field and test data of the testing equipment; the description field is used to characterize the test items of the testing equipment.

[0006] The field matching is performed between the description field of the testing equipment and the description field of the preset standard testing items to obtain the field matching degree between the testing items of the testing equipment and the preset standard testing items.

[0007] Based on the field matching degree between the inspection items of the inspection equipment and the preset standard inspection items, it is determined whether there is a first target inspection item in the preset standard inspection items;

[0008] If there is no first target inspection item in the preset standard inspection items, semantic matching is performed based on the description field of the inspection equipment and the description field of the preset standard inspection items to obtain the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items.

[0009] Based on the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items, the second target inspection item in the preset standard inspection items is determined;

[0010] Optionally, determining the second target inspection item in the preset standard inspection items based on the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items includes:

[0011] Based on the second target test item, output the second item matching result to the user so that the user can confirm whether the second item matching result meets expectations;

[0012] Based on the user's confirmation of the matching result of the second item, the second target inspection item is determined.

[0013] Optionally, the step of performing field matching based on the description field of the testing equipment and the description field of the preset standard testing items to obtain the field matching degree between the testing items of the testing equipment and the preset standard testing items includes:

[0014] If a test report template corresponding to the description field of the test equipment cannot be obtained based on the description field of the test equipment, a field matching is performed based on the description field of the test equipment and the description field of the preset standard test item to obtain the field matching degree between the test item of the test equipment and the preset standard test item.

[0015] The method further includes:

[0016] Under the condition that an inspection report template corresponding to the description field of the inspection equipment can be obtained based on the description field of the inspection equipment, an inspection report is obtained based on the inspection data of the inspection equipment and the inspection report template.

[0017] Optionally, after obtaining the test report, the method further includes:

[0018] Based on the inspection report and the description field of the inspection equipment, determine the inspection report template corresponding to the description field of the inspection equipment.

[0019] Optionally, determining the inspection report template corresponding to the description field of the inspection equipment based on the inspection report and the description field of the inspection equipment includes:

[0020] Based on the inspection report and the description field of the inspection equipment, determine the initial inspection report template corresponding to the description field of the inspection equipment;

[0021] The initial inspection report template corresponding to the description field of the inspection equipment is output to the user so that the user can confirm whether the initial inspection report template meets expectations.

[0022] Based on the user's confirmation of the initial inspection report template, an inspection report template corresponding to the description field of the inspection equipment is determined.

[0023] Optionally, the method further includes:

[0024] If a first target inspection item exists in the preset standard inspection items and the field matching degree also meets the preset matching degree threshold, an inspection report is obtained based on the inspection data and the first target inspection item.

[0025] If a first target inspection item exists in the preset standard inspection items, but the field matching degree does not meet the preset matching degree threshold, field matching is performed based on the thesaurus and the description field of the inspection device to obtain the thesaurus matching degree between the thesaurus and the description field of the inspection device.

[0026] The target synonym is determined based on the synonym matching degree between the thesaurus and the description field of the testing device;

[0027] Based on the target synonyms and the preset standard test items, determine the third target test item among the preset standard test items;

[0028] An inspection report is obtained based on the inspection data, the first target inspection item, and the third target inspection item.

[0029] Optionally, the method further includes:

[0030] The thesaurus is obtained based on expert review and a domain corpus; the domain corpus includes unique vocabulary in the corresponding domain of the preset standard test items.

[0031] On the other hand, embodiments of the present invention disclose an apparatus for generating inspection reports, the apparatus comprising:

[0032] The description field acquisition module is used to acquire the description field of the testing equipment and the testing data; the description field is used to characterize the testing items of the testing equipment.

[0033] The first item matching module is used to perform field matching based on the description field of the testing equipment and the description field of the preset standard testing items to obtain the field matching degree between the testing items of the testing equipment and the preset standard testing items.

[0034] The first item determination module is used to determine whether a first target inspection item exists in the preset standard inspection items based on the field matching degree between the inspection items of the inspection equipment and the preset standard inspection items;

[0035] The second item matching module is used to perform semantic matching based on the description field of the testing equipment and the description field of the preset standard testing items when there is no first target testing item in the preset standard testing items, so as to obtain the semantic matching degree between the testing items of the testing equipment and the preset standard testing items.

[0036] The second item determination module is used to determine the second target inspection item in the preset standard inspection items based on the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items;

[0037] The inspection report acquisition module is used to obtain an inspection report based on the inspection data and the second target inspection item.

[0038] Optionally, the second project determination module includes:

[0039] The second user confirmation submodule is used to output the second item matching result to the user based on the second target inspection item, so that the user can confirm whether the second item matching result meets expectations;

[0040] The second target item confirmation module is used to determine the second target inspection item based on the user's confirmation of the matching result of the second item.

[0041] Optionally, the first item matching module includes:

[0042] The first item matching degree acquisition module is used to perform field matching based on the description field of the inspection equipment and the description field of the preset standard inspection item when the inspection report template corresponding to the description field of the inspection equipment cannot be obtained based on the description field of the inspection equipment. This allows the module to obtain the field matching degree between the inspection item of the inspection equipment and the preset standard inspection item.

[0043] The device further includes:

[0044] The template matching module is used to obtain an inspection report based on the inspection data of the inspection equipment and the inspection report template, provided that an inspection report template corresponding to the description field of the inspection equipment can be obtained based on the description field of the inspection equipment.

[0045] Optionally, the device further includes:

[0046] The first inspection report acquisition submodule is used to obtain an inspection report based on the inspection data and the first target inspection item when a first target inspection item exists in the preset standard inspection items and the field matching degree also meets the preset matching degree threshold.

[0047] The synonym matching submodule is used to perform field matching based on the synonym dictionary and the description field of the testing equipment when a first target testing item exists in the preset standard testing items, but the field matching degree does not meet the preset matching degree threshold, so as to obtain the synonym matching degree of the synonym dictionary and the description field of the testing equipment.

[0048] The synonym acquisition submodule is used to determine the target synonym based on the synonym matching degree between the synonym dictionary and the description field of the verification device;

[0049] The third item acquisition submodule is used to determine the third target inspection item among the preset standard inspection items based on the target synonym and the preset standard inspection items.

[0050] The third inspection report acquisition submodule is used to obtain an inspection report based on the inspection data, the first target inspection item, and the third target inspection item.

[0051] Optionally, after obtaining the inspection report, the device further includes:

[0052] The inspection report generation submodule is used to determine the inspection report template corresponding to the description field of the inspection equipment based on the inspection report and the description field of the inspection equipment.

[0053] Optionally, the test report generation submodule includes:

[0054] The template user confirmation unit is used to determine an initial inspection report template corresponding to the description field of the inspection equipment based on the inspection report and the description field of the inspection equipment.

[0055] A template output unit is used to output the initial inspection report template corresponding to the description field of the inspection equipment to the user, so that the user can confirm whether the initial inspection report template meets the expected template. A template confirmation unit is used to determine the inspection report template corresponding to the description field of the inspection equipment based on the user's confirmation result of the initial inspection report template.

[0056] Optionally, the device further includes:

[0057] The thesaurus construction module is used to obtain the thesaurus based on expert review and a domain corpus; the domain corpus includes unique vocabulary in the corresponding domain of the preset standard test items.

[0058] Accordingly, this invention discloses an electronic device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various steps of the above-described inspection report generation method embodiment.

[0059] Accordingly, embodiments of the present invention disclose a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the various steps of the above-described embodiments of the inspection report generation method.

[0060] The embodiments of this invention offer the following advantages: By matching the description fields of the testing equipment and the description fields of preset standard testing items, the correspondence between testing items and standard items can be initially determined. When the field matching results do not meet expectations, semantic matching technology is further employed to ensure accurate correspondence between the testing items of the testing equipment and the preset standard testing items, even under different naming rules, effectively avoiding data correspondence errors. This automated field matching and semantic matching process effectively reduces manual intervention, simplifies the data processing flow, and thus improves the efficiency of the entire quality management process. Furthermore, using preset standard testing items as a benchmark helps to standardize and normalize testing reports, improves the level of quality management, and makes testing results more comparable and consistent. In summary, this embodiment can flexibly address the problem of inconsistent naming of testing items in different testing reports, enhances the adaptability and flexibility of the system, and is suitable for various application scenarios. Attached Figure Description

[0061] Figure 1 This is a flowchart illustrating the steps of an embodiment of the test report generation method of the present invention;

[0062] Figure 2 This is a structural block diagram of an embodiment of an inspection report generation device according to the present invention. Detailed Implementation

[0063] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0064] In the field of quality management, there is a close relationship between inspection equipment, inspection reports, and inspection templates. Inspection equipment is the foundation of inspection work, and its performance and quality directly affect the accuracy and reliability of inspection results. Inspection reports are the embodiment of the results of inspection work, recording the inspection process, methods, and results, and providing an important basis for quality management. Inspection templates are the standard format and specifications for inspection reports, ensuring the consistency and comparability of inspection reports.

[0065] One of the core concepts of this invention is to process the description fields of the testing equipment and the description fields of the preset standard testing items through field matching and voice matching technologies, so as to ensure that the testing items of the testing equipment can be accurately matched with the preset standard testing items even under different naming rules, thereby avoiding data correspondence errors.

[0066] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of the test report generation method of the present invention, which may specifically include the following steps:

[0067] Step 101: Obtain the description field and inspection data of the testing equipment; the description field is used to characterize the inspection items of the testing equipment.

[0068] When generating an inspection report, it is necessary to first obtain the description field of the inspection equipment and the inspection data. The description field of the inspection equipment is used to characterize the items inspected by the inspection equipment, while the inspection data represents the data generated in this inspection. In practice, the description field of the inspection equipment can be dynamically adjusted according to the design of the inspection business.

[0069] For example, the description field of the inspection equipment may include the inspection items for this inspection, the equipment name and other identifying fields used to uniquely identify the equipment, the specific model of the inspection equipment including type and specifications and other equipment data, and log information such as production date and manufacturer used to provide the manufacturing background of the equipment, which is conducive to tracing the history and maintenance records of the equipment.

[0070] Step 102: Perform field matching based on the description field of the testing equipment and the description field of the preset standard testing items to obtain the field matching degree between the testing items of the testing equipment and the preset standard testing items;

[0071] The preset standard inspection items are designed according to business needs and need to be reflected in the inspection report. The description field of the preset standard inspection items includes the item name and the data range of qualified data. When the item name corresponds, if the inspection data of the inspection equipment falls within the data range of qualified data, the data is considered qualified; otherwise, the data is considered unqualified.

[0072] After obtaining the description fields of the testing equipment and the preset standard testing items, a field matching algorithm is applied to match these two fields to obtain the field matching degree. Generally, field matching algorithms are used in computer science to match fields in two datasets to determine the similarity or matching degree between them.

[0073] For example, the field matching algorithm used to match the description field of the testing equipment and the description field of the preset standard testing items can be one or more of the Levenshtein Distance algorithm, the Jaccard Similarity Coefficient algorithm, and the Cosine Similarity algorithm. It should be noted that the field matching algorithm used to match the description field of the testing equipment and the description field of the preset standard testing items can also be other field matching algorithms, and the embodiments of the present invention do not limit this.

[0074] In one embodiment, step 102 includes the following sub-steps:

[0075] Sub-step S11: If an inspection report template corresponding to the description field of the inspection equipment cannot be obtained based on the description field of the inspection equipment, perform field matching based on the description field of the inspection equipment and the description field of the preset standard inspection item to obtain the field matching degree between the inspection item of the inspection equipment and the preset standard inspection item.

[0076] To save time in generating inspection reports, a template is typically built based on the inspection reports of business projects. This saves time in generating inspection reports, as field matching or semantic matching is not required for each generation. Accordingly, the inspection report generation method may also include the following sub-steps:

[0077] Sub-step S21: Under the condition that an inspection report template corresponding to the description field of the inspection equipment can be obtained according to the description field of the inspection equipment, an inspection report is obtained according to the inspection data of the inspection equipment and the inspection report template.

[0078] When an inspection report template is available, the inspection report can be generated directly using the template and the inspection data from the inspection equipment. This embodiment can automatically perform the matching process when an inspection report template is not available, thereby saving business time and improving the intelligence and efficiency of the inspection report generation process.

[0079] Step 103: Determine whether a first target inspection item exists in the preset standard inspection items based on the field matching degree between the inspection items of the inspection equipment and the preset standard inspection items;

[0080] In one embodiment, the method further includes the following sub-steps:

[0081] Sub-step S31: If a first target inspection item exists in the preset standard inspection items and the field matching degree also meets the preset matching degree threshold, an inspection report is obtained based on the inspection data and the first target inspection item.

[0082] When the field matching result meets the preset matching degree threshold, it can be considered that the business needs have been met. Therefore, the target inspection items can be determined directly based on the field matching result, and an inspection report can be generated.

[0083] Sub-step S32: If a first target inspection item exists in the preset standard inspection items, but the field matching degree does not meet the preset matching degree threshold, field matching is performed according to the thesaurus and the description field of the inspection device to obtain the thesaurus matching degree of the thesaurus and the description field of the inspection device.

[0084] If the result of field matching does not meet the preset matching threshold, it is considered that the result of this field matching does not meet the business requirements and cannot be used directly. At this time, we will first try to perform synonym matching; match the description field of the inspection equipment with the preset synonym dictionary to obtain the field matching degree between the description field of the inspection equipment and the synonyms in the synonym dictionary.

[0085] Sub-step S33: Determine the target synonym based on the synonym matching degree of the synonym dictionary and the description field of the verification device;

[0086] Sub-step S34: Based on the target synonym and the preset standard inspection items, determine the third target inspection item among the preset standard inspection items;

[0087] Sub-step S35: Based on the inspection data, the first target inspection item, and the third target inspection item, an inspection report is obtained.

[0088] When the matching results of field matching are insufficient but the first target test item is still available, in order to ensure the accuracy of the test item, the accuracy of the target test item can be further improved by using a preset thesaurus for thesaurus matching. Finally, the test item obtained by thesaurus matching and the test item obtained by field matching are used together to determine the final test report. By using this secondary thesaurus matching method, the intelligence of the test report generation process is further improved and the work efficiency is increased.

[0089] In one embodiment, the process of constructing a thesaurus may include the following sub-steps:

[0090] Sub-step S41: Based on expert review and domain corpus, obtain the thesaurus; the domain corpus includes unique vocabulary in the corresponding domain of the preset standard test items.

[0091] By combining expert opinions and collected specialized vocabulary related to pre-defined standard projects to construct a thesaurus, the accuracy of the thesaurus can be guaranteed, thereby improving the accuracy of matching results and increasing work efficiency.

[0092] Step 104: If there is no first target inspection item in the preset standard inspection items, perform semantic matching based on the description field of the inspection equipment and the description field of the preset standard inspection items to obtain the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items.

[0093] When there is no target test item with matching field in the preset standard test items, semantic matching is further performed. Semantic matching is performed based on the description field of the test equipment and the description field of the preset standard test items to obtain the semantic matching degree result. The algorithm used for semantic matching can be natural language processing (NLP) or other algorithms used for semantic matching. This embodiment of the invention does not limit this.

[0094] Step 105: Based on the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items, determine the second target inspection item in the preset standard inspection items;

[0095] In one embodiment, step 105 includes the following sub-steps:

[0096] Sub-step S51: Based on the second target inspection item, output the second item matching result to the user so that the user can confirm whether the second item matching result meets expectations;

[0097] Once semantic matching is completed and the second target verification item is generated, the matching result of the second target verification item is output to the user so that the user can confirm whether the result of this semantic matching meets the business expectations.

[0098] Sub-step S52: Based on the user's confirmation of the matching result of the second item, determine the second target inspection item.

[0099] Based on the user's confirmation, the final second target inspection item is generated, which in turn generates an inspection report.

[0100] In one example, the user's confirmation can be either "agree" or "disagree." If the user disagrees, the process proceeds to the manual data entry stage, where the user manually inputs the inspection items and the acceptable data range. The manually input inspection items and acceptable data range are then used as the second target inspection items to generate an inspection report. After generating the inspection report, the manually input inspection items and acceptable data range are added as a new preset standard inspection item to the existing preset standard inspection items, and the thesaurus is updated simultaneously to facilitate the generation of the next inspection report.

[0101] In this embodiment, after generating the second target inspection item, the user confirms that the generated result can further ensure the accuracy of the inspection item, thereby generating an inspection report for the service business standard.

[0102] Step 106: Obtain an inspection report based on the inspection data and the second target inspection item.

[0103] Once the second target inspection item is determined, the inspection data is matched with the acceptable range of the target inspection item to generate a complete inspection report.

[0104] In one embodiment, after obtaining the test report, the method further includes:

[0105] Based on the inspection report and the description field of the inspection equipment, determine the inspection report template corresponding to the description field of the inspection equipment.

[0106] When an inspection report is generated but no matching inspection report template is available, an inspection report template corresponding to the description field of the inspection equipment is determined based on the inspection report and the description field of the inspection equipment. This simplifies the process and improves work efficiency when generating inspection reports next time.

[0107] In one embodiment, after obtaining the inspection report, the method further includes:

[0108] Based on the inspection report and the description field of the inspection equipment, determine the initial inspection report template corresponding to the description field of the inspection equipment;

[0109] The system outputs the initial inspection report template corresponding to the description field of the inspection equipment to the user so that the user can confirm whether the initial inspection report template meets expectations. After generating the inspection report template, the system outputs the generated template to the user so that the user can confirm whether the template meets expectations, thereby further improving the accuracy of the inspection report.

[0110] Based on the user's confirmation of the initial inspection report template, an inspection report template corresponding to the description field of the inspection equipment is determined.

[0111] In one example, an inspection report template can be obtained by matching the description field of the inspection equipment with the description field of the preset standard inspection item to determine the first target inspection item.

[0112] In another example, an inspection report template can be obtained by jointly determining the inspection report based on the first target inspection item obtained by matching the description field of the inspection equipment with the description field of the preset standard inspection item, and the third target inspection item obtained by matching the description field of the inspection equipment with the thesaurus.

[0113] In another example, an inspection report template can be obtained by semantically matching the description field of the inspection equipment with the description field of the preset standard inspection items to determine the second target inspection item.

[0114] In one example, the fields in the inspection report template may include: inspection report template number, inspection category, inspection name, inspection item, acceptable data range, actual inspection value, and conclusion. Among these, the inspection category, inspection item, and acceptable data range are the three required fields.

[0115] This embodiment further satisfies user and business needs by showing the generated template to the user for secondary confirmation, thereby improving work efficiency.

[0116] This embodiment initially determines the correspondence between inspection items and standard items by matching the description fields of the inspection equipment and the description fields of preset standard inspection items. When the field matching results do not meet expectations, semantic matching technology is further employed to ensure accurate correspondence between the inspection items of the inspection equipment and the preset standard inspection items, even under different naming rules, effectively avoiding data correspondence errors. This automated field matching and semantic matching process effectively reduces manual intervention, simplifies the data processing flow, and thus improves the efficiency of the entire quality management process. Furthermore, using preset standard inspection items as a benchmark helps to standardize and regulate inspection reports, improves the level of quality management, and makes inspection results more comparable and consistent. In summary, this embodiment can flexibly address the problem of inconsistent naming of inspection items in different inspection reports, enhances the adaptability and flexibility of the system, and is suitable for various application scenarios.

[0117] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0118] Reference Figure 2 The diagram shows a structural block diagram of an embodiment of an inspection report generation device according to the present invention, which may specifically include the following modules:

[0119] The description field acquisition module 201 is used to acquire the description field of the testing equipment and the testing data; the description field is used to characterize the testing items of the testing equipment.

[0120] When generating an inspection report, it is necessary to first obtain the description field of the inspection equipment and the inspection data. The description field of the inspection equipment is used to characterize the items inspected by the inspection equipment, while the inspection data represents the data generated in this inspection. In practice, the description field of the inspection equipment can be dynamically adjusted according to the design of the inspection business.

[0121] For example, the description field of the inspection equipment may include the inspection items for this inspection, the equipment name and other identifying fields used to uniquely identify the equipment, the specific model of the inspection equipment including type and specifications and other equipment data, and log information such as production date and manufacturer used to provide the manufacturing background of the equipment, which is conducive to tracing the history and maintenance records of the equipment.

[0122] The first item matching module 202 is used to perform field matching based on the description field of the testing equipment and the description field of the preset standard testing items to obtain the field matching degree between the testing items of the testing equipment and the preset standard testing items.

[0123] The preset standard inspection items are designed according to business needs and need to be reflected in the inspection report. The description field of the preset standard inspection items includes the item name and the data range of qualified data. When the item name corresponds, if the inspection data of the inspection equipment falls within the data range of qualified data, the data is considered qualified; otherwise, the data is considered unqualified.

[0124] After obtaining the description fields of the testing equipment and the preset standard testing items, a field matching algorithm is applied to match these two fields to obtain the field matching degree. Generally, field matching algorithms are used in computer science to match fields in two datasets to determine the similarity or matching degree between them.

[0125] For example, the field matching algorithm used to match the description field of the testing equipment and the description field of the preset standard testing items can be one or more of the Levenshtein Distance algorithm, the Jaccard Similarity Coefficient algorithm, and the Cosine Similarity algorithm. It should be noted that the field matching algorithm used to match the description field of the testing equipment and the description field of the preset standard testing items can also be other field matching algorithms, and the embodiments of the present invention do not limit this.

[0126] The first item determination module 203 is used to determine whether a first target inspection item exists in the preset standard inspection items based on the field matching degree between the inspection items of the inspection equipment and the preset standard inspection items;

[0127] The second item matching module 204 is used to perform semantic matching based on the description field of the testing equipment and the description field of the preset standard testing items when there is no first target testing item in the preset standard testing items, so as to obtain the semantic matching degree between the testing items of the testing equipment and the preset standard testing items.

[0128] When there is no target test item with matching field in the preset standard test items, semantic matching is further performed. Semantic matching is performed based on the description field of the test equipment and the description field of the preset standard test items to obtain the semantic matching degree result. The algorithm used for semantic matching can be natural language processing (NLP) or other algorithms used for semantic matching. This embodiment of the invention does not limit this.

[0129] The second item determination module 205 is used to determine the second target inspection item in the preset standard inspection items based on the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items;

[0130] The inspection report acquisition module is used to obtain an inspection report based on the inspection data and the second target inspection item.

[0131] In one embodiment, the second item determination module includes:

[0132] The second user confirmation submodule is used to output the second item matching result to the user based on the second target inspection item, so that the user can confirm whether the second item matching result meets expectations;

[0133] Once semantic matching is complete and the second target verification item is generated, the matching result of the second target verification item is output to the user so that the user can confirm whether the result of this semantic matching meets the business expectations.

[0134] The second target item confirmation module is used to determine the second target inspection item based on the user's confirmation of the matching result of the second item.

[0135] Based on the user's confirmation, the final second target inspection item is generated, which in turn generates an inspection report.

[0136] In one example, the user's confirmation can be either "agree" or "disagree." If the user disagrees, the process proceeds to the manual data entry stage, where the user manually inputs the inspection items and the acceptable data range. The manually input inspection items and acceptable data range are then used as the second target inspection items to generate an inspection report. After generating the inspection report, the manually input inspection items and acceptable data range are added as a new preset standard inspection item to the existing preset standard inspection items, and the thesaurus is updated simultaneously to facilitate the generation of the next inspection report.

[0137] In this embodiment, after generating the second target inspection item, the user confirms that the generated result can further ensure the accuracy of the inspection item, thereby generating an inspection report for the service business standard.

[0138] In one embodiment, the first item matching module includes:

[0139] The first item matching degree acquisition module is used to perform field matching based on the description field of the inspection equipment and the description field of the preset standard inspection item when the inspection report template corresponding to the description field of the inspection equipment cannot be obtained based on the description field of the inspection equipment. This allows the module to obtain the field matching degree between the inspection item of the inspection equipment and the preset standard inspection item.

[0140] To save time in the production of inspection reports, an inspection report template is usually built based on the inspection reports of business projects. This can save time in generating inspection reports, as field matching or semantic matching does not need to be performed every time.

[0141] The device further includes:

[0142] The template matching module is used to obtain an inspection report based on the inspection data of the inspection equipment and the inspection report template, provided that an inspection report template corresponding to the description field of the inspection equipment can be obtained based on the description field of the inspection equipment.

[0143] When an inspection report template is available, the inspection report can be generated directly using the template and the inspection data from the inspection equipment. This embodiment can automatically perform the matching process when an inspection report template is not available, thereby saving business time and improving the intelligence and efficiency of the inspection report generation process.

[0144] In one embodiment, the device further includes:

[0145] The first inspection report acquisition submodule is used to obtain an inspection report based on the inspection data and the first target inspection item when a first target inspection item exists in the preset standard inspection items and the field matching degree also meets the preset matching degree threshold.

[0146] When the field matching result meets the preset matching degree threshold, it can be considered that the business needs have been met. Therefore, the target inspection items can be determined directly based on the field matching result, and an inspection report can be generated.

[0147] The synonym matching submodule is used to perform field matching based on the synonym dictionary and the description field of the testing equipment when a first target testing item exists in the preset standard testing items, but the field matching degree does not meet the preset matching degree threshold, so as to obtain the synonym matching degree of the synonym dictionary and the description field of the testing equipment.

[0148] If the result of field matching does not meet the preset matching threshold, it is considered that the result of this field matching does not meet the business requirements and cannot be used directly. At this time, we will first try to perform synonym matching; match the description field of the inspection equipment with the preset synonym dictionary to obtain the field matching degree between the description field of the inspection equipment and the synonyms in the synonym dictionary.

[0149] The synonym acquisition submodule is used to determine the target synonym based on the synonym matching degree between the synonym dictionary and the description field of the verification device;

[0150] The third item acquisition submodule is used to determine the third target inspection item among the preset standard inspection items based on the target synonym and the preset standard inspection items.

[0151] The third inspection report acquisition submodule is used to obtain an inspection report based on the inspection data, the first target inspection item, and the third target inspection item.

[0152] When the matching results of field matching are insufficient but the first target test item is still available, in order to ensure the accuracy of the test item, the accuracy of the target test item can be further improved by using a preset thesaurus for thesaurus matching. Finally, the test item obtained by thesaurus matching and the test item obtained by field matching are used together to determine the final test report. By using this secondary thesaurus matching method, the intelligence of the test report generation process is further improved and the work efficiency is increased.

[0153] In one embodiment, after obtaining the inspection report, the device further includes:

[0154] The inspection report generation submodule is used to determine the inspection report template corresponding to the description field of the inspection equipment based on the inspection report and the description field of the inspection equipment.

[0155] When an inspection report is generated but no matching inspection report template is available, an inspection report template corresponding to the description field of the inspection equipment is determined based on the inspection report and the description field of the inspection equipment. This simplifies the process and improves work efficiency when generating inspection reports next time.

[0156] In one embodiment, the test report generation submodule includes:

[0157] The template user confirmation unit is used to determine an initial inspection report template corresponding to the description field of the inspection equipment based on the inspection report and the description field of the inspection equipment.

[0158] The template output unit is used to output the initial inspection report template corresponding to the description field of the inspection equipment to the user, so that the user can confirm whether the initial inspection report template meets expectations. After generating the inspection report template, the unit outputs the generated template to the user so that the user can confirm whether the template meets expectations, thereby further improving the accuracy of the inspection report.

[0159] The template confirmation unit is used to determine the inspection report template corresponding to the description field of the inspection equipment based on the user's confirmation result of the initial inspection report template.

[0160] In one example, an inspection report template can be obtained by matching the description field of the inspection equipment with the description field of the preset standard inspection item to determine the first target inspection item.

[0161] In another example, an inspection report template can be obtained by jointly determining the inspection report based on the first target inspection item obtained by matching the description field of the inspection equipment with the description field of the preset standard inspection item, and the third target inspection item obtained by matching the description field of the inspection equipment with the thesaurus.

[0162] In another example, an inspection report template can be obtained by semantically matching the description field of the inspection equipment with the description field of the preset standard inspection items to determine the second target inspection item.

[0163] In one example, the fields in the inspection report template may include: inspection report template number, inspection category, inspection name, inspection items, acceptable data range, actual inspection value, and conclusion. Among these, the inspection category, inspection items, and acceptable data range are mandatory fields. By showing the generated template to the user for secondary confirmation, the needs of both users and business operations are further met, thus improving work efficiency.

[0164] In one embodiment, the device further includes:

[0165] The thesaurus construction module is used to obtain the thesaurus based on expert review and a domain corpus; the domain corpus includes unique vocabulary in the corresponding domain of the preset standard test items.

[0166] By combining expert opinions and collected specialized vocabulary related to pre-defined standard projects to construct a thesaurus, the accuracy of the thesaurus can be guaranteed, thereby improving the accuracy of matching results and increasing work efficiency.

[0167] This embodiment initially determines the correspondence between inspection items and standard items by matching the description fields of the inspection equipment and the description fields of preset standard inspection items. When the field matching results do not meet expectations, semantic matching technology is further employed to ensure accurate correspondence between the inspection items of the inspection equipment and the preset standard inspection items, even under different naming rules, effectively avoiding data correspondence errors. This automated field matching and semantic matching process effectively reduces manual intervention, simplifies the data processing flow, and thus improves the efficiency of the entire quality management process. Furthermore, using preset standard inspection items as a benchmark helps to standardize and regulate inspection reports, improves the level of quality management, and makes inspection results more comparable and consistent. In summary, this embodiment can flexibly address the problem of inconsistent naming of inspection items in different inspection reports, enhances the adaptability and flexibility of the system, and is suitable for various application scenarios.

[0168] As the apparatus embodiment is basically similar to the method embodiment, it is described in a relatively simple manner. For relevant details, please refer to the description of the method embodiment.

[0169] This invention also provides an electronic device, comprising:

[0170] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described inspection report generation method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0171] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described inspection report generation method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0172] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0173] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0174] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0175] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0176] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0177] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0178] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0179] The present invention has provided a detailed description of a method, apparatus, device, and medium for generating inspection reports. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for generating an inspection report, characterized in that, The method includes: Obtain the description field and test data of the testing equipment; the description field is used to characterize the test items of the testing equipment. The field matching is performed between the description field of the testing equipment and the description field of the preset standard testing items to obtain the field matching degree between the testing items of the testing equipment and the preset standard testing items. Based on the field matching degree between the inspection items of the inspection equipment and the preset standard inspection items, it is determined whether there is a first target inspection item in the preset standard inspection items; If there is no first target inspection item in the preset standard inspection items, semantic matching is performed based on the description field of the inspection equipment and the description field of the preset standard inspection items to obtain the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items. Based on the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items, the second target inspection item in the preset standard inspection items is determined; An inspection report is obtained based on the inspection data and the second target inspection item.

2. The method according to claim 1, characterized in that, The step of determining the second target inspection item in the preset standard inspection items based on the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items includes: Based on the second target test item, output the second item matching result to the user so that the user can confirm whether the second item matching result meets expectations; Based on the user's confirmation of the matching result of the second item, the second target inspection item is determined.

3. The method according to claim 1 or 2, characterized in that, The step of matching the fields of the testing equipment and the preset standard testing items to obtain the field matching degree between the testing items of the testing equipment and the preset standard testing items includes: If a test report template corresponding to the description field of the test equipment cannot be obtained based on the description field of the test equipment, a field matching is performed based on the description field of the test equipment and the description field of the preset standard test item to obtain the field matching degree between the test item of the test equipment and the preset standard test item. The method further includes: Under the condition that an inspection report template corresponding to the description field of the inspection equipment can be obtained based on the description field of the inspection equipment, an inspection report is obtained based on the inspection data of the inspection equipment and the inspection report template.

4. The method according to claim 1, characterized in that, The method further includes: If a first target inspection item exists in the preset standard inspection items and the field matching degree also meets the preset matching degree threshold, an inspection report is obtained based on the inspection data and the first target inspection item. If a first target inspection item exists in the preset standard inspection items, but the field matching degree does not meet the preset matching degree threshold, field matching is performed based on the thesaurus and the description field of the inspection device to obtain the thesaurus matching degree between the thesaurus and the description field of the inspection device. The target synonym is determined based on the synonym matching degree between the thesaurus and the description field of the testing device; Based on the target synonyms and the preset standard test items, determine the third target test item among the preset standard test items; An inspection report is obtained based on the inspection data, the first target inspection item, and the third target inspection item.

5. The method according to claim 1, 2, or 4, characterized in that, After obtaining the test report, the method further includes: Based on the inspection report and the description field of the inspection equipment, determine the inspection report template corresponding to the description field of the inspection equipment.

6. The method according to claim 5, characterized in that, The step of determining the inspection report template corresponding to the description field of the inspection equipment based on the inspection report and the description field of the inspection equipment includes: Based on the inspection report and the description field of the inspection equipment, determine the initial inspection report template corresponding to the description field of the inspection equipment; The initial inspection report template corresponding to the description field of the inspection equipment is output to the user so that the user can confirm whether the initial inspection report template meets expectations. Based on the user's confirmation of the initial inspection report template, an inspection report template corresponding to the description field of the inspection equipment is determined.

7. The method according to claim 4, characterized in that, The method further includes: The thesaurus is obtained based on expert review and a domain corpus; the domain corpus includes unique vocabulary in the corresponding domain of the preset standard test items.

8. An apparatus for generating inspection reports, characterized in that, The device includes: The description field acquisition module is used to acquire the description field of the testing equipment and the testing data; the description field is used to characterize the testing items of the testing equipment. The first item matching module is used to perform field matching based on the description field of the testing equipment and the description field of the preset standard testing items to obtain the field matching degree between the testing items of the testing equipment and the preset standard testing items. The first item determination module is used to determine whether a first target inspection item exists in the preset standard inspection items based on the field matching degree between the inspection items of the inspection equipment and the preset standard inspection items; The second item matching module is used to perform semantic matching based on the description field of the testing equipment and the description field of the preset standard testing items when there is no first target testing item in the preset standard testing items, so as to obtain the semantic matching degree between the testing items of the testing equipment and the preset standard testing items. The second item determination module is used to determine the second target inspection item in the preset standard inspection items based on the semantic matching degree between the inspection items of the inspection equipment and the preset standard inspection items; The inspection report acquisition module is used to obtain an inspection report based on the inspection data and the second target inspection item.

9. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the inspection report generation method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the test report generation method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Personal taste assessment method and system

    AU2015282364A1

  • Inspection report generation method and device, electronic equipment and storage medium

    CN111931468A