Experiment report generation method and device, electronic equipment and storage medium

By automatically processing experimental equipment data and generating experimental reports, the problems of errors and inefficiency caused by manual recording in the existing technology are solved, and more efficient and accurate experimental record management is achieved.

CN119337851APending Publication Date: 2025-01-21杭州咸数科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411392413.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

Existing chemical experimental recording methods rely on manual notes or simple spreadsheets, resulting in data errors, omissions, high time costs, and poor consistency and repetition.

Method used

By obtaining the equipment data sent by the experimental equipment, labeling and matching it with the preset equipment template, the equipment data record is generated, and at the end of the experiment, the experiment report is extracted and formatted.

Benefits of technology

Reduced human errors, improved the comprehensiveness and consistency of the record, and significantly improved the efficiency and data quality of the research and development process of chemical experiments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119337851A_ABST
    Figure CN119337851A_ABST
Patent Text Reader

Abstract

The invention provides an experiment report generation method and device, electronic equipment and a storage medium, and belongs to a data processing module.The method comprises the steps that equipment data of experiment equipment is labeled, and labeled data is obtained; matching the tagged data with a plurality of preset equipment templates to obtain a successfully matched target template; generating a device data record expressed in a text form according to the target template and the tagged data, and writing the device data record into a record memory; and when the experiment of the target project is finished, extracting the corresponding equipment data record from the record memory, and carrying out typesetting to obtain an experiment report. Therefore, the function of automatically synthesizing the experiment report is realized, the risk of artificial omission is greatly reduced, the integrity and uniformity of records are ensured, and the experiment efficiency and the data quality are further remarkably improved. Moreover, the generated experiment report can be directly used for final result display, additional manual adjustment is not needed, and the definition and readability of the experiment report are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method, device, electronic device and storage medium for generating an experimental report. Background Art

[0002] In current chemical experimental research and development processes, the method of manually filling out chemical experiment reports is widely used. In order to ensure the comprehensiveness and authenticity of the records, experimenters often need to stay next to the experimental equipment and containers for a long time to conduct continuous observation and manually write experimental reports. This way of managing experimental records has many problems, which not only affects work efficiency, but also poses a challenge to the accuracy and consistency of experimental data. Traditional experimental recording methods mainly rely on manual notes or the use of simple spreadsheets for recording. However, this method has problems such as data errors, data omissions, high time costs, and poor consistency and repeatability.

[0003] In view of the above problems, the existing chemical experiment recording methods are in urgent need of improvement to improve the accuracy and reliability of data recording, optimize the work efficiency of experimenters, and promote the effective management and sharing of experimental data. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a method, device, electronic device and storage medium for generating an experimental report, aiming to solve the above-mentioned problems, reduce human errors through automated means, improve the comprehensiveness and consistency of records, and thus significantly improve the efficiency of the R&D process and data quality of chemical experiments.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] In a first aspect, the present invention provides a method for generating an experimental report, the method comprising:

[0007] Acquire device data sent by any experimental device, and label the device data to obtain labeled data;

[0008] Matching the labeled data with a plurality of preset device templates to obtain a successfully matched target template;

[0009] Generate a device data record based on the target template and the labeled data, and write the device data record into a record memory; wherein the device data record is a data description statement in text form;

[0010] When the experiment of the target project is finished, all the equipment data records of the target project are extracted from the record memory, and the extracted equipment data records are typeset to obtain an experiment report.

[0011] Optionally, the step of generating a device data record according to the target template and the labeled data includes:

[0012] Parsing the labeled data to obtain a timestamp and at least one identifier;

[0013] Splitting the data in the labeled data according to the identifier to obtain a plurality of data items; wherein each of the data items corresponds to an identifier;

[0014] For each of the data items, fill the data item into the position corresponding to the identifier in the target template, and fill the timestamp into the time filling area in the target template;

[0015] Based on the target template, a device data record is generated with the data item and the time stamp.

[0016] Optionally, the tagged data includes a memory tag;

