Knee joint anatomical site identification method, device, equipment and readable storage medium
Through the combination of a fully connected neural network and Dropout strategy, knee DICOM data is extracted and anatomical site coordinates are output, which solves the problem of low efficiency and accuracy of knee anatomical site recognition, and achieves more efficient and accurate identification results.
Patent Information
- Application Number
- CN202310744070.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-21
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-06-21
AI Technical Summary
In the prior art, the recognition efficiency and accuracy of knee anatomical sites are low, and mainly rely on doctor experience for identification.
The knee anatomical site recognition method based on a fully connected neural network is adopted. By obtaining knee DICOM data, the segmentation network extracts femur, tibia, patella and fibula data, and the DICOM data are split, and the anatomical site is output using a fully connected neural network model. Coordinates, combined with Dropout strategy to improve identification accuracy.
It significantly improves the efficiency and accuracy of knee anatomical site recognition, reduces artificial errors, and improves the reliability of identification results.
Smart Images

Figure CN116883326B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of deep learning intelligent recognition technology, and in particular, relates to a method, device, equipment and computer-readable storage medium for identifying anatomical sites of a knee joint. Background Art
[0002] Currently, the anatomical sites of the knee joint are mainly identified by doctors based on their experience, but the efficiency and accuracy of the identification are low.
[0003] Therefore, how to improve the efficiency and accuracy of identifying the anatomical sites of the knee joint is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0004] The embodiments of the present application provide a method, device, equipment and computer-readable storage medium for identifying the anatomical site of the knee joint, which can improve the efficiency and accuracy of identifying the anatomical site of the knee joint.
[0005] In a first aspect, an embodiment of the present application provides a method for identifying an anatomical site of a knee joint, comprising:
[0006] Get knee joint DICOM data;
[0007] The bone data of four parts, femur, tibia, patella and fibula, are obtained through the segmentation network;
[0008] The knee joint DICOM data is segmented according to the positions of the patella, the end of the femur, and the tibial plateau to obtain segmented DICOM data;
[0009] The segmented DICOM data is input into the knee joint anatomical site recognition model, and the coordinates of the knee joint anatomical site are output; wherein the knee joint anatomical site recognition model is obtained through model training based on a fully connected neural network, and the fully connected neural network includes two fully connected layers, and a Dropout strategy is used between the two fully connected layers;
[0010] According to the segmented DICOM data, the output anatomical site coordinates of the knee joint are converted into the anatomical site coordinates of the knee joint corresponding to the DICOM data of the knee joint.
[0011] Optionally, also include:
[0012] Obtain the sample's knee joint DICOM data and anatomical site data;
[0013] Based on the knee joint DICOM data and the anatomical site data, the knee joint DICOM data is segmented to obtain segmented DICOM data.
[0014] Optionally, after obtaining the segmented DICOM data, the method further includes:
[0015] Based on the segmented DICOM data, coordinate transformation is performed on the anatomical site data to obtain transformed anatomical site data.
[0016] Optional, including:
[0017] The segmented DICOM data is in npy format;
[0018] The converted anatomical site data is in JSON format.
[0019] Optionally, after obtaining the converted anatomical site data, the method further includes:
[0020] Based on the segmented DICOM data and the converted anatomical site data, the training set, test set, and validation set were divided into 7:2:1.
[0021] Optionally, the fully connected neural network also includes:
[0022] Two 3D convolutional layers and two 3D downsampling layers for compressing data;
[0023] 3D-resunet network structure is used to extract features.
[0024] Optionally, the method further includes:
[0025] Get predicted values and true values;
[0026] Based on the predicted value and the true value, the loss value is calculated through the loss function;
[0027] Update the network parameters of the fully connected neural network based on the loss value feedback.
[0028] In a second aspect, an embodiment of the present application provides a knee joint anatomical site identification device, comprising:
[0029] Data acquisition module, used to acquire knee joint DICOM data;
[0030] The bone segmentation module is used to obtain the bone data of four parts: femur, tibia, patella and fibula through the segmentation network;
[0031] The data segmentation module is used to segment the knee joint DICOM data according to the positions of the patella, the end of the femur, and the tibial plateau to obtain the segmented DICOM data;
[0032] A coordinate output module is used to input the segmented DICOM data into a knee joint anatomical site recognition model and output the coordinates of the knee joint anatomical site; wherein the knee joint anatomical site recognition model is obtained through model training based on a fully connected neural network, and the fully connected neural network includes two fully connected layers, and a Dropout strategy is used between the two fully connected layers;
[0033] The coordinate conversion module is used to convert the output knee joint anatomical site coordinates into the knee joint anatomical site coordinates corresponding to the knee joint DICOM data according to the segmented DICOM data.
[0034] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;
[0035] When the processor executes the computer program instructions, the method for identifying the anatomical site of the knee joint according to the first aspect is implemented.
[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method for identifying the anatomical site of the knee joint according to the first aspect is implemented.
[0037] The embodiments of the present application provide a method, device, equipment and computer-readable storage medium for identifying the anatomical site of the knee joint, which can improve the efficiency and accuracy of identifying the anatomical site of the knee joint.
[0038] The knee joint anatomical site recognition method comprises: acquiring knee joint DICOM data; obtaining bone data of four parts, namely, femur, tibia, patella and fibula, through a segmentation network; segmenting the knee joint DICOM data according to the positions of the patella and femur ends and the tibial platform to obtain segmented DICOM data; inputting the segmented DICOM data into a knee joint anatomical site recognition model to output the coordinates of the knee joint anatomical site; wherein the knee joint anatomical site recognition model is obtained through model training based on a fully connected neural network, the fully connected neural network includes two fully connected layers, and a Dropout strategy is adopted between the two fully connected layers; according to the segmented DICOM data, converting the output knee joint anatomical site coordinates into knee joint anatomical site coordinates corresponding to the knee joint DICOM data.
[0039] It can be seen that this method inputs the segmented DICOM data into the knee joint anatomical site recognition model and outputs the coordinates of the knee joint anatomical site. Since the knee joint anatomical site recognition model is obtained through model training based on a fully connected neural network, the fully connected neural network includes two fully connected layers, and the Dropout strategy is used between the two fully connected layers, which can improve the efficiency and accuracy of knee joint anatomical site recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 It is a flowchart of a method for identifying an anatomical site of a knee joint provided by an embodiment of the present application;
[0042] Figure 2 is a schematic diagram of a knee joint anatomical site recognition framework provided by an embodiment of the present application;
[0043] Figure 3 is a schematic diagram of a fully connected neural network architecture provided by an embodiment of the present application;
[0044] Figure 4 This is a schematic diagram of the Dropout effect structure provided by an embodiment of the present application;
[0045] Figure 5 This is a schematic diagram of the knee joint anatomical site recognition result provided by an embodiment of the present application;
[0046] Figure 6 It is a schematic diagram of the structure of a knee joint anatomical site identification device provided by an embodiment of the present application;
[0047] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0048] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0049] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0050] Currently, the anatomical sites of the knee joint are mainly identified by doctors based on their experience, but the efficiency and accuracy of the identification are low.
[0051] In order to solve the problems of the prior art, the embodiments of the present application provide a method, device, apparatus and computer-readable storage medium for identifying the anatomical site of a knee joint. The following first introduces the method for identifying the anatomical site of a knee joint provided in the embodiments of the present application.
[0052] Figure 1 FIG. 1 is a flow chart of a method for identifying anatomic sites of a knee joint provided by an embodiment of the present application. Figure 1 As shown, the knee joint anatomical site identification method comprises:
[0053] S101, obtaining DICOM data of knee joint;
[0054] S102, obtaining bone data of four parts, namely, femur, tibia, patella and fibula, through a segmentation network;
[0055] S103, segmenting the knee joint DICOM data according to the positions of the patella, the end of the femur, and the tibial plateau to obtain segmented DICOM data;
[0056] S104, inputting the segmented DICOM data into a knee joint anatomical site recognition model, and outputting the coordinates of the knee joint anatomical site; wherein the knee joint anatomical site recognition model is obtained through model training based on a fully connected neural network, and the fully connected neural network includes two fully connected layers, and a Dropout strategy is used between the two fully connected layers;
[0057] S105 . According to the segmented DICOM data, convert the output anatomical coordinates of the knee joint into anatomical coordinates of the knee joint corresponding to the DICOM data of the knee joint.
[0058] Specifically, DICOM data is input, and the bone data of four parts, namely femur, tibia, patella and fibula, are obtained through the segmentation network. The DICOM data is segmented according to the position of the patella and the end of the femur and the tibial plateau (segmentation size 192*320*320), and the segmented DICOM data is obtained and input into the model. The anatomical site coordinates are output, and according to the segmented DICOM data, the output anatomical site coordinates are converted into anatomical site coordinates corresponding to the input DICOM data. Figure 2 It is a schematic diagram of a knee joint anatomical site identification framework provided in one embodiment of the present application.
[0059] In one embodiment, it further includes:
[0060] Obtain the sample's knee joint DICOM data and anatomical site data;
[0061] Based on the knee joint DICOM data and the anatomical site data, the knee joint DICOM data is segmented to obtain segmented DICOM data.
[0062] In one embodiment, after obtaining the segmented DICOM data, the method further includes:
[0063] Based on the segmented DICOM data, coordinate transformation is performed on the anatomical site data to obtain transformed anatomical site data.
[0064] In one embodiment, it includes:
[0065] The segmented DICOM data is in npy format;
[0066] The converted anatomical site data is in JSON format.
[0067] In one embodiment, after obtaining the converted anatomical site data, the method further comprises:
[0068] Based on the segmented DICOM data and the converted anatomical site data, the training set, test set, and validation set were divided into 7:2:1.
[0069] Specifically, 1) data preprocessing:
[0070] Taking into account that the number of original DICOM images for each case is inconsistent and the number of DICOM images is too large, a large amount of video memory will be occupied during model inference. Therefore, it is necessary to crop according to the position of the knee joint. After a large amount of data analysis, the range of the knee joint in the CT data is within the range of 192*320*320, which can meet the actual use needs and model training needs.
[0071] Therefore, the DICOM data is cropped (192*320*320), and the annotated anatomical sites are labeled according to the original DICOM size. In order to adapt to the cropped DICOM, the coordinates of the anatomical points need to be converted according to the cropped size.
[0072] 2) Save data format:
[0073] Convert DICOM to npy format data.
[0074] Anatomical point coordinates are converted into json format data.
[0075] 3) Generate training set:
[0076] The converted original data set is divided into training set, test set and validation set in a ratio of 7:2:1.
[0077] In one embodiment, the fully connected neural network further includes:
[0078] Two 3D convolutional layers and two 3D downsampling layers for compressing data;
[0079] 3D-resunet network structure is used to extract features.
[0080] Specifically, Figure 3 This is a schematic diagram of a fully connected neural network architecture provided by an embodiment of the present application. The recognition of anatomical sites of the knee joint is to identify the point coordinates in a three-dimensional image, a data regression task. In the design of this network structure, a 3D-resunet network structure is used as a feature extraction network, and then a fully connected layer is used to regress the extracted task output.
[0081] For the input training set data, two 3D convolutional layers and two 3D downsampling layers are first used. The purpose of this is to reduce the original data to 1 / 4 of the original size. This is to reduce the problem of excessive model parameters caused by excessive data, high video memory usage during training, and inability to train, and to speed up network training.
[0082] The feature extraction stage uses a 3D-resunet network structure, which contains three downsampling and three upsampling structures, and the convolution kernel uses a 3*3*3 convolution kernel.
[0083] The features extracted by 3D-resunet are not directly regressed on the three-dimensional feature layer. Instead, the Flatten layer is used to convert the three-dimensional feature layer into a one-dimensional format. The purpose is to connect it with the fully connected layer behind it. Then two fully connected outputs are used, and the number of neurons in the first fully connected layer is set to 1024 and the number of neurons in the second fully connected layer is set to 256. Then, the predicted coordinate value is output and regression learning is performed on the predicted value.
[0084] In the fully connected layer, each neuron is connected to all neurons in the previous and next layers, forming a densely connected structure, such as Figure 4 As shown in the left figure, the fully connected neural network can learn the complex features of the input data and perform tasks such as classification and regression.
[0085] The fully connected layer is prone to overfitting. To prevent overfitting of the neural network, the Dropout strategy is used and set to 0.5. Then, 50% of each node will be activated during forward propagation, and 50% will be closed and stop working. The essence of Dropout is to reduce the mutual dependence between nodes and reduce the overfitting problem. Figure 4 The right figure shows the connection between nodes in the fully connected layer after using Dropout.
[0086] In one embodiment, the method further comprises:
[0087] Get predicted values and true values;
[0088] Based on the predicted value and the true value, the loss value is calculated through the loss function;
[0089] Update the network parameters of the fully connected neural network based on the loss value feedback.
[0090] Specifically, the loss function uses the L2 loss function:
[0091]
[0092] In this task, due to the reason of labeling data, the labeled points need to be labeled at three positions of the knee joint: femur, tibia and patella. However, since some data do not require labeled points for the patella, the labeled data points of different cases are inconsistent. Therefore, it is necessary to set two partial loss functions, including the patella loss function and excluding the patella loss function. Both use the L2 loss function:
[0093] Loss (包含髌骨) =L2_loss
[0094] Loss (不包含髌骨) =L2_loss
[0095] Loss = α·Loss (包含髌骨) +(1-α)·Los (不包含髌骨)
[0096] Among them, α=0.6 is the loss weight coefficient. For data containing the patella, there are more points to be identified, so a larger weight coefficient is set. For data not containing the patella, there are fewer points to be identified, so a smaller weight coefficient is set.
[0097] Figure 5This is a schematic diagram of the knee joint anatomical site recognition result provided by an embodiment of the present application. This paper implements a knee joint anatomical site recognition method:
[0098] 1) After extracting features using a 3D neural network, the feature layer is not directly regressed. Instead, the 3D feature layer is converted into one dimension through a Flatten layer, and then connected to a fully connected layer, and the output result of the fully connected layer is regressed.
[0099] 2) For the dataset with characteristics in this article, write a specific loss function and set corresponding weights for different data.
[0100] Figure 6 : is a schematic diagram of the structure of a knee joint anatomical site identification device provided by an embodiment of the present application, the knee joint anatomical site identification device comprises:
[0101] The data acquisition module 601 is used to acquire DICOM data of the knee joint;
[0102] The bone segmentation module 602 is used to obtain the bone data of four parts, namely, the femur, tibia, patella and fibula, through the segmentation network;
[0103] The data segmentation module 603 is used to segment the knee joint DICOM data according to the positions of the patella, the end of the femur, and the tibial plateau to obtain segmented DICOM data;
[0104] The coordinate output module 604 is used to input the segmented DICOM data into the knee joint anatomical site recognition model and output the coordinates of the knee joint anatomical site; wherein the knee joint anatomical site recognition model is obtained through model training based on a fully connected neural network, and the fully connected neural network includes two fully connected layers, and a Dropout strategy is used between the two fully connected layers;
[0105] The coordinate conversion module 605 is used to convert the output knee joint anatomical site coordinates into the knee joint anatomical site coordinates corresponding to the knee joint DICOM data according to the segmented DICOM data.
[0106] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.
[0107] The electronic device may include a processor 701 and a memory 702 storing computer program instructions.
[0108] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0109] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the electronic device. In a particular embodiment, the memory 702 may be a non-volatile solid-state memory.
[0110] In one embodiment, the memory 702 may be a read-only memory (ROM). In one embodiment, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0111] The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement any one of the knee joint anatomical site identification methods in the above embodiments.
[0112] In one example, the electronic device may further include a communication interface 703 and a bus 710. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.
[0113] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0114] Bus 710 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0115] In addition, in combination with the knee joint anatomical site identification method in the above embodiments, the present application embodiment can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the knee joint anatomical site identification methods in the above embodiments is implemented.
[0116] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0117] The functional modules shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0118] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0119] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0120] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for identifying anatomical sites of a knee joint, characterized in that: include: Get knee joint DICOM data; The bone data of four parts, femur, tibia, patella and fibula, are obtained through the segmentation network; Segment the knee joint DICOM data according to the positions of the patella, femoral end, and tibial plateau to obtain segmented DICOM data; The segmented DICOM data is input into the knee joint anatomical site recognition model, and the coordinates of the knee joint anatomical site are output; wherein the knee joint anatomical site recognition model is obtained through model training based on a fully connected neural network, and the fully connected neural network includes two fully connected layers, and a Dropout strategy is used between the two fully connected layers; According to the segmented DICOM data, the output anatomical coordinates of the knee joint are converted into the anatomical coordinates of the knee joint corresponding to the DICOM data of the knee joint; Obtain the sample's knee joint DICOM data and anatomical site data; Based on the knee joint DICOM data and the anatomical site data, the knee joint DICOM data is segmented to obtain segmented DICOM data; After obtaining the segmented DICOM data, the method further includes: Based on the segmented DICOM data, coordinate transformation is performed on the anatomical site data to obtain transformed anatomical site data; The segmented DICOM data is in npy format; The converted anatomical site data is in JSON format; After obtaining the converted anatomical site data, the method further includes: Based on the segmented DICOM data and converted anatomical site data, the training set, test set, and validation set were divided into 7:2:
1. Specifically, 1) data preprocessing: Considering that the number of original DICOM images for each case is inconsistent and the number of DICOM images is too large, it will occupy a large amount of video memory during model inference. Therefore, it is necessary to crop according to the position of the knee joint. After a large amount of data analysis, the range of the knee joint in the CT data is within the range of 192*320*320, which meets the actual use needs and model training needs; Therefore, for the cropping process of DICOM data, the annotated anatomical sites are annotated according to the original DICOM size. In order to fit the cropped DICOM, the coordinates of the anatomical points need to be converted according to the cropping size; 2) Save data format: Convert DICOM to npy format data; Anatomical point coordinates are converted into json format data; 3) Generate training set: The converted original data set is divided into training set, test set and validation set in a ratio of 7:2:1; A fully connected neural network also includes: Two 3D convolutional layers and two 3D downsampling layers for compressing data; 3D-resunet network structure, used to extract features; Specifically, in the fully connected neural network architecture, the recognition of the anatomical site of the knee joint is to identify the point coordinates in the three-dimensional image, a data regression task; in the design of this network structure, the 3D-resunet network structure is used as the feature extraction network, and then the fully connected layer is used to regress the extracted task output; For the input training set data, two 3D convolution layers and two 3D downsampling layers are first used. The purpose of this is to reduce the original data to 1 / 4 of the original size. This is to reduce the problem of excessive model parameters, high video memory usage during training, and inability to train due to excessive data, and speed up network training; The feature extraction stage uses a 3D-resunet network structure, which contains three downsampling and three upsampling structures, and the convolution kernel uses a 3*3*3 convolution kernel; The features extracted by 3D-resunet are not directly regressed on the three-dimensional feature layer, but the three-dimensional feature layer is converted into a one-dimensional format using the Flatten layer. The purpose is to connect with the subsequent fully connected layer. Then two fully connected outputs are used, and the number of neurons in the first fully connected layer is set to 1024 and the number of neurons in the second fully connected layer is set to 256. Then, the predicted coordinate values are output and regression learning is performed on the predicted values. In the fully connected layer, each neuron is connected to all neurons in the previous and next layers to form a densely connected structure. The fully connected neural network can learn the complex features of the input data and perform tasks such as classification and regression. The fully connected layer is prone to overfitting. To prevent overfitting of the neural network, the Dropout strategy is used. The value is set to 0.5, then 50% of each node will be activated during forward propagation, and 50% will be closed and stop working. The essence of Dropout is to reduce the mutual dependence between nodes and reduce the overfitting problem. After using Dropout, the connection between the nodes of the fully connected layer; Get predicted values and true values; Based on the predicted value and the true value, the loss value is calculated through the loss function; Update the network parameters of the fully connected neural network based on the loss value feedback; Specifically, the loss function uses the L2 loss function: In this task, due to the reason of labeling data, the labeled points need to be labeled at three positions of the knee joint: femur, tibia and patella. However, since some data do not require labeled points for the patella, the labeled data points of different cases are inconsistent. Therefore, it is necessary to set two partial loss functions, including the patella loss function and excluding the patella loss function. Both use the L2 loss function: Among them, α = 0.6 is the loss weight coefficient. The data containing the patella has more points to be identified, so a larger weight coefficient is set. The data not containing the patella has fewer points to be identified, so a smaller weight coefficient is set.
2. A knee joint anatomical site identification device, characterized in that: include: Data acquisition module, used to acquire knee joint DICOM data; The bone segmentation module is used to obtain the bone data of four parts: femur, tibia, patella and fibula through the segmentation network; The data segmentation module is used to segment the knee joint DICOM data according to the positions of the patella, the end of the femur, and the tibial plateau to obtain the segmented DICOM data; A coordinate output module is used to input the segmented DICOM data into a knee joint anatomical site recognition model and output the coordinates of the knee joint anatomical site; wherein the knee joint anatomical site recognition model is obtained through model training based on a fully connected neural network, and the fully connected neural network includes two fully connected layers, and a Dropout strategy is used between the two fully connected layers; A coordinate conversion module, used for converting the output knee joint anatomical site coordinates into knee joint anatomical site coordinates corresponding to the knee joint DICOM data according to the segmented DICOM data; Obtain the sample's knee joint DICOM data and anatomical site data; Based on the knee joint DICOM data and the anatomical site data, the knee joint DICOM data is segmented to obtain segmented DICOM data; After obtaining the segmented DICOM data, the method further includes: Based on the segmented DICOM data, coordinate transformation is performed on the anatomical site data to obtain transformed anatomical site data; The segmented DICOM data is in npy format; The converted anatomical site data is in JSON format; After obtaining the converted anatomical site data, the method further includes: Based on the segmented DICOM data and converted anatomical site data, the training set, test set, and validation set were divided into 7:2:
1. Specifically, 1) data preprocessing: Considering that the number of original DICOM images for each case is inconsistent and the number of DICOM images is too large, it will occupy a large amount of video memory during model inference. Therefore, it is necessary to crop according to the position of the knee joint. After a large amount of data analysis, the range of the knee joint in the CT data is within the range of 192*320*320, which meets the actual use needs and model training needs; Therefore, for the cropping process of DICOM data, the annotated anatomical sites are annotated according to the original DICOM size. In order to fit the cropped DICOM, the coordinates of the anatomical points need to be converted according to the cropping size; 2) Save data format: Convert DICOM to npy format data; Anatomical point coordinates are converted into json format data; 3) Generate training set: The converted original data set is divided into training set, test set and validation set in a ratio of 7:2:1; A fully connected neural network also includes: Two 3D convolutional layers and two 3D downsampling layers for compressing data; 3D-resunet network structure, used to extract features; Specifically, in the fully connected neural network architecture, the recognition of the anatomical site of the knee joint is to identify the point coordinates in the three-dimensional image, a data regression task; in the design of this network structure, the 3D-resunet network structure is used as the feature extraction network, and then the fully connected layer is used to regress the extracted task output; For the input training set data, two 3D convolution layers and two 3D downsampling layers are first used. The purpose of this is to reduce the original data to 1 / 4 of the original size. This is to reduce the problem of excessive model parameters, high video memory usage during training, and inability to train due to excessive data, and speed up network training; The feature extraction stage uses a 3D-resunet network structure, which contains three downsampling and three upsampling structures, and the convolution kernel uses a 3*3*3 convolution kernel; The features extracted by 3D-resunet are not directly regressed on the three-dimensional feature layer, but the three-dimensional feature layer is converted into a one-dimensional format using the Flatten layer. The purpose is to connect with the subsequent fully connected layer. Then two fully connected outputs are used, and the number of neurons in the first fully connected layer is set to 1024 and the number of neurons in the second fully connected layer is set to 256. Then, the predicted coordinate values are output and regression learning is performed on the predicted values. In the fully connected layer, each neuron is connected to all neurons in the previous and next layers to form a densely connected structure. The fully connected neural network can learn the complex features of the input data and perform tasks such as classification and regression. The fully connected layer is prone to overfitting. To prevent overfitting of the neural network, the Dropout strategy is used. The value is set to 0.5, then 50% of each node will be activated during forward propagation, and 50% will be closed and stop working. The essence of Dropout is to reduce the mutual dependence between nodes and reduce the overfitting problem. After using Dropout, the connection between the nodes of the fully connected layer; Get predicted values and true values; Based on the predicted value and the true value, the loss value is calculated through the loss function; Update the network parameters of the fully connected neural network based on the loss value feedback; Specifically, the loss function uses the L2 loss function: In this task, due to the reason of labeling data, the labeled points need to be labeled at three positions of the knee joint: femur, tibia and patella. However, since some data do not require labeled points for the patella, the labeled data points of different cases are inconsistent. Therefore, it is necessary to set two partial loss functions, including the patella loss function and excluding the patella loss function. Both use the L2 loss function: Among them, α = 0.6 is the loss weight coefficient. The data containing the patella has more points to be identified, so a larger weight coefficient is set. The data not containing the patella has fewer points to be identified, so a smaller weight coefficient is set.
3. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the knee joint anatomical site identification method according to claim 1 is implemented.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for identifying the anatomical site of a knee joint according to claim 1 is implemented.
