Linear contact type adaptive center alignment method and system based on YOLOv11

By employing a linear contact-based adaptive center alignment method based on YOLOv11, combined with an improved target detection model and device, the accuracy and automation issues in locating the midline of the human skeleton in existing technologies have been resolved, achieving precise matching and efficient detection of the patient's humeral axis.

CN123160645APending Publication Date: 2026-11-24FOSHAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies for locating the geometric midline of the human skeleton suffer from problems such as reliance on the operator's experience, low accuracy, poor repeatability, and lack of automation, making it particularly difficult to achieve precise matching in rehabilitation medicine and surgical navigation.

Method used

A linear contact adaptive center alignment method based on YOLOv11 is adopted. The velocity and acceleration curves of the clamping point are obtained through the linear contact adaptive center alignment device. Combined with the improved YOLOv11 target detection model, the three-dimensional coordinates of the center point of the patient's limb cross section are identified and located, and the device is driven to achieve precise registration.

Benefits of technology

It achieves precise matching of the patient's humeral axis, improves the robustness and accuracy of the detection, adapts to the size differences of different individuals and limb parts, reduces the amount of computation and improves the detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160645A_ABST
    Figure CN123160645A_ABST
Patent Text Reader

Abstract

This invention discloses a linear contact adaptive center alignment method and system based on YOLOv11. The method includes: clamping and wrapping a patient's limb using a linear contact adaptive center alignment device, obtaining velocity and acceleration curves at the clamping points; introducing an hourglass stem cell module, a reparameterized hourglass block, an aggregation and distribution mechanism, and an attention-scale sequence fusion module to construct an improved YOLOv11 target detection model; locating the cross-sections of the patient's limb to obtain the three-dimensional coordinates of the center points of several cross-sections; and, after data preprocessing, combining the velocity and acceleration curves of the clamping points to drive the linear contact adaptive center alignment device to achieve center registration of the patient's limb. This invention adjusts the joint axis after registration via midline adjustment to achieve precise matching with the patient's humeral axis. As a linear contact adaptive center alignment method and system based on YOLOv11, this invention can be widely applied in the field of structural center localization technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of structural center positioning technology, and in particular to a linear contact type adaptive center alignment method and system based on YOLOv11. Background Technology

[0002] In fields such as rehabilitation medicine, sports science, and surgical navigation, precise and non-invasive positioning of the geometric midline (i.e., the three-dimensional spatial axis) of the human internal skeleton (such as the humerus in the upper arm) is crucial for achieving accurate rehabilitation treatment, surgical alignment, and motion analysis. For example, in upper limb rehabilitation robots, the joint axis of the exoskeleton robot needs to be precisely aligned with the axis of the patient's humerus to avoid secondary injury and motion compensation during rehabilitation training.

[0003] Currently, methods for locating the skeletal midline in clinical practice or research mainly include manual measurement based on surface anatomical landmarks. This involves doctors or therapists manually measuring and marking bony landmarks such as the acromion and olecranon. This method heavily relies on the operator's experience, is highly subjective, has low accuracy and poor repeatability, and cannot be automated, making it difficult to meet the needs of modern precision medicine. Another method is direct imaging with medical imaging equipment, such as using CT (computed tomography) or MRI (magnetic resonance imaging) to reconstruct skeletal models three-dimensionally, which can accurately obtain the skeletal midline. However, CT emits ionizing radiation, and MRI is expensive and time-consuming, making both impractical for convenient and frequent use in everyday settings such as bedside, clinics, or homes. While ultrasound imaging is radiation-free, it requires professional operators to manually scan and interpret images, resulting in low automation and difficulty in directly and quickly generating the skeletal midline. A third method is the geometric assumption based on the external contour. Some rehabilitation devices or studies simply assume the human limb is a regular cylinder and approximate the geometric central axis of its external contour as the midline of the internal skeleton. However, due to the irregular shape of human limbs, uneven distribution of soft tissue thickness, and the fact that the position of bones does not always coincide with the center of the external contour, this method introduces a large systematic error, especially in the case of muscular upper arms or soft tissue swelling, where the error is more significant. Summary of the Invention

[0004] To address the aforementioned technical problems, the present invention aims to provide a linear contact adaptive center alignment method and system based on YOLOv11, which adjusts the joint axis after registration to achieve precise matching with the patient's humeral axis.

[0005] The first technical solution adopted in this invention is: a linear contact-type adaptive center alignment method based on YOLOv11, comprising the following steps: The patient's limbs are clamped and wrapped using a linear contact adaptive center alignment device, and the velocity and acceleration curves of the clamping point are obtained. An improved YOLOv11 target detection model was constructed by introducing an hourglass stem cell module, a reparameterized hourglass block, an aggregation and distribution mechanism, and an attention-scale sequence fusion module. Based on the improved YOLOv11 target detection model, the cross-sections of the patient's limbs were located, and the three-dimensional coordinates of the center points of several cross-sections were obtained. After preprocessing the three-dimensional coordinates of the center points of several cross sections, the velocity and acceleration curves of the clamping points are combined to drive the linear contact type adaptive center alignment device to achieve center registration of the patient's limb.

