Image data storage method, system, medium and computer equipment

By using extensible object storage server pool and LRU index rules to store and sort DICOM image data in hospitals, the problem of low storage and retrieval efficiency of massive image data is solved, and fast response and efficient storage is achieved.

CN118213045BActive Publication Date: 2025-04-11深圳市卓青科技有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410174263.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-07
Publication Date
2025-04-11
Estimated Expiration
2044-02-07

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively process massive DICOM image data, resulting in low efficiency in image data storage and retrieval, which seriously affects the work efficiency of hospital technical departments and clinical departments.

Method used

Using an extensible object storage server pool as the storage basis, the image data is first stored in a high-speed storage medium corresponding to the object storage server, and the image data is hotly sorted according to the LRU index rules, and the eliminated image data is then stored in the storage unit of the target server in sequence.

Benefits of technology

It realizes rapid response to the call of image data by the hospital's technical department and clinical department, improves the use efficiency of image data, and provides an expandable storage space, which significantly improves the efficiency of image calls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118213045B_ABST
    Figure CN118213045B_ABST
Patent Text Reader

Abstract

The present application proposes an image data storage method, system, medium and computer device. The image data storage method of the present invention includes: obtaining image data and index tags of image data; caching image data to a dynamic storage pool, inserting index tags into a dynamic LRU index pool for sorting; storing image data eliminated from the LRU index pool in a storage unit of a target server in an object storage server pool. This solution uses an expandable basic object storage server pool as the storage basis, and first stores the massive image data acquired by medical institutions in a high-speed storage medium corresponding to the object storage server, so as to achieve a rapid response when the hospital's technical department and clinical department call for image data. At the same time, the image data is sorted by popularity according to the LRU index rule, so that the image data can be retained in the dynamic storage pool for a longer time. The dynamic storage pool also greatly improves the efficiency of image calls.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an image data storage method, system, medium and computer equipment, belonging to the technical field of data storage. Background Art

[0002] The existing hospital DICOM (Digital Imaging and Communications in Medicine) image data is usually stored in a hierarchical manner using a data migration management system. The existing data storage solution retains precious medical image data. However, as imaging examination equipment becomes more and more advanced, the amount of DICOM image data generated by each patient is growing exponentially. A single examination site can have up to tens of thousands of images. Large hospitals generate nearly one million files every day, with image data up to hundreds of GB. Based on the increasing amount of DICOM image data, the time required to access image files in clinical use has gradually increased to 1-2 minutes each time. The delay in accessing images has seriously affected the work efficiency of the hospital's technical department. At the same time, the slow secondary utilization of historical data such as near-line image data has also seriously restricted the diagnostic reference efficiency of the hospital's technical and clinical departments. Therefore, how to reasonably adjust and arrange the existing image data storage methods and improve the efficiency of image data use has a significant impact on the clinical and scientific research fields of medical imaging. Summary of the invention

[0003] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide an image data storage method, system, medium and computer equipment.

[0004] According to an embodiment of the present invention, a first solution is provided: a method for storing image data, comprising the following steps:

[0005] Obtain image data and index tags of the image data; cache the image data to a dynamic storage pool, insert the index tags into a dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool; store image data eliminated from the LRU index pool in a storage unit of a target server in the object storage server pool, and delete the image data in the dynamic storage pool.

[0006] Furthermore, the step of caching the image data to the dynamic storage pool includes: obtaining a callable storage address of the object storage server pool, obtaining a first calling address and an extended interface of the first server based on the callable storage address, the first calling address being used to cache the image data to a first high-speed cache of the first server, the first high-speed cache being a high-speed storage medium of the first server.

