Automatic recognition method and device of knee joint, storage medium and electronic device

By using a deep learning-based multi-class bone segmentation model and anatomical structure relationships, the left and right sides of the knee joint can be automatically identified, solving the problems of reliance on manual methods and unstable DICOM information in existing technologies, and achieving efficient and stable knee joint side identification.

CN123160489APending Publication Date: 2026-11-24BEIJING WANDONG MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611337433.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing methods for determining left and right sides in knee joint images rely on manual operation and are highly dependent on DICOM header information, resulting in low recognition efficiency and instability. This makes it difficult to achieve efficient, automatic, and stable side recognition in real clinical environments.

Method used

A deep learning-based multi-class bone segmentation model is used to automatically identify multiple reference sites of the knee joint. Combined with anatomical relationships, the left and right sides of the knee joint are determined by the spatial position of the fibula relative to other reference sites, thus achieving fully automated identification.

Benefits of technology

It improves the robustness and generalization ability of left and right knee joint identification, and can adapt to changes in body position, pathological changes and differences in imaging parameters, significantly improving the accuracy and stability of identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160489A_ABST
    Figure CN123160489A_ABST
Patent Text Reader

Abstract

This application discloses an automatic knee joint recognition method, apparatus, storage medium, and electronic device. The method includes: acquiring target three-dimensional image data of a target region; inputting the target three-dimensional image data into a multi-class bone segmentation model to obtain segmentation results of multiple reference regions output by the multi-class bone segmentation model, wherein the multi-class bone segmentation model is a pre-trained model capable of recognizing multiple reference regions; and based on the anatomical relationship between the multiple reference regions and the knee joint, obtaining the recognition results of the left and right sides of the knee joint from the target three-dimensional image data according to the segmentation results of the multiple reference regions. This application solves the technical problem of low recognition efficiency for the left and right knee joints in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of medical image processing technology, and more specifically, to an automatic identification method and apparatus for knee joints, a storage medium, and an electronic device. Background Technology

[0002] This section is intended to provide background or context for the content set forth in the claims or specification, and the content described herein is not acknowledged as prior art simply because it is included in this section.

[0003] With the rapid development of medical imaging technology, magnetic resonance imaging (MRI) has become a core tool for the diagnosis, surgical planning, and postoperative evaluation of knee joint diseases. In the ever-growing clinical imaging workflow, accurately identifying the left or right side of the knee joint in images (left or right side refers to the anatomically left or right knee joint) is a fundamental yet crucial step. Misjudgment of knee joint side can directly lead to serious clinical consequences, such as incorrect diagnostic reports and incorrect surgical site marking, potentially resulting in medical accidents and disputes, and causing irreversible harm to patients. Therefore, developing a high-precision, robust automatic left-right knee joint identification technology has become an urgent practical need in the field of medical image analysis.

[0004] Currently, in radiology practice, Picture Archiving and Communication Systems (PACS), and advanced applications such as 3D printing and surgical navigation, the determination of left and right sides in knee images mainly relies on the following methods: First, manual identification and verification, where technicians manually input patient information and orientation labels during scanning, and radiologists make subjective judgments based on anatomical knowledge when reviewing the images. This method is highly dependent on manual operation and carries the risk of confusion due to human fatigue, negligence, or labeling errors. Second, reliance on DICOM (Digital Imaging and Communications in Medicine) header information. The DICOM standard contains information such as image orientation; however, this information may be incomplete, incorrect, or lost or damaged during image post-processing and format conversion, making it unreliable.

[0005] In summary, existing methods for determining left and right sides in knee joint imaging mainly suffer from high reliance on manual intervention, dependence on DICOM header file information, and limited stability, making it difficult to achieve efficient, automatic, stable, and reliable side identification in real clinical settings.

[0006] There is currently no effective solution to the above problems. Summary of the Invention

[0007] This application provides an automatic knee joint recognition method and apparatus, storage medium, and electronic device to at least solve the technical problem of low recognition efficiency for left and right knee joints in related technologies.

[0008] According to one aspect of the embodiments of this application, an automatic knee joint recognition method is provided, comprising: acquiring target three-dimensional image data of a target region; inputting the target three-dimensional image data into a multi-class bone segmentation model to obtain segmentation results of a plurality of reference regions output by the multi-class bone segmentation model, wherein the multi-class bone segmentation model is a pre-trained model capable of recognizing the plurality of reference regions; and obtaining left and right knee joint recognition results in the target three-dimensional image data based on the anatomical relationship between the plurality of reference regions and the knee joint, and according to the segmentation results of the plurality of reference regions.

[0009] According to another aspect of the embodiments of this application, an automatic knee joint recognition device is also provided, comprising: an acquisition unit for acquiring target three-dimensional image data of a target region; a segmentation unit for inputting the target three-dimensional image data into a multi-class bone segmentation model to obtain segmentation results of the multiple reference regions output by the multi-class bone segmentation model, wherein the multi-class bone segmentation model is a pre-trained model capable of recognizing the multiple reference regions; and a recognition unit for obtaining recognition results of the left and right sides of the knee joint in the target three-dimensional image data based on the anatomical relationship between the multiple reference regions and the knee joint, and according to the segmentation results of the multiple reference regions.

[0010] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, the storage medium including a stored program that executes the above-described method when the program is run.

[0011] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor performs the above-described method through the computer program.

[0012] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of any of the embodiments of the methods described above.

