A method and device for identifying a target object based on position coordinate information
Preprocessing and feature extraction of CT images through a 3D convolutional neural network solves the problem of insufficient efficiency and accuracy in identifying internal and external condyle in the existing technology, and achieves efficient identification and positioning without reconstruction.
Patent Information
- Application Number
- CN202210011745.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-06
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-01-06
AI Technical Summary
Existing technologies have room for improvement in efficiency and accuracy when identifying and locating internal and external condyle in medical images, especially when image reconstruction is not performed.
A method based on 3D convolutional neural network is used to preprocess CT images, extract three-dimensional matrix data, and use convolution and pooling operations to obtain the intermediate feature map, combined with the convolution, flattening and fully connected operations of the two branches, Output the proportional information used to characterize the position of the internal and external condyle to determine its coordinate points.
It is possible to directly calculate and save the coordinate points of the inner and outer condyles of both legs without reconstruction, which improves the recognition efficiency and accuracy and meets the needs of medical image analysis.
Smart Images

Figure CN114359230B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image data processing technology, in particular to medical image processing, and more specifically to a method and device for identifying a target object based on position coordinate information, as well as a storage medium and an electronic device. In addition, the present invention also relates to an algorithm for identifying key points of an image using a 3D convolutional neural network, in particular to an algorithm for directly identifying the lateral condyle from a medical image using a 3D convolutional neural network. Background Art
[0002] With the rapid development of modern society, all walks of life have begun to be closely linked with the IT industry, and the same is true for the medical industry. When performing lower limb-related surgeries, in most cases, it is necessary to operate on the force line and the medial and lateral condyles, such as knee replacement and total hip replacement. At the same time, the position of the medial and lateral condyles is also the key to identifying the force line.
[0003] In order to identify and locate the lateral and lateral condyles, various digital technologies have been introduced for medical imaging in the past. However, there is still much room for improvement in how to achieve this efficiently and accurately. Summary of the invention
[0004] In order to solve the problems in the prior art, the present invention provides a 3D convolution-based neural network that can directly measure the medial and lateral condyles, which can identify CT and directly calculate and save the coordinate points of the medial and lateral condyles of both legs without reconstruction.
[0005] According to one aspect of an embodiment of the present invention, a method for identifying a target object based on position coordinate information is provided, the method comprising:
[0006] Acquire a to-be-processed image group associated with the target object, and pre-process the to-be-processed image group to obtain a pre-processed image group;
[0007] Acquiring three-dimensional matrix data of the preprocessed image group;
[0008] Inputting the three-dimensional matrix data into a preset convolutional neural network model, performing image recognition based on the preset convolutional neural network model, and determining the scale information of each key point used to characterize the location of the target object;
[0009] The position coordinate information of the target object in the image is determined according to the scale information of each key point, and the target object is identified according to the position coordinate information.
[0010] Preferably, the image group to be processed includes a plurality of image files, wherein each image file has an image region and the image region contains a target object.
[0011] Preferably, the preprocessing of the to-be-processed image group to obtain a preprocessed image group comprises:
[0012] According to the DICOM sequence of the image group to be processed, materials other than bones in the image group to be processed are eliminated based on the DICOM protocol to obtain a preprocessed image group.
[0013] Preferably, the step of obtaining the three-dimensional matrix data of the pre-processed image group includes:
[0014] Convert the data in the preset Hu value range in the DICOM sequence of the preprocessed image group into pixel values in proportion, and obtain the three-dimensional matrix data of the preprocessed image group based on the converted pixel values;
[0015] The pixel values corresponding to the lower limit and upper limit of the preset Hu value range are 0 and 255 respectively.
[0016] Preferably, performing image recognition based on the preset convolutional neural network model to determine the proportion information of each key point used to characterize the location of the target object includes:
[0017] The preset convolutional neural network model performs convolution and pooling operations based on the three-dimensional matrix data to obtain an intermediate feature map;
[0018] Performing two-branch convolution, flattening and full connection operations on the intermediate feature map respectively to obtain a first full connection result and a second full connection result, and splicing the first full connection result and the second full connection result to obtain a splicing vector;
[0019] The splicing vector is outputted in a preset manner using a preset number of fully connected layers to obtain the proportion information of each key point used to characterize the location of the target object.
[0020] Preferably, the preset convolutional neural network model performs convolution and pooling operations based on the three-dimensional matrix data to obtain an intermediate feature map, including:
[0021] Based on the three-dimensional matrix data, a conv3*3*3-64-2 three-dimensional convolution operation is performed with a step size of 2 to obtain a first feature map, and the mish activation function is used to activate the first feature map. After activation, batch normalization BN is used to normalize the data;
[0022] Perform a conv3*3*3-64 three-dimensional convolution operation on the normalized first feature map, and then perform maximum pooling to obtain the second feature map;
[0023] The second feature map is subjected to two consecutive conv3*3*3-64 three-dimensional convolution operations, and then to three conv1*1*1-64 three-dimensional convolution operations, followed by maximum pooling to obtain the intermediate feature map.
[0024] Preferably, the performing two-way branch convolution, flattening and full connection operations on the intermediate feature map respectively to obtain a first full connection result and a second full connection result includes:
[0025] For the first branch, a conv1*1*1-128-2 three-dimensional convolution operation is performed on the intermediate feature map, and after obtaining the feature map, a conv3*3*3-32-2 three-dimensional convolution operation is performed, and then two conv7*7*7-128 three-dimensional convolution operations are performed, and then a flatten operation is performed. After flattening, a full connection operation is performed to obtain the first full connection result;
[0026] For the second branch, a conv3*3*3-128-2 three-dimensional convolution operation is performed on the intermediate feature map, and then a conv3*3*3-128-1 three-dimensional convolution operation is performed, and then a conv3*3*3-32-2 three-dimensional convolution operation is performed to obtain a feature map, followed by a conv7*7*7-128 three-dimensional convolution operation, and then a flatten operation is performed. After flattening, a full connection operation is performed to obtain the second fully connected result.
[0027] Preferably, the using of a preset number of fully connected layers to output the splicing vector in a preset manner to obtain the proportion information of each key point used to characterize the location of the target object includes:
[0028] Determine the number of preset groups according to the number of key points;
[0029] Use a preset number of fully connected layers to output the concatenated vector in a sigmoid manner to obtain the output value of each key point on the three coordinate axes of X, Y, and Z;
[0030] The length of each axis is taken as unit 1, and the scale information of each key point on the three coordinate axes of X, Y, and Z is determined according to the output value;
[0031] The step of determining the preset number of groups according to the number of key points includes:
[0032] K = {n*3*512}sigmoid(k);
[0033] Among them, k is the feature finally extracted by the neural network; K is the final output result coordinate set; n is the number of key points.
[0034] Preferably, the step of determining the position coordinate information of the target object in the image according to the scale information of each key point includes:
[0035] The coordinates of the image are read, and the position coordinate information of each key point used to characterize the position of the target object is determined based on the coordinates and the ratio information of each key point on the three coordinate axes of X, Y, and Z.
[0036] According to another aspect of an embodiment of the present invention, there is provided a device for identifying a target object based on position coordinate information, the device comprising:
[0037] A preprocessing module, used for acquiring a to-be-processed image group associated with a target object, and preprocessing the to-be-processed image group to obtain a preprocessed image group;
[0038] A three-dimensional matrix data acquisition module, used to acquire the three-dimensional matrix data of the pre-processed image group;
[0039] A position coordinate information determination module, used to input the three-dimensional matrix data into a preset convolutional neural network model, perform image recognition based on the preset convolutional neural network model, and determine the scale information of each key point used to characterize the position of the target object;
[0040] The recognition module is used to determine the position coordinate information of the target object in the image according to the scale information of each key point, and recognize the target object according to the position coordinate information.
[0041] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is used to execute the method described in any one of the above embodiments.
[0042] According to another aspect of an embodiment of the present invention, an electronic device is provided, the electronic device comprising: a processor and a memory; wherein:
[0043] The memory is used to store the processor executable instructions;
[0044] The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of the above embodiments of the present invention.
[0045] The present invention provides a method and system for identifying a target object based on position coordinate information, the method comprising: obtaining a to-be-processed image group associated with the target object, and performing preprocessing to obtain a preprocessed image group; obtaining three-dimensional matrix data of the preprocessed image group; inputting the three-dimensional matrix data into a preset convolutional neural network model, performing image recognition based on the preset convolutional neural network model, and determining the scale information of each key point used to characterize the location of the target object; determining the position coordinate information of the target object in the image according to the scale information of each key point, and identifying the target object according to the position coordinate information. The method of the present invention can be used for the identification of the medial and lateral condyles, and the CT can be identified through the 3D convolutional neural network, and the coordinate points of the medial and lateral condyles of both legs can be directly calculated and saved without reconstruction.
[0046] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0048] Figure 1 A schematic diagram of a flow chart of a method for identifying a target object based on position coordinate information according to an exemplary embodiment of the present invention;
[0049] Figure 2 A schematic diagram of a convolutional neural network model analysis according to an exemplary embodiment of the present invention;
[0050] Figure 3 A schematic diagram of a flatten operation provided according to an exemplary embodiment of the present invention;
[0051] Figure 4 A schematic diagram of the identified medial and lateral condyles of both legs provided according to an exemplary embodiment of the present invention;
[0052] Figure 5 is a schematic diagram of the structure of a device for identifying a target object based on position coordinate information provided by an exemplary embodiment of the present invention;
[0053] Figure 6 It is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0054] Below, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described here.
[0055] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0056] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present invention are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0057] It should also be understood that, in the embodiments of the present invention, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0058] It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0059] In addition, the term "and / or" in the present invention is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0060] It should also be understood that the description of the various embodiments of the present invention focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0061] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0062] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0063] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0064] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0065] Embodiments of the present invention can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0066] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0067] Exemplary Methods
[0068] Figure 1 FIG. 1 is a flow chart of a method 100 for identifying a target object based on position coordinate information provided by an exemplary embodiment of the present invention. This embodiment can be applied to electronic devices, such as Figure 1 As shown, the following steps are included:
[0069] Step 101 : acquiring a to-be-processed image group associated with a target object, and preprocessing the to-be-processed image group to obtain a preprocessed image group.
[0070] Preferably, the image group to be processed includes a plurality of image files, wherein each image file has an image region and the image region contains a target object.
[0071] Preferably, the preprocessing of the to-be-processed image group to obtain a preprocessed image group comprises:
[0072] According to the DICOM sequence of the image group to be processed, materials other than bones in the image group to be processed are eliminated based on the DICOM protocol to obtain a preprocessed image group.
[0073] An embodiment of the present invention designs a new neural network, which is a neural network based on three-dimensional convolution and uses the principle of key point recognition. It can be applied to electronic devices, and in particular can be applied to medical image analysis, for example, to recognize layered medical image sequences such as CT and magnetic resonance imaging.
[0074] Regarding the key point recognition network, the most commonly used research direction is face recognition. The key points of the face are identified on the 2D image and the position of each key point in the 3D space is calculated. This also adds limitations to the neural network, because portraits are usually 2D images, and CT is all 3D images. The use of 3D convolution can better extract the position information of each key point in the three-dimensional space, which is more suitable for layered medical image sequences such as CT and MRI.
[0075] The main task of the present invention is to identify key points in the bones, so soft tissue or ultra-dense tissue (such as the bed board in CT, prostheses of various materials that the patient has installed, etc.) is not required. Therefore, in an embodiment of the present invention, materials other than bones are pre-eliminated according to the DICOM protocol, data preprocessing is completed, and a preprocessed image group is obtained. The image group to be processed of the present invention includes a plurality of image files, each of which has an image area and contains a target object in the image area, and the target object is an image of the lateral condyle.
[0076] Step 102: Acquire the three-dimensional matrix data of the pre-processed image group.
[0077] Preferably, the step of obtaining the three-dimensional matrix data of the pre-processed image group includes:
[0078] Convert the data in the preset Hu value range in the DICOM sequence of the preprocessed image group into pixel values in proportion, and obtain the three-dimensional matrix data of the preprocessed image group based on the converted pixel values;
[0079] The pixel values corresponding to the lower limit and upper limit of the preset Hu value range are 0 and 255 respectively.
[0080] Taking CT images as an example, the present invention needs to process the DICOM sequence of the entire set of CT images. Since the pixel value of a normal image is 256 pixel values from 0 to 255, and a color image has three color channels of red, green and blue, and the Hu value of CT has 4096 values from -1024 to 3071, the human eye cannot directly observe it under normal circumstances, and the Hu value of most bones is around 400.
[0081] Therefore, after multiple adjustments, the embodiment of the present invention finally determines the Hu value between 25 and 475 to obtain a result that makes the bone visibility the highest, and then converts the Hu value between 25 and 475 into pixel values in proportion; wherein, during the conversion, a Hu value of 25 corresponds to a pixel value of 0, and a Hu value of 475 corresponds to a pixel value of 255). Through the pixel value conversion, each set of CT that can be read can form a three-dimensional matrix corresponding to this set of images. In addition, in order to better conform to the multi-layer calculation design of the neural network, the length, width and height need to be adjusted to 2 n The initial length and width of each CT image is 512*512, but the number of images in a set of CT images is not fixed, so the shape is reset to 512*512*512 here, which makes very little change to the original image and is easier to reason about. Then the three-dimensional matrix is input into the preset convolutional neural network model.
[0082] Step 103: input the three-dimensional matrix data into a preset convolutional neural network model, perform image recognition based on the preset convolutional neural network model, and determine the proportion information of each key point used to characterize the location of the target object.
[0083] Preferably, performing image recognition based on the preset convolutional neural network model to determine the proportion information of each key point used to characterize the location of the target object includes:
[0084] The preset convolutional neural network model performs convolution and pooling operations based on the three-dimensional matrix data to obtain an intermediate feature map;
[0085] Performing two-branch convolution, flattening and full connection operations on the intermediate feature map respectively to obtain a first full connection result and a second full connection result, and splicing the first full connection result and the second full connection result to obtain a splicing vector;
[0086] The splicing vector is outputted in a preset manner using a preset number of fully connected layers to obtain the proportion information of each key point used to characterize the location of the target object.
[0087] Preferably, the preset convolutional neural network model performs convolution and pooling operations based on the three-dimensional matrix data to obtain an intermediate feature map, including:
[0088] Based on the three-dimensional matrix data, a conv3*3*3-64-2 three-dimensional convolution operation is performed with a step size of 2 to obtain a first feature map, and the mish activation function is used to activate the first feature map. After activation, batch normalization BN is used to normalize the data;
[0089] Perform a conv3*3*3-64 three-dimensional convolution operation on the normalized first feature map, and then perform maximum pooling to obtain the second feature map;
[0090] The second feature map is subjected to two consecutive conv3*3*3-64 three-dimensional convolution operations, and then to three conv1*1*1-64 three-dimensional convolution operations, followed by maximum pooling to obtain the intermediate feature map.
[0091] Preferably, the performing two-way branch convolution, flattening and full connection operations on the intermediate feature map respectively to obtain a first full connection result and a second full connection result includes:
[0092] For the first branch, a conv1*1*1-128-2 three-dimensional convolution operation is performed on the intermediate feature map, and after obtaining the feature map, a conv3*3*3-32-2 three-dimensional convolution operation is performed, and then two conv7*7*7-128 three-dimensional convolution operations are performed, and then a flatten operation is performed. After flattening, a full connection operation is performed to obtain the first full connection result;
[0093] For the second branch, a conv3*3*3-128-2 three-dimensional convolution operation is performed on the intermediate feature map, and then a conv3*3*3-128-1 three-dimensional convolution operation is performed, and then a conv3*3*3-32-2 three-dimensional convolution operation is performed to obtain a feature map, followed by a conv7*7*7-128 three-dimensional convolution operation, and then a flatten operation is performed. After flattening, a full connection operation is performed to obtain the second fully connected result.
[0094] Preferably, the fully connected layer using a preset number of groups outputs the splicing vector in a preset manner to obtain the proportion information of each key point used to characterize the location of the target object, including:
[0095] Determine the number of preset groups according to the number of key points;
[0096] Use a preset number of fully connected layers to output the concatenated vector in a sigmoid manner to obtain the output value of each key point on the three coordinate axes of X, Y, and Z;
[0097] The length of each axis is taken as unit 1, and the scale information of each key point on the three coordinate axes of X, Y, and Z is determined according to the output value;
[0098] The step of determining the preset number of groups according to the number of key points includes:
[0099] K = {n*3*512}sigmoid(k);
[0100] Among them, k is the feature finally extracted by the neural network; K is the final output result coordinate set; n is the number of key points.
[0101] Combination Figure 3 As shown, in an embodiment of the present invention, a convolutional neural network model is preset, and first a conv3*3*3-64-2 is performed, which means a 3*3*3 three-dimensional convolution operation is performed, 64 convolution kernels are used, and the step size is 2, to form a 64-channel output feature map (i.e., the first feature map), and the mish activation function is used for activation to enhance nonlinearity. The mish activation function formula is mish(x)=x*tanh(log(1+e x )), after activation, use BN to normalize the data. After conv3*3*3-64-2, a 256*256*256*64 feature map is obtained. Because the step size is 2, even without pooling, the length, width and height of the original image can be reduced to half of the original, and the total data volume is reduced to one eighth.
[0102] Then perform conv3*3*3-64 again, which has the same meaning as before. If the step size is not specified, it defaults to 1. Then perform maximum pooling with a step size of 2 to obtain a 128*128*128*64 feature map (i.e., the second feature map).
[0103] Then, two conv3*3*3-64 operations are performed, followed by three conv1*1*1-64 operations, and maximum pooling is performed to obtain a 64*64*64*64 feature map (i.e., the intermediate feature map), and then two branches are performed.
[0104] The first branch continues the 1*1 convolution, uses conv1*1*1-128-2, gets a feature map of 32*32*32*128, then performs conv3*3*3-32-2 once, and uses conv7*7*7-128 twice to get a feature map of 16*16*16*128, and then uses the flatten operation. The process of the flatten operation is as follows Figure 3 As shown. After flattening, a 2048 full connection operation is performed. That is, here, two convolution, flattening and full connection operations are performed to obtain the first full connection result.
[0105] The second branch first uses conv3*3*3-128-2 to obtain a 32*32*32*128 feature map, then uses conv3*3*3-128-1 operation for convolution, and then uses conv3*3*3-32-2 operation to obtain a 16*16*16*128 feature map. Then, similar to the end operation of the first branch, the same convolution, flattening and full connection operations are performed, that is, after conv7*7*7-128 is performed and flattened into a vector, a 2048 full connection operation is performed to obtain the second full connection result.
[0106] Then, the results of the two branches are concatenated to obtain a vector of length 4096. Then, several groups of fully connected layers are used, each of which is a 512*3 fully connected layer for output. The number of fully connected groups depends on the number of key points n desired, where k = {n*3*512}sigmoid(k), 3 represents the values of the three coordinate axes X, Y, and Z in the spatial coordinate system, and the output method uses sigmoid. The sigmoid function formula is The sigmoid function outputs a constant between 0 and 1. At this time, the length of the entire axis is regarded as 1, and the output result can be used to determine the position of the coordinates representing this key point (i.e., the proportion information). For example, if the X-axis output of the first key point is 0.793, it means that the X coordinate of this key point is at 79.3% of the overall position of the image. A set of 3 outputs will obtain the position of each coordinate axis of this key point.
[0107] In the embodiment of the present invention, the flattening operation is to convert all feature maps into a vector in the order of length, width, height, and number of channels. All features are reorganized into a vector by flattening to prepare for subsequent operations. The purpose of using 7*7*7 convolution before flattening is to increase the receptive field scale of the feature, which can make the final result more accurate.
[0108] Considering that the neural network in this embodiment uses 3D convolution, the video memory required is very large. Except for the bottleneck layer of 1*1 convolution, all convolution operations used in the present invention use depthwise separable convolution.
[0109] The original intention of designing depthwise separable convolution is not to solve the purpose of 3D convolution. However, the inventors have applied it to solve the problem of excessive video memory consumption of 3D convolution, and effectively proposed a technical solution that is usually not feasible for 3D convolution due to excessive video memory consumption.
[0110] In the past, the traditional convolution operation was to place the convolution kernel in the input image and slide it continuously. The content of each convolution operation was to perform a dot multiplication on the part of the data in the original image that overlapped with the convolution kernel and the data in the convolution kernel, and then add all the data together to obtain a data in the new feature map.
[0111] Unlike traditional convolution operations, depthwise separable convolution operates by operating each channel with the convolution kernel separately, and then integrating the results using a special convolution kernel as shown below.
[0112] Here we take 2D convolution as an example (because the concept of number of channels is added in the convolution process, the actual dimension should be one more than the image dimension. If 3D is used as an example, the number of channels in the convolution process is actually four-dimensional data, which cannot be represented in space, so we use the more understandable 2D convolution to represent it). In normal convolution, when a 5*5 pixel 3-channel feature map is subjected to 3*3 convolution, the amount of computation for one convolution is 3*3*4=27, while when performing depthwise separable convolution, the amount of computation for the first convolution is only 1*1*3*4=12. Converting to 3D convolution reduces the amount of computation by geometric multiples, so that the amount of computation is controlled within the range that a normal GPU can bear.
[0113] In addition, the so-called "1*1 convolution" is a general term for the bottleneck layer. In fact, it is not necessarily a 1*1 two-dimensional convolution kernel. The specific dimension depends on the situation. For example, if its dimension in the network is 3, it should be a 1*1*1 convolution kernel. If it is in a four-dimensional convolution, it should be 1*1*1*1. In this invention, for the sake of simplicity, it is collectively referred to as "1*1 convolution".
[0114] Step 104: determine the position coordinate information of the target object in the image according to the scale information of each key point, and identify the target object according to the position coordinate information.
[0115] Preferably, the step of determining the position coordinate information of the target object in the image according to the scale information of each key point includes:
[0116] The coordinates of the image are read, and the position coordinate information of each key point used to characterize the position of the target object is determined based on the coordinates and the ratio information of each key point on the three coordinate axes of X, Y, and Z.
[0117] In an embodiment of the present invention, vtk is used to read the coordinates of the entire image, and the position of each key point in the world coordinate system can be calculated directly in the original image coordinates. Then, the coordinates of the key points are input into the image to obtain the spatial relationship between each key point and each other, so that the position of the medial and lateral condyles in the image can be obtained and directly presented in the CT original image, such as Figure 4As shown. The present invention obtains the coordinate values of the key points of the desired image by inputting the three-dimensional matrix data into the 3D convolutional neural network model, and inputs the coordinate values of the key points of the image into the original image to obtain the spatial relationship between each key point. In this way, the position of the key point in the original image can be obtained, so that it can be directly presented in the original image.
[0118] The present invention uses vtk to read the coordinates of the entire image, and can directly calculate the position of each key point in the world coordinate system in the original image coordinates, without calculating data such as layer thickness and layer distance, thereby reducing the amount of calculation.
[0119] The method of the present invention performs key point recognition based on 3D convolution, can directly locate the positions of the medial and lateral condyles through the original CT image, and directly calculate and save the coordinate points of the medial and lateral condyles of both legs without reconstruction.
[0120] Exemplary Devices
[0121] Figure 5 FIG. 5 is a schematic diagram of a structure of an apparatus 500 for identifying a target object based on position coordinate information provided by an exemplary embodiment of the present invention. Figure 5 As shown, this embodiment includes: a pre-processing module 501 , a three-dimensional matrix data acquisition module 502 , a position coordinate information determination module 503 and a recognition module 504 .
[0122] Preferably, the preprocessing module 501 is used to obtain a to-be-processed image group associated with the target object, and preprocess the to-be-processed image group to obtain a preprocessed image group.
[0123] Preferably, in the pre-processing module 501, the image group to be processed includes a plurality of image files, wherein each image file has an image region and the image region contains a target object.
[0124] Preferably, the preprocessing module 501 preprocesses the image group to be processed to obtain a preprocessed image group, including:
[0125] According to the DICOM sequence of the image group to be processed, materials other than bones in the image group to be processed are eliminated based on the DICOM protocol to obtain a preprocessed image group.
[0126] Preferably, the three-dimensional matrix data acquisition module 502 is used to acquire the three-dimensional matrix data of the pre-processed image group.
[0127] Preferably, the three-dimensional matrix data acquisition module 502 acquires the three-dimensional matrix data of the pre-processed image group, including:
[0128] Convert the data in the preset Hu value range in the DICOM sequence of the preprocessed image group into pixel values in proportion, and obtain the three-dimensional matrix data of the preprocessed image group based on the converted pixel values;
[0129] The pixel values corresponding to the lower limit and upper limit of the preset Hu value range are 0 and 255 respectively.
[0130] Preferably, the position coordinate information determination module 503 is used to input the three-dimensional matrix data into a preset convolutional neural network model, perform image recognition based on the preset convolutional neural network model, and determine the proportion information of each key point used to characterize the position of the target object.
[0131] Preferably, the recognition module 504 is used to determine the position coordinate information of the target object in the image according to the scale information of each key point, and recognize the target object according to the position coordinate information.
[0132] Preferably, the position coordinate information determining module 503 performs image recognition based on the preset convolutional neural network model to determine the scale information of each key point used to characterize the position of the target object, including:
[0133] The preset convolutional neural network model performs convolution and pooling operations based on the three-dimensional matrix data to obtain an intermediate feature map;
[0134] Performing two-branch convolution, flattening and full connection operations on the intermediate feature map respectively to obtain a first full connection result and a second full connection result, and splicing the first full connection result and the second full connection result to obtain a splicing vector;
[0135] The splicing vector is outputted in a preset manner using a preset number of fully connected layers to obtain the proportion information of each key point used to characterize the location of the target object.
[0136] Preferably, in the position coordinate information determining module 503, the preset convolutional neural network model performs convolution and pooling operations based on the three-dimensional matrix data to obtain an intermediate feature map, including:
[0137] Based on the three-dimensional matrix data, a conv3*3*3-64-2 three-dimensional convolution operation is performed with a step size of 2 to obtain a first feature map, and the mish activation function is used to activate the first feature map. After activation, batch normalization BN is used to normalize the data;
[0138] Perform a conv3*3*3-64 three-dimensional convolution operation on the normalized first feature map, and then perform maximum pooling to obtain the second feature map;
[0139] The second feature map is subjected to two consecutive conv3*3*3-64 three-dimensional convolution operations, and then to three conv1*1*1-64 three-dimensional convolution operations, followed by maximum pooling to obtain the intermediate feature map.
[0140] Preferably, the position coordinate information determining module 503 performs two-branch convolution, flattening and full connection operations on the intermediate feature map to obtain a first full connection result and a second full connection result, including:
[0141] For the first branch, a conv1*1*1-128-2 three-dimensional convolution operation is performed on the intermediate feature map, and after obtaining the feature map, a conv3*3*3-32-2 three-dimensional convolution operation is performed, and then two conv7*7*7-128 three-dimensional convolution operations are performed, and then a flatten operation is performed. After flattening, a full connection operation is performed to obtain the first full connection result;
[0142] For the second branch, a conv3*3*3-128-2 three-dimensional convolution operation is performed on the intermediate feature map, and then a conv3*3*3-128-1 three-dimensional convolution operation is performed, and then a conv3*3*3-32-2 three-dimensional convolution operation is performed to obtain a feature map, followed by a conv7*7*7-128 three-dimensional convolution operation, and then a flatten operation is performed. After flattening, a full connection operation is performed to obtain the second full connection result.
[0143] Preferably, the position coordinate information determining module 503, the fully connected layer using a preset number of groups outputs the splicing vector in a preset manner to obtain the proportion information of each key point used to characterize the position of the target object, includes:
[0144] Determine the number of preset groups according to the number of key points;
[0145] Use a preset number of fully connected layers to output the concatenated vector in a sigmoid manner to obtain the output value of each key point on the three coordinate axes of X, Y, and Z;
[0146] The length of each axis is taken as unit 1, and the scale information of each key point on the three coordinate axes of X, Y, and Z is determined according to the output value;
[0147] The step of determining the preset number of groups according to the number of key points includes:
[0148] K = {n*3*512}sigmoid(k);
[0149] Among them, k is the feature finally extracted by the neural network; K is the final output result coordinate set; n is the number of key points.
[0150] Preferably, the recognition module 504 determines the position coordinate information of the target object in the image according to the scale information of each key point, including:
[0151] The coordinates of the image are read, and the position coordinate information of each key point used to characterize the position of the target object is determined based on the coordinates and the ratio information of each key point on the three coordinate axes of X, Y, and Z.
[0152] The apparatus 500 for identifying a target object based on position coordinate information of an embodiment of the present invention corresponds to the method 100 for identifying a target object based on position coordinate information of another embodiment of the present invention, and will not be described in detail herein.
[0153] Exemplary Electronic Devices
[0154] Figure 6 The electronic device provided by an exemplary embodiment of the present invention may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them. Figure 6 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure. Figure 6 As shown, the electronic device 60 includes one or more processors 61 and a memory 62 .
[0155] The processor 61 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0156] The memory 62 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 61 may run the program instructions to implement the method of identifying the target object based on the position coordinate information of the software program of each embodiment of the present disclosure described above and / or other desired functions. In one example, the electronic device may also include: an input device 63 and an output device 64, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0157] In addition, the input device 63 may also include, for example, a keyboard, a mouse, etc.
[0158] The output device 64 can output various information to the outside, and can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0159] Of course, to simplify, Figure 6 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.
[0160] Exemplary computer program products and computer-readable storage media
[0161] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method for identifying a target object based on position coordinate information according to various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
[0162] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0163] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the method for identifying a target object based on position coordinate information according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.
[0164] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0165] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0166] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0167] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0168] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0169] It should also be noted that in the apparatus, equipment and method of the present disclosure, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present disclosure. The above description of the disclosed aspects is provided to enable any technician in the field to make or use the present disclosure. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown here, but to the widest range consistent with the principles and novel features disclosed herein.
[0170] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for identifying a target object based on position coordinate information, characterized in that: The method comprises: Acquire a to-be-processed image group associated with the target object, and pre-process the to-be-processed image group to obtain a pre-processed image group; Acquiring three-dimensional matrix data of the preprocessed image group; Inputting the three-dimensional matrix data into a preset convolutional neural network model, performing image recognition based on the preset convolutional neural network model, and determining the scale information of each key point used to characterize the location of the target object; Determining the position coordinate information of the target object in the image according to the scale information of each key point, and identifying the target object according to the position coordinate information; The performing of image recognition based on the preset convolutional neural network model to determine the proportion information of each key point used to characterize the location of the target object includes: The preset convolutional neural network model performs convolution and pooling operations based on the three-dimensional matrix data to obtain an intermediate feature map; Performing two-branch convolution, flattening and full connection operations on the intermediate feature map respectively to obtain a first full connection result and a second full connection result, and splicing the first full connection result and the second full connection result to obtain a splicing vector; Outputting the splicing vector in a preset manner using a preset number of fully connected layers to obtain the proportion information of each key point used to characterize the location of the target object includes: Determine the number of preset groups according to the number of key points; Use a preset number of fully connected layers to output the concatenated vector in a sigmoid manner to obtain the output value of each key point on the three coordinate axes of X, Y, and Z; The length of each axis is taken as unit 1, and the scale information of each key point on the three coordinate axes of X, Y, and Z is determined according to the output value; The step of determining the preset number of groups according to the number of key points includes: K={n*3*512}sigmoid(k); Among them, k is the feature finally extracted by the neural network; K is the final output result coordinate set; n is the number of key points.
2. The method according to claim 1, characterized in that The image group to be processed includes a plurality of image files, wherein each image file has an image region and the image region contains a target object.
3. The method according to claim 1, characterized in that The preprocessing of the to-be-processed image group to obtain a preprocessed image group comprises: According to the DICOM sequence of the image group to be processed, materials other than bones in the image group to be processed are eliminated based on the DICOM protocol to obtain a preprocessed image group.
4. The method according to claim 1, characterized in that: The step of obtaining the three-dimensional matrix data of the pre-processed image group includes: Convert the data in the preset Hu value range in the DICOM sequence of the preprocessed image group into pixel values in proportion, and obtain the three-dimensional matrix data of the preprocessed image group based on the converted pixel values; The pixel values corresponding to the lower limit and upper limit of the preset Hu value range are 0 and 255 respectively.
5. The method according to claim 1, characterized in that The preset convolutional neural network model performs convolution and pooling operations based on the three-dimensional matrix data to obtain an intermediate feature map, including: Based on the three-dimensional matrix data, a conv3*3*3-64-2 three-dimensional convolution operation is performed with a step size of 2 to obtain a first feature map, and the mish activation function is used to activate the first feature map. After activation, batch normalization BN is used to normalize the data; Perform a conv3*3*3-64 three-dimensional convolution operation on the normalized first feature map, and then perform maximum pooling to obtain the second feature map; The second feature map is subjected to two consecutive conv3*3*3-64 three-dimensional convolution operations, and then to three conv1*1*1-64 three-dimensional convolution operations, followed by maximum pooling to obtain the intermediate feature map.
6. The method according to claim 1, characterized in that The performing two-branch convolution, flattening and full connection operations on the intermediate feature map to obtain a first full connection result and a second full connection result respectively includes: For the first branch, a conv1*1*1-128-2 three-dimensional convolution operation is performed on the intermediate feature map, and after obtaining the feature map, a conv3*3*3-32-2 three-dimensional convolution operation is performed, and then two conv7*7*7-128 three-dimensional convolution operations are performed, and then a flatten operation is performed. After flattening, a full connection operation is performed to obtain the first full connection result; For the second branch, a conv3*3*3-128-2 three-dimensional convolution operation is performed on the intermediate feature map, and then a conv3*3*3-128-1 three-dimensional convolution operation is performed, and then a conv3*3*3-32-2 three-dimensional convolution operation is performed to obtain a feature map, followed by a conv7*7*7-128 three-dimensional convolution operation, and then a flatten operation is performed. After flattening, a full connection operation is performed to obtain the second fully connected result.
7. The method according to claim 1, characterized in that The step of determining the position coordinate information of the target object in the image according to the scale information of each key point includes: The coordinates of the image are read, and the position coordinate information of each key point used to characterize the position of the target object is determined based on the coordinates and the ratio information of each key point on the three coordinate axes of X, Y, and Z.
8. A device for identifying a target object based on position coordinate information, characterized in that: The device comprises: A preprocessing module, used for acquiring a to-be-processed image group associated with a target object, and preprocessing the to-be-processed image group to obtain a preprocessed image group; A three-dimensional matrix data acquisition module, used to acquire the three-dimensional matrix data of the pre-processed image group; A position coordinate information determination module, used to input the three-dimensional matrix data into a preset convolutional neural network model, perform image recognition based on the preset convolutional neural network model, and determine the scale information of each key point used to characterize the position of the target object; A recognition module, used to determine the position coordinate information of the target object in the image according to the scale information of each key point, and recognize the target object according to the position coordinate information; The performing of image recognition based on the preset convolutional neural network model to determine the proportion information of each key point used to characterize the location of the target object includes: The preset convolutional neural network model performs convolution and pooling operations based on the three-dimensional matrix data to obtain an intermediate feature map; Performing two-branch convolution, flattening and full connection operations on the intermediate feature map respectively to obtain a first full connection result and a second full connection result, and splicing the first full connection result and the second full connection result to obtain a splicing vector; Using a preset number of fully connected layers to output the splicing vector in a preset manner to obtain the proportion information of each key point used to characterize the location of the target object, including: Determine the number of preset groups according to the number of key points; Use a preset number of fully connected layers to output the concatenated vector in a sigmoid manner to obtain the output value of each key point on the three coordinate axes of X, Y, and Z; The length of each axis is taken as unit 1, and the scale information of each key point on the three coordinate axes of X, Y, and Z is determined according to the output value; The step of determining the preset number of groups according to the number of key points includes: K={n*3*512}sigmoid(k); Among them, k is the feature finally extracted by the neural network; K is the final output result coordinate set; n is the number of key points.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; wherein, The memory is used to store the processor executable instructions; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Target object skeleton key point positioning method and device based on multiple camera devices
CN111951326A
Attitude determination method, device and equipment, and storage medium
CN112241731A
Image data detection method and device
CN112287869A
Target, face and face key point detection method and device and storage medium
CN113887300A
Detecting pose using floating keypoint(s)
US20200226786A1