[0007] Furthermore, the step of inserting the index tag into the dynamic LRU index pool for sorting includes: inserting the index tag into the header of the first LRU index table, the first LRU index table is the LRU index table with the lowest priority in the dynamic storage pool, the dynamic storage pool includes at least 2 parallel LRU index tables, the multiple LRU index tables are connected through an extension interface, and the multiple LRU index tables are prioritized through the extension interface; monitoring the reading status of the image data in the first LRU index table and calculating the number of reads: if the index tag is read, reinserting the index tag into the header of the first LRU index table; if the index tag is read, reinserting the index tag into the header of the first LRU index table; If the number of times the index tag is read exceeds a first threshold, the index tag is deleted from the first LRU index table and the index tag is inserted into the header of the adjacent advanced second LRU index table through an expansion interface, and the image data is deleted from the first cache and cached in the second cache; if the index tag is read in the second LRU index table or the reading exceeds a second threshold, the adjustment step of the index tag in the first LRU index table is repeated; if the index tag is eliminated in the dynamic LRU index pool, the index tag is deleted from the dynamic LRU index pool and the image data is stored in the storage unit of the target server of the object storage server pool.

[0008] Furthermore, the step of inserting the index tag into the dynamic LRU index pool for sorting includes: sorting the callable object storage servers according to the callable storage address, and the sorting method includes: sorting according to the compatibility between the medical management system of the current image data source and the object storage server, establishing the index table priority sorting rule of the dynamic LRU index pool according to the sorting result, rebuilding the dynamic LRU index pool through the extension interface with the priority sorting rule and obtaining the reconstructed dynamic LRU index pool; caching the image data in the R1 cache of the R1 server, the R1 cache is the cache medium of the R1 server, and the R1 server is the server with the best compatibility with the medical management system of the current image data source; inserting the index tag into the reconstructed dynamic LRU index pool; The R1 index table of the index pool is referenced, wherein the R1 index table is the LRU index table with the highest compatibility level in the rebuilt dynamic LRU index pool, and the reading status of the image data in the R1 index table is monitored. If the index tag is read, the index tag is reinserted into the header of the R1 index table. If the index tag is eliminated from the R1 index table, the index tag is deleted from the R1 index table and inserted into the header of the R2 index table. At the same time, the image data is deleted from the R1 server and cached to the R2 server; the reading status and the number of reads of the image data in the R2 index table are monitored. If the number of times the index tag is read exceeds the R2 threshold, the image data is deleted from the R2 server and cached to the R1 server, and the index tag is deleted from the R2 index table and inserted into the R1 index table.

[0009] Furthermore, the step of eliminating an index tag in the dynamic LRU index pool includes: after the index tag is eliminated in the current LRU index table, deleting the index tag of the current LRU index table and inserting the index tag into the header of the historical LRU index table, and the eliminated index tags in each LRU index table of the dynamic LRU index pool are inserted into the header of the historical LRU index table in chronological order, and the index tag is eliminated from the dynamic LRU index pool if it is eliminated from the historical LRU index table.

[0010] Further, if the index tag is read in the historical LRU index table, the index tag is deleted from the historical LRU index table and inserted into the header of the LRU index table with the highest priority.

[0011] Furthermore, the image data is group image data, and when one image in the group image data is read, the first thresholds of the remaining images are synchronously adjusted, and the degree of synchronous adjustment of the first threshold is proportional to the number of images in the group image data.

[0012] According to an embodiment of the present invention, using the image data storage method in the first embodiment provided by the present invention, a second embodiment is provided:

[0013] An image data storage system, characterized in that it comprises:

[0014] An image server module, used for obtaining image data and index tags of image data;

[0015] A dynamic storage pool module is used to cache image data to the dynamic storage pool and insert index tags into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool;

[0016] The object storage pool module is used to store the image data eliminated from the LRU index pool into the storage unit of the target server in the object storage server pool, and delete the image data in the dynamic storage pool.

[0017] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:

[0018] Obtain image data and index tags of the image data;

[0019] Cache the image data into a dynamic storage pool, and insert the index tag into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool;

[0020] The image data eliminated from the LRU index pool is stored in the storage unit of the target server in the object storage server pool, and the image data in the dynamic storage pool is deleted.