[0006] Furthermore, the step of clamping and wrapping the patient's limb using a linear contact adaptive center alignment device and obtaining the velocity and acceleration curves of the clamping point specifically includes: A linear contact adaptive center alignment device is constructed, wherein the linear contact adaptive center alignment device is mirror-mounted through a four-part link-slider structure, the part of which contains five links connected by flexible hinges; By using a linear contact adaptive center alignment device to clamp the patient's limbs, the linear motion process of the clamping point is obtained, and a kinematic model of the clamping point is constructed. The kinematic model of the clamping point is constructed by plotting the motion curve of the clamping point in Excel and establishing the displacement equation of the clamping point. The velocity equation of the clamping point is obtained by differential calculation of the displacement equation of the clamping point, and the velocity of the clamping point is obtained by numerical calculation. The velocity equation at the clamping point is differentiated to obtain the acceleration equation at the clamping point, and the acceleration at the clamping point is calculated numerically to obtain the acceleration curve at the clamping point.

[0007] Furthermore, the improved YOLOv11 target detection model specifically includes a backbone network, a neck network, and a detection head, wherein the backbone network, the neck network, and the detection head are connected sequentially, wherein: The backbone network includes an hourglass stem cell module, several reparameterized hourglass blocks, several depth-separable convolutional blocks, a spatial pyramid pooling module, and a C2PSA channel attention module. The neck network includes a clustering and distribution mechanism, a local affine framework, a C3 module, and an attention scale sequence fusion module. The clustering and distribution mechanism includes a feature alignment module, a feature information fusion module, and a feature information distribution module. The detection head incorporates the SEAM attention mechanism.

[0008] Furthermore, the step of locating the cross-sections of the patient's limbs based on the improved YOLOv11 target detection model and obtaining the three-dimensional coordinates of the center points of several cross-sections specifically includes: The cross-section of the patient's limb is input into the improved YOLOv11 target detection model; Based on the backbone network of the improved YOLOv11 target detection model, multi-level feature extraction processing is performed on the cross-section of the patient's limb to obtain multi-scale features of the patient's limb cross-section. Based on the improved YOLOv11 target detection model, the neck network performs feature fusion on the multi-scale features of the patient's limb cross section to obtain the fused patient limb cross section features. The detection head based on the improved YOLOv11 target detection model performs target recognition on the fused patient limb cross-sectional features to obtain the center point of the patient limb cross-section; Spatial pose calculations were performed on the center point of the patient's limb cross section to obtain the three-dimensional coordinates of the center point of several cross sections.

[0009] Furthermore, the step of extracting multi-level features from the patient's limb cross-section using the backbone network of the improved YOLOv11 target detection model to obtain multi-scale features of the patient's limb cross-section specifically includes: The cross-section of the patient's limb is input into the backbone network of the improved YOLOv11 target detection model; The hourglass stem cell module based on the backbone network downsamples the cross-section of the patient's limb and extracts preliminary features to obtain preliminary features of the patient's limb cross-section. Based on the reparameterized hourglass block of the backbone network, structural reparameterization inference is performed on the preliminary features of the patient's limb cross section to obtain the enhanced features of the patient's limb cross section. Based on the depthwise separable convolutional blocks of the backbone network, the enhanced patient limb cross-sectional features are deconvolved to obtain the convolved patient limb cross-sectional features. Based on the spatial pyramid pooling module of the backbone network, multi-scale feature fusion is performed on the convolutional patient limb cross-sectional features to obtain preliminary multi-scale features of the patient limb cross-section. The C2PSA channel attention module based on the backbone network performs global average pooling and dynamically adjusts the channel weights in the fully connected layer on the initial multi-scale features of the patient's limb cross section to obtain the multi-scale features of the patient's limb cross section.

[0010] Furthermore, the step of fusing multi-scale features of the patient's limb cross-section using the neck network based on the improved YOLOv11 target detection model to obtain the fused patient limb cross-section features specifically includes: Multi-scale features of the patient's limb cross-section are input into the neck network of the improved YOLOv11 target detection model; Based on the feature alignment module of the neck network, the multi-scale features of the patient's limb cross section are aligned to obtain the aligned multi-scale features of the patient's limb cross section. Based on the feature information fusion module of the neck network, the multi-scale features of the aligned patient limb cross section are fused to obtain the global features of the patient limb cross section; A local affine framework and feature information distribution module based on the neck network are used to slice and distribute the global features of the patient's limb cross section to the attention-scale sequence fusion module. The C3 module based on the neck network and the attention scale sequence fusion module perform three-dimensional convolutional fusion on the global features of the sliced ​​patient limb cross sections to obtain the fused patient limb cross section features.

[0011] Furthermore, the step of preprocessing the three-dimensional coordinates of the center points of several cross sections and combining them with the velocity and acceleration curves of the clamping points to drive the linear contact adaptive center alignment device to achieve the center registration of the patient's limbs specifically includes: The initial centerline is obtained by fitting the three-dimensional coordinates of the center points of several cross sections with a straight line using the least squares method. The coordinate points on the initial centerline are judged. If there are coordinate points with residuals greater than a preset value, they are removed. The remaining coordinate points after removal are then fitted twice to obtain the final centerline. By combining the velocity and acceleration curves of the clamping point with the final midline, a linear contact adaptive center alignment device is driven to achieve center registration of the patient's limb.

