Method and device for quickly analyzing log file of medical equipment and method and device for quickly determining actual service life of cold head in medical equipment
By logging and sampling medical equipment log files, the problem of low efficiency in analysis of massive log files in the existing technology is solved, and fast and efficient log file analysis is achieved to ensure the quality of the analysis results.
Patent Information
- Application Number
- CN202311350619.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2025-04-18
AI Technical Summary
The prior art analyzes massive medical device log files, the execution time is very long and the efficiency is very low.
By recording and sampling the log files to be parsed in medical equipment, analytical results are generated based on the sampling log records, reducing the amount of data analyzed and the amount of data generated in the analysis results, thereby shortening the analysis time.
It greatly improves the analysis efficiency of massive log files, shortens the analysis execution time, and ensures the effectiveness and reference value of the analysis results.
Smart Images

Figure CN119849471A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of big data processing of medical equipment, and in particular to a method and device for quickly analyzing a log file of a medical device, a method and device for quickly determining the actual service life of a cold head in a medical device, and an electronic device and a storage medium. Background Art
[0002] High-value medical equipment components refer to medical equipment components with higher prices, such as nuclear magnetic resonance cold heads, CT tubes, etc. A common feature of these high-value medical equipment components is that the medical equipment systems in which they are located will provide complete parameter logs. In practical applications, by collecting log files that record these parameter logs and analyzing these log files to obtain the parameter data of medical equipment and its corresponding timestamps and other log big data, it can provide very valuable references for equipment maintenance, equipment repair, equipment purchase, etc. At present, the commonly used method for analyzing these log files is mainly to scan the keywords of the log files line by line, extract the equipment parameter data of the high-value medical equipment components during use by regular expression matching or machine learning, and convert the extracted equipment parameter data into a structured data form for persistent storage, thereby realizing the conversion of equipment log files into structured parameter information that is easy to use and can be stored persistently. In this way, when analyzing a large number of medical equipment log files, due to the large amount of data processing, the execution time required for the entire log file analysis and processing will be very long, and the efficiency will be very low. Summary of the invention
[0003] The embodiment of the present invention provides a method for quickly analyzing a medical device log file, so as to at least solve the problem that the log file analysis method in the prior art takes a very long time to execute and has a very low efficiency when analyzing and processing massive log files.
[0004] In a first aspect, an embodiment of the present invention provides a method for quickly analyzing a medical device log file, comprising:
[0005] Get the log files to be parsed from medical devices;
[0006] According to the log time of each log record in the log file to be parsed of each medical device, log record sampling is performed on the log file to be parsed of each medical device;
[0007] The parsing results of the log files to be parsed of each medical device are generated and stored based on the sampled log records.
[0008] In a second aspect, an embodiment of the present invention provides a device for quickly analyzing a medical device log file, comprising:
[0009] A log acquisition module is used to obtain the log files to be parsed from medical devices;
[0010] A compression sampling module, used for sampling log records of the log files to be parsed of each medical device according to the log time of each log record in the log files to be parsed of each medical device;
[0011] The parsing module is used to generate and store parsing results of the log files to be parsed for each medical device based on the sampled log records.
[0012] In a third aspect, an embodiment of the present invention provides a method for quickly determining the actual service life of a cold head in a medical device, comprising:
[0013] Extracting RuO parameter data from the parsing result of the log file of the corresponding medical device, wherein the parsing result is generated based on the method for quickly analyzing the log file of the medical device according to the first aspect;
[0014] Determine the replacement time node of the cold head of the corresponding medical equipment according to the extracted RuO parameter data;
[0015] The actual service life of the cold head is determined according to the determined replacement time node of the cold head and the preset minimum service life of the cold head.
[0016] In a fourth aspect, an embodiment of the present invention provides a device for quickly determining the actual service life of a cold head in a medical device, comprising:
[0017] A parameter extraction module, used to extract RuO parameter data from the parsing result of the log file of the corresponding medical device, wherein the parsing result is generated based on the method for quickly analyzing the log file of the medical device in the first aspect above;
[0018] A replacement time determination module, used to determine a replacement time node of a cold head of a corresponding medical device according to the extracted RuO parameter data;
[0019] The service life determination module is used to determine the actual service life of the cold head according to the determined replacement time node of the cold head and the preset minimum service life of the cold head.
[0020] In a fifth aspect, an embodiment of the present invention provides an electronic device, including:
[0021] At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the method of the first aspect or the third aspect mentioned above.
[0022] In a sixth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method of the first aspect or the third aspect mentioned above.
[0023] The beneficial effect of the embodiment of the present invention is that: in the stage of reading the log file content, the method provided by the embodiment of the present invention will first sample the log records of the log files to be parsed of each medical device based on the log time of each log record in the log files to be parsed of each medical device. Therefore, the embodiment of the present invention generates the parsing results of the log files to be parsed based on the sampled log records, so that the amount of data analyzed for the log files and the amount of data generated for the parsing results can be greatly reduced, and then the time for analyzing the log files to be parsed and generating the parsing results can be greatly shortened. Therefore, when analyzing massive log files, the analysis efficiency can be greatly improved and the analysis execution time can be greatly shortened. In addition, since the embodiment of the present invention samples the log records based on the log time of each log record, the sampled log records can effectively cover all the device log time periods that generate the log records, effectively ensuring that each device log time period has log records extracted, so that the parsing results obtained by rapid analysis still have a high reference value for big data. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0025] Figure 1 A flowchart of a method for quickly analyzing a medical device log file according to an embodiment of the present invention;
[0026] Figure 2 One embodiment of the present invention Figure 1 Flow chart of the implementation method of step S11;
[0027] Figure 3 A flowchart of a method for writing a log record determined as a sampling target into a data file corresponding to a corresponding medical device according to another embodiment of the present invention;
[0028] Figure 4 A flow chart of a method for quickly determining the actual service life of a cold head in a medical device according to an embodiment of the present invention;
[0029] Figure 5 One embodiment of the present invention Figure 4 Flow chart of the implementation method of step S42;
[0030] Figure 6 Another embodiment of the present invention Figure 4 Flow chart of the implementation method of step S42;
[0031] Figure 7 Another embodiment of the present invention Figure 4 Flow chart of the implementation method of step S42;
[0032] Figure 8 One embodiment of the present invention Figure 7 Flow chart of the implementation method of step S73;
[0033] Fig. 9 One embodiment of the present invention Figure 8 Flow chart of the implementation method of step S82;
[0034] Fig.10 One embodiment of the present invention Figure 4 Flow chart of the implementation method of step S43;
[0035] Fig.11 Another embodiment of the present invention Figure 4 Flow chart of the implementation method of step S43;
[0036] Fig.12 This is a principle block diagram of a device for quickly analyzing a medical device log file according to an embodiment of the present invention;
[0037] Fig.13 This is a principle block diagram of a device for quickly determining the actual service life of a cold head in a medical device according to an embodiment of the present invention;
[0038] Fig.14 It is a schematic structural diagram of an embodiment of an electronic device of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.
[0041] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0042] In the present invention, "module", "device", "system" and the like refer to related entities applied to computers, such as hardware, a combination of hardware and software, software or software in execution, etc. In detail, for example, an element can be, but is not limited to, a process, a processor, an object, an executable element, an execution thread, a program and / or a computer running on a processor. In addition, an application or script program running on a server, a server can all be an element. One or more elements can be in an execution process and / or thread, and an element can be localized on a computer and / or distributed between two or more computers, and can be operated by various computer-readable media. An element can also communicate through local and / or remote processes according to a signal with one or more data packets, for example, a signal from a data that interacts with another element in a local system, a distributed system, and / or a network on the Internet through a signal to interact with other systems.
[0043] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include" and "comprise" include not only those elements, but also other elements not explicitly listed, or also include elements inherent to such processes, methods, articles or equipment. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.
[0044] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0045] Figure 1 The process of a method for quickly analyzing a medical device log file according to an embodiment of the present invention is schematically shown. The execution subject of the method can be any computing device, including but not limited to a personal computer, a server, and an intelligent electronic device such as a tablet computer. Figure 1 As shown, the method comprises the following steps:
[0046] Step S10: Obtain the log file to be parsed of the medical device;
[0047] Step S11: sampling log records of the log files to be parsed of each medical device according to the log time of each log record in the log files to be parsed of each medical device;
[0048] Step S12: Generate and store the analysis results of the log files to be analyzed for each medical device based on the sampled log records.
[0049] In step S10, obtaining the log file to be parsed of the medical device can be directly obtained from the medical device through a dedicated data acquisition box to obtain the log file to be parsed, or it can be obtained from a storage module storing all the log files to be parsed of the corresponding medical device. In practical applications, taking the device log collection platform of Xushui Company as an example, the log records on the medical device are generally collected through the data acquisition box independently developed by Xushui Company, and the log records are sent to the kafka server cluster in the form of timestamp + parameter data, and then the newly sent log record message is read from the kafka server cluster through the storage program developed by Xushui Company, and all log records read from the kafka server cluster are persisted to the disk array according to the device number, thereby forming the log files corresponding to each medical device. In an embodiment of the present invention, in step S10, the log files to be parsed of each medical device can be read from the disk array. It should be noted that the embodiment of the present invention does not limit the way and method of obtaining the log files to be parsed of the medical device. In practical applications, any possible existing technical solution can be used to obtain the corresponding log files to be parsed of the medical device from the corresponding storage location, so as to analyze them by applying the method of the embodiment of the present invention. In the context of the embodiment of the present invention, parsing or analyzing a log file means converting unstructured log record data in the log file into structured data for persistent storage, that is, the parsing result is structured log record data.
[0050] In step S11, the log records of the log files to be parsed of the medical device can be sampled by using a time-based compression mapping method, wherein the time-based compression mapping method is preferably implemented to ensure that the sampled log records are included in all device log time periods in which the log records are generated, so that the sampled log records can effectively cover all device log time periods in which the log records are generated, thereby effectively ensuring that log records are extracted from each device log time period, so that the parsing results obtained by rapid analysis still have a high big data reference value.
[0051] As a preferred embodiment, sampling the log records of the log file to be parsed of the medical device based on the time compression mapping method can be implemented based on the log time of each log record in the log file to be parsed and the set reference time. Among them, the reference time can be preset according to the needs, and each medical device corresponds to a reference time adapted to the medical device, and the reference time corresponding to different medical devices can be the same or different. It should be noted that each log file of the medical device includes at least one log record, and each log record corresponds to a timestamp adapted to the log record, which is used to characterize the time or occurrence time of the log record. Therefore, the timestamp corresponding to each log record can be obtained by scanning the log records of the log file to be parsed of the medical device one by one, and it is used as the log time of the corresponding log record. Among them, scanning the log records of the log file to be parsed of the medical device one by one to obtain the timestamp corresponding to each log record and the method of obtaining each log record can be implemented with reference to the existing technology, such as by keyword matching or machine learning, etc., and the embodiment of the present invention does not limit this.
[0052] Taking the sampling of log records in the log file to be parsed of the medical device based on the log time of each log record in the log file to be parsed and the set reference time as an example, the following is combined with Figure 2 A possible implementation of step S11 is described in detail. Figure 2 As shown, sampling log records of the to-be-parsed log files of each medical device based on the log time of each log record and the preset reference time can be specifically implemented as follows:
[0053] Step S111: determining the index to which the corresponding log record is mapped according to the log time of each log record in the log file to be parsed of the corresponding medical device and the preset reference time, wherein the index is used to indicate the storage location of the validity identifier corresponding to the corresponding log record in the partition file corresponding to the medical device, and the partition file is used to store the validity identifier corresponding to the log record of the corresponding medical device;
[0054] Step S112: Obtain the validity identifier corresponding to the corresponding log record from the partition file according to the index of the corresponding log record, and when the validity identifier is judged to be valid, determine the corresponding log record as a sampling target, sample it, and update the validity identifier at the index after sampling it to invalid.
[0055] In step S111, the log record can be mapped to an index based on the log time of the corresponding log record and the reference time of the medical device. The mapped index is the storage location of the validity identifier corresponding to the corresponding log record in the partition file corresponding to the medical device. In a specific implementation, a partition file can be created for each medical device and loaded into the memory, wherein the partition file is not used to store the actual log record content, but is only used to store the validity identifier corresponding to the log record of the corresponding medical device, so the capacity space occupied is very small, and it can be loaded into the memory to achieve fast and frequent access and fast read and write operations. In an embodiment of the present invention, the validity identifier is used to characterize whether the log record mapped to the corresponding index has been sampled. When the validity identifier corresponding to the corresponding index in the partition file is marked as invalid, it indicates that the log record mapped to the index has been sampled. When the validity identifier corresponding to the corresponding index in the partition file is marked as valid, it indicates that the log record mapped to the index has not been sampled. The validity identifier can be marked by the data content of each byte in the partition file. For example, the character "0" can be used to mark the validity identifier as valid and the character "1" can be used to mark the validity identifier as invalid, so that the validity of the validity identifier at the corresponding position can be judged by the byte content at each position in the partition file. As a possible implementation, the size of the created partition file can be determined according to the time length and sampling frequency covered by the log file of the corresponding medical device to be parsed and stored. For example, when the time length covered by the log file of the corresponding medical device to be parsed and stored is ten years and the sampling frequency is one minute and only one log record is sampled, the size of the partition file can be set to 10*365*24*60, so that each byte of the partition file corresponds to the validity mark of the log record of the corresponding minute, such as the 0th byte is the validity mark corresponding to the log record with the log time as the start time, and the 2nd byte is the validity mark corresponding to the log record of the first minute after the log time as the start time, and so on. In the initial stage, the contents of the validity marks corresponding to all bytes of the partition file are initialized to valid. Taking the validity mark as an example of using the character "0" to mark valid and the character "1" to mark invalid, after the partition file is created, the contents of all bytes of the partition file will first be initialized to the character "0". In the embodiment of the present invention, the index determined by step S111 is the index position of each byte in the partition file for storing the validity mark.
[0056] As a preferred implementation, the reference time adapted to each medical device can be set to the log time of the earliest log record that needs to be parsed and stored on the medical device, and the index mapped to the corresponding log record is determined based on the difference between the log time of the log record and the preset reference time. Take the case where the reference time of a medical device is set to the log time of the earliest log record that needs to be parsed and stored on the medical device, and the index mapped to the corresponding log record is determined based on the difference between the log time of the log record and the preset reference time, as shown in Table A below. Assuming that the log time of the earliest log record that needs to be parsed and stored on a medical device is 2013-01-01 00:00, the reference time of the medical device will be set to 2013-01-01 00:00. At this time, when sampling log records in the log file to be parsed of the medical device, first, for the earliest log record that needs to be parsed and stored, the difference between its log time and the reference time is 0. Assuming that the medical device generates ten log records in one minute, the difference between the log time of the nine log records after the earliest log record, i.e., the 2nd to 10th log records and the reference time is also 0, and the difference between the log time of the 11th log record and the reference time is 1. That is, for the log time of 2013-01-01 For the log record with a log time of 2013-01-01 00:01, the difference between its log time and the reference time is 1, for the log record with a log time of 2013-01-01 00:02, the difference between its log time and the reference time is 2, and so on. At this time, as a preferred implementation, the difference between the log time of the log record and the reference time can be directly used as the index mapped to the corresponding log record. In this case, for the log record with a log time of 2013-01-01 00:00, the index mapped to is 0, for the log record with a log time of 2013-01-01 00:01, the index mapped to is 1, and so on. At this time, as shown in the table on the left side of Table A, the characters "0" and "1" can be used in the partition file to identify the content of the validity mark at the corresponding index.Therefore, by recording the validity identifier at the corresponding index in the partition file, it is possible to indicate the validity of the log record, that is, whether a log record has been sampled at the log time, without the need to analyze and read and write the content of the corresponding log record. This allows for fast sampling of log records based on log time. In addition, since the characters "0" and "1" only occupy one byte of storage space, the index corresponds exactly to the position of the corresponding byte in the partition file. For example, an index of 0 corresponds to the position of the 0th byte in the partition file, an index of 1 corresponds to the position of the 1st byte in the partition file, and so on. The partition file is only used to store the validity identifier corresponding to the corresponding index position. Therefore, the size of the partition file will be very small, and the memory space occupied is very small. Fast and frequent read and write access can be achieved, and both time and performance consumption are very small.
[0057]
[0058] Table A
[0059] After determining the index to which the corresponding log record is mapped, in step S112, the partition file can be searched according to the index of the corresponding log record to obtain the validity mark corresponding to the corresponding log record from the partition file. After obtaining the validity mark corresponding to the corresponding log record, it is first judged. When the validity mark is valid, such as the character "0", it means that no log record has been sampled at the log time. At this time, the corresponding log record is determined as the sampling target, sampled, and the validity mark at the index position is updated after sampling, and the byte content at the corresponding position is modified to invalid, such as the character "1". If the validity mark is judged to be invalid, such as the character "1", it means that a log record has been sampled at the log time. At this time, the current log record is no longer sampled, that is, it will be discarded. Therefore, the method of the embodiment of the present invention only samples one of the log records at the same log time, that is, only one valid log record is retained at the same log time, and the other log records at the same log time will not be subsequently analyzed and processed, that is, they will not be parsed and stored in a structured manner, so the parsing efficiency of the log file can be greatly improved, and the analysis execution time of the log file can be shortened. At the same time, since the method of the embodiment of the present invention is sampled based on log time, it realizes compression mapping of log files based on log time, so that the sampled log records can cover all time periods in which log records are collected, thereby ensuring the validity and reference value of the parsing results of the log files.
[0060] As a possible implementation, in step S112, sampling the log records can be specifically implemented as including writing the log records determined as sampling targets into the data file corresponding to the corresponding medical device. The data file specifically refers to a file for storing the log records determined as sampling targets extracted from the log files to be parsed of the corresponding medical device. Thus, by sampling the log records in the log files to be parsed based on log time, time-based compression mapping of the log files is achieved, so that only the log records determined as sampling targets in the log files need to be written into the data files, that is, data is written to the data files only once when the log records are determined as sampling targets, which effectively shortens the extraction time of the log records in the log files and the subsequent parsing time. Moreover, since only the partition files with small capacity and frequent access are stored in the memory, the memory occupied space can be reduced and the data access speed for determining the sampling targets can be improved, thereby improving the analysis efficiency of the log files.
[0061] As a possible implementation, Figure 3 The specific method flow of writing the log records determined as sampling targets into the data files corresponding to the corresponding medical devices is schematically shown, such as Figure 3 As shown, it can be implemented as including:
[0062] Step S31: writing a flag character into the Xth data bit of the data file, wherein X=K*N+1, K is the number of log records written into the data file corresponding to the corresponding medical device, and N is the preset maximum data length;
[0063] Step S32: writing the log record determined as the sampling target after the flag character;
[0064] Step S33: based on the data length M of the log record determined as the sampling target, when it is determined that the data length M does not reach the preset maximum data length N, Y padding characters are written after the written log record, where Y=N-1-M.
[0065] In step S31, the maximum data length N can be set to the maximum length of the log record, wherein the maximum length of the log record can be determined based on prior knowledge or experience or the manual of the medical device. The written flag character can be any fixed character that occupies one bit, such as the fixed character "1", which is used to mark the beginning of a log record. In step S33, the place-filling character can be a preset fixed character different from the flag character, each place-filling character occupies one bit, and is preferably a blank character. Thus, by Figure 3The data file formed by the method shown is formed by a data block with a data length of (N+1) bits, and the remaining after each data block removes the flag character and the place-filling character is the content of a log record. Therefore, in step S12, based on the sampled log records, the parsing result storage of the log files to be parsed for each medical device can be realized as including reading a data block with a data length of N+1 from the data file of the corresponding medical device each time, removing the flag character and the place-filling character from the read data block, extracting keywords, and converting the extracted data corresponding to each keyword into structured data for persistent storage, wherein the form of persistence can be set according to demand, such as the extracted data corresponding to each keyword can be stored in the corresponding field of the database corresponding to the medical device to realize its structured persistent storage. Since the log records obtained by sampling are stored in the data file, it is not necessary to write all the log records in the log file to be parsed into the data file and read them from the data file, so the execution time of converting the log records in the data file into structured data for persistence will also be greatly shortened, so the parsing efficiency of the log files of the medical device is very high. In particular, under the implementation method of directly using the difference between the log time of the log record and the reference time as the index mapped to the corresponding log record, a subtraction operation and a partition file query process can be used to directly and quickly determine whether the current log record is a sampling target. If it is a sampling target, it is written to the data file. If it is not a sampling target, the next log record is analyzed. This processing method reduces the time complexity of writing the sampled log record to the data file to O(1). Combined with the compression of the data file generated by sampling, the analysis and processing efficiency of the log files of medical equipment is very high, especially when analyzing massive log files, the execution time is greatly shortened.
[0066] In some other possible implementations, sampling of log records of the log file to be parsed of the medical device based on the time compression mapping method can also be implemented based on the log time of the log record and the hash algorithm. For example, the index to which the corresponding log record is mapped can be determined by directly performing a hash algorithm on the log time of the log record in the log file to be parsed of the corresponding medical device and the unique serial number of the corresponding medical device. Since when the log time and the unique serial number of the device are the same, the index calculated by the hash algorithm is also the same, the log time used is set according to the required sampling frequency. For example, when the sampling frequency is one log record per minute, the log time accurate to the minute is directly input into the hash algorithm to achieve the corresponding sampling target. It should be noted that in this embodiment, the determined index is the hash value of the log time and the unique serial number of the device, so the above partition file and data file may not be used, but the index, that is, the hash value, is used as a unique identifier, and the first log record corresponding to the index is stored as data content in a structural data storage unit such as redis or other high-performance memory databases. Thus, after determining the index of the corresponding log record, by querying whether the corresponding index position of the structural data storage unit such as redis or other high-performance memory databases stores log records, it can be determined whether there is log data sampled at the log time. If data has been sampled at the log time, other log records with the same index are discarded. If data has not been sampled at the log time, the index and its corresponding log record are stored in a structural data storage unit such as redis or other high-performance memory databases. Preferably, in order to facilitate the subsequent further analysis, processing or use of the log record, the index can be further used to sort the stored log records after the index and its corresponding log record are stored.
[0067] In other embodiments, in addition to directly using the difference between the log time of each log record and the preset reference time as the index to which the corresponding log record is mapped, the log time of each log record and the preset reference time are subjected to difference processing, and then the index to which the current log record is mapped is determined by rounding up or down according to the obtained difference. Whether to round up or down can be determined according to the set reference time and the expected sampling frequency.
[0068] In a preferred embodiment, in an embodiment of the present invention, a unique partition file and a unique data file are configured for each medical device, so that the log file of each medical device can be analyzed as a unit. Since the log files of medical devices are saved separately according to the device number, by configuring a unique partition file and data file for each medical device, multiple tasks can be enabled at the same time, and the log files of multiple medical devices can be analyzed and processed at the same time, thereby speeding up the processing speed.
[0069] The log files of medical equipment record a large amount of equipment parameter data, so parsing them to form medical equipment big data and conducting in-depth analysis of medical equipment big data can effectively reflect the equipment status of medical equipment, help formulate maintenance plans for medical equipment, and provide valuable guidance for the research and development of medical equipment. It can be seen that parsing massive medical equipment log files to form medical equipment big data has very high practical application value. The following is an example to illustrate its application.
[0070] Taking the use of big data generated by parsing the log files of medical devices to determine the actual service life of the cold head as an example, since the RuO parameter data of the medical device can be extracted from the log files of the medical device, the inventor has found through long-term observation, experimentation and experience summary that the RuO parameter data of the medical device can be used to determine the actual service life of the cold head, and the inventor has also found the correlation between the RuO parameter data and the actual service life of the cold head. Based on this, the inventor has proposed a method for quickly determining the actual service life of the cold head in the medical device (the big data of the actual service life of the cold head generated by this method can be used to determine the predicted service life of any cold head), such as Figure 4 As shown, it can be implemented as including:
[0071] Step S41: extracting RuO parameter data from the parsing results of the log file of the corresponding medical device;
[0072] Step S42: determining a replacement time node for a cold head of a corresponding medical device according to the extracted RuO parameter data;
[0073] Step S43: determining the actual service life of the cold head according to the determined replacement time node of the cold head and the preset shortest service life of the cold head.
[0074] In step S41, the parsing result of the log file of the medical device can be a data file obtained using the aforementioned analysis method of the present invention, or a data record in a database obtained using the aforementioned analysis method of the present invention. Taking the parsing result as a data file obtained by the aforementioned analysis method as an example, extracting RuO parameter data from the parsing result can be implemented as including sequentially reading the log records in the data file, and extracting the RuO parameter data corresponding to the log record from the corresponding log record. Taking the parsing result as the database information obtained by the aforementioned analysis method as an example, the RuO parameter data that meets the requirements can be extracted from the database through SQL statements. In other possible implementations, when the parsing result is a structured data file, the structured data file can also be converted into a CSV format using a software program in the prior art, and then the file in CSV format is imported into the database, and then the data is analyzed through SQL statements to quickly extract the RuO parameter data that meets the requirements. Among them, the extracted RuO parameter data includes the log time corresponding to the log record and the RuO parameter value recorded in the log record.
[0075] After a lot of data analysis and verification, the inventor found the correlation between the RuO parameter data and the replacement time node of the cold head, and found that the RuO parameter value has a periodic change based on the warning line, and this periodic change can basically accurately reflect the relationship between the RuO parameter value and the replacement time node of the cold head. Based on this, in step S42, the embodiment of the present invention can specifically determine the replacement time node of the cold head according to the relationship between the extracted RuO parameter data and the preset warning line. Based on this technical concept, Figures 5 to 7 The method flow of determining the replacement time node of the cold head in three different implementations is schematically shown. The method process of the three different implementations will be described in detail below with reference to the accompanying drawings.
[0076] like Figure 5 As shown, in one embodiment of the present invention, the method for determining the replacement time node of the cold head based on RuO parameter data can be implemented as comprising the following steps:
[0077] Step S51: generating at least one group of first time features (T1, T2, S) according to the RuO parameter values in the extracted RuO parameter data and their corresponding timestamps, and the preset warning line, wherein T1 represents the timestamp corresponding to the RuO parameter value that first exceeds the warning line after T2 of a group of first time features before the corresponding group of first time features, T2 represents the timestamp corresponding to the RuO parameter value that first falls below the warning line after T1 of the corresponding group of first time features, and S represents the duration of the RuO parameter value corresponding to the corresponding group of first time features exceeding the warning line;
[0078] Step S52: Determine a cold head replacement time node from the at least one group of first time features (T1, T2, S) according to a preset first filtering condition, wherein the cold head replacement time node is a timestamp T2 in the first time feature whose duration S satisfies the first filtering condition.
[0079] As a possible implementation, in step S51, the relationship between each RuO parameter value and the preset warning line can be determined one by one for the extracted RuO parameter data according to the time sequence indicated by its timestamp, and at least one group of first time features (T1, T2, S) can be formed according to the relationship between the RuO parameter value and the preset warning line and the timestamp corresponding to the corresponding RuO parameter value. Specifically, it can be implemented as follows: first, for each RuO parameter data, the relationship between its RuO parameter value and the preset warning line will be judged one by one. When it is judged that the RuO parameter value corresponding to a certain RuO parameter data exceeds the warning line, the timestamp corresponding to the RuO parameter data is recorded as T1, and then the relationship between the RuO parameter value and the preset warning line is judged for other RuO parameter data after the RuO parameter data, and the timestamp of the first appearance of RuO parameter data with a RuO parameter value lower than the warning line after T1 is recorded as T2; then, the duration S that the RuO parameter value of the medical device exceeds the warning line is calculated according to the difference between T1 and T2, and the group of T1, T2 and S is formed into a group of first time features (T1, T2, S). Through step S51, all the extracted RuO parameter data are processed one by one, thereby forming at least one group of first time features (T1, T2, S), wherein it should be noted that T1 in each group of first time features (T1, T2, S) corresponds to the timestamp corresponding to the RuO parameter data whose RuO parameter value exceeds the warning line for the first time after T2 of the previous group of first time features (T1, T2, S). For example, for the first group of first time features (T1, T2, S), T1 is 2013-01-01 00:01 and T2 is 2013-01-02 00:01, then for the second group of first time features (T1, T2, S) thereafter, T1 is the timestamp corresponding to the RuO parameter data whose RuO parameter value exceeds the warning line found for the first time after 2013-01-02 00:01. Among them, the warning line can be used to characterize and reflect the correlation between the RuO parameter value and the replacement of the cold head. When the RuO parameter value exceeds the warning line, it usually indicates that the cold head may have failed and needs to be replaced. If the RuO parameter value subsequently obtained after exceeding the warning line is lower than the warning line, it usually indicates that the cold head has been replaced. This association is determined by the inventor based on the results of big data analysis and empirical data. According to the correlation between the RuO parameter value and the replacement of the cold head discovered by the inventor, the warning line can be set to 300, for example.
[0080] In step S52, the first filtering condition is set to 1≤S≤48. Thus, in step S52, it is possible to judge whether S satisfies the first filtering condition for all the first time features determined in step S51. When it is judged that S of a group of first time features satisfies the first preset condition, T2 in the group of first time features is recorded as a cold head replacement time node. Thus, at least one cold head replacement time node is obtained through the processing of step S52, that is, when multiple cold head replacement time nodes are determined, a set of cold head replacement time nodes is obtained through the processing of step S52. It should be noted that when more than one cold head replacement time node is obtained, it means that there may be a suspected replacement time node in the cold head replacement time node at this time, or it may be that the medical device has undergone multiple cold head replacements, so there are replacement time nodes for multiple different cold heads. Therefore, it is necessary to perform specific processing in step S12 to finally determine which cold head replacement time nodes are valid and which are invalid, and then exclude the invalid cold head replacement time nodes and determine the actual service life corresponding to each cold head that has been replaced.
[0081] like Figure 6 As shown, in another embodiment of the present invention, the method for determining the replacement time node of the cold head based on RuO parameter data can be implemented as comprising the following steps:
[0082] Step S61: generating at least one group of first time features (T1, T2, S) according to the RuO parameter values in the extracted RuO parameter data and their corresponding timestamps, and the preset warning line, wherein T1 represents the timestamp corresponding to the RuO parameter value that first exceeds the warning line after T2 of a group of first time features before the corresponding group of first time features, T2 represents the timestamp corresponding to the RuO parameter value that first falls below the warning line after T1 of the corresponding group of first time features, and S represents the duration of the RuO parameter value corresponding to the corresponding group of first time features exceeding the warning line;
[0083] Step S62: performing a first filtering process on the at least one set of first time features (T1, T2, S) formed, deleting the first time features (T1, T2, S) belonging to the first type of abnormality, and obtaining at least one set of second time features (T1, T2, S), wherein the first time feature of the first type of abnormality refers to the first time feature S that meets the first preset condition;
[0084] Step S63: Determine the cold head replacement time node from the at least one group of second time features (T1, T2, S) according to the preset first filtering condition, wherein the cold head replacement time node is the timestamp T2 in the second time feature whose duration S satisfies the first filtering condition.
[0085] exist Figure 6In the embodiment shown, the processing of step S61 is the same as Figure 5 The processing of step S51 in the implementation mode is the same, that is, at least one set of first time features is determined by comparison with the warning line. Figure 5 The embodiment shown is different in that Figure 6 In the implementation manner, after determining at least one set of first time features, the first time features are first subjected to a first filtering process to exclude obvious abnormal data, such as abnormal parameter data caused by abnormal sensors, etc. In step S62 of the embodiment of the present invention, it is preferred to first delete the first time features belonging to the first category of abnormalities through the first filtering process. Among them, the first time feature of the first type of abnormality refers to the first time feature that S satisfies the first preset condition. The first preset condition is preferably used to characterize the time node when the RuO parameter value is continuously higher than the warning line for a long time. Exemplarily, the first preset condition can be S≥72, that is, the first time feature when the RuO parameter value is higher than the warning line for more than three consecutive days is determined as the first time feature belonging to the first type of abnormality, so as to delete it from the data determined in step S61, thereby obtaining at least one set of second time features (T1, T2, S). It should be noted here that the meanings of T1, T2 and S in the second time feature are the same as those in the first time feature, and the difference between it and the first time feature is that the first time feature belonging to the first type of abnormality is filtered out from the first time feature determined in step S61, thereby in step S63, T2 in the first time feature of the first type of abnormality will no longer be determined as the cold head replacement time node, that is, it can effectively exclude invalid cold head replacement time nodes, reduce the interference of invalid data, and can reduce the data processing amount when determining the cold head replacement time in step S63 and when determining the actual service life of the cold head in step S12, thereby improving the algorithm performance. It should be further explained that the specific implementation process of step S63 is similar to the implementation process of step S52 above, so it will not be repeated here.
[0086] like Figure 7 As shown, in another embodiment of the present invention, the method for determining the replacement time node of the cold head based on RuO parameter data can be implemented as comprising the following steps:
[0087] Step S71: generating at least one group of first time features (T1, T2, S) according to the RuO parameter values in the extracted RuO parameter data and their corresponding timestamps, and the preset warning line, wherein T1 represents the timestamp corresponding to the RuO parameter value that exceeds the warning line for the first time after T2 of a group of first time features before the corresponding group of first time features, T2 represents the timestamp corresponding to the RuO parameter value that is lower than the warning line for the first time after T1 of the corresponding group of first time features, and S represents the duration of the RuO parameter value corresponding to the corresponding group of first time features exceeding the warning line;
[0088] Step S72: performing a first filtering process on the at least one set of first time features (T1, T2, S) formed, deleting the first time features (T1, T2, S) belonging to the first type of anomalies, and obtaining at least one set of second time features (T1, T2, S);
[0089] Step S73: performing a second filtering process on the at least one set of second time features (T1, T2, S) formed, deleting the second time features (T1, T2, S) belonging to the second type of anomalies, and obtaining at least one set of third time features (T1, T2, S);
[0090] Step S74: Determine the cold head replacement time node from the at least one group of third time features (T1, T2, S) according to the preset first filtering condition, wherein the cold head replacement time node is the timestamp T2 in the third time feature whose duration S satisfies the first filtering condition.
[0091] exist Figure 7 In the embodiment shown, the processing of step S71 and step S72 is the same as Figure 6 The processing of step S61 and step S62 in the implementation mode is the same, that is, at least one set of first time features is determined by comparison with the warning line, and the first type of abnormal data is filtered out from the at least one set of first time features determined by the first filtering process. Figure 6 The embodiment shown is different in that Figure 7In the implementation manner, after at least one set of second time features are determined, the second time features are further subjected to a second filtering process through step S73 to exclude data with obvious second-type abnormalities. Among them, the second time feature of the second type of abnormality refers to the second time feature that the duration of the corresponding RuO parameter value being higher than the warning line is less than one hour, and the difference in the average value of the RuO parameter value within one hour before and after the time nodes T1 and T2 does not exceed 5. The second time feature of the second type of abnormality is deleted from the data determined in step S72 by the second filtering process, thereby obtaining at least one set of third time features (T1, T2, S). It should be noted here that the meanings of T1, T2 and S in the third time feature are the same as those in the first time feature, and the difference between the third time feature and the first time feature is that the first time feature belonging to the first type of abnormality and the second time feature belonging to the second type of abnormality are filtered out from the data determined in steps S71 and 72. Therefore, in step S74, T2 in the first time feature of the first type of abnormality and T2 in the second time feature of the second type of abnormality will no longer be determined as the cold head replacement time node, that is, the invalid cold head replacement time node can be effectively excluded, the interference of invalid data can be reduced, and the data processing amount in step S74 when determining the cold head replacement time and step S12 when determining the actual service life of the cold head can be reduced, thereby improving the algorithm performance. It should be further explained that the specific implementation process of step S74 is similar to the implementation process of step S52 above, so it will not be repeated here.
[0092] Taking the second time feature of the second type of anomaly as an example, the duration of the corresponding RuO parameter value above the warning line is less than one hour, and the difference in the average value of the RuO parameter value within one hour before and after the time nodes T1 and T2 does not exceed 5, the following will be combined with Figure 8 The implementation process of the second filtering process in step S73 is described in detail. Figure 8 As shown, its implementation includes:
[0093] Step S81: Filter out the second time feature S that meets the second preset condition from the at least one set of second time features (T1, T2, S);
[0094] Step S82: for each of the screened second time features that S meets the second preset condition, respectively obtain the first RuO parameter average value and the second RuO parameter average value corresponding to each of the second time features;
[0095] Step S83: Determine the second time feature belonging to the second type of anomaly based on the first RuO parameter average value and the second RuO parameter average value in each second time feature, and delete it from the at least one set of second time features (T1, T2, S) formed.
[0096] In step S81, the second preset condition is used to characterize a second time feature that the duration of the corresponding RuO parameter value being higher than the warning line is less than one hour. Exemplarily, it can be set to S≤1.
[0097] In step S82, the first RuO parameter average value is used to characterize the average value of the RuO parameter values obtained within one hour before the time node T1, and the second RuO parameter average value is used to characterize the average value of the RuO parameter values obtained within one hour after the time node T2. Wherein, the time node T1 refers to T1 in the second time feature that meets the second preset condition, and the time node T2 refers to T2 in the second time feature that meets the second preset condition. Wherein, when calculating the first RuO parameter average value and the second RuO parameter average value, T1 and T2 of the same group of second time features that meet the second preset condition are selected, that is, when determining the average value difference of the RuO parameter values within one hour before and after the time nodes T1 and T2, the second time feature corresponding to T1 when calculating the first RuO parameter average value and the second time feature corresponding to T2 when calculating the second RuO parameter average value are the same, thereby by calculating the difference between the first RuO parameter average value and the second RuO parameter average value corresponding to the same group of second time features, the second time feature whose average value difference of the RuO parameter values within one hour before and after the time nodes T1 and T2 does not exceed 5 can characterize the time node with obvious abnormality of parameter data, and is the second time feature belonging to the second type of abnormality.
[0098] Specifically, in step S82, Fig. 9 The method shown in FIG. 1 is used to determine the first RuO parameter average value and the second RuO parameter average value corresponding to each second time feature, such as Fig. 9 As shown, it can be implemented as including:
[0099] Step S821: for each second time feature that satisfies the second preset condition, T1 of each second time feature is pushed forward one hour and T2 is pushed back one hour, and all RuO parameter data within one hour before T1 and all RuO parameter data within one hour after T2 are obtained;
[0100] Step S822: Calculate the average value of the RuO parameter values in all the RuO parameter data within one hour before T1 as the first RuO parameter average value corresponding to the corresponding second time feature;
[0101] Step S823: Calculate the average value of the RuO parameter values in all the RuO parameter data within one hour after T2 as the second RuO parameter average value corresponding to the corresponding second time feature.
[0102] It should be noted that, in step S821, the expected RuO parameter data can be obtained based on the time period of T1 one hour forward and T2 one hour backward of each second time feature and the timestamp of the RuO parameter data extracted in step S10, and in steps S822 and S823, the first RuO parameter average value and the second RuO parameter average value corresponding to the corresponding second time feature can be calculated based on the RuO parameter value in the obtained RuO parameter data that meets the expectations.
[0103] In step S83, the second time features belonging to the second type of anomaly are determined based on the first RuO parameter average value and the second RuO parameter average value in each second time feature. Specifically, the first RuO parameter average value and the second RuO parameter average value corresponding to the same group of second time features are subtracted, and it is determined whether the difference does not exceed 5. The second time features not exceeding 5 are deleted as second time features belonging to the second type of anomaly, and the second time features exceeding 5 are retained.
[0104] It should be noted that in Figure 6 and Figure 7 In the implementation manner, the definitions and characteristics of the first time characteristics of the first type of anomaly and the second time characteristics of the second type of anomaly are discovered by the inventor based on a large amount of experience and analysis and summary based on big data, that is, the inventor discovered the correlation between the change of RuO parameter value and the warning line based on a large amount of experience and analysis and summary based on big data, and found out the relationship characteristics between the RuO parameter value that is obviously abnormal and the warning line. Therefore, based on this, by filtering and deleting the time characteristic data that meets these characteristics, the parameter data that is obviously abnormal can be effectively removed, and the repeated processing of invalid data can be reduced. In the scenario of massive data processing, the algorithm performance and efficiency can be greatly improved.
[0105] In step S12, the shortest life S of the cold head can be set based on experience or determined based on a dictionary value provided by the cold head manufacturer. In specific applications, the shortest life of cold heads of different manufacturers and models may be different. The shortest life of the cold head is used to characterize the possible shortest service life of the cold head in actual applications. Therefore, it can be used to effectively screen out invalid suspected replacement time nodes from the replacement time nodes of the cold head. Exemplarily, as a preferred implementation, the determined cold head replacement time node can be compared with the preset shortest life of the cold head to distinguish between valid cold head replacement time nodes and invalid suspected replacement time nodes. For example, when the actual service life of the cold head determined based on the cold head replacement time node is lower than the value, it can be indicated that the corresponding cold head replacement time node is only an invalid suspected replacement time node, not a valid cold head replacement time node. Fig.10The method flow of determining the actual service life of a cold head according to a determined replacement time node of the cold head and a preset minimum service life of the cold head according to an embodiment of the present invention is schematically shown, as shown in FIG. Fig.10 As shown, its implementation includes:
[0106] Step S121: subtract the determined replacement time nodes of the cold heads from the cold head installation time nodes that match the corresponding replacement time nodes to obtain the suspected life of the cold heads;
[0107] Step S122: Compare the suspected life of the cold head with the preset shortest life of the cold head, and determine the actual service life of the cold head corresponding to the installation time of each cold head according to the comparison result.
[0108] In step S121, the cold head installation time adapted to the corresponding replacement time node refers to the cold head installation time adapted to the determined cold head replacement time node. As can be seen from the foregoing, the determined cold head replacement time node includes at least one, that is, it may be a set including more than two cold head replacement time nodes. In this case, it means that the medical device may have replaced the cold head multiple times within the corresponding time period. Therefore, for different cold heads, the corresponding cold head installation time is different. Based on this, the cold head installation time adapted to the determined cold head replacement time node in the embodiment of the present invention may also be variable. For example, for the first cold head replacement time node in the determined cold head replacement time node set, the corresponding cold head installation time is the time of the cold head installed before the cold head replacement time node, which can be set according to the actual situation by initialization; and for the second and subsequent cold head replacement time nodes in the determined cold head replacement time node set, the corresponding cold head installation time varies according to the situation, and the specific variation rule can be that when the cold head replacement time node before is valid, it means that the cold head replacement has occurred at the cold head replacement time node before, then the cold head installation time corresponding to the cold head replacement time node at this time is the valid cold head replacement time node before, and when the cold head replacement time node before is invalid, it means that the cold head replacement has not occurred at the cold head replacement time node before, then the cold head installation time corresponding to the cold head replacement time at this time is the same as the cold head installation time corresponding to the cold head replacement time node before. That is to say, the cold head installation time adapted to the current cold head replacement time node may be the initialized cold head installation time or a cold head replacement time node before, and its specific value depends on the validity of the cold head replacement time node before.
[0109] In step S121 and step S122, the embodiment of the present invention mainly conceives to judge the validity of the determined cold head replacement time node by the preset cold head minimum life, so as to determine the effective replacement time node of the cold head and its corresponding actual service life. Based on this technical concept, in step S121, the embodiment of the present invention needs to calculate a preliminary cold head life according to the determined cold head installation time adapted to the corresponding cold head replacement time node, which is called the suspected life of the cold head in the embodiment of the present invention. The life corresponds to the specific determined effective replacement time node of the cold head. Afterwards, in step S122, the embodiment of the present invention will verify the suspected life of the cold head according to the preset shortest life S of the cold head, so as to further determine whether the cold head replacement time node corresponding to the suspected life of the cold head is valid. When it is valid, the suspected life of the cold head can be confirmed as the actual service life of the previous cold head corresponding to the cold head replacement time node, and the valid cold head replacement time node is used as the cold head installation time of the replaced cold head, and then the next determined cold head replacement time node is processed by steps S121 and S122. At this time, for the next determined cold head replacement time node, its corresponding cold head installation time is updated to the previous valid cold head replacement time node; and when it is determined through verification that the cold head replacement time node corresponding to the suspected life of the cold head is invalid, it means that the cold head replacement has not actually occurred at this time, and therefore, the cold head installation time will not be updated, but the cold head installation time will be kept as the existing value, and then the next determined cold head replacement time node is processed by steps S121 and S122. It should be noted that, under this technical concept, the effective cold head replacement time node in the embodiment of the present invention not only represents the end of life of the previous cold head, but also represents the installation time of the next cold head. It is not only the basis for determining the actual service life of the previous cold head, but also the basis for updating the cold head installation time. Invalid cold head replacement time nodes are invalid data that will be excluded. As a possible implementation method, the judgment of the validity of a certain cold head replacement time node and the calculation of the actual service life corresponding to the cold head replacement time node based on the above technical concept can be implemented by the following formula:
[0110]
[0111] Where f(x,y) is the actual service life of the cold head before replacement corresponding to the yth cold head replacement time node, T x is the cold head installation time adapted to the yth cold head replacement time node, T y is the yth replacement time node among the determined replacement time nodes of the cold head, S is the preset shortest life of the cold head, T x -T yThe absolute value of the result is the suspected life of the cold head. When the suspected life of the cold head is less than the preset minimum life of the cold head S, it means that the time node T for replacing the cold head is now. y is invalid, therefore, the cold head installation time T x No change, and continue to replace the next cold head at time T y+1 Make a judgment (that is, at this time, T x =T x , y=y+1, the next cold head replacement time node T y+1 Installation time of the adapted cold head and T y The installation time of the adapted cold head is the same), and when the suspected life of the cold head is not less than the preset shortest life of the cold head S, it means that the cold head replacement time node T at this time y is valid, then the suspected life of the cold head will be determined as the actual service life of the corresponding cold head, and the installation time of the cold head T x Update to T y , and then continue to replace the next cold head at time T y+1 Make a judgment (that is, at this time T x =T y , y=y+1, the next cold head replacement time node T y+1 The installation time of the adapted cold head is updated to T y , and T y The adapted cold head installation time is different). It should be noted that, in the above formula, the initial value of x is 0, the initial value of y is 1, T0 is the cold head installation time set by initialization, and T1 is the first cold head replacement time node in the determined cold head replacement time node set.
[0112] In other embodiments, in step S12, the determined cold head replacement time node may be subtracted from the initial cold head installation time, and a valid cold head replacement time node and an invalid suspected replacement time node may be distinguished based on the result of the subtraction and the preset minimum life of the cold head. For example, when the difference between the current cold head replacement time node and the initial cold head is lower than the sum of the preset minimum life of the cold head and the cumulative sum of the actual service life of all cold heads before the cold head replacement time node, it can be indicated that the corresponding cold head replacement time node is only an invalid suspected replacement time node. Fig.11 The method flow of determining the actual service life of a cold head according to a determined replacement time node of the cold head and a preset minimum service life of the cold head according to an embodiment of the present invention is schematically shown, as shown in FIG. Fig.11 As shown, its implementation includes:
[0113] Step S123: determining the current cold head for which actual service life needs to be calculated;
[0114] Step S124: determining the starting position of the cold head replacement time node for calculating the actual service life of the current cold head according to the current cold head;
[0115] Step S125: Starting from the starting position, based on the difference between the qualified cold head replacement time node among the determined cold head replacement time nodes and the cold head installation time of the initial cold head, and the cold head life cumulative benchmark, determine the actual service life of the current cold head, wherein the cold head life cumulative benchmark is the sum of the preset shortest life of the cold head and the actual service life of all cold heads before the current cold head.
[0116] As a possible implementation, the technical concept described in step S123 to step S125 can be specifically implemented by the following formula:
[0117]
[0118]
[0119] Wherein, g(n) in the formula is the actual service life of the nth cold head (i.e., the current cold head), wherein n=0 indicates that it corresponds to the initial cold head (i.e., the cold head installation time corresponding to the first cold head replacement time node in the determined cold head replacement time node set, i.e., the time of the cold head installed before this cold head replacement time node), n=1 indicates the cold head replaced for the first time after the initial cold head is put into use, and so on; T0 in the formula is the installation time of the initial cold head, which can be set according to the actual situation by initialization, T x is the x-th cold head replacement time node in the determined cold head replacement time node set, f(x,m) is the cumulative sum of the actual service lives of the first n-1 cold heads, and S in the formula is the preset minimum life of the cold head. In a specific application, the actual service life of the n-th cold head (i.e., the current cold head) can be calculated in combination with all the cold head replacement time nodes in the determined cold head replacement time node set. Exemplarily, the actual service life of the initial cold head can be calculated first. At this time, the value of n is set to 0, and the actual service life of the current cold head is g(0)=f(1,S). Since S in the formula is the preset minimum life of the cold head, when n=0, the cumulative benchmark of the cold head life is m=S. At this time, T x -T0 is the suspected life of the initial cold head. When the suspected life of the initial cold head is less than the preset minimum life of the cold head S, that is, when T x -T0<m, it means the time node T for cold head replacement at this time x is invalid, that is, the initial cold head has not been replaced, so the next cold head replacement time T x+1This judgment is made, that is, the value of x is updated to x=x+1, and when the suspected life of the initial cold head is not less than the preset shortest life of the cold head S, T x - When T0≥m, it indicates the time node T for cold head replacement. x is valid, and the determined g(0)=T x The value of -T0 is determined as the actual service life of the initial cold head (i.e., the current cold head). Afterwards, the value of x when the actual service life g(0) of the initial cold head is calculated and the number of cold head replacement time nodes in the cold head replacement time node set can be used to determine whether there is a next cold head whose actual service life needs to be calculated. Specifically, when the value of x when the actual service life g(0) of the initial cold head is calculated is equal to the number of cold head replacement time nodes in the cold head replacement time node set, it means that there are no more cold head replacement time nodes in the cold head replacement time node set, that is, only the initial cold head has been replaced, and the first cold head after replacement is still in use, and its actual service life cannot be calculated yet. At this time, the update of n and the continued judgment of the cold head replacement time node will be stopped. Of course, it is not difficult to understand that this processing is not only applicable to The same applies to the case where n=0, and the same applies to the case where n is other values; and when the value of x when calculating the actual service life g(0) of the initial cold head is less than the number of cold head replacement time nodes in the cold head replacement time node set, it means that there are still cold head replacement time nodes in the cold head replacement time node set that have not been judged. At this time, the value of n will be updated to n=n+1 (if n=0, it will be updated to 1), that is, the current cold head is determined by updating the value of n, and then the actual service life of the current cold head is calculated using the formula g(n). At this time, according to the determined current cold head, the cold head replacement time node is selected from the cold head replacement time node set for the above judgment starting from the initial position n+1, that is, for the current cold head, it is from T x =T n+1 It is not difficult to understand that this process is not only applicable to the case where n=0, but also to the case where n is other values. When the value of n is updated to be greater than or equal to 1, since the initial cold head has been replaced at least once, for the nth cold head, T x The result of -T0 is actually the sum of the actual service life of the first n-1 cold heads and the suspected service life of the nth cold head. Therefore, when the value of n is updated to be greater than or equal to 1, the value of m will be set to the sum of the shortest service life S of the cold head and the actual service life of the first n-1 cold heads, that is, there is a cold head life accumulation benchmark At this time, when T x -T0≥m can indicate the time node T for cold head replacement. x is effective (i.e. at the cold head replacement time node T xCold head replacement occurred), and when T x -T0<m can indicate the time node T for cold head replacement. x is invalid (i.e. at the cold head replacement time node T x The cold head has not been replaced), so the actual service life of the nth cold head can be calculated based on the xth cold head replacement time node in the cold head replacement time node set and the value of m. It should also be noted that when calculating the actual service life of the cold head, if the value of x is equal to the number of cold head replacement time nodes in the cold head replacement time node set, the value of g(n) is not obtained, that is, if the value of x is equal to the number of cold head replacement time nodes in the cold head replacement time node set, it is not possible to find a value that satisfies T x -T0≥m cold head replacement time node T x , it means that the nth cold head is still in use and has not been replaced. At this time, the update of n and the continued judgment of the cold head replacement time node will be stopped. Fig.12 The apparatus for quickly analyzing a medical device log file according to an embodiment of the present invention is schematically shown. Fig.12 As shown, it includes:
[0120] A log acquisition module 50, used to acquire the log file to be parsed of the medical device;
[0121] The compression sampling module 51 is used to sample log records of the log files to be parsed of each medical device according to the log time of each log record in the log files to be parsed of each medical device;
[0122] The parsing module 52 is used to generate and store parsing results of the log files to be parsed of each medical device based on the sampled log records.
[0123] Among them, as a preferred embodiment, Fig.12 As shown, the compression sampling module 51 can be specifically implemented as including
[0124] An index mapping unit 511, used to determine the index to which the corresponding log record is mapped according to the log time of each log record in the log file to be parsed of the corresponding medical device and a preset reference time, wherein the index is used to indicate the storage location of the validity identifier corresponding to the corresponding log record in the partition file corresponding to the medical device, and the partition file is used to store the validity identifier corresponding to the log record of the corresponding medical device;
[0125] The sampling target determination unit 512 is used to obtain the validity identifier corresponding to the corresponding log record from the partition file according to the index of the corresponding log record, and when the validity identifier is determined to be valid, determine the corresponding log record as a sampling target and sample it.
[0126] It should be noted that the specific implementation process and implementation principle of each module and unit of the apparatus for quickly analyzing medical device log files in the embodiment of the present invention can be found in the corresponding description of the above method embodiment, so they will not be repeated here.
[0127] Fig.13 The present invention schematically shows a device for quickly determining the actual service life of a cold head in a medical device according to an embodiment of the present invention. Fig.13 As shown, it includes:
[0128] A parameter extraction module 60, used to extract RuO parameter data from the analysis result of the log file of the corresponding medical device, wherein the analysis result is generated based on the method for quickly analyzing the log file of the medical device described in any of the above embodiments;
[0129] A replacement time determination module 61 is used to determine a replacement time node of a cold head of a corresponding medical device according to the extracted RuO parameter data;
[0130] The service life determination module 62 is used to determine the actual service life of the cold head according to the determined replacement time node of the cold head and the preset minimum service life of the cold head.
[0131] In some embodiments, an embodiment of the present invention provides a non-volatile computer-readable storage medium, which stores one or more programs including execution instructions, and the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to execute the method for quickly analyzing medical device log files of any of the above embodiments of the present invention.
[0132] In some embodiments, an embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method of quickly analyzing a medical device log file of any one of the above embodiments.
[0133] In some embodiments, an embodiment of the present invention also provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for quickly analyzing medical device log files of any of the above embodiments.
[0134] In some embodiments, the present invention further provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for quickly analyzing a medical device log file of any of the above embodiments.
[0135] Fig.14 FIG. 1 is a schematic diagram of the hardware structure of an electronic device for a method for quickly analyzing a medical device log file provided by another embodiment of the present application. Fig.14 As shown, the device includes:
[0136] One or more processors 610 and memory 620, Fig.14 A processor 610 is taken as an example.
[0137] The device for executing the method for quickly analyzing a medical device log file may further include: an input device 630 and an output device 640 .
[0138] The processor 610, the memory 620, the input device 630 and the output device 640 may be connected via a bus or other means. Fig.14 The example of connecting through bus is taken in the following.
[0139] The memory 620, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method for quickly analyzing medical device log files in the embodiment of the present application. The processor 610 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 620, that is, the method for quickly analyzing medical device log files in the above method embodiment is implemented.
[0140] The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the method for quickly analyzing a medical device log file, etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 620 may optionally include a memory remotely arranged relative to the processor 610, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0141] The input device 630 may receive input digital or character information and generate signals related to user settings and function control of the image processing device. The output device 640 may include a display device such as a display screen.
[0142] The one or more modules are stored in the memory 620, and when executed by the one or more processors 610, the method for quickly analyzing a medical device log file in any of the above method embodiments is performed.
[0143] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0144] The electronic devices of the embodiments of the present application exist in various forms, including but not limited to:
[0145] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0146] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0147] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0148] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0149] (5) Other electronic devices with data interaction functions.
[0150] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0151] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for rapidly analyzing a medical device log file, characterized in that: include: Get the log files to be parsed from medical devices; According to the log time of each log record in the log file to be parsed of each medical device, log record sampling is performed on the log file to be parsed of each medical device; The parsing results of the log files to be parsed of each medical device are generated and stored based on the sampled log records.
2. The method according to claim 1, characterized in that The method of sampling log records of the log files to be parsed of each medical device according to the log time of each log record in the log files to be parsed of each medical device includes: Determine the index to which the corresponding log record is mapped according to the log time of each log record in the log file to be parsed of the corresponding medical device and a preset reference time, wherein the index is used to indicate the storage location of the validity identifier corresponding to the corresponding log record in the partition file corresponding to the medical device, and the partition file is used to store the validity identifier corresponding to the log record of the corresponding medical device; The validity identifier corresponding to the corresponding log record is obtained from the partition file according to the index of the corresponding log record, and when the validity identifier is judged to be valid, the corresponding log record is determined as a sampling target and is sampled.
3. The method according to claim 2, characterized in that The corresponding log records are identified as sampling targets and are sampled, including: The log records determined as sampling targets are written into a data file corresponding to the corresponding medical device, where the data file is used to store the log records determined as sampling targets extracted from the log files to be parsed of the corresponding medical device.
4. The method according to claim 2, characterized in that: Determine the index mapped to the corresponding log record according to the log time of each log record in the log file to be parsed of the corresponding medical device and the preset reference time, including: The log time of a log record is extracted from the log file to be parsed of the corresponding medical device in turn, and the log time of the extracted current log record is subtracted from the preset reference time, and the index mapped to the current log record is determined according to the obtained difference.
5. The method according to claim 2, characterized in that: The validity identifier is used to indicate whether the log record mapped to the corresponding index has been sampled. When the validity identifier corresponding to the corresponding index in the partition file is marked as invalid, it indicates that the log record mapped to the index has been sampled. When the validity identifier corresponding to the corresponding index in the partition file is marked as valid, it indicates that the log record mapped to the index has not yet been sampled.
6. The method according to claim 5, characterized in that Each medical device has a corresponding reference time adapted to the medical device, wherein the reference time adapted to each medical device is the log time of the earliest log record to be parsed on the medical device.
7. The method according to claim 3, characterized in that Write the log records determined as sampling targets into the data files corresponding to the corresponding medical devices, including Write a flag character at the Xth data bit of the data file, where X=K*N+1, K is the number of log records written in the data file corresponding to the corresponding medical device, and N is the preset maximum data length; Writing the log record determined as the sampling target after the flag character; According to the data length M of the log record determined as the sampling target, when it is determined that the data length M does not reach the preset maximum data length N, Y padding characters are written after the written log record, where Y=N-1-M.
8. The method according to claim 7, characterized in that Based on the sampled log records, the parsing results of the log files to be parsed for each medical device are generated and stored, including A data block of N length is read from the data file of the corresponding medical device each time, and after removing the flag characters and the padding characters from the read data block, keywords are extracted, and the extracted data corresponding to each keyword is persistently stored in the form of structured data.
9. A device for quickly analyzing a medical device log file, characterized in that: include: The log acquisition module is used to obtain the log files to be parsed of the medical equipment; A compression sampling module, used for sampling log records of the log files to be parsed of each medical device according to the log time of each log record in the log files to be parsed of each medical device; The parsing module is used to generate and store parsing results of the log files to be parsed for each medical device based on the sampled log records.
10. A method for quickly determining the actual service life of a cold head in a medical device, characterized in that: include: Extracting RuO parameter data from the parsing result of the log file of the corresponding medical device, wherein the parsing result is generated based on the method according to any one of claims 1 to 8; Determine the replacement time node of the cold head of the corresponding medical equipment according to the extracted RuO parameter data; The actual service life of the cold head is determined according to the determined replacement time node of the cold head and the preset minimum service life of the cold head.
11. A device for quickly determining the actual service life of a cold head in a medical device, characterized in that: include: A parameter extraction module, used to extract RuO parameter data from the parsing results of the log file of the corresponding medical device, wherein the parsing results are generated based on the method according to any one of claims 1 to 8; A replacement time determination module, used to determine a replacement time node of a cold head of a corresponding medical device according to the extracted RuO parameter data; The service life determination module is used to determine the actual service life of the cold head according to the determined replacement time node of the cold head and the preset minimum service life of the cold head.
12. An electronic device, characterized in that: include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1-8 or 10.