Femur stem placement method and device based on plain film, medium, program product and terminal
Through flat film technology and iterative optimization algorithm, the problem of insufficient operational complexity and safety in femoral stem implantation surgery is solved, and the precise alignment and stability of the femoral stem and the medullary cavity are achieved, which improves the reliability and success rate of the surgery. .
Patent Information
- Application Number
- CN202411308281.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-11-08
AI Technical Summary
There are problems of operational complexity and insufficient safety in femoral stem implantation surgery, and the prior art is difficult to ensure accurate placement of femoral stems, especially in special anatomical structures, resulting in increased surgical risks.
Using a flat film-based method, micro-expansion and axial alignment operations are performed by obtaining the image fusion of the medullary cavity area of the lower limb full-length flat film and femoral stem template. Combined with multiple iterative optimization algorithms, the optimized femoral stem placement is generated. Figure to ensure accurate alignment and stability of the femoral stem and the medullary cavity.
It significantly reduces the complexity and risk of dislocation of the surgery, improves the stability and firmness of the femoral stem, ensures the reliability and success rate of the surgery, and achieves higher placement accuracy and safety.
Smart Images

Figure CN118902706A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent medical treatment, and in particular to a method, device, medium, program product and terminal for femoral stem placement based on flat film. Background Art
[0002] The femoral stem is a key component of hip replacement surgery, used to replace the damaged femoral neck and femoral head. With the aging of the population and the rising incidence of hip diseases, the use of femoral stems has become more and more common. Femoral stems of different designs can provide personalized treatment plans based on the patient's anatomical structure and sports needs. Modern femoral stems are often made of biocompatible materials such as titanium alloy or stainless steel, designed to achieve stability and durability to support the recovery of joint function after surgery.
[0003] In femoral stem implantation surgery, the key to ensuring that the femoral stem is accurately placed in the medullary cavity lies in accurate coordinate system conversion. However, this process often involves multiple coordinate system conversions, which increases the complexity of the operation. The current technology mainly relies on the positional relationship between the prosthesis and the lesser trochanter for judgment, while assuming that the prosthesis is in a vertical state. However, this assumption is not adaptable enough when faced with special anatomical structures, resulting in the inability to effectively confirm whether the implanted part of the femoral stem has pierced the medullary cavity, which undoubtedly increases the risk of the operation. In addition, the existing methods fail to set clear termination conditions for each step in the iterative optimization process, resulting in a lack of effective feedback between different steps, making it difficult to fully consider the actual situation of the operation, which further affects the reliability and effectiveness of the operation. Summary of the invention
[0004] In view of the shortcomings of the prior art mentioned above, the purpose of the present application is to provide a flat-film-based femoral stem placement method, device, medium, program product and terminal to solve the key problems of the prior art in femoral stem implantation surgery, such as operational complexity and lack of safety.
[0005] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a femoral stem placement method based on a flat film, the method comprising: obtaining the medullary cavity area and the femoral stem template of a full-length flat film of the lower limb, and performing an image fusion operation on the medullary cavity area of the full-length flat film of the lower limb and the femoral stem template to generate an implantation area image containing the medullary cavity area and the femoral stem area; performing a micro-expansion operation on the medullary cavity area in the implantation area image; based on the medullary cavity area after the micro-expansion operation, performing an axial alignment operation on the femoral stem area to obtain the initial position information of the femoral stem area; based on the initial position information of the femoral stem area and the medullary cavity area, performing multiple rounds of iterative optimization operations on the femoral stem area according to an optimization termination threshold, thereby generating an optimized femoral stem placement map.
[0006] In some embodiments of the first aspect of the present application, according to the optimization termination threshold, the process of multiple rounds of iterative optimization operations on the femoral stem area includes: taking the initial position information of the femoral stem area as the starting point, performing multiple rounds of translation operations along the central axis direction of the femoral stem area, and judging whether the moved femoral stem area is out of bounds after each movement; in response to the femoral stem area not being out of bounds, judging whether the current moving step is less than the optimization termination threshold; if the current moving step is less than the optimization termination threshold, terminating the iterative optimization operation; otherwise, calculating the product of the current moving step and the forward translation coefficient to generate an updated moving step, and performing a translation operation in the forward direction according to the updated moving step; in response to the femoral stem area being out of bounds, calculating the product of the current moving step and the reverse translation coefficient to generate an updated moving step, and performing a translation operation in the reverse direction according to the updated moving step.
[0007] In some embodiments of the first aspect of the present application, the process of determining whether the femoral stem area after movement in the current round has crossed the boundary after each movement includes: traversing each row of pixels in the femoral stem area, and performing the following steps for each row of pixels: calculating the distance between the left boundary of the femoral stem area and the left boundary of the corresponding row of medullary cavity area to generate a left boundary distance; simultaneously calculating the distance between the right boundary of the femoral stem area and the right boundary of the corresponding row of medullary cavity area to generate a right boundary distance; in response to the left boundary distance and the right boundary distance in the current row of pixels being greater than 0, outputting that the femoral stem area has not crossed the boundary; in response to the left boundary distance or the right boundary distance in the current row of pixels being less than or equal to 0, outputting that the femoral stem area has crossed the boundary.
[0008] In some embodiments of the first aspect of the present application, the following operations are also performed after each translation operation: extracting the left minimum difference and the right minimum difference between the femoral stem area and the medullary cavity area, and calculating the horizontal movement distance of the femoral stem area based on the left minimum difference and the right minimum difference; based on the horizontal movement distance, horizontally translating the femoral stem area to make the distance between the two sides of the femoral stem and the inner wall of the medullary cavity symmetrical.
[0009] In some embodiments of the first aspect of the present application, the process of performing an axial alignment operation on the femoral stem region includes: respectively extracting the central axis of the medullary cavity region and the central axis of the femoral stem region; calculating the angle difference between the central axis in the medullary cavity region and the central axis in the femoral stem region; rotating the femoral stem region by the angle difference with the center point of the medullary cavity region as the rotation center, so that the central axes of the medullary cavity region and the femoral stem region remain coaxial.
[0010] In some embodiments of the first aspect of the present application, after performing an axial alignment operation on the femoral stem area, the following operations are also performed: the horizontal and vertical coordinates of the tail of the femoral stem shaft are extracted from the femoral stem area, and the horizontal coordinates of the center of the medullary cavity and the vertical coordinates of the lesser trochanter of the medullary cavity are extracted from the medullary cavity area; the difference between the horizontal coordinate of the tail of the femoral stem shaft and the horizontal coordinate of the center of the medullary cavity is calculated as the lateral movement; at the same time, the difference between the vertical coordinate of the tail of the femoral stem shaft and the vertical coordinate of the lesser trochanter of the medullary cavity is calculated as the longitudinal movement; based on the lateral movement and the longitudinal movement, the femoral stem area is translated so that the horizontal coordinate information of the tail of the femoral stem shaft after the movement coincides with the horizontal coordinate information of the center of the medullary cavity, and the vertical coordinate information of the tail of the femoral stem shaft after the movement coincides with the vertical coordinate information of the lesser trochanter of the medullary cavity.
[0011] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a femoral stem placement device based on a flat film, including: an image acquisition module: used to acquire the medullary cavity area and the femoral stem template of the full-length flat film of the lower limb, and perform an image fusion operation on the medullary cavity area of the full-length flat film of the lower limb and the femoral stem template to generate an implantation area image containing the medullary cavity area and the femoral stem area; a preprocessing module: used to perform a micro-expansion operation on the medullary cavity area in the implantation area image; based on the medullary cavity area after the micro-expansion operation, perform an axial alignment operation on the femoral stem area to obtain the initial position information of the femoral stem area; an iterative optimization module: used to perform multiple rounds of iterative optimization operations on the femoral stem area based on the initial position information of the femoral stem area and the medullary cavity area according to an optimization termination threshold, thereby generating an optimized femoral stem placement map.
[0012] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the flat-film-based femoral stem placement method.
[0013] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides a computer program product, which includes a computer program code. When the computer program code is run on a computer, the computer implements the flat-film-based femoral stem placement method.
[0014] To achieve the above-mentioned purpose and other related purposes, the fifth aspect of the present application provides an electronic terminal, including a memory, a processor and a computer program stored in the memory; the processor executes the computer program to implement the flat-film-based femoral stem placement method.
[0015] As described above, the flat-film-based femoral stem placement method, device, medium, program product and terminal of the present application have the following beneficial effects: by placing the femoral stem obliquely, the complexity of multiple coordinate system conversions in the traditional method is avoided, the difficulty of operation and the risk of dislocation are greatly reduced, and the whole process is more intuitive and easy to control. Secondly, the introduced micro-expansion technology enhances the close fit between the femoral stem and the bone tissue, significantly improves the stability and firmness of the implant, thereby ensuring the reliability of the surgical effect. In addition, the use of an efficient iterative distance algorithm enables the position of the femoral stem to be continuously optimized, achieving a higher placement accuracy. Finally, a termination condition that is more in line with clinical practice is designed, which fully considers various situations during the operation, thereby ensuring the safety of the operation and the success rate of the implant. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic flow chart of an embodiment of a femoral stem placement method based on flat film of the present application is shown.
[0017] Figure 2 A schematic diagram of the micro-expansion operation in one embodiment of the flat-film-based femoral stem placement method of the present application is shown.
[0018] Figure 3 A schematic diagram of the axial alignment operation in one embodiment of the flat-film-based femoral stem placement method of the present application is shown.
[0019] Figure 4 A schematic diagram of iterative optimization of the femoral stem in one embodiment of the flat-film-based femoral stem placement method of the present application is shown.
[0020] Figure 5 A schematic diagram of axial movement optimization in an embodiment of a femoral stem placement method based on flat film of the present application is shown.
[0021] Figure 6 A schematic diagram of horizontal movement optimization in an embodiment of a femoral stem placement method based on flat film of the present application is shown.
[0022] Figure 7 A structural schematic diagram of an embodiment of a flat-film-based femoral stem placement device of the present application is shown.
[0023] Figure 8 A structural schematic diagram of an embodiment of a flat-film-based femoral stem placement terminal of the present application is shown. DETAILED DESCRIPTION
[0024] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0025] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:
[0026] <1> Medical plain film: An imaging technique that uses radiation to penetrate the human body to obtain internal images to help diagnose various diseases and injuries. It can clearly show the shape and changes of bones, organs and soft tissues, and is often used to evaluate fractures, tumors and arthritis.
[0027] <2> Medullary cavity: The cavity in the center of a long bone filled with bone marrow, which is divided into red marrow responsible for blood production and yellow marrow composed mainly of fat. It is essential for the growth, development, and regeneration of bones, as well as the metabolism of minerals and blood cells.
[0028] <3> Femoral stem: The prosthetic part of a joint replacement that is placed into a cavity in a long bone. It is designed to provide support to restore joint function, taking into account compatibility with bone anatomy and the required mechanical stability, and is usually made of biocompatible materials.
[0029] <4> Micro-expansion: This surgical technique improves the adaptability of surrounding tissues through tiny expansion operations to better accommodate implants. It is often used in joint replacement surgery to reduce postoperative complications and improve implant stability.
[0030] <5> Lesser trochanter: An anatomical site located on the medial side of the proximal end of a long bone that serves as an attachment point for muscles, especially the flexors, and plays a key role in movement and stability. Its structure has an important influence on the range of motion and stability of the joint.
[0031] To facilitate understanding of the embodiments of the present application, first Figure 1 Detailed description. Figure 1 The flowchart of a femoral stem placement method based on a flat film in an embodiment of the present invention is shown. The femoral stem placement method based on a flat film in this embodiment mainly includes the following steps:
[0032] Step S11: Acquire the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template, and perform an image fusion operation on the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template to generate an implantation area image including the medullary cavity area and the femoral stem area.
[0033] In one embodiment of the present invention, the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template are images obtained by two-dimensional X-ray imaging technology. The medullary cavity area of the full-length plain film of the lower limb contains a cavity structure located in the center of the long bone (such as the femur), and the medullary cavity is a narrow tubular structure extending along the long axis of the bone. The femoral stem template contains the long straight part of the femur, which is used to connect the femoral head and the lower end of the femur. In femoral replacement surgery, an artificial femoral stem is inserted through the medullary cavity, combined with cement or cementless fixation technology to ensure the stable combination of the femoral stem and the surrounding bone tissue.
[0034] In one embodiment of the present invention, the process of performing an image fusion operation on the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template includes the following steps: performing image preprocessing operations such as denoising, contrast enhancement, and image correction on the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template respectively to improve the quality of the original image. Performing a feature extraction operation on the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template after the preprocessing operation respectively to identify and extract feature points and feature edges in the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template. The extracted feature points and / or feature edges are used as anchor points for registration, and the transformation matrix is calculated by the least squares method or other mathematical methods to ensure that the two images can be accurately aligned when applying geometric transformations such as translation, rotation, and scaling. Based on a preset image fusion algorithm, the registered images are fused.
[0035] Furthermore, the process of identifying and extracting characteristic points and characteristic edges in the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template includes: using SIFT algorithm, Canny edge detection and other algorithms to extract characteristic points and characteristic edges in the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template. Exemplarily, the characteristic points in the medullary cavity area of the full-length plain film of the lower limb include the center point of the medullary cavity or the bone hole, and the characteristic edges include the boundary between the medullary cavity and the bone tissue or the boundary of the medullary cavity edge. The characteristic points in the femoral stem include the geometric center point of the femoral stem or the marked inclination angle or the groove or protrusion designed on the surface of the femoral stem, and the characteristic edges include the outer contour of the artificial femoral stem and the edge between the femoral stem and the surface to be contacted.
[0036] Furthermore, the preset image fusion algorithm includes but is not limited to weighted average method, wavelet transform or PCA, etc. Fusion of the registered images also includes the following steps: respectively adjusting the weights of the feature points and edges in the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template to improve the visibility of important structures in the fused image.
[0037] Step S12: performing a micro-expansion operation on the medullary cavity region in the implantation region image; based on the medullary cavity region after the micro-expansion operation, performing an axial alignment operation on the femoral stem region to obtain initial position information of the femoral stem region.
[0038] Figure 2 The schematic diagram of the micro-expansion operation in one embodiment of the present invention is shown. The left side is a schematic diagram of the femoral stem before micro-expansion, and the right side is a schematic diagram of the femoral stem after micro-expansion. The process of performing the micro-expansion operation on the medullary cavity area in the implantation area image includes the following steps: using software tools such as MATLAB, ImageJ and OpenCV to perform the micro-expansion operation. The process of the micro-expansion operation includes several key steps: first, selecting an appropriate small structural element, such as a rectangle or a circle, to adapt to the foreground area that needs to be expanded. The shape and size of the structural element will directly affect the final expansion effect; second, setting the expansion coefficient control parameters, including determining the size of the structural element according to experimental requirements, setting the number of iterations of the expansion operation to enhance the expansion effect, and using adaptive parameters when necessary to dynamically adjust the expansion degree according to the input image features; then, using the selected structural element and the set parameters, performing the expansion operation on the foreground area in the image, moving the structural element to each position and marking the overlapping area as the foreground; finally, evaluating the expansion effect to confirm whether the generated image meets expectations, checking the gap filling, edge visibility and image noise level.
[0039] It should be noted that the micro-expansion process plays a key role in the placement of the femoral stem, ensuring that the femoral stem can be stably fixed in the medullary cavity. Through moderate invasiveness, the micro-expansion operation can not only maintain the stability of the femoral stem and avoid postoperative loosening or displacement, but also create a better contact surface by filling small gaps in the medullary cavity, achieving a more stable implantation effect. This process enhances the visibility of the medullary cavity edge, facilitates subsequent image analysis and identification of anatomical features, while reducing image noise and improving overall image quality, thereby providing more accurate planning support for the implantation position of the femoral stem. In addition, the micro-expansion technology also solves the problems of operational complexity and lack of safety in femoral stem implantation surgery, ensures the accuracy of alignment between the femoral stem and the medullary cavity, effectively reduces potential operational errors, and ultimately improves the patient's surgical experience and postoperative recovery effect. Through this series of measures, the micro-expansion process significantly reduces the risk of postoperative loosening and ensures the stability of the femoral stem.
[0040] Figure 3A schematic diagram of an axial alignment operation in an embodiment of the present invention is shown. The white line on the left is the central axis of the medullary cavity, and the image on the right is the femoral stem after the central axis remains coaxial. The process of performing the axial alignment operation on the femoral stem area includes: extracting the central axis of the medullary cavity area and the central axis of the femoral stem area respectively; calculating the angle difference between the central axis in the medullary cavity area and the central axis in the femoral stem area; rotating the femoral stem area by the angle difference with the center point of the medullary cavity area as the rotation center, so that the central axes of the medullary cavity area and the femoral stem area remain coaxial.
[0041] It should be noted that the purpose of this embodiment is to ensure the axial alignment of the femoral stem to avoid deviation of the femoral stem during initial movement problems. The advantages of performing an axial alignment operation on the femoral stem area are: first, by ensuring a good match between the femoral stem and the anatomical structure in the medullary cavity, the stability and accuracy of the implantation are improved, and the initial displacement or instability caused by improper angles is reduced. Secondly, accurate alignment can reduce friction and stress concentration between the implant material and the bone tissue, thereby improving biocompatibility, promoting the aggregation and colonization of bone cells, and accelerating the bone healing process. In addition, precise placement can also reduce the risk of postoperative complications, such as infection and nonunion of fractures, and improve the smoothness of postoperative recovery.
[0042] In one embodiment of the present invention, after performing an axial alignment operation on the femoral stem area, the following operations are also performed: the horizontal and vertical coordinates of the tail of the femoral stem shaft are extracted from the femoral stem area, and the horizontal coordinates of the center of the medullary cavity and the vertical coordinates of the lesser trochanter of the medullary cavity are extracted from the medullary cavity area; the difference between the horizontal coordinate of the tail of the femoral stem shaft and the horizontal coordinate of the center of the medullary cavity is calculated as the lateral movement; at the same time, the difference between the vertical coordinate of the tail of the femoral stem shaft and the vertical coordinate of the lesser trochanter of the medullary cavity is calculated as the longitudinal movement; based on the lateral movement and the longitudinal movement, the femoral stem area is translated so that the horizontal coordinate information of the tail of the femoral stem shaft after the movement coincides with the horizontal coordinate information of the center of the medullary cavity, and the vertical coordinate information of the tail of the femoral stem shaft after the movement coincides with the vertical coordinate information of the lesser trochanter of the medullary cavity.
[0043] In this embodiment, the main purpose of moving the femoral stem is to ensure that it can be accurately implanted in the correct position. The tail of the femoral stem shaft is selected as the reference point because this part is biomechanically critical and directly affects the stability and effect of the implant. By extracting the relevant coordinate points of the femoral stem and the center of the medullary cavity, their relative positions can be accurately evaluated to ensure that the implant can function in the best condition. At the same time, the longitudinal coordinate of the lesser trochanter is considered to ensure that the femoral stem is well aligned with other important structures of the femur during implantation, thereby reducing the risk of postoperative complications.
[0044] Step S13: Based on the initial position information of the femoral stem region and the medullary cavity region, and according to an optimization termination threshold, multiple rounds of iterative optimization operations are performed on the femoral stem region to generate an optimized femoral stem placement map.
[0045] In one embodiment of the present invention, according to the optimization termination threshold, the process of performing multiple rounds of iterative optimization operations on the femoral stem area includes: taking the initial position information of the femoral stem area as the starting point, performing multiple rounds of translation operations along the central axis direction of the femoral stem area, and judging whether the moved femoral stem area is out of bounds after each movement; in response to the femoral stem area not being out of bounds, judging whether the current moving step is less than the optimization termination threshold; if the current moving step is less than the optimization termination threshold, terminating the iterative optimization operation; otherwise, calculating the product of the current moving step and the forward translation coefficient to generate an updated moving step, and performing a translation operation in the forward direction according to the updated moving step; in response to the femoral stem area being out of bounds, calculating the product of the current moving step and the reverse translation coefficient to generate an updated moving step, and performing a translation operation in the reverse direction according to the updated moving step.
[0046] Figure 4 The schematic diagram of iterative optimization of the femoral stem in this embodiment is shown. First, starting from the initial position information of the femoral stem area, a process of performing multiple rounds of translation operations along the central axis direction of the femoral stem area includes: when the femoral stem area performs the first movement in the initial position information, the initial movement step length is used for movement, when moving in the positive direction, the current movement step length is updated by the positive translation coefficient, and a forward operation is performed; when moving in the reverse direction, the current movement step length is updated by the reverse translation coefficient, and a backward operation is performed.
[0047] Exemplarily, the initial moving step is set to 200 pixels, and the forward translation coefficient and the reverse translation coefficient are both set to 0.5. After each movement, it is determined whether the femoral stem exceeds the boundary of the medullary cavity, and the judgment process includes: determining that the boundary position of the current femoral stem should be less than or equal to the boundary position of the medullary cavity. If no out-of-bounds is detected, the femoral stem is moved again by 200 pixels in the coaxial positive direction. In the case of out-of-bounds detection, first retreat 100 pixels (i.e. 200*0.5=100 pixels) and perform out-of-bounds detection again. If it still does not cross the boundary, continue to move in the positive direction, and the new moving distance is 50 pixels (i.e. 100*0.5=50 pixels). If out-of-bounds is detected again, the retreat process needs to be repeated until the femoral stem no longer crosses the boundary and the moving distance is less than the preset minimum threshold.
[0048] In the above embodiment, the forward translation coefficient and the reverse translation coefficient used are fixed values. In another embodiment of the present invention, according to the optimization termination threshold, the process of multiple rounds of iterative optimization operations on the femoral stem area includes: taking the initial position information of the femoral stem area as the starting point, performing multiple rounds of translation operations along the central axis direction of the femoral stem area, and judging whether the current femoral stem area has crossed the boundary after each translation operation: if the judgment result is that it has not crossed the boundary, then continue to perform the following steps: continue to judge whether the current moving step length is less than the optimization termination threshold: if the current moving step length is less than the optimization termination threshold, the iterative optimization operation should be terminated. If the current moving step length is greater than or equal to the optimization termination threshold, it is necessary to dynamically adjust the forward movement coefficient.
[0049] In particular, the feedback mechanism is set to make adjustments based on the difference between the previous round of movement results and the target position. For example, when the movement effect approaches the target position, the forward movement coefficient can be gradually reduced; on the contrary, if the effect fails to approach the target, the forward movement coefficient should be appropriately increased. Finally, the product of the current movement step length and the adjusted forward movement coefficient is calculated to generate an updated movement step length, and a forward translation operation is performed according to this updated movement step length. If it is found during the judgment process that the femoral stem area has crossed the boundary, a reverse movement process is required. At this time, the reverse movement coefficient should be dynamically adjusted: the product of the current movement step length and the adjusted reverse movement coefficient is calculated to generate an updated movement step length, and a translation operation in the opposite direction is performed according to this updated movement step length. Similarly, the feedback mechanism is also applicable to the adjustment of the reverse movement coefficient. If the degree of crossing the boundary is large, the reverse movement coefficient needs to be increased so that the femoral stem area can be quickly implanted and accurately positioned.
[0050] In one embodiment of the present invention, the process of determining whether the femoral stem area after movement in the current round has crossed the boundary after each movement includes: traversing each row of pixels in the femoral stem area, and performing the following steps for each row of pixels: calculating the distance between the left boundary of the femoral stem area and the left boundary of the corresponding row of medullary cavity area to generate a left boundary distance; simultaneously calculating the distance between the right boundary of the femoral stem area and the right boundary of the corresponding row of medullary cavity area to generate a right boundary distance; in response to the left boundary distance and the right boundary distance in the current row of pixels being greater than 0, outputting that the femoral stem area has not crossed the boundary; in response to the left boundary distance or the right boundary distance in the current row of pixels being less than or equal to 0, outputting that the femoral stem area has crossed the boundary.
[0051] Figure 5The schematic diagram of axial movement optimization of the femoral stem area in one embodiment of the present invention is shown. Each row of pixels in the femoral stem area is traversed, that is, during the calculation process, the calculation range of the pixels is strictly limited to the upper and lower end areas of the femoral stem. The advantage of this is that the accuracy of the results is ensured within a limited range, and the influence of unnecessary noise and interference on the calculation results is effectively avoided. Taking the left side as an example, first, by calculating the minimum x value of each row of femoral stem and medullary cavity, the distance between the left boundary of the medullary cavity (x1) and the left boundary of the femoral stem (x2) is determined. If the calculation result shows that x2-x1<0, it means that the femoral stem has crossed the boundary, and the femoral stem needs to be moved upward to avoid invading the area outside the medullary cavity. If x2-x1>0, it is necessary to further determine whether the difference is less than the termination threshold. If the difference is less than the threshold, it means that the femoral stem is in a suitable position and the placement process can be terminated; if the difference is greater than the threshold, it means that the femoral stem needs further adjustment, and the femoral stem continues to be moved downward until the difference is less than the termination threshold.
[0052] In this embodiment, the reason for performing left and right fine-tuning after axial translation is to ensure that the femoral stem area accurately reaches the expected target and avoid affecting the overall planning effect due to improper positioning. The fine-tuning process can monitor and judge in real time whether the femoral stem area is out of bounds. If the left boundary distance and the right boundary distance are both greater than 0, the output is not out of bounds, otherwise it means that it has crossed the boundary. This mechanism can not only adapt to the complexity of the anatomical structure and reduce the risk of the femoral stem relative to the surrounding tissue, but also further optimize the angle and position of the implant and improve its biomechanical stability and function. Through the combination of gradually refined adjustments and out-of-bounds judgment, the scientificity, safety and high operating accuracy of the entire implant planning process are ensured.
[0053] In one embodiment of the present invention, the following operations are also performed after each translation operation: extracting the left minimum difference and the right minimum difference between the femoral stem area and the medullary cavity area, and calculating the horizontal movement distance of the femoral stem area based on the left minimum difference and the right minimum difference; based on the horizontal movement distance, horizontally translating the femoral stem area so that the distances between the two sides of the femoral stem and the inner wall of the medullary cavity are symmetrical.
[0054] Figure 6A schematic diagram of optimizing the horizontal movement of the femoral stem region in one embodiment of the present invention is shown. The steps of extracting the minimum difference between the left and right sides of the femoral stem region and the medullary cavity region and calculating the horizontal movement distance after performing the translation operation are intended to ensure the symmetry and stability of the femoral stem in the medullary cavity. By ensuring that the distance between the two sides of the femoral stem and the inner wall of the medullary cavity is evenly distributed, the load condition after implantation can be optimized, which can effectively disperse the force applied to the implant, reduce stress concentration, thereby reducing the pressure and load in a specific area and improving biomechanical properties. The uniform distribution of pressure helps to enhance the combination of the implant with the surrounding bone tissue, thereby reducing the risk of postoperative complications such as implant loosening or fracture. This embodiment can also achieve a deeper femoral stem implantation effect, which not only improves the overall success rate of the operation, but also provides patients with a longer-term rehabilitation guarantee. Through precise difference calculation and horizontal movement, this process not only further optimizes the positioning of the femoral stem and ensures its accurate placement, but also takes into account the individual anatomical differences of patients, thereby enhancing the versatility and applicability of the method.
[0055] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" represent examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0056] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc or abc, where a, b, c can be single or multiple.
[0057] Figure 7 is a schematic block diagram of a flat-film-based femoral stem placement device provided in an embodiment of the present application. Figure 7 As shown, the device includes an image acquisition module 701, a preprocessing module 702 and an iterative optimization module 703.
[0058] Image acquisition module 701: used to acquire the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template, and perform an image fusion operation on the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template to generate an implantation area image including the medullary cavity area and the femoral stem area;
[0059] Preprocessing module 702: used to perform a micro-expansion operation on the medullary cavity region in the implantation region image; based on the medullary cavity region after the micro-expansion operation, perform an axial alignment operation on the femoral stem region to obtain initial position information of the femoral stem region;
[0060] Iterative optimization module 703: is used to perform multiple rounds of iterative optimization operations on the femoral stem area based on the initial position information of the femoral stem area and the medullary cavity area according to an optimization termination threshold, so as to generate an optimized femoral stem placement map.
[0061] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0062] It should also be understood that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0063] Figure 8 is a schematic block diagram of a computer device / equipment / system provided in an embodiment of the present application. Figure 8 As shown in FIG. 8 , the computer device includes: at least one processor 801, a memory 802, at least one network interface 803, and a user interface 805. The various components in the device are coupled together via a bus system 804. It can be understood that the bus system 804 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 804 is not described in detail. Figure 8 In the specification, various buses are labeled as bus systems.
[0064] The user interface 805 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.
[0065] It is understood that the memory 802 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable categories of memory.
[0066] The memory 802 in the embodiment of the present invention is used to store various categories of data to support the operation of the electronic terminal 800. Examples of these data include: any executable program for operating on the electronic terminal 800, such as an operating system 8021 and an application 8022; the operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application 8022 can include various applications, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The implementation of the flat-film-based femoral stem placement method provided in the embodiment of the present invention can be included in the application 8022.
[0067] The method disclosed in the above embodiment of the present invention can be applied to the processor 801, or implemented by the processor 801. The processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 801 or the instruction in the form of software. The above processor 801 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 801 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor 801 can be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0068] In an exemplary embodiment, the electronic terminal 800 may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD) to execute the aforementioned method.
[0069] According to the method provided in the embodiments of the present application, the present application also provides a computer program product, which includes: a computer program code, when the computer program code is run on a computer, the computer executes the flat-film-based femoral stem placement method of any of the embodiments shown above.
[0070] According to the method provided in the embodiments of the present application, the present application also provides a computer-readable storage medium, which stores a program code. When the program code is run on a computer, the computer executes the flat-film-based femoral stem placement method of any of the embodiments shown above.
[0071] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).
[0072] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0073] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0074] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0075] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0076] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0077] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When loading and executing computer program instructions (programs) on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVDs), or semiconductor media (e.g., solid state disks (SSDs)).
[0078] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0079] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0080] In summary, the present application provides a flat-film-based femoral stem placement method, device, medium, program product and terminal. The present invention provides a method for improving the accuracy and safety of femoral stem placement. The femoral stem is directly placed obliquely to achieve natural alignment with anatomical landmarks, simplifying the operation process and reducing the risk of dislocation. By introducing micro-expansion technology, a moderate expansion force is applied during the pouring process to ensure that the femoral stem fits tightly with the surrounding bone tissue, thereby improving the stability and firmness of the implant. The position of the femoral stem is continuously optimized through an efficient iterative distance algorithm to achieve higher placement accuracy. At the same time, termination conditions that meet clinical practice are designed to ensure the safety of the operation and the success rate of implantation. These innovative methods jointly improve the placement effect of the femoral stem and provide a more effective solution for clinical applications. Therefore, the present application effectively overcomes the various shortcomings of the prior art and has a high industrial utilization value.
[0081] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for placing a femoral stem based on a plain film, characterized in that: The method comprises: Acquire a medullary cavity region of a full-length plain film of a lower limb and a femoral stem template, and perform an image fusion operation on the medullary cavity region of the full-length plain film of the lower limb and the femoral stem template to generate an implantation region image including the medullary cavity region and the femoral stem region; Performing a micro-expansion operation on the medullary cavity region in the implantation region image; performing an axial alignment operation on the femoral stem region based on the medullary cavity region after the micro-expansion operation to obtain initial position information of the femoral stem region; Based on the initial position information of the femoral stem region and the medullary cavity region, and according to an optimization termination threshold, multiple rounds of iterative optimization operations are performed on the femoral stem region to generate an optimized femoral stem placement map.
2. The method for placing a femoral stem based on a flat film according to claim 1, characterized in that: According to the optimization termination threshold, the process of performing multiple rounds of iterative optimization operations on the femoral stem region includes: Taking the initial position information of the femoral stem area as the starting point, performing multiple rounds of translation operations along the central axis direction of the femoral stem area, and determining whether the moved femoral stem area crosses the boundary after each movement; In response to the fact that the femoral stem area does not cross the boundary, it is determined whether the current moving step length is less than the optimization termination threshold; if the current moving step length is less than the optimization termination threshold, the iterative optimization operation is terminated; otherwise, the product of the current moving step length and the forward translation coefficient is calculated to generate an updated moving step length, and a translation operation in the positive direction is performed according to the updated moving step length; In response to the femoral stem area having crossed the boundary, the product of the current moving step length and the reverse translation coefficient is calculated to generate an updated moving step length, and a translation operation in the reverse direction is performed according to the updated moving step length.
3. The method for placing a femoral stem based on a flat film according to claim 2, characterized in that: After each movement, the process of determining whether the femoral stem area after the movement in the current round has crossed the boundary includes: Traverse each row of pixels in the femoral stem area and perform the following steps for each row of pixels: Calculate the distance between the left boundary of the femoral stem region and the left boundary of the corresponding medullary cavity region to generate a left boundary distance; and simultaneously calculate the distance between the right boundary of the femoral stem region and the right boundary of the corresponding medullary cavity region to generate a right boundary distance; In response to the left boundary distance and the right boundary distance in the current row of pixels being greater than 0, outputting that the femoral stem area does not cross the boundary; In response to the left boundary distance or the right boundary distance in the current row of pixels being less than or equal to 0, it is output that the femoral stem area has crossed the boundary.
4. The method for placing a femoral stem based on a flat film according to claim 2, characterized in that: The following operations are also performed after each translation operation: extracting the left minimum difference and the right minimum difference between the femoral stem area and the medullary cavity area, and calculating the horizontal movement distance of the femoral stem area based on the left minimum difference and the right minimum difference; based on the horizontal movement distance, horizontally translating the femoral stem area to make the distance between the two sides of the femoral stem and the inner wall of the medullary cavity symmetrical.
5. The method for placing a femoral stem based on a flat film according to claim 1, characterized in that: The process of performing an axial alignment operation on the femoral stem region includes: Extracting the central axis of the medullary cavity region and the central axis of the femoral stem region respectively; Calculating the angular difference between the axis in the medullary cavity region and the axis in the femoral stem region; The femoral stem region is rotated by the angle difference with the center point of the medullary cavity region as the rotation center, so that the central axes of the medullary cavity region and the femoral stem region remain coaxial.
6. The method for placing a femoral stem based on a flat film according to claim 1, characterized in that: After performing the axial alignment operation on the femoral stem area, the following operations are also performed: The horizontal coordinate and the vertical coordinate of the tail of the femoral stem axis are extracted from the femoral stem area, and the horizontal coordinate of the center of the medullary cavity and the vertical coordinate of the lesser trochanter of the medullary cavity are extracted from the medullary cavity area. The difference between the horizontal coordinate of the tail of the femoral stem and the horizontal coordinate of the center of the medullary cavity is calculated as the lateral movement; at the same time, the difference between the vertical coordinate of the tail of the femoral stem and the vertical coordinate of the lesser trochanter of the medullary cavity is calculated as the longitudinal movement; The femoral stem region is translated based on the lateral movement amount and the longitudinal movement amount so that the horizontal coordinate information of the tail of the femoral stem shaft after the movement coincides with the horizontal coordinate information of the center of the medullary cavity, and the vertical coordinate information of the tail of the femoral stem shaft after the movement coincides with the vertical coordinate information of the lesser trochanter of the medullary cavity.
7. A femoral stem placement device based on a flat film, characterized in that: include: Image acquisition module: used for acquiring the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template, and performing an image fusion operation on the medullary cavity area of the full-length plain film of the lower limb and the femoral stem template to generate an implantation area image including the medullary cavity area and the femoral stem area; A preprocessing module: used for performing a micro-expansion operation on the medullary cavity region in the implantation region image; based on the medullary cavity region after the micro-expansion operation, performing an axial alignment operation on the femoral stem region to obtain initial position information of the femoral stem region; Iterative optimization module: used to perform multiple rounds of iterative optimization operations on the femoral stem area based on the initial position information of the femoral stem area and the medullary cavity area according to the optimization termination threshold, so as to generate an optimized femoral stem placement map.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the femoral stem placement method based on plain film according to any one of claims 1 to 6 is implemented.
9. A computer program product, characterized in that The computer program product includes computer program codes, and when the computer program codes are executed on a computer, the computer is enabled to implement the femoral stem placement method based on plain film according to any one of claims 1 to 6.
10. An electronic terminal comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the flat-film-based femoral stem placement method according to any one of claims 1 to 6.