[0021] A computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following steps:

[0022] Obtain image data and index tags of the image data;

[0023] Cache the image data into a dynamic storage pool, and insert the index tag into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool;

[0024] The image data eliminated from the LRU index pool is stored in the storage unit of the target server in the object storage server pool, and the image data in the dynamic storage pool is deleted.

[0025] Compared with the prior art, the technical solution provided by the present application has the following unique beneficial effects: the present solution adopts an expandable basic object storage server pool as the storage basis, and first stores the massive image data acquired by the medical institution in the high-speed storage medium corresponding to the object storage server, so as to achieve a rapid response when the hospital technical department and the clinical department call the image data. At the same time, the image data is sorted by popularity according to the LRU index rule, so that the image data can be retained in the dynamic storage pool for a longer time, and the image data that is finally eliminated is sequentially stored in the storage unit of the target server for data preservation. The expandable object storage server provides expandable storage space for image data, and the expandable dynamic storage pool also greatly improves the efficiency of image calling. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] 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 or the description of the prior art 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 work.

[0027] in:

[0028] Figure 1 is a flow chart of an image data storage method in one embodiment;

[0029] Figure 2 A schematic diagram of a dynamic LRU index pool structure of an image data storage method in one embodiment;

[0030] Figure 3is a structural block diagram of an image data storage device in one embodiment;

[0031] Figure 4 FIG. 4 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of this application.

[0033] Embodiment 1

[0034] The image data storage method involved in this embodiment is applied to an expandable storage system, which includes an image server, a dynamic storage pool and an object storage pool. The image server is used to process image data sent by a medical management system, which includes HIS, PACS, etc. The object storage pool is a server group constructed by a storage server that can be horizontally expanded, and the dynamic storage pool is a high-speed storage medium of the storage server, including SSD, NVME, etc. The image server and the object storage pool are connected through a storage interface that can transmit data asynchronously, providing CIFS / NFS / SCI and other protocol capabilities.

[0035] The technical problem solved by this embodiment is: as imaging examination equipment becomes more and more advanced, the amount of DICOM image data generated by each patient increases exponentially, and a single examination site can have up to tens of thousands of images. Large hospitals generate nearly a million files every day, and the image data is as much as hundreds of GB. Based on the increasing amount of DICOM image data, the time required to access image files in clinical use has gradually increased to 1-2 minutes each time. The delay in accessing images has seriously affected the work efficiency of the hospital's technical department. At the same time, the slow secondary utilization of historical data such as near-line image data has also seriously restricted the diagnostic reference efficiency of the hospital's technical and clinical departments. Therefore, how to reasonably adjust and arrange the existing image data storage methods and improve the efficiency of image data use has a significant impact on the clinical and scientific research fields of medical imaging.

[0036] In order to solve the above technical problems, this embodiment provides an image data storage method, such as Figure 1 As shown, the steps include:

[0037] S101: Acquire image data and index tags of the image data;

[0038] S102: caching the image data into a dynamic storage pool, inserting the index tag into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool;

[0039] S103: storing the image data eliminated from the LRU index pool in the storage unit of the target server in the object storage server pool, and deleting the image data in the dynamic storage pool.

[0040] This solution uses a scalable basic object storage server pool as the storage basis. The massive image data obtained by medical institutions is first stored in the high-speed storage medium corresponding to the object storage server, so as to achieve a rapid response when the hospital's technical and clinical departments call for image data. At the same time, the image data is sorted by popularity according to the LRU index rule to retain the image data in the dynamic storage pool for a longer time. The image data that is eventually eliminated is then sequentially stored in the storage unit of the target server for data preservation. The scalable object storage server provides scalable storage space for image data, and the scalable dynamic storage pool also greatly improves the efficiency of image calls.

[0041] Embodiment 2

[0042] This embodiment specifically discloses a preferred method for storing image data, such as Figure 2 As shown, the following steps are included:

