Medical image index construction method, system, terminal and storage medium

By obtaining the storage path of medical images, using text recognition and SimpleITK technology to extract identification numbers and pathological feature data, and building a lightweight index, it solves the problems of complex construction methods and single query methods of existing medical image indexes, and achieves efficient imaging Document sorting and multi-dimensional query.

CN118377922BActive Publication Date: 2024-09-10NORTH CHINA DIGITAL HEALTH TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410823217.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-10
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

The existing medical image index construction method is complex, relies on DICOM service clusters, is costly, and has a single query method, making it impossible to query images based on pathological characteristics.

Method used

By obtaining the storage path of medical images, text recognition technology is used to extract the identification number, the associated images are queried based on the identification number, and SimpleITK image processing technology is used to extract pathological feature data, and the identification number and pathological feature data are converted into structured data and saved in the index center Library to implement lightweight index construction.

Benefits of technology

It realizes rapid sorting and multi-dimensional query of medical image files, improves query efficiency, simplifies structural design, reduces costs, and has broad application prospects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377922B
    Figure CN118377922B
Patent Text Reader

Abstract

The present invention relates to the field of data storage technology, and specifically provides a method, system, terminal and storage medium for indexing medical images, including: obtaining the storage path of the medical image; extracting an identification number from the medical image using text recognition technology; querying related medical images based on the identification number; processing the medical image and related medical images using SimpleITK image processing technology to obtain pathological feature data; converting the identification number, pathological feature data and storage path into structured data and saving the structured data to an index intermediate library. The present invention constructs a lightweight index, realizes the rapid organization of medical image files, and can query through medical information and pathological features in subsequent query processes, thereby improving the query dimension of medical images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data storage, and in particular relates to a method, system, terminal and storage medium for constructing an index of medical images. Background Art

[0002] With the rapid development of medical imaging technology, medical institutions have accumulated a large amount of medical imaging data, such as X-ray, CT, MRI and ECG images, etc. These image files are usually huge in size and stored in different servers in the hospital in different forms based on their respective production systems. Some historical archived images are no longer maintained and lack systematic and unified management.

[0003] Some existing medical image processing technologies respond to image archiving requests and image retrieval requests through a DICOM service cluster; an image archiving server parses image files according to image archiving requests and constructs patient index information, examination index information, sequence index information and file index information corresponding to the image files respectively; imports the patient index information and examination index information into a first database, imports the sequence index information and file index information into a second database, and imports the image files into a third database; an image retrieval server obtains the patient index information and examination index information from the first database, obtains the sequence index information and file index information from the second database, and then obtains the image files from the third database according to the image retrieval request.

[0004] This index construction method is relatively complex and relies on the DICOM service cluster, which is costly. In addition, during the retrieval stage, images can only be queried through patient information or examination information, and the query method is relatively simple. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method, system, terminal and storage medium for constructing an index of medical images to solve the above-mentioned technical problems.

[0006] In a first aspect, the present invention provides a method for constructing an index of medical images, comprising:

[0007] Get the storage path of medical images;

[0008] extracting an identification number from the medical image using text recognition technology;

[0009] querying associated medical images based on the identification number;

[0010] Using SimpleITK image processing technology to process the medical images and related medical images to obtain pathological feature data;

[0011] The identification number, pathological characteristic data and storage path are converted into structured data and the structured data is saved in an index intermediate library.

[0012] In an optional implementation, obtaining the storage path of the medical image includes:

[0013] A recursive traversal tool is constructed using the os.scandir function, and the file format of the medical image is set as the traversal target of the tool;

[0014] Setting storage resources corresponding to an image database as a traversal range of the tool, the image database including a PACS library and an ECG library;

[0015] When the tool scans a medical image, the physical storage path of the current medical image is recorded.

[0016] In an optional embodiment, extracting the identification number from the medical image using text recognition technology includes:

[0017] Using the PaddleOCR model to identify the initial identification number of the current medical image;

[0018] Using the CMD command to sequentially obtain the upper-layer file names of the current medical image, extracting the relevant identification number from the upper-layer file names, and adding the identification number to the initial identification number to obtain the identification number of the current medical image;