[0012] The second technical solution adopted in this invention is: a linear contact adaptive center alignment system based on YOLOv11, comprising: The first module is used to clamp and wrap the patient's limbs using a linear contact type adaptive center alignment device, and to obtain the velocity curve and acceleration curve of the clamping point. The second module is used to introduce the hourglass stem cell module, reparameterized hourglass block, aggregation and distribution mechanism and attention scale sequence fusion module to build an improved YOLOv11 target detection model. The third module is used to locate the cross-sections of the patient's limbs based on the improved YOLOv11 target detection model, and obtain the three-dimensional coordinates of the center points of several cross-sections. The fourth module is used to preprocess the three-dimensional coordinates of the center points of several cross sections and combine them with the velocity and acceleration curves of the clamping points to drive the linear contact type adaptive center alignment device to achieve center registration of the patient's limb.

[0013] The beneficial effects of the method and system of this invention are as follows: First, this invention uses a linear contact adaptive center alignment device to clamp and wrap the patient's limb, obtaining the velocity and acceleration curves of the clamping points. The linear contact adaptive center alignment device achieves four-point clamping of the target under a single driving force, avoiding the need for clamping devices of various sizes. Furthermore, it introduces an hourglass stem cell module, a reparameterized hourglass block, an aggregation and distribution mechanism, and an attention-scale sequence fusion module to construct an improved YOLOv11 target detection model. The backbone network effectively improves the representation ability of target features, capturing richer detailed and semantic information while maintaining high computational efficiency. The neck network can more fully utilize different... The improved YOLOv11 target detection model enhances the model's adaptability to scale changes and complex backgrounds, thereby significantly improving the robustness and accuracy of detection. Furthermore, based on the improved YOLOv11 target detection model, the cross-sections of the patient's limb are located, obtaining the three-dimensional coordinates of the center points of several cross-sections. The improved target detection algorithm can more accurately and efficiently identify and locate targets, significantly improving detection accuracy while maintaining low computational load. Finally, after data preprocessing of the three-dimensional coordinates of the center points of several cross-sections, the velocity and acceleration curves of the clamping points are combined to drive a linear contact adaptive center alignment device to achieve center registration of the patient's limb. The joint axis is adjusted through the registered midline to achieve precise matching with the patient's humeral axis. Attached Figure Description

[0014] Figure 1 This is a flowchart of the steps of the linear contact adaptive center alignment method based on YOLOv11 of the present invention; Figure 2 This is a structural block diagram of the linear contact adaptive center alignment system based on YOLOv11 of this invention; Figure 3 This is a simplified schematic diagram of the motion of the center alignment device provided in a specific embodiment of the present invention; Figure 4 This is a simplified kinematic diagram of the improved local linkage slider mechanism provided in a specific embodiment of the present invention; Figure 5 This is a schematic diagram of the displacement curves and displacement errors of clamping points A and C provided in a specific embodiment of the present invention; Figure 6 This is a schematic diagram of the velocity curves and velocity errors of clamping points A and C provided in a specific embodiment of the present invention; Figure 7 This is a schematic diagram of the acceleration curves and acceleration errors of clamping points A and C provided in a specific embodiment of the present invention; Figure 8 This is a schematic diagram of the clamping motion trajectory provided in a specific embodiment of the present invention; Figure 9This is a schematic diagram of the operation of the device system provided in a specific embodiment of the present invention; Figure 10 This is a schematic diagram of the centering device clamping the arm provided in a specific embodiment of the present invention; Figure 11 This is a schematic diagram of the hourglass stem cell module provided in a specific embodiment of the present invention; Figure 12 This is a schematic diagram of a reparameterized hourglass block provided in a specific embodiment of the present invention; Figure 13 This is a schematic diagram of the neck network provided in a specific embodiment of the present invention; Figure 14 This is a schematic diagram of the SEAM attention mechanism network structure of the side effect aggregation module provided in a specific embodiment of the present invention; Figure 15 This is a schematic diagram of the improved target detection algorithm structure provided in a specific embodiment of the present invention; Figure 16 This is a schematic diagram of the positioning method from a top-down perspective provided in a specific embodiment of the present invention. Detailed Implementation

[0015] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only for ease of explanation and do not limit the order of the steps. The execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.

[0016] Reference Figure 1 This invention provides a linear contact-type adaptive center alignment method based on YOLOv11, which includes the following steps: S100: The patient's limb is clamped and wrapped by a linear contact type adaptive center alignment device, and the velocity curve and acceleration curve of the clamping point are obtained. Specifically, a linear contact adaptive center alignment device is constructed. This device is mirror-mounted using four local link-slider structures, each containing five links connected by flexible hinges. The device is used to clamp the patient's limb, and the linear motion of the clamping point is captured, constructing a kinematic model of the clamping point. The kinematic model is then used to plot the motion curves of the clamping point using Excel, constructing a displacement equation for the clamping point. The displacement equation is differentiated to obtain the velocity equation of the clamping point, and the velocity is calculated numerically to obtain a velocity curve. Finally, the velocity equation is differentiated to obtain the acceleration equation of the clamping point, and the acceleration is calculated numerically to obtain an acceleration curve.