[0043] S201: Acquire image data and index tags of the image data;

[0044] The image data is a DICOM image, and the index tag is a tag corresponding to each image in the image data. In other embodiments, the image data may also be a group of image data, for example, images generated by the same patient, the same part, and the same detection.

[0045] S202: caching the image data into a dynamic storage pool, inserting the index tag into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool;

[0046] Specifically, S2021, obtain the callable storage address of the object storage server pool, and obtain the first calling address and extension interface of the first server based on the callable storage address, wherein the first calling address is used to cache the image data in the first cache of the first server, and the first cache is the high-speed storage medium of the first server.

[0047] S2022: The step of inserting the index tag into the dynamic LRU index pool for sorting includes:

[0048] Inserting the index tag into the header of a first LRU index table, wherein the first LRU index table is the LRU index table with the lowest priority in the dynamic storage pool, wherein the dynamic storage pool includes at least two parallel LRU index tables, wherein the multiple LRU index tables are connected via an extended interface, and the multiple LRU index tables are prioritized via the extended interface;

[0049] Monitor the read status of the image data in the first LRU index table and calculate the number of reads: if the index tag is read, reinsert the index tag into the header of the first LRU index table; if the number of times the index tag is read exceeds a first threshold, delete the index tag from the first LRU index table and insert the index tag into the header of the adjacent and advanced second LRU index table through an extended interface, delete the image data from the first cache and cache the image data into the second cache;

[0050] If the index tag is read in the second LRU index table or the reading exceeds the second threshold, repeating the step of adjusting the index tag in the first LRU index table;

[0051] If the index tag is eliminated in the dynamic LRU index pool, the index tag is deleted from the dynamic LRU index pool and the image data is stored in the storage unit of the target server in the object storage server pool.

[0052] S2023: After the index tag is eliminated in the current LRU index table, the index tag of the current LRU index table is deleted and the index tag is inserted into the header of the historical LRU index table. The index tags eliminated in each LRU index table of the dynamic LRU index pool are inserted into the header of the historical LRU index table in chronological order. The index tags eliminated from the historical LRU index table are eliminated from the dynamic LRU index pool.

[0053] S2024: If the index tag is read in the historical LRU index table, the index tag is deleted from the historical LRU index table and inserted into the header of the LRU index table with the highest priority.

[0054] S203: storing the image data eliminated from the LRU index pool in the storage unit of the target server in the object storage server pool, and deleting the image data in the dynamic storage pool.

[0055] S2031: The method for selecting a storage unit of a target server includes: acquiring a first server as a target server according to a callable storage address, or acquiring a target server according to a callable storage address with the highest compatibility.

[0056] Through the scheme of this embodiment, the image data that is read and read multiple times can be defined as hot spot data, and the hot spot data can be stored in the high-speed storage medium of the target server so that the hot spot data can always maintain the convenience of being quickly read and called, and the image data can be retained in the dynamic storage pool for a longer time. The image data that is eventually eliminated is then sequentially stored in the storage unit of the target server for data preservation. The scalable object storage server provides scalable storage space for image data, and the scalable dynamic storage pool also greatly improves the efficiency of image calling.

[0057] Embodiment 3

[0058] This embodiment specifically discloses a preferred method for storing image data, including the following steps:

[0059] S301: Acquire image data and index tags of the image data;

[0060] The image data is a DICOM image, and the index tag is a tag corresponding to each image in the image data. In other embodiments, the image data may also be a group of image data, for example, images generated by the same patient, the same part, and the same detection.

[0061] S302: caching the image data into a dynamic storage pool, inserting the index tag into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool;

[0062] Specifically, S3021, obtain the callable storage address of the object storage server pool, and obtain the first calling address and extension interface of the first server based on the callable storage address, wherein the first calling address is used to cache the image data in the first cache of the first server, and the first cache is the high-speed storage medium of the first server.

