WO2023088275A1 - Automatic roi positioning method and apparatus, surgical robot system, device and medium - Google Patents

Automatic roi positioning method and apparatus, surgical robot system, device and medium Download PDF

Info

Publication number
WO2023088275A1
WO2023088275A1 PCT/CN2022/132130 CN2022132130W WO2023088275A1 WO 2023088275 A1 WO2023088275 A1 WO 2023088275A1 CN 2022132130 W CN2022132130 W CN 2022132130W WO 2023088275 A1 WO2023088275 A1 WO 2023088275A1
Authority
WO
WIPO (PCT)
Prior art keywords
roi
coronal
sagittal
image sequence
target
Prior art date
Application number
PCT/CN2022/132130
Other languages
French (fr)
Chinese (zh)
Inventor
白全海
刘鹏飞
刘赫
Original Assignee
苏州微创畅行机器人有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州微创畅行机器人有限公司 filed Critical 苏州微创畅行机器人有限公司
Publication of WO2023088275A1 publication Critical patent/WO2023088275A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/003Navigation within 3D models or images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • G06T7/74Determining position or orientation of objects or cameras using feature-based methods involving reference images or patches

Definitions

  • the present application relates to the technical field of image processing, in particular to an ROI automatic positioning method, device, surgical robot system, equipment and media.
  • the main functions of human joints are connection and movement.
  • the medical image may be a magnetic resonance imaging (Magnetic Resonance Imaging, MRI) image, may also be a computerized tomography (Computed Tomography, CT) image, or may be a positron emission computed tomography (Positron Emission Computed Tomography, PET) image, Ultrasound images and the like may also be used. Process the obtained medical images and use them as auxiliary means for subsequent clinical diagnosis and treatment.
  • a ROI automatic positioning method, device, surgical robot system, equipment, and medium are provided to reduce the operator's manual positioning of joints and other ROI operations, improve the accuracy of ROI positioning, and improve work efficiency. Simplify the operation process of navigation software for related operations, and improve the versatility of navigation software.
  • the present application provides a ROI automatic positioning method, comprising: acquiring original image data; preprocessing the original image data to obtain a coronal image sequence and a sagittal image sequence; The ROI in the image is positioned; the ROI positioned in the coronal image sequence is integrated to obtain the coronal ROI integration area, and the ROI located in the sagittal image sequence is integrated to obtain the sagittal ROI integration area; the coronal ROI integration area is obtained; Coordinate transformation is performed on the plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data.
  • before the positioning of the ROI in the images of the coronal view sequence and the sagittal view sequence further includes: Classifying the images in the sequence, determining whether each image in the coronal image sequence and the sagittal image sequence contains an ROI; filtering images that do not contain the ROI in the coronal image sequence and the sagittal image sequence.
  • the preprocessing the original image data to obtain the coronal image sequence and the sagittal image sequence includes: performing standardization processing on the original image data to obtain standardized three-dimensional image data; according to the Standardize the three-dimensional image data to obtain the coronal image sequence and the sagittal image sequence.
  • the standardization processing of the original image data to obtain standardized three-dimensional image data includes: obtaining parameters of the original image data; obtaining target image parameters and an image transformation interpolation algorithm; The target image parameters and the image transformation interpolation algorithm perform standardization processing on the original image data to obtain the standardized three-dimensional image data.
  • the parameters of the original image data include at least one of the shooting direction angle, resolution, origin coordinates and three-dimensional size of the original image;
  • the target image parameters include at least the target shooting direction Angle, target resolution, target origin coordinates, and target 3D size.
  • the ROI automatic positioning method further includes: performing window width and window level processing on the images in the coronal image sequence and the sagittal image sequence.
  • each image in the coronal image sequence and the sagittal image sequence is Before including ROI, further include:
  • the locating the ROI in the images of the coronal image sequence and the sagittal image sequence includes: locating all ROIs in the coronal image sequence and the sagittal image sequence performing feature extraction on the image; predicting position information of the ROI contained in the images in the coronal image sequence and the sagittal image sequence according to the extracted features.
  • the location information includes center point coordinates and size information of the ROI.
  • integrating the ROI positioned in the coronal image sequence to obtain a coronal ROI integration area, and integrating the ROI positioned in the sagittal image sequence to obtain a sagittal ROI integration area includes : Based on the non-maximum value suppression algorithm, integrate the overlapping parts of the ROI positioned in the coronal image sequence to obtain the target coronal ROI; based on the non-maximum value suppression algorithm, integrate all the positioned in the sagittal image sequence The overlapping part of the ROI is used to obtain the target sagittal plane ROI; the target coronal plane ROI and the target sagittal plane ROI are respectively clustered to obtain the coronal plane ROI integration area and the sagittal plane ROI integration area.
  • performing clustering processing on the target coronal ROI and the target sagittal ROI respectively to obtain the coronal ROI integration area and the sagittal ROI integration area comprising: performing clustering processing on the target coronal ROI according to a k-means clustering algorithm to obtain an integrated area of the coronal ROI; performing clustering processing on the target sagittal ROI according to a k-means clustering algorithm, The sagittal plane ROI integration area is obtained.
  • performing clustering processing on the target coronal ROI according to the k-means clustering algorithm to obtain the coronal ROI integration area includes: selecting a plurality of the target coronal ROIs As a cluster center; according to the intersection of each cluster center and other said target coronal planes, the target coronal plane ROI is clustered to obtain the coronal plane ROI integration area; said clustering according to k-means
  • the similar algorithm performs clustering processing on the target sagittal plane ROI to obtain the integrated region of the sagittal plane ROI, including: selecting a plurality of the target sagittal plane ROIs as cluster centers; The intersection and union comparison of the target sagittal plane performs clustering processing on the target sagittal plane ROI to obtain the integration region of the coronal plane ROI.
  • the present application also provides a ROI automatic positioning device, including: a data acquisition module for acquiring original image data; a data preprocessing module for preprocessing the original image data to obtain a coronal image sequence and a sagittal image sequence
  • the positioning module is used to locate the ROI of the image in the coronal image sequence and the sagittal image sequence;
  • the integration module is used to integrate the ROI positioned in the coronal image sequence to obtain a coronal ROI integration area, Integrating the ROIs positioned in the sagittal image sequence to obtain a sagittal plane ROI integration area; a coordinate transformation module for performing coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the The 3D coordinates of the target ROI in the original image data.
  • the present application also provides a surgical robot system configured to execute any one of the methods for automatic ROI positioning described above.
  • the present application also provides a computer device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, any one of the above ROI automatic positioning methods is implemented.
  • the present application also provides a computer-readable storage medium, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by one or more processors, the one or more processors perform any of the above-mentioned The ROI automatic positioning method.
  • Fig. 1 is a schematic diagram of the joint position in the coronal view and sagittal view of the medical image manually marked by the operator based on the navigation software in the related art of the present application;
  • FIG. 2 is an application environment diagram of the ROI automatic positioning method according to an embodiment of the present application
  • FIG. 3 is a flowchart of an ROI automatic positioning method according to an embodiment of the present application.
  • Fig. 4 is the flowchart of the preprocessing of the original image data according to an embodiment of the present application.
  • FIG. 5 is a flow chart of standardization processing of original image data according to an embodiment of the present application.
  • FIG. 6 is a flowchart of determining whether an ROI is included in a coronal image sequence and a sagittal image sequence according to an embodiment of the present application
  • Fig. 7 is a flow chart of classifying coronal image sequences and sagittal image sequences according to an embodiment of the present application
  • FIG. 8 is a flow chart of image preprocessing in a coronal image sequence and a sagittal image sequence according to an embodiment of the present application
  • FIG. 9 is a flowchart of ROI positioning in an image according to an embodiment of the present application.
  • Fig. 10a is a heat map of a target area according to an embodiment of the present application.
  • Fig. 10b shows the prediction result of the offset of the center point of the target area according to an embodiment of the present application
  • Fig. 10c shows the prediction results of the length and width of the target area according to an embodiment of the present application
  • FIG. 11 is a flow chart of integrating multiple overlapping ROIs based on a non-maximum value suppression algorithm according to an embodiment of the present application
  • FIG. 12 shows a process of integrating multiple overlapping ROIs based on a non-maximum value suppression algorithm according to an embodiment of the present application
  • FIG. 13 is a flow chart of integrating multiple overlapping ROI coordinate frames using an NMS algorithm combined with a clustering algorithm according to an embodiment of the present application;
  • FIG. 14 is a schematic diagram of multiple ROI coordinate frames that integrate and overlap multiple ROIs using an NMS algorithm combined with a clustering algorithm according to an embodiment of the present application;
  • Fig. 15 is a schematic diagram of transforming the coordinates of the ROI in the coronal plane and the sagittal plane to the three-dimensional coordinates of the ROI in the original image;
  • FIG. 16 is a schematic structural diagram of an automatic ROI positioning device according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of an operator's known manual marking of joint positions in coronal and sagittal views of a medical image based on navigation software.
  • the operator before joint surgery, the operator first manually marks the joint position in the coronal view and sagittal view of the medical image based on the navigation software, and then the navigation system automatically gives the three-dimensional coordinates of the joint.
  • This manual marking method is time-consuming and labor-intensive, which increases the workload of the operator.
  • the operator needs to locate different joints in different views. For example, in the navigation software, the left and right knee joints and hip joints need to be marked in the coronal view and sagittal view. The operator needs to perform 8 operations, which greatly Increase the labor intensity of the operator.
  • This application provides a method for automatically locating a region of interest (region of interest, ROI), which can be applied to the application environment shown in FIG. 2 .
  • the application environment includes a surgical trolley 1, a mechanical arm 2, a tool target 21, a femoral target 22, a tibial target 23, a base target 24, a pointed target 241, an osteotomy guide tool 31, an oscillating saw 41, and an NDI navigation device 51 , auxiliary display 52, navigation trolley 61, main display 62, keyboard 63 and operating bed 81.
  • the operator can perform preoperative operations such as key point marking in the corresponding three-dimensional model through the navigation software.
  • surgical treatment is performed using each device in the application environment diagram.
  • the ROI automatic positioning method may be implemented by an ROI positioning device, and its executing body may be a computer processor.
  • the operator imports the three-dimensional model described by the medical image sequence, and triggers the ROI automatic positioning method of the present application.
  • the operator can determine the position in the imported three-dimensional model in the display interface Each ROI.
  • the specific process of data processing from the operator importing the medical image sequence until triggering the ROI automatic positioning method may include: reading user data through navigation software; opening up shared memory and writing data; starting the ROI automatic positioning device through message notification.
  • Fig. 3 is the flowchart of the ROI automatic positioning method of an embodiment of the present application, as shown in Fig. 3, the ROI automatic positioning method provided by the present application includes the following steps:
  • Step S11 obtaining original image data
  • Step S12 preprocessing the original image data to obtain a coronal image sequence and a sagittal image sequence
  • Step S13 locating the ROI in the images of the coronal view sequence and the sagittal view sequence
  • Step S14 integrating the ROI positioned in the coronal image sequence to obtain a coronal ROI integration area, and integrating the ROI located in the sagittal image sequence to obtain a sagittal ROI integration area;
  • Step S15 performing coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data.
  • step S11 the original image data is acquired.
  • the original image data in the embodiments of the present application is, for example, a three-dimensional medical image
  • the computer device can obtain the medical image by performing three-dimensional reconstruction on the data of the patient's part to be examined collected by the scanning device.
  • the medical image in this application is described by taking a computerized tomography (Computed Tomography, CT) image as an example.
  • step S12 the original image data is preprocessed to obtain a coronal image sequence and a sagittal image sequence.
  • the preprocessing of the original image data in this application includes standardizing the original image data, so as to convert the original image data (such as the 3D model of the whole lower limb) into coronal and sagittal image sequences under unified image rules .
  • Fig. 4 is a flow chart of preprocessing the original image data according to an embodiment of the present application. As shown in Fig. 4, according to the embodiment of the present application, step S12 preprocesses the original image data to obtain the coronal image sequence and the coronal image sequence
  • the sagittal image sequence includes the following steps S121 and S122.
  • step S121 standardization processing is performed on the original image data to obtain standardized three-dimensional image data.
  • FIG. 5 is a flow chart of standardization processing of original image data according to an embodiment of the present application. As shown in FIG. 5 , step S121 performs standardization processing on the original image data to obtain standardized three-dimensional image data, including the following steps S1211 to S1213.
  • step S1211 parameters of the original image data are obtained.
  • the parameters of the original image data include at least one of shooting direction angle, resolution, origin coordinates and three-dimensional size of the original image.
  • step S1212 the target image parameters and image transformation and interpolation algorithm are acquired.
  • the target image parameters include at least one of target orientation angle, target resolution, target origin coordinates, and target three-dimensional size.
  • the image transformation interpolation algorithm may be nearest neighbor method, bilinear interpolation method or cubic interpolation method, which is not limited in this application.
  • step S1213 standardize the original image data according to the target image parameters and the image transformation and interpolation algorithm to obtain the standardized three-dimensional image data.
  • the standardization process of image data can also be min-max standardization, and the original image data is linearly transformed, so that the result value is mapped to between 0-1, and the conversion formula is specifically:
  • max is the maximum signal value of the original image data
  • min is the minimum signal value of the original image data
  • P i is the signal value of the i-th point in the original image data
  • P i * is the signal value of the i-th point in the normalized image data.
  • step S122 the coronal image sequence and the sagittal image sequence are obtained according to the standardized three-dimensional image data.
  • a sequence of coronal images is obtained by extracting each 2D image section along the coronal direction in the 3D image data, wherein each 2D image section is regarded as a coronal image.
  • a sequence of sagittal images is obtained by extracting each two-dimensional image slice along the sagittal plane direction in the three-dimensional image data, wherein each two-dimensional image slice is regarded as a sagittal image.
  • a coronal view sequence and a sagittal view sequence are obtained.
  • Fig. 6 is a flow chart of determining whether an ROI is included in a coronal image sequence and a sagittal image sequence according to an embodiment of the present application.
  • the processing speed further includes steps S125 and S126 before step S13 locates the ROI of the images in the coronal view sequence and the sagittal view sequence.
  • step S125 by classifying the images in the coronal image sequence and the sagittal image sequence, it is determined whether each image in the coronal image sequence and the sagittal image sequence contains an ROI.
  • the images in the coronal image sequence and the sagittal image sequence contain ROIs, and some do not contain ROIs.
  • the ROI pre-classification network is used to classify the images in the coronal image sequence and the sagittal image sequence, and whether the classification label output by the pre-classification network contains ROI, It is determined whether each image in the sequence of coronal images and the sequence of sagittal images contains a ROI.
  • step S125 classifies images in the coronal image sequences and the sagittal image sequences , determining whether each image in the coronal image sequence and the sagittal image sequence contains ROI includes the following steps S1251-S1253.
  • step S1251 feature extraction is performed on the images in the coronal image sequence and the sagittal image sequence respectively.
  • a backbone network is used to perform feature extraction on images in the coronal image sequence and the sagittal image sequence respectively.
  • the backbone network is any one of VGG series and Resnet series.
  • step S1252 the extracted features are mapped to a binary classification space.
  • a fully connected network is used to map the features extracted by the backbone network to a binary classification space.
  • the classification result is 0 or 1, for example, 0 represents an image containing only the background, and 1 represents an image containing ROI.
  • step S1253 according to the output classification result, it is determined whether the images in the coronal image sequence and the sagittal image sequence contain ROI.
  • the determination is made according to the classification results of 0 and 1, for example, the coronal and sagittal images with a classification result of 1 are determined to include ROI images; the coronal and sagittal images with a classification result of 0 and Sagittal images, identified as images that do not contain ROIs.
  • step S126 the images in the coronal image sequence and the sagittal image sequence that do not contain ROI are filtered.
  • the coronal image and the sagittal image containing the ROI are respectively composed of a coronal image sequence and a sagittal image sequence for further target detection of the ROI.
  • Fig. 8 is a flow chart of image preprocessing in coronal image sequence and sagittal image sequence in an embodiment of the present application.
  • Image requirements before the coronal image sequence and the sagittal image sequence are input into the pre-classification network, the images in the coronal image sequence and the sagittal image sequence need to be preprocessed, that is, before step S125, further include the step S123 and S124.
  • step S123 window width and window level processing is performed on the images in the coronal image sequence and the sagittal image sequence.
  • the original image is, for example, a CT image
  • the window width and level of the CT image in the coronal view sequence and the sagittal view sequence can be set, and based on the window width and level of the CT image, performing window width and window level processing on the CT images in the coronal image sequence and the sagittal image sequence, so as to enhance the ROI data of the CT images in the coronal image sequence and the sagittal image sequence.
  • it also includes adjusting the size of the images in the coronal image sequence and the sagittal image sequence, for example, adjusting the image size to 1024 ⁇ 512.
  • image size There are two ways to adjust image size including edge cropping and padding.
  • step S124 preprocessing is performed on the enhanced images in the coronal image sequence and the sagittal image sequence.
  • the enhanced coronal image can also be processed according to the requirements of the pre-classification network sequence and the sagittal image sequence were normalized.
  • the normalization method can be a Z-score normalization method:
  • is the mean value of the image data in the enhanced coronal image sequence and the sagittal image sequence
  • is the standard deviation of the image data in the enhanced coronal image sequence and the sagittal image sequence
  • step S13 the ROIs of the images in the coronal view sequence and the sagittal view sequence are located.
  • the target detection network is used to locate the ROI of each coronal image in the coronal image sequence, and to locate the ROI of each sagittal image in the sagittal image sequence to obtain the desired target.
  • FIG. 9 is a flow chart of ROI positioning in an image according to an embodiment of the present application. As shown in FIG. 9, step S13 locates the ROI of the images in the coronal image sequence and the sagittal image sequence, including the following Step S131 and Step S132.
  • step S131 feature extraction is performed on images in the coronal image sequence and the sagittal image sequence.
  • a feature extraction network is used to perform feature extraction on the images in the coronal image sequence and the sagittal image sequence respectively.
  • the feature extraction network can be Resnet50, Resnet101, HourglassNet or MobelNet.
  • the feature extraction network uses the extracted features for target prediction.
  • the convolution operation is performed on the images in the coronal image sequence and the sagittal image sequence through a convolutional neural network to realize feature extraction.
  • the convolutional neural network uses a 3 ⁇ 3 filter, and the filter is scanned to the right and down in sequence, and the value of each element of the output matrix can be obtained to realize the filtering of the image to be processed.
  • the calculation process can be as follows, for example:
  • Black line frame: 3 1 ⁇ 1+0 ⁇ 1+0 ⁇ 1+1 ⁇ 0+1 ⁇ 1+1 ⁇ 0+0 ⁇ 1+1 ⁇ 0+1 ⁇ 1
  • a pooling layer is added between adjacent convolutional layers in the convolutional neural network.
  • the pooling layer for example, can use a 2 ⁇ 2 filter to perform a maximum pooling operation on a 4 ⁇ 4 image, and the result takes the corresponding maximum value in the 2 ⁇ 2 window, and finally obtains a 2 ⁇ 2 image.
  • the maximum pooling provides a way to down-sample the convolutional matrix for subsequent network layers to continue processing until the image features used to determine whether the image input to the target prediction network contains ROI are obtained.
  • step S132 the position information of the ROI included in the images in the coronal image sequence and the sagittal image sequence is predicted according to the extracted features.
  • the position information of the ROI includes the center point coordinates and size information of the ROI.
  • the results shown in Figures 10a-10c can be predicted.
  • the heat map shown in Fig. 10a shows the probability that each image block in the image contains a joint.
  • Figure 10b shows the offset between the center point of the joint area and the actual center point in the heat map, and the vertical and horizontal coordinate values represent the offset angle and sum of the predicted center point of the joint area relative to the actual center point of the joint Offset length.
  • Figure 10c shows the prediction of the length and width of the joint area, and using the predicted coordinate offset of the center point of the joint area to modify the predicted center point coordinates of the joint area, according to the size of the joint area predicted by the target detection network Information (such as length and width) and the corrected center point, the joint area in the image can be determined.
  • target detection network Information such as length and width
  • the ROI of each image in each coronal image sequence and sagittal image sequence is obtained through detection by the target detection network.
  • the ROIs covering the dimension of the coronal view and the sagittal view of the three-dimensional model it is necessary to integrate the detected ROIs of the images.
  • step S14 the ROIs located in the coronal image sequence are integrated to obtain a coronal ROI integration area, and the ROIs located in the sagittal image sequence are integrated to obtain a sagittal ROI integration area.
  • the coronal plane ROI integration area and the sagittal plane ROI integration area In order to obtain the coronal plane ROI integration area and the sagittal plane ROI integration area, in an embodiment of the present application, based on the non-maximum suppression (Non-Maximum Suppression, NMS) algorithm, multiple overlapping ROIs are integrated to obtain the coronal The coronal ROI integration area of the ROI of the coronal image of the map sequence, and the sagittal ROI integration area of the ROI of the sagittal image of the overlay sagittal image sequence.
  • NMS non-Maximum Suppression
  • Fig. 11 is a flow chart of integrating multiple overlapping ROIs based on the non-maximum suppression algorithm in one embodiment of the present application.
  • step S14 integrates the ROIs positioned in the coronal image sequence to obtain the coronal ROI integration area , integrating the ROIs positioned in the sagittal image sequence to obtain a sagittal image ROI integration area, including the following steps S1401-S1403.
  • step S1401 based on a non-maximum value suppression algorithm, the overlapping parts of the ROIs positioned in the coronal image sequence are integrated to obtain a target coronal ROI.
  • step S1402 based on the non-maximum value suppression algorithm, the overlapping parts of the ROIs positioned in the sagittal image sequence are integrated to obtain a target sagittal ROI.
  • step S1403 cluster processing is performed on the target coronal ROI and the target sagittal ROI to obtain the coronal ROI integration area and the sagittal ROI integration area.
  • Figure 12 shows the process of integrating multiple overlapping joint areas based on the non-maximum value suppression algorithm in an embodiment of the present application.
  • the joint area with a non-maximum value of 0.78 and the joint area with a non-maximum value of 0.80 The joint area with a maximum value of 0.86 is suppressed, and the joint area corresponding to the maximum value of 0.92 is retained, thereby removing redundant joint areas and retaining the best joint area.
  • a clustering algorithm may also be used to eliminate redundant joint regions and retain the best joint regions.
  • the target coronal plane ROI is clustered to obtain the coronal plane ROI integration area;
  • the target sagittal plane ROI is clustered to obtain the target coronal plane ROI. Said sagittal plane ROI integration area.
  • the target coronal ROI is clustered, and the step of obtaining the coronal ROI integration area includes: selecting a plurality of the target coronal ROIs as cluster centers; The intersection and union comparison between the cluster center and the other target coronal planes is used to cluster the target coronal plane ROIs to obtain the coronal plane ROI integrated regions.
  • the target sagittal plane ROI is clustered, and the step of obtaining the sagittal plane ROI integration area includes: selecting a plurality of the target sagittal plane ROIs as cluster centers; The intersection and union comparison between the cluster center and other target sagittal planes is used to cluster the target sagittal plane ROI to obtain the coronal plane ROI integration area.
  • step S14 uses the NMS algorithm combined with the clustering algorithm to integrate multiple overlapping ROIs, and step S14 integrates the ROIs positioned in the coronal image sequence to obtain the coronal plane
  • the ROI integration area, integrating the ROIs positioned in the sagittal image sequence to obtain the sagittal plane ROI integration area specifically includes the following steps S1411-S1418.
  • step S141 multiple overlapping ROIs of each ROI are integrated based on a non-maximum value algorithm.
  • step S1412 the initial value of the number n of cluster centers is set to 0.
  • step S1413 a cluster center corresponding to the current ROI is selected.
  • step S1414 the number n of cluster centers is accumulated by 1, and an intersection over union (IOU) between the current ROI and the current cluster center is calculated.
  • IOU intersection over union
  • step S1415 it is judged whether the IOU is greater than a given threshold.
  • step S1416 if the IOU is greater than a given threshold, the current ROI is classified into the current cluster center.
  • step S1417 if the IOU is less than or equal to a given threshold, it is judged whether the number n of the calculated cluster centers is greater than or equal to k, where k is the total number of cluster centers corresponding to each type of ROI set ; If not, reselect a cluster center from unselected cluster centers as the current cluster center, and return to step S1414.
  • step S1418 it is judged whether all ROIs have been traversed, if not, then select an ROI from unclustered ROIs as the current ROI, and return to execute step S1412; if yes, end the integration of the ROI, The coronal plane ROI integration area and the sagittal plane ROI integration area are obtained.
  • the step S1413 selects a cluster center corresponding to the ROI, specifically, randomly selects a cluster center corresponding to the ROI.
  • the re-selecting a cluster center from unselected cluster centers may be re-randomly selecting a cluster center from unselected cluster centers.
  • the above-mentioned steps S1411 - S1418 are performed respectively, so as to realize the integration of multiple overlapping joint areas of all joints.
  • the NMS algorithm combined with the clustering algorithm to integrate multiple joint areas of the joint even after the non-maximum value suppression is performed, there may be some frames that deviate from the center of the cluster, through the joint area integration method of this application, it can also be obtained Accurate coronal and sagittal joint positions.
  • step S15 coordinate transformation is performed on the coronal image region of the ROI and the sagittal image region of the ROI to obtain the three-dimensional coordinates of the target ROI in the original image data.
  • the three-dimensional coordinates of the ROI are calculated according to the obtained coordinates of the ROI on the coronal plane and the sagittal plane.
  • P ct (X,Y,Z) represents the three-dimensional coordinates of the ROI in the original CT image
  • P i ( xi ,y i ) represents the coordinates of the ROI on the i-th coronal plane
  • P j (x j ,y j ) represents the coordinates of the ROI on the jth sagittal plane
  • the three-dimensional coordinates of P i ( xi ,y i ) transformed into the original CT image are CT( xi ,Y,y i )
  • P j (x j ,y j ) The three-dimensional coordinates transformed into the original CT image are CT(X, x j , y j ), according to the above formula, the three-dimensional coordinates of the ROI under the original CT image can be deduced
  • the ROI automatic positioning method of the present application does not need to perform calculations on three-dimensional data, reduces computational complexity, reduces data processing time, can realize automatic positioning of ROI parts in three-dimensional space, and detects differences in medical images at one time.
  • the ROI position of the navigation software simplifies the operation process of the navigation software, improves the versatility of the navigation software, improves work efficiency, and reduces the workload of the navigation software operators.
  • the present application provides an automatic ROI positioning device. As shown in FIG. 1
  • the data acquisition module 101 is configured to acquire original image data.
  • the data preprocessing module 102 performs preprocessing on the original image data to obtain a coronal image sequence and a sagittal image sequence.
  • the positioning module 103 locates the ROI of the images in the coronal view sequence and the sagittal view sequence.
  • the integration module 104 integrates the ROIs located in the coronal image sequence to obtain a coronal ROI integration area, and integrates the ROIs located in the sagittal image sequence to obtain a sagittal ROI integration area.
  • the coordinate transformation module 105 performs coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data.
  • This application provides an ROI automatic positioning device, which does not need to perform calculations on three-dimensional data, reduces computational complexity, reduces data processing time, can realize automatic positioning of ROI parts in three-dimensional space, and detects medical images at one time
  • the different ROI parts on the map simplifies the operation process of the navigation software, improves the versatility of the navigation software, improves the work efficiency, and reduces the workload of the navigation software operators.
  • Each module in the above-mentioned ROI automatic positioning device can be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of the above-mentioned modules.
  • the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
  • the present application provides a surgical robot system.
  • the robot system is configured to execute the ROI automatic positioning method in each of the above embodiments.
  • the robot system does not need to perform calculations on the three-dimensional data, which reduces the computational complexity and the time of data processing, and can realize the automatic positioning of the ROI in the three-dimensional space.
  • the different ROI parts on the medical image can be detected accurately, which simplifies the operation process of the navigation software, improves the versatility of the navigation software, improves the work efficiency, and reduces the workload of the navigation software operators.
  • the present application provides a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the ROI automatic positioning method in any embodiment of the present application when executing the computer program.
  • the present application provides a computer-readable storage medium on which computer-readable instructions are stored.
  • the computer-readable instructions are executed by one or more processors, the one or more processors execute the ROI automatic positioning method of any embodiment of the present application.
  • Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM random access memory
  • RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Abstract