[0017] The step of writing the device data record into the record memory comprises:

[0018] Obtaining a memory tag from the tagged data, and using a record memory corresponding to the memory tag as a write memory;

[0019] The device data record is stored in the record queue of the write memory according to the timestamp.

[0020] Optionally, the step of generating a device data record with the data item and the timestamp based on the target template includes:

[0021] According to the subject-verb-object relationship, auxiliary words are added to the content of the target template to obtain device data records.

[0022] Optionally, there are multiple record memories, each of which stores a device data record of an experimental device, and the device data record includes a timestamp;

[0023] The step of extracting all the device data records of the target project from the record memory and typeset each of the extracted device data records includes:

[0024] Determine the duration of the target project based on the start time and end time of the target project;

[0025] Taking each experimental device involved in the target project as a target device, and taking the recording memory corresponding to the target device as a target memory;

[0026] The device data records in the target memories, whose timestamps are within the duration, are written into a preset experiment template in chronological order.

[0027] Optionally, the step of writing the device data records in the target memory, whose timestamps are within the duration, into a preset experiment template in chronological order includes:

[0028] Taking the starting time as the first target time;

[0029] Extracting, from each target memory, the device data record whose timestamp is within the duration and closest to the target time as a target record, and writing the target record into a preset experiment template;

[0030] Determining whether each target memory still contains the device data record with the timestamp within the duration and after the target time;

[0031] If not, the current experiment template is used as the experiment report of the target project;

[0032] If so, the timestamp of the target record is used as the next target moment, and the step of extracting the device data record whose timestamp is within the duration and closest to the target moment from each target memory as the target record is returned to the preset experimental template.

[0033] Optionally, the labeled data includes a device tag;

[0034] The step of matching the labeled data with a plurality of preset device templates to obtain a successfully matched target template includes:

[0035] From a plurality of preset device templates, a device template having the same device label and data type as the labeled data is selected as a target template.

[0036] In a second aspect, the present invention provides an experimental report generation device, comprising a labeling module, a template matching module, a recording module, and a report generation module;

[0037] The labeling module is used to obtain device data sent by any experimental device and label the device data to obtain labeled data;

[0038] The template matching module is used to match the labeled data with a plurality of preset device templates to obtain a successfully matched target template;

[0039] The recording module is configured to generate a device data record based on the target template and the labeled data, and write the device data record into a recording memory; wherein the device data record is a data description statement in text form;

[0040] The report generating module is used to extract all the equipment data records of the target project from the record memory when the experiment of the target project is completed, and typeset each of the extracted equipment data records to obtain an experiment report.

[0041] In a third aspect, the present invention provides an electronic device comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the experimental report generation method as described in the first aspect.

[0042] In a fourth aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the experimental report generating method as described in the first aspect.

[0043] The present invention provides an experimental report generation method, device, electronic device and storage medium, the method comprising: obtaining device data sent by any experimental device, and labeling the device data to obtain labeled data; matching the labeled data with a plurality of preset device templates to obtain a target template that matches successfully; generating a device data record based on the target template and the labeled data to obtain a data description statement in text form, and writing it into a record memory; when the experiment of the target project is completed, extracting the corresponding device data record from the record memory and performing typeset processing to obtain an experimental report. In this way, by labeling the device data of each experimental device, matching the template, generating a device data record (i.e., a data description statement), and extracting and typeset all the device data records of the target project, an experimental report is automatically generated, human errors are reduced, the comprehensiveness and consistency of the record are improved, and thus the experimental efficiency and data quality are significantly improved. Moreover, the experimental report is typeset by the data description statement (i.e., the device data record) in text form, and can be directly used as the final experimental report without the need for manual optimization processing, further improving the experimental efficiency and the readability of the experimental report.

[0044] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0046] Figure 1 A block diagram of an experimental report generating system provided by an embodiment of the present invention is shown.

[0047] Figure 2 A block diagram of an electronic device provided by an embodiment of the present invention is shown.