[0063] S3022: The step of inserting the index tag into the dynamic LRU index pool for sorting includes:

[0064] Sorting the callable object storage servers according to the callable storage addresses, the sorting method comprising: sorting according to the compatibility between the medical management system of the current image data source and the object storage server, establishing a priority sorting rule for the index table of the dynamic LRU index pool according to the sorting result, reconstructing the dynamic LRU index pool through the extension interface according to the priority sorting rule and obtaining the reconstructed dynamic LRU index pool;

[0065] Cache the image data in the R1 cache of the R1 server, the R1 cache being a cache medium of the R1 server, the R1 server being the server with the best compatibility with the medical management system of the current image data source;

[0066] Insert the index tag into the header of the R1 index table of the reconstructed dynamic LRU index pool, wherein the R1 index table is the LRU index table with the highest compatibility level in the reconstructed dynamic LRU index pool, monitor the reading status of the image data in the R1 index table, and if the index tag is read, reinsert the index tag into the header of the R1 index table; if the index tag is eliminated from the R1 index table, delete the index tag from the R1 index table and insert the index tag into the header of the R2 index table; at the same time, delete the image data from the R1 server and cache it to the R2 server;

[0067] Monitor the reading status and reading times of the image data in the R2 index table. If the number of times the index tag is read exceeds the R2 threshold, delete the image data from the R2 server and cache it to the R1 server, and delete the index tag from the R2 index table and insert it into the R1 index table.

[0068] S3023: After the index tag is eliminated in the current LRU index table, the index tag of the current LRU index table is deleted and the index tag is inserted into the header of the historical LRU index table. The index tags eliminated in each LRU index table of the dynamic LRU index pool are inserted into the header of the historical LRU index table in chronological order. The index tags eliminated from the historical LRU index table are eliminated from the dynamic LRU index pool.

[0069] S3024: If the index tag is read in the historical LRU index table, the index tag is deleted from the historical LRU index table and inserted into the header of the LRU index table with the highest priority.

[0070] S303: storing the image data eliminated from the LRU index pool in the storage unit of the target server in the object storage server pool, and deleting the image data in the dynamic storage pool.

[0071] S3031: The method for selecting a storage unit of a target server includes: acquiring a first server as a target server according to a callable storage address, or acquiring a target server according to a callable storage address with the highest compatibility.

[0072] Through the scheme of this embodiment, the image data that is read and read multiple times can be defined as hot data, and the hot data can be stored in the high-speed storage medium of the target server, so that the hot data can always maintain the convenience of being quickly read and called, and the image data can be retained in the dynamic storage pool for a longer time. The image data that is finally eliminated is then stored in sequence in the storage unit of the target server for data preservation. The scalable object storage server provides scalable storage space for image data, and the scalable dynamic storage pool also greatly improves the efficiency of image calls. Different from the second embodiment, this embodiment defines the high and low levels of the reconstructed dynamic LRU index pool based on compatibility. This solution improves the data storage stability and transmission efficiency of the overall system from the perspective of compatibility.

[0073] Embodiment 4

[0074] This embodiment provides an image data storage method, comprising the following steps:

[0075] Get image data and image data index tags.

[0076] The image data is cached in a dynamic storage pool, and the index tags are inserted into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool.

[0077] Obtain the callable storage address of the object storage server pool, and obtain the first call address and extension interface of the first server based on the callable storage address. The first call address is used to cache the image data in the first cache of the first server. The first cache is the high-speed storage medium of the first server.

[0078] The steps of inserting index tags into the dynamic LRU index pool for sorting include:

[0079] Insert an index tag into the header of a first LRU index table, wherein the first LRU index table is the LRU index table with the lowest priority in a dynamic storage pool, and the dynamic storage pool includes at least two parallel LRU index tables, wherein the multiple LRU index tables are connected via an extension interface, and the multiple LRU index tables are prioritized via the extension interface; monitor the reading status of the image data in the first LRU index table and calculate the number of reads: if the index tag is read, reinsert the index tag into the header of the first LRU index table; if the number of times the index tag is read exceeds a first threshold, delete the index tag from the first LRU index table and insert the index tag into the header of an adjacent and advanced second LRU index table via the extension interface, delete the image data from the first cache and cache the image data in the second cache; if the index tag is read in the second LRU index table or the reading exceeds a second threshold, repeat the step of adjusting the index tag in the first LRU index table; if the index tag is eliminated in the dynamic LRU index pool, delete the index tag from the dynamic LRU index pool and store the image data in the storage unit of the target server of the object storage server pool.

[0080] Specifically, the image data is group image data, and when one image in the group image data is read, the first thresholds of the remaining images are synchronously adjusted, and the degree of synchronous adjustment of the first threshold is proportional to the number of images in the group image data.

[0081] For example, there are 10 chest X-ray images of the same patient. The 10 image data are marked with index tags as the same group of image data. The index tags of the 10 image data have the same group-level data association. When one image data is read 3 times in the first LRU index table and upgraded to the second LRU index table, the first threshold of the remaining 9 image data in the same group is correspondingly adjusted to 2, that is, the remaining 9 image data are upgraded when they are read 2 times, so as to ensure that the data in the same group is more maintained as hot data and improve the speed of data reading.

[0082] Furthermore, if there are 1,000 chest X-ray images of the same patient, it means that this group of data either uses more advanced equipment, or uses more or more detailed image production, which shows that the hotspot degree of the data is correspondingly increased. Therefore, relative to other groups of image data with smaller image data volumes, the larger the image data volume, the greater the need to retain the hotspot data, and the greater the adjustment degree of its first threshold. For example, the first threshold synchronization adjustment degree of the group image data with a small data volume is reduced by 30%, and the first threshold synchronization adjustment degree of the group image data with a larger data volume is reduced by 50%.

[0083] The image data eliminated from the LRU index pool is stored in the storage unit of the target server in the object storage server pool, and the image data in the dynamic storage pool is deleted.

[0084] Embodiment 5

[0085] This embodiment provides an image data storage system, such as Figure 3 As shown, including:

[0086] The image server module 100 is used to obtain image data and index tags of the image data;

[0087] The dynamic storage pool module 200 is used to cache the image data to the dynamic storage pool and insert the index tag into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is the high-speed storage medium of all target servers in the object storage server pool;

[0088] The object storage pool module 300 is used to store the image data eliminated from the LRU index pool into the storage unit of the target server in the object storage server pool, and delete the image data in the dynamic storage pool.

[0089] This solution uses a scalable basic object storage server pool as the storage basis. The massive image data obtained by medical institutions is first stored in the high-speed storage medium corresponding to the object storage server, so as to achieve a rapid response when the hospital's technical and clinical departments call for image data. At the same time, the image data is sorted by popularity according to the LRU index rule to retain the image data in the dynamic storage pool for a longer time. The image data that is eventually eliminated is then sequentially stored in the storage unit of the target server for data preservation. The scalable object storage server provides scalable storage space for image data, and the scalable dynamic storage pool also greatly improves the efficiency of image calls.

[0090] Embodiment 6

[0091] Figure 4 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a terminal or a server. Figure 4 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the image data storage method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement the image data storage method. Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0092] In one embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:

[0093] Obtain image data and index tags of the image data;

[0094] Cache the image data into a dynamic storage pool, and insert the index tag into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool;

[0095] The image data eliminated from the LRU index pool is stored in the storage unit of the target server in the object storage server pool, and the image data in the dynamic storage pool is deleted.

[0096] In one embodiment, a computer-readable storage medium is provided, storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:

[0097] Obtain image data and index tags of the image data;

[0098] Cache the image data into a dynamic storage pool, and insert the index tag into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool;

[0099] The image data eliminated from the LRU index pool is stored in the storage unit of the target server in the object storage server pool, and the image data in the dynamic storage pool is deleted.