[0013] In this embodiment, target three-dimensional image data of the target region is acquired; the target three-dimensional image data is input into a multi-class bone segmentation model to obtain segmentation results of multiple reference regions output by the multi-class bone segmentation model. The multi-class bone segmentation model is a pre-trained model capable of recognizing multiple reference regions; based on the anatomical relationship between the multiple reference regions and the knee joint, and according to the segmentation results of the multiple reference regions, the recognition results of the left and right sides of the knee joint are obtained in the target three-dimensional image data, thereby solving the technical problem of low recognition efficiency of the left and right knee joints in related technologies. Attached Figure Description

[0014] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a flowchart of an optional automatic knee joint recognition method according to an embodiment of this application; Figure 2 This is a schematic diagram of preprocessed knee joint scan data according to an embodiment of this application; Figure 3 This is a schematic diagram of the multi-class bone segmentation results of the knee joint according to an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a multi-category bone segmentation model according to an embodiment of this application; Figure 5 This is a schematic diagram of the vector calculation process according to an embodiment of this application; Figure 6 This is a schematic diagram of an optional automatic knee joint recognition device according to an embodiment of this application; Figure 7 This is a structural block diagram of a terminal according to an embodiment of this application. Detailed Implementation

[0015] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0016] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0017] To automatically identify the left and right knee joints, rule-based image recognition methods can be used, which make judgments based on simple geometric features or grayscale distributions. However, these methods are not robust and are difficult to adapt to complex medical imaging scenarios. If there are differences in body position, pathological changes, or differences in scanning sequences and field of view, the apparent features of the anatomical structure will change, resulting in a significant decrease in recognition accuracy.

[0018] The reason why its robustness is limited is that it relies on simple geometric features or gray-scale distribution rules preset by humans. However, medical images have unpredictable and complex changes in three dimensions: body position, pathological state, and imaging parameters. Any pre-fixed rule is difficult to cover all combinations of these changes. Once the image conditions deviate from the preset range, the judgment may fail. In order to solve this problem, according to one aspect of the embodiments of this application, an embodiment of an automatic knee joint recognition method is provided.

[0019] Optionally, in this embodiment, the automatic knee joint recognition method of this application can be executed by computer devices such as local computer devices, edge devices, local servers, and cloud servers.

[0020] Figure 1 This is a flowchart of an optional automatic knee joint recognition method according to an embodiment of this application, such as... Figure 1 As shown, the method may include the following steps: Step S110: Obtain the target three-dimensional image data of the target area.

[0021] The target areas mentioned above include the knee joint and multiple reference sites. These reference sites are anatomically fixed to the knee joint, such as the femur, tibia, patella, and fibula. In practice, the patient's knee joint area can be scanned using magnetic resonance imaging (MRI) to obtain raw three-dimensional data. This raw data then undergoes necessary preprocessing, such as normalized resampling with uniform voxel spacing, background area removal cropping, and voxel value normalization mapping, resulting in target three-dimensional image data that can be directly processed by subsequent models.

[0022] Step S120: Input the target 3D image data into the multi-class bone segmentation model to obtain the segmentation results of multiple reference parts output by the multi-class bone segmentation model. The multi-class bone segmentation model is a pre-trained model with the ability to identify multiple reference parts. The aforementioned target 3D image data is input into a pre-trained multi-class bone segmentation model. This model is a semantic segmentation network based on deep learning. During its training phase, it has learned a large number of MR image samples labeled with bone structures such as the femur, tibia, patella, and fibula, thus possessing the ability to automatically identify and segment the aforementioned reference sites from the input image. The model takes 3D image data as input and outputs 3D segmentation masks corresponding to each reference site. Each segmentation mask indicates the voxel position occupied by the corresponding bone structure in 3D space. Thus, the system obtains the spatial location information of each reference site.

[0023] Step S130: Based on the anatomical relationship between multiple reference sites and the knee joint, and according to the segmentation results of multiple reference sites, the identification results of the left and right sides of the knee joint are obtained in the target three-dimensional image data.

[0024] Because the fibula is consistently located on the lateral side of the knee joint in human anatomy, this relative spatial position is unaffected by patient position, pathological changes, or differences in imaging parameters. Therefore, the lateral orientation of the knee joint can be determined by calculating the spatial orientation of the fibula relative to other reference sites (such as the femur, tibia, and patella). For example, a reference plane and its normal vector are first determined based on the spatial positions of the femur, tibia, and patella. Then, the spatial orientation of the fibula relative to this reference plane is calculated. If the fibula is located on one side of the reference plane, it corresponds to the left knee; if it is located on the other side, it corresponds to the right knee. This determination rule is entirely based on the inherent invariance of anatomical structures.

[0025] In the above scheme, target 3D image data of the target area is acquired, including image data of the knee joint and multiple reference areas. The target 3D image data is input into a multi-class bone segmentation model, which outputs segmentation results of multiple reference areas. The multi-class bone segmentation model is a pre-trained model capable of recognizing multiple reference areas. Based on the anatomical relationship between multiple reference areas and the knee joint, and according to the segmentation results of multiple reference areas, the recognition results of the left and right sides of the knee joint are obtained from the target 3D image data. The entire process is automated, thereby solving the technical problem of low recognition efficiency of the left and right knee joints in related technologies.