[0048] Figure 3 The figure shows a flow chart of a method for generating an experimental report according to an embodiment of the present invention.

[0049] Figure 4 Shown Figure 3 Flowchart of some sub-steps of step 15.

[0050] Figure 5 Shown Figure 3 Flowchart of some sub-steps of step 17.

[0051] Figure 6 Shown Figure 5 Flow chart of some sub-steps of step 173.

[0052] Figure 7 A schematic diagram of an experimental report provided by an embodiment of the present invention is shown.

[0053] Figure 8 A timing diagram provided by an embodiment of the present invention is shown.

[0054] Figure 9 A block diagram of an experimental report generating device provided by an embodiment of the present invention is shown.

[0055] Explanation of the accompanying drawings: 10 - experimental report generation system; 110 - recording device; 120 - experimental equipment; 20 - electronic device; 210 - memory; 220 - processor; 230 - communication module; 30 - experimental report generation device; 310 - labeling module; 320 - template matching module; 330 - recording module; 340 - report generation module. DETAILED DESCRIPTION

[0056] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.

[0057] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely intended to represent selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative work are within the scope of protection of the present invention.

[0058] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

[0059] The experimental report generation method provided by the embodiment of the present invention can be applied to Figure 1 In the experimental report generation system 10 shown, the experimental report generation system 10 includes a recording device 110 and multiple experimental devices 120. The recording device 110 can be communicatively connected to the multiple experimental devices 120 through cables, networks, radio, Bluetooth, WiFi, etc.

[0060] The experimental equipment 120 includes experimental equipment and detection equipment for the experimental equipment. The experimental equipment includes, but is not limited to, a magnetic stirrer, a thermometer, a liquid adding device, a spectrometer, a gas generator, a centrifuge, and a filter. The monitoring equipment is set on the experimental equipment that cannot communicate with the recording device 110, or is set at a position close to the experimental equipment to obtain device data of the experimental equipment that cannot communicate with the recording device 110, or device data that the experimental equipment itself cannot obtain. In this embodiment, the monitoring equipment includes, but is not limited to, a camera, a temperature sensor, a humidity sensor, a pressure sensor, and the like.

[0061] The experimental device 120 is used to receive and execute the action instruction, and then report the generated device data to the recording device 110.

[0062] Here, device data refers to all data involved in the device performing an experimental operation during the experiment, including but not limited to: status value (open or closed), attribute data (such as the temperature and speed of the stirrer), executed operation data (such as adding 20 ml of acetic acid, time 1 minute, temperature value, or stirring time 60 minutes), and audio and video data, etc.

[0063] The recording device 110 is used to issue action instructions to each experimental device 120, receive device data reported by any experimental device 120, and implement the experimental report generation method provided by the embodiment of the present invention.

[0064] The recording device 110 may be any electronic device 20 with computing and recording functions, such as a personal computer, a laptop computer, a tablet computer, a server cluster, or an independent server.

[0065] Please refer to Figure 2 , is a block diagram of an electronic device 20, which may be Figure 1 The recording device 110 in the experimental report generation system 10 is shown. The electronic device 20 includes a memory 210, a processor 220, and a communication module 230. The memory 210, the processor 220, and the communication module 230 are electrically connected to each other directly or indirectly to enable data transmission or exchange. For example, these components can be electrically connected to each other via one or more communication buses or signal lines.

[0066] The memory 210 is used to store programs or data and can be, but is not limited to, a random access memory, a read-only memory, a programmable read-only memory, an erasable read-only memory, an electrically erasable read-only memory, etc.

[0067] The processor 220 is used to read / write data or programs stored in the memory 210 and execute corresponding functions. For example, Figure 1 In the experimental report generating system 10 shown, the processor 220 of the recording device 110 executes the computer program stored in the memory 210 to implement the experimental report generating method.