[0100] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate

[0101] SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct RAM bus dynamic RAM (DRDRAM), and RAM bus dynamic RAM (RDRAM), etc.

[0102] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0103] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for storing image data, characterized in that: The steps include: Obtain image data and index tags of the image data; Cache the image data into a dynamic storage pool, and insert the index tag into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool; The step of caching the image data into the dynamic storage pool includes: obtaining a callable storage address of the object storage server pool, obtaining a first call address and an extended interface of the first server according to the callable storage address, wherein the first call address is used to cache the image data into a first high-speed cache of the first server, and the first high-speed cache is a high-speed storage medium of the first server; The step of inserting the index tag into the dynamic LRU index pool for sorting includes: inserting the index tag into the header of the first LRU index table, the first LRU index table is the LRU index table with the lowest priority in the dynamic storage pool, the dynamic storage pool includes at least 2 parallel LRU index tables, the multiple LRU index tables are connected through an extension interface, and the multiple LRU index tables are prioritized through the extension interface; monitoring the reading status of the image data in the first LRU index table and calculating the number of reads: if the index tag is read, reinserting the index tag into the header of the first LRU index table; if the index tag is If the number of reads exceeds the first threshold, the index tag is deleted from the first LRU index table and inserted into the header of the adjacent advanced second LRU index table through the expansion interface, and the image data is deleted from the first cache and cached in the second cache; if the index tag is read in the second LRU index table or the reading exceeds the second threshold, the step of adjusting the index tag in the first LRU index table is repeated; if the index tag is eliminated in the dynamic LRU index pool, the index tag is deleted from the dynamic LRU index pool and the image data is stored in the storage unit of the target server of the object storage server pool; The callable object storage servers are sorted according to the callable storage addresses, and the sorting method includes: sorting according to the compatibility between the medical management system of the current image data source and the object storage server, establishing a priority sorting rule for the index table of the dynamic LRU index pool according to the sorting result, rebuilding the dynamic LRU index pool through the extension interface by using the priority sorting rule and obtaining the reconstructed dynamic LRU index pool; caching the image data in the R1 cache of the R1 server, the R1 cache is the cache medium of the R1 server, and the R1 server is the server with the best compatibility with the medical management system of the current image data source; inserting the index tag into the header of the R1 index table of the reconstructed dynamic LRU index pool, the R Index table 1 is the LRU index table with the highest compatibility level in the rebuilt dynamic LRU index pool. The reading status of the image data in the R1 index table is monitored. If the index tag is read, the index tag is reinserted into the header of the R1 index table. If the index tag is eliminated from the R1 index table, the index tag is deleted from the R1 index table and inserted into the header of the R2 index table. At the same time, the image data is deleted from the R1 server and cached to the R2 server. The reading status and reading times of the image data in the R2 index table are monitored. If the number of times the index tag is read exceeds the R2 threshold, the image data is deleted from the R2 server and cached to the R1 server, and the index tag is deleted from the R2 index table and inserted into the R1 index table. The step of eliminating the index tag in the dynamic LRU index pool includes: after the index tag is eliminated in the current LRU index table, deleting the index tag of the current LRU index table and inserting the index tag into the header of the historical LRU index table, inserting the eliminated index tags in each LRU index table of the dynamic LRU index pool into the header of the historical LRU index table in time sequence, and eliminating the index tag from the historical LRU index table and eliminating it from the dynamic LRU index pool; The image data eliminated from the LRU index pool is stored in the storage unit of the target server in the object storage server pool, and the image data in the dynamic storage pool is deleted.

2. The image data storage method according to claim 1, characterized in that: If the index tag is read in the historical LRU index table, the index tag is deleted from the historical LRU index table and inserted into the header of the LRU index table with the highest priority.

3. The image data storage method according to claim 1, characterized in that: The image data is group image data. When one image in the group image data is read, the first thresholds of the remaining images are synchronously adjusted. The degree of synchronous adjustment of the first threshold is proportional to the number of images in the group image data.

