Medical image labeling fusion method, device and equipment and storage medium
By calculating the physical volume of the difference mask and the comprehensive scoring function in medical image annotation, the problem of misjudgment of small structures caused by uneven resolution in the prior art is solved, and more accurate and reliable fusion annotation results are achieved. The clinical applicability of the results is ensured through human-computer interaction.
Patent Information
- Application Number
- CN202611684284.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, medical image annotation methods based on the number of pixels or voxels fail to fully consider the characteristics of anisotropic resolution, resulting in small lesions or delicate anatomical structures being misjudged as noise in images with low resolution in the slice thickness direction, affecting the accuracy and reliability of the fusion annotation results.
By acquiring gold-standard and manually labeled data of medical images, we calculate difference masks and perform connected component analysis. We then combine image metadata to calculate physical volume, construct a comprehensive scoring function, and generate retention scores by considering relative object size, confidence of annotation source, and noise penalty factor, and perform preliminary screening.
It improves the accuracy and reliability of medical image fusion annotation results, significantly enhances the ability to identify and preserve minute structures, and supports manual correction through an interactive interface, ensuring the clinical applicability of the fusion results.
Smart Images

Figure CN123182230A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical image annotation, and in particular to a medical image annotation fusion method, apparatus, device, and storage medium. Background Technology
[0002] Existing technologies primarily rely on probabilistic statistical fusion models and threshold filtering methods based on a fixed number of voxels. These methods use the discrete number of pixels or voxels as the core criterion, failing to fully consider the anisotropic resolution characteristics of medical images. Since the actual physical size represented by pixels or voxels varies significantly across different imaging directions, calculating solely based on quantity leads to inaccurate assessments of the target's true spatial volume. Especially in images with low resolution in the slice thickness direction, clinically significant microlesions or fine anatomical structures, due to their small voxel count in that direction, are often misjudged as noise and removed, thus affecting the clinical accuracy and reliability of the fusion annotation results. Summary of the Invention
[0003] This invention provides a medical image annotation and fusion method, apparatus, device, and storage medium to solve the problem that the clinical accuracy of the fusion annotation results is low because the existing technology only uses the number of discrete pixels or voxels as the core judgment criterion.
[0004] The first aspect of this invention provides a medical image annotation and fusion method, comprising: acquiring annotation data and corresponding image metadata of a medical image, wherein the annotation data includes gold standard annotation data and manually annotated data; performing difference set calculation based on the annotation data to obtain a difference mask; performing connected component analysis on the difference mask to obtain at least one differentially connected object; calculating the corresponding physical volume for each differentially connected object based on the image metadata; acquiring the relative size of the object, the confidence level of the annotation source, and the noise penalty factor for each differentially connected object; constructing a comprehensive scoring function based on the physical volume, the relative size of the object, the confidence level of the annotation source, and the noise penalty factor, and generating a retained score for each object; performing preliminary screening of all differentially connected objects based on the retained scores, and providing an interactive interface for users to view and correct the screening results to obtain a fused annotation result.
[0005] In one feasible implementation, the step of performing difference set calculation to obtain a difference mask based on the labeled data includes: performing a union operation on the gold standard labeled data and the manually labeled data; performing an intersection operation on the gold standard labeled data and the manually labeled data; and performing a difference operation on the result of the union operation and the result of the intersection operation to generate a difference mask, wherein the calculation formula for the difference mask is: Mdiff=(VGT∪ VVal) \ (VGT∩ VVal) Among them, Mdiff is the difference mask, VGT is the gold standard data, and VVal is the manually annotated data.
[0006] In one feasible implementation, the connected component analysis of the difference mask to obtain at least one difference connected object includes: applying a connected component labeling algorithm to the difference mask in a three-dimensional voxel space; aggregating spatially adjacent voxels with the same label value into an independent connected region according to a three-dimensional six-neighbor or twenty-six-neighbor connectivity criterion; and defining each independent connected region as a difference connected object.
[0007] In one feasible implementation, calculating the corresponding physical volume based on the image metadata includes: extracting voxel spacing information from the image metadata to determine the physical size of a single voxel in three-dimensional space; counting the number of voxels in the differentially connected objects; and calculating the corresponding physical volume based on the number of voxels and the physical size of the single voxel, wherein the formula for calculating the physical volume is: Vphy(Ri)=Nvoxel× (dx× dy× dz) Where Vphy(Ri) represents the volume of the i-th differentially connected object, Nvoxel is the number of voxels, dx is the spacing along the X-axis, dy is the spacing along the Y-axis, and dz is the spacing along the Z-axis.
[0008] In one feasible implementation, obtaining the relative size of each differentially connected object, the confidence level of the annotation source, and the noise penalty factor includes: calculating the ratio of the number of voxels contained in the differentially connected object to the total number of voxels in the entire differential mask, as the relative size of the object; assigning a corresponding annotation source confidence weight based on the presence of the differentially connected object in the gold standard annotation data and the manually annotated data; and if the number of voxels in the differentially connected object is lower than a preset penalty threshold, applying a predefined penalty coefficient or deducting a fixed penalty score to generate a noise penalty factor.
[0009] In one feasible implementation, the step of querying a preset weight value table and assigning a corresponding source confidence weight based on the presence of the differentially connected object in the gold standard annotation data and the manually annotated data includes: if the differentially connected object exists only in the gold standard annotation data, then a first weight value is assigned; if the differentially connected object exists only in the manually annotated data, then a second weight value is assigned, the second weight value being greater than the first weight value; if the differentially connected object exists in both the gold standard annotation data and the manually annotated data, then a third weight value is assigned, the third weight value being between the first weight value and the second weight value.
[0010] In one feasible implementation, the step of constructing a comprehensive scoring function based on the physical volume, relative object size, annotation source confidence, and noise penalty factor, and generating a retention score for each object, includes: calculating an independent volume reward item based on the comparison result between the physical volume and a preset clinical volume threshold; combining the relative object size, annotation source confidence weight, the volume reward item, and the noise penalty factor as input parameters to construct the comprehensive scoring function; substituting the corresponding parameters of each differentially connected object into the comprehensive scoring function, performing calculation, and outputting the intelligent retention score corresponding to each differentially connected object.
[0011] A second aspect of the present invention provides a medical image annotation and fusion apparatus, comprising: a first acquisition module for acquiring annotation data and corresponding image metadata of a medical image, wherein the annotation data includes gold standard annotation data and manually labeled data; a first calculation module for performing difference set calculation based on the annotation data to obtain a difference mask; an analysis module for performing connected component analysis on the difference mask to obtain at least one differentially connected object; a second calculation module for calculating the corresponding physical volume for each differentially connected object based on the image metadata; a second acquisition module for acquiring the relative size of the object, the confidence level of the annotation source, and the noise penalty factor for each differentially connected object; a generation module for constructing a comprehensive scoring function based on the physical volume, the relative size of the object, the confidence level of the annotation source, and the noise penalty factor, and generating a retained score for each object; and a processing module for performing preliminary screening of all differentially connected objects based on the retained scores, and providing an interactive interface for users to view and correct the screening results to obtain a fused annotation result.
[0012] In one feasible implementation, the first calculation module is specifically used for: performing a union operation on the gold standard labeled data and the manually labeled data; performing an intersection operation on the gold standard labeled data and the manually labeled data; and performing a difference operation on the result of the union operation and the result of the intersection operation to generate a difference mask, wherein the calculation formula for the difference mask is: Mdiff=(VGT∪ VVal) \ (VGT∩ VVal) Among them, Mdiff is the difference mask, VGT is the gold standard data, and VVal is the manually annotated data.
[0013] In one feasible implementation, the analysis module is specifically used to: apply a connected component labeling algorithm to the difference mask in a three-dimensional voxel space; aggregate spatially adjacent voxels with the same label value into an independent connected region according to a three-dimensional six-neighbor or twenty-six-neighbor connectivity criterion; and define each independent connected region as a difference connected object.
[0014] In one feasible implementation, the second calculation module is specifically used for: extracting voxel spacing information from the image metadata to determine the physical size of a single voxel in three-dimensional space, wherein the voxel spacing information includes X-axis spacing, Y-axis spacing, and Z-axis spacing; counting the number of voxels in the differentially connected objects; and calculating the corresponding physical volume based on the number of voxels and the physical size of the single voxel, wherein the formula for calculating the physical volume is: Vphy(Ri)=Nvoxel× (dx× dy× dz) Where Vphy(Ri) represents the volume of the i-th differentially connected object, Nvoxel is the number of voxels, dx is the spacing along the X-axis, dy is the spacing along the Y-axis, and dz is the spacing along the Z-axis.
[0015] In one feasible implementation, the second acquisition module includes: a calculation unit, used to calculate the ratio of the number of voxels contained in the differential connected object to the total number of voxels in the entire differential mask, as the relative size of the object; an assignment unit, used to assign a corresponding annotation source confidence weight based on the presence of the differential connected object in the gold standard annotation data and the manually annotated data; and a generation unit, used to apply a predefined penalty coefficient or deduct a fixed penalty score to generate a noise penalty factor if the number of voxels in the differential connected object is lower than a preset penalty threshold.
[0016] In one feasible implementation, the assigning unit is specifically used to: assign a first weight value if the differential connectivity object exists only in the gold standard annotation data; assign a second weight value if the differential connectivity object exists only in the manually annotated data, wherein the second weight value is greater than the first weight value; and assign a third weight value if the differential connectivity object exists in both the gold standard annotation data and the manually annotated data, wherein the third weight value is between the first weight value and the second weight value.
[0017] In one feasible implementation, the generation module is specifically used to: calculate an independent volume reward item based on the comparison result between the physical volume and the preset clinical volume threshold; combine the relative size of the object, the confidence weight of the annotation source, the volume reward item, and the noise penalty factor as input parameters to form a comprehensive scoring function; substitute the corresponding parameters of each differentially connected object into the comprehensive scoring function, perform calculation, and output the intelligent retention score corresponding to each differentially connected object.
[0018] A third aspect of the present invention provides an electronic device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor invokes the instructions in the memory to cause the electronic device to perform the above-described medical image annotation and fusion method.
[0019] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the above-described medical image annotation and fusion method.
[0020] The technical solution provided by this invention involves acquiring labeled data and corresponding image metadata of medical images, wherein the labeled data includes gold standard labeled data and manually labeled data; performing difference set calculation based on the labeled data to obtain a difference mask; performing connected component analysis on the difference mask to obtain at least one difference connected object; calculating the corresponding physical volume for each difference connected object based on the image metadata; acquiring the relative size of each difference connected object, the confidence level of the label source, and the noise penalty factor; constructing a comprehensive scoring function based on the physical volume, the relative size of the object, the confidence level of the label source, and the noise penalty factor, and generating a retention score for each object; performing preliminary screening of all difference connected objects based on the retention scores, and providing an interactive interface for users to view and correct the screening results to obtain the fused labeling result. In this embodiment of the invention, image metadata is used to convert image differences in anisotropic resolution into their actual physical size in three-dimensional space. By using physical volume, a clinically relevant objective indicator, the traditional method replaces the one-sided judgment criteria that rely solely on the number of voxels or statistical probability, fundamentally solving the problem of accidental deletion of small but important structures due to uneven resolution. Secondly, the solution comprehensively considers the relative size of the object, the credibility of the annotation source, and potential noise characteristics, constructing a more robust and clinically consistent comprehensive scoring system, making automated screening decisions more accurate and reliable, thereby improving the accuracy of the fusion annotation results. Attached Figure Description
[0021] Figure 1 This is a schematic diagram of one embodiment of the medical image annotation and fusion method in this invention; Figure 2 This is a schematic diagram of another embodiment of the medical image annotation and fusion method in this invention; Figure 3 This is a schematic diagram of one embodiment of the medical image annotation and fusion device in this invention; Figure 4 This is a schematic diagram of another embodiment of the medical image annotation and fusion device in this invention; Figure 5 This is a schematic diagram of one embodiment of the electronic device in this invention. Detailed Implementation
[0022] This invention provides a medical image annotation and fusion method, apparatus, device, and storage medium. By integrating image metadata, the true physical volume of differentially connected objects is calculated, and a comprehensive evaluation system is constructed by combining their relative size, the credibility of the annotation source, and the noise penalty factor, thereby improving the clinical accuracy and reliability of medical image fusion annotation results.
[0023] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] It is understood that the executing entity of this invention can be a medical image annotation and fusion device, a terminal, or a server; no specific limitation is made here. This embodiment of the invention will be described using a server as an example.
[0025] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of the medical image annotation and fusion method in this invention includes: 101. Obtain the labeled data and corresponding image metadata of medical images. The labeled data includes gold standard labeled data and manually labeled data. The system reads the database or file system storing medical images and their annotations to obtain the necessary annotation data and image metadata. Gold standard annotation data typically comes from rigorously validated algorithmic segmentation results or expert consensus annotation sets, while manually annotated data comes from corrections and supplements made by physicians or annotators in auxiliary annotation systems. Simultaneously, the system parses the DICOM format file associated with the image, extracting key image metadata, particularly pixel spacing parameters, which record the physical resolution of the image in various directions in three-dimensional space.
[0026] 102. Based on the labeled data, perform difference set calculation to obtain the difference mask; The gold-standard labeled data and manually labeled data are represented as binary masks in 3D volumetric form, where labeled areas have a value of 1 and unlabeled areas have a value of 0. Then, set operations are performed on these two masks: first, the union of the two masks is calculated, then their intersection is calculated, and finally, the intersection is subtracted from the union to obtain a difference mask. The set of voxels with a value of 1 in this difference mask represents the regions where the two labeling sources are inconsistent. These may contain potentially important structures requiring further analysis, such as small lesions, or noise or artifacts that need to be removed. The output of this step is a new 3D binary mask that accurately identifies the locations of all divergent voxels.
[0027] 103. Perform connected component analysis on the difference mask to obtain at least one difference connected object; The system iterates through all voxels in the difference mask, grouping spatially connected voxels with the same label value into the same connected region based on predefined adjacency relationships. Each identified independent connected region constitutes a difference connected object. The system assigns a unique identifier to each object and records the coordinates of all voxels it contains. This process aggregates discrete difference voxels into independent objects with clear spatial boundaries and shapes.
[0028] 104. For each differentially connected object, calculate the corresponding physical volume based on the image metadata; The system retrieves pixel pitch parameters describing the spatial resolution of the image from the image metadata, including the actual physical length represented by a voxel along the X, Y, and Z axes. For each differentially connected object obtained in step 103, the system counts the total number of voxels contained in the object. Then, multiplying the total number of voxels by the product of the pixel pitches in the three directions yields the object's physical volume in the real world, typically in cubic millimeters. This calculation transforms the representation based on the number of discrete voxels into a clinically meaningful physical metric, ensuring comparability and physical consistency in the size assessment of fine structures across medical image data of different resolutions and anisotropy.
[0029] 105. Obtain the relative size of each differentially connected object, the confidence level of the annotation source, and the noise penalty factor; The relative size of an object is obtained by comparing and normalizing the number of voxels of that object to the average number of voxels of all connected objects in the entire difference mask, and is used to measure the relative size of the object in the difference set. The annotation source confidence is assigned a value according to a preset tiered weighting table, based on whether the voxels contained in the object originally came from gold standard annotations, manual verification annotations, or a mixture of both; for example, gold standard sources are assigned the highest weight. The noise penalty factor is determined based on whether the number of voxels of the object is below a preset small volume threshold. If it is below this threshold, it is considered likely to be noise, and a negative penalty score or attenuation coefficient is applied to reduce the likelihood of it being retained.
[0030] 106. Based on physical volume, relative size of objects, confidence level of annotation source, and noise penalty factor, construct a comprehensive scoring function and generate a retained score for each object; The comprehensive score is composed of the sum of the normalized relative size score, the source confidence weight score, and the physical volume-based step reward score, minus the score corresponding to the noise penalty factor. The physical volume-based reward is specifically designed as a step function; when the physical volume of an object exceeds a key threshold set by clinical experience, a significant additional score is awarded to effectively protect structures with few voxels but important physical dimensions in anisotropic images. The final score calculated by this function is the retention score for each differentially connected object; a higher score indicates that the object is more likely to be an important structure rather than noise and should be retained.
[0031] 107. Based on the retained scores, perform preliminary screening of all differentially connected objects, and provide an interactive interface for users to view and correct the screening results in order to obtain the fusion annotation results.
[0032] A scoring threshold is set, and the system automatically filters out all connected objects with scores higher than this threshold, merging them back into the original consensus region to form preliminary fusion annotation results. Simultaneously, a graphical user interface is launched, displaying the preliminary filtering results in both 3D rendering and 2D slice views, highlighting automatically retained or rejected objects with different colors. Users can browse the interface intuitively and use built-in interactive tools such as a multi-level spherical search selection tool to manually review, select, modify the retention status, or perform pixel-level editing of any questionable objects. All user-confirmed modifications are fed back in real time and ultimately integrated to generate the final fusion annotation result after human-machine collaborative decision-making.
[0033] In this embodiment of the invention, the number of pixels is converted into real physical volume by introducing image metadata, and a comprehensive scoring function is constructed by combining the relative size of the object, the confidence of the annotation source, and the noise penalty factor. This makes the evaluation of differentially connected objects more in line with the actual clinical spatial scale, significantly improving the ability to identify and preserve small targets in anisotropic images, thereby enhancing the clinical accuracy and reliability of the fusion annotation results. At the same time, the interactive interface supports manual correction, further ensuring the practicality of the fusion results.
[0034] Please see Figure 2 Another embodiment of the medical image annotation and fusion method in this invention includes: 201. Obtain the labeled data and corresponding image metadata of medical images. The labeled data includes gold standard labeled data and manually labeled data. 202. Based on the labeled data, perform difference set calculation to obtain the difference mask; Perform a union operation on the gold standard labeled data and the manually labeled data; perform an intersection operation on the gold standard labeled data and the manually labeled data; perform a difference operation on the result of the union operation and the result of the intersection operation to generate a difference mask. The formula for calculating the difference mask is as follows: Mdiff=(VGT∪ VVal) \ (VGT∩ VVal) Among them, Mdiff is the difference mask, VGT is the gold standard data, and VVal is the manually annotated data.
[0035] Gold standard labeled data V GT Compared with manually labeled data V Val The values are loaded as two 3D binary matrices, where labeled voxels have a value of 1 and unlabeled voxels have a value of 0. First, a union mask is calculated by performing a logical OR operation on a voxel-by-voxel basis; that is, for each coordinate (i, j, k) in space, if V... GT [i, j, k] or V Val If at least one of [i, j, k] is 1, then the value at the corresponding position in the union mask is set to 1; otherwise, it is set to 0. Subsequently, the intersection mask is calculated by performing a logical AND operation on a voxel-by-voxel basis, i.e., only if V... GT [i, j, k] and V Val The value at the corresponding position in the intersection mask is set to 1 only when [i, j, k] are all 1. Finally, the difference mask M is generated. diff This is achieved by performing a voxel-by-voxel logical subtraction operation on the union mask and the intersection mask. That is, if a certain position in the union mask is 1 and the same position in the intersection mask is 0, then M... diff Set the value to 1 at this position, otherwise set it to 0.
[0036] 203. Perform connectivity analysis on the difference mask to obtain at least one difference connected object; In the 3D voxel space, a connected component labeling algorithm is applied to the difference mask; based on the 3D six-neighbor or twenty-six-neighbor connectivity criterion, spatially adjacent voxels with the same label value are aggregated into an independent connected region; each independent connected region is defined as a difference connected object.
[0037] A connected component labeling algorithm based on 3D neighborhood traversal is employed to process the difference mask. The algorithm begins scanning from the top-left front voxel of the difference mask. When an unlabeled voxel with a value of 1 is encountered, it is designated as a seed point for a new connected region. Subsequently, using a breadth-first or depth-first search strategy, based on a predefined 3D six-neighborhood or twenty-six-neighborhood connectivity rule, all voxels connected to the seed point with a value of 1 are recursively or iteratively explored and labeled until the boundary of the connected region is closed. After labeling a region, the algorithm continues scanning to find the next unlabeled difference voxel, repeating the above process. Finally, the algorithm outputs a labeling matrix and a list of connected objects. Each object is defined by its unique ID and the index coordinates of all voxels it contains, thus clustering discrete difference voxels into independent object entities with spatial integrity.
[0038] 204. For each differentially connected object, calculate the corresponding physical volume based on the image metadata; Voxel spacing information is extracted from image metadata to determine the physical size of a single voxel in 3D space. Voxel spacing information includes X-axis spacing, Y-axis spacing, and Z-axis spacing. The number of voxels in differentially connected objects is counted. Based on the number of voxels and the physical size of a single voxel, the corresponding physical volume is calculated. The formula for calculating the physical volume is as follows: Vphy(Ri)=Nvoxel× (dx× dy× dz) Where Vphy(Ri) represents the volume of the i-th differentially connected object, Nvoxel is the number of voxels, dx is the spacing along the X-axis, dy is the spacing along the Y-axis, and dz is the spacing along the Z-axis.
[0039] 205. Calculate the ratio of the number of voxels contained in the differential connected object to the total number of voxels in the entire differential mask, and use it as the relative size of the object; A fast traversal of the 3D difference mask matrix is performed, and the total number of voxels with a value of 1 is counted as the total number of voxels in the difference mask. Subsequently, for each labeled difference-connected object, the system directly reads its voxel count attribute and calculates the object's relative size by dividing it by the previously counted total number of voxels in the difference mask. This result is a normalized ratio that accurately reflects the proportion of the object in all difference regions.
[0040] 206. Based on the presence of differentially connected objects in gold-standard labeled data and manually labeled data, assign corresponding confidence weights to the labeling sources; If the difference-connected object exists only in the gold standard labeled data, it is assigned a first weight value; if the difference-connected object exists only in the manually labeled data, it is assigned a second weight value, which is greater than the first weight value; if the difference-connected object exists in both the gold standard labeled data and the manually labeled data, it is assigned a third weight value, which is between the first and second weight values.
[0041] After determining the voxel source composition of each differentially connected object, the system calls a preset weight mapping function to assign confidence weights for the labeled source. This function is based on a logical judgment of the corresponding values of all voxels within the object in the two original annotation matrices: First, it iterates through all voxel coordinates of the object, querying their values in the gold standard annotation matrix and the human verification annotation matrix. If all voxels in the object are 1 in the gold standard annotation matrix, its source is determined to be gold standard; if all voxels are 1 in the human verification annotation matrix, its source is determined to be human verification; if any voxel in the object has a value of 1 in both matrices, it is determined to be a mixed source. Subsequently, the system assigns weights according to the determined source pattern and a preset weight mapping table: if the source is gold standard, it is assigned the highest first weight value, for example, 30; if the source is human verification, it is assigned the lowest second weight value, for example, 15; if the source is mixed, it is assigned a third weight value in the middle, for example, 20.
[0042] 207. If the number of voxels of the differentially connected objects is lower than the preset penalty threshold, a predefined penalty coefficient or a fixed penalty score is deducted to generate a noise penalty factor. A preset voxel count penalty threshold, such as 50 voxels, is established. When processing each differentially connected object, the system compares its voxel count to this threshold. If the object's voxel count is below this threshold, a penalty mechanism is triggered. Based on the preset penalty strategy, the system can choose to apply a predefined penalty coefficient, such as multiplying the object's initial score by a decay coefficient less than 1, or directly deducting a fixed penalty score from the object's initial score. Regardless of the method used, the calculated negative adjustment value is recorded as the object's noise penalty factor. This mechanism aims to systematically reduce the retention priority of differentially connected objects that are too small and highly likely to be image noise or artifacts in subsequent screening, thereby improving the cleanliness and reliability of the fusion result.
[0043] 208. Based on physical volume, relative size of objects, confidence level of annotation source, and noise penalty factor, construct a comprehensive scoring function and generate a retained score for each object; Based on the comparison between physical volume and preset clinical volume threshold, an independent volume reward term is calculated. The relative size of the object, the confidence weight of the annotation source, the volume reward term, and the noise penalty factor are used as input parameters to form a comprehensive scoring function. The corresponding parameters of each differentially connected object are substituted into the comprehensive scoring function, and the calculation is performed to output the intelligent retention score corresponding to each differentially connected object.
[0044] A key clinical volume threshold is preset, based on prior medical knowledge, such as using the lower limit of the typical physical volume of a small but clinically significant blood vessel or lesion as a benchmark. For each differentially connected object, after obtaining its physical volume, the system compares it with the preset clinical volume threshold. The volume reward is calculated using a piecewise function: if the physical volume is less than or equal to the clinical threshold, the reward is set to zero; if the physical volume is greater than the clinical threshold, a positive reward score is assigned according to a preset tiered rule based on the degree of excess. For example, it can be set to a fixed reward value or designed as a dynamic score linearly related to the excess volume. The comprehensive scoring function is constructed using a linear weighted summation model, and its calculation process is as follows: the score equals weight 1 multiplied by the relative size of the object, weight 2 multiplied by the confidence weight of the label source, weight 3 multiplied by the volume reward, and minus the noise penalty factor. In this system, the relative object size is a normalized value, the source confidence weight is a value obtained by querying a preset table, the noise penalty factor is a negative value generated based on the voxel count penalty threshold, and weights one, two, and three are adjustable weight coefficients for each item. The system takes the specific values of the relative object size, source confidence weight, volume reward, and noise penalty factor calculated for each differentially connected object, substitutes them into this scoring function formula, performs a weighted summation and subtraction operation, and finally outputs a quantified intelligent retention score.
[0045] Among them, based on the comparison results between physical volume and preset clinical volume threshold, an independent volume reward term is calculated, which is defined as:
[0046] For example,
[0047] If the relative size of the object is S1, the source confidence weight is S2, the volume bonus is S3, and the noise penalty factor is P, then the comprehensive scoring function is:
[0048] 209. Based on the retained scores, perform preliminary screening of all differentially connected objects, and provide an interactive interface for users to view and correct the screening results in order to obtain the fusion annotation results.
[0049] A dynamically configurable scoring threshold is preset. The system iterates through all differentially connected objects with calculated intelligent retention scores, automatically identifying objects with scores above the threshold as valid structures to be retained. Their voxel regions are then merged into the base annotation layer, generating preliminary automated fusion annotation results. Simultaneously, an interactive graphical user interface integrated into the 3D medical imaging platform is launched. This interface presents a 3D volume rendering view and a 2D orthogonal slice view in a synchronized manner. In the view, objects automatically retained by the algorithm are highlighted in green, automatically removed objects are displayed in semi-transparent gray, and suspicious objects with scores near the threshold are marked in bright yellow. Users can directly click on the 2D slice with the mouse to trigger a multi-level spherical search algorithm based on IJK voxel space, accurately selecting and reviewing any target object. Users can also use the object list in the sidebar to switch the retention status of any object with a single click, or call the built-in brush, eraser, and other pixel-level editing tools for fine-tuning. All user interactions are recorded in real time and protected by a one-way submission locking state machine to ensure that manual corrections are not overwritten by subsequent algorithm updates. Finally, the system integrates the automated screening results with all locked manual correction results, and outputs a final, confirmed annotation result that combines algorithmic intelligence and expert knowledge.
[0050] Get the screen click coordinates of the user in the 2D slice view The transformation matrix from the world coordinate system to the IJK voxel coordinate system is calculated in advance. Map it to global voxel coordinates The mapping formula is:
[0051] Multi-level concentric sphere search strategy: Define an increasing search radius. (Unit: voxel), for example, .
[0052] For each radius Perform the following label search within a sphere in the IJK voxel space: satisfy
[0053] Iterate through all voxels within the sphere and check their label values. :like and If the search fails, the tag ID will be returned immediately, and the search process will be terminated.
[0054] If a valid label is found within a certain radius r, the ID of the differential connectivity object corresponding to that label is returned to the interactive system, and the object is highlighted in the interface; if no valid label is found after traversing all radii, the "missed" status is returned, prompting the user to click again or adjust the view.
[0055] In this embodiment of the invention, a multi-dimensional, adaptive comprehensive scoring system is constructed by comprehensively applying objective measures based on physical volume, relative size of objects reflecting global proportion, credibility weight based on annotation source, and noise penalty for extremely small isolated pixel groups. This system can accurately distinguish between tiny real lesions caused by anisotropic resolution and random noise or annotation errors, effectively solving the drawback of traditional methods that mistakenly exclude important clinical targets due to a single reliance on voxel number threshold. It significantly improves the clinical accuracy and reliability of fused annotations, and ensures the clinical applicability of the final results through human-computer interaction.
[0056] The above describes the medical image annotation and fusion method in the embodiments of the present invention. The following describes the medical image annotation and fusion apparatus in the embodiments of the present invention. Please refer to [link / reference]. Figure 3 One embodiment of the medical image annotation and fusion device in this invention includes: The first acquisition module 301 is used to acquire the annotation data of medical images and the corresponding image metadata. The annotation data includes gold standard annotation data and manually annotated data. The first calculation module 302 is used to perform difference set calculation based on the labeled data to obtain the difference mask; Analysis module 303 is used to perform connected region analysis on the difference mask to obtain at least one difference connected object; The second calculation module 304 is used to calculate the corresponding physical volume for each differentially connected object based on image metadata. The second acquisition module 305 is used to acquire the relative size of each differential connected object, the confidence of the annotation source, and the noise penalty factor; The generation module 306 is used to construct a comprehensive scoring function based on physical volume, relative size of objects, confidence of annotation source, and noise penalty factor, and generate a retained score for each object; The processing module 307 is used to perform preliminary screening of all differential connected objects based on the retained scores, and provides an interactive interface for users to view and correct the screening results in order to obtain the fusion annotation results.
[0057] In this embodiment of the invention, the number of pixels is converted into real physical volume by introducing image metadata, and a comprehensive scoring function is constructed by combining the relative size of the object, the confidence of the annotation source, and the noise penalty factor. This makes the evaluation of differentially connected objects more in line with the actual clinical spatial scale, significantly improving the ability to identify and preserve small targets in anisotropic images, thereby enhancing the clinical accuracy and reliability of the fusion annotation results. At the same time, the interactive interface supports manual correction, further ensuring the practicality of the fusion results.
[0058] Please see Figure 4 Another embodiment of the medical image annotation and fusion device in this invention includes: The first acquisition module 301 is used to acquire the annotation data of medical images and the corresponding image metadata. The annotation data includes gold standard annotation data and manually annotated data. The first calculation module 302 is used to perform difference set calculation based on the labeled data to obtain the difference mask; Analysis module 303 is used to perform connected region analysis on the difference mask to obtain at least one difference connected object; The second calculation module 304 is used to calculate the corresponding physical volume for each differentially connected object based on image metadata. The second acquisition module 305 is used to acquire the relative size of each differential connected object, the confidence of the annotation source, and the noise penalty factor; The generation module 306 is used to construct a comprehensive scoring function based on physical volume, relative size of objects, confidence of annotation source, and noise penalty factor, and generate a retained score for each object; The processing module 307 is used to perform preliminary screening of all differential connected objects based on the retained scores, and provides an interactive interface for users to view and correct the screening results in order to obtain the fusion annotation results.
[0059] Optionally, the first calculation module 302 can be specifically used for: Perform a union operation on the gold standard labeled data and the manually labeled data; perform an intersection operation on the gold standard labeled data and the manually labeled data; perform a difference operation on the result of the union operation and the result of the intersection operation to generate a difference mask. The formula for calculating the difference mask is as follows: Mdiff=(VGT∪ VVal) \ (VGT∩ VVal) Among them, Mdiff is the difference mask, VGT is the gold standard data, and VVal is the manually annotated data.
[0060] Optionally, the analysis module 303 can be specifically used for: In the 3D voxel space, a connected component labeling algorithm is applied to the difference mask; based on the 3D six-neighbor or twenty-six-neighbor connectivity criterion, spatially adjacent voxels with the same label value are aggregated into an independent connected region; each independent connected region is defined as a difference connected object.
[0061] The optional second calculation module 304 can be specifically used for: Voxel spacing information is extracted from image metadata to determine the physical size of a single voxel in 3D space. Voxel spacing information includes X-axis spacing, Y-axis spacing, and Z-axis spacing. The number of voxels in differentially connected objects is counted. Based on the number of voxels and the physical size of a single voxel, the corresponding physical volume is calculated. The formula for calculating the physical volume is as follows: Vphy(Ri)=Nvoxel× (dx× dy× dz) Where Vphy(Ri) represents the volume of the i-th differentially connected object, Nvoxel is the number of voxels, dx is the spacing along the X-axis, dy is the spacing along the Y-axis, and dz is the spacing along the Z-axis.
[0062] Optionally, the second acquisition module 305 includes: The calculation unit 3051 is used to calculate the ratio of the number of voxels contained in the differential connected object to the total number of voxels in the entire differential mask, as the relative size of the object; Unit 3052 is used to assign a corresponding source confidence weight to the presence of differentially connected objects in the gold standard labeled data and manually labeled data. The generation unit 3053 is used to generate a noise penalty factor by applying a predefined penalty coefficient or deducting a fixed penalty score if the number of voxels of the differential connected objects is lower than a preset penalty threshold.
[0063] Optionally, unit 3052 can be specifically used for: If the difference-connected object exists only in the gold standard labeled data, it is assigned a first weight value; if the difference-connected object exists only in the manually labeled data, it is assigned a second weight value, which is greater than the first weight value; if the difference-connected object exists in both the gold standard labeled data and the manually labeled data, it is assigned a third weight value, which is between the first and second weight values.
[0064] Optionally, the generation module 306 can be specifically used for: Based on the comparison between physical volume and preset clinical volume threshold, an independent volume reward term is calculated. The relative size of the object, the confidence weight of the annotation source, the volume reward term, and the noise penalty factor are used as input parameters to form a comprehensive scoring function. The corresponding parameters of each differentially connected object are substituted into the comprehensive scoring function, and the calculation is performed to output the intelligent retention score corresponding to each differentially connected object.
[0065] In this embodiment of the invention, a multi-dimensional, adaptive comprehensive scoring system is constructed by comprehensively applying objective measures based on physical volume, relative size of objects reflecting global proportion, credibility weight based on annotation source, and noise penalty for extremely small isolated pixel groups. This system can accurately distinguish between tiny real lesions caused by anisotropic resolution and random noise or annotation errors, effectively solving the drawback of traditional methods that mistakenly exclude important clinical targets due to a single reliance on voxel number threshold. It significantly improves the clinical accuracy and reliability of fused annotations, and ensures the clinical applicability of the final results through human-computer interaction.
[0066] above Figure 3 and Figure 4 The medical image annotation and fusion device in this embodiment of the invention will be described in detail from the perspective of modular functional entities. The electronic device in this embodiment of the invention will be described in detail from the perspective of hardware processing.
[0067] See Figure 5 As shown, the electronic device includes a processor 500 and a memory 501. The memory 501 stores machine-executable instructions that can be executed by the processor 500. The processor 500 executes the machine-executable instructions to implement the above-described medical image annotation and fusion method.
[0068] Furthermore, Figure 5 The electronic device shown also includes a bus 502 and a communication interface 503. The processor 500, the communication interface 503 and the memory 501 are connected via the bus 502.
[0069] The memory 501 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 503 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 502 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0070] The processor 500 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 500 or by instructions in software form. The processor 500 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 501. The processor 500 reads the information in memory 501 and, in conjunction with its hardware, completes the method steps of the aforementioned embodiment.
[0071] The present invention also provides an electronic device, the computer device including a memory and a processor, the memory storing computer-readable instructions, which, when executed by the processor, cause the processor to perform the steps of the medical image annotation and fusion method described in the above embodiments.
[0072] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when the instructions are executed on a computer, cause the computer to perform the steps of the medical image annotation and fusion method.
[0073] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0074] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0075] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A medical image annotation and fusion method, characterized in that, The medical image annotation and fusion method includes: Obtain labeled data and corresponding image metadata for medical images, wherein the labeled data includes gold standard labeled data and manually labeled data; Based on the labeled data, perform difference set calculation to obtain the difference mask; Perform connected component analysis on the difference mask to obtain at least one difference connected object; For each differentially connected object, calculate the corresponding physical volume based on the image metadata; Obtain the relative size of each differential connected object, the confidence score of the annotation source, and the noise penalty factor; Based on the physical volume, the relative size of the object, the confidence level of the annotation source, and the noise penalty factor, a comprehensive scoring function is constructed, and a retained score for each object is generated; Based on the retained scores, all differentially connected objects are initially screened, and an interactive interface is provided for users to view and correct the screening results in order to obtain the fusion annotation results.
2. The medical image annotation and fusion method according to claim 1, characterized in that, The step of performing difference set calculation based on the labeled data to obtain the difference mask includes: Perform a union operation on the gold standard labeled data and the manually labeled data; Perform an intersection operation on the gold standard labeled data and the manually labeled data; The result of the union operation and the result of the intersection operation are then subjected to a difference operation to generate a difference mask. The formula for calculating the difference mask is as follows: Mdiff=(VGT∪ VVal) \ (VGT∩ VVal) Among them, Mdiff is the difference mask, VGT is the gold standard data, and VVal is the manually annotated data.
3. The medical image annotation and fusion method according to claim 1, characterized in that, The connection region analysis performed on the difference mask to obtain at least one difference connected object includes: A connected component labeling algorithm is applied to the difference mask in three-dimensional voxel space; Based on the three-dimensional six-neighbor or twenty-six-neighbor connectivity criteria, spatially adjacent voxels with the same label value are aggregated into an independent connected region. Define each independent connected region as a differential connected object.
4. The medical image annotation and fusion method according to claim 1, characterized in that, The step of calculating the corresponding physical volume based on the image metadata includes: Voxel spacing information is extracted from the image metadata to determine the physical size of a single voxel in three-dimensional space. The voxel spacing information includes the X-axis spacing, Y-axis spacing, and Z-axis spacing. Count the number of voxels in the differentially connected objects; The physical volume is calculated based on the number of voxels and the physical size of each voxel. The formula for calculating the physical volume is as follows: Vphy(Ri)=Nvoxel× (dx× dy× dz) Where Vphy(Ri) represents the volume of the i-th differentially connected object, Nvoxel is the number of voxels, dx is the spacing along the X-axis, dy is the spacing along the Y-axis, and dz is the spacing along the Z-axis.
5. The medical image annotation and fusion method according to claim 1, characterized in that, The process of obtaining the relative size of each differentially connected object, the confidence level of the annotation source, and the noise penalty factor includes: Calculate the ratio of the number of voxels contained in the differential connected object to the total number of voxels in the entire differential mask, and use this ratio as the relative size of the object; Based on the presence of the differentially connected objects in the gold standard labeled data and the manually labeled data, corresponding labeling source confidence weights are assigned; If the number of voxels in the differentially connected object is lower than a preset penalty threshold, a predefined penalty coefficient or a fixed penalty score is deducted to generate a noise penalty factor.
6. The medical image annotation and fusion method according to claim 5, characterized in that, The step of querying a preset weight value table and assigning a corresponding source confidence weight based on the presence of the differential connectivity object in the gold standard labeled data and the manually labeled data includes: If the difference connectivity object exists only in the gold standard labeled data, then a first weight value is assigned; If the difference connectivity object exists only in the manually labeled data, then a second weight value is assigned, which is greater than the first weight value; If the difference connectivity object exists in both the gold standard labeled data and the manually labeled data, a third weight value is assigned, which is between the first weight value and the second weight value.
7. The medical image annotation and fusion method according to claim 1, characterized in that, The comprehensive scoring function, constructed based on the physical volume, relative object size, source confidence of annotation, and noise penalty factor, generates a retained score for each object, including: Based on the comparison between the physical volume and the preset clinical volume threshold, an independent volume bonus is calculated; The relative size of the object, the confidence weight of the annotation source, the volume reward item, and the noise penalty factor are used as input parameters to form a comprehensive scoring function. Substitute the corresponding parameters of each differentially connected object into the comprehensive scoring function, perform the calculation, and output the intelligent retention score corresponding to each differentially connected object.
8. A medical image annotation and fusion device, characterized in that, The medical image annotation and fusion device includes: The first acquisition module is used to acquire the annotation data of medical images and the corresponding image metadata. The annotation data includes gold standard annotation data and manually annotated data. The first calculation module is used to perform difference set calculation based on the labeled data to obtain the difference mask; The analysis module is used to perform connected region analysis on the difference mask to obtain at least one difference connected object; The second calculation module is used to calculate the corresponding physical volume for each differentially connected object based on the image metadata. The second acquisition module is used to acquire the relative size of each differential connected object, the confidence of the annotation source, and the noise penalty factor; The generation module is used to construct a comprehensive scoring function based on the physical volume, the relative size of the object, the confidence level of the annotation source, and the noise penalty factor, and generate a retained score for each object; The processing module is used to perform preliminary screening of all differential connected objects based on the retained scores, and provides an interactive interface for users to view and correct the screening results in order to obtain the fusion annotation results.
9. An electronic device, characterized in that, The electronic device includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the electronic device to execute the medical image annotation and fusion method as described in any one of claims 1-7.
10. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions are executed by the processor, they implement the medical image annotation and fusion method as described in any one of claims 1-7.