[0068] The communication module 230 is used to establish a communication connection between the electronic device 20 and other communication terminals through cables, networks, etc., and is used to send and receive data. Figure 1 In the experimental report generation system 10 shown, the recording device 110 transmits and receives data with any experimental device 120 or monitoring device via the communication module 230 .

[0069] It should be understood that Figure 2The structure shown is only a schematic diagram of the structure of the electronic device 20. The electronic device 20 may include Figure 2 More or fewer components than shown, or with Figure 2 Different configurations shown. Figure 2 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0070] Please refer to Figure 3 The embodiment of the present invention provides a method for generating an experimental report, including steps 11 to 17, so that Figure 1 The recording device 110 in the lab report generation system 10 shown can Figure 2 According to the structure shown, steps 11 to 17 are executed to implement the experimental report generation method to automatically generate an experimental report.

[0071] Step 11: Obtain device data sent by any experimental device and label the device data to obtain labeled data.

[0072] Step 13: Match the labeled data with multiple preset device templates to obtain a successfully matched target template.

[0073] Step 15: Generate a device data record based on the target template and the labeled data, and write the device data record into the record memory.

[0074] The device data record is a data description statement in text form.

[0075] Step 17: When the experiment of the target project is completed, all device data records of the target project are extracted from the record memory, and the extracted device data records are typeset to obtain an experiment report.

[0076] For example, in combination Figure 1 In the illustrated experimental report generation system 10, during any experimental project, all experimental equipment 120 involved in the experimental project establish communication with the recording device 110. The recording device 110 issues action instructions or instruction sets to control the experimental equipment 120 to perform experimental actions or monitoring actions (the experimental equipment performs the experimental action, and the monitoring equipment performs the monitoring action). After completing the experimental action or monitoring action, the experimental equipment 120 reports the device data related to the experimental action or monitoring action to the recording device 110.

[0077] Recording device 110 receives the device data, labels it, and generates labeled data. It then matches the labeled data with a pre-set device template to obtain a successfully matched target template. Furthermore, based on the target template and the labeled data, a textual device data record is generated, used to describe the data of experimental device 120, and written into the recording memory.

[0078] In the active state, recording device 110 and experimental device 120 repeatedly perform the above-described operations until they are shut down. Furthermore, during this period, when all experimental operations for any experimental project are completed, recording device 110 selects it as the target project for generating an experimental report, extracts all device data records for that target project from the recording memory, and formats them to produce an experimental report for that target project.

[0079] The aforementioned lab report generation method achieves automatic report synthesis by labeling the device data for each experimental device, matching it to a template, generating device data records, and extracting and typeset all device data records for the target project. This significantly reduces the risk of human oversight, ensures the integrity and consistency of the records, and significantly improves experimental efficiency and data quality. Furthermore, the generated lab report, consisting of a textual layout of device data records, can be used directly to present the final results without the need for additional manual adjustments, further optimizing experimental operational efficiency and ensuring the clarity and readability of the lab report.

[0080] Among them, in step 11 of the above-mentioned experimental report generation method, the way of labeling the device data can be flexibly set. For example, it can be labeled according to the source of the data, or it can be labeled according to the action instructions corresponding to the data. The above-mentioned method is only an example, and its implementation method is not limited.

[0081] In order to facilitate the distinction of data in subsequent operations and to understand the source and data storage location, in step 11, the device tag can be set according to the source of the device data (that is, which experimental device generates the relevant data after performing the experimental action). The tags include data identification, device identification, type identification, and calculation expression. At the same time, a query is made to see whether there is a record memory opened for the experimental device in the preset record memory. If so, a memory tag is set for the device data based on the record memory. If not, a record memory is opened for the experimental device and a memory tag is set for the device data based on the record memory.

[0082] The device tag indicates the experimental device that uploaded the device data, for example: temperature value sv = 20, unit value unit = 0. The memory tag indicates the recording memory where the device data is written. Additionally, tag attributes for tagged data can include: ID, name, type, read / write, endianness, calculation expression, group, broadcast type, parameter, and data type.

