Block storage optimization method, system and application based on pathological slides
By optimizing the block storage of pathological slides, the problems of uneven image quality and low storage efficiency are solved, clearer images and more efficient diagnosis are achieved, and the accuracy and efficiency of pathological diagnosis are improved.
Patent Information
- Application Number
- CN202410987327.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-23
AI Technical Summary
When the existing technology processes pathological slides with complex structures, the image quality is uneven, resulting in insufficient clarity in some areas, increasing storage space requirements and difficulty in diagnosis, and reducing diagnostic efficiency.
A block storage optimization method based on pathological slides is adopted. By establishing a tile coordinate system, multiple patient information areas on the slide are scanned and stored in blocks to reduce scanning of blank areas. An adaptive compression algorithm and distributed processing architecture are adopted. , supports multiple file formats, and implements data backup and disaster recovery plans.
It significantly improves image quality and storage efficiency, simplifies the diagnostic process, improves the accuracy and efficiency of pathological diagnosis, and expands the scope of application.
Smart Images

Figure CN118522399B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital pathology, and in particular to a block storage optimization method and system based on pathology slides and applications thereof. Background Art
[0002] With the advancement of medical technology, digital slide scanning has become an important tool in pathological research and clinical diagnosis. Digital slides are not only easy to store for a long time, avoiding the problem of information fading due to the long time of traditional slides, but also enable remote consultation and data sharing, greatly improving the efficiency and accuracy of pathological diagnosis.
[0003] Traditional slide digitization methods usually involve scanning the slide line by line or area by area, and then merging the acquired images into a large image file for storage. However, the existing technology has obvious defects when processing slides with complex structures. Specifically, when the slide contains multiple different areas (such as Figure 1 As shown in the figure, especially when these areas have physical height differences, the existing merging technology often cannot accurately reflect the actual height of each area, resulting in uneven quality of the scanned image.
[0004] For example, in Figure 2 As can be seen in the figure, due to the ups and downs of patient information at different positions on the slide, if the existing technology is used for scanning, the information on the far left may appear clear due to its lower height, while the information on the far right may appear blurry due to its higher height. In addition, this method will also scan the blank area without patient information, which not only increases the demand for storage space, but also requires doctors to spend extra time to screen effective information during the diagnosis process, reducing work efficiency.
[0005] It can be seen that the existing technology has the following problems:
[0006] 1. Uneven image quality: Due to the uneven surface of the slide, some areas in the scan results are not clear enough, affecting the accuracy of diagnosis.
[0007] 2. Low storage efficiency: Invalid blank areas take up a lot of storage space and are not conducive to effective data management.
[0008] 3. Reduced diagnostic efficiency: Doctors need to filter useful information from a large amount of image data, which increases their workload.
[0009] Therefore, there is an urgent need to develop a new slide scanning digitization method to solve the above problems, improve image quality and storage efficiency, and simplify the diagnostic process. Summary of the invention
[0010] The embodiments of the present invention provide a pathology slide-based block storage optimization method, system and application thereof, which aim to solve the problems of uneven image quality, low storage efficiency, reduced diagnostic efficiency and the like existing in the current technology.
[0011] The core technology of the present invention is to innovate the scanning of multiple patient information areas in blocks when there are multiple patient information on a glass slide, and store them in the same file, thereby reducing the time and storage space for scanning blank areas, providing a scanning optimization solution for scanning single samples one by one, making the image clearer, and improving the application range of the product.
[0012] In a first aspect, the present invention provides a block storage optimization method based on pathology slides, the method comprising the following steps:
[0013] S00, initialize storage parameters:
[0014] Before starting to store, calculate the number of images corresponding to the width and height of the entire slide sample area, the pixel size of the original layer, and the pyramid layer structure;
[0015] For slides containing multiple sample areas, a tile coordinate system and corresponding coordinate positions are established based on the positions of each area to prepare for subsequent block scanning;
[0016] S10. Create slide storage file:
[0017] Pre-compress a blank image of the tile size, then replace it and store it in all pyramid layer structures to build the initial slide storage file;
[0018] S20, block scanning and data replacement:
[0019] After entering the scanning stage, the samples on the slide are scanned one by one;
[0020] The data below the critical layer of each sample is directly replaced with the blank data at the corresponding position in the file after tile compression; the data above the critical layer is first downsampled and temporarily stored in the memory, and then processed uniformly after all samples are scanned;
[0021] S30, Final data integration:
[0022] When all samples have been scanned, the data above the critical layer is consistent with the overall scan data. At this time, it is compressed to replace the blank data in the storage file, and the file offset is updated to complete the entire processing flow.
[0023] Furthermore, in step S20, after entering the scanning phase, it is continuously determined whether all sample areas have been processed;
[0024] If yes, execute step S30; if not, the data below the critical layer of each sample is tile compressed and directly replaces the blank data in the corresponding position in the file; the data above the critical layer is first downsampled and temporarily stored in the memory, and then processed uniformly after all samples are scanned.
[0025] Furthermore, the file formats of the slide storage files include SVS, TIFF, and DCM.
[0026] Furthermore, the critical layer is defined as an image level corresponding to a tile size when a single camera image is downsampled, where data below the critical layer can be processed and stored in real time, while data above the critical layer is compressed and stored after being fully scanned.
[0027] Furthermore, in step S20, an adaptive compression algorithm is used to adopt a higher compression ratio for blank areas or areas with low information density.
[0028] Furthermore, a distributed processing architecture is used to store and process the slide image data.
[0029] Furthermore, implement regular data backup strategies and develop a disaster recovery plan, including data recovery points and recovery time objectives.
[0030] In a second aspect, the present invention provides a block storage optimization system based on pathology slides, comprising:
[0031] Initialize the storage module. Before starting storage, calculate the number of images corresponding to the width and height of the entire slide sample area, the pixel size of the original layer, and the pyramid layer structure;
[0032] For slides containing multiple sample areas, a tile coordinate system and corresponding coordinate positions are established based on the positions of each area to prepare for subsequent block scanning;
[0033] Create a slide storage file module, pre-compress a blank image of tile size, then replace and store it in all pyramid layer structures to build the initial slide storage file;
[0034] The block scanning and data replacement module scans the samples on the slide one by one after entering the scanning stage;
[0035] The data below the critical layer of each sample is directly replaced with the blank data at the corresponding position in the file after tile compression; the data above the critical layer is first downsampled and temporarily stored in the memory, and then processed uniformly after all samples are scanned;
[0036] Data integration module: when all samples are scanned, the data above the critical layer is consistent with the overall scan data, and then it is compressed, the blank data in the storage file is replaced, and the file offset is updated to complete the entire processing flow;
[0037] Among them, the critical layer is defined as an image level corresponding to a tile size when a single camera image is downsampled, where the data below the critical layer can be processed and stored in real time, while the data above the critical layer is compressed and stored after being fully scanned.
[0038] In a third aspect, the present invention provides an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the above-mentioned pathology slide-based block storage optimization method.
[0039] In a fourth aspect, the present invention provides a readable storage medium storing a computer program, wherein the computer program includes a program code for controlling a process to execute the process, wherein the process includes the above-mentioned pathology slide-based block storage optimization method.
[0040] The main contributions and innovations of the present invention are as follows:
[0041] 1. Block scanning and storage optimization: Innovatively realizes the separate block scanning and storage of multiple patient information areas on a glass slide, avoiding the waste of blank areas caused by indiscriminate scanning of the entire glass slide in the traditional method, and significantly improving storage efficiency and scanning speed.
[0042] 2. Introduction of the critical layer concept: The concept of the critical layer is defined, and the image level is divided into two parts: below the critical layer and above the critical layer. The former can be processed and stored immediately, while the latter is processed uniformly after the scanning is completed, effectively balancing the relationship between storage space and processing speed.
[0043] 3. Application of adaptive compression algorithm: During the storage process, an adaptive compression algorithm with a higher compression ratio is used for blank areas or areas with low information density, which further saves storage space while ensuring the quality of key image information.
[0044] 4. Distributed processing architecture: Distributed processing architecture is used to store and process slide image data, making full use of the resources of the cloud computing platform to achieve rapid access and processing of massive data. At the same time, load balancing reduces the pressure on a single server and enhances the stability and scalability of the system.
[0045] 5. Data backup and disaster recovery: We implemented regular data backup strategies and developed detailed disaster recovery plans, including data recovery points and recovery time objectives, to effectively ensure data security and the continuous operation of the system.
[0046] 6. File format compatibility: Supports multiple file formats, such as SVS, TIFF, DCM, etc., which enhances the compatibility and interoperability of the system and facilitates integration with existing medical information systems.
[0047] 7. Improve diagnostic efficiency: By optimizing image quality, the image becomes clearer, which improves the accuracy and efficiency of pathological diagnosis and also expands the application scope of the product.
[0048] In summary, the present invention not only solves the problems existing in the prior art such as uneven image quality, low storage efficiency, and reduced diagnostic efficiency, but also significantly improves the storage, processing, and application efficiency of pathological slide images through a series of innovative technical means. It has important practical value and broad application prospects.
[0049] The details of one or more embodiments of the invention are set forth in the following drawings and description so that other features, objects, and advantages of the invention are more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0051] Figure 1 It is a picture of the tissue pathology slide when it is identified according to the patient information area;
[0052] Figure 2 The histopathology slides were not scanned according to the patient information area;
[0053] Figure 3 is a flow chart of a block storage optimization method based on pathology slides according to an embodiment of the present invention;
[0054] Figure 4 It is a scanning result diagram of the prior art;
[0055] Figure 5 is a scanning result diagram according to an embodiment of the present invention;
[0056] Figure 6 4 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0057] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0058] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0059] Usually, there are slides that are divided into two or even multiple areas on the entire slide. Figure 1 As shown. The existing technology is to merge multiple areas on the slide into a large area for positioning. The storage format is that the tiles are stored in order, and no gaps are allowed in the middle, so it is impossible to store them in blocks according to the patient information. However, the patient information on the actual slide is not a flat surface as seen by the naked eye, but has ups and downs. Therefore, the height of the patient information on the leftmost side of the slide is inconsistent with that of the patient information on the rightmost side of the slide. This will cause the final scanned image to be clear in some places and blurred in others, and the blank area in the middle without patient information will also be scanned out, such as Figure 2 As shown, this will also result in a large amount of storage and will not be able to assist the user in making a diagnosis.
[0060] Based on this, the present invention first establishes a position coordinate system according to the sample distribution area, tiles and sample size, scans and splices the blocks below the critical layer and stores the whole image above the critical layer in a compressed manner to solve the problems existing in the prior art.
[0061] Embodiment 1
[0062] The present invention aims to propose a block storage optimization method based on pathological slides, specifically, referring to Figure 3 , the method comprising:
[0063] S00, initializing storage parameters: Before starting storage, calculate the number of images corresponding to the width and height of the entire slide sample area, the original layer pixel size, and the pyramid layer structure. For slides with multiple sample areas, establish a tile coordinate system and corresponding coordinate positions based on the positions of each area to prepare for subsequent block scanning.
[0064] S10. Create a slide storage file: Use any supported file format (such as SVS, TIFF, DCM, etc.) and compression algorithm, pre-compress a blank image of the tile size, and then replace and store it in all pyramid layer structures to build an initial slide storage file.
[0065] Preferably, an efficient compression algorithm tailored to the characteristics of pathology slide images can be used, with the primary goal of minimizing storage space while maintaining the diagnostic value of the image. This algorithm can be implemented through the following key steps:
[0066] 1. Image content analysis
[0067] First, the slide images need to be preprocessed and content analyzed to determine which areas contain important diagnostic information and which areas are blank or low information density areas. This step can be achieved by the following techniques:
[0068] 1.1 Edge detection and texture analysis: Identify edge and texture features in images, which are usually areas containing rich information.
[0069] 1.2 Region segmentation: Use image segmentation techniques, such as deep learning-based semantic segmentation, to divide the image into several parts, each representing a different type of tissue or sample.
[0070] 1.3 Feature extraction: Extract key image features such as color, shape, and pattern for subsequent compression strategy decisions.
[0071] 2. Adaptive compression strategy
[0072] Based on the results of image content analysis, an adaptive compression strategy can be designed to optimize storage space:
[0073] 2.1 Variable compression ratio: For blank or low information density areas, a higher compression ratio can be used because the details in these areas are not critical for diagnostic purposes. For areas containing critical information, a lower compression ratio is used to preserve more details.
[0074] 2.2 Multi-resolution coding: Using pyramid structures or multi-scale analysis, different compression strategies are applied to different levels of image details. For example, for images above the critical layer, a higher degree of downsampling and compression can be used.
[0075] 3. Hybrid Compression Algorithm
[0076] In order to balance compression efficiency and image quality, the advantages of multiple compression algorithms can be combined, such as:
[0077] 3.1 Combination of lossless and lossy compression: For key areas, use lossless compression algorithms to maintain image integrity; for non-key areas, use lossy compression algorithms to save space.
[0078] 3.2 Predictive coding and transform coding: Predictive coding is used to remove redundancy between adjacent pixels, while transform coding (such as discrete cosine transform DCT or wavelet transform) is used to compress the frequency domain representation of the image.
[0079] 4. Implementation Details
[0080] 4.1 Coding Control: Design a coding control mechanism to dynamically adjust compression parameters based on the diagnostic importance of image regions.
[0081] 4.2 Metadata storage: Save metadata about the results of image content analysis so that the partitioning and compression strategy of the original image can be restored when decompressed.
[0082] 4.3 Error concealment technology: Error concealment technology is added to the compression process to prevent obvious visual artifacts at high compression ratios.
[0083] 5. Post-processing and verification
[0084] 5.1 Decoder Design: Develop a decoder that can recover different regions of an image based on metadata while applying appropriate decompression strategies.
[0085] 5.2 Quality Assessment: Objective and subjective quality assessment criteria, such as PSNR (peak signal-to-noise ratio), SSIM (structural similarity index), and physician feedback, are used to verify the performance of the compression algorithm.
[0086] Through the above steps, a compression algorithm that is both efficient and able to maintain diagnostic quality can be designed, which is especially important for processing large-scale pathology slide image databases. This algorithm can significantly reduce storage requirements while maintaining key details of the image, which is very beneficial for image storage and transmission in remote pathology, big data analysis, and cloud computing environments.
[0087] S20, block scanning and data replacement: After entering the scanning stage, the samples on the slide are scanned one by one. The data below the critical layer of each sample is directly replaced with the blank data at the corresponding position in the file after tile compression; the data above the critical layer is first downsampled and temporarily stored in the memory, and then processed uniformly after all samples are scanned.
[0088] The critical layer definition refers to the image level corresponding to the size of a tile when a single camera image is downsampled. Data below this level can be processed and stored in real time, while data above this level must be compressed and stored after being fully scanned.
[0089] S30, final data integration: When all samples are scanned, the data above the critical layer is consistent with the overall scan data. At this time, it is compressed to replace the blank data in the storage file, and the file offset is updated to complete the entire processing flow.
[0090] Preferably, the cloud computing platform and distributed processing architecture can be combined to store and process slide image data, which can significantly improve data accessibility, processing speed and storage efficiency. The following are the specific steps and key technologies to achieve this concept:
[0091] 1. Selection and configuration of cloud storage platform
[0092] 1.1 Choose the right cloud service provider: Choose a cloud service provider such as AWS, Azure, Google Cloud, etc. based on factors such as data security, compliance, cost-effectiveness, and geographical location.
[0093] 1.2 Configure storage services: Use object storage services such as Amazon S3, Azure Blob Storage, or Google Cloud Storage, which provide high availability, durability, and large-scale data storage capabilities.
[0094] 2. Data Sharding and Distributed Storage
[0095] 2.1 Data Sharding: Split large slide image datasets into smaller data blocks, each of which can be stored and processed independently. This can take advantage of the distributed nature of cloud storage to improve data read and write speed and fault tolerance.
[0096] 2.2 Metadata management: Maintain a central metadata storage to record the location, status and associated information of each data block for quick location and retrieval.
[0097] 3. Distributed processing framework
[0098] 3.1 Use distributed computing frameworks: such as Apache Hadoop, Spark, or Flink. These frameworks can process large amounts of data in parallel and achieve efficient task allocation and execution.
[0099] 3.2 Task scheduling and load balancing: ensure the rational allocation of computing resources, avoid single point overload, and improve overall processing efficiency.
[0100] 4. Elastic expansion and automation
[0101] 4.1 Automatic scaling: Set the automatic scaling policy of cloud resources to dynamically adjust computing and storage resources according to data volume and processing requirements to ensure that the system can run efficiently even during peak periods.
[0102] 4.2 Monitoring and Early Warning: Implement a comprehensive monitoring system to track system performance and resource usage in real time and provide timely early warning of potential problems.
[0103] 5. Data security and compliance
[0104] 5.1 Encryption and Authentication: Encrypt and store sensitive data, and implement strict identity authentication and access control policies to ensure data security.
[0105] 5.2 Comply with regulations: Follow data protection regulations such as GDPR and HIPAA to ensure that data processing and storage comply with legal requirements.
[0106] 6. User Interface and Data Access
[0107] 6.1 API Design: Develop a RESTful API or GraphQL interface that allows applications and services to easily access and manipulate slide image data.
[0108] 6.2 User Interface: Create an intuitive user interface to facilitate doctors and researchers to query, analyze and download data.
[0109] 7. Advanced Analytics and Machine Learning
[0110] 7.1 Data processing pipeline: Build a data processing pipeline that integrates image processing, machine learning, and deep learning models to automatically analyze slide images and provide diagnostic assistance.
[0111] 7.2 Real-time analysis: Use stream processing technology to achieve real-time or near real-time data analysis and insight generation.
[0112] 8. Backup and Disaster Recovery
[0113] 8.1 Regular backup: Implement regular data backup strategies to ensure data redundancy and reliability.
[0114] 8.2 Disaster Recovery Plan: Develop a detailed disaster recovery plan, including data recovery points and recovery time objectives, to cope with possible system failures or data loss.
[0115] Through the above steps, a powerful, flexible and scalable cloud storage and distributed processing system can be built to efficiently store, manage and analyze pathology slide image data. This can not only meet the current big data needs, but also easily expand as the amount of data increases, providing a solid foundation for future scientific research and clinical applications.
[0116] In this embodiment, the actual test is as follows Figure 4 and Figure 5 As shown, it can be seen that the same size and the same scanning parameters, such as Figure 4 Using the existing technology, the complete scan and storage takes 126 seconds and the file size is 696.03MB; Figure 5 The method of the present invention was adopted, and the result of block storage optimization was that the scanning time was 85s and the storage file size was 674.76MB. Although the storage size was optimized by less than 20MB, the reason was that the two samples were relatively close, the blank area was small, and the optimization space was small. If the two samples were far apart and there were more blank areas, the optimization space would be larger, and the size of the storage file could be greatly reduced.
[0117] In the present invention, the file offset refers to the distance in bytes from the start position of the file to a specific data or data block when storing data inside the file. The file offset is used in the file system and program to locate and access a specific position in the file.
[0118] Specifically in the context of the present invention, the role of the file offset is to help determine the location of the blank data in the storage file. After scanning the sample area on the slide and compressing the data, the data needs to be inserted into the appropriate location of the storage file, that is, replacing the previously reserved blank data. The file offset indicates the exact location of the blank data in the file, so when inserting new scanned data, the program will use the file offset to locate the correct insertion point.
[0119] In step S30 (final data integration), when all samples are scanned, the data above the critical layer is compressed and the blank data in the storage file needs to be replaced. At this time, the file offset is used to indicate which blank data needs to be replaced by the new compressed data, and the file offset is updated to reflect the changes in the file content to ensure the correctness of the file structure and the continuity of the data.
[0120] In summary, the file offset plays a crucial role in the present invention, ensuring that data can be accurately stored in a predetermined position in the file, thereby maintaining the logical structure of the file and the integrity of the data.
[0121] Embodiment 2
[0122] Based on the same concept, the present invention also proposes a block storage optimization system based on pathology slides, including:
[0123] Initialize the storage module. Before starting storage, calculate the number of images corresponding to the width and height of the entire slide sample area, the pixel size of the original layer, and the pyramid layer structure;
[0124] For slides containing multiple sample areas, a tile coordinate system and corresponding coordinate positions are established based on the positions of each area to prepare for subsequent block scanning;
[0125] Create a slide storage file module, pre-compress a blank image of tile size, then replace and store it in all pyramid layer structures to build the initial slide storage file;
[0126] The block scanning and data replacement module scans the samples on the slide one by one after entering the scanning stage;
[0127] The data below the critical layer of each sample is directly replaced with the blank data at the corresponding position in the file after tile compression; the data above the critical layer is first downsampled and temporarily stored in the memory, and then processed uniformly after all samples are scanned;
[0128] Data integration module: when all samples are scanned, the data above the critical layer is consistent with the overall scan data, and then it is compressed, the blank data in the storage file is replaced, and the file offset is updated to complete the entire processing flow;
[0129] Among them, the critical layer is defined as an image level corresponding to a tile size when a single camera image is downsampled, where the data below the critical layer can be processed and stored in real time, while the data above the critical layer is compressed and stored after being fully scanned.
[0130] Embodiment 3
[0131] This embodiment also provides an electronic device, referring to Figure 6 , comprises a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any of the above method embodiments.
[0132] Specifically, the processor 402 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0133] Among them, the memory 404 may include a large capacity memory 404 for data or instructions. For example, but not limitation, the memory 404 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In appropriate cases, the memory 404 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 404 may be inside or outside the data processing device. In a specific embodiment, the memory 404 is a non-volatile memory. In a specific embodiment, the memory 404 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. In appropriate circumstances, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM may be a fast page mode dynamic random access memory 404 (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0134] The memory 404 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 402 .
[0135] The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any one of the pathology slide-based block storage optimization methods in the above embodiments.
[0136] Optionally, the electronic device may further include a transmission device 406 and an input / output device 408 , wherein the transmission device 406 is connected to the processor 402 , and the input / output device 408 is connected to the processor 402 .
[0137] The transmission device 406 can be used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 406 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0138] Input / output devices 408 are used to input or output information.
[0139] Embodiment 4
[0140] This embodiment also provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute the process. The process includes the block storage optimization method based on pathology slides according to the first embodiment.
[0141] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0142] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.
[0143] Embodiments of the present invention may be implemented by computer software that is executable by a data processor of a mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros may be stored in any device-readable data storage medium, and they include program instructions for performing specific tasks. A computer program product may include one or more computer executable components configured to perform an embodiment when the program is run. One or more computer executable components may be at least one software code or a portion thereof. In addition, at this point, it should be noted that, for example, Figure 3 Any block of the logic flow in the program may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on physical media such as memory chips or storage blocks implemented within the processor, magnetic media such as hard disk or floppy disks, and optical media such as, for example, DVDs and their data variants, CDs, etc. Physical media are non-transitory media.
[0144] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. 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.
[0145] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.
Claims
1. A block storage optimization method based on pathology slides, characterized in that: The following steps are involved: S00, initialize storage parameters: Before starting to store, calculate the number of images corresponding to the width and height of the entire slide sample area, the pixel size of the original layer, and the pyramid layer structure; For slides containing multiple sample areas, a tile coordinate system and corresponding coordinate positions are established based on the positions of each area to prepare for subsequent block scanning; S10. Create slide storage file: Pre-compress a blank image of the tile size, then replace it and store it in all pyramid layer structures to build the initial slide storage file; S20, block scanning and data replacement: After entering the scanning stage, the samples on the slide are scanned one by one; The data below the critical layer of each sample is directly replaced with the blank data at the corresponding position in the file after tile compression; the data above the critical layer is first downsampled and temporarily stored in the memory, and then processed uniformly after all samples are scanned; S30, Final data integration: When all samples have been scanned, the data above the critical layer is consistent with the overall scan data, and then it is compressed to replace the blank data in the storage file, and the file offset is updated to complete the entire processing flow; Among them, the critical layer is defined as an image level corresponding to a tile size when a single camera image is downsampled, where the data below the critical layer can be processed and stored in real time, while the data above the critical layer is compressed and stored after being fully scanned.
2. A block storage optimization method based on pathology slides as claimed in claim 1, characterized in that: In step S20, after entering the scanning phase, it is continuously determined whether all sample areas have been processed; If yes, execute step S30; if not, the data below the critical layer of each sample is tile compressed and directly replaces the blank data in the corresponding position in the file; the data above the critical layer is first downsampled and temporarily stored in the memory, and then processed uniformly after all samples are scanned.
3. A block storage optimization method based on pathology slides as described in claim 1, characterized in that: The file formats of the slide storage files include SVS, TIFF, and DCM.
4. The block storage optimization method based on pathology slides as claimed in claim 1, characterized in that: In step S20, an adaptive compression algorithm is used, and a higher compression ratio is used for blank areas or areas with low information density.
5. The block storage optimization method based on pathology slides as claimed in claim 1, characterized in that: A distributed processing architecture is used to store and process slide image data.
6. A block storage optimization method based on pathology slides as described in any one of claims 1 to 5, characterized in that: Implement a regular data backup strategy and develop a disaster recovery plan, including data recovery points and recovery time objectives.
7. A block storage optimization system based on pathology slides, characterized in that: include: Initialize the storage module. Before starting storage, calculate the number of images corresponding to the width and height of the entire slide sample area, the pixel size of the original layer, and the pyramid layer structure; For slides containing multiple sample areas, a tile coordinate system and corresponding coordinate positions are established based on the positions of each area to prepare for subsequent block scanning; Create a slide storage file module, pre-compress a blank image of tile size, then replace and store it in all pyramid layer structures to build the initial slide storage file; The block scanning and data replacement module scans the samples on the slide one by one after entering the scanning stage; The data below the critical layer of each sample is directly replaced with the blank data at the corresponding position in the file after tile compression; the data above the critical layer is first downsampled and temporarily stored in the memory, and then processed uniformly after all samples are scanned; Data integration module: when all samples are scanned, the data above the critical layer is consistent with the overall scan data, and then it is compressed, the blank data in the storage file is replaced, and the file offset is updated to complete the entire processing flow; Among them, the critical layer is defined as an image level corresponding to a tile size when a single camera image is downsampled, where the data below the critical layer can be processed and stored in real time, while the data above the critical layer is compressed and stored after being fully scanned.
8. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the pathology slide-based block storage optimization method according to any one of claims 1 to 6.
9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, wherein the computer program includes a program code for controlling a process to execute a process, wherein the process includes the pathology slide-based block storage optimization method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Management system based on WSI full-view digital slicing
CN116612862A
Method for Microscopic Image Acquisition Based on Sequential Section
US20190012520A1