[0026] It should be noted that this application divides the automatic identification of the left and right knee joints into two separate steps: feature extraction and rule judgment. The former is handled by a multi-class bone segmentation model. As a data-driven deep neural network, this model can automatically learn the generalized feature representation of reference sites from a large number of training samples collected under different imaging conditions. Thus, during the inference stage, regardless of changes in the grayscale distribution, resolution, or scanning orientation of the input image, it can stably segment the three-dimensional position information of each reference site structure. The latter constructs judgment rules based on prior anatomical knowledge, namely, the fibula is anatomically always located on the lateral side of the knee joint. This relative spatial relationship is independent of absolute body position and imaging parameters. The positions of multiple reference sites obtained from segmentation are converted into lateral judgment results through geometric calculation. When the two stages work together, the segmentation model is responsible for extracting invariant anatomical position information from diverse images, and the geometric judgment is responsible for using this information to perform logical reasoning unaffected by imaging conditions. This makes the entire scheme naturally adaptable to variations in body position, pathological changes, and differences in imaging parameters, fundamentally overcoming the inherent defects of preset shallow rules that cannot cover complex imaging scenarios, and significantly improving the robustness and generalization ability of lateral recognition. The technical solution of this application is further described in detail below with reference to specific embodiments: In some optional embodiments of step S110 of this application, obtaining target three-dimensional image data of the target region includes: performing data resampling, centroid calculation, region cropping, and mapping processing on the obtained original three-dimensional image data to obtain target three-dimensional image data; centroid calculation includes: if the voxel value in the resampled region is less than the voxel threshold, it is set to the first voxel value, otherwise it is set to the second voxel value, and then the largest connected component of the resampled region is extracted, and the three-dimensional centroid coordinates of the largest connected component are calculated, and the second voxel value is greater than the first voxel value; region cropping includes: expanding outward based on the three-dimensional centroid coordinates, and the expanded size is greater than the size of the resampled region; mapping processing includes normalizing the voxel values ​​of the image data to the interval [0, 1].

[0027] The target area mentioned above refers to the human body region including the knee joint and multiple surrounding reference sites. These reference sites are skeletal structures that have a fixed spatial relationship with the knee joint anatomically, such as the femur, tibia, patella, and fibula. The three-dimensional image data is sequential data obtained from MR (Magnetic Resonance) scans of the knee joint, in DICOM (Digital Imaging and Communications in Medicine) format. The raw three-dimensional image data obtained from the MR scan contains tomographic image information of the knee joint and surrounding skeletal structures in different directions, providing sufficient three-dimensional spatial information for subsequent bone segmentation and lateral identification.

[0028] In practice, MR scanning can employ standard clinical scanning protocols, with scanning sequences including, but not limited to, T1-weighted imaging, T2-weighted imaging, or proton density-weighted imaging. The scanning field of view covers the knee joint region and surrounding skeletal structures, ensuring that the distal femur, proximal tibia, patella, and proximal fibula are all fully included in the image data. The acquired raw 3D image data is stored in DICOM format, which includes metadata information such as the image's pixel matrix and voxel spacing (the physical dimensions of each voxel in the X, Y, and Z directions in the 3D image).

[0029] By acquiring 3D image data of the knee joint from MR scans, high-quality 3D images containing rich anatomical structural information can be obtained, laying a data foundation for subsequent bone segmentation and lateral identification.

[0030] After acquiring the raw 3D image data, data preprocessing is performed: The acquired raw 3D image data undergoes data resampling, centroid calculation, region cropping, and mapping processing to obtain the target 3D image data. This preprocessing workflow unifies the resolution and spatial scale of data from different sources, highlights the target structural regions, and provides standardized input for subsequent bone segmentation models.

[0031] In the specific implementation process, each preprocessing step is described in detail below: 1) Data resampling: The voxel spacing of the original 3D image data is resampled to a preset uniform size. In this embodiment, the spacing is resampled to 2mm × 2mm × 2mm (in practice, the sampling value can be adjusted as needed) to ensure that the input data obtained by different scanning protocols maintain a consistent spatial resolution. The resampling process can use trilinear interpolation to ensure the continuity and smoothness of the resampled image.

[0032] 2) Centroid Calculation: A voxel threshold Th is set for the resampled data. If the voxel value is less than the threshold Th, it is set to the first voxel value; if the voxel value is greater than or equal to the threshold Th, it is set to the second voxel value, where the second voxel value is greater than the first voxel value. In this embodiment, the voxel threshold Th can be set to 500, the first voxel value to 0, and the second voxel value to 255, effectively binarizing the resampled region. Then, the largest connected component (i.e., the largest connected component with the same and adjacent voxel values ​​in 3D space) of the binarized resampled region is extracted, and the 3D centroid coordinates are calculated for the largest connected component. By extracting the largest connected component, background noise and interference from non-target regions can be effectively removed, ensuring that the centroid calculation results accurately reflect the spatial position of the target skeletal region.

[0033] The maximum connected component is determined as follows: a three-dimensional connected component analysis is performed on voxels with a voxel value of the second voxel value. Based on the preset connectivity relationship, the voxels that are connected to each other are divided into the same connected component, and the number of voxels in each connected component is counted. The connected component with the most voxels is determined as the maximum connected component. The preset connectivity relationship can be any one of six-neighbor connectivity, eighteen-neighbor connectivity, or twenty-six-neighbor connectivity.

[0034] 3) Region Cropping: A pre-defined cropping region is expanded outwards based on the 3D centroid coordinates. In this embodiment, cropping is performed by expanding outwards by 128 × 128 × 128 voxels from the 3D centroid coordinates. If the cropping region overflows the image boundary, zero values ​​are added to the overflow portion (i.e., zero-padding). The cropped size is larger than the resampled region size to ensure the integrity of the target skeletal structure.

[0035] 4) Mapping Process: Normalize the voxel values ​​of the cropped image data to the interval [0, 1]. The specific calculation formula is as follows: , This represents the maximum voxel value of the original image. The smallest voxel value representing the original image. Indicates the current original voxel value. This represents the value after voxel mapping. Normalization eliminates signal intensity differences between different scanning devices and parameters, ensuring a uniform numerical range for the model's input data, which improves model stability and generalization ability.

[0036] The above preprocessing steps can yield standardized target 3D image data. Figure 2The results of preprocessed MR knee joint scan data are shown in three directions: transverse, sagittal, and coronal images. It can be seen that the preprocessed image data is of good quality and the skeletal structure is clearly visible, which can provide a good input basis for subsequent multi-class bone segmentation.