The present invention discloses an automatic ROI positioning method, comprising: obtaining original image data; preprocessing the original image data to obtain a coronal image sequence and a sagittal image sequence; positioning the ROI of the images in the coronal image sequence and the sagittal image sequence; integrating the ROI positioned in the coronal image sequence to obtain a coronal plane ROI integration area, and integrating the ROI positioned in the sagittal image sequence to obtain a sagittal plane ROI integration area; and performing coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain three-dimensional coordinates of a target ROI in the original image data.

Description

ROI自动定位方法、装置、手术机器人系统、设备及介质ROI automatic positioning method, device, surgical robot system, equipment and medium
本申请要求2021年11月19日申请的申请号为202111391566.8的中国专利申请的优先权,在此将其全文引入作为参考。This application claims the priority of the Chinese patent application No. 202111391566.8 filed on November 19, 2021, which is hereby incorporated by reference in its entirety.
技术领域technical field
本申请涉及图像处理技术领域,特别是涉及一种ROI自动定位方法、装置、手术机器人系统、设备及介质。The present application relates to the technical field of image processing, in particular to an ROI automatic positioning method, device, surgical robot system, equipment and media.
背景技术Background technique
人体关节的主要功能是连接和运动。为了医疗或医学研究,对人体或人体某部分,以非侵入方式取得内部关节的医学图像。医学图像可以为磁共振成像(Magnetic Resonance Imaging,MRI)图像,也可以为电子计算机断层扫描(Computed Tomography,CT)图像,还可以为正电子发射计算机断层扫描(Positron Emission Computed Tomography,PET)图像,还可以为超声图像等。对已经获得的医学图像作处理,并以此作为后续的临床诊断、治疗等辅助手段。The main functions of human joints are connection and movement. The non-invasive acquisition of medical images of the internal joints of a human body or part of a human body for medical treatment or medical research. The medical image may be a magnetic resonance imaging (Magnetic Resonance Imaging, MRI) image, may also be a computerized tomography (Computed Tomography, CT) image, or may be a positron emission computed tomography (Positron Emission Computed Tomography, PET) image, Ultrasound images and the like may also be used. Process the obtained medical images and use them as auxiliary means for subsequent clinical diagnosis and treatment.
发明内容Contents of the invention
基于此,根据本申请的实施例,提供一种ROI自动定位方法、装置、手术机器人系统、设备及介质,以减少操作人员手工定位关节等ROI的操作,提高ROI定位的精度,提高工作效率,简化相关手术用导航软件的操作流程,提高导航软件的通用性。Based on this, according to the embodiments of the present application, a ROI automatic positioning method, device, surgical robot system, equipment, and medium are provided to reduce the operator's manual positioning of joints and other ROI operations, improve the accuracy of ROI positioning, and improve work efficiency. Simplify the operation process of navigation software for related operations, and improve the versatility of navigation software.
本申请提供一种ROI自动定位方法,包括:获取原始图像数据;对所述原始图像数据进行预处理,得到冠状图序列和矢状图序列;对所述冠状图序列和所述矢状图序列的图像中的ROI进行定位;整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域;对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到所述原始图像数据中目标ROI的三维坐标。The present application provides a ROI automatic positioning method, comprising: acquiring original image data; preprocessing the original image data to obtain a coronal image sequence and a sagittal image sequence; The ROI in the image is positioned; the ROI positioned in the coronal image sequence is integrated to obtain the coronal ROI integration area, and the ROI located in the sagittal image sequence is integrated to obtain the sagittal ROI integration area; the coronal ROI integration area is obtained; Coordinate transformation is performed on the plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data.
在本申请的一实施例中,在所述对所述冠状图序列和所述矢状图序列的图像中的ROI进行定位之前,还包括:通过对所述冠状图序列和所述矢状图序列中的图像进行分类,确定所述冠状图序列和所述矢状图序列中的各图像是否包含ROI;过滤所述冠状图序列和所述矢状图序列中不包含所述ROI的图像。In an embodiment of the present application, before the positioning of the ROI in the images of the coronal view sequence and the sagittal view sequence, further includes: Classifying the images in the sequence, determining whether each image in the coronal image sequence and the sagittal image sequence contains an ROI; filtering images that do not contain the ROI in the coronal image sequence and the sagittal image sequence.
在本申请的一实施例中,所述对原始图像数据进行预处理,得到冠状图序列和矢状图序列包括:对所述原始图像数据进行标准化处理,得到标准化的三维图像数据;根据所述标准化的三维图像数据,得到所述冠状图序列和所述矢状图序列。In an embodiment of the present application, the preprocessing the original image data to obtain the coronal image sequence and the sagittal image sequence includes: performing standardization processing on the original image data to obtain standardized three-dimensional image data; according to the Standardize the three-dimensional image data to obtain the coronal image sequence and the sagittal image sequence.
在本申请的一实施例中,所述对所述原始图像数据进行标准化处理,得到标准化的三维图像数据,包括:获取所述原始图像数据的参数;获取目标图像参数和图像变换插值算法;根据所述目标图像参数和所述图像变换插值算法,对所述原始图像数据进行标准化处理,得到所述标准化的三维图像数据。In an embodiment of the present application, the standardization processing of the original image data to obtain standardized three-dimensional image data includes: obtaining parameters of the original image data; obtaining target image parameters and an image transformation interpolation algorithm; The target image parameters and the image transformation interpolation algorithm perform standardization processing on the original image data to obtain the standardized three-dimensional image data.
在本申请的一实施例中,所述原始图像数据的参数至少包括所述原始图像的拍摄方向角、分辨率、原点坐标和三维尺寸中的一种;所述目标图像参数至少包括目标拍摄方向角、目标分辨率、目标原点坐标和目标三维尺寸中的一种。In an embodiment of the present application, the parameters of the original image data include at least one of the shooting direction angle, resolution, origin coordinates and three-dimensional size of the original image; the target image parameters include at least the target shooting direction Angle, target resolution, target origin coordinates, and target 3D size.
在本申请的一实施例中,在所述通过对所述冠状图序列和所述矢状图序列中的图像进行分类,确定所述冠状图序列和所述矢状图序列中的各图像是否包含ROI之前,所述ROI自动定位方法进一步包括:对所述冠状图像序列和所述矢状图像序列中的图像进行窗宽窗位处理。In an embodiment of the present application, by classifying the images in the coronal image sequence and the sagittal image sequence, it is determined whether each image in the coronal image sequence and the sagittal image sequence is Before including the ROI, the ROI automatic positioning method further includes: performing window width and window level processing on the images in the coronal image sequence and the sagittal image sequence.
在本申请的一实施例中,在所述通过对所述冠状图序列和所述矢状图序列中的图像进行分类,确定所述冠状图序列和所述矢状图序列中的各图像是否包含ROI之前,进一步包括:In an embodiment of the present application, by classifying the images in the coronal image sequence and the sagittal image sequence, it is determined whether each image in the coronal image sequence and the sagittal image sequence is Before including ROI, further include:
对所述冠状图像序列和矢状图像序列中的图像进行归一化处理。Perform normalization processing on the images in the coronal image sequence and the sagittal image sequence.
在本申请的一实施例中,所述对所述冠状图序列和所述矢状图序列的图像中的ROI进行定位,包括:对所述冠状图序列和所述矢状图序列中的所述图像进行特征提取;根据提取到的特征,预测所述冠状图序列和所述矢状图序列中所述图像内所包含的所述ROI的位置信息。In an embodiment of the present application, the locating the ROI in the images of the coronal image sequence and the sagittal image sequence includes: locating all ROIs in the coronal image sequence and the sagittal image sequence performing feature extraction on the image; predicting position information of the ROI contained in the images in the coronal image sequence and the sagittal image sequence according to the extracted features.
在本申请的一实施例中,所述位置信息包括所述ROI的中心点坐标和尺寸信息。In an embodiment of the present application, the location information includes center point coordinates and size information of the ROI.
在本申请的一实施例中,所述整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域,包括:基于非极大值抑制算法,整合所述冠状图序列中定位的所述ROI的重叠部分,得到目标冠状面ROI;基于非极大值抑制算法,整合所述矢状图序列中定位的所述ROI的重叠部分,得到目标矢状面ROI;对所述目标冠状面ROI和所述目标矢状面ROI分别进行聚类处理,得到所述冠状面ROI整合区域和所述矢状面ROI整合区域。In an embodiment of the present application, integrating the ROI positioned in the coronal image sequence to obtain a coronal ROI integration area, and integrating the ROI positioned in the sagittal image sequence to obtain a sagittal ROI integration area includes : Based on the non-maximum value suppression algorithm, integrate the overlapping parts of the ROI positioned in the coronal image sequence to obtain the target coronal ROI; based on the non-maximum value suppression algorithm, integrate all the positioned in the sagittal image sequence The overlapping part of the ROI is used to obtain the target sagittal plane ROI; the target coronal plane ROI and the target sagittal plane ROI are respectively clustered to obtain the coronal plane ROI integration area and the sagittal plane ROI integration area.
在本申请的一实施例中,所述对所述目标冠状面ROI和所述目标矢状面ROI分别进行聚类处理,得到所述冠状面ROI整合区域和所述矢状面ROI整合区域,包括:根据k-means聚类算法对所述目标冠状面ROI进行聚类处理,得到所述冠状面ROI整合区域;根据k-means聚类算法对所述目标矢状面ROI进行聚类处理,得到所述矢状面ROI整合区域。In an embodiment of the present application, performing clustering processing on the target coronal ROI and the target sagittal ROI respectively to obtain the coronal ROI integration area and the sagittal ROI integration area, comprising: performing clustering processing on the target coronal ROI according to a k-means clustering algorithm to obtain an integrated area of the coronal ROI; performing clustering processing on the target sagittal ROI according to a k-means clustering algorithm, The sagittal plane ROI integration area is obtained.
在本申请的一实施例中,所述根据k-means聚类算法对所述目标冠状面ROI进行聚类处理,得到所述冠状面ROI整合区域,包括:选取多个所述目标冠状面ROI作为簇中心;根据每个所述簇中心与其它所述目标冠状面的交并比对所述目标冠状面ROI进行聚类处理,得到所述冠状面ROI整合区域;所述根据k-means聚类算法对所述目标矢状面ROI进行聚类处 理,得到所述矢状面ROI整合区域,包括:选取多个所述目标矢状面ROI作为簇中心;根据每个所述簇中心与其它所述目标矢状面的交并比对所述目标矢状面ROI进行聚类处理,得到所述冠状面ROI整合区域。In an embodiment of the present application, performing clustering processing on the target coronal ROI according to the k-means clustering algorithm to obtain the coronal ROI integration area includes: selecting a plurality of the target coronal ROIs As a cluster center; according to the intersection of each cluster center and other said target coronal planes, the target coronal plane ROI is clustered to obtain the coronal plane ROI integration area; said clustering according to k-means The similar algorithm performs clustering processing on the target sagittal plane ROI to obtain the integrated region of the sagittal plane ROI, including: selecting a plurality of the target sagittal plane ROIs as cluster centers; The intersection and union comparison of the target sagittal plane performs clustering processing on the target sagittal plane ROI to obtain the integration region of the coronal plane ROI.
在本申请的一实施例中,所述对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到所述原始图像数据中目标ROI的三维坐标,包括:根据公式P ct(X,Y,Z)=P ct(x i,x j,(y i+y j)/2),对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到所述目标ROI的三维坐标;其中,P ct(X,Y,Z)表示所述目标ROI中的点在所述原始图像数据中的三维坐标,P i(x i,y i)表示所述点在第i个所述冠状面ROI整合区域的坐标,P j(x j,y j)表示所述点在第j个所述矢状面ROI整合区域的坐标。 In an embodiment of the present application, performing coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data includes: according to the formula P ct (X, Y, Z)=P ct (x i , x j , (y i +y j )/2), performing coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area, Obtain the three-dimensional coordinates of the target ROI; wherein, P ct (X, Y, Z) represents the three-dimensional coordinates of the points in the target ROI in the original image data, and P i ( xi , y i ) represents the The coordinates of the point in the i-th coronal ROI integration area, and P j (x j , y j ) represent the coordinates of the point in the j-th sagittal ROI integration area.
本申请还提供一种ROI自动定位装置,包括:数据获取模块,用于获取原始图像数据;数据预处理模块,用于对所述原始图像数据进行预处理,得到冠状图序列和矢状图序列;定位模块,用于对所述冠状图序列和所述矢状图序列中的图像的ROI进行定位;整合模块,用于整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域;坐标变换模块,用于对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到所述原始图像数据中目标ROI的三维坐标。The present application also provides a ROI automatic positioning device, including: a data acquisition module for acquiring original image data; a data preprocessing module for preprocessing the original image data to obtain a coronal image sequence and a sagittal image sequence The positioning module is used to locate the ROI of the image in the coronal image sequence and the sagittal image sequence; the integration module is used to integrate the ROI positioned in the coronal image sequence to obtain a coronal ROI integration area, Integrating the ROIs positioned in the sagittal image sequence to obtain a sagittal plane ROI integration area; a coordinate transformation module for performing coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the The 3D coordinates of the target ROI in the original image data.
本申请还提供一种手术机器人系统,配置为执行上述任一所述的ROI自动定位方法。The present application also provides a surgical robot system configured to execute any one of the methods for automatic ROI positioning described above.
本申请还提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述任一所述的ROI自动定位方法。The present application also provides a computer device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, any one of the above ROI automatic positioning methods is implemented.
本申请还提供一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行上述任一所述的ROI自动定位方法。The present application also provides a computer-readable storage medium, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by one or more processors, the one or more processors perform any of the above-mentioned The ROI automatic positioning method.
本申请的一个或多个实施例的细节在下面的附图和描述中说明。本发明的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features, objects and advantages of the invention will be apparent from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据公开的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those of ordinary skill in the art can also obtain other drawings according to the disclosed drawings on the premise of not paying creative efforts.
图1为本申请的相关技术中操作人员基于导航软件手动标出医学图像的冠状视图和矢状视图中的关节位置的示意图;Fig. 1 is a schematic diagram of the joint position in the coronal view and sagittal view of the medical image manually marked by the operator based on the navigation software in the related art of the present application;
图2为本申请一实施例的ROI自动定位方法的应用环境图;FIG. 2 is an application environment diagram of the ROI automatic positioning method according to an embodiment of the present application;
图3为本申请一实施例的ROI自动定位方法的流程图;FIG. 3 is a flowchart of an ROI automatic positioning method according to an embodiment of the present application;
图4为本申请一实施例的原始图像数据预处理的流程图;Fig. 4 is the flowchart of the preprocessing of the original image data according to an embodiment of the present application;
图5为本申请一实施例的原始图像数据标准化处理的流程图;FIG. 5 is a flow chart of standardization processing of original image data according to an embodiment of the present application;
图6为本申请一实施例的确定冠状图序列和矢状图序列中是否包含ROI的流程图;FIG. 6 is a flowchart of determining whether an ROI is included in a coronal image sequence and a sagittal image sequence according to an embodiment of the present application;
图7为本申请一实施例的对冠状图序列和矢状图序列进行分类的流程图;Fig. 7 is a flow chart of classifying coronal image sequences and sagittal image sequences according to an embodiment of the present application;
图8为本申请一实施例冠状图序列和矢状图序列中的图像预处理的流程图;FIG. 8 is a flow chart of image preprocessing in a coronal image sequence and a sagittal image sequence according to an embodiment of the present application;
图9为本申请一实施例的对图像中的ROI定位的流程图;FIG. 9 is a flowchart of ROI positioning in an image according to an embodiment of the present application;
图10a为本申请一实施例的目标区域的热力图;Fig. 10a is a heat map of a target area according to an embodiment of the present application;
图10b示出了本申请一实施例的目标区域中心点的偏移量的预测结果;Fig. 10b shows the prediction result of the offset of the center point of the target area according to an embodiment of the present application;
图10c示出了本申请一实施例的目标区域的长和宽的预测结果;Fig. 10c shows the prediction results of the length and width of the target area according to an embodiment of the present application;
图11为本申请一实施例基于非极大值抑制算法整合重叠的多个ROI的流程图;FIG. 11 is a flow chart of integrating multiple overlapping ROIs based on a non-maximum value suppression algorithm according to an embodiment of the present application;
图12示出了本申请一实施例基于非极大值抑制算法整合重叠的多个ROI的过程;FIG. 12 shows a process of integrating multiple overlapping ROIs based on a non-maximum value suppression algorithm according to an embodiment of the present application;
图13为本申请一实施例采用NMS算法结合聚类算法整合重叠的多个ROI坐标框的流程图;FIG. 13 is a flow chart of integrating multiple overlapping ROI coordinate frames using an NMS algorithm combined with a clustering algorithm according to an embodiment of the present application;
图14为本申请一实施例采用NMS算法结合聚类算法对多个ROI整合重叠的多个ROI坐标框的示意图;14 is a schematic diagram of multiple ROI coordinate frames that integrate and overlap multiple ROIs using an NMS algorithm combined with a clustering algorithm according to an embodiment of the present application;
图15为ROI在冠状面和矢状面的坐标变换到ROI在原始图像中的三维坐标的示意图;Fig. 15 is a schematic diagram of transforming the coordinates of the ROI in the coronal plane and the sagittal plane to the three-dimensional coordinates of the ROI in the original image;
图16为本申请一实施例的ROI自动定位装置的结构示意图。FIG. 16 is a schematic structural diagram of an automatic ROI positioning device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.
图1为申请人已知的操作人员基于导航软件手动标出医学图像的冠状视图和矢状视图中的关节位置的示意图。如图1所示,在关节手术前,首先由操作人员基于导航软件,手动标出医学图像的冠状视图和矢状视图中的关节位置,然后由导航系统自动给出关节部位的三维坐标。这种手动标出的方式比较耗时耗力,增加了操作人员的工作量。操作人员需要在不同的视图下分别定位不同的关节部位,比如在导航软件中需要将左、右膝关节和髋关节在冠状视图和矢状视图标出,操作人员需要进行8次操作,从而大大增加操作人员的劳动强度。另外,不同的操作人员的关节定位标准不统一,从而导致选取的关节部位位置不统一,关节定 位精度低,进一步导致关节的三维重建模型不准确的问题。最后,需要操作人员手动标出关节位置,没有通用的定位方法可适应不同的关节的定位,需要为不同的关节部位开发不同的程序代码,不利于导航软件的平台化建设。FIG. 1 is a schematic diagram of an operator's known manual marking of joint positions in coronal and sagittal views of a medical image based on navigation software. As shown in Figure 1, before joint surgery, the operator first manually marks the joint position in the coronal view and sagittal view of the medical image based on the navigation software, and then the navigation system automatically gives the three-dimensional coordinates of the joint. This manual marking method is time-consuming and labor-intensive, which increases the workload of the operator. The operator needs to locate different joints in different views. For example, in the navigation software, the left and right knee joints and hip joints need to be marked in the coronal view and sagittal view. The operator needs to perform 8 operations, which greatly Increase the labor intensity of the operator. In addition, the joint positioning standards of different operators are not uniform, which leads to inconsistent positions of the selected joints, low joint positioning accuracy, and further leads to inaccurate 3D reconstruction models of joints. Finally, the operator needs to manually mark the joint position. There is no general positioning method to adapt to the positioning of different joints. Different program codes need to be developed for different joints, which is not conducive to the platform construction of navigation software.
本申请提供一种感兴趣区域(region of interest,ROI)自动定位方法,可以应用于如图2所示的应用环境中。所述应用环境包括手术台车1、机械臂2、工具靶标21、股骨靶标22、胫骨靶标23、基座靶标24、尖头靶标241、截骨导向工具31、摆锯41、NDI导航设备51、辅助显示器52、导航台车61、主显示器62、键盘63和手术床81。利用本申请自动定位的ROI位置,操作人员可通过导航软件,在相应的三维模型中进行关键点标记等术前操作。在手术中时,利用该应用环境图中的各装置,进行手术治疗。This application provides a method for automatically locating a region of interest (region of interest, ROI), which can be applied to the application environment shown in FIG. 2 . The application environment includes a surgical trolley 1, a mechanical arm 2, a tool target 21, a femoral target 22, a tibial target 23, a base target 24, a pointed target 241, an osteotomy guide tool 31, an oscillating saw 41, and an NDI navigation device 51 , auxiliary display 52, navigation trolley 61, main display 62, keyboard 63 and operating bed 81. Using the ROI position automatically positioned by the application, the operator can perform preoperative operations such as key point marking in the corresponding three-dimensional model through the navigation software. During surgery, surgical treatment is performed using each device in the application environment diagram.
本申请提供一种ROI自动定位方法,并不限制其执行主体。可选地,所述ROI自动定位方法可由ROI定位装置来实现,其执行主体可以是计算机处理器。在术前,操作人员导入由医学图像序列描述的三维模型,并触发本申请的ROI自动定位方法,通过运行本申请的ROI自动定位方法,操作人员可在显示界面中确定导入的三维模型中的各ROI。操作人员导入医学图像序列直至触发ROI自动定位方法执行的数据处理的具体过程可以包括:通过导航软件读入用户数据;开辟共享内存,写入数据;通过消息通知启动ROI自动定位装置。This application provides a method for automatic ROI positioning, and does not limit the subject of its execution. Optionally, the ROI automatic positioning method may be implemented by an ROI positioning device, and its executing body may be a computer processor. Before the operation, the operator imports the three-dimensional model described by the medical image sequence, and triggers the ROI automatic positioning method of the present application. By running the ROI automatic positioning method of the present application, the operator can determine the position in the imported three-dimensional model in the display interface Each ROI. The specific process of data processing from the operator importing the medical image sequence until triggering the ROI automatic positioning method may include: reading user data through navigation software; opening up shared memory and writing data; starting the ROI automatic positioning device through message notification.
图3为本申请一实施例的ROI自动定位方法的流程图,如图3所示,本申请提供的ROI自动定位方法包括如下步骤:Fig. 3 is the flowchart of the ROI automatic positioning method of an embodiment of the present application, as shown in Fig. 3, the ROI automatic positioning method provided by the present application includes the following steps:
步骤S11、获取原始图像数据;Step S11, obtaining original image data;
步骤S12、对所述原始图像数据进行预处理,得到冠状图序列和矢状图序列;Step S12, preprocessing the original image data to obtain a coronal image sequence and a sagittal image sequence;
步骤S13、对所述冠状图序列和所述矢状图序列的图像中的ROI进行定位;Step S13, locating the ROI in the images of the coronal view sequence and the sagittal view sequence;
步骤S14、整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域;Step S14, integrating the ROI positioned in the coronal image sequence to obtain a coronal ROI integration area, and integrating the ROI located in the sagittal image sequence to obtain a sagittal ROI integration area;
步骤S15、对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到所述原始图像数据中目标ROI的三维坐标。Step S15 , performing coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data.
在步骤S11中,获取原始图像数据。In step S11, the original image data is acquired.
本申请的实施例中的原始图像数据例如为三维医学图像,计算机设备可以通过对扫描设备采集到的患者的待检查部位的数据进行三维重建,从而得到所述医学图像。本申请的医学图像,以电子计算机断层扫描(Computed Tomography,CT)图像为例来进行说明。The original image data in the embodiments of the present application is, for example, a three-dimensional medical image, and the computer device can obtain the medical image by performing three-dimensional reconstruction on the data of the patient's part to be examined collected by the scanning device. The medical image in this application is described by taking a computerized tomography (Computed Tomography, CT) image as an example.
在步骤S12中,对所述原始图像数据进行预处理,得到冠状图序列和矢状图序列。In step S12, the original image data is preprocessed to obtain a coronal image sequence and a sagittal image sequence.
具体地,本申请的对原始图像数据的预处理包括对原始图像数据进行标准化处理,以便将原始图像数据(如全下肢三维模型)转换成在统一图像规则下的冠状图序列和矢状图序列。 图4为本申请一实施例的对原始图像数据预处理的流程图,如图4所示,根据本申请的实施例,步骤S12对原始图像数据进行预处理,得到所述冠状图序列和所述矢状图序列包括如下步骤S121和S122。Specifically, the preprocessing of the original image data in this application includes standardizing the original image data, so as to convert the original image data (such as the 3D model of the whole lower limb) into coronal and sagittal image sequences under unified image rules . Fig. 4 is a flow chart of preprocessing the original image data according to an embodiment of the present application. As shown in Fig. 4, according to the embodiment of the present application, step S12 preprocesses the original image data to obtain the coronal image sequence and the coronal image sequence The sagittal image sequence includes the following steps S121 and S122.
在步骤S121中,对所述原始图像数据进行标准化处理,得到标准化的三维图像数据。In step S121, standardization processing is performed on the original image data to obtain standardized three-dimensional image data.
图5为本申请一实施例的原始图像数据标准化处理的流程图,如图5所示,步骤S121对所述原始图像数据进行标准化处理,得到标准化的三维图像数据,包括如下步骤S1211至S1213。FIG. 5 is a flow chart of standardization processing of original image data according to an embodiment of the present application. As shown in FIG. 5 , step S121 performs standardization processing on the original image data to obtain standardized three-dimensional image data, including the following steps S1211 to S1213.
在步骤S1211中,获取所述原始图像数据的参数。In step S1211, parameters of the original image data are obtained.
在本申请的一实施例中,所述原始图像数据的参数至少包括所述原始图像的拍摄方向角、分辨率、原点坐标和三维尺寸中的一种。In an embodiment of the present application, the parameters of the original image data include at least one of shooting direction angle, resolution, origin coordinates and three-dimensional size of the original image.
在步骤S1212中,获取目标图像参数和图像变换插值算法。In step S1212, the target image parameters and image transformation and interpolation algorithm are acquired.
在本申请的一实施例中,所述目标图像参数至少包括目标方向角、目标分辨率、目标原点坐标和目标三维尺寸中的一种。所述图像变换插值算法可以为最邻近元法、双线性内插法或三次内插法,本申请不做限定。In an embodiment of the present application, the target image parameters include at least one of target orientation angle, target resolution, target origin coordinates, and target three-dimensional size. The image transformation interpolation algorithm may be nearest neighbor method, bilinear interpolation method or cubic interpolation method, which is not limited in this application.
在步骤S1213中,根据所述目标图像参数和所述图像变换插值算法,对所述原始图像数据进行标准化处理,得到所述标准化的三维图像数据。In step S1213, standardize the original image data according to the target image parameters and the image transformation and interpolation algorithm to obtain the standardized three-dimensional image data.
在本申请的一实施例中,图像数据的标准化处理还可以为min-max标准化,对原始图像数据进行线性变换,使结果值映射到0-1之间,转换公式具体为:In an embodiment of the present application, the standardization process of image data can also be min-max standardization, and the original image data is linearly transformed, so that the result value is mapped to between 0-1, and the conversion formula is specifically:
Figure PCTCN2022132130-appb-000001
Figure PCTCN2022132130-appb-000001
其中max为原始图像数据的最大信号值,min为原始图像数据的最小信号值。P i为原始图像数据中第i个点的信号值,P i *是标准化后的图像数据中第i个点的信号值。 Where max is the maximum signal value of the original image data, and min is the minimum signal value of the original image data. P i is the signal value of the i-th point in the original image data, and P i * is the signal value of the i-th point in the normalized image data.
在步骤S122中,根据所述标准化的三维图像数据,得到所述冠状图序列和所述矢状图序列。In step S122, the coronal image sequence and the sagittal image sequence are obtained according to the standardized three-dimensional image data.
在本申请一实施例中,通过提取三维图像数据中沿冠状面方向的各二维图像切面,得到冠状图序列,其中每一个二维图像切面作为一个冠状图。In an embodiment of the present application, a sequence of coronal images is obtained by extracting each 2D image section along the coronal direction in the 3D image data, wherein each 2D image section is regarded as a coronal image.
在本申请一实施例中,通过提取三维图像数据中沿矢状面方向的各二维图像切面,得到矢状图序列,其中每一个二维图像切面作为一个矢状图。In an embodiment of the present application, a sequence of sagittal images is obtained by extracting each two-dimensional image slice along the sagittal plane direction in the three-dimensional image data, wherein each two-dimensional image slice is regarded as a sagittal image.
通过对原始图像数据的上述预处理,获得冠状图序列和矢状图序列。为减少图像数据的处理量,提高图像数据处理的速度,需要从所述冠状图序列和所述矢状图序列中筛选出含ROI的冠状图、矢状图以及不含ROI的冠状图、矢状图。对于不含ROI的冠状图、矢状图, 不进入下一步数据处理过程。Through the above-mentioned preprocessing of the original image data, a coronal view sequence and a sagittal view sequence are obtained. In order to reduce the processing amount of image data and improve the speed of image data processing, it is necessary to filter out coronal images, sagittal images containing ROIs and coronal images and sagittal images without ROIs from the coronal image sequence and the sagittal image sequence. state diagram. For coronal and sagittal images without ROI, do not enter into the next step of data processing.
图6为本申请一实施例的确定冠状图序列和矢状图序列中是否包含ROI的流程图,如图6所示,在本申请的一实施例中,为减少图像的处理量,提高图像处理速度,在步骤S13对所述冠状图序列和所述矢状图序列中的图像的ROI进行定位之前,进一步包括步骤S125和S126。Fig. 6 is a flow chart of determining whether an ROI is included in a coronal image sequence and a sagittal image sequence according to an embodiment of the present application. The processing speed further includes steps S125 and S126 before step S13 locates the ROI of the images in the coronal view sequence and the sagittal view sequence.
在步骤S125中,通过对所述冠状图序列和所述矢状图序列中的图像进行分类,确定所述冠状图序列和所述矢状图序列中的各图像是否包含ROI。In step S125, by classifying the images in the coronal image sequence and the sagittal image sequence, it is determined whether each image in the coronal image sequence and the sagittal image sequence contains an ROI.
冠状图序列和所述矢状图序列中的图像,有的包含ROI,有的不包含ROI,通过对所述冠状图序列和所述矢状图序列中的图像进行二分类,即可确定所述冠状图序列和所述矢状图序列中的各图像是否包含ROI。具体地,在本申请的一实施例中,利用ROI预分类网络对所述冠状图序列和所述矢状图序列中的图像进行分类,通过预分类网络所输出的是否包含ROI的分类标签,确定所述冠状图序列和所述矢状图序列中的各图像是否包含ROI。图7为本申请一实施例的对冠状图序列和矢状图序列进行分类的流程图,如图7所示,步骤S125对所述冠状图序列和所述矢状图序列中的图像进行分类,确定所述冠状图序列和所述矢状图序列中的各图像是否包含ROI包括以下步骤S1251-S1253。Some of the images in the coronal image sequence and the sagittal image sequence contain ROIs, and some do not contain ROIs. By performing binary classification on the images in the coronal image sequence and the sagittal image sequence, it is possible to determine the Whether each image in the coronal image sequence and the sagittal image sequence contains ROI. Specifically, in an embodiment of the present application, the ROI pre-classification network is used to classify the images in the coronal image sequence and the sagittal image sequence, and whether the classification label output by the pre-classification network contains ROI, It is determined whether each image in the sequence of coronal images and the sequence of sagittal images contains a ROI. Fig. 7 is a flow chart of classifying coronal image sequences and sagittal image sequences according to an embodiment of the present application. As shown in Fig. 7, step S125 classifies images in the coronal image sequences and the sagittal image sequences , determining whether each image in the coronal image sequence and the sagittal image sequence contains ROI includes the following steps S1251-S1253.
在步骤S1251中,分别对所述冠状图序列和所述矢状图序列中的图像进行特征提取。In step S1251, feature extraction is performed on the images in the coronal image sequence and the sagittal image sequence respectively.
在本申请的一实施例中,利用主干网分别对所述冠状图序列和所述矢状图序列中的图像进行特征提取。所述主干网为VGG系列和Resnet系列中的任意一个。In an embodiment of the present application, a backbone network is used to perform feature extraction on images in the coronal image sequence and the sagittal image sequence respectively. The backbone network is any one of VGG series and Resnet series.
在步骤S1252中,将提取到的特征映射到二分类空间。In step S1252, the extracted features are mapped to a binary classification space.
在本申请的一实施例中,利用全连接网络将所述主干网提取到的特征映射到二分类空间。所述分类结果为0或1,例如,0表示为只包含背景的图像,1表示为包含ROI的图像。In an embodiment of the present application, a fully connected network is used to map the features extracted by the backbone network to a binary classification space. The classification result is 0 or 1, for example, 0 represents an image containing only the background, and 1 represents an image containing ROI.
在步骤S1253中,根据输出的分类结果,确定所述冠状图序列和所述矢状图序列中的图像是否包含ROI。In step S1253, according to the output classification result, it is determined whether the images in the coronal image sequence and the sagittal image sequence contain ROI.
在本申请的一实施例中,根据所述分类结果为0和1进行确定,例如,分类结果为1的冠状图和矢状图,确定为包含ROI的图像;分类结果为0的冠状图和矢状图,确定为不包含ROI的图像。In an embodiment of the present application, the determination is made according to the classification results of 0 and 1, for example, the coronal and sagittal images with a classification result of 1 are determined to include ROI images; the coronal and sagittal images with a classification result of 0 and Sagittal images, identified as images that do not contain ROIs.
在步骤S126中,过滤所述冠状图序列和所述矢状图序列中不包含ROI的图像。In step S126, the images in the coronal image sequence and the sagittal image sequence that do not contain ROI are filtered.
包含ROI的冠状图和矢状图,分别组成冠状图序列和矢状图序列,以用于进一步的ROI的目标检测。通过过滤所述冠状图序列和所述矢状图序列中不包含ROI的图像,即可减少待处理图像的数量,提高图像处理速度。The coronal image and the sagittal image containing the ROI are respectively composed of a coronal image sequence and a sagittal image sequence for further target detection of the ROI. By filtering images that do not contain ROIs in the coronal image sequence and the sagittal image sequence, the number of images to be processed can be reduced and the image processing speed can be improved.
图8为本申请一实施例对冠状图序列和矢状图序列中的图像预处理的流程图,如图8所 示,在本申请的一实施例中,为提供符合前述预分类网络的输入图像的要求,在将所述冠状图序列和所述矢状图序列输入预分类网络之前,需要对冠状图序列和矢状图序列中的图像进行预处理,即在步骤S125之前,进一步包括步骤S123和S124。Fig. 8 is a flow chart of image preprocessing in coronal image sequence and sagittal image sequence in an embodiment of the present application. Image requirements, before the coronal image sequence and the sagittal image sequence are input into the pre-classification network, the images in the coronal image sequence and the sagittal image sequence need to be preprocessed, that is, before step S125, further include the step S123 and S124.
在步骤S123中,对所述冠状图像序列和所述矢状图像序列中的图像进行窗宽窗位处理。In step S123, window width and window level processing is performed on the images in the coronal image sequence and the sagittal image sequence.
在本申请的一实施例中,原始图像例如为CT图像,可以设置所述冠状图序列和所述矢状图序列中的CT图像的窗宽窗位,并基于CT图像的窗宽窗位,对所述冠状图像序列和所述矢状图像序列中的CT图像进行窗宽窗位处理,从而增强所述冠状图像序列和所述矢状图像序列中的CT图像的ROI数据。In an embodiment of the present application, the original image is, for example, a CT image, and the window width and level of the CT image in the coronal view sequence and the sagittal view sequence can be set, and based on the window width and level of the CT image, performing window width and window level processing on the CT images in the coronal image sequence and the sagittal image sequence, so as to enhance the ROI data of the CT images in the coronal image sequence and the sagittal image sequence.
进一步地,为了满足预分类网络对输入图像尺寸的要求,在本申请的一实施例中,还包括调节冠状图序列和矢状图序列中图像的尺寸,例如将图像尺寸调整到为像素1024×512。调节图像尺寸包括边缘裁剪和填充两种方式。Further, in order to meet the requirements of the pre-classification network for the size of the input image, in an embodiment of the present application, it also includes adjusting the size of the images in the coronal image sequence and the sagittal image sequence, for example, adjusting the image size to 1024× 512. There are two ways to adjust image size including edge cropping and padding.
在步骤S124中,对增强的所述冠状图像序列和所述矢状图像序列中的图像进行预处理。In step S124, preprocessing is performed on the enhanced images in the coronal image sequence and the sagittal image sequence.
在本申请的一实施例中,在对所述冠状图像序列和所述矢状图像序列中的图像进行窗宽窗位处理后,还可以根据预分类网络的要求,对增强的所述冠状图像序列和所述矢状图像序列进行归一化处理。In an embodiment of the present application, after performing window width and window level processing on the images in the coronal image sequence and the sagittal image sequence, the enhanced coronal image can also be processed according to the requirements of the pre-classification network sequence and the sagittal image sequence were normalized.
具体地,为进一步统一数据的分布,加速网络收敛,对增强的所述冠状图像序列和所述矢状图像序列进行归一化处理,归一化方法可以为Z-score标准化方法:Specifically, in order to further unify the distribution of data and accelerate network convergence, the enhanced coronal image sequence and the sagittal image sequence are normalized, and the normalization method can be a Z-score normalization method:
Figure PCTCN2022132130-appb-000002
Figure PCTCN2022132130-appb-000002
其中μ为增强的所述冠状图像序列和所述矢状图像序列中图像数据的均值,σ为增强的所述冠状图像序列和所述矢状图像序列中图像数据的标准差。Where μ is the mean value of the image data in the enhanced coronal image sequence and the sagittal image sequence, and σ is the standard deviation of the image data in the enhanced coronal image sequence and the sagittal image sequence.
在步骤S13中,对所述冠状图序列和所述矢状图序列中的图像的ROI进行定位。In step S13, the ROIs of the images in the coronal view sequence and the sagittal view sequence are located.
在本申请的一实施例中,通过目标检测网络对冠状图序列中的各冠状图的ROI进行定位,对矢状图序列中的各矢状图的ROI进行定位,得到所需要的目标。In an embodiment of the present application, the target detection network is used to locate the ROI of each coronal image in the coronal image sequence, and to locate the ROI of each sagittal image in the sagittal image sequence to obtain the desired target.
图9为本申请一实施例的对图像中的ROI定位的流程图,如图9所示,步骤S13对所述冠状图序列和所述矢状图序列中的图像的ROI进行定位,包括如下步骤S131和步骤S132。FIG. 9 is a flow chart of ROI positioning in an image according to an embodiment of the present application. As shown in FIG. 9, step S13 locates the ROI of the images in the coronal image sequence and the sagittal image sequence, including the following Step S131 and Step S132.
在步骤S131中,对所述冠状图序列和所述矢状图序列中的图像进行特征提取。In step S131, feature extraction is performed on images in the coronal image sequence and the sagittal image sequence.
在本申请的一实施例中,利用特征提取网络分别对冠状图序列和矢状图序列中的图像进行特征提取。特征提取网络可以为Resnet50、Resnet101、HourglassNet或者MobelNet。特征提取网络将提取到的特征用于目标预测。In an embodiment of the present application, a feature extraction network is used to perform feature extraction on the images in the coronal image sequence and the sagittal image sequence respectively. The feature extraction network can be Resnet50, Resnet101, HourglassNet or MobelNet. The feature extraction network uses the extracted features for target prediction.
在本申请的一实施例中,通过卷积神经网络对所述冠状图像序列和所述矢状图像序列中 的图像进行卷积运算,实现特征提取。卷积神经网络采用3×3的过滤器,将过滤器分别依次向右、向下扫描,可以得到输出矩阵各个元素的值,实现对待处理图像的滤波。计算过程例如可以如下:In one embodiment of the present application, the convolution operation is performed on the images in the coronal image sequence and the sagittal image sequence through a convolutional neural network to realize feature extraction. The convolutional neural network uses a 3×3 filter, and the filter is scanned to the right and down in sequence, and the value of each element of the output matrix can be obtained to realize the filtering of the image to be processed. The calculation process can be as follows, for example:
Figure PCTCN2022132130-appb-000003
Figure PCTCN2022132130-appb-000003
卷积过程Convolution process
虚线框:4=1×1+1×0+1×1+0×0+1×1+0×1+0×1+0×0+1×1Dotted frame: 4=1×1+1×0+1×1+0×0+1×1+0×1+0×1+0×0+1×1
黑线框:3=1×1+0×1+0×1+1×0+1×1+1×0+0×1+1×0+1×1Black line frame: 3=1×1+0×1+0×1+1×0+1×1+1×0+0×1+1×0+1×1
在本申请的一实施例中,为了更加有效地缩小图像的尺寸,加快图像处理速度和防止过拟合,在卷积神经网络中在相邻的卷积层之间加入一个池化层。池化层,例如,可以使用2×2的过滤器对4×4的图像进行最大值池化操作,结果取2×2窗口中对应的最大值,最终得到一张2×2的图像。该最大值池化提供一种对卷积后的矩阵进行降采样的方式,供后续网络层继续处理,直至得到用来判断输入目标预测网络的图像是否包含ROI的图像特征。In an embodiment of the present application, in order to reduce the image size more effectively, speed up image processing and prevent overfitting, a pooling layer is added between adjacent convolutional layers in the convolutional neural network. The pooling layer, for example, can use a 2×2 filter to perform a maximum pooling operation on a 4×4 image, and the result takes the corresponding maximum value in the 2×2 window, and finally obtains a 2×2 image. The maximum pooling provides a way to down-sample the convolutional matrix for subsequent network layers to continue processing until the image features used to determine whether the image input to the target prediction network contains ROI are obtained.
在步骤S132中,根据所述提取到的特征,预测所述冠状图序列和所述矢状图序列中所述图像内所包含的所述ROI的位置信息。In step S132, the position information of the ROI included in the images in the coronal image sequence and the sagittal image sequence is predicted according to the extracted features.
所述ROI的位置信息包括所述ROI的中心点坐标和尺寸信息。在本申请一实施例中,以ROI为图像中的关节区域为例,经目标检测网络对提取到的图像的特征进行处理后,可预测得到如图10a-10c所示的结果。如图10a所示的热力图,示出了图像中的各图像块包含关节的概率。图10b示出了热力图中关节区域的中心点与实际中心点之间的偏移量,通过纵横坐标值来表示预测的关节区域的中心点相对于关节实际中心点之间的偏移角度和偏移长度。图10c示出了关节区域的长和宽的预测,并利用关节区域的中心点的预测的坐标偏移量,修正关节区域的预测的中心点坐标,根据目标检测网络所预测的关节区域的尺寸信息(例如长和宽)以及修正后的中心点,即可确定该图像中的关节区域。The position information of the ROI includes the center point coordinates and size information of the ROI. In an embodiment of the present application, taking the ROI as an example of a joint area in an image, after processing the features of the extracted image through a target detection network, the results shown in Figures 10a-10c can be predicted. The heat map shown in Fig. 10a shows the probability that each image block in the image contains a joint. Figure 10b shows the offset between the center point of the joint area and the actual center point in the heat map, and the vertical and horizontal coordinate values represent the offset angle and sum of the predicted center point of the joint area relative to the actual center point of the joint Offset length. Figure 10c shows the prediction of the length and width of the joint area, and using the predicted coordinate offset of the center point of the joint area to modify the predicted center point coordinates of the joint area, according to the size of the joint area predicted by the target detection network Information (such as length and width) and the corrected center point, the joint area in the image can be determined.
根据本申请的上述实施例,经目标检测网络检测,得到各冠状图像序列和矢状图像序列中各图像的ROI。为了得到覆盖三维模型的冠状图所在维度和矢状图所在维度的各ROI,需要对所检测到的各图像的ROI进行整合。According to the above-mentioned embodiments of the present application, the ROI of each image in each coronal image sequence and sagittal image sequence is obtained through detection by the target detection network. In order to obtain the ROIs covering the dimension of the coronal view and the sagittal view of the three-dimensional model, it is necessary to integrate the detected ROIs of the images.
在步骤S14中,整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域。In step S14, the ROIs located in the coronal image sequence are integrated to obtain a coronal ROI integration area, and the ROIs located in the sagittal image sequence are integrated to obtain a sagittal ROI integration area.
为了得到冠状面ROI整合区域以及矢状面ROI整合区域,在本申请的一实施例中,基 于非极大值抑制(Non-Maximum Suppression,NMS)算法,整合重叠的多个ROI,得到覆盖冠状图序列的冠状图的ROI的冠状面ROI整合区域,以及覆盖矢状图序列的矢状图的ROI的矢状面ROI整合区域。In order to obtain the coronal plane ROI integration area and the sagittal plane ROI integration area, in an embodiment of the present application, based on the non-maximum suppression (Non-Maximum Suppression, NMS) algorithm, multiple overlapping ROIs are integrated to obtain the coronal The coronal ROI integration area of the ROI of the coronal image of the map sequence, and the sagittal ROI integration area of the ROI of the sagittal image of the overlay sagittal image sequence.
图11为本申请一实施例基于非极大值抑制算法整合重叠的多个ROI的流程图,如图11所示,步骤S14整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域,包括如下步骤S1401-S1403。Fig. 11 is a flow chart of integrating multiple overlapping ROIs based on the non-maximum suppression algorithm in one embodiment of the present application. As shown in Fig. 11, step S14 integrates the ROIs positioned in the coronal image sequence to obtain the coronal ROI integration area , integrating the ROIs positioned in the sagittal image sequence to obtain a sagittal image ROI integration area, including the following steps S1401-S1403.
在步骤S1401中,基于非极大值抑制算法,整合所述冠状图序列中定位的所述ROI的重叠部分,得到目标冠状面ROI。In step S1401, based on a non-maximum value suppression algorithm, the overlapping parts of the ROIs positioned in the coronal image sequence are integrated to obtain a target coronal ROI.
在步骤S1402中,基于非极大值抑制算法,整合所述矢状图序列中定位的所述ROI的重叠部分,得到目标矢状面ROI。In step S1402, based on the non-maximum value suppression algorithm, the overlapping parts of the ROIs positioned in the sagittal image sequence are integrated to obtain a target sagittal ROI.
在步骤S1403中,对所述目标冠状面ROI和所述目标矢状面ROI进行聚类处理,得到所述冠状面ROI整合区域和所述矢状面ROI整合区域。In step S1403, cluster processing is performed on the target coronal ROI and the target sagittal ROI to obtain the coronal ROI integration area and the sagittal ROI integration area.
图12示出了本申请一实施例基于非极大值抑制算法整合重叠的多个关节区域的过程,如图12所示,非极大值0.78的关节区域、非极大值0.80的关节区域和非极大值0.86的关节区域均被抑制,保留最大值0.92对应的关节区域,从而去除冗余的关节区域,保留最好的关节区域。Figure 12 shows the process of integrating multiple overlapping joint areas based on the non-maximum value suppression algorithm in an embodiment of the present application. As shown in Figure 12, the joint area with a non-maximum value of 0.78 and the joint area with a non-maximum value of 0.80 The joint area with a maximum value of 0.86 is suppressed, and the joint area corresponding to the maximum value of 0.92 is retained, thereby removing redundant joint areas and retaining the best joint area.
在本申请的一实施例中,也可以采用聚类算法,剔除冗余的关节区域,保留最好的关节区域。In an embodiment of the present application, a clustering algorithm may also be used to eliminate redundant joint regions and retain the best joint regions.
在本申请的一实施例中,由于在预测期间存在很小的误检概率,执行完非极大值抑制后,可能存在一些偏离簇中心的框,需进一步通过聚类算法得到冠状面和矢状面的ROI位置。具体包括:In an embodiment of the present application, since there is a small probability of false detection during the prediction period, after performing non-maximum value suppression, there may be some boxes that deviate from the center of the cluster, and it is necessary to further obtain the coronal plane and vector The ROI position of the surface. Specifically include:
根据k-means聚类算法对所述目标冠状面ROI进行聚类处理,得到所述冠状面ROI整合区域;根据k-means聚类算法对所述目标矢状面ROI进行聚类处理,得到所述矢状面ROI整合区域。According to the k-means clustering algorithm, the target coronal plane ROI is clustered to obtain the coronal plane ROI integration area; according to the k-means clustering algorithm, the target sagittal plane ROI is clustered to obtain the target coronal plane ROI. Said sagittal plane ROI integration area.
其中,根据k-means聚类算法对所述目标冠状面ROI进行聚类处理,得到所述冠状面ROI整合区域的步骤包括:选取多个所述目标冠状面ROI作为簇中心;根据每个所述簇中心与其它所述目标冠状面的交并比对所述目标冠状面ROI进行聚类处理,得到所述冠状面ROI整合区域。根据k-means聚类算法对所述目标矢状面ROI进行聚类处理,得到所述矢状面ROI整合区域的步骤包括:选取多个所述目标矢状面ROI作为簇中心;根据每个所述簇中心与其它所述目标矢状面的交并比对所述目标矢状面ROI进行聚类处理,得到所述冠状面ROI整合区域。Wherein, according to the k-means clustering algorithm, the target coronal ROI is clustered, and the step of obtaining the coronal ROI integration area includes: selecting a plurality of the target coronal ROIs as cluster centers; The intersection and union comparison between the cluster center and the other target coronal planes is used to cluster the target coronal plane ROIs to obtain the coronal plane ROI integrated regions. According to the k-means clustering algorithm, the target sagittal plane ROI is clustered, and the step of obtaining the sagittal plane ROI integration area includes: selecting a plurality of the target sagittal plane ROIs as cluster centers; The intersection and union comparison between the cluster center and other target sagittal planes is used to cluster the target sagittal plane ROI to obtain the coronal plane ROI integration area.
在本申请的一实施例中,如图13所示,步骤S14采用NMS算法结合聚类算法,对重叠的多个ROI进行整合,步骤S14整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域具体包括如下步骤S1411-S1418。In an embodiment of the present application, as shown in FIG. 13 , step S14 uses the NMS algorithm combined with the clustering algorithm to integrate multiple overlapping ROIs, and step S14 integrates the ROIs positioned in the coronal image sequence to obtain the coronal plane The ROI integration area, integrating the ROIs positioned in the sagittal image sequence to obtain the sagittal plane ROI integration area specifically includes the following steps S1411-S1418.
在步骤S1411中,基于非极大值算法对每个ROI的重叠的多个ROI进行整合。In step S1411, multiple overlapping ROIs of each ROI are integrated based on a non-maximum value algorithm.
在步骤S1412中,设置簇中心的数量n的初始值为0。In step S1412, the initial value of the number n of cluster centers is set to 0.
在步骤S1413中,对应当前ROI选取一个簇中心。In step S1413, a cluster center corresponding to the current ROI is selected.
在步骤S1414中,簇中心的数量n累加1,计算所述当前ROI与当前簇中心的交并比(Intersection over Union,IOU)。In step S1414, the number n of cluster centers is accumulated by 1, and an intersection over union (IOU) between the current ROI and the current cluster center is calculated.
在步骤S1415中,判断IOU是否大于给定的阈值。In step S1415, it is judged whether the IOU is greater than a given threshold.
在步骤S1416中,如果IOU大于给定的阈值,则将所述当前ROI分到当前簇中心。In step S1416, if the IOU is greater than a given threshold, the current ROI is classified into the current cluster center.
在步骤S1417中,如果IOU小于或等于给定的阈值,判断所述已计算的簇中心的数量n是否大于或等于k,其中k为设定的对应每一类ROI的所述簇中心的总数;如果否,则从未选取过的簇中心中重新选取一簇中心作为当前簇中心,返回执行步骤S1414。In step S1417, if the IOU is less than or equal to a given threshold, it is judged whether the number n of the calculated cluster centers is greater than or equal to k, where k is the total number of cluster centers corresponding to each type of ROI set ; If not, reselect a cluster center from unselected cluster centers as the current cluster center, and return to step S1414.
在步骤S1418中,判断所有ROI是否都已经遍历,如果否,则从未聚类处理的ROI中选取一ROI作为当前ROI,并返回执行步骤S1412;如果是,则结束对所述ROI的整合,得到所述冠状面ROI整合区域和所述矢状面ROI整合区域。In step S1418, it is judged whether all ROIs have been traversed, if not, then select an ROI from unclustered ROIs as the current ROI, and return to execute step S1412; if yes, end the integration of the ROI, The coronal plane ROI integration area and the sagittal plane ROI integration area are obtained.
在本申请的一实施例中,所述步骤S1413对应所述ROI选取一个簇中心,具体可以是对应所述ROI随机选取一个簇中心。In an embodiment of the present application, the step S1413 selects a cluster center corresponding to the ROI, specifically, randomly selects a cluster center corresponding to the ROI.
在本申请的一实施例中,所述从未选取过的簇中心中重新选取一簇中心,可以是从未选取过的簇中心中重新随机选取一簇中心。In an embodiment of the present application, the re-selecting a cluster center from unselected cluster centers may be re-randomly selecting a cluster center from unselected cluster centers.
如图14所示,对于每一个类型的关节,分别执行上述步骤S1411-S1418,从而实现对所有关节的重叠的多个关节区域进行整合。通过NMS算法结合聚类算法对关节的多个关节区域进行整合,即使在执行完非极大值抑制后,可能存在一些偏离簇中心的框,通过本申请的关节区域的整合方法,也能得到精确的冠状面和矢状面的关节位置。As shown in FIG. 14 , for each type of joint, the above-mentioned steps S1411 - S1418 are performed respectively, so as to realize the integration of multiple overlapping joint areas of all joints. Through the NMS algorithm combined with the clustering algorithm to integrate multiple joint areas of the joint, even after the non-maximum value suppression is performed, there may be some frames that deviate from the center of the cluster, through the joint area integration method of this application, it can also be obtained Accurate coronal and sagittal joint positions.
在步骤S15中,对所述ROI冠状图区域以及所述ROI矢状图区域进行坐标变换,得到所述原始图像数据中目标ROI的三维坐标。In step S15, coordinate transformation is performed on the coronal image region of the ROI and the sagittal image region of the ROI to obtain the three-dimensional coordinates of the target ROI in the original image data.
在本申请的一实施例中,如图15所示,根据得到的ROI在冠状面和矢状面的坐标,计算所述ROI的三维坐标。假设P ct(X,Y,Z)表示ROI在原始CT图像中的三维坐标,P i(x i,y i)表示ROI在第i张冠状面上的坐标,P j(x j,y j)表示ROI在第j张矢状面上的坐标,则P i(x i,y i)变换到原始CT图像中的三维坐标为CT(x i,Y,y i),P j(x j,y j)变换到原始CT图像中的三维坐标为 CT(X,x j,y j),根据上式可以推出ROI在原始CT图像下的三维坐标为: In an embodiment of the present application, as shown in FIG. 15 , the three-dimensional coordinates of the ROI are calculated according to the obtained coordinates of the ROI on the coronal plane and the sagittal plane. Assume that P ct (X,Y,Z) represents the three-dimensional coordinates of the ROI in the original CT image, P i ( xi ,y i ) represents the coordinates of the ROI on the i-th coronal plane, and P j (x j ,y j ) represents the coordinates of the ROI on the jth sagittal plane, then the three-dimensional coordinates of P i ( xi ,y i ) transformed into the original CT image are CT( xi ,Y,y i ), P j (x j ,y j ) The three-dimensional coordinates transformed into the original CT image are CT(X, x j , y j ), according to the above formula, the three-dimensional coordinates of the ROI under the original CT image can be deduced as:
P ct(X,Y,Z)=P ct(x i,x j,(y i+y j)/2)。 P ct (X,Y,Z)=P ct ( xi ,x j ,(y i +y j )/2).
由于在计算过程中存在误差,y i和y j不会完全相等,所以Z方向的坐标取y i和y j的均值代替。 Due to errors in the calculation process, y i and y j will not be completely equal, so the coordinates in the Z direction are replaced by the mean value of y i and y j .
本申请的ROI自动定位方法,不需要在三维数据上进行计算,降低了计算复杂度,减少数据处理的时间,能实现对ROI部位在三维空间的自动定位,一次性检测出医学图像上的不同的ROI部位,简化了导航软件的操作流程,同时也提高了导航软件的通用性,提高了工作效率,减少了导航软件操作人员的工作量。The ROI automatic positioning method of the present application does not need to perform calculations on three-dimensional data, reduces computational complexity, reduces data processing time, can realize automatic positioning of ROI parts in three-dimensional space, and detects differences in medical images at one time. The ROI position of the navigation software simplifies the operation process of the navigation software, improves the versatility of the navigation software, improves work efficiency, and reduces the workload of the navigation software operators.
应该理解的是,虽然附图中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,各流程图的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow charts in the drawings are shown sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in each flow chart may include multiple sub-steps or multiple stages, these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, the execution of these sub-steps or stages The order is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
本申请提供了一种ROI自动定位装置,如图16所示,所述ROI定位装置包括数据获取模块101、数据预处理模块102、定位模块103、整合模块104和坐标变换模块105。The present application provides an automatic ROI positioning device. As shown in FIG.
数据获取模块101,用于获取原始图像数据。The data acquisition module 101 is configured to acquire original image data.
数据预处理模块102,对所述原始图像数据进行预处理,得到冠状图序列和矢状图序列。The data preprocessing module 102 performs preprocessing on the original image data to obtain a coronal image sequence and a sagittal image sequence.
定位模块103,对所述冠状图序列和所述矢状图序列中的图像的ROI进行定位。The positioning module 103 locates the ROI of the images in the coronal view sequence and the sagittal view sequence.
整合模块104,整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域。The integration module 104 integrates the ROIs located in the coronal image sequence to obtain a coronal ROI integration area, and integrates the ROIs located in the sagittal image sequence to obtain a sagittal ROI integration area.
坐标变换模块105,对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到原始图像数据中目标ROI的三维坐标。The coordinate transformation module 105 performs coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data.
本申请提供了一种ROI自动定位装置,不需要在三维数据上进行计算,降低了计算复杂度,减少数据处理的时间,能实现对ROI部位在三维空间的自动定位,一次性检测出医学图像上的不同的ROI部位,简化了导航软件的操作流程,同时也提高了导航软件的通用性,提高了工作效率,减少了导航软件操作人员的工作量。This application provides an ROI automatic positioning device, which does not need to perform calculations on three-dimensional data, reduces computational complexity, reduces data processing time, can realize automatic positioning of ROI parts in three-dimensional space, and detects medical images at one time The different ROI parts on the map simplifies the operation process of the navigation software, improves the versatility of the navigation software, improves the work efficiency, and reduces the workload of the navigation software operators.
本申请的ROI自动定位装置的不同实施例可以通过参见上文中对于ROI自动定位方法的各实施例的描述而获得,在此不再赘述。上述ROI自动定位装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以 上各个模块对应的操作。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。Different embodiments of the ROI automatic positioning device of the present application can be obtained by referring to the above descriptions of the various embodiments of the ROI automatic positioning method, and will not be repeated here. Each module in the above-mentioned ROI automatic positioning device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of the above-mentioned modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
本申请提供了一种手术机器人系统。所述机器人系统配置为执行上述各实施例的ROI自动定位方法。所述机器人系统在实现对人体的ROI的自动定位过程中,不需要在三维数据上进行计算,降低了计算复杂度,减少数据处理的时间,能实现对ROI部位在三维空间的自动定位,一次性检测出医学图像上的不同的ROI部位,简化了导航软件的操作流程,同时也提高了导航软件的通用性,提高了工作效率,减少了导航软件操作人员的工作量。The present application provides a surgical robot system. The robot system is configured to execute the ROI automatic positioning method in each of the above embodiments. In the process of realizing the automatic positioning of the ROI of the human body, the robot system does not need to perform calculations on the three-dimensional data, which reduces the computational complexity and the time of data processing, and can realize the automatic positioning of the ROI in the three-dimensional space. The different ROI parts on the medical image can be detected accurately, which simplifies the operation process of the navigation software, improves the versatility of the navigation software, improves the work efficiency, and reduces the workload of the navigation software operators.
本申请提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现本申请任一实施例的ROI自动定位方法。The present application provides a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the ROI automatic positioning method in any embodiment of the present application when executing the computer program.
本申请提供了一种计算机可读存储介质,其上存储有计算机可读指令。所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行本申请任一实施例的ROI自动定位方法。The present application provides a computer-readable storage medium on which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the ROI automatic positioning method of any embodiment of the present application.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以根据实际情况进行适当的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The various technical features of the above embodiments can be properly combined according to the actual situation. To make the description concise, all possible combinations of the various technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features , should be considered as within the scope of this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several implementation modes of the present application, and the description thereof is relatively specific and detailed, but it should not be construed as limiting the scope of the patent for the invention. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (17)

  1. 一种ROI(region of interest,感兴趣区域)自动定位方法,包括:A ROI (region of interest, region of interest) automatic positioning method, comprising:
    获取原始图像数据;Get raw image data;
    对所述原始图像数据进行预处理,得到冠状图序列和矢状图序列;Preprocessing the original image data to obtain a coronal image sequence and a sagittal image sequence;
    对所述冠状图序列和所述矢状图序列的图像中的ROI进行定位;Locating ROIs in the images of the coronal sequence and the sagittal sequence;
    整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域;Integrating the ROIs positioned in the coronal image sequence to obtain a coronal ROI integration area, and integrating the ROIs positioned in the sagittal image sequence to obtain a sagittal ROI integration area;
    对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到所述原始图像数据中目标ROI的三维坐标。Coordinate transformation is performed on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data.
  2. 根据权利要求1所述的ROI自动定位方法,其中,在所述对所述冠状图序列和所述矢状图序列的图像中的ROI进行定位之前,还包括:The ROI automatic positioning method according to claim 1, wherein, before positioning the ROI in the images of the coronal view sequence and the sagittal view sequence, further comprising:
    通过对所述冠状图序列和所述矢状图序列中的图像进行分类,确定所述冠状图序列和所述矢状图序列中的各图像是否包含ROI;determining whether each image in the coronal image sequence and the sagittal image sequence contains an ROI by classifying the images in the coronal image sequence and the sagittal image sequence;
    过滤所述冠状图序列和所述矢状图序列中不包含所述ROI的图像。and filtering images that do not contain the ROI in the coronal image sequence and the sagittal image sequence.
  3. 根据权利要求1所述的ROI自动定位方法,其中,所述对原始图像数据进行预处理,得到冠状图序列和矢状图序列包括:The ROI automatic positioning method according to claim 1, wherein said preprocessing the original image data to obtain a coronal image sequence and a sagittal image sequence comprises:
    对所述原始图像数据进行标准化处理,得到标准化的三维图像数据;performing standardized processing on the original image data to obtain standardized three-dimensional image data;
    根据所述标准化的三维图像数据,得到所述冠状图序列和所述矢状图序列。According to the standardized three-dimensional image data, the coronal image sequence and the sagittal image sequence are obtained.
  4. 根据权利要求3所述的ROI自动定位方法,其中,所述对所述原始图像数据进行标准化处理,得到标准化的三维图像数据,包括:The ROI automatic positioning method according to claim 3, wherein said performing standardization processing on said original image data to obtain standardized three-dimensional image data comprises:
    获取所述原始图像数据的参数;Obtain parameters of the original image data;
    获取目标图像参数和图像变换插值算法;Obtain target image parameters and image transformation interpolation algorithm;
    根据所述目标图像参数和所述图像变换插值算法,对所述原始图像数据进行标准化处理,得到所述标准化的三维图像数据。Standardize the original image data according to the target image parameters and the image transformation and interpolation algorithm to obtain the standardized three-dimensional image data.
  5. 根据权利要求4所述的ROI自动定位方法,其中:ROI automatic positioning method according to claim 4, wherein:
    所述原始图像数据的参数至少包括所述原始图像的拍摄方向角、分辨率、原点坐标和三维尺寸中的一种;The parameters of the original image data include at least one of the shooting direction angle, resolution, origin coordinates and three-dimensional size of the original image;
    所述目标图像参数至少包括目标拍摄方向角、目标分辨率、目标原点坐标和目标三维尺寸中的一种。The target image parameters include at least one of target shooting direction angle, target resolution, target origin coordinates and target three-dimensional size.
  6. 根据权利要求2所述的ROI自动定位方法,其中,在所述对所述冠状图序列和所述矢 状图序列进行分类之前,还包括:The ROI automatic positioning method according to claim 2, wherein, before said classifying said coronal image sequence and said sagittal image sequence, it also includes:
    对所述冠状图像序列和所述矢状图像序列中的图像进行窗宽窗位处理。performing window width and window level processing on the images in the coronal image sequence and the sagittal image sequence.
  7. 根据权利要求2所述的ROI自动定位方法,其中,在所述通过对所述冠状图序列和所述矢状图序列中的图像进行分类,确定所述冠状图序列和所述矢状图序列中的各图像是否包含ROI之前,进一步包括:The ROI automatic positioning method according to claim 2, wherein, by classifying the images in the coronal image sequence and the sagittal image sequence, determining the coronal image sequence and the sagittal image sequence Before each image contains the ROI, further include:
    对所述冠状图像序列和矢状图像序列中的图像进行归一化处理。Perform normalization processing on the images in the coronal image sequence and the sagittal image sequence.
  8. 根据权利要求1所述的ROI自动定位方法,其中,所述对所述冠状图序列和所述矢状图序列的图像中的ROI进行定位,包括:The ROI automatic positioning method according to claim 1, wherein said positioning the ROI in the images of the coronal view sequence and the sagittal view sequence comprises:
    对所述冠状图序列和所述矢状图序列中的所述图像进行特征提取;performing feature extraction on the images in the coronal sequence and the sagittal sequence;
    根据提取到的特征,预测所述冠状图序列和所述矢状图序列中所述图像内所包含的所述ROI的位置信息。Predicting position information of the ROI included in the images in the coronal image sequence and the sagittal image sequence according to the extracted features.
  9. 根据权利要求8所述的ROI自动定位方法,其中,所述位置信息包括所述ROI的中心点坐标和尺寸信息。The ROI automatic positioning method according to claim 8, wherein the position information includes the center point coordinates and size information of the ROI.
  10. 根据权利要求1所述的ROI自动定位方法,其中,所述整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域,包括:The ROI automatic positioning method according to claim 1, wherein said integrating the ROI positioned in the coronal image sequence obtains a coronal ROI integration area, and integrates the ROI positioned in the sagittal image sequence to obtain a sagittal plane ROI integration areas, including:
    基于非极大值抑制算法,整合所述冠状图序列中定位的所述ROI的重叠部分,得到目标冠状面ROI;Based on a non-maximum suppression algorithm, integrating the overlapping parts of the ROI positioned in the coronal image sequence to obtain a target coronal ROI;
    基于非极大值抑制算法,整合所述矢状图序列中定位的所述ROI的重叠部分,得到目标矢状面ROI;Based on a non-maximum value suppression algorithm, integrating the overlapping parts of the ROI positioned in the sagittal image sequence to obtain a target sagittal ROI;
    对所述目标冠状面ROI和所述目标矢状面ROI分别进行聚类处理,得到所述冠状面ROI整合区域和所述矢状面ROI整合区域。The target coronal plane ROI and the target sagittal plane ROI are respectively clustered to obtain the coronal plane ROI integration area and the sagittal plane ROI integration area.
  11. 根据权利要求10所述的ROI自动定位方法,其中,所述对所述目标冠状面ROI和所述目标矢状面ROI分别进行聚类处理,得到所述冠状面ROI整合区域和所述矢状面ROI整合区域,包括:The ROI automatic positioning method according to claim 10, wherein said target coronal plane ROI and said target sagittal plane ROI are respectively clustered to obtain said coronal plane ROI integration area and said sagittal plane ROI Surface ROI integration area, including:
    根据k-means聚类算法对所述目标冠状面ROI进行聚类处理,得到所述冠状面ROI整合区域;Carry out cluster processing to described target coronal plane ROI according to k-means clustering algorithm, obtain described coronal plane ROI integration region;
    根据k-means聚类算法对所述目标矢状面ROI进行聚类处理,得到所述矢状面ROI整合区域。The target sagittal plane ROI is clustered according to the k-means clustering algorithm to obtain the sagittal plane ROI integration area.
  12. 根据权利要求11所述的ROI自动定位方法,其中,所述根据k-means聚类算法对所述目标冠状面ROI进行聚类处理,得到所述冠状面ROI整合区域,包括:The ROI automatic positioning method according to claim 11, wherein said target coronal plane ROI is clustered according to the k-means clustering algorithm to obtain the coronal plane ROI integration area, comprising:
    选取多个所述目标冠状面ROI作为簇中心;Selecting multiple target coronal plane ROIs as cluster centers;
    根据每个所述簇中心与其它所述目标冠状面的交并比对所述目标冠状面ROI进行聚类处理,得到所述冠状面ROI整合区域;Perform clustering processing on the target coronal ROI according to the intersection and union ratio between each cluster center and other target coronal planes, to obtain the coronal plane ROI integration area;
    所述根据k-means聚类算法对所述目标矢状面ROI进行聚类处理,得到所述矢状面ROI整合区域,包括:According to the k-means clustering algorithm, the target sagittal plane ROI is clustered to obtain the sagittal plane ROI integration area, including:
    选取多个所述目标矢状面ROI作为簇中心;Selecting multiple target sagittal plane ROIs as cluster centers;
    根据每个所述簇中心与其它所述目标矢状面的交并比对所述目标矢状面ROI进行聚类处理,得到所述冠状面ROI整合区域。The target sagittal plane ROIs are clustered according to the intersection ratio between each cluster center and other target sagittal planes to obtain the coronal plane ROI integration area.
  13. 根据权利要求1所述的ROI自动定位方法,其中,所述对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到所述原始图像数据中目标ROI的三维坐标,包括:The ROI automatic positioning method according to claim 1, wherein the coordinate transformation is performed on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data, include:
    根据公式P ct(X,Y,Z)=P ct(x i,x j,(y i+y j)/2),对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到所述目标ROI的三维坐标; According to the formula P ct (X, Y, Z)=P ct (x i , x j , (y i +y j )/2), the coronal plane ROI integration area and the sagittal plane ROI integration area are performed Coordinate transformation to obtain the three-dimensional coordinates of the target ROI;
    其中,P ct(X,Y,Z)表示所述目标ROI中的点在所述原始图像数据中的三维坐标,P i(x i,y i)表示所述点在第i个所述冠状面ROI整合区域的坐标,P j(x j,y j)表示所述点在第j个所述矢状面ROI整合区域的坐标。 Wherein, P ct (X, Y, Z) represents the three-dimensional coordinates of the point in the target ROI in the original image data, P i (xi , y i ) represents the point in the ith coronal Coordinates of the plane ROI integration area, P j (x j , y j ) represents the coordinates of the point in the jth sagittal plane ROI integration area.
  14. 一种ROI自动定位装置,包括:A ROI automatic positioning device, comprising:
    数据获取模块,用于获取原始图像数据;A data acquisition module, configured to acquire raw image data;
    数据预处理模块,用于对所述原始图像数据进行预处理,得到冠状图序列和矢状图序列;A data preprocessing module, configured to preprocess the original image data to obtain a coronal image sequence and a sagittal image sequence;
    定位模块,用于对所述冠状图序列和所述矢状图序列中的图像的ROI进行定位;A positioning module, configured to position the ROI of the images in the coronal view sequence and the sagittal view sequence;
    整合模块,用于整合所述冠状图序列中定位的ROI,得到冠状面ROI整合区域,整合所述矢状图序列中定位的ROI,得到矢状面ROI整合区域;An integration module, configured to integrate the ROIs positioned in the coronal image sequence to obtain a coronal ROI integration area, and integrate the ROIs positioned in the sagittal image sequence to obtain a sagittal ROI integration area;
    坐标变换模块,用于对所述冠状面ROI整合区域以及所述矢状面ROI整合区域进行坐标变换,得到所述原始图像数据中目标ROI的三维坐标。A coordinate transformation module, configured to perform coordinate transformation on the coronal plane ROI integration area and the sagittal plane ROI integration area to obtain the three-dimensional coordinates of the target ROI in the original image data.
  15. 一种手术机器人系统,配置为执行权利要求1至13中任一项所述的方法。A surgical robot system configured to perform the method of any one of claims 1-13.
  16. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现权利要求1至13中任一项所述的方法。A computer device, comprising a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 13 when executing the computer program.
  17. 一种计算机可读存储介质,其上存储有计算机可读指令,其中,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行权利要求1至13中任一项所述的方法。A computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by one or more processors, cause the one or more processors to perform claims 1 to 13 any one of the methods described.