[0019] The identification number includes a medical identification number and an image identification number. The medical identification number includes any one or more of the patient ID, the patient outpatient medical number, the patient inpatient medical number, and the hospitalization number. The image identification number includes any one or more of the image number, the examination registration number, the image report number, and the examination record number.

[0020] In an optional implementation, querying the associated medical image based on the identification number includes:

[0021] Save the storage path and identification number of the medical image to the record list;

[0022] The record list is traversed, and identification numbers with the same patient ID and hospitalization number are marked as associated identification numbers.

[0023] In an optional implementation, the medical image and the associated medical image are processed using SimpleITK image processing technology to obtain pathological feature data, including:

[0024] Locating the associated identification number of the current medical image in the record list, and extracting the associated medical image of the current medical image based on the storage path corresponding to the associated identification number;

[0025] Preprocess the current medical images and related medical images, including denoising, image enhancement, geometric correction and artifact removal;

[0026] SimpleITK image processing technology is used to perform image registration on the preprocessed current medical image and related medical images to obtain multimodal pathological feature data.

[0027] In an optional embodiment, converting the identification number, pathological characteristic data and storage path into structured data and saving the structured data to an index intermediate library includes:

[0028] Presetting a quantization rule, wherein the quantization rule includes a quantization value corresponding to a lesion parameter;

[0029] Quantifying the pathological characteristic data using the quantization rule to obtain a pathological characteristic value;

[0030] The identification number and pathological characteristic value are used as search values, and the storage path is used as the return value to construct an index array;

[0031] The index array is stored in the index table of the index intermediate library.

[0032] In a second aspect, the present invention provides a medical image index construction system, comprising:

[0033] A path acquisition module is used to obtain the storage path of medical images;

[0034] A text recognition module, used to extract an identification number from the medical image using text recognition technology;

[0035] An associated query module, used to query associated medical images based on the identification number;

[0036] A feature extraction module, used to process the medical image and related medical images using SimpleITK image processing technology to obtain pathological feature data;

[0037] The index building module is used to convert the identification number, pathological characteristic data and storage path into structured data and save the structured data to the index intermediate library.

[0038] In an optional implementation, the path acquisition module includes:

[0039] A tool construction unit, used to construct a recursive traversal tool using the os.scandir function, and set the file format of the medical image as the traversal target of the tool;

[0040] A range setting unit, used to set the storage resources corresponding to the image database as the traversal range of the tool, the image database including the PACS library and the ECG library;

[0041] The path recording unit is used to record the physical storage path of the current medical image when the tool scans the medical image.

[0042] In a third aspect, a terminal is provided, including:

[0043] processor, memory, wherein:

[0044] The memory is used to store computer programs.

[0045] The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.

[0046] According to a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the methods described in the above aspects.

[0047] The beneficial effect of the present invention lies in that the index construction method, system, terminal and storage medium of medical images provided by the present invention traverse the medical image files in the storage resources, obtain their identification numbers and storage paths, and identify pathological characteristics, and construct a lightweight index based on the identification numbers, storage paths and pathological characteristic data, thereby realizing rapid organization of medical image files. In subsequent query processes, queries can be made through medical information and pathological characteristics, thereby improving the query dimension of medical images.

[0048] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0050] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.

[0051] Figure 2 is a schematic block diagram of a system according to an embodiment of the present invention.

[0052] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0055] The medical image index construction method provided in the embodiment of the present invention is executed by a computer device, and accordingly, the medical image index construction system runs in the computer device.

[0056] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1 The execution subject may be a medical image index construction system. According to different requirements, the order of the steps in the flow chart may be changed, and some may be omitted.

[0057] like Figure 1 As shown, the method includes:

[0058] Step 110, obtaining the storage path of the medical image;

[0059] Step 120, extracting an identification number from the medical image using text recognition technology;

[0060] Step 130, querying associated medical images based on the identification number;

[0061] Step 140, using SimpleITK image processing technology to process the medical image and the associated medical images to obtain pathological feature data;

[0062] Step 150: convert the identification number, pathological characteristic data and storage path into structured data and save the structured data into an index intermediate library.