[0017] In this embodiment, the linear contact adaptive centering device comprises multiple adaptive centering devices. These devices are arranged sequentially in space along the longitudinal axis of the upper arm, each wrapping around the limb. Each device is an independently controlled unit, comprising its own flexible linkage slider mechanism, force-sensing pad, and medical-grade silicone sleeve, ensuring gentle, adaptive wrapping and centering at different cross-sections. A unified support and drive frame is responsible for fixing and adjusting the overall position of these devices to accommodate patients with different arm lengths.

[0018] This device enables four-point clamping of a target under a single driving force, facilitating the positioning of shaft segments within a defined area. The center alignment mechanism comprises four locally linked slider structures, mirror-mounted. Each locally linked slider structure contains five links connected by flexible hinges. The center alignment mechanism can clamp / align shaft segments of various sizes within a certain range. When the center alignment mechanism is subjected to external forces on its upper and lower surfaces, the locally linked slider structures at both ends deform under the influence of these forces, causing the four clamping points to move linearly within a certain range. A kinematic model is established using mathematical modeling, yielding the displacement equations of the model, and the motion curves of the clamping points are plotted using Excel.

[0019] By differentiating the displacement equation, the velocity equation of the clamping point is obtained, and the velocity of the clamping point is calculated using a numerical method, and the velocity curve is plotted. Similarly, by differentiating the velocity equation, the acceleration equation of the clamping point is obtained, and the acceleration of the clamping point is calculated using a numerical method, and the acceleration curve is plotted.

[0020] In summary, this embodiment employs a linear contact type adaptive center alignment device, which can achieve four-point clamping of the target under a single prime mover, avoiding the need for clamping devices of various sizes. This device has a simple structure, low manufacturing cost, and can adapt to center alignment requirements of different diameters within a certain range, greatly improving assembly flexibility.

[0021] The midline of the upper arm bone is measured simultaneously using multiple of these mechanical mechanisms (e.g., Figure 8 as well as Figure 9 As shown), multiple centering devices wrap around the upper arm from top to bottom. Under the action of external force, the mechanism contracts (as shown). Figure 10 As shown in (a)), initially the centering device has no contact with the arm. As the device contracts, it contacts the upper arm until it clamps the upper arm (as shown in (a)). Figure 10 As shown in (b) in the figure), the midpoint of the cross section is then found through visual positioning. Similarly, multiple linear contact type adaptive center alignment devices can find the midpoint of multiple cross sections, thus forming the data basis for skeletal midline fitting.

[0022] S200, introducing hourglass stem cell module, reparameterized hourglass block, aggregation and distribution mechanism and attention scale sequence fusion module, to construct an improved YOLOv11 target detection model; Specifically, such as Figure 15 As shown, the improved YOLOv11 object detection model specifically includes a backbone network, a neck network, and a detection head. The backbone network, the neck network, and the detection head are connected sequentially. The backbone network includes an hourglass stem cell module, several reparameterized hourglass blocks, several depthwise separable convolutional blocks, a spatial pyramid pooling module, and a C2PSA channel attention module. The neck network includes an aggregation and distribution mechanism, a local affine framework, a C3 module, and an attention-scale sequence fusion module. The aggregation and distribution mechanism includes a feature alignment module, a feature information fusion module, and a feature information distribution module. The detection head introduces the SEAM attention mechanism.

[0023] S300. Based on the improved YOLOv11 target detection model, the cross-sections of the patient's limbs are located to obtain the three-dimensional coordinates of the center points of several cross-sections. S310. Input the cross-section of the patient's limb into the improved YOLOv11 target detection model; S320. Based on the improved YOLOv11 target detection model backbone network, multi-level feature extraction processing is performed on the cross-section of the patient's limb to obtain multi-scale features of the patient's limb cross-section. Specifically, the cross-section of the patient's limb is input into the backbone network of the improved YOLOv11 object detection model; the hourglass stem cell module based on the backbone network downsamples the cross-section of the patient's limb and extracts preliminary features to obtain preliminary features of the patient's limb cross-section; the reparameterized hourglass block based on the backbone network performs structural reparameterization inference on the preliminary features of the patient's limb cross-section to obtain enhanced features of the patient's limb cross-section; the depthwise separable convolution block based on the backbone network deconvolutions the enhanced features of the patient's limb cross-section to obtain convolutional features of the patient's limb cross-section; the spatial pyramid pooling module based on the backbone network performs multi-scale feature fusion on the convolutional features of the patient's limb cross-section to obtain preliminary multi-scale features of the patient's limb cross-section; the C2PSA channel attention module based on the backbone network performs global average pooling and dynamically adjusts channel weights in fully connected layers on the preliminary multi-scale features of the patient's limb cross-section to obtain the multi-scale features of the patient's limb cross-section.

[0024] In this embodiment, in the YOLOv11 architecture, the backbone network is responsible for extracting multi-level features from the input image, providing basic information for subsequent detection tasks. This embodiment uses Rep_HGNetV2 as the YOLOv11 backbone network. This network is mainly composed of stacked hourglass stem cell modules (HGStem) and reparameterized hourglass block modules (Rep-HGBlock), as follows... Figure 11 as well as Figure 12 As shown.