[0083] During the labeling process, you can use calculation expressions to perform calculations on device data and add the results to the labeled data. Furthermore, operations such as unit conversion, value conversion, normalization, and standardization can be included to make the data from each device comparable and analyzable.

[0084] After obtaining the labeled data, a variety of methods can be used to obtain the target template in step 13. For example, the target template can be determined based on the source of the device data (ie, the experimental device), or based on the data type. This is not limited in this embodiment.

[0085] In order to more accurately record different types of equipment data of different experimental equipment and avoid data omissions, the concept of using different templates for different experimental equipment and different data types is introduced in step 13. Specifically, a plurality of equipment templates can be pre-stored in the recording device, and each equipment template corresponds to a data type of an experimental equipment. The data types (which can also be understood as template types) include but are not limited to: pictures, audio and video, and equipment attribute data (such as temperature, pressure, viscosity, turbidity, rotation speed, etc.), that is, the equipment template of each experimental equipment includes: a device template corresponding to the picture, a device template corresponding to the audio and video file, and a device template corresponding to the equipment attribute data. On this basis, in step 13, a device template with the same device label and data type as the labeled data can be selected from the preset multiple device templates as the target template.

[0086] For example, when the device data is attribute data of a magnetic stirrer (such as actual speed, target speed, actual temperature, target temperature and temperature unit), the device template corresponding to the attribute data is selected as the target template from the device templates corresponding to the magnetic stirrer.

[0087] After determining the target template, the method for generating device data records in step 15 can be flexibly configured. For example, the labeled data and the target template can be used to assemble prompt instructions for a generative large language model, and the generative large language model can be used to generate text-based, data-descriptive device data records. Alternatively, device data records can be generated using pre-set rules. The above two methods are merely examples, and the specific implementation methods are not limited.

[0088] In order to improve the description accuracy of the generated device data record and avoid data errors or loss, the idea of ​​filling the data into the target template according to the corresponding relationship of the identifiers is introduced in step 15, and then generating the device data record based on the target template. For example, the device template includes at least one data filling area, and each data filling area has a corresponding identifier, which indicates that only the data item corresponding to the identifier can be filled in. On this basis, referring to Figure 4 In step 15 , the device data record may be generated through steps 151 to 154 .

[0089] Step 151: parse the labeled data to obtain a timestamp and at least one identifier.

[0090] Step 152: split the data in the labeled data according to the identifier to obtain multiple data items.

[0091] Each data item corresponds to an identifier. The timestamp is the time when the device data is generated (or uploaded). Each data item in the same tagged data has the same timestamp.

[0092] Step 153: For each data item, fill the data item into the position corresponding to the identifier in the target template, and fill the timestamp into the time filling area in the target template.

[0093] Step 154 ​​: Generate a device data record with data items and timestamps based on the target template.

[0094] Here, the method for generating the device data record with data items and timestamps in step 154 ​​can be flexibly configured. For example, the device data record can be generated by combining the contents of the target template according to preset rules, or the target template can be input into a pre-trained description generation model and the device data record can be generated using the description generation model. The above two methods are merely examples, and the specific implementation methods are not limited.

[0095] In order to make the device data record conform to people's reading habits, in step 154, auxiliary words can be added to the content of the target template according to the subject-verb-object relationship to obtain the device data record.

[0096] The subject, predicate and object may be words pre-set on the target template or words generated using a model, and this is not limited in this embodiment.

[0097] Through steps 151 to 154, the data items are separated by identifying the corresponding data items, and the data items and timestamps are accurately filled into the corresponding positions of the target template, thus avoiding data omissions or errors. Furthermore, based on the target template with the data filled in, a device data record is quickly generated that conforms to human reading habits and accurately describes the device data generated after the experimental equipment performs an action, greatly improving the readability of the subsequently generated experimental report.

[0098] After obtaining the device data record, in step 15 , the device data record may be filled into the record memory, or may be written into the record memory according to a preset rule, and the implementation method thereof is not limited.