[0063] To facilitate understanding of the present invention, the method for constructing an index for medical images provided by the present invention is further described below based on the principle of the method for constructing an index for medical images of the present invention and in combination with the process of constructing an index for medical images in the embodiment.

[0064] Specifically, the index construction method of medical images includes:

[0065] S1. Obtain the storage path of the medical image.

[0066] The os.scandir function is used to construct a recursive traversal tool, and the file format of the medical image is set as the traversal target of the tool; the storage resources corresponding to the image database are set as the traversal range of the tool, and the image database includes a PACS library and an ECG library; when the tool scans a medical image, the physical storage path of the current medical image is recorded.

[0067] In order to use the os.scandir function to construct a recursive traversal tool specifically for finding medical imaging files and recording the physical storage paths of these files, it is necessary to define a function that recursively traverses the specified directory (here, the PACS library and ECG library) and its subdirectories to check whether each file matches the file format of medical imaging (such as DICOM, NIfTI, JPEG and other medical imaging formats).

[0068] S2. Extracting an identification number from the medical image using text recognition technology.

[0069] The PaddleOCR model is used to identify the initial identification number of the current medical image. The CMD command is used to obtain the upper-level file names of the current medical image in sequence, and the relevant identification number is extracted from the upper-level file names, and the identification number is added to the initial identification number to obtain the identification number of the current medical image.

[0070] The identification number includes a medical identification number and an image identification number. The medical identification number includes any one or more of the patient ID, the patient outpatient medical number, the patient inpatient medical number, and the hospitalization number. The image identification number includes any one or more of the image number, the examination registration number, the image report number, and the examination record number.

[0071] The PaddleOCR model is a Chinese scene text recognition technology. The training process of this model is as follows:

[0072] Collect historical medical images, extract text areas from them, and use affine transformation to geometrically map the text areas into a 48-pixel-high image. Annotate the processed images and save them to the dataset. Use the dataset to train the model.

[0073] Since the text content in the medical image may only be part of the identification number, after extracting the initial identification number from the medical image, it is necessary to search for the identification number information from other channels:

[0074] Change to the directory containing the medical image files:

[0075] (1) Use the cd command to switch to the directory containing the medical image file. For example, if the medical image file is in D:\MedicalImages\Patient12345\Scan.dcm, you need to switch to the D:\MedicalImages\Patient12345 directory first.

[0076] (2) Get the parent directory name: Use a for loop and %%~dpI (%~dpI is used in batch files) to get the full path of the current directory, and then use string operations to extract the parent directory name.

[0077] (3) Extract the identification number from the parent directory name: This depends on the specific position and format of the identification number in the parent directory name. Assuming that the identification number is a continuous sequence of numbers and it is the beginning of the directory name, you can use for / f and delims= to extract it.

[0078] S3. Query associated medical images based on the identification number.

[0079] The storage path and identification number of the medical image are saved in a record list; the record list is traversed, and the identification numbers with the same patient ID and hospitalization number are marked as associated identification numbers. The marking method can generate the same identification code for the associated identification numbers.

[0080] S4. Using SimpleITK image processing technology to process the medical images and related medical images to obtain pathological feature data.

[0081] Locate the associated identification number of the current medical image in the record list, and extract the associated medical image of the current medical image based on the storage path corresponding to the associated identification number; preprocess the current medical image and the associated medical image, the preprocessing including denoising, image enhancement, geometric correction and artifact removal; use SimpleITK image processing technology to perform image registration on the preprocessed current medical image and the associated medical image to obtain multimodal pathological feature data.

[0082] The specific steps include:

[0083] S401: Locate the associated identification number and extract the associated medical image

[0084] Read the record list: First, read the record list containing medical imaging information from the medical imaging management system.

[0085] Locate the associated identification number: In the record list, locate the associated identification number with the same identification code as the identification number of the current medical image.

[0086] Read associated storage path: read the storage address corresponding to the associated identification number in the record list.

[0087] Extract associated medical images: read associated medical images from corresponding storage addresses.

[0088] S402: Preprocessing medical images

[0089] Denoising: Medical images may contain various noises due to factors such as imaging equipment, transmission process or storage media. The purpose of the denoising step is to reduce or eliminate these noises to improve the clarity and quality of the image. Common denoising methods include median filtering, Gaussian filtering, etc.