PCT/CN2022/132130 2021-11-19 2022-11-16 Automatic roi positioning method and apparatus, surgical robot system, device and medium WO2023088275A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111391566.8A CN114255329A (en) 2021-11-19 2021-11-19 ROI automatic positioning method and device, surgical robot system, equipment and medium
CN202111391566.8 2021-11-19

Publications (1)

Publication Number Publication Date
WO2023088275A1 true WO2023088275A1 (en) 2023-05-25

Family

ID=80791012

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/132130 WO2023088275A1 (en) 2021-11-19 2022-11-16 Automatic roi positioning method and apparatus, surgical robot system, device and medium

Country Status (2)

Country Link
CN (1) CN114255329A (en)
WO (1) WO2023088275A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114255329A (en) * 2021-11-19 2022-03-29 苏州微创畅行机器人有限公司 ROI automatic positioning method and device, surgical robot system, equipment and medium
CN116779093B (en) * 2023-08-22 2023-11-28 青岛美迪康数字工程有限公司 Method and device for generating medical image structured report and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5371778A (en) * 1991-11-29 1994-12-06 Picker International, Inc. Concurrent display and adjustment of 3D projection, coronal slice, sagittal slice, and transverse slice images
CN110021053A (en) * 2019-04-16 2019-07-16 河北医科大学第二医院 A kind of image position method, device, storage medium and equipment based on coordinate conversion
CN110427970A (en) * 2019-07-05 2019-11-08 平安科技(深圳)有限公司 Image classification method, device, computer equipment and storage medium
CN111340780A (en) * 2020-02-26 2020-06-26 汕头市超声仪器研究所有限公司 Focus detection method based on three-dimensional ultrasonic image
CN114255329A (en) * 2021-11-19 2022-03-29 苏州微创畅行机器人有限公司 ROI automatic positioning method and device, surgical robot system, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5371778A (en) * 1991-11-29 1994-12-06 Picker International, Inc. Concurrent display and adjustment of 3D projection, coronal slice, sagittal slice, and transverse slice images
CN110021053A (en) * 2019-04-16 2019-07-16 河北医科大学第二医院 A kind of image position method, device, storage medium and equipment based on coordinate conversion
CN110427970A (en) * 2019-07-05 2019-11-08 平安科技(深圳)有限公司 Image classification method, device, computer equipment and storage medium
CN111340780A (en) * 2020-02-26 2020-06-26 汕头市超声仪器研究所有限公司 Focus detection method based on three-dimensional ultrasonic image
CN114255329A (en) * 2021-11-19 2022-03-29 苏州微创畅行机器人有限公司 ROI automatic positioning method and device, surgical robot system, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LI BIN, LEI XUE; DAI MENG; WANG RUNHUI; BI YANHUA; FAN ZHENZENG: "Utilizing Coordinate Transition of Imaging Data to Locate the Relationship Between the Intracranial Target and the Skull Surface Signs", JOURNAL OF HEBEI MEDICAL UNIVERSITY, vol. 33, no. 11, 1 November 2012 (2012-11-01), pages 1260, XP093067899 *
WANG JINCHUAN: "The Key Technology Research of3-D Reconstruction in Medical Image Based on MC Algorithm", MASTER'S THESIS, no. 12, 25 April 2012 (2012-04-25), CN, pages 1 - 63, XP009545685 *