[0099] In order to facilitate the subsequent generation of an experimental project's experimental report, all equipment data records corresponding to the experimental project can be quickly and accurately extracted. In step 15, each record memory is introduced with a unique memory tag. The relevant data of the same experimental equipment has only one unique memory tag. The equipment data record is written into the record memory according to the corresponding relationship of the memory tag. Please refer to Figure 4 The process of writing the device data record into the record memory in step 15 may include steps 155 to 156.

[0100] Step 155: Obtain a memory tag from the tagged data, and use the record memory corresponding to the memory tag as the write memory.

[0101] Step 156 : Store the device data record into a record queue written into the memory according to the timestamp.

[0102] Here, the device data records may be stored in a record queue written into the memory in order of timestamps from earliest to latest.

[0103] Through the above steps 155 to 156 , the device data records are classified and stored in an orderly and differentiated manner, so as to ensure that specific device data records can be read efficiently when needed.

[0104] It should be noted that the equipment data of different experimental projects can be processed in the relevant manner of steps 11 to 15 above and written into the recording memory of the recording device, and the experimental time of different experimental projects can have overlapping segments.

[0105] After an experimental project is finished and the recording device confirms that it has received the device data corresponding to each action execution of the experimental project, the recording device may use the experimental project as a target project and then execute step 17 to generate an experimental report for the target project.

[0106] In order to quickly and accurately generate the experimental report, the idea of ​​extracting the equipment data record from the recording memory is introduced in step 17 according to the starting time and experimental equipment involved in the target project. Figure 5 , step 17 may include steps 171 to 173.

[0107] Step 171: Determine the duration of the target project based on the start time and end time of the target project.

[0108] In step 172 , each experimental device involved in the target project is used as a target device, and the record memory corresponding to the target device is used as the target memory.

[0109] Step 173 , write the data records of each device in each target memory whose timestamps are within the continuous period into the preset experiment template in chronological order.

[0110] In order to avoid time confusion and data omission or loss, the idea of ​​polling the record memory to extract the device data record is introduced in step 175. Figure 6 , step 175 may include steps 1731 to 1735.

[0111] Step 1731, taking the starting time as the first target time.

[0112] Step 1732: extract the device data records whose timestamps are within the continuous period and closest to the target time from each target memory as target records, and write the target records into the preset experiment template.

[0113] Step 1733: Determine whether there are device data records in each target memory with a timestamp within the duration and after the target time. If not, execute step 1734. If so, execute step 1735, and after step 1735, return to step 1732.

[0114] Step 1734: Use the current experiment template as the experiment report of the target project.

[0115] Step 1735: Use the timestamp of the target record as the next target moment.

[0116] Through steps 1731 to 1735, the target memory is polled and the device data is extracted and recorded in chronological order, thus avoiding time confusion, omissions, or loss of data in the experimental report. Furthermore, the experimental report can reflect each experimental operation and its resulting reactions in chronological order, greatly improving the readability of the experimental report.

[0117] To reduce the computational complexity and resource consumption associated with polling, a unique record memory can be allocated for each experimental project. The memory tag for each tagged data item corresponds to the tag of the record memory corresponding to the experimental project to which the action instruction to which the experimental device responds. Therefore, in step 15, the device data record can be written to the record memory corresponding to the memory tag, thereby storing all device data records for the same experimental project in the same record memory. Furthermore, in step 17, the device data records can be extracted from the record memory corresponding to the target project in timestamp order and written to the preset experimental template.

[0118] It should be noted that the above method of generating an experimental report is only an example, and the implementation method is not limited. Figure 7 shown.

[0119] After the experimental report is obtained through step 17, the recording device can automatically supplement the experimental date and experimental name in the experimental template and store the final experimental report.

[0120] In the process of generating the above experimental report, from the beginning to the end of the experiment, the timing diagram of each experimental device, instruction (i.e. action instruction), acquisition device data and matching to the target template can be as follows: Figure 8 shown.