[0090] Image enhancement: Image enhancement is used to improve the contrast, brightness and other visual characteristics of the image, making the lesion area or the area of ​​interest more prominent. This can be achieved through techniques such as histogram equalization and contrast stretching.

[0091] Geometric correction: Due to errors in the imaging device or patient movement, medical images may contain geometric distortion. The purpose of geometric correction is to correct the image to make it conform to the real anatomical structure. This can be achieved through methods such as affine transformation and perspective transformation.

[0092] Artifact Removal: Artifacts are unwanted structures or features in medical images that may interfere with the doctor's diagnosis. The artifact removal step aims to reduce or eliminate these interfering factors. This can be achieved through techniques such as thresholding, morphological operations, etc.

[0093] S403: Image Registration

[0094] Selecting a registration algorithm: SimpleITK is an open source medical image processing library that provides a variety of image registration algorithms. When selecting a registration algorithm, factors such as the image modality, resolution, and lesion type need to be considered. Commonly used registration algorithms include feature-based registration, intensity-based registration, and so on.

[0095] Set registration parameters: According to the selected registration algorithm, set the corresponding parameters, such as transformation model, similarity measurement, optimization method, etc. These parameters will affect the accuracy and speed of registration.

[0096] Perform image registration: Use the functions or classes in the SimpleITK library to perform image registration on the preprocessed current medical image and the associated medical image. The registration process will calculate a spatial transformation matrix that is used to map the associated medical image to the coordinate system of the current medical image.

[0097] Acquiring multimodal pathological feature data: Through image registration, medical images of different modalities are aligned to the same coordinate system. In this way, multimodal pathological feature data, such as the size, shape, location, texture, etc. of the tumor, can be extracted in a unified coordinate system. These data will provide doctors with more comprehensive and accurate diagnostic information.

[0098] S5. Convert the identification number, pathological characteristic data and storage path into structured data and save the structured data into an index intermediate library.

[0099] A quantification rule is preset, and the quantification rule includes a quantification value corresponding to a lesion parameter; for example, a nodule is set to 1, a lump is set to 2, and a quantification value corresponding to the part is set at the same time.

[0100] The pathological characteristic data are quantified using the quantization rules to obtain pathological characteristic values, and the pathological characteristic data are processed using the set of quantization rules. By quantifying these data, complex pathological characteristics can be converted into simple numerical values, namely pathological characteristic values.

[0101] The identification number and the pathological characteristic value are used as the search value, and the storage path is used as the return value to construct an index array; the index array is stored in the index table of the index intermediate library.

[0102] There are two ways to query medical images later:

[0103] First, the identification code is used as a query word, for example, the patient ID is input, and the VLOOKUP function is used to retrieve the index containing the patient ID from the index library, and then the target medical image is read based on the storage path of the index.

[0104] Second, the pathological features are used as query words, such as inputting lung nodules, and the input keywords are converted into quantitative values ​​using quantification rules. The VLOOKUP function is used to query the index containing the quantitative value from the index library, and the target medical image is read based on the storage address in the index.

[0105] S6. Update the index library regularly, write a file storage monitoring program through Python's watchdog library, monitor the image file storage address regularly, rescan and parse the path where the content has changed, and synchronize the newly added and deleted image data to the index library accordingly to ensure the real-time and accuracy of the index.

[0106] In some embodiments, the medical image index construction system may include multiple functional modules composed of computer program segments. The computer program of each program segment in the medical image index construction system may be stored in the memory of a computer device and executed by at least one processor to perform (see Figure 1Description) Function for building an index of medical images.

[0107] In this embodiment, the medical image index construction system can be divided into multiple functional modules according to the functions it performs, such as Figure 2 As shown. The functional modules of the system 200 may include: a path acquisition module 210, a text recognition module 220, an association query module 230, a feature extraction module 240 and an index construction module 250. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0108] A path acquisition module is used to obtain the storage path of medical images;

[0109] A text recognition module, used to extract an identification number from the medical image using text recognition technology;

[0110] An associated query module, used to query associated medical images based on the identification number;

[0111] A feature extraction module, used to process the medical image and related medical images using SimpleITK image processing technology to obtain pathological feature data;