[0037] In some optional embodiments of step S120 of this application, the preprocessed three-dimensional knee joint data is input into a trained multi-class bone segmentation model to obtain segmentation results for multiple reference sites output by the multi-class bone segmentation model. In this embodiment, the multi-class bone segmentation model can simultaneously output four types of segmentation masks (i.e., a label matrix with the same size as the original image, where the label value of each voxel position indicates the category to which the voxel belongs) for the femur, tibia, patella, and fibula. In the output three-dimensional segmentation results, label 0 represents the background voxel, label 1 represents the femur voxel, label 2 represents the tibia voxel, label 3 represents the patella voxel, and label 4 represents the fibula voxel.

[0038] Figure 3 The results of multi-class bone segmentation of the MR knee joint are shown in three directions: transverse, sagittal, and coronal images. It can be seen that the multi-class bone segmentation model can accurately distinguish four bone structures: femur, tibia, patella, and fibula, with clear segmentation boundaries, providing reliable skeletal structural information for subsequent lateral identification.

[0039] In its implementation, the multi-class bone segmentation model employs an asymmetric 3D U-Net network structure, including feature extraction, multiple downsampling, and multiple upsampling. The construction and segmentation process of the multi-class bone segmentation model specifically includes: 1) Feature Extraction: Utilizing the feature extraction structure of a multi-class bone segmentation model, multi-scale feature maps are extracted from the target 3D image data. The feature extraction structure includes convolutional layers, batch normalization layers (a normalization operation on the output of intermediate layers in a neural network, used to accelerate training and improve model stability), and activation function layers. The convolutional layers employ asymmetric convolutional kernels to reduce the model parameter size. Specifically, the convolutional layers use an asymmetric convolution method combining a 3×3×3 convolution, a 1×3×3 convolution, and a 3×1×1 convolution. Through this asymmetric convolution combination, the model parameter size is effectively reduced while maintaining segmentation performance, achieving a lightweight design of the network structure. Through the multi-layer stacking of the feature extraction structure, multi-scale feature representations, ranging from low-level edge features to high-level semantic features, can be extracted layer by layer from the input image.

[0040] 2) Downsampling: Utilizing the downsampling structure of a multi-class bone segmentation model, multiple downsampling operations are performed on multi-scale feature maps to progressively reduce the spatial resolution of the feature maps and extract high-dimensional semantic feature maps. In this embodiment, three downsampling operations are employed. The downsampling process is implemented through convolutional operations with a stride greater than 1. Each downsampling operation halves the spatial size of the feature map while doubling the number of feature channels, thereby enabling the network to capture a wider range of contextual information.

[0041] 3) Upsampling: Utilizing the upsampling structure of the multi-class bone segmentation model, multiple upsampling operations are performed on the high-dimensional semantic feature map to gradually restore its spatial resolution and output a multi-scale fused feature map. In this embodiment, two upsampling operations are employed. The upsampling process is implemented through transposed convolution or trilinear interpolation, doubling the spatial size of the feature map with each upsampling operation. Simultaneously, during the upsampling process, skip connections (which concatenate feature maps from the encoder and decoder stages to preserve high-resolution spatial detail information) are used to fuse the feature map of the corresponding level of the encoder with the current feature map, thereby preserving fine structural information while restoring spatial resolution.

[0042] 4) Multi-class output: Utilizing the multi-class output head of the multi-class bone segmentation model, segmentation results for multiple reference sites are output using multi-scale fused feature maps. Specifically, by sharing a feature extraction layer and setting a multi-class output head, joint segmentation of the femur, tibia, patella, and fibula is achieved, and corresponding label masks are output. The purpose of multi-class bone segmentation is to obtain the centroid information of each skeletal region. Highly precise segmentation boundaries are not required; therefore, a lightweight model can meet the needs, reducing the number of model parameters and shortening inference time.

[0043] By adopting the above technical solution, a lightweight multi-class bone segmentation model with asymmetric convolution can simultaneously output segmentation results for multiple bone structures. This reduces the number of model parameters while improving the consistency and stability of segmentation for different bone structures, providing a reliable data foundation for subsequent lateral recognition.

[0044] In some optional embodiments of step S130 of this application, based on the three-dimensional bone segmentation masking results, a planar lateral judgment method of anatomical structure is used to identify the left and right sides of the knee joint. Specifically, a reference plane and direction for the knee joint are determined by the femur, tibia, and patella, and then the position of the fibula relative to this plane is used to determine whether it is the left or right knee. This method utilizes prior knowledge of the anatomy of the human knee joint: the fibula is located lateral to the tibia, and this anatomical relationship is highly consistent among different individuals, thus it can serve as a reliable basis for determining the left and right sides of the knee joint.

[0045] In practice, the specific process for identifying the left and right sides of the knee joint is as follows: Step S131: Calculate the three-dimensional centroid coordinates of the femur, tibia, patella, and fibula based on the segmentation results, denoted as A=(xA, yA, zA), B=(xB, yB, zB), C=(xC, yC, zC), and D=(xD, yD, zD), respectively. Define the plane formed by points A (femoral centroid), B (tibial centroid), and C (patellar centroid) as the reference plane. This reference plane is determined by the three main skeletal structures of the knee joint and reflects the spatial orientation of the knee joint.

[0046] Step S132: Define the first vector Let the second vector be the vector pointing from the tibial centroid B to the femoral centroid A. Let C be the vector pointing from the centroid of the patella (C) to the centroid of the tibia (B). The normal vector to the reference plane is obtained by calculating the cross product of the vectors. The calculation formula is: Normal vector Perpendicular to the reference plane, its direction follows the right-hand rule. Further calculation of the normal vector is needed. unit vector The calculation formula is: , It represents the magnitude of the vector.

