A medical data deduplication method and transmission method based on edge computing
By calculating the hash value of medical data and using hash value filters to remove duplicates, the problem of repeated data collection in medical data collection and transmission is solved, improving efficiency and reducing costs.
Patent Information
- Application Number
- CN202410516396.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-04-28
AI Technical Summary
In the collection and transmission of medical data based on edge computing, existing technologies lead to repeated collection of data, resulting in tight bandwidth and computing resources and increased costs.
Data deduplication is achieved by calculating hashes of medical data, using hash filters to determine new and deleted data, and only transmitting and processing these data.
It reduces the amount of medical data transmitted and processed, improves data transmission and processing efficiency, and reduces costs.
Smart Images

Figure CN118113694B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a medical data deduplication method and transmission method based on edge computing. Background Art
[0002] Among the technologies related to medical data collection and transmission based on edge computing, the current strategy adopted is T+1 range collection and partition coverage storage, as follows:
[0003] Collection scope: According to the actual situation of the table, there are currently three types of collection scopes: time (month, day) range collection, ID range collection, and full table range collection.
[0004] Time range collection: According to the characteristics of medical business, all data of the past three months are usually collected every day and stored in the database according to the partitions.
[0005] ID range collection: collect the latest partition data every day and store it in the database according to the partition coverage, or collect the latest partition data once every certain number of days. Currently, the common practice is to collect data once every 7 days.
[0006] Full-table collection: Periodic full-table collection is performed according to the configured collection period (currently 7 days), and data is stored in the database based on full table coverage.
[0007] Collection data cache: Data files transmitted from edge collection devices of medical institutions to the center are first cached on the disk of the central collection file service and then stored in the database.
[0008] Incremental processing of warehousing: the partitions / tables collected for the first time are directly stored in the warehouse, and the partitions collected repeatedly are processed by SQL JOIN (Structured Query Language JOIN) (the duplicate data and the changed data are merged into a temporary partition / table) and then overwritten and stored.
[0009] Collection point collection concurrency: In order to prevent affecting the stability of the collection node database, the concurrency of a collection point collection task is generally set to less than 5 tasks.
[0010] From the above, it can be seen that whether it is full table collection or incremental collection, periodic collection is required to obtain changed data, which results in most of the data collected every day being duplicate data.
[0011] The statistical results in Table 1 are from the data collected by the operation center with dozens of medical institutions. The statistics are for all currently valid tasks and the status of the table collection tasks.
[0012]
[0013] About 99.56% of the collection tasks have a data volume of less than 500,000 items, and the proportion of tasks with a data volume of more than 1 million items is only about 0.33%.
[0014]
[0015] Based on Table 2, it can be seen that about 96.45% adopt the full coverage collection method, and incremental collection accounts for about 3.55%.
[0016] As more and more collection nodes are connected, the amount of data collected by edge collection devices in medical institutions will gradually increase every day, and will face the following bottlenecks.
[0017] Central bandwidth is tight: Since the collection time ranges of most collection nodes overlap, as the scale of collected data increases, the bandwidth resources from edge collection devices of medical institutions to data centers will inevitably become increasingly tight.
[0018] Insufficient computing resources: Since the current processing of incremental data in the warehouse is done by the SQL JOIN method of the central data warehouse, as the scale of collected data increases, the computing resources of the central data warehouse will become increasingly scarce. Although the problem of insufficient computing resources can be solved by expanding the data warehouse, it still requires an increase in hardware costs.
[0019] In addition to the above two bottlenecks, there are also problems such as the growth of data cache required by the collection center and the long time required for the entire file encryption transmission process. Summary of the invention
[0020] The purpose of the present invention is to provide a medical data deduplication method and transmission method based on edge computing, so as to reduce the amount of medical data transmitted and processed by data deduplication, improve the efficiency of data transmission and processing, and reduce costs.
[0021] To achieve the above object, the present invention provides the following solution.
[0022] The present invention provides a medical data deduplication method based on edge computing, and the deduplication method comprises the following steps.
[0023] Acquire multiple medical data currently collected by the edge node device; calculate the hash value of each medical data currently collected; use a first hash value filter to determine the medical data newly added in the current collection based on the hash value of each medical data currently collected; the first hash value filter is generated based on the hash value of each medical data obtained in the previous collection; use a second hash value filter to determine the medical data deleted in the current collection based on the hash value of each medical data obtained in the previous collection; the second hash value filter is generated based on the hash value of each medical data obtained in the current collection; use the medical data newly added in the current collection and the medical data deleted in the current collection as deduplicated medical data.
[0024] Optionally, based on the hash value of each medical data obtained in the current collection, a first hash value filter is used to determine the medical data newly added in the current collection, specifically including: determining whether the hash value of the medical data obtained in the current collection exists in the first hash value filter to obtain a first judgment result; if the first judgment result indicates yes, determining that the medical data obtained in the current collection is not the medical data newly added in the current collection; if the first judgment result indicates no, determining that the medical data obtained in the current collection is the medical data newly added in the current collection.
[0025] Optionally, based on the hash value of each medical data obtained in the previous collection, a second hash value filter is used to determine the medical data deleted in the current collection, specifically including: determining whether the hash value of the medical data obtained in the previous collection exists in the second hash value filter to obtain a second judgment result; if the second judgment result indicates yes, determining that the medical data obtained in the previous collection is not the medical data deleted in the current collection; if the second judgment result indicates no, determining that the medical data obtained in the previous collection is the medical data deleted in the current collection.
[0026] Optionally, calculating the hash value of each medical data obtained in the current collection also includes: determining whether the current collection is the first collection, and obtaining a third judgment result; if the third judgment result is yes, determining that all medical data obtained in the current collection are medical data newly added in the current collection; if the third judgment result is no, executing the step of calculating the hash value of each medical data obtained in the current collection.
[0027] Optionally, the first hash value filter is generated by: determining whether the size of the medical data collected last time is less than a data volume threshold to obtain a fourth judgment result; if the fourth judgment result indicates yes, inputting the hash value of each medical data obtained in the last collection into the HashSet filter to generate the first hash value filter; if the fourth judgment result indicates no, inputting the hash value of each medical data obtained in the last collection into the BloomFilter filter to generate the first hash value filter.
[0028] A medical data deduplication system based on edge computing, the deduplication system is applied to the above-mentioned deduplication method, and the deduplication system includes: a medical data acquisition module, used to obtain multiple medical data currently acquired by an edge node device; a hash value calculation module, used to calculate the hash value of each medical data currently acquired; a new data determination module, used to determine the medical data newly acquired in the current acquisition by using a first hash value filter based on the hash value of each medical data currently acquired; the first hash value filter is generated based on the hash value of each medical data acquired in the previous acquisition; a deleted data determination module, used to determine the medical data deleted in the current acquisition by using a second hash value filter based on the hash value of each medical data acquired in the previous acquisition; the second hash value filter is generated based on the hash value of each medical data acquired in the current acquisition; a deduplicated medical data acquisition module, used to use the medical data newly acquired in the current acquisition and the medical data deleted in the current acquisition as the deduplicated medical data.
[0029] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned deduplication method when executing the computer program.
[0030] A computer-readable storage medium stores a computer program, which implements the above-mentioned deduplication method when executed by a processor.
[0031] A medical data transmission method based on edge computing, the transmission method comprising the following steps.
[0032] The above-mentioned deduplication method is used to determine the deduplicated medical data; and the deduplicated medical data is packaged and transmitted.
[0033] A medical data transmission system based on edge computing, the transmission system comprising: a data deduplication module, used to adopt the above-mentioned deduplication method to determine the deduplicated medical data; a transmission module, used to package and transmit the deduplicated medical data.
[0034] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0035] The embodiment of the present invention provides a medical data deduplication method and transmission method based on edge computing, and the deduplication method includes the following steps: obtaining medical data currently collected by the edge node device; calculating the hash value of each medical data currently collected; using a first hash value filter to determine the newly added medical data in the current collection according to the hash value of each medical data currently collected; the first hash value filter is generated based on the hash value of each medical data collected in the previous collection; using a second hash value filter to determine the medical data deleted in the current collection according to the hash value of each medical data collected in the previous collection; the second hash value filter is generated based on the hash value of each medical data collected in the current collection; and using the newly added medical data in the current collection and the medical data deleted in the current collection as the deduplicated medical data. The embodiment of the present invention uses hash value calculation and filtering to achieve medical data deduplication, and only transmits newly added or deleted data, which reduces the amount of medical data transmitted and processed, improves the efficiency of data transmission and processing, and reduces costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0037] Figure 1 A flowchart of a medical data deduplication method based on edge computing provided in an embodiment of the present invention.
[0038] Figure 2 A schematic diagram of a medical data deduplication method based on edge computing provided in an embodiment of the present invention.
[0039] Figure 3 A relationship diagram between the write amount and the number of conflicts provided in an embodiment of the present invention.
[0040] Figure 4 A relationship diagram between the write amount and the occupied memory provided in an embodiment of the present invention.
[0041] Figure 5 A relationship diagram between the write amount and the time consumption provided in an embodiment of the present invention.
[0042] Figure 6 A relationship diagram between the amount of writing, memory usage, and time consumption provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0044] The purpose of the present invention is to provide a medical data deduplication method and transmission method based on edge computing, so as to reduce the amount of medical data transmitted and processed by data deduplication, improve the efficiency of data transmission and processing, and reduce costs.
[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0046] Example 1
[0047] Embodiment 1 of the present invention provides a medical data deduplication method based on edge computing, such as Figure 1 As shown, the deduplication method includes the following steps:
[0048] Step 101: Acquire multiple medical data currently collected by the edge node device.
[0049] The embodiment of the present invention adopts a periodic batch collection method, and collects data through the following steps:
[0050] Construct SQL: The SQL builder determines whether to collect all data or collect data within a certain range based on the metadata and number of entries in the table, and constructs the SQL to be executed. For example, the SQL collected based on the time range is: select id, name, age, remark, utime from user where utime > 'xxxx' and utime < 'xxx'.
[0051] Execute SQL: Execute SQL through the JDBC (Java Database Connectivity) driver, use the JDBC API (a set of interfaces in Java for connecting to and operating databases) to connect to the database and execute SQL statements.
[0052] Cache data: Write the results of SQL execution to a text file on the local disk.
[0053] Step 102, calculating the hash value of each medical data obtained in the current collection.
[0054] Generate a Hash value for the medical data collected in step 101:
[0055] Generate Hash value: Traverse the cached data (that is, the data saved in the text file on the local disk), and generate the corresponding Hash value for each data using the MD5 (Message-Digest Algorithm 5) algorithm.
[0056] Save the hash value: Write the generated hash value into a separate file, and concatenate the hash value into the data file as a data field hash_id, as shown in Table 3.
[0057]
[0058] Step 103, according to the hash value of each medical data obtained in the current collection, a first hash value filter is used to determine the medical data newly added in the current collection; the first hash value filter is generated based on the hash value of each medical data obtained in the previous collection.
[0059] The first Hash value filter in the embodiment of the present invention is generated by inputting a file of the Hash value of each medical data obtained in the previous collection into the filter Filter1.
[0060] The embodiment of the present invention traverses the Hash value of each medical data obtained in the current collection, and determines whether it is in the first Hash value filter. If it is in the first Hash value filter, it indicates that it is duplicate data and is filtered out. If it is not in the first Hash value filter, it indicates that it is new data and is written into the file.
[0061] The filter Filter1 in the embodiment of the present invention is a HashSet filter or a BloomFilter filter. Specifically, the first hash value filter in the embodiment of the present invention is generated in the following manner:
[0062] It is determined whether the size of the medical data collected last time is less than the data volume threshold to obtain a fourth determination result.
[0063] If the fourth judgment result indicates yes, the hash value of each medical data obtained in the previous collection is input into the HashSet filter to generate the first hash value filter.
[0064] If the fourth judgment result indicates no, the hash value of each medical data obtained in the previous collection is input into the BloomFilter filter to generate the first hash value filter.
[0065] Step 104, according to the hash value of each medical data obtained in the previous collection, a second hash value filter is used to determine the medical data to be deleted in the current collection; the second hash value filter is generated based on the hash value of each medical data obtained in the current collection.
[0066] The second Hash value filter in the embodiment of the present invention is generated by writing the Hash value file of the medical data currently collected into the filter Filter2.
[0067] Traverse the Hash value of the medical data collected this time to determine whether it is in the second Hash value filter. If it is, it means that the data has not been changed. If not, it means that the data has been deleted and written to the file.
[0068] The filter Filter2 in the embodiment of the present invention is a HashSet filter or a BloomFilter filter. Further, the second hash value filter in the embodiment of the present invention is generated as follows:
[0069] Determine whether the size of the medical data currently collected is less than the data volume threshold to obtain a fifth judgment result.
[0070] If the fifth judgment result indicates yes, the hash value of each medical data obtained in the current collection is input into the HashSet filter to generate the second hash value filter.
[0071] If the fifth judgment result indicates no, the hash value of each medical data obtained in the current collection is input into the BloomFilter filter to generate the second hash value filter.
[0072] Exemplarily, the medical data obtained in the previous collection and its hash value are shown in Table 4, the medical data obtained in the current collection and its hash value are shown in Table 5, the changes between the current collection and the previous collection are shown in Table 6, and the newly added medical data in the current collection and the medical data deleted in the current collection are shown in Table 7.
[0073]
[0074]
[0075]
[0076]
[0077] In the embodiment of the present invention, the medical data collection and deduplication method based on edge computing is based on the basic principle of hashing each piece of data content, using the uniqueness of the hash value as the basis for whether the data has changed, and then combining and using the HashSet and BloomFilter technical features, as follows:
[0078] Tasks with less than 3 million data items (configuration supported): The HashSet solution is used, covering more than 99% of collection tasks.
[0079] For tasks with more than 3 million data items (configuration supported), the BloomFilter solution is used to cover collection tasks with less than 1% of the data volume.
[0080] Tasks to be covered: Historical tasks collected once do not need to be filtered. Only periodically executed tasks need to be filtered (time range collection - the latest 3 partitions, ID range collection - the latest 1 partition, full table collection - all need to be filtered).
[0081] Step 105: The medical data newly added in the current collection and the medical data deleted in the current collection are used as the deduplicated medical data.
[0082] The newly added medical data in the current collection and the medical data deleted in the current collection are encrypted and compressed, and the files are transmitted to the data center, and the newly added medical data in the current collection is written into the data table.
[0083] The medical data collected and deleted this time is deleted from the corresponding data table using hash_id as the filtering condition.
[0084] As a preferred embodiment, Figure 2 As shown, before generating the hash value, that is, before step 102 calculates the hash value of each medical data currently acquired, it also includes:
[0085] It is determined whether the current collection is the first collection, and a third determination result is obtained.
[0086] If the third judgment result is yes, it is determined that all the medical data obtained in the current collection are the medical data newly added in the current collection.
[0087] If the third judgment result is no, the step of calculating the hash value of each medical data obtained in the current collection is executed.
[0088] Example 2
[0089] An embodiment of the present invention provides a medical data deduplication system based on edge computing, the deduplication system is applied to the above-mentioned deduplication method, and the deduplication system includes:
[0090] A medical data collection module, used to obtain multiple medical data currently collected by the edge node device;
[0091] A hash value calculation module is used to calculate the hash value of each medical data collected in the current collection;
[0092] A newly added data determination module, configured to determine the newly added medical data in the current collection according to the hash value of each medical data obtained in the current collection, using a first hash value filter; the first hash value filter is generated based on the hash value of each medical data obtained in the previous collection;
[0093] A deletion data determination module, used to determine the medical data to be deleted in the current collection according to the hash value of each medical data obtained in the previous collection, using a second hash value filter; the second hash value filter is generated based on the hash value of each medical data obtained in the current collection;
[0094] The deduplicated medical data acquisition module is used to use the medical data newly added in the current collection and the medical data deleted in the current collection as the deduplicated medical data.
[0095] Example 3
[0096] Embodiment 3 of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned deduplication method when executing the computer program.
[0097] Example 4
[0098] Embodiment 4 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned deduplication method is implemented.
[0099] Example 5
[0100] Embodiment 5 of the present invention provides a medical data transmission method based on edge computing, and the transmission method comprises the following steps:
[0101] The above-mentioned deduplication method is used to determine the deduplicated medical data.
[0102] Package and transmit the deduplicated medical data.
[0103] Example 6
[0104] Embodiment 6 of the present invention provides a medical data transmission system based on edge computing, the transmission system comprising:
[0105] The data deduplication module is used to adopt the above-mentioned deduplication method to determine the deduplicated medical data.
[0106] The transmission module is used to package and transmit the deduplicated medical data.
[0107] In order to illustrate the technical effect of the technical solution provided by the embodiment of the present invention, the embodiment of the present invention also carried out the following tests.
[0108] The following is a performance test of generating hash values for strings using the MD5 algorithm. The results are shown in Table 8.
[0109]
[0110] The space occupied by the Hash value generated by the string is tested, and the test results of the Hash value occupying the disk space are shown in Table 9.
[0111]
[0112] The BloomFilter filter test was conducted. When the expected number of writes (expectedInsertions) was 10 million and the conflict rate (fpp) was constant at 0.00000001, the test data obtained under different write data amounts were shown in Table 10.
[0113]
[0114] The relationship between the number of writes and the number of conflicts is as follows: Figure 3 As shown in the figure, the relationship between the number of writes and the memory occupied is as follows: Figure 4 As shown in the figure, the relationship between the number of writes and the time consumption is as follows: Figure 5 As shown in the figure, the time consumption includes the time for writing and judging whether there is a conflict. It can be seen that when expectedInsertions and fpp remain unchanged, in the process of writing data from 10w to 1000w: the conflict amount is always 0. In fact, after testing a lot of data, the probability of conflict is very low, which basically meets the set fpp of 1 in 10 million; the memory usage is always 45.7MB, which is very low; writing 1000w data and judging whether it exists takes less than 30 seconds, and the writing and judgment efficiency is high.
[0115] Perform HashSet filter test. HashSet is implemented based on HashMap (hash table). The operation is very simple, more like a "packaging" of HashMap, and only the key of HashMap is used to implement various features.
[0116] In HashSet, basic operations are implemented by HashMap at the bottom, because HashSet uses HashMap to store data at the bottom. When adding an element to HashSet, first calculate the Hashcode value of the element, then use (Hashcode of the element) % (size of the HashMap set) + 1 to calculate the storage position of the element. If the position is empty, add the element; if it is not empty, use the equals method to compare whether the elements are equal. If they are equal, do not add them, otherwise find an empty position to add them. The test data is shown in Table 11.
[0117]
[0118] The relationship between the amount of writing and the memory occupied and time consumed, such as Figure 6 As shown in the figure, the time consumption includes the time of writing and judging whether it exists. It can be seen that as the total amount of writing increases from 10w to 1000w: when the maximum is 1000w, the total time consumption of writing and judging whether it exists is 3 seconds, which is extremely high performance; the memory occupied increases linearly with the increase of the writing amount, when the writing amount is 100w, the memory occupied is 137.7MB, and when the writing amount is 1000w, the memory occupied is 1300MB.
[0119] From the above BloomFilter and HashSet test results comparison summary:
[0120] Performance: When writing the same amount of data, BloomFilter takes more than 10 times as long as HashSet, but overall BloomFilter's performance is also good.
[0121] Memory: When the amount of data written is the same, the memory occupied by HashSet increases with the increase in the amount of data written. When 10 million data are written, the memory occupied exceeds 1.2 GB, while BloomFilter is stable at 45.7 MB.
[0122] Accuracy: Although there was no misjudgment in the above BloomFilter test data, there is still a possibility of misjudgment (one or two misjudgments occurred in the previous test process), and it cannot be guaranteed to be 100% correct, while HashSet is 100% correct.
[0123] Therefore, in the case of massive data, especially when the amount of data written reaches tens of millions, the memory advantage of BloomFilter becomes more obvious, and HashSet is more suitable for writing data with hash values below 3 million. BloomFilter has the probability of misjudgment, and a compensation mechanism is needed to ensure the final consistency of the data.
[0124] The embodiment of the present invention uses two filters to remove duplicates based on hash values, which has the following advantages.
[0125] Small memory usage: About 99% of the tasks collect less than 1 million data items. Using the HashSet filter, a Hash value of a task with 1 million data items occupies about 137.7MB of memory. Based on 5 concurrent tasks, the memory usage is about 688.5MB.
[0126] Occupies less disk space: 1 million hash values occupy 32MB of disk space, and 1 billion hash values occupy about 32GB of disk space.
[0127] High efficiency: It takes about 200 milliseconds to write and judge 1 million Hash values using the HashSet filter; it takes about 13 seconds to write and judge 5 million Hash values using the BloomFilter filter.
[0128] Security: The edge collection device of the medical institution only needs to store the hash value of the last collected data, without storing plain text data.
[0129] In summary, the implementation of the embodiments of the present invention has the following beneficial effects:
[0130] 1. Greatly reduce the amount of data transmitted to the center, estimated to be reduced by more than 80%.
[0131] 2. Greatly reduces the time for central data storage and saves the computing resources of the central data warehouse.
[0132] 3. It is estimated that the central cache disk is reduced by 80%.
[0133] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0134] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A medical data deduplication method based on edge computing, characterized in that: The deduplication method comprises the following steps: Obtain multiple medical data currently collected by the edge node device; Calculate the hash value of each medical data obtained in the current collection; According to the hash value of each medical data obtained in the current collection, a first hash value filter is used to determine the medical data newly added in the current collection; the first hash value filter is generated based on the hash value of each medical data obtained in the previous collection; According to the hash value of each medical data obtained in the previous collection, a second hash value filter is used to determine the medical data to be deleted in the current collection; The second hash value filter is generated based on the hash value of each medical data obtained in the current collection; The newly added medical data in the current collection and the deleted medical data in the current collection are used as the deduplicated medical data; The first hash filter is generated as follows: Determine whether the size of the medical data collected last time is less than a data volume threshold, and obtain a fourth determination result; If the fourth judgment result indicates yes, the hash value of each medical data obtained in the previous collection is input into the HashSet filter to generate the first hash value filter; If the fourth judgment result indicates no, the hash value of each medical data obtained in the previous collection is input into the BloomFilter filter to generate the first hash value filter; The second hash filter is generated as follows: Determine whether the size of the medical data currently collected is less than a data volume threshold, and obtain a fifth determination result; If the fifth judgment result indicates yes, the hash value of each medical data obtained in the current collection is input into the HashSet filter to generate the second hash value filter; If the fifth judgment result indicates no, the hash value of each medical data obtained in the current collection is input into the BloomFilter filter to generate the second hash value filter.
2. The medical data deduplication method based on edge computing according to claim 1 is characterized in that: According to the hash value of each medical data obtained in the current collection, the first hash value filter is used to determine the medical data newly added in the current collection, specifically including: Determine whether the hash value of the medical data currently collected exists in the first hash value filter to obtain a first determination result; If the first judgment result indicates yes, it is determined that the medical data obtained in the current collection is not the medical data newly added in the current collection; If the first judgment result indicates no, it is determined that the medical data obtained in the current collection is the medical data newly added in the current collection.
3. The medical data deduplication method based on edge computing according to claim 1 is characterized in that: According to the hash value of each medical data obtained in the previous collection, the second hash value filter is used to determine the medical data to be deleted in the current collection, specifically including: Determine whether the hash value of the medical data acquired in the previous collection exists in the second hash value filter to obtain a second determination result; If the second judgment result indicates yes, it is determined that the medical data acquired in the previous collection is not the medical data deleted in the current collection; If the second judgment result indicates no, it is determined that the medical data obtained in the previous collection is the medical data deleted in the current collection.
4. The medical data deduplication method based on edge computing according to claim 1 is characterized in that: Calculate the hash value of each medical data collected in the current collection, which also includes: Determine whether the current collection is the first collection, and obtain a third determination result; If the third judgment result is yes, it is determined that all medical data acquired in the current collection are medical data newly added in the current collection; If the third judgment result is no, the step of calculating the hash value of each medical data obtained in the current collection is executed.
5. A medical data deduplication system based on edge computing, characterized in that: The deduplication system is applied to the deduplication method according to any one of claims 1 to 4, and the deduplication system comprises: A medical data collection module, used to obtain multiple medical data currently collected by the edge node device; A hash value calculation module is used to calculate the hash value of each medical data collected in the current collection; A newly added data determination module, configured to determine the newly added medical data in the current collection according to the hash value of each medical data obtained in the current collection, using a first hash value filter; the first hash value filter is generated based on the hash value of each medical data obtained in the previous collection; A deletion data determination module, used to determine the medical data to be deleted in the current collection according to the hash value of each medical data obtained in the previous collection, using a second hash value filter; the second hash value filter is generated based on the hash value of each medical data obtained in the current collection; The deduplicated medical data acquisition module is used to use the medical data newly added in the current collection and the medical data deleted in the current collection as the deduplicated medical data.
6. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the deduplication method according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the deduplication method described in any one of claims 1 to 4 is implemented.
8. A medical data transmission method based on edge computing, characterized in that: The transmission method comprises the following steps: Using the deduplication method described in any one of claims 1 to 4 to determine the deduplicated medical data; Package and transmit the deduplicated medical data.
9. A medical data transmission system based on edge computing, characterized in that: The transmission system comprises: A data deduplication module, used to determine the deduplicated medical data using the deduplication method described in any one of claims 1 to 4; The transmission module is used to package and transmit the deduplicated medical data.
Citation Information
Cited By
Cross-system idempotent synchronization and difference repair method for medical consumable event data
CN123030685A