[0112] The index building module is used to convert the identification number, pathological characteristic data and storage path into structured data and save the structured data to the index intermediate library.

[0113] Optionally, as an embodiment of the present invention, the path acquisition module includes:

[0114] A tool construction unit, used to construct a recursive traversal tool using the os.scandir function, and set the file format of the medical image as the traversal target of the tool;

[0115] A range setting unit, used to set the storage resources corresponding to the image database as the traversal range of the tool, the image database including the PACS library and the ECG library;

[0116] The path recording unit is used to record the physical storage path of the current medical image when the tool scans the medical image.

[0117] Figure 3 This is a schematic diagram of the structure of a terminal 300 provided in an embodiment of the present invention. The terminal 300 can be used to execute the method for constructing a medical image index provided in an embodiment of the present invention.

[0118] The terminal 300 may include: a processor 310, a memory 320 and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0119] The memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 can perform some or all of the steps in the following method embodiments.

[0120] The processor 310 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 320, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0121] The communication unit 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

[0122] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0123] Therefore, the present invention traverses the medical imaging files in the storage resources, obtains their identification numbers and storage paths, identifies pathological characteristics, and constructs a lightweight index based on the identification numbers, storage paths and pathological characteristic data, thereby achieving rapid organization of medical imaging files. In subsequent query processes, queries can be performed based on medical information and pathological characteristics, thereby improving the query dimension of medical imaging. The technical effects that can be achieved by this embodiment can be found in the description above and will not be repeated here.

[0124] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.

[0125] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

[0126] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.

[0127] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0128] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0129] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.

Claims

1. A method for constructing an index of medical images, characterized in that: include: Get the storage path of medical images; extracting an identification number from the medical image using text recognition technology; querying associated medical images based on the identification number; Using SimpleITK image processing technology to process the medical images and related medical images to obtain pathological feature data; Converting the identification number, pathological characteristic data, and storage path into structured data and saving the structured data into an index intermediate library; Extracting an identification number from the medical image using text recognition technology, including: Use the PaddleOCR model to identify the initial identification number of the current medical image; Using the CMD command to sequentially obtain the upper-layer file name of the current medical image, extract the relevant identification number from the upper-layer file name, and add the relevant identification number to the initial identification number to obtain the identification number of the current medical image; The identification number includes a medical consultation identification number and an imaging identification number. The medical consultation identification number includes any one or more of the patient ID, the patient outpatient consultation number, the patient inpatient consultation number, and the hospitalization number. The imaging identification number includes any one or more of the image number, the examination registration number, the imaging report number, and the examination record number. The medical images and related medical images are processed using SimpleITK image processing technology to obtain pathological feature data, including: Locating the associated identification number of the current medical image in the record list, and extracting the associated medical image of the current medical image based on the storage path corresponding to the associated identification number; Preprocess the current medical image and related medical images, including denoising, image enhancement, geometric correction and artifact removal; Using SimpleITK image processing technology to perform image registration on the pre-processed current medical image and related medical images to obtain multimodal pathological feature data; including: selecting a registration algorithm from SimpleITK, including a feature-based registration algorithm, and setting corresponding parameters according to the selected registration algorithm, the parameters including a transformation model, a similarity metric, and an optimization method; using functions or classes in the SimpleITK library to perform image registration on the pre-processed current medical image and related medical images; calculating a spatial transformation matrix during the registration process, the spatial transformation matrix maps the related medical image to the coordinate system of the current medical image; through image registration, aligning medical images of different modalities to the same coordinate system, and extracting multimodal pathological feature data in the unified coordinate system; Converting the identification number, pathological characteristic data, and storage path into structured data and saving the structured data into an index intermediate library includes: Presetting a quantization rule, wherein the quantization rule includes a quantization value corresponding to a lesion parameter; Quantifying the pathological characteristic data using the quantization rule to obtain a pathological characteristic value; The identification number and pathological characteristic value are used as search values, and the storage path is used as the return value to construct an index array; The index array is stored in the index table of the index intermediate library.