[0025] The HGStem module, serving as the initial feature extraction module, employs an efficient convolutional branch structure to rapidly downsample and initially extract features at the input. The Rep-HGBlock module is the core building block, utilizing reparameterization and a multi-branch design to enhance feature learning during training and merging into a single branch during inference to improve speed. Connections: The input image sequentially passes through the HGStem module and multiple cascaded Rep-HGBlock modules. Downsampling operations between layers progressively reduce the feature map size and increase the number of channels, ultimately outputting a multi-scale feature map containing low-level detail information (such as edges and textures) and high-level semantic information (such as target contours). Rep_HGNetV2, as the backbone, effectively improves the representation of target features, capturing richer detail and semantic information while maintaining high computational efficiency, providing high-quality feature input for the subsequent neck network.

[0026] S330. A neck network based on the improved YOLOv11 target detection model is used to fuse multi-scale features of the patient's limb cross-section to obtain the fused patient limb cross-section features. Specifically, the multi-scale features of the patient's limb cross-section are input into the neck network of the improved YOLOv11 target detection model; the feature alignment module based on the neck network aligns the multi-scale features of the patient's limb cross-section to obtain aligned multi-scale features of the patient's limb cross-section; the feature information fusion module based on the neck network fuses the aligned multi-scale features of the patient's limb cross-section to obtain global features of the patient's limb cross-section; the local affine frame and feature information distribution module based on the neck network slices and distributes the global features of the patient's limb cross-section to the attention scale sequence fusion module; the C3 module and attention scale sequence fusion module based on the neck network perform three-dimensional convolution fusion on the sliced ​​global features of the patient's limb cross-section to obtain fused features of the patient's limb cross-section.

[0027] like Figure 13 As shown, in this embodiment, to improve the robustness of the model and enable it to have superior detection performance in various environments, this embodiment has made a secondary innovative improvement to the YOLOv11 neck network, integrating the Gather-and-Distribute (GD) mechanism from GOLD-YOLO and the ScaleSequence Feature Fusion (SSFF) module from ASF-YOLO. The GD implementation collection-distribution process includes three modules: Feature Alignment (FAM), Feature Information Fusion (IFM), and Feature Information Distribution (Inject). First, FAM collects feature maps of different scales of the backbone and aligns them through upsampling or downsampling; then, IFM fuses the aligned features to generate global features, which are then split into two parts and distributed to other scales accordingly; finally, before entering Inject, it passes through the LAF module. The Inject distribution module (using a self-attention-like approach) uses simple attention operations (to enhance the detection capability of branches) to split the global features and distribute them to various layers. The SSFF module first applies individual convolutional operations to the three input feature maps (p3, p4, p5), then resizes them to ensure they can be effectively fused. Next, these feature maps are converted into 3D tensors and fused using 3D convolution to capture multi-scale features. Finally, max pooling further refines these features. The final fused, optimized features are output to the detection head. By integrating the GD mechanism and the SSFF module, the improved neck network can more fully utilize feature information at different scales, enhancing the model's adaptability to scale changes and complex backgrounds, thereby significantly improving detection robustness and accuracy.

[0028] S340. A detection head based on the improved YOLOv11 target detection model performs target recognition on the fused patient limb cross-sectional features to obtain the center point of the patient limb cross-section. like Figure 14As shown, in this embodiment, a SEAM (Spatially Enhanced Attention Module) attention mechanism is introduced into the detection head. The SEAM module is implemented through a combination of depthwise separable convolutions and residual connections. While depthwise separable convolutions operate on a channel-by-channel basis and can learn the importance of different channels and reduce the number of parameters, they neglect the information relationships between channels. To compensate for this loss, the outputs of convolutions at different depths are combined through point-to-point (1x1) convolutions. Then, a two-layer fully connected network is used to fuse the information of each channel to enhance the connections between all channels. This model aims to compensate for the loss in occlusion cases by learning the relationship between occluded and unoccluded surfaces.

[0029] S350. Perform spatial pose calculation on the center point of the patient's limb cross section to obtain the three-dimensional coordinates of the center point of several cross sections.

[0030] In this embodiment, the vision system can simultaneously identify and locate each centering device in the field of view. By calculating its spatial pose and combining it with the known geometric model of the device, the system synchronously calculates the center point (O1, O2, O3, ...) of the limb cross-section determined by each device. The three-dimensional coordinates of these center points together constitute the data basis for subsequent skeletal midline fitting.

[0031] In summary, the target inspection algorithm can accurately locate the positions of special markers. The four special markers of the linear contact adaptive center alignment device are located around the perimeter (e.g., ...). Figure 16 As shown in the diagram, the center position of an object is found by using these four special points. This improved target detection algorithm can identify and locate objects more accurately and efficiently, significantly improving detection accuracy while maintaining low computational load, thus laying the foundation for subsequent assembly operations.

[0032] S400: After preprocessing the three-dimensional coordinates of the center points of several cross sections, and combining them with the velocity and acceleration curves of the clamping points, the linear contact type adaptive center alignment device is driven to achieve center registration of the patient's limb.