[0047] Step S133: Define the third vector Let C be the vector pointing from the centroid of the patella C to the centroid of the fibula D. Calculate the vector. With unit vector The dot product is calculated using the following formula: .

[0048] Determine the left or right side of the knee joint based on the sign of the dot product result: If Dot is greater than 0, it represents a vector. With unit vector Assuming the same direction, i.e. the fibula is located on the right side of the reference plane, based on the correspondence between the image coordinate system and the corresponding real physical direction of the medical image, the side where the fibula is located is determined to correspond to the left side of the human body, thus identifying it as the left knee joint, i.e. the left side of the knee joint (it should be noted that the planar calculation is performed in the image coordinate system / planar coordinate system after the image is acquired, while the standard coordinate system of the medical image is used to characterize the real physical direction corresponding to the image, i.e. the left and right sides of the human body, so the real physical left and right directions are mirror images of the left and right sides of the image).

[0049] If Dot is less than 0, it indicates a vector. With unit vector In reverse, with the fibula located to the left of the reference plane, the correspondence between the image coordinate system and the actual physical direction corresponding to the medical image is used to determine that the side where the fibula is located corresponds to the right side of the human body, thus identifying it as the right knee joint, i.e., the right side of the knee joint.

[0050] Figure 5 The diagram illustrating the relevant vector calculation process clearly shows that the reference plane, determined by the femur, tibia, and patella, divides the three-dimensional space into two half-spaces. The side of the reference plane where the centroid of the fibula is located determines the left or right side of the knee joint. The calculation of the vector cross product and dot product provides a precise mathematical tool for this determination.

[0051] By adopting the above technical solution, prior knowledge of the anatomy of the knee joint is introduced and transformed into a computable mathematical geometric relationship. Vector operations are used to automatically achieve lateral identification, avoiding the uncertainty brought about by manual rule setting. At the same time, this method has good adaptability to factors such as body position differences and pathological changes, and has high robustness.

[0052] In some optional embodiments of this application, the training process of the multi-class bone segmentation model includes the following steps: Step 1: Construct a segmentation training sample set.

[0053] A training sample set was constructed for training a multi-class bone segmentation model. The training sample set includes multiple sets of MR knee joint 3D images and their corresponding annotations. The annotations are multi-class segmentation masks, obtained manually, used to identify different bone structure regions. Specifically, the labels for each voxel in the segmentation mask are defined as follows: voxel label 0 for the background region, voxel label 1 for the femur region, voxel label 2 for the tibia region, voxel label 3 for the patella region, and voxel label 4 for the fibula region. Precise manual annotation ensures the label quality of the training data, thereby guaranteeing that the trained model has good segmentation performance.

[0054] Step 2: Dataset processing.

[0055] The training sample set is processed, including sample preprocessing and sample set expansion.

[0056] Sample preprocessing includes resampling, centroid calculation, region cropping, and mapping of the original MR knee joint 3D images and their corresponding labels, similar to the inference stage, to unify data resolution and spatial scale and highlight target structural regions. This ensures that the training data distribution is consistent with the inference stage, which is beneficial for improving the model's performance in practical applications.

[0057] Sample set expansion is achieved through one or more of the following methods: translation, symmetry transformation, angular rotation, contrast transformation, and noise addition. This increases sample diversity, thereby improving the generalization ability and robustness of the segmentation model. Specifically, translation includes left-right, up-down, and forward-backward translation to simulate differences in different scan center positions; symmetry transformation increases the spatial transformation diversity of samples; angular rotation simulates different scan angle deviations; contrast transformation simulates signal intensity differences between different scan sequences; and noise addition improves the model's resistance to image noise.

[0058] Step 3: Build the segmentation model.

[0059] An asymmetric three-dimensional U-Net (3D-U-Net) network structure is used as the initial segmentation model, which includes a feature extraction structure, three downsampling steps, and two upsampling steps. Figure 4 This is a schematic diagram of the network structure of a multi-class bone segmentation model.

[0060] The feature extraction structure consists of convolutional layers, batch normalization layers, and activation function operations. The convolutional layers employ an asymmetric convolutional approach, combining a 3×3×3 convolution, a 1×3×3 convolution, and a 3×1×1 convolution. This asymmetric convolutional combination effectively reduces the model parameter size while maintaining feature extraction capabilities, achieving a lightweight network structure design. The segmentation network outputs multi-class results. By sharing the feature extraction layer and setting multi-class output heads, it achieves joint segmentation of the femur, tibia, patella, and fibula, and outputs corresponding label masks.

[0061] The multi-class bone segmentation model is trained using a joint loss function. The expression for the joint loss function is: , , , in, and As a balance factor, This is used to balance the proportions of the two loss functions.

[0062] The Dice loss function measures the degree of overlap between the predicted segmentation result and the actual segmentation result. Its calculation formula is based on the following variables: X represents the actual segmentation result (Ground Truth), and Y represents the predicted segmentation result (Predict).

[0063] The Dice loss function encourages a high degree of spatial overlap between the predicted results and the ground truth labels, and is a widely used loss function in medical image segmentation.

[0064] The Focal loss function (a loss function that makes the model focus more on difficult-to-classify samples by reducing the weight of easily classified samples) is used to solve the class imbalance problem. Its calculation formula is based on the following variables: α and γ For hyperparameters, K Indicates the number of categories. Indicates a label, This represents the class probability output by the network (1 if the class is i, 0 otherwise). This represents the probability that the network outputs a class i. The Focal loss function effectively addresses the issue of significant differences in the number of voxels between different classes in the skeletal structure, preventing the model from favoring segmenting larger bones with more voxels while ignoring smaller bones with fewer voxels.