[0121] also, Figure 1 The experimental report generation system 10 shown may also include a user terminal, which is in communication with the recording device 110, so that the recording device 110 can push the experimental report to the user terminal, and the user terminal receives and displays the experimental report for the user to view, and manually fill in the experimental name, experimental design, experimental method, experimental results and other information on the experimental report.

[0122] Based on the same concept as the above experimental report generation method, refer to Figure 9 The embodiment of the present invention also provides an experimental report generating device 30, which can be applied to Figure 1 The recording device 110 in the experimental report generation system 10 shown in the figure, and the experimental report generation apparatus 30 include a labeling module 310 , a template matching module 320 , a recording module 330 and a report generation module 340 .

[0123] The labeling module 310 is used to obtain device data sent by any experimental device and label the device data to obtain labeled data.

[0124] The template matching module 320 is used to match the labeled data with a plurality of preset device templates to obtain a successfully matched target template.

[0125] The recording module 330 is used to generate a device data record based on the target template and the labeled data, and write the device data record into the recording memory. The device data record is a data description statement in text form.

[0126] The report generation module 340 is used to extract all device data records of the target project from the record memory when the experiment of the target project is completed, and typeset the extracted device data records to obtain an experiment report.

[0127] The above-mentioned experimental report generation device 30, through the coordinated action of the labeling module 310, template matching module 320, recording module 330, and report generation module 340, achieves the function of automatically synthesizing experimental reports by labeling the equipment data of each experimental device, matching templates, generating equipment data records, and extracting and typeset all equipment data records of the target project. This significantly reduces the risk of human omissions, ensures the integrity and uniformity of records, and thus significantly improves experimental efficiency and data quality. In addition, the generated experimental report is composed of equipment data records expressed in text format and can be used directly as a final result display without additional manual adjustment, thereby further optimizing experimental operation efficiency and ensuring the clarity and readability of the experimental report.

[0128] For the specific implementation and effect of the experimental report generation device 30, please refer to the above description of the implementation of the experimental report generation method, such as, for the specific implementation and effect of the labeling module 310, please refer to the description of the relevant content of step 11 above, for the specific implementation and effect of the template matching module 320, please refer to the description of the relevant content of step 13 above, for the specific implementation and effect of the recording module 330, please refer to the description of the relevant content of step 15 above, for the specific implementation and effect of the report generation module 340, please refer to the description of the relevant content of step 17 above, and will not be repeated here.

[0129] In addition, each module in the above-mentioned experimental report generation device 30 can be implemented in whole or in part by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor 220 in the electronic device 20 in the form of hardware, or can be stored in the memory 210 of the electronic device 20 in the form of software, so that the processor 220 can call and execute the corresponding operations of the above-mentioned modules to implement the experimental report generation method provided above.

[0130] Based on the same inventive concept as the above-mentioned experimental report generation method, an embodiment of the present invention also provides an electronic device 20, including a processor 220 and a memory 210, the memory 210 stores a computer program that can be executed by the processor 220, and the processor 220 can execute the computer program to implement the experimental report generation method proposed in the embodiment of the present invention.

[0131] The embodiment of the present invention further provides a storage medium on which a computer program is stored. When the computer program is executed by the processor 220, the method for generating an experimental report as proposed in the embodiment of the present invention is implemented.

[0132] An embodiment of the present invention further provides a computer program product for a computer, comprising a software code portion. When the product is run on the computer, the software code portion is used to execute the experimental report generation method provided above.

[0133] In summary, the experimental report generation method, device, electronic device, and storage medium provided by the embodiments of the present invention have at least the following beneficial effects:

[0134] (1) The function of automatically synthesizing experimental reports has been realized, which greatly reduces the risk of human omissions, ensures the integrity and consistency of records, and significantly improves experimental efficiency and data quality;

[0135] (2) Generate an experimental report consisting of equipment data records expressed in text form, which can be directly used as the final results display without additional manual adjustment, thereby further optimizing the experimental operation efficiency and ensuring the clarity and readability of the experimental report.

