Method, device, equipment and storage medium for calculating the medial and lateral low points of tibial plateau
By segmenting and projecting CT images of the hip joint, combined with the stochastic gradient descent algorithm, the medial and lateral low points of the tibial plateau are calculated, which solves the problem of low efficiency of traditional methods and achieves efficient automated calculations.
Patent Information
- Application Number
- CN202310899219.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-07-20
AI Technical Summary
The traditional calculation method of the medial and lateral low points of the tibial plateau mainly relies on manual point collection, which is inefficient and needs to be improved.
By acquiring CT images of the hip joint, perform image segmentation and projection processing, calculate the rotation angle and rotation matrix, and use the stochastic gradient descent algorithm to calculate the medial and lateral low points of the tibial plateau.
It improves the efficiency of calculation of the medial and lateral low points of the tibial plateau, realizes automated processing, and reduces the need for manual intervention.
Smart Images

Figure CN116934708B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of deep learning intelligent recognition technology, and in particular, relates to a method, device, equipment and computer-readable storage medium for calculating the medial and lateral low points of the tibial plateau. Background Art
[0002] Traditional methods for calculating the medial and lateral low points of the tibial plateau mostly rely on manual point sampling, which has relatively low work efficiency.
[0003] Therefore, how to improve the calculation efficiency of the medial and lateral low points of the tibial plateau is a technical problem that technical personnel in this field need to solve urgently. Summary of the invention
[0004] The embodiments of the present application provide a method, device, equipment and computer-readable storage medium for calculating the medial and lateral low points of the tibial plateau, which can improve the efficiency of calculating the medial and lateral low points of the tibial plateau.
[0005] In a first aspect, an embodiment of the present application provides a method for calculating the medial and lateral low points of a tibial plateau, comprising:
[0006] Obtain CT images of the hip joint;
[0007] Perform image segmentation on the hip joint CT image to obtain tibia data;
[0008] Project the tibia data in the cross-sectional direction to obtain a projection image;
[0009] Based on the projection image, the rotation angle is calculated;
[0010] According to the rotation angle, calculate the rotation matrix;
[0011] Based on the tibia data and the rotation matrix, a rotated tibia image is obtained;
[0012] Based on the rotated tibia image, the medial and lateral low points of the tibial plateau were calculated using a stochastic gradient descent algorithm.
[0013] Optionally, the hip joint CT image is segmented to obtain tibia data, including:
[0014] The hip joint CT image is segmented using a 2D image segmentation algorithm and / or a 3D image segmentation algorithm to obtain tibia data.
[0015] Optionally, the tibia data is projected in the cross-sectional direction to obtain a projection image, including:
[0016] When the tibia data is three-dimensional data, the sum of the tibia data in the z-axis direction is calculated;
[0017] The sum of the tibia data in the z direction was normalized;
[0018] The normalized sum is converted to an image format with a preset range.
[0019] Optionally, based on the projected image, calculate the rotation angle, including:
[0020] Calculate the minimum enclosing rectangle of the projected image;
[0021] Calculate the angle between the minimum circumscribed rectangle and the x-axis;
[0022] The included angle is determined as the rotation angle.
[0023] Optional, stochastic gradient descent algorithms, including:
[0024] Randomly extract the gradient information and step size of one or a group of samples with equal probability;
[0025] Based on the gradient information and step size, the position information of each sample is determined.
[0026] Optionally, after determining the location information of each sample, the following is further included:
[0027] Get the momentum variable;
[0028] The position information is updated using the momentum variable.
[0029] Optionally, calculate the medial and lateral low points of the tibial plateau, including:
[0030] The highest point of the tibial plateau was determined as the starting point;
[0031] Calculate the gradient at the starting point;
[0032] The starting point is updated along the gradient, gradually approaching the optimal solution, with the amplitude controlled by the learning rate until the gradient is close to 0, and the optimal solution for the medial and lateral low points of the tibial plateau is determined.
[0033] In a second aspect, an embodiment of the present application provides a device for calculating the medial and lateral low points of a tibial plateau, comprising:
[0034] An image acquisition module, used for acquiring a hip joint CT image;
[0035] An image segmentation module is used to segment the hip joint CT image to obtain tibia data;
[0036] A projection module, used for projecting the tibia data in a cross-sectional direction to obtain a projection image;
[0037] A rotation angle calculation module, used for calculating the rotation angle based on the projection image;
[0038] A rotation matrix calculation module is used to calculate the rotation matrix according to the rotation angle;
[0039] A rotation image acquisition module, used for obtaining a rotated tibia image based on tibia data and a rotation matrix;
[0040] The key point calculation module is used to calculate the medial and lateral low points of the tibial plateau based on the rotated tibia image using a stochastic gradient descent algorithm.
[0041] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;
[0042] When the processor executes the computer program instructions, the method for calculating the medial and lateral low points of the tibial plateau as shown in the first aspect is implemented.
[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the method for calculating the medial and lateral low points of the tibial plateau as shown in the first aspect is implemented.
[0044] The method, device, equipment and computer-readable storage medium for calculating the medial and lateral low points of the tibial plateau according to the embodiments of the present application can improve the efficiency of calculating the medial and lateral low points of the tibial plateau.
[0045] The method for calculating the medial and lateral low points of the tibial plateau comprises: acquiring a hip joint CT image; performing image segmentation on the hip joint CT image to obtain tibial data; projecting the tibial data in a cross-sectional direction to obtain a projection image; calculating a rotation angle based on the projection image; calculating a rotation matrix according to the rotation angle; obtaining a rotated tibial image based on the tibial data and the rotation matrix; and calculating the medial and lateral low points of the tibial plateau using a random gradient descent algorithm based on the rotated tibial image. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 It is a flowchart of a method for calculating the medial and lateral low points of the tibial plateau provided by an embodiment of the present application;
[0048] Figure 2 is a schematic diagram of rotation angles provided by an embodiment of the present application;
[0049] Figure 3 is a schematic diagram of a rotated tibia image provided by an embodiment of the present application;
[0050] Figure 4 is a schematic diagram of using a stochastic gradient descent algorithm to find the global minimum point provided by an embodiment of the present application;
[0051] Figure 5 is a schematic diagram of the lowest point of the medial and lateral sides of the tibial plateau provided by one embodiment of the present application;
[0052] Figure 6 It is a schematic diagram of the structure of a device for calculating the medial and lateral low points of a tibial plateau provided by an embodiment of the present application;
[0053] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0054] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0055] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0056] Traditional methods for calculating the medial and lateral low points of the tibial plateau mostly rely on manual point sampling, which has relatively low work efficiency.
[0057] In order to solve the problems of the prior art, the embodiments of the present application provide a method, device, apparatus and computer-readable storage medium for calculating the medial and lateral low points of the tibial plateau. The method for calculating the medial and lateral low points of the tibial plateau provided in the embodiments of the present application is first introduced below.
[0058] Figure 1FIG. 2 is a flow chart showing a method for calculating the medial and lateral low points of the tibial plateau provided by an embodiment of the present application. Figure 1 As shown, the method for calculating the medial and lateral low points of the tibial plateau includes:
[0059] S101, obtaining a CT image of a hip joint;
[0060] S102, performing image segmentation on the hip joint CT image to obtain tibia data;
[0061] S103, projecting the tibia data in the cross-sectional direction to obtain a projection image;
[0062] S104, calculating a rotation angle based on the projection image;
[0063] S105, calculating a rotation matrix according to the rotation angle;
[0064] S106, obtaining a rotated tibia image based on the tibia data and the rotation matrix;
[0065] S107. Based on the rotated tibia image, use a stochastic gradient descent algorithm to calculate the medial and lateral low points of the tibial plateau.
[0066] In one embodiment, performing image segmentation on a hip joint CT image to obtain tibia data includes:
[0067] The hip joint CT image is segmented using a 2D image segmentation algorithm and / or a 3D image segmentation algorithm to obtain tibia data.
[0068] Specifically, image segmentation: input knee joint CT data, and obtain tibia segmentation results through an image segmentation algorithm, wherein the image segmentation algorithm can be a 2D segmentation algorithm or a 3D segmentation algorithm.
[0069] In one embodiment, the tibia data is projected in the cross-sectional direction to obtain a projection image, including:
[0070] When the tibia data is three-dimensional data, the sum of the tibia data in the z-axis direction is calculated;
[0071] The sum of the tibia data in the z direction was normalized;
[0072] The normalized sum is converted to an image format with a preset range.
[0073] Specifically, tibia cross-sectional projection: the segmented tibia data is projected in the cross-sectional direction, and the projection calculation formula is:
[0074]
[0075]
[0076] Q(i,j)=(255.0*(2*P o (i,j)-P o (i,j)*P o (i,j)))
[0077] Among them, P(i,j) represents the sum of three-dimensional data in the z direction, w represents the size of the three-dimensional data in the z direction, i represents the x direction value, j represents the y direction value, k represents the z direction value, max represents the maximum value, Po(i,j) represents the normalization processing of P(i,j), and Q(i,j) represents the transformation of Po(i,j) to an image format in the range of 0-255.
[0078] In one embodiment, the rotation angle is calculated based on the projection image, including:
[0079] Calculate the minimum enclosing rectangle of the projected image;
[0080] Calculate the angle between the minimum circumscribed rectangle and the x-axis;
[0081] The included angle is determined as the rotation angle.
[0082] Specifically, the minimum bounding rectangle of the projected image is calculated, and the angle between the bounding rectangle and the X-axis is calculated, that is, Figure 2 The α in is the rotation angle.
[0083] Calculate the rotation matrix based on the rotation angle:
[0084] R=([[cos(a),sin(a),0],[sin(a),cos(a),0],[0,0,1]])
[0085] Image rotation: Multiply each layer of tibia image by the rotation matrix to obtain the rotated tibia image, such as Figure 3 shown.
[0086] In one embodiment, the stochastic gradient descent algorithm includes:
[0087] Randomly extract the gradient information and step size of one or a group of samples with equal probability;
[0088] Based on the gradient information and step size, the position information of each sample is determined.
[0089] In one embodiment, after determining the location information of each sample, the method further includes:
[0090] Get the momentum variable;
[0091] The position information is updated using the momentum variable.
[0092] Specifically, the calculation method for finding the medial and lateral low points of the tibial plateau is based on the stochastic gradient descent algorithm:
[0093] Randomly select one or a group of samples with equal probability And use the following iterative update format:
[0094]
[0095] in, represents the gradient information, represents the gradient operator, and ak represents the step size.
[0096] The momentum method introduces a momentum variable v based on the stochastic gradient descent method. At each iteration, the momentum is updated using the gradient at the current point, and then the momentum is used as the increment of one iteration. The iterative format of the momentum method is as follows:
[0097]
[0098] x k+1=xk +v k+1
[0099] The schematic diagram of using the stochastic gradient descent algorithm to find the global minimum point is as follows Figure 4 shown.
[0100] In one embodiment, calculating the medial and lateral low points of the tibial plateau includes:
[0101] The highest point of the tibial plateau was determined as the starting point;
[0102] Calculate the gradient at the starting point;
[0103] The starting point is updated along the gradient, gradually approaching the optimal solution, with the amplitude controlled by the learning rate until the gradient is close to 0, and the optimal solution for the medial and lateral low points of the tibial plateau is determined.
[0104] Specifically, for the rotated tibia image, the X-axis range is calculated, and the highest point of the tibia is found. The tibial plateau is divided into left and right sides, and the medial and lateral low points of the tibial plateau are found by using the stochastic gradient descent algorithm. The calculation method of the medial and lateral low points of the tibial plateau is as follows:
[0105] (1) The highest point of the tibial plateau is the starting point x;
[0106] (2) Calculate the gradient df(x) at this point;
[0107] (3) Update the value of x along the gradient, gradually approaching the optimal solution, and the magnitude is controlled by the learning rate (LR). New x = x – LR*df(x);
[0108] (4) Repeat steps (2) and (3) to determine whether the gradient is close to 0. If it is very close to 0, the optimal solution can be found.
[0109] Figure 6 1 is a schematic diagram of a device for calculating the medial and lateral low points of a tibial plateau according to an embodiment of the present invention. The device for calculating the medial and lateral low points of a tibial plateau comprises:
[0110] An image acquisition module 601 is used to acquire a hip joint CT image;
[0111] An image segmentation module 602 is used to segment the hip joint CT image to obtain tibia data;
[0112] The projection module 603 is used to project the tibia data in the cross-sectional direction to obtain a projection image;
[0113] A rotation angle calculation module 604, used to calculate the rotation angle based on the projection image;
[0114] The rotation matrix calculation module 605 is used to calculate the rotation matrix according to the rotation angle;
[0115] A rotation image acquisition module 606 is used to obtain a rotated tibia image based on the tibia data and the rotation matrix;
[0116] The key point calculation module 607 is used to calculate the medial and lateral low points of the tibial plateau based on the rotated tibia image using a stochastic gradient descent algorithm.
[0117] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.
[0118] The electronic device may include a processor 701 and a memory 702 storing computer program instructions.
[0119] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0120] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the electronic device. In a particular embodiment, the memory 702 may be a non-volatile solid-state memory.
[0121] In one embodiment, the memory 702 may be a read-only memory (ROM). In one embodiment, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0122] The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement any one of the methods for calculating the medial and lateral low points of the tibial plateau in the above embodiments.
[0123] In one example, the electronic device may further include a communication interface 703 and a bus 710. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.
[0124] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0125] Bus 710 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0126] In addition, in combination with the method for calculating the medial and lateral low points of the tibial plateau in the above embodiments, the present application embodiment can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the methods for calculating the medial and lateral low points of the tibial plateau in the above embodiments is implemented.
[0127] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0128] The functional modules shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0129] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0130] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0131] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for calculating the medial and lateral low points of the tibial plateau, characterized in that: include: Obtain CT images of the hip joint; Perform image segmentation on the hip joint CT image to obtain tibia data; Project the tibia data in the cross-sectional direction to obtain a projection image; Based on the projection image, the rotation angle is calculated; According to the rotation angle, calculate the rotation matrix; Based on the tibia data and the rotation matrix, a rotated tibia image is obtained; Based on the rotated tibia image, the stochastic gradient descent algorithm was used to calculate the medial and lateral low points of the tibial plateau. Project the tibia data in the cross-sectional direction to obtain a projection image, including: When the tibia data is three-dimensional data, the sum of the tibia data in the z-axis direction is calculated; The sum of the tibia data in the z direction was normalized; Transforming the normalized sum into an image format within a preset range; Specifically, tibia cross-sectional projection: the segmented tibia data is projected in the cross-sectional direction, and the projection calculation formula is: Q(i,j)=(255.0*(2*P o (i,j)-P o (i,j)*P o (i,j))) Wherein, P(i,j) represents the sum of three-dimensional data in the z direction, w represents the size of three-dimensional data in the z direction, i represents the value in the x direction, j represents the value in the y direction, k represents the value in the z direction, max represents the maximum value, Po(i,j) represents the normalization processing of P(i,j), and Q(i,j) represents the conversion of Po(i,j) to an image format in the range of 0-255; Based on the projected image, the rotation angle is calculated, including: Calculate the minimum enclosing rectangle of the projected image; Calculate the angle between the minimum circumscribed rectangle and the x-axis; The included angle is determined as the rotation angle; Specifically, the minimum circumscribed rectangle of the projected image is calculated, and the angle between the circumscribed rectangle and the X-axis is calculated, that is, α is the rotation angle; Calculate the rotation matrix based on the rotation angle: R=([[cos(a),sin(a),0],[sin(a),cos(a),0],[0,0,1]]) Image rotation: multiply each layer of tibia image by the rotation matrix to obtain the rotated tibia image; Stochastic gradient descent algorithm, including: Randomly extract the gradient information and step size of one or a group of samples with equal probability; Based on the gradient information and step size, determine the position information of each sample; After determining the location information of each sample, it also includes: Get the momentum variable; Use momentum variables to update position information; Specifically, the calculation method for finding the medial and lateral low points of the tibial plateau is based on the stochastic gradient descent algorithm: Randomly select one or a group of samples with equal probability And use the following iterative update format: in, represents the gradient information, represents the gradient operator, ak represents the step size; The momentum method introduces a momentum variable v based on the stochastic gradient descent method. At each iteration, the momentum is updated using the gradient at the current point, and then the momentum is used as the increment of one step of iteration. The iterative format of the momentum method is as follows: x k+1=xk +v k+1 。 2. The method for calculating the medial and lateral low points of the tibial plateau according to claim 1, characterized in that: Perform image segmentation on the hip joint CT image to obtain tibia data, including: The hip joint CT image is segmented using a 2D image segmentation algorithm and / or a 3D image segmentation algorithm to obtain tibia data.
3. The method for calculating the medial and lateral low points of the tibial plateau according to claim 1, characterized in that: Calculate the medial and lateral low points of the tibial plateau, including: The highest point of the tibial plateau was determined as the starting point; Calculate the gradient at the starting point; The starting point is updated along the gradient, gradually approaching the optimal solution, with the amplitude controlled by the learning rate until the gradient is close to 0, and the optimal solution for the medial and lateral low points of the tibial plateau is determined.
4. A device for calculating the medial and lateral low points of a tibial plateau, characterized in that: include: An image acquisition module, used for acquiring a hip joint CT image; An image segmentation module is used to segment the hip joint CT image to obtain tibia data; A projection module, used for projecting the tibia data in a cross-sectional direction to obtain a projection image; A rotation angle calculation module, used for calculating the rotation angle based on the projection image; A rotation matrix calculation module is used to calculate the rotation matrix according to the rotation angle; A rotation image acquisition module, used for obtaining a rotated tibia image based on tibia data and a rotation matrix; A key point calculation module, used for calculating the medial and lateral low points of the tibial plateau using a stochastic gradient descent algorithm based on the rotated tibia image; Project the tibia data in the cross-sectional direction to obtain a projection image, including: When the tibia data is three-dimensional data, the sum of the tibia data in the z-axis direction is calculated; The sum of the tibia data in the z direction was normalized; Transforming the normalized sum into an image format within a preset range; Specifically, tibia cross-sectional projection: the segmented tibia data is projected in the cross-sectional direction, and the projection calculation formula is: Q(i,j)=(255.0*(2*P o (i,j)-P o (i,j)*P o (i,j))) Wherein, P(i,j) represents the sum of three-dimensional data in the z direction, w represents the size of three-dimensional data in the z direction, i represents the value in the x direction, j represents the value in the y direction, k represents the value in the z direction, max represents the maximum value, Po(i,j) represents the normalization processing of P(i,j), and Q(i,j) represents the conversion of Po(i,j) to an image format in the range of 0-255; Based on the projected image, the rotation angle is calculated, including: Calculate the minimum enclosing rectangle of the projected image; Calculate the angle between the minimum circumscribed rectangle and the x-axis; The included angle is determined as the rotation angle; Specifically, the minimum circumscribed rectangle of the projected image is calculated, and the angle between the circumscribed rectangle and the X-axis is calculated, that is, α is the rotation angle; Calculate the rotation matrix based on the rotation angle: R=([[cos(a),sin(a),0],[sin(a),cos(a),0],[0,0,1]]) Image rotation: multiply each layer of tibia image by the rotation matrix to obtain the rotated tibia image; Stochastic gradient descent algorithm, including: Randomly extract the gradient information and step size of one or a group of samples with equal probability; Based on the gradient information and step size, determine the position information of each sample; After determining the location information of each sample, it also includes: Get the momentum variable; Use momentum variables to update position information; Specifically, the calculation method for finding the medial and lateral low points of the tibial plateau is based on the stochastic gradient descent algorithm: Randomly select one or a group of samples with equal probability And use the following iterative update format: in, represents the gradient information, represents the gradient operator, ak represents the step size; The momentum method introduces a momentum variable v based on the stochastic gradient descent method. At each iteration, the momentum is updated using the gradient at the current point, and then the momentum is used as the increment of one step of iteration. The iterative format of the momentum method is as follows: x k+1=xk +v k+1 。 5. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for calculating the medial and lateral low points of the tibial plateau as described in any one of claims 1-3 is implemented.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for calculating the medial and lateral low points of the tibial plateau according to any one of claims 1 to 3 is implemented.