Also Published As

Publication number Publication date
CN114255329A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
WO2023088275A1 (en) Automatic roi positioning method and apparatus, surgical robot system, device and medium
CN106682435B (en) System and method for automatically detecting lesion in medical image through multi-model fusion
CN107480677B (en) Method and device for identifying interest region in three-dimensional CT image
CN110310287B (en) Automatic organ-at-risk delineation method, equipment and storage medium based on neural network
US7783094B2 (en) System and method of computer-aided detection
US8285013B2 (en) Method and apparatus for detecting abnormal patterns within diagnosis target image utilizing the past positions of abnormal patterns
JP7346553B2 (en) Determining the growth rate of objects in a 3D dataset using deep learning
CN114974575A (en) Breast cancer neoadjuvant chemotherapy curative effect prediction device based on multi-feature fusion
JP5296981B2 (en) Automatic registration of medical volume images in modalities using affine transformation
CN110490841B (en) Computer-aided image analysis method, computer device and storage medium
Jaffar et al. An ensemble shape gradient features descriptor based nodule detection paradigm: a novel model to augment complex diagnostic decisions assistance
US20060078184A1 (en) Intelligent splitting of volume data
KR20190090986A (en) System and method for assisting chest medical images reading
CN112464802B (en) Automatic identification method and device for slide sample information and computer equipment
CN110211200B (en) Dental arch wire generating method and system based on neural network technology
CN109816665B (en) Rapid segmentation method and device for optical coherence tomography image
CN113723417B (en) Single view-based image matching method, device, equipment and storage medium
CN114334097A (en) Automatic assessment method based on lesion progress on medical image and related product
CN113962957A (en) Medical image processing method, bone image processing method, device and equipment
JPWO2020174770A1 (en) Domain-specific devices, methods and programs, learning devices, methods and programs, and classifiers
CN111210414A (en) Medical image analysis method, computer device and readable storage medium
CN115148341B (en) AI structure sketching method and system based on body position recognition
CN112183618B (en) Similarity determination method and similarity determination device
EP4040384A1 (en) Method, device and a system for determining presence of appendicitis
CN113112475B (en) Traditional Chinese medicine ear five-organ region segmentation method and device based on machine learning

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22894808

Country of ref document: EP

Kind code of ref document: A1