[0033] Specifically, the initial centerline is obtained by fitting the three-dimensional coordinates of the center points of several cross sections with a straight line using the least squares method. The coordinate points on the initial centerline are judged. If the residual of any coordinate point is greater than a preset value, it is discarded. The remaining coordinate points after the discard are fitted a second time to obtain the final centerline. Combining the velocity curve and acceleration curve of the clamping point with the final centerline, the linear contact type adaptive center alignment device is driven to achieve center registration of the patient's limb.

[0034] Therefore, this invention designs a linear contact-type adaptive center alignment device that uses a single driving force to achieve four-point clamping, allowing it to gently wrap around the limb and automatically align with the center of the cross-section, thus adapting to the size differences of different individuals and limb parts. To meet the requirements of high-precision alignment, this invention establishes a precise kinematic model of the center alignment device's motion diagram using analytical methods. This model can accurately describe the device's motion process, calculate its motion trajectory curve, and gradually derive the velocity and acceleration variation laws through differential methods. These motion curves provide complete motion information of the device at different time points, laying a theoretical foundation for precise control and optimized design.

[0035] Furthermore, the YOLOv11 model was adopted, and innovative functions and improvements were introduced to further enhance detection performance and model adaptability. System integration and reconstruction: The core lies in integrating multiple independent sensing and execution units into an intelligent overall system. Multiple adaptive centering devices are coordinated through a unified control framework, distributing them along the limb axis and synchronously performing wrapping and centering actions. Simultaneously, the global vision system synchronously acquires multi-point data, and by calculating the spatial pose of each device, obtains a set of three-dimensional coordinate points representing the centers of different cross-sections. Finally, a spatial curve fitting algorithm is used to reconstruct these discrete center points into a continuous and accurate three-dimensional skeletal centerline. This process achieves a leap from local, two-dimensional cross-sectional center measurement to global, three-dimensional skeletal axis reconstruction, providing medical robots with a direct and accurate anatomical structure perception benchmark.

[0036] Finally, the device of the present invention will be further described in conjunction with the accompanying drawings: like Figure 3 As shown, the device consists of four local linkage slider structures. By applying a downward force to side BC, the local linkage slider structure deforms, causing the clamping point to move downward and thus clamping the shaft segment. This linear contact clamping method ensures that the shaft segment is perfectly aligned with the central axis of the device, thereby achieving precise center alignment.

[0037] like Figure 4 As shown, the improved local linkage slider structure has 5 moving parts and 7 lower pairs, with a degree of freedom of F = 3 × 5 - 2 × 7 = 1. When the number of driving parts is 1, the motion of the mechanism is determined.

[0038] Using ∠CBD as the independent variable, and varying it from 0° to 90°, calculate the displacement, velocity, and acceleration values ​​corresponding to the clamping point, and plot the curves Xa and Ya. Also, calculate the error graphs for Xa and Ya, as shown below. Figure 5 As shown in the figure. By analyzing the displacement error diagram, it can be seen that the clamping point A can maintain an approximately linear relationship around ∠CBD=20°~40°, which means that shaft segments with a diameter of 10~13mm can be clamped smoothly.

[0039] First, the design of the local connecting rod and slider: like Figure 5 As shown, to make the object in and For a force to be applied in a specific direction, the following conditions must be met: ; because and It is part of a rhombus structure, from which we can conclude: ; Based on geometric relationships, the coordinates of contact point A are as follows: ; Given the above conditions, the following design data are provided: ; The displacement equation of point A is as follows: ; Then analyze the velocity equation of point A and the velocity at the x-coordinate of point A, such as Figure 6 As shown: by For objects: ; by For objects: ; Analyze the velocity at point A's ordinate: by For objects: ; by For objects: ; Analyze the relationship between the accelerations Xa and Ya, such as Figure 7 As shown: Continue to improve upon speed Differentiating the expression for the object, we get: ; Then, system calibration is performed: First, the global vision system is calibrated to establish a coordinate system. Simultaneously, the initial relative positions of the multiple centering devices (D1, D2, D3…) on the support frame are precisely measured.

[0040] Coarse positioning and device preset: The patient extends their upper arm into the system. The global vision system identifies the entire area of ​​the upper arm. Based on the visually recognized length and position of the upper arm, the system automatically moves devices D1, D2, D3… to their respective ideal positions.

[0041] Synchronous adaptive centering: The system issues a command, and D1, D2, D3... synchronously drive their internal flexible mechanisms to gently wrap around the upper arm from all sides until the force sensor reaches the preset safety threshold. At this point, each device independently aligns its mechanical center with the geometric center of the cross-section of the limb it is located in.

[0042] Multi-center data synchronous acquisition: The global vision system captures a single frame of image at any given time. The upgraded algorithm identifies the unique identifiers D1, D2, D3… within this image. Based on the known geometric model of the device and the pose in the current image, it calculates the three-dimensional coordinates of the center points O1, O2, O3… of each device's determined cross-section in the coordinate system.

[0043] Midline Reconstruction and Optimization: The coordinates of multiple points {O1, O2, O3, ...} are fed into the data processing unit. A least squares method is used to fit a straight line to these points, resulting in an initial centerline L. The distance (residual) from each point to line L is calculated. If all residuals are within the tolerance range, then L is the final centerline. (Optimization step) If the residual of O2 is found to be significantly greater than that of O1 and O3, the algorithm determines that the midline may be misaligned due to muscle tension. Therefore, point O2 is discarded, and only O1 and O3 are used to refit a straight line as the final centerline. This ensures the robustness of the system when some data is unreliable.