4. An image data storage system, characterized in that: include: An image server module, used for obtaining image data and index tags of image data; A dynamic storage pool module is used to cache image data to the dynamic storage pool and insert index tags into the dynamic LRU index pool for sorting, wherein the dynamic storage pool is a high-speed storage medium of all target servers in the object storage server pool; The step of caching the image data into the dynamic storage pool includes: obtaining a callable storage address of the object storage server pool, obtaining a first call address and an extended interface of the first server according to the callable storage address, wherein the first call address is used to cache the image data into a first high-speed cache of the first server, and the first high-speed cache is a high-speed storage medium of the first server; The step of inserting the index tag into the dynamic LRU index pool for sorting includes: inserting the index tag into the header of the first LRU index table, the first LRU index table is the LRU index table with the lowest priority in the dynamic storage pool, the dynamic storage pool includes at least 2 parallel LRU index tables, the multiple LRU index tables are connected through an extension interface, and the multiple LRU index tables are prioritized through the extension interface; monitoring the reading status of the image data in the first LRU index table and calculating the number of reads: if the index tag is read, reinserting the index tag into the header of the first LRU index table; if the index tag is If the number of reads exceeds the first threshold, the index tag is deleted from the first LRU index table and inserted into the header of the adjacent advanced second LRU index table through the expansion interface, and the image data is deleted from the first cache and cached in the second cache; if the index tag is read in the second LRU index table or the reading exceeds the second threshold, the step of adjusting the index tag in the first LRU index table is repeated; if the index tag is eliminated in the dynamic LRU index pool, the index tag is deleted from the dynamic LRU index pool and the image data is stored in the storage unit of the target server of the object storage server pool; The callable object storage servers are sorted according to the callable storage addresses, and the sorting method includes: sorting according to the compatibility between the medical management system of the current image data source and the object storage server, establishing a priority sorting rule for the index table of the dynamic LRU index pool according to the sorting result, rebuilding the dynamic LRU index pool through the extension interface by using the priority sorting rule and obtaining the reconstructed dynamic LRU index pool; caching the image data in the R1 cache of the R1 server, the R1 cache is the cache medium of the R1 server, and the R1 server is the server with the best compatibility with the medical management system of the current image data source; inserting the index tag into the header of the R1 index table of the reconstructed dynamic LRU index pool, the R Index table 1 is the LRU index table with the highest compatibility level in the rebuilt dynamic LRU index pool. The reading status of the image data in the R1 index table is monitored. If the index tag is read, the index tag is reinserted into the header of the R1 index table. If the index tag is eliminated from the R1 index table, the index tag is deleted from the R1 index table and inserted into the header of the R2 index table. At the same time, the image data is deleted from the R1 server and cached to the R2 server. The reading status and reading times of the image data in the R2 index table are monitored. If the number of times the index tag is read exceeds the R2 threshold, the image data is deleted from the R2 server and cached to the R1 server, and the index tag is deleted from the R2 index table and inserted into the R1 index table. The step of eliminating the index tag in the dynamic LRU index pool includes: after the index tag is eliminated in the current LRU index table, deleting the index tag of the current LRU index table and inserting the index tag into the header of the historical LRU index table, inserting the eliminated index tags in each LRU index table of the dynamic LRU index pool into the header of the historical LRU index table in time sequence, and eliminating the index tag from the historical LRU index table and eliminating it from the dynamic LRU index pool; The object storage pool module is used to store the image data eliminated from the LRU index pool into the storage unit of the target server in the object storage server pool, and delete the image data in the dynamic storage pool.

5. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 3.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method for utilizing network cache server to process files and device for processing cache files

    CN104092670A

  • Method and device for managing cache data

    CN106897030A

  • Picture loading method and device

    CN108197160A

  • Cache control method and device, storage medium and equipment

    CN111309650A