2. The method according to claim 1, characterized in that Get the storage path of medical images, including: A recursive traversal tool is constructed using the os.scandir function, and the file format of the medical image is set as the traversal target of the tool; Setting storage resources corresponding to an image database as a traversal range of the tool, the image database including a PACS library and an ECG library; When the tool scans a medical image, the physical storage path of the current medical image is recorded.

3. The method according to claim 2, characterized in that Querying associated medical images based on the identification number includes: Save the storage path and identification number of the medical image to the record list; The record list is traversed, and identification numbers having the same patient ID and hospitalization number are marked as associated identification numbers.

4. A medical image index construction system, characterized in that: include: A path acquisition module is used to obtain the storage path of medical images; a text recognition module, configured to extract an identification number from the medical image using text recognition technology; an associated query module, configured to query associated medical images based on the identification number; A feature extraction module, configured to process the medical image and related medical images using SimpleITK image processing technology to obtain pathological feature data; An index construction module, configured to convert the identification number, pathological characteristic data, and storage path into structured data and save the structured data into an index intermediate library; Extracting an identification number from the medical image using text recognition technology, including: Use the PaddleOCR model to identify the initial identification number of the current medical image; Using the CMD command to sequentially obtain the upper-layer file name of the current medical image, extract the relevant identification number from the upper-layer file name, and add the relevant identification number to the initial identification number to obtain the identification number of the current medical image; The identification number includes a medical consultation identification number and an imaging identification number. The medical consultation identification number includes any one or more of the patient ID, the patient outpatient consultation number, the patient inpatient consultation number, and the hospitalization number. The imaging identification number includes any one or more of the image number, the examination registration number, the imaging report number, and the examination record number. The medical images and related medical images are processed using SimpleITK image processing technology to obtain pathological feature data, including: Locating the associated identification number of the current medical image in the record list, and extracting the associated medical image of the current medical image based on the storage path corresponding to the associated identification number; Preprocess the current medical image and related medical images, including denoising, image enhancement, geometric correction and artifact removal; Using SimpleITK image processing technology to perform image registration on the pre-processed current medical image and related medical images to obtain multimodal pathological feature data; including: selecting a registration algorithm from SimpleITK, including a feature-based registration algorithm, and setting corresponding parameters according to the selected registration algorithm, the parameters including a transformation model, a similarity metric, and an optimization method; using functions or classes in the SimpleITK library to perform image registration on the pre-processed current medical image and related medical images; calculating a spatial transformation matrix during the registration process, the spatial transformation matrix maps the related medical image to the coordinate system of the current medical image; through image registration, aligning medical images of different modalities to the same coordinate system, and extracting multimodal pathological feature data in the unified coordinate system; Converting the identification number, pathological characteristic data, and storage path into structured data and saving the structured data into an index intermediate library includes: Presetting a quantization rule, wherein the quantization rule includes a quantization value corresponding to a lesion parameter; Quantifying the pathological characteristic data using the quantization rule to obtain a pathological characteristic value; The identification number and pathological characteristic value are used as search values, and the storage path is used as the return value to construct an index array; The index array is stored in the index table of the index intermediate library.

5. The system according to claim 4, characterized in that The path acquisition module includes: A tool construction unit, used for constructing a recursive traversal tool using the os.scandir function, and setting the file format of the medical image as the traversal target of the tool; a range setting unit, configured to set storage resources corresponding to an image database as a traversal range of the tool, the image database including a PACS library and an ECG library; The path recording unit is used to record the physical storage path of the current medical image when the tool scans the medical image.

6. A terminal, characterized in that: include: a memory for storing an index building program for medical images; A processor is configured to implement the steps of the medical image index construction method according to any one of claims 1 to 3 when executing the medical image index construction program.

7. A computer-readable storage medium storing a computer program, characterized in that: The readable storage medium stores a medical image index construction program, and when the medical image index construction program is executed by the processor, the steps of the medical image index construction method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Medical image management method and device, electronic equipment and storage medium

    CN113946851A

  • Brain image meningioma full-automatic screening and tumor segmentation method and device

    CN114387286A

  • Structured recognition method and system for medical laboratory sheet and storage medium

    CN115761772A

  • Human body CT image 3D intelligent segmentation and analysis platform and method

    CN116665850A

  • Automatically linking entries in a medical image report to an image

    US20190333217A1