[0044] Application of results: The fitted three-dimensional midline data is transmitted to the upper limb rehabilitation robot in real time. The robot uses this midline to adjust its joint axis to achieve a precise match with the patient's humeral axis, thereby providing a pure mechanical environment during rehabilitation training and avoiding unnecessary torque on the shoulder and elbow joints.

[0045] In summary, the embodiments of the present invention differ from the prior art in the following technical features: 1) This invention designs a linear contact-type adaptive center alignment device that uses a single driving force to achieve four-point clamping, allowing it to gently wrap around the limb and automatically align with the center of the cross-section, thus adapting to the size differences of different individuals and limb parts. To meet the requirements of high-precision alignment, this invention establishes a precise kinematic model of the center alignment device's motion diagram using analytical methods. This model can accurately describe the device's motion process, calculate its motion trajectory curves, and derive the velocity and acceleration variation laws step by step through differential methods. These motion curves provide complete motion information of the device at different time points, laying a theoretical foundation for precise control and optimized design.

[0046] 2) Object detection plays a crucial role in the research of linear contact adaptive centering devices. Object detection helps the device accurately locate the midpoint of an object. This research employs the YOLOv11 model and introduces innovative functions and improvements to further enhance detection performance and model adaptability. Multiple independent sensing and execution units are integrated into an intelligent overall system. A unified control framework coordinates multiple adaptive centering devices, distributing them along the limb axis and synchronously performing wrapping and centering actions. Simultaneously, a global vision system synchronously acquires multi-point data, calculating the spatial pose of each device to obtain a set of three-dimensional coordinate points representing the centers of different cross-sections. Finally, a spatial curve fitting algorithm is used to reconstruct these discrete center points into a continuous and accurate three-dimensional skeletal centerline. This process achieves a leap from local, two-dimensional cross-sectional center measurement to global, three-dimensional skeletal axis reconstruction, providing a direct and accurate anatomical structure perception benchmark for medical robots.

[0047] Reference Figure 2 A linear contact adaptive center alignment system based on YOLOv11 includes: The first module 201 is used to clamp and wrap the patient's limbs using a linear contact type adaptive center alignment device, and to obtain the velocity curve and acceleration curve of the clamping point. The second module 202 is used to introduce the hourglass stem cell module, the reparameterized hourglass block, the aggregation and distribution mechanism, and the attention-scale sequence fusion module to construct the improved YOLOv11 target detection model. The third module 203 is used to locate the cross-sections of the patient's limbs based on the improved YOLOv11 target detection model, and obtain the three-dimensional coordinates of the center points of several cross-sections. The fourth module 204 is used to preprocess the three-dimensional coordinates of the center points of several cross sections and combine them with the velocity curves and acceleration curves of the clamping points to drive the linear contact type adaptive center alignment device to achieve center registration of the patient's limb.

[0048] The content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0049] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.

Claims

1. A linear contact type adaptive center alignment method based on YOLOv11, characterized in that, Includes the following steps: The patient's limbs are clamped and wrapped using a linear contact adaptive center alignment device, and the velocity and acceleration curves of the clamping point are obtained. An improved YOLOv11 target detection model was constructed by introducing an hourglass stem cell module, a reparameterized hourglass block, an aggregation and distribution mechanism, and an attention-scale sequence fusion module. Based on the improved YOLOv11 target detection model, the cross-sections of the patient's limbs were located, and the three-dimensional coordinates of the center points of several cross-sections were obtained. After preprocessing the three-dimensional coordinates of the center points of several cross sections, the velocity and acceleration curves of the clamping points are combined to drive the linear contact type adaptive center alignment device to achieve center registration of the patient's limb.

2. The linear contact-based self-adaptive center alignment method based on YOLOv11 according to claim 1, wherein, The step of clamping and wrapping the patient's limb using a linear contact adaptive center alignment device and obtaining the velocity and acceleration curves of the clamping point specifically includes: A linear contact adaptive center alignment device is constructed, wherein the linear contact adaptive center alignment device is mirror-mounted through a four-part link-slider structure, the part of which contains five links connected by flexible hinges; By using a linear contact adaptive center alignment device to clamp the patient's limbs, the linear motion process of the clamping point is obtained, and a kinematic model of the clamping point is constructed. The kinematic model of the clamping point is constructed by plotting the motion curve of the clamping point in Excel and establishing the displacement equation of the clamping point. The velocity equation of the clamping point is obtained by differential calculation of the displacement equation of the clamping point, and the velocity of the clamping point is obtained by numerical calculation. The velocity equation at the clamping point is differentiated to obtain the acceleration equation at the clamping point, and the acceleration at the clamping point is calculated numerically to obtain the acceleration curve at the clamping point.

3. The linear contact-based self-adaptive center alignment method based on YOLOv11 according to claim 2, wherein, The improved YOLOv11 target detection model specifically includes a backbone network, a neck network, and a detection head, wherein the backbone network, the neck network, and the detection head are connected sequentially, wherein: The backbone network includes an hourglass stem cell module, several reparameterized hourglass blocks, several depth-separable convolutional blocks, a spatial pyramid pooling module, and a C2PSA channel attention module. The neck network includes a clustering and distribution mechanism, a local affine framework, a C3 module, and an attention scale sequence fusion module. The clustering and distribution mechanism includes a feature alignment module, a feature information fusion module, and a feature information distribution module. The detection head incorporates the SEAM attention mechanism.

4. The linear contact-based self-adaptive center alignment method based on YOLOv11 according to claim 3, characterized in that, The step of locating the cross-sections of the patient's limbs based on the improved YOLOv11 target detection model and obtaining the three-dimensional coordinates of the center points of several cross-sections specifically includes: The cross-section of the patient's limb is input into the improved YOLOv11 target detection model; Based on the backbone network of the improved YOLOv11 target detection model, multi-level feature extraction processing is performed on the cross-section of the patient's limb to obtain multi-scale features of the patient's limb cross-section. Based on the improved YOLOv11 target detection model, the neck network performs feature fusion on the multi-scale features of the patient's limb cross section to obtain the fused patient limb cross section features. The detection head based on the improved YOLOv11 target detection model performs target recognition on the fused patient limb cross-sectional features to obtain the center point of the patient limb cross-section; Spatial pose calculations were performed on the center point of the patient's limb cross section to obtain the three-dimensional coordinates of the center point of several cross sections.

5. The linear contact-based self-adaptive center alignment method based on YOLOv11 according to claim 4, wherein, The step of extracting multi-level features from the patient's limb cross-section using the backbone network based on the improved YOLOv11 target detection model to obtain multi-scale features of the patient's limb cross-section specifically includes: The cross-section of the patient's limb is input into the backbone network of the improved YOLOv11 target detection model; The hourglass stem cell module based on the backbone network downsamples the cross-section of the patient's limb and extracts preliminary features to obtain preliminary features of the patient's limb cross-section. Based on the reparameterized hourglass block of the backbone network, structural reparameterization inference is performed on the preliminary features of the patient's limb cross section to obtain the enhanced features of the patient's limb cross section. Based on the depthwise separable convolutional blocks of the backbone network, the enhanced patient limb cross-sectional features are deconvolved to obtain the convolved patient limb cross-sectional features. Based on the spatial pyramid pooling module of the backbone network, multi-scale feature fusion is performed on the convolutional patient limb cross-sectional features to obtain preliminary multi-scale features of the patient limb cross-section. The C2PSA channel attention module based on the backbone network performs global average pooling and dynamically adjusts the channel weights in the fully connected layer on the initial multi-scale features of the patient's limb cross section to obtain the multi-scale features of the patient's limb cross section.

6. The linear contact-based self-adaptive center alignment method based on YOLOv11 according to claim 5, wherein, The step of fusing multi-scale features of the patient's limb cross-section using the neck network based on the improved YOLOv11 target detection model to obtain the fused patient limb cross-section features specifically includes: Multi-scale features of the patient's limb cross-section are input into the neck network of the improved YOLOv11 target detection model; Based on the feature alignment module of the neck network, the multi-scale features of the patient's limb cross section are aligned to obtain the aligned multi-scale features of the patient's limb cross section. Based on the feature information fusion module of the neck network, the multi-scale features of the aligned patient limb cross section are fused to obtain the global features of the patient limb cross section; A local affine framework and feature information distribution module based on the neck network are used to slice and distribute the global features of the patient's limb cross section to the attention-scale sequence fusion module. The C3 module based on the neck network and the attention scale sequence fusion module perform three-dimensional convolutional fusion on the global features of the sliced ​​patient limb cross sections to obtain the fused patient limb cross section features.

7. The linear contact-based self-adaptive center alignment method based on YOLOv11 according to claim 6, wherein, The step of preprocessing the three-dimensional coordinates of the center points of several cross sections and combining them with the velocity and acceleration curves of the clamping points to drive the linear contact adaptive center alignment device to achieve the center registration of the patient's limbs specifically includes: The initial centerline is obtained by fitting the three-dimensional coordinates of the center points of several cross sections with a straight line using the least squares method. The coordinate points on the initial centerline are judged. If there are coordinate points with residuals greater than a preset value, they are removed. The remaining coordinate points after removal are then fitted twice to obtain the final centerline. By combining the velocity and acceleration curves of the clamping point with the final midline, a linear contact adaptive center alignment device is driven to achieve center registration of the patient's limb.

8. A linear contact type self-adaptive center alignment system based on YOLOv11, characterized in that, Includes the following modules: The first module is used to clamp and wrap the patient's limbs using a linear contact type adaptive center alignment device, and to obtain the velocity curve and acceleration curve of the clamping point. The second module is used to introduce the hourglass stem cell module, reparameterized hourglass block, aggregation and distribution mechanism and attention scale sequence fusion module to build an improved YOLOv11 target detection model. The third module is used to locate the cross-sections of the patient's limbs based on the improved YOLOv11 target detection model, and obtain the three-dimensional coordinates of the center points of several cross-sections. The fourth module is used to preprocess the three-dimensional coordinates of the center points of several cross sections and combine them with the velocity and acceleration curves of the clamping points to drive the linear contact type adaptive center alignment device to achieve center registration of the patient's limb.