Acetabulum periphery osteotomy planning method and device based on reinforcement learning
The deep Q network based on reinforcement learning is used to train the periacetabular osteotomy position, which solves the problem of uncertainty in setting the osteotomy surface position and achieves higher accuracy and faster recovery effect.
Patent Information
- Application Number
- CN202411042156.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-31
AI Technical Summary
There is great uncertainty in the positioning of the osteotomy surface in existing periacetabular osteotomy, resulting in excessive fluctuations in surgical results.
The periacetabular osteotomy planning method based on reinforcement learning is used to process the medical images of the hip joint through the deep Q network to determine the adjustment information of the acetabulum, iteratively train the osteotomy position, and select the osteotomy position with the highest cumulative reward. as planning.
It improves the accuracy of setting the osteotomy position, shortens the postoperative recovery time, and enhances the stability of the surgical effect.
Smart Images

Figure CN118806432A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of medical image processing, and in particular to a method and device for planning periacetabular osteotomy based on reinforcement learning. Background Art
[0002] Periacetabular osteotomy (PAO) is a surgical procedure used to treat developmental dysplasia of the hip. PAO improves hip coverage by repositioning the acetabulum, thereby relieving pain and delaying or preventing the progression of degenerative hip disease.
[0003] Among them, the position setting of the osteotomy surface during periacetabular osteotomy has a great impact on the success of the operation and postoperative recovery. Currently, it is only manually set based on the doctor's personal experience, which has great uncertainty. Summary of the invention
[0004] The problem to be solved by the present application is that the current manual setting of the osteotomy surface position results in excessive fluctuations in the setting effect.
[0005] To solve the above problems, the first aspect of the present application provides a periacetabular osteotomy planning method based on reinforcement learning, comprising:
[0006] Obtain medical images of the hip joint;
[0007] Based on the hip joint medical image, determining adjustment information of the acetabulum;
[0008] Based on reinforcement learning and acetabular adjustment information, the osteotomy position around the acetabulum is trained;
[0009] After the training is completed, the osteotomy position with the highest cumulative reward is selected as the periacetabular osteotomy planning;
[0010] The reinforcement learning is deep Q network learning.
[0011] The second aspect of the present application provides a periacetabular osteotomy planning device based on reinforcement learning, which comprises:
[0012] An image acquisition module, which is used to acquire medical images of hip joints;
[0013] An adjustment determination module, which is used to determine adjustment information of the acetabulum based on the hip joint medical image;
[0014] A reinforcement learning module, which is used to train the osteotomy position around the acetabulum based on reinforcement learning and adjustment information of the acetabulum;
[0015] The osteotomy planning module is used to select the osteotomy position with the highest cumulative reward as the periacetabular osteotomy planning after training is completed; the reinforcement learning is deep Q network learning.
[0016] A third aspect of the present application provides an electronic device, comprising: a memory and a processor;
[0017] The memory is used to store programs;
[0018] The processor, coupled to the memory, is configured to execute the program to:
[0019] Obtain medical images of the hip joint;
[0020] Based on the hip joint medical image, determining adjustment information of the acetabulum;
[0021] Based on reinforcement learning and acetabular adjustment information, the osteotomy position around the acetabulum is trained;
[0022] After the training is completed, the osteotomy position with the highest cumulative reward is selected as the periacetabular osteotomy planning;
[0023] The reinforcement learning is deep Q network learning.
[0024] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the above-mentioned reinforcement learning-based periacetabular osteotomy planning method.
[0025] In the present application, the periacetabular osteotomy position is iterated and trained by means of reinforcement learning, so that the periacetabular osteotomy position obtained ensures the accuracy of the osteotomy position setting.
[0026] In the present application, by iterating and training the osteotomy position around the acetabulum, after the osteotomy at the osteotomy position, the acetabulum can be transferred to the adjusted position with the smallest gap, thereby accelerating postoperative recovery and surgical effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart of a method for planning periacetabular osteotomy according to an embodiment of the present application;
[0028] Figure 2 A schematic diagram of osteotomy surface setting of the acetabular periarticular osteotomy planning method according to an embodiment of the present application;
[0029] Figure 3 It is an architecture diagram of a deep Q network model of a periacetabular osteotomy planning method according to an embodiment of the present application;
[0030] Figure 4is a structural block diagram of a periacetabular osteotomy planning device according to an embodiment of the present application;
[0031] Figure 5 is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below in conjunction with the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0033] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0034] In response to the above problems, the present application provides a new acetabular peri-osteotomy planning scheme based on reinforcement learning, which can iterate and optimize the osteotomy position through reinforcement learning, and solve the problem of excessive fluctuations in the current manual setting of the osteotomy surface position.
[0035] The embodiment of the present application provides a method for planning osteotomy around the acetabulum based on reinforcement learning, and the specific scheme of the method is as follows: Figure 1-Figure 3 As shown, the method can be performed by a periacetabular osteotomy planning device based on reinforcement learning, and the periacetabular osteotomy planning device based on reinforcement learning can be integrated into electronic devices such as computers, servers, computers, server clusters, and data centers. Figure 1 As shown, it is a flow chart of a method for planning osteotomy around the acetabulum based on reinforcement learning according to an embodiment of the present application; wherein the method for planning osteotomy around the acetabulum based on reinforcement learning comprises:
[0036] S100, acquiring medical images of hip joints;
[0037] The hip joint medical image can be an X-ray medical image, a CT medical image, an MRI medical image, etc., as long as the hip joint can be segmented therefrom and a three-dimensional point cloud of the bone can be generated. It should be noted that the X-ray medical image can be obtained by performing bone segmentation and projection on the CT medical image or the MRI medical image.
[0038] S200, determining adjustment information of the acetabulum based on the hip joint medical image;
[0039] S300, training the osteotomy position around the acetabulum based on reinforcement learning and acetabular adjustment information;
[0040] Among them, the osteotomy position around the acetabulum, that is, the osteotomy surface distributed around the acetabulum, is planar, so only four planes need to be determined. The intersection of the four planes and the three-dimensional model of the acetabulum is the outer edge of the corresponding osteotomy surface.
[0041] S400, after the training is completed, the osteotomy position with the highest cumulative reward is selected as the periacetabular osteotomy planning; the reinforcement learning is deep Q network learning.
[0042] Among them, training is the training of deep Q network learning. After the training is completed, each action of the new hip joint medical image can be predicted and executed based on the trained deep Q network learning. Finally, the action sequence with the highest cumulative reward is selected. The osteotomy position corresponding to the action sequence is the osteotomy plane of the acetabular peri-osteotomy planning.
[0043] In the present application, the periacetabular osteotomy position is iterated and trained by means of reinforcement learning, so that the periacetabular osteotomy position obtained ensures the accuracy of the osteotomy position setting.
[0044] In the present application, by iterating and training the osteotomy position around the acetabulum, after the osteotomy at the osteotomy position, the acetabulum can be transferred to the adjusted position with the smallest gap, thereby accelerating postoperative recovery and surgical effect.
[0045] In one embodiment, the step S200 of determining adjustment information of the acetabulum based on the hip joint medical image includes:
[0046] Performing image segmentation and three-dimensional reconstruction on the medical image of the hip joint to obtain a three-dimensional model of the hip joint;
[0047] Identifying key points of the three-dimensional model of the hip joint;
[0048] Analyze the three-dimensional model of the hip joint to evaluate the direction of the acetabulum opening, the location and extent of the defect coverage;
[0049] Based on the evaluation result and the standard acetabular inclination angle, the adjusted acetabular angle information and acetabular position information are determined.
[0050] In this application, the key points of the three-dimensional model of the hip joint are identified in order to accurately position the three-dimensional model so that the computer can understand the precise positions of the three-dimensional model; the acetabulum, femoral head and related anatomical landmarks are marked on the three-dimensional model, and these marks help to accurately align when adjusting the position of the acetabulum.
[0051] The specific key points can be adjusted according to the indicators to be evaluated. In this application, the key point identification method and which key points to identify can refer to the conventional identification method and will not be described in detail.
[0052] In the present application, the specific adjustment of the acetabulum is to perform a resection operation on the ilium component and the osteotome component to obtain a pelvic and acetabulum bone block model after osteotomy, and then rotate the free affected acetabulum outward with the center of the affected femoral head as the rotation point to meet the correction of the lateral center edge angle (LCEA) of the acetabulum, the acetabular inclination angle (AIA) and the head and acetabulum coverage (HAI).
[0053] Among them, the direction of the acetabular opening is evaluated by the lateral center edge angle (LCEA) and the acetabular inclination angle (AIA) (in fact, the acetabular opening direction is also used to evaluate the coverage rate, but it is an indirect evaluation), and the location and degree of coverage defect are evaluated by the head and acetabular coverage ratio (HAI).
[0054] The Lateral Center-Edge Angle (LCEA) is an angle measured by hip X-ray to assess the coverage of the femoral head by the acetabulum. Draw a vertical line from the lateral edge of the acetabulum (i.e. the top of the acetabulum), and then draw a line from the center of the femoral head to the lateral edge of the acetabulum. The angle between the two lines is the LCEA.
[0055] The normal value of LCEA is between 25° and 40°.
[0056] The acetabular index angle (AIA) is another angle measured by hip X-ray. The acetabular index angle is used to evaluate the direction of the acetabular roof in the coronal plane and the coverage of the upper and outer sides of the femoral head. The weight-bearing surface of the acetabulum appears as a sclerotic band similar to the "brow arch" on the X-ray. Draw a line from the top of the acetabulum to the ischial tuberosity (acetabular index line), and then draw a horizontal line from the ischial tuberosity (pelvic horizontal line). The angle between the two lines is the AIA.
[0057] Among them, the normal value of AIA is generally between 0° and 10°.
[0058] Head Acetabulum Index (HAI) refers to the proportion of the femoral head covered by the acetabulum, indicating the degree of coverage of the femoral head by the acetabulum. The percentage of the femoral head covered by the acetabulum to the total area of the femoral head is measured through hip X-rays.
[0059] Among them, the normal value of HAI is generally above 70%.
[0060] Among them, based on the evaluation results and the standard acetabular inclination angle, the adjusted acetabular angle information and acetabular position information are determined; that is, the acetabular direction and rotation position of the acetabulum are adjusted so that the adjusted lateral center edge angle (LCEA), acetabular roof inclination angle (AIA) and head and acetabulum coverage (HAI) of the acetabulum are all within the normal range.
[0061] The standard acetabular inclination angle may be the standard angles of the lateral center edge angle (LCEA) and the acetabular inclination angle (AIA) of the acetabulum, or may be the standard angles of other acetabular evaluation angles, such as: acetabular incidence angle (PI), acetabular anteversion angle (Acetabular Anteversion Angle) and acetabular inclination angle (Acetabular Inclination Angle).
[0062] Among them, during the specific adjustment process, on the basis of meeting the lateral center edge angle (LCEA), acetabular inclination angle (AIA) and head and acetabulum coverage (HAI), the smaller the rotation angle of the acetabulum is, the better, so as to avoid excessive gaps during acetabular osteotomy, which is not conducive to postoperative recovery.
[0063] The step S300, based on reinforcement learning and adjustment information of the acetabulum, trains the osteotomy position around the acetabulum, including:
[0064] Construct simulation environment and state space based on hip joint medical images;
[0065] Setting an action space, wherein the action space includes a plurality of osteotomy surfaces, each of which has an ascending and descending action along a normal direction and a forward, backward, left, and right rotation of the osteotomy surface;
[0066] Set the reward function, build a deep Q network model and an experience replay pool, which includes the agent's actions, states, rewards, and next states;
[0067] Sampling from the experience replay pool and calculating the Q value based on the deep Q network model;
[0068] By minimizing the loss function, the weights of the deep Q network model and the weights of the target network are updated until the training is completed, and the deep Q network model and the target network remain consistent.
[0069] In this application, the specific training process includes:
[0070] Define the environment and state space
[0071] Environment: Defines a simulation environment that can provide the current state, receive actions and return the new state, reward and whether it ends.
[0072] State space: A state can be a CT or MRI image of the knee joint, which is taken as input after preprocessing, and the four osteotomy planes of the image.
[0073] Defining the action space
[0074] Action: Action is defined as different maneuvers to adjust the osteotomy position, such as moving the osteotomy position up, down, left, right, or rotating it a certain angle.
[0075] In this application, the action is the adjustment direction of four osteotomy surfaces, wherein the adjustment of one osteotomy surface is taken as an example for explanation:
[0076] An osteotomy surface, with the plane as a plane to set the coordinate system, then the z-axis is the normal to the osteotomy surface; thus, the movement of the osteotomy surface is decomposed into: rising and falling movements along the z-axis (rising and falling movements along the normal), clockwise and counterclockwise rotation movements around the x-axis, clockwise and counterclockwise rotation movements around the y-axis (rotation of the osteotomy surface forward and backward and left and right), a total of six movements, where the moving distance of each movement can be a unit distance, such as rising and falling 1 mm, and rotating 1°.
[0077] Based on this, the action space in the present application includes twenty-four actions, which are the corresponding actions of the four osteotomy surfaces.
[0078] Designing the reward function
[0079] Reward function: The reward function should reflect the size of the osteotomy area. For example, if the goal is to minimize the osteotomy area, it can be designed as a negative osteotomy area. For example: R = -A, where A is the osteotomy area after osteotomy.
[0080] Building and training a deep Q-network
[0081] Model architecture: Use a convolutional neural network (CNN) to process the input CT or MRI images, extract features, and output the Q value of each action. In this application, the input data is extracted from the state space and is a high-dimensional representation of the state. In this application, each state in the state space needs to be converted into the input data format of the deep convolutional model through preprocessing such as normalization, cropping, and resizing.
[0082] Experience Replay
[0083] Experience replay pool: stores the agent's experience, including state, action, reward, next state, and whether it ends.
[0084] Random sampling: Randomly sample a small batch from the experience replay pool for training to break data correlation and improve training efficiency and stability.
[0085] Target Network
[0086] Target network: Use an independent target network to calculate the target Q value, slow down the change of the target, and make the training more stable. Synchronous update: Copy the weights of the current Q network to the target network at a certain number of steps.
[0087] Model Training
[0088] Loss function: Use the loss function to calculate the difference between the actual Q value and the target Q value. You can also use the Adam optimizer to update the network weights.
[0089] In the specific training process,
[0090] Initialize the Q network and the target network and set the initial state. Perform actions in the environment to obtain state transitions and rewards. Store experience in the replay pool. Sample a small batch of experience from the replay pool and calculate the target Q value. Update the weights of the Q network by minimizing the loss function. Periodically update the weights of the target network.
[0091] In one embodiment, the loss function is:
[0092]
[0093] Among them, θ is the weight of the deep Q network model, L(θ) is the loss, N is the number of samples, and y i is the target Q value of the i-th sample, Q(s i ,a i ; θ) is the Q value of the i-th sample.
[0094] In one embodiment, the reward function is that the gap between the acetabulum side osteotomy surface and the retention side osteotomy surface after rotation is minimized, and the distance between the depression between the anterior superior iliac spine and the anterior inferior iliac spine and the corresponding osteotomy surface is less than 1 cm, and the distance between the depression in front of the greater sciatic notch and the corresponding osteotomy surface is greater than 1 cm, and the distance between the osteotomy surface and the edge of a preset nerve sensitive area at the junction of the osteotomy surface and the outer surface of the hip joint is greater than a preset distance.
[0095] In the present application, the above-mentioned reward function includes four parts, each of which has a different allocation weight, and the sum of the products based on the weights is used as the overall reward function.
[0096] In one embodiment, an initial state of the state space is set. In the initial state, the four osteotomy planes are: osteotomy plane 1, which is a plane 1 cm inside the iliopectine eminence and oblique to the midline of the body, for osteotomy of the pubic bone; osteotomy plane 2; defined as a plane from between the anterior superior and inferior iliac spines toward the greater sciatic notch, to achieve osteotomy of the ilium at the upper edge of the acetabulum; osteotomy plane 3 is defined as a plane from the obturator foramen in front of the sciatic body at the lower edge of the acetabulum toward the sciatic spine, to achieve osteotomy of the sciatic bone at the lower edge of the acetabulum; osteotomy plane 4 is defined as a plane about 1 cm away from the edge of the greater sciatic notch, connecting osteotomy planes 2 and 3 and forming an angle of about 25° with the standard coronal plane, to achieve osteotomy of the posterior column of the pelvis at the posterior edge of the acetabulum.
[0097] In the present application, the osteotomy surface is set to constrain the initial position of the osteotomy, thereby avoiding large deviations in the osteotomy position.
[0098] In one implementation, a convergence standard, a Q-value convergence, or a predetermined number of training rounds may be used as a standard for training completion.
[0099] Among them, in actual applications after the training, it is preferred to use the above four osteotomy surfaces as the initial state and a predetermined number of iterations as the completion standard, so as to make adjustments based on the four osteotomy surfaces. On the one hand, better osteotomy position adjustment can be achieved, and on the other hand, a large deviation from the four osteotomy surfaces can be avoided during the adjustment process.
[0100] Among them, the average reward is stable: when the average reward of the agent in several training episodes tends to be stable, the training can be considered complete.
[0101] Specific method: Draw and monitor the total reward of the agent in each round, calculate the average reward of the last N rounds, and observe whether it fluctuates within a certain range.
[0102] Among them, Q value convergence: when the Q value (predicted state-action value) no longer changes significantly during training, it means that the agent's strategy tends to be stable.
[0103] Specific method: Monitor the rate of change of the Q value, calculate its mean and variance, and observe whether it tends to converge.
[0104] In one embodiment, S400, after the training is completed, selecting the osteotomy position with the highest cumulative reward as the periacetabular osteotomy planning includes:
[0105] Obtain new medical images of the hip joint and information on adjustments to the acetabulum;
[0106] Load the trained deep Q network model in the simulation environment, and gradually execute corresponding actions based on the deep Q network model until the task is completed;
[0107] The osteotomy position at the end of the task was selected as the periacetabular osteotomy planning.
[0108] After the training is completed, the trained convolutional model is used in subsequent tasks. The specific process is as follows:
[0109] Model loading and initialization: You need to load the trained model and make sure it is in inference mode.
[0110] Environment initialization: Initialize the same environment as during training to ensure that the agent can interact with the environment.
[0111] State preprocessing: Before using the model for inference, ensure that the input state undergoes the same preprocessing steps as during training. The initial state is consistent with the initial state during training.
[0112] Action selection strategy: During the reasoning process, the agent selects an action based on the current state. In practical applications, a greedy policy is usually used, that is, the action with the largest Q value is selected. The Q value is obtained through a trained convolutional model.
[0113] Execute tasks: The agent performs tasks in the environment, uses the trained model to select actions, executes and updates the state until the task is completed or the termination condition is reached.
[0114] In the present application, the termination condition is preferably a preset number of executions, and the task is completed after the number of executions reaches the preset number, thereby achieving a local optimum and avoiding excessive deviation of the osteotomy position from the initial state.
[0115] After the task is completed, the action sequence during the task is obtained. According to the initial state and the action sequence, the position of the osteotomy plane when the task is completed can be determined, which is the periacetabular osteotomy planning.
[0116] In one embodiment, in combination Figure 3 As shown, the deep Q network model includes a low-level feature extraction structure and a high-level feature extraction structure arranged in parallel; after the feature map processed by the low-level feature extraction structure is added to the feature map processed by the high-level feature extraction structure, convolution processing and multiple fully connected layer processing are performed in sequence to obtain the corresponding Q value.
[0117] In this application, the low-level feature extraction structure is composed of multiple consecutive convolutional layers; through continuous convolution, the underlying features are extracted, that is, the basic structural information of the input data; and it is also possible to extract more abstract and complex features based on the gradual combination of the underlying features, including high-level semantic understanding of objects, shapes and patterns.
[0118] In the present application, the high-level feature extraction structure includes a downward-sized convolution layer and an upward-sized convolution layer; through the downward-sized convolution, the spatial resolution of the feature map is reduced, and the receptive field is increased, thereby extracting high-level features.
[0119] In this application, the feature maps extracted in parallel by different structures are added and convolved, and then processed through multiple consecutive fully connected layers to output the Q value corresponding to each action in the action space.
[0120] In this application, continuous convolution: the convolution layer close to the input extracts low-level features, such as edges and textures; the convolution layer close to the output extracts high-level features, such as objects and patterns.
[0121] In this application, down convolution is performed first and then up convolution: the down convolution stage (encoder) extracts high-level features because it integrates more global information; the up convolution stage (decoder) is mainly used to restore spatial resolution and maintain the previously extracted high-level semantic information.
[0122] Preferably, in the present application, after processing by multiple fully connected layers, the Q value corresponding to each action is output through an activation function similar to a SoftMax operation.
[0123] In one implementation, the activation function of the SoftMax-like operation is:
[0124]
[0125] Among them, SoftMax1(x) is the activation function, x i 、x j is the element in the input vector, i and j are the element numbers.
[0126] In this application, SoftMax is a mathematical function that is usually used to convert a set of arbitrary real numbers into real numbers representing probability distributions. It is essentially a normalization function that can convert a set of arbitrary real values into probability values between [0,1], because SoftMax converts them to values between 0 and 1, so they can be interpreted as probabilities. If one of the inputs is small or negative, SoftMax turns it into a small probability, and if the input is large, it turns it into a large probability, but it will always remain between 0 and 1.
[0127] However, for the standard SoftMax function, since the input is mapped between 0 and 1, and the sum of all output values is 1, this means that even if some input values are very small, they will have a non-zero output value after being processed by the SoftMax function. This will also cause the noise to be amplified, resulting in the final output result being affected by greater noise.
[0128] In this application, a 1 is added to the denominator of the SoftMax-like function; this change means that when the input value is very small, their output value can be closer to zero. This allows the corresponding output to tend to zero when there is no valuable information to add, thus greatly reducing unnecessary noise.
[0129] An embodiment of the present application provides a periacetabular osteotomy planning device based on reinforcement learning, which is used to execute the periacetabular osteotomy planning method based on reinforcement learning described in the above content of the present application. The periacetabular osteotomy planning device based on reinforcement learning is described in detail below.
[0130] like Figure 4 As shown, the acetabular periarthritis osteotomy planning device based on reinforcement learning comprises:
[0131] An image acquisition module 101 is used to acquire a medical image of a hip joint;
[0132] An adjustment determination module 102, which is used to determine adjustment information of the acetabulum based on the hip joint medical image;
[0133] A reinforcement learning module 103, which is used to train the osteotomy position around the acetabulum based on reinforcement learning and adjustment information of the acetabulum;
[0134] The osteotomy planning module 104 is used to select the osteotomy position with the highest cumulative reward as the periacetabular osteotomy planning after the training is completed; the reinforcement learning is deep Q network learning.
[0135] In one implementation, the adjustment determination module 102 is further configured to:
[0136] Perform image segmentation and three-dimensional reconstruction on the medical image of the hip joint to obtain a three-dimensional model of the hip joint; identify key points of the three-dimensional model of the hip joint; analyze the three-dimensional model of the hip joint to evaluate the direction of the acetabulum opening, the location and degree of coverage of the defect; and determine the adjusted acetabulum angle information and acetabulum position information based on the evaluation results and the standard acetabulum inclination angle.
[0137] In one embodiment, the reinforcement learning module 103 is further used to:
[0138] A simulation environment and state space are constructed based on medical images of the hip joint; an action space is set, wherein the action space includes multiple osteotomy surfaces, each of which has an ascending and descending action along the normal direction, and a forward, backward, left, and right rotation of the osteotomy surface; a reward function is set, and a deep Q network model and an experience replay pool are constructed, wherein the experience replay pool includes the action, state, reward, and next state of the agent; sampling is performed from the experience replay pool, and the Q value is calculated based on the deep Q network model; the weights of the deep Q network model and the weights of the target network are updated by minimizing the loss function until the training is completed and the deep Q network model and the target network remain consistent.
[0139] In one embodiment, the deep Q network model includes a low-level feature extraction structure and a high-level feature extraction structure arranged in parallel; after the feature map processed by the low-level feature extraction structure is added to the feature map processed by the high-level feature extraction structure, convolution processing and multiple fully connected layer processing are performed in sequence to obtain the corresponding Q value.
[0140] In one embodiment, the loss function is:
[0141]
[0142] Among them, θ is the weight of the deep Q network model, L(θ) is the loss, N is the number of samples, and y i is the target Q value of the i-th sample, Q(s i ,a i ; θ) is the Q value of the i-th sample.
[0143] In one embodiment, the reward function is that the gap between the acetabulum side osteotomy surface and the retention side osteotomy surface after rotation is minimized, and the distance between the depression between the anterior superior iliac spine and the anterior inferior iliac spine and the corresponding osteotomy surface is less than 1 cm, and the distance between the depression in front of the greater sciatic notch and the corresponding osteotomy surface is greater than 1 cm, and the distance between the osteotomy surface and the edge of a preset nerve sensitive area at the junction of the osteotomy surface and the outer surface of the hip joint is greater than a preset distance.
[0144] In one embodiment, the osteotomy planning module 104 is further configured to:
[0145] Acquire new medical images of the hip joint and adjustment information of the acetabulum; load the trained deep Q network model in the simulation environment, and gradually execute corresponding actions based on the deep Q network model until the task is completed; select the osteotomy position at the end of the task as the osteotomy plan around the acetabulum.
[0146] The reinforcement learning-based periacetabular osteotomy planning device provided in the above-mentioned embodiment of the present application has a corresponding relationship with the reinforcement learning-based periacetabular osteotomy planning method provided in the embodiment of the present application. Therefore, the specific content in the device has a corresponding relationship with the periacetabular osteotomy planning method. The specific content can refer to the records in the periacetabular osteotomy planning method, and will not be repeated in this application.
[0147] The acetabular osteotomy planning device based on reinforcement learning provided in the above-mentioned embodiments of the present application and the acetabular osteotomy planning method based on reinforcement learning provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0148] The above describes the internal functions and structure of the acetabular osteotomy planning device based on reinforcement learning. Figure 5 As shown, in practice, the acetabular periarthritis osteotomy planning device based on reinforcement learning can be implemented as an electronic device, including: a memory 301 and a processor 303 .
[0149] The memory 301 may be configured to store programs.
[0150] In addition, the memory 301 may also be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc.
[0151] The memory 301 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0152] The processor 303 is coupled to the memory 301 and is configured to execute a program in the memory 301 to:
[0153] Obtain medical images of the hip joint;
[0154] Based on the hip joint medical image, determining adjustment information of the acetabulum;
[0155] Based on reinforcement learning and acetabular adjustment information, the osteotomy position around the acetabulum is trained;
[0156] After the training is completed, the osteotomy position with the highest cumulative reward is selected as the periacetabular osteotomy planning;
[0157] The reinforcement learning is deep Q network learning.
[0158] In one implementation, the processor 303 is further configured to:
[0159] Perform image segmentation and three-dimensional reconstruction on the medical image of the hip joint to obtain a three-dimensional model of the hip joint; identify key points of the three-dimensional model of the hip joint; analyze the three-dimensional model of the hip joint to evaluate the direction of the acetabulum opening, the location and degree of coverage of the defect; and determine the adjusted acetabulum angle information and acetabulum position information based on the evaluation results and the standard acetabulum inclination angle.
[0160] In one implementation, the processor 303 is further configured to:
[0161] A simulation environment and state space are constructed based on medical images of the hip joint; an action space is set, wherein the action space includes multiple osteotomy surfaces, each of which has an ascending and descending action along the normal direction, and a forward, backward, left, and right rotation of the osteotomy surface; a reward function is set, and a deep Q network model and an experience replay pool are constructed, wherein the experience replay pool includes the action, state, reward, and next state of the agent; sampling is performed from the experience replay pool, and the Q value is calculated based on the deep Q network model; the weights of the deep Q network model and the weights of the target network are updated by minimizing the loss function until the training is completed and the deep Q network model and the target network remain consistent.
[0162] In one embodiment, the deep Q network model includes a low-level feature extraction structure and a high-level feature extraction structure arranged in parallel; after the feature map processed by the low-level feature extraction structure is added to the feature map processed by the high-level feature extraction structure, convolution processing and multiple fully connected layer processing are performed in sequence to obtain the corresponding Q value.
[0163] In one embodiment, the loss function is:
[0164]
[0165] Among them, θ is the weight of the deep Q network model, L(θ) is the loss, N is the number of samples, and y i is the target Q value of the i-th sample, Q(s i ,a i ; θ) is the Q value of the i-th sample.
[0166] In one embodiment, the reward function is that the gap between the acetabulum side osteotomy surface and the retention side osteotomy surface after rotation is minimized, and the distance between the depression between the anterior superior iliac spine and the anterior inferior iliac spine and the corresponding osteotomy surface is less than 1 cm, and the distance between the depression in front of the greater sciatic notch and the corresponding osteotomy surface is greater than 1 cm, and the distance between the osteotomy surface and the edge of a preset nerve sensitive area at the junction of the osteotomy surface and the outer surface of the hip joint is greater than a preset distance.
[0167] In one implementation, the processor 303 is further configured to:
[0168] Acquire new medical images of the hip joint and adjustment information of the acetabulum; load the trained deep Q network model in the simulation environment, and gradually execute corresponding actions based on the deep Q network model until the task is completed; select the osteotomy position at the end of the task as the osteotomy plan around the acetabulum.
[0169] In the present application, the processor is also specifically used to execute all processes and steps of the above-mentioned reinforcement learning-based periacetabular osteotomy planning method. The specific content can be referred to the records in the periacetabular osteotomy planning method, which will not be repeated in this application.
[0170] In this application, Figure 5 Only some components are shown schematically, which does not mean that the electronic device only includes Figure 5 Components shown.
[0171] The electronic device provided in this embodiment is based on the same inventive concept as the acetabular periarthritis osteotomy planning method based on reinforcement learning provided in the embodiment of the present application, and has the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0172] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0173] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0174] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0176] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0177] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0178] The present application also provides a computer-readable storage medium corresponding to the reinforcement learning-based periacetabular osteotomy planning method provided in the aforementioned embodiment, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it will execute the reinforcement learning-based periacetabular osteotomy planning method provided in any of the aforementioned embodiments.
[0179] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0180] The computer-readable storage medium provided in the above-mentioned embodiment of the present application and the acetabular periostectomy planning method based on reinforcement learning provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0181] It should be noted that in the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.
[0182] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0183] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for planning periacetabular osteotomy based on reinforcement learning, characterized in that: include: Obtain medical images of the hip joint; Based on the hip joint medical image, determining adjustment information of the acetabulum; Based on reinforcement learning and acetabular adjustment information, the osteotomy position around the acetabulum is trained; After the training is completed, the osteotomy position with the highest cumulative reward is selected as the periacetabular osteotomy planning; The reinforcement learning is deep Q network learning.
2. The acetabular periarthritis osteotomy planning method based on reinforcement learning according to claim 1, characterized in that: Determining adjustment information of the acetabulum based on the hip joint medical image includes: Performing image segmentation and three-dimensional reconstruction on the medical image of the hip joint to obtain a three-dimensional model of the hip joint; Identifying key points of the three-dimensional model of the hip joint; Analyze the three-dimensional model of the hip joint to evaluate the direction of the acetabulum opening, the location and extent of the defect coverage; Based on the evaluation result and the standard acetabular inclination angle, the adjusted acetabular angle information and acetabular position information are determined.
3. The acetabular periarthritis osteotomy planning method based on reinforcement learning according to claim 1, characterized in that: The method of training the osteotomy position around the acetabulum based on reinforcement learning and the adjustment information of the acetabulum comprises: Construct simulation environment and state space based on hip joint medical images; Setting an action space, wherein the action space includes a plurality of osteotomy surfaces, each of which has an ascending and descending action along a normal direction and a forward, backward, left, and right rotation of the osteotomy surface; Set the reward function, build a deep Q network model and an experience replay pool, which includes the agent's actions, states, rewards, and next states; Sampling from the experience replay pool and calculating the Q value based on the deep Q network model; By minimizing the loss function, the weights of the deep Q network model and the weights of the target network are updated until the training is completed, and the deep Q network model and the target network remain consistent.
4. The acetabular periarthritis osteotomy planning method based on reinforcement learning according to claim 3, characterized in that: The deep Q network model includes a low-level feature extraction structure and a high-level feature extraction structure arranged in parallel; after the feature map processed by the low-level feature extraction structure is added to the feature map processed by the high-level feature extraction structure, convolution processing and multiple fully connected layer processing are performed in sequence to obtain the corresponding Q value.
5. The acetabular periarthritis osteotomy planning method based on reinforcement learning according to claim 3, characterized in that: The loss function is: Among them, θ is the weight of the deep Q network model, L(θ) is the loss, N is the number of samples, and y i is the target Q value of the i-th sample, Q(s i ,a i ; θ) is the Q value of the i-th sample.
6. The acetabular periarthritis osteotomy planning method based on reinforcement learning according to claim 3, characterized in that: The reward function is that the gap between the osteotomy surface on the acetabulum side and the osteotomy surface on the retention side after rotation is minimized, and the distance between the depression between the anterior superior iliac spine and the anterior inferior iliac spine and the corresponding osteotomy surface is less than 1 cm, and the distance between the depression in front of the greater sciatic notch and the corresponding osteotomy surface is greater than 1 cm, and the distance between the osteotomy surface and the edge of the preset nerve sensitive area at the junction of the osteotomy surface and the outer surface of the hip joint is greater than the preset distance.
7. The acetabular periarthritis osteotomy planning method based on reinforcement learning according to any one of claims 1 to 3, characterized in that: After the training is completed, the osteotomy position with the highest cumulative reward is selected as the periacetabular osteotomy plan, including: Obtain new medical images of the hip joint and information on adjustments to the acetabulum; Load the trained deep Q network model in the simulation environment, and gradually execute corresponding actions based on the deep Q network model until the task is completed; The osteotomy position at the end of the task was selected as the periacetabular osteotomy planning.
8. A periacetabular osteotomy planning device based on reinforcement learning, characterized in that: include: An image acquisition module, which is used to acquire medical images of hip joints; An adjustment determination module, which is used to determine adjustment information of the acetabulum based on the hip joint medical image; A reinforcement learning module, which is used to train the osteotomy position around the acetabulum based on reinforcement learning and adjustment information of the acetabulum; The osteotomy planning module is used to select the osteotomy position with the highest cumulative reward as the periacetabular osteotomy planning after training is completed; the reinforcement learning is deep Q network learning.
9. An electronic device, characterized in that: include: Memory and processor; The memory is used to store programs; The processor, coupled to the memory, is configured to execute the program to: Obtain medical images of the hip joint; Based on the hip joint medical image, determining adjustment information of the acetabulum; Based on reinforcement learning and acetabular adjustment information, the osteotomy position around the acetabulum is trained; After the training is completed, the osteotomy position with the highest cumulative reward is selected as the periacetabular osteotomy planning; The reinforcement learning is deep Q network learning.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the acetabular periostectomy planning method based on reinforcement learning as described in any one of claims 1-7.
Citation Information
Patent Citations
Total hip replacement preoperative planning method and device based on deep learning and X rays
CN111888059A
Total hip replacement revision preoperative planning method and equipment based on deep learning
CN112971981A
Acetabular cup position adjusting method and device based on reinforcement learning and storage medium
CN113962927A
Osteotomy adjustment planning method based on visual image, electronic equipment and medium
CN114587585A
Intelligent orthopedic surgery robot system based on reinforcement learning
CN116942310A
Cited By
Preoperative planning method and device for hip protection surgery
CN119924974A
Hip-preserving surgery preoperative planning method and apparatus
CN119924974B