[0065] Step 4: Train a multi-class bone segmentation model.

[0066] The training sample set is input into the model for forward propagation calculation to obtain segmentation masks for the femur, tibia, patella, and fibula. The loss value is calculated using the aforementioned joint loss function, and the model parameters are updated using the backpropagation algorithm. Training is iterated until the model converges, and the trained model is used as a multi-class bone segmentation model. In this embodiment, the convergence criterion is that the loss value on the validation set no longer decreases significantly, or the preset maximum number of training epochs is reached.

[0067] By adopting the above training scheme, the Dice loss and Focal loss are combined through a joint loss function, which not only ensures the spatial overlap between the segmentation results and the real labels, but also effectively solves the problem of class imbalance. As a result, the multi-class bone segmentation model trained can achieve good segmentation results on various skeletal structures.

[0068] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0069] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0070] According to another aspect of the embodiments of this application, an automatic knee joint recognition device for implementing the above-described automatic knee joint recognition method is also provided. Figure 6 This is a schematic diagram of an optional automatic knee joint recognition device according to an embodiment of this application, as shown below. Figure 6 As shown, the device may include: The acquisition unit 61 is used to acquire target three-dimensional image data of the target part, wherein the target three-dimensional image data includes image data of the knee joint and multiple reference parts; The segmentation unit 62 is used to input the target three-dimensional image data into a multi-class bone segmentation model to obtain the segmentation results of the multiple reference parts output by the multi-class bone segmentation model, wherein the multi-class bone segmentation model is a pre-trained model with the ability to identify the multiple reference parts; The identification unit 63 is used to obtain the identification results of the left and right sides of the knee joint in the target three-dimensional image data based on the anatomical relationship between the multiple reference parts and the knee joint, and according to the segmentation results of the multiple reference parts.

[0071] Because the fibula is consistently located on the lateral side of the knee joint in human anatomy, this relative spatial position is unaffected by patient position, pathological changes, or differences in imaging parameters. Therefore, the lateral orientation of the knee joint can be determined by calculating the spatial orientation of the fibula relative to other reference sites (such as the femur, tibia, and patella). For example, a reference plane and its normal vector are first determined based on the spatial positions of the femur, tibia, and patella. Then, the spatial orientation of the fibula relative to this reference plane is calculated. If the fibula is located on one side of the reference plane, it corresponds to the left knee; if it is located on the other side, it corresponds to the right knee. This determination rule is entirely based on the inherent invariance of anatomical structures.

[0072] In the above scheme, target 3D image data of the target area is acquired, including image data of the knee joint and multiple reference areas. The target 3D image data is input into a multi-class bone segmentation model, which outputs segmentation results of multiple reference areas. The multi-class bone segmentation model is a pre-trained model capable of recognizing multiple reference areas. Based on the anatomical relationship between multiple reference areas and the knee joint, and according to the segmentation results of multiple reference areas, the recognition results of the left and right sides of the knee joint are obtained from the target 3D image data. The entire process is automated, thereby solving the technical problem of low recognition efficiency of the left and right knee joints in related technologies.

[0073] It should be noted that this application divides the automatic identification of the left and right knee joints into two separate steps: feature extraction and rule judgment. The former is handled by a multi-class bone segmentation model. As a data-driven deep neural network, this model can automatically learn the generalized feature representation of reference sites from a large number of training samples collected under different imaging conditions. Thus, during the inference stage, regardless of changes in the grayscale distribution, resolution, or scanning orientation of the input image, it can stably segment the three-dimensional position information of each reference site structure. The latter constructs judgment rules based on prior anatomical knowledge, namely, the fibula is anatomically always located on the lateral side of the knee joint. This relative spatial relationship is independent of absolute body position and imaging parameters. The positions of multiple reference sites obtained from segmentation are converted into lateral judgment results through geometric calculation. When the two stages work together, the segmentation model is responsible for extracting invariant anatomical position information from diverse images, and the geometric judgment is responsible for using this information to perform logical reasoning unaffected by imaging conditions. This makes the entire scheme naturally adaptable to variations in body position, pathological changes, and differences in imaging parameters, fundamentally overcoming the inherent defects of preset shallow rules that cannot cover complex imaging scenarios, and significantly improving the robustness and generalization ability of lateral recognition.

[0074] Optionally, the identification unit is further configured to: determine the positions of the plurality of reference parts in three-dimensional space according to the segmentation results of the plurality of reference parts; determine a reference plane and the normal vector of the reference plane according to the positions of the plurality of reference parts in three-dimensional space; and identify the left and right sides of the knee joint according to the spatial orientation of the target reference part among the plurality of reference parts relative to the reference plane.

[0075] Optionally, the plurality of reference sites include the femur, tibia, patella, and fibula. The positions of the plurality of reference sites in three-dimensional space include the coordinates of the femoral centroid, tibial centroid, patellar centroid, and fibula centroid. The identification unit is further configured to: use the plane formed by the coordinates of the femoral centroid, tibial centroid, and patellar centroid as a reference plane; determine the normal vector of the reference plane based on a first vector and a second vector, wherein the first vector points from the tibial centroid to the femoral centroid, and the second vector points from the patellar centroid to the tibial centroid; determine the dot product of a third vector and the normal vector, wherein the third vector points from the patellar centroid to the fibula centroid; and identify the left or right side of the knee joint based on the sign of the dot product.