[0136] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified functions or actions, or can be implemented using a combination of dedicated hardware and computer instructions.

[0137] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0138] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.

[0139] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.

Claims

1. A method for generating an experimental report, characterized in that: The method comprises: Acquire device data sent by any experimental device, and label the device data to obtain labeled data; Matching the labeled data with a plurality of preset device templates to obtain a successfully matched target template; Generate a device data record according to the target template and the labeled data, and write the device data record into a record memory; wherein the device data record is a data description statement in text form; When the experiment of the target project is finished, all the equipment data records of the target project are extracted from the record memory, and the extracted equipment data records are typeset to obtain an experiment report.

2. The method for generating an experimental report according to claim 1, characterized in that: The step of generating a device data record according to the target template and the labeled data comprises: Parsing the labeled data to obtain a timestamp and at least one identifier; According to the identifier, the data in the labeled data is split to obtain a plurality of data items; wherein each of the data items corresponds to an identifier; For each of the data items, fill the data item into the position corresponding to the identifier in the target template, and fill the timestamp into the time filling area in the target template; Based on the target template, a device data record is generated with the data item and the time stamp.

3. The method for generating an experimental report according to claim 2, characterized in that: The tagged data includes a memory tag; The step of writing the device data record into the record memory comprises: Obtaining a memory tag from the labeled data, and using a record memory corresponding to the memory tag as a write memory; According to the timestamp, the device data record is stored in the record queue of the write memory.

4. The method for generating an experimental report according to claim 2, characterized in that: The step of generating a device data record with the data item and the timestamp based on the target template comprises: According to the subject-predicate-object relationship, auxiliary words are added to the content of the target template to obtain device data records.

5. The method for generating an experimental report according to any one of claims 1 to 4, characterized in that: There are multiple record memories, each of which stores a device data record of an experimental device, and the device data record includes a timestamp; The step of extracting all the device data records of the target project from the record memory and typeset each of the extracted device data records comprises: Determine the duration of the target project according to the start time and end time of the target project; Taking each experimental device involved in the target project as a target device, and taking the record memory corresponding to the target device as a target memory; Each of the device data records in the target memory whose timestamp is within the duration is written into a preset experiment template in chronological order.

6. The method for generating an experimental report according to claim 5, characterized in that: The step of writing each of the device data records in each of the target memories whose timestamps are within the duration into a preset experiment template in chronological order comprises: Taking the starting time as the first target time; Extracting, from each of the target memories, the device data record whose timestamp is within the duration and closest to the target time as the target record, and writing the target record into a preset experiment template; Determine whether each target memory still contains the device data record whose timestamp is within the duration and after the target time; If not, the current experiment template is used as the experiment report of the target project; If so, the timestamp of the target record is used as the next target moment, and the step of returning to execute the step of extracting the device data record whose timestamp is within the duration and closest to the target moment from each target memory as the target record, and writing the target record into the preset experimental template.

7. The method for generating an experimental report according to any one of claims 1 to 4, characterized in that: The labeled data includes a device tag; The step of matching the labeled data with a plurality of preset device templates to obtain a successfully matched target template includes: From a plurality of preset device templates, a device template having the same device label and data type as the labeled data is selected as a target template.

8. A device for generating a laboratory report, characterized in that: It includes labeling module, template matching module, recording module and report generation module; The labeling module is used to obtain device data sent by any experimental device and label the device data to obtain labeled data; The template matching module is used to match the labeled data with a plurality of preset device templates to obtain a successfully matched target template; The recording module is used to generate a device data record according to the target template and the labeled data, and write the device data record into the recording memory; wherein the device data record is a data description statement in text form; The report generation module is used to extract all the equipment data records of the target project from the record memory when the experiment of the target project is completed, and typeset each of the extracted equipment data records to obtain an experiment report.

9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the method for generating an experimental report according to any one of claims 1 to 7.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating an experimental report according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Experiment report generation method based on encrypted storage data

    CN120124613A