[0076] Optionally, the acquisition unit is used to: perform data resampling, centroid calculation, region cropping, and mapping processing on the acquired original three-dimensional image data to obtain the target three-dimensional image data; the centroid calculation includes: if the voxel value in the resampled region is less than a voxel threshold, it is set to a first voxel value, otherwise it is set to a second voxel value, then the largest connected component of the resampled region is extracted, and the three-dimensional centroid coordinates of the largest connected component are calculated, wherein the second voxel value is greater than the first voxel value; the region cropping includes: expanding outward based on the three-dimensional centroid coordinates, wherein the expanded size is greater than the size of the resampled region; the mapping processing includes normalizing the voxel values ​​of the image data to the interval [0, 1].

[0077] Optionally, the segmentation unit is further configured to: extract multi-scale feature maps from the target 3D image data using the feature extraction structure of the multi-class bone segmentation model, wherein the feature extraction structure includes a convolutional layer, a normalization layer, and an activation function layer, and the convolutional layer uses an asymmetric convolutional kernel to reduce the model parameter scale; perform multiple downsampling operations on the multi-scale feature maps using the downsampling structure of the multi-class bone segmentation model to extract high-dimensional semantic feature maps; perform multiple upsampling operations on the high-dimensional semantic feature maps using the upsampling structure of the multi-class bone segmentation model to output a multi-scale fused feature map; and output the segmentation results of the multiple reference parts using the multi-class output head of the multi-class bone segmentation model and the multi-scale fused feature map.

[0078] Optionally, the apparatus of this application may further include: a training unit, configured to: construct a segmentation training sample set, the training sample set including multiple sets of MR knee joint three-dimensional images and their corresponding annotation labels, the annotation labels being multi-class segmentation masks used to identify different bone structure regions; perform dataset processing on the training sample set, the dataset processing including sample preprocessing and sample set expansion, the sample preprocessing including resampling, centroid calculation, region cropping, and mapping processing on the original MR knee joint three-dimensional images and their corresponding annotation labels, the sample set expansion being achieved by performing one or more of the following methods on the samples: translation, symmetry transformation, angle rotation, contrast transformation, and superimposed noise; train an initial segmentation model using the dataset-processed training sample set until the model converges, and use the trained model as the multi-class bone segmentation model.

[0079] The training unit described above is also used for training with the following joint loss function: , , , Among them, among them, and As a balance factor, , X This represents the actual segmentation result. Y Indicates the predicted segmentation result. α and γ For hyperparameters, K Indicates the number of categories. Indicates a label, This represents the class probability output by the network.

[0080] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the above embodiments. It should also be noted that the above modules, as part of the device, can run in a corresponding hardware environment, and can be implemented through software or hardware, wherein the hardware environment includes a network environment.

[0081] According to another aspect of the embodiments of this application, a server or terminal for implementing the above-described automatic knee joint recognition method is also provided.

[0082] Figure 7 This is a structural block diagram of a terminal according to an embodiment of this application, such as... Figure 7 As shown, the terminal may include: one or more (only one is shown in the figure) processors 701, memory 703, and transmission devices 705, such as... Figure 7 As shown, the terminal may also include input / output devices 707.

[0083] The memory 703 can be used to store software programs and modules, such as the program instructions / modules corresponding to the automatic knee joint recognition method and device in this embodiment. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 703, thereby realizing the aforementioned automatic knee joint recognition method. The memory 703 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 703 may further include memory remotely located relative to the processor 701, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0084] The aforementioned transmission device 705 is used to receive or send data via a network, and can also be used for data transfer between the processor and memory. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 705 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 705 is a radio frequency (RF) module used for wireless communication with the Internet.

[0085] Specifically, memory 703 is used to store application programs.

[0086] The processor 701 can invoke the application program stored in the memory 703 via the transmission device 705 to perform the following steps: Acquire target three-dimensional image data of the target area, wherein the target three-dimensional image data includes image data of the knee joint and multiple reference areas; The target 3D image data is input into a multi-class bone segmentation model to obtain the segmentation results of the multiple reference parts output by the multi-class bone segmentation model. The multi-class bone segmentation model is a pre-trained model with the ability to identify the multiple reference parts. Based on the anatomical relationship between the multiple reference sites and the knee joint, and according to the segmentation results of the multiple reference sites, the identification results of the left and right sides of the knee joint are obtained in the target three-dimensional image data.

[0087] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.

[0088] Those skilled in the art will understand that Figure 7 The structure shown is for illustrative purposes only. The terminal can be a smartphone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile internet device (MID), a PAD, or other terminal devices. Figure 7 This does not limit the structure of the aforementioned electronic device. For example, the terminal may also include components that are more... Figure 7 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 7 The different configurations shown.

[0089] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0090] Embodiments of this application also provide a storage medium. Optionally, in this embodiment, the storage medium can be used to execute program code for an automatic knee joint recognition method.

[0091] Optionally, in this embodiment, the storage medium may be located on at least one of the multiple network devices in the network shown in the above embodiment.

[0092] Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: Acquire target three-dimensional image data of the target area, wherein the target three-dimensional image data includes image data of the knee joint and multiple reference areas; The target 3D image data is input into a multi-class bone segmentation model to obtain the segmentation results of the multiple reference parts output by the multi-class bone segmentation model. The multi-class bone segmentation model is a pre-trained model with the ability to identify the multiple reference parts. Based on the anatomical relationship between the multiple reference sites and the knee joint, and according to the segmentation results of the multiple reference sites, the identification results of the left and right sides of the knee joint are obtained in the target three-dimensional image data.

[0093] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.

[0094] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0095] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0096] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0097] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0098] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.

[0099] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0100] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0101] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. An automatic knee joint recognition method, characterized in that, include: Acquire target three-dimensional image data of the target area, wherein the target three-dimensional image data includes image data of the knee joint and multiple reference areas; The target 3D image data is input into a multi-class bone segmentation model to obtain the segmentation results of the multiple reference parts output by the multi-class bone segmentation model. The multi-class bone segmentation model is a pre-trained model with the ability to identify the multiple reference parts. Based on the anatomical relationship between the multiple reference sites and the knee joint, and according to the segmentation results of the multiple reference sites, the identification results of the left and right sides of the knee joint are obtained in the target three-dimensional image data.

2. The method according to claim 1, characterized in that, Based on the anatomical relationship between the multiple reference sites and the knee joint, and according to the segmentation results of the multiple reference sites, the identification results of the left and right sides of the knee joint are obtained in the target three-dimensional image data, including: Based on the segmentation results of the multiple reference parts, the positions of the multiple reference parts in three-dimensional space are determined respectively; The reference plane and the normal vector of the reference plane are determined based on the positions of the plurality of reference parts in the three-dimensional space; The left and right sides of the knee joint are identified based on the spatial orientation of the target reference part relative to the reference plane among the plurality of reference parts.

3. The method according to claim 2, characterized in that, The multiple reference sites include the femur, tibia, patella, and fibula. The positions of these reference sites in three-dimensional space include the coordinates of the femoral centroid, tibial centroid, patellar centroid, and fibula centroid. Determining a reference plane and its normal vector based on the positions of the multiple reference sites in the three-dimensional space includes: using the plane formed by the coordinates of the femoral centroid, the tibial centroid, and the patellar centroid as the reference plane; and determining the normal vector of the reference plane based on a first vector and a second vector, wherein the first vector points from the tibial centroid coordinates to the femoral centroid coordinates, and the second vector points from the patellar centroid coordinates to the tibial centroid coordinates. Identifying the left and right sides of the knee joint based on the spatial orientation of the target reference part relative to the reference plane among the plurality of reference parts includes: determining the dot product of a third vector and the normal vector, wherein the third vector points from the centroid coordinates of the patella to the centroid coordinates of the fibula; and identifying the left and right sides of the knee joint based on the sign of the dot product result.

4. The method according to claim 1, characterized in that, Acquire the target's three-dimensional image data, including: The acquired raw 3D image data is subjected to data resampling, centroid calculation, region cropping, and mapping processing to obtain the target 3D image data; The centroid calculation includes: if the voxel value in the resampled region is less than a voxel threshold, it is set to a first voxel value; otherwise, it is set to a second voxel value. Then, the largest connected component of the resampled region is extracted, and the three-dimensional centroid coordinates of the largest connected component are calculated. The second voxel value is greater than the first voxel value. The region clipping includes: expanding outward based on the three-dimensional centroid coordinates. The expanded size is greater than the size of the resampled region. The mapping process includes normalizing the voxel values ​​of the image data to the interval [0, 1].

5. The method according to any one of claims 1 to 4, characterized in that, The target 3D image data is input into a multi-class bone segmentation model to obtain the segmentation results of the multiple reference sites output by the multi-class bone segmentation model, including: Using the feature extraction structure of the multi-class bone segmentation model, multi-scale feature maps are extracted from the target 3D image data. The feature extraction structure includes a convolutional layer, a normalization layer, and an activation function layer. The convolutional layer uses an asymmetric convolutional kernel. Using the downsampling structure of the multi-class bone segmentation model, the multi-scale feature map is downsampled multiple times to extract a high-dimensional semantic feature map; The high-dimensional semantic feature map is upsampled multiple times using the upsampling structure of the multi-class bone segmentation model to output a multi-scale fusion feature map. Using the multi-class output head of the multi-class bone segmentation model, the segmentation results of the multiple reference sites are output using the multi-scale fusion feature map.

6. The method according to claim 5, characterized in that, Before inputting the target 3D image data into a multi-class bone segmentation model to obtain the segmentation results of the multiple reference sites output by the multi-class bone segmentation model, the method further includes: Construct a segmentation training sample set, which includes multiple sets of MR knee joint 3D images and their corresponding annotation labels. The annotation labels are multi-class segmentation masks used to identify different bone structure regions. The training sample set is subjected to dataset processing, which includes sample preprocessing and sample set expansion. The sample preprocessing includes resampling, centroid calculation, region cropping, and mapping of the original MR knee joint 3D image and its corresponding labels. The sample set expansion is achieved by one or more of the following methods: translation, symmetry transformation, angle rotation, contrast transformation, and noise superposition. The initial segmentation model is trained using the training sample set after dataset processing until the model converges, and the trained model is used as the multi-class bone segmentation model.

7. The method according to claim 6, characterized in that, The multi-class bone segmentation model is trained using the following joint loss function: , , , Among them, among them, and As a balance factor, , X This represents the actual segmentation result. Y Indicates the predicted segmentation result. α and γ For hyperparameters, K Indicates the number of categories. Indicates a label, This represents the class probability output by the network.

8. An automatic knee joint recognition device, characterized in that, include: An acquisition unit is used to acquire target three-dimensional image data of a target location, wherein the target three-dimensional image data includes image data of the knee joint and multiple reference locations; A segmentation unit is used to input the target three-dimensional image data into a multi-class bone segmentation model to obtain the segmentation results of the multiple reference parts output by the multi-class bone segmentation model, wherein the multi-class bone segmentation model is a pre-trained model with the ability to identify the multiple reference parts; The identification unit is used to obtain the identification results of the left and right sides of the knee joint in the target three-dimensional image data based on the anatomical relationship between the multiple reference sites and the knee joint, and according to the segmentation results of the multiple reference sites.

9. A computer-readable storage medium, characterized in that, The storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when it is run.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the method described in any one of claims 1 to 7 through the computer program.