A virtual reality-based arbitrary gate type stroke upper limb movement disorder patient rehabilitation training method and system
By combining VR technology and robotic arm technology, a personalized rehabilitation program was designed for stroke patients with upper limb motor disorders. This solved the problems of boring traditional training and lack of resistance feedback in VR, achieving efficient and accurate muscle strength assessment and training, and improving the efficiency and enjoyment of rehabilitation for patients.
Patent Information
- Application Number
- CN202611282133.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-24
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional rehabilitation techniques are tedious and resource-intensive for training stroke patients with upper limb motor disorders. Existing VR technology lacks physical resistance feedback, making it difficult to meet the rehabilitation needs of moderate to severe patients, and it also lacks integration with the principles of rehabilitation medicine.
By combining VR technology with robotic arm technology, a personalized rehabilitation process is designed. The training mode is determined through clinical assessment and automatic equipment assessment. The robotic arm provides different resistance feedback to achieve passive, non-resistance, active, and resistance training, thereby enhancing the accuracy and fun of muscle strength assessment and training.
It improves the efficiency and enjoyment of patient rehabilitation, reduces labor costs, enhances the objectivity and accuracy of muscle strength assessment, prevents accidental injuries, and adapts to the rehabilitation needs of patients with different muscle strength levels.
Smart Images

Figure CN123167474A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a rehabilitation training method and system for patients with upper limb motor disorders after stroke based on virtual reality, belonging to the field of biomedical engineering. Background Technology
[0002] Globally, there are a large number of new and recurrent stroke patients every year. Stroke has an extremely high disability rate, and many stroke survivors suffer from motor impairments, with upper limb motor dysfunction severely impacting their quality of life. Traditional rehabilitation techniques can improve motor function, but they rely on the manual techniques of rehabilitation therapists and specific rehabilitation equipment. Patients participate passively, the training process is tedious and monotonous, and it consumes intensive medical resources, thus hindering its clinical application. In recent years, Virtual Reality (VR) technology, as an emerging technology, can improve rehabilitation efficiency, reduce human and material consumption, and provide new ideas for upper limb motor function rehabilitation after stroke. Although VR technology has developed rapidly in recent years, its application in rehabilitation medicine still has certain limitations. Simple VR training lacks physical resistance feedback, cannot specifically enhance muscle strength, and is difficult to meet the rehabilitation needs of moderate to severe patients. In addition, existing VR interaction research mainly focuses on augmented reality based on vision and gestures, lacking integration and application with the principles of rehabilitation medicine. Summary of the Invention
[0003] The purpose of this invention is to provide a rehabilitation training method and system for patients with upper limb motor disorders after stroke based on virtual reality. It combines VR technology with robotic arm technology and rehabilitation medicine principles to increase the fun and accuracy of rehabilitation training, design personalized rehabilitation processes for patients, reduce labor costs, improve rehabilitation efficiency, and solve the problems of existing muscle strength training methods being boring and muscle strength assessment and training consuming a lot of manpower and resources. It also reduces the burden on rehabilitation doctors and increases patients' motivation to participate in rehabilitation training.
[0004] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0005] On one hand, the present invention provides a rehabilitation training method for patients with upper limb motor disorders after stroke based on virtual reality, which includes the following steps:
[0006] Step 1: Assess the patient's current muscle strength; this includes clinical assessment input and automated device assessment; the clinical assessment input is directly entered after the rehabilitation physician has completed the assessment, while for patients with muscle strength ≥2, the automated device assessment is completed by the force sensor on the robotic arm;
[0007] Step 2: Select the training mode according to the patient's muscle strength level. The training modes include passive training mode (i.e., passive mirror training), non-resistance mode, active training mode, and resistance mode.
[0008] Step 3: After selecting a training mode, various virtual doors are randomly generated, guiding the patient to use the robotic arm to operate the virtual doors in the system; after the patient opens the virtual door, the content behind the door is randomly generated for the patient to interact with; the patient trains to the training goal in the selected mode.
[0009] Step 4: After the training is completed, assess the training effect based on the patient's post-rehabilitation muscle strength level, and formulate the content of the next rehabilitation training based on the effect.
[0010] Furthermore, step 1 includes:
[0011] If clinical assessment input is performed: the rehabilitation physician uses the MMT method to assess the patient's upper limb muscle strength level and manually inputs the assessment results (0-5 levels), and the system drives the rehabilitation according to the selected mode;
[0012] If the device performs an automatic assessment: the patient's muscle strength level needs to be ≥2. The patient uses the affected limb to pull the robotic arm to complete preset movements such as anti-gravity abduction. The six-dimensional force sensor integrated into the end of the robot collects mechanical data in real time, and the system automatically analyzes and outputs a muscle strength score. The rehabilitation mode is automatically selected based on the output muscle strength score.
[0013] Furthermore, step 2 includes:
[0014] If the patient’s muscle strength grade is ≤2, the training mode selected is the passive training mode (i.e., passive mirror training).
[0015] If the patient's muscle strength grade is 3, the training mode selected is the non-resistance mode;
[0016] If the patient's muscle strength grade is 4, or if the patient can complete 15 sets of non-resistance mode tasks continuously, the training mode selected is active training mode.
[0017] If the patient's muscle strength level is 5, or if the patient can complete 15 sets of active training tasks consecutively, the training mode selected is resistance training.
[0018] Furthermore, in step 3, if the selected training mode is passive training mode, the following steps are performed:
[0019] Step 301a: Turn on the Kinect DK camera and pre-establish a spatial mapping relationship between the door handle on the robotic arm and the door handle on the virtual door generated by the Any Door program;
[0020] Step 302a: The patient places both hands on the door handles of the two robotic arms respectively, and pulls the door handle on the unaffected robotic arm with the unaffected hand, causing the robotic arm to open the door.
[0021] Step 303a: The camera captures the movement of the healthy side and sends the movement trajectory of the healthy side to the UR5 console, which drives the virtual door on the healthy side to move. At the same time, the robotic arm on the affected side also drives the affected hand to perform mirror movement. The virtual door on the affected side opens synchronously with the robotic arm on the affected side. The arbitrary door program randomly generates the content behind the door for interaction with the patient. Then the robotic arm drives the affected limb to reset, completing one training session.
[0022] Step 304a: Repeat the above training process. The training goal is to complete eight sets of training, with 30 repetitions per set and a 1-minute rest between sets.
[0023] Furthermore, in step 3, if the selected training mode is the impedance-free mode, the following steps are performed:
[0024] Step 301b: Turn on the Kinect DK camera and pre-establish a spatial mapping relationship between the door handle on the robotic arm and the door handle on the virtual door generated by the Any Door program;
[0025] Step 302b: The patient places the affected hand on the door handle of the robotic arm on the affected side and pulls the door handle on the robotic arm with the affected hand, causing the robotic arm to open the door.
[0026] Step 303b: The camera captures the movement of the affected side and sends the movement trajectory of the affected side to the UR5 console, which drives the virtual door on the affected side to move. The arbitrary door program randomly generates the content behind the door for interaction with the patient.
[0027] Step 304b: Repeat the above training process. The training goal is to complete eight sets of training, with 30 repetitions per set and a 1-minute rest between sets.
[0028] Furthermore, in step 3, if the selected training mode is the active training mode, the following steps are performed:
[0029] Step 301c: Turn on the Kinect DK camera and pre-establish a spatial mapping relationship between the door handle on the robotic arm and the door handle on the virtual door generated by the Any Door program;
[0030] Step 302c: The patient places the affected hand on the door handle of the robotic arm on the affected side and pulls the door handle on the robotic arm with the affected hand. The robotic arm provides a certain resistance according to the patient's condition (this resistance is less than the normal level), and the patient overcomes the resistance of the robotic arm to open the door.
[0031] Step 303c: The camera captures the movement of the affected side and sends the movement trajectory of the affected side to the UR5 console, which drives the virtual door on the affected side to move. The arbitrary door program randomly generates the content behind the door and interacts with the patient. The patient then drives the robotic arm to reset, completing one training session.
[0032] Step 304c: Repeat the above training process. The training goal is to complete eight sets of training, with 30 repetitions per set and a 1-minute rest between sets.
[0033] Furthermore, in step 3, if the selected training mode is the resistance mode, the following steps are performed:
[0034] Step 301d: Turn on the Kinect DK camera and pre-establish a spatial mapping relationship between the door handle on the robotic arm and the door handle on the virtual door generated by the Any Door program;
[0035] Step 302d: The patient places the affected hand on the door handle of the robotic arm on the affected side and pulls the door handle on the robotic arm with the affected hand. The robotic arm provides sufficient resistance (equivalent to the normal level of strength of the patient's peers). The patient overcomes the resistance of the robotic arm to open the door.
[0036] Step 303d: The camera captures the movement of the affected side and sends the movement trajectory of the affected side to the UR5 console, which drives the virtual door on the affected side to move. The arbitrary door program randomly generates the content behind the door and interacts with the patient. The patient then drives the robotic arm to reset, completing one training session.
[0037] Step 304d: Repeat the above training process. The training goal is to complete eight sets of training, 30 repetitions per set, with a 1-minute rest between each set. If the patient can complete 15 sets of resistance training consecutively, no further training is required.
[0038] Furthermore, step 4 includes:
[0039] If the patient's muscle strength improves after training and they are able to complete the current training mode, then try the next level of training mode at the start of the next training session.
[0040] If a patient needs targeted training for certain upper limb muscle groups, the next training session can be set to perform only a certain type of door-opening movement, including lateral pulling, longitudinal pulling, rotation, and translation, rather than random door-opening movements (lateral pulling, longitudinal pulling, rotation, and translation).
[0041] On the other hand, the present invention also provides a rehabilitation training system for patients with upper limb motor disorders after stroke based on virtual reality, comprising:
[0042] The training mode determination module includes a muscle strength analysis unit and a training mode selection unit, which are used to determine the patient's muscle strength level based on the data provided by the force sensor and determine the appropriate training mode.
[0043] The virtual hand simulation module includes a limb spatial positioning submodule, an anti-occlusion unit, a first-person image module, an URScript program unit, and a door handle unit;
[0044] The Any Door Rehabilitation Training Module includes a passive mirror training submodule, a non-resistance training submodule, an active training submodule, and a resistance training submodule. These submodules are used to provide mirror assistance, no force, low resistance, and high resistance respectively through the UR5 robotic arm. Based on the four door opening methods generated in the virtual reality environment, the module guides the patient to repeatedly open the door by holding the door handle on the robotic arm. The patient also interacts with the virtual door using the UR5 control system. After the virtual door is opened, random content is generated to interact with the patient.
[0045] The safety module, based on the foundation of upper limb rehabilitation training, models the human arm according to the normal range of motion characteristics of the shoulder, elbow, and wrist joints, and determines the range of motion for training to prevent accidental damage to joints and muscles during training.
[0046] Furthermore, in the limb spatial positioning submodule, the spatial coordinate positioning of the patient's limb is achieved through AzureKinect DK, and the patient's wrist is marked with ArUco tags. The spatial coordinate position of the human wrist is indirectly obtained by detecting the ArUco tags.
[0047] In the anti-occlusion unit, a cube training model is used. Each surface of the model has a 5cm×5cm groove, and six ArUco tags are pasted on the groove in a certain order. When only one tag is detected in the field of view, the midpoint value of the tag is used as the tracking point for the movement trajectory of the healthy limb. When two to three tags are detected in the field of view, the size of the area enclosed by the four corner points of each tag is determined, and the midpoint of the tag with the larger pixel area is taken as the visual tag recognition point. If no tag is detected in the field of view, the control module keeps the robotic arm stationary.
[0048] In the first-person avatar module, after obtaining the spatial coordinates of the patient's limbs, the spatial coordinates are processed in the camera coordinate system and mapped to the VR first-person controller coordinate system; then, a first-person avatar is simulated in this coordinate system as the user's virtual form.
[0049] The URScript program unit is used to control the movement of the UR5 robotic arm. This unit uses the moveel((x,y,z,rx,ry,rz),a,v) function to send motion commands to the UR5. The parameters x,y,z are the three-dimensional spatial positions of the UR5 end relative to the base, rx,ry,rz are rotation parameters, which are set to constant values, a is the acceleration, and v is the velocity parameter. The velocity parameter is dynamically calculated based on the straight-line distance to be moved each time, and the maximum value does not exceed 0.05m / s.
[0050] In the door handle unit, various door handles are made using 3D printing technology, and angle sensors are installed on the rotatable door handles, which are then fixed to the UR5 robotic arm. During training, the appropriate door opening motion and corresponding door handle are selected according to the muscle groups to be exercised, and the patient holds the door handle and is fixed by a wrist strap.
[0051] Furthermore, the passive mirror training submodule includes an arbitrary door practice module, a virtual scene submodule, and a mirror mapping module; the impedance-free training submodule includes an arbitrary door practice module, a virtual scene submodule, and an impedance-free motion module; the active training submodule includes an arbitrary door practice module, a virtual scene submodule, and a partially resisted motion module; the resistance training submodule includes an arbitrary door practice module, a virtual scene submodule, and a resistance motion module; wherein:
[0052] The Any Door Practice Module is used to simulate an indoor environment in a virtual display environment. The virtual door is located at the only connection point between all rooms. Collision structures are set on both the door handle and the door surface. Users interact with the door handle using virtual hands. The door handle collects the rotation angle of the door handle through an angle sensor. Before rotating to a certain angle, the door cannot be opened by any means. After exceeding a certain angle, the door handle can be pushed or pulled to open the door.
[0053] The virtual scene submodule is used to randomly present different pre-prepared VR virtual panoramas in virtual reality after the door is opened, adding fun to the action of opening the door and increasing the patient's enthusiasm for training.
[0054] The mirror mapping module is used to actively adjust the position of the robotic arm until the end handle and the virtual door handle are in the same relative spatial position, so as to ensure that when the patient pulls the end handle of the UR5 and when the UR5 moves the patient's hand, the virtual door also moves accordingly.
[0055] The impedance-free motion module is used to actively adjust the position of the robotic arm until the end handle and the virtual door handle are in the same relative spatial position, ensuring that the virtual door moves when the patient pulls the UR5 end handle.
[0056] The partial resistance motion module is used to actively adjust the position of the robotic arm until the end handle and the virtual door handle are in the same relative spatial position, ensuring that when the patient pulls the end handle of the UR5, the virtual door also moves accordingly. The robotic arm provides a certain resistance according to the patient's condition, and the patient overcomes the resistance of the robotic arm to open the door.
[0057] The resistance motion module is used to actively adjust the position of the robotic arm until the end handle and the virtual door handle are in the same relative spatial position, ensuring that when the patient pulls the end handle of the UR5, the virtual door also moves, and the robotic arm provides sufficient resistance, allowing the patient to overcome the resistance of the robotic arm to open the door.
[0058] Furthermore, the security module includes:
[0059] The limiting module, based on the coordinates of four important joint nodes—HandRight / HandLeft, WristRight / WristLeft, ElbowRight / ElbowLeft, and ShoulderRight / ShoulderLeft—with the center of the eyebrows and eyes as the origin, the horizontal gaze direction as the positive X-axis, and the vertical upward direction as the positive Y-axis, stipulates that the X-axis coordinates of node one, node two, and node three must not be less than that of node four, the Y-coordinate of node three must not be negative, and the X-axis coordinates of node one and node two must not be less than that of node three. At the same time, nodes one and two are uniformly set to have an unchanged relative position.
[0060] The force control module automatically reverts to the previous training mode if the patient exerts force for 10 consecutive seconds without moving the robotic arm. If the patient exerts force again for 10 seconds without moving the robotic arm, the training program is immediately stopped.
[0061] Compared with the prior art, the present invention has the following advantages:
[0062] This invention allows patients to perform various door-opening and closing exercises in a virtual reality environment by holding a door handle on a robotic arm. This engages various muscle groups in the patient's upper limbs in synergistic and antagonistic movements, effectively improving muscle strength, joint range of motion, and preventing and improving muscle adhesions. Since opening doors is an important daily activity, the invention also includes random interactive elements after the virtual door is opened, enhancing the patient's daily living skills while greatly increasing the enjoyment of rehabilitation therapy and the patient's initiative. Furthermore, this invention provides two muscle strength assessment methods: clinical assessment input and automatic device assessment. Patients can flexibly choose according to their specific situation, reducing the burden on rehabilitation physicians while improving the objectivity and accuracy of assessments. Considering the different rehabilitation needs of patients with varying muscle strength, the robotic arm's resistance sensing and settings are more precise, facilitating gradual rehabilitation, better measuring the patient's recovery level, and improving the efficiency of rehabilitation therapy. In addition, a dual safety module is incorporated to prevent accidental injury to the patient during rehabilitation. Attached Figure Description
[0063] Figure 1 This is a flowchart of an embodiment of the rehabilitation training method for patients with upper limb motor disorders after stroke based on virtual reality according to the present invention.
[0064] Figure 2 This is a structural block diagram of the personalized rehabilitation training adopted by the present invention for patients with different muscle strength.
[0065] Figure 3This is the interactive logic diagram of the Virtual Reality-Based Rehabilitation Training System for Upper Limb Motor Disorders of Stroke Patients Based on the Present Invention.
[0066] Figure 4 This invention provides an ArUco tag anti-occlusion positioning model.
[0067] Figure 5 This is a schematic diagram of the four virtual door opening methods of the present invention;
[0068] Figure 6 This is a demonstration diagram of the passive mirror training scenario for stroke patients with upper limb motor dysfunction based on virtual reality according to the present invention.
[0069] Figure 7 This is a schematic diagram of the impedance-free training scenario for stroke patients with upper limb motor dysfunction based on virtual reality according to the present invention.
[0070] Figure 8 This is a schematic diagram of the active and resistance training scenarios for patients with upper limb motor disorders after stroke based on virtual reality, according to the present invention. Detailed Implementation
[0071] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.
[0072] See Figure 1 This invention provides a virtual reality-based rehabilitation training method for stroke patients with upper limb motor dysfunction using an arbitrary gate approach. The subjects are stroke patients with upper limb motor dysfunction, and the rehabilitation training method of this invention is used for a 4-week rehabilitation program. The rehabilitation training steps are as follows:
[0073] Step 1: Start the virtual reality program and wear the head-mounted device, create a patient account, and begin upper limb rehabilitation robot training.
[0074] Step 2: Insert the 3D-printed door handle into the end effector of the robotic arm. Based on the generated indoor virtual reality environment and virtual door, guide the patient to interact with the virtual door using their virtual hand by rotating, pushing, and pulling. Four door opening methods are set: direct push, sliding, upward push, and pushing after rotating the door handle (the latter requires two operations).
[0075] In this embodiment of the invention, the hardware components of the virtual door exercise include: a virtual reality headset (HTC Vive), a UR5 collaborative robot, a UR5 control program, a six-dimensional force sensor, a computer running Unity software, and an Azure Kinect DK depth camera. The UR5 control program includes two core functional modules: spatial coordinate positioning of the healthy hand and robot mirror control.
[0076] In this embodiment of the invention, the 3D-printed door handle fixed to the end effector of the UR5 robot includes two types: a ball-head door handle and a lever-type door handle, which can be replaced according to training needs. During training, the patient's affected hand grips the door handle and is secured by a wrist strap to ensure a stable grip.
[0077] Step 3: Start the UR5 robot program. The system uses the head as the parent object and captures the hand's sub-coordinates (spatial position and rotation) in real time with reference to the ArUco label. It then fits the spatial position of the UR5 robot arm captured by Azure Kinect DK. The end handle of the robot arm is manually fine-tuned to match the hand position for easy gripping by the patient.
[0078] In this embodiment of the invention, the Unity program obtains the spatial coordinates of the virtual door handle and sends them to the UR5 console. The UR5 control program adjusts the position of the robotic arm until the end handle and the virtual door handle are in the same relative spatial position, ensuring that when the patient pulls the door handle in the real world, they are also pulling the virtual door handle in the virtual space. The UR5 robot provides the patient with realistic force feedback.
[0079] Step 4: Assess the patient's existing muscle strength. The system selects a training mode based on the patient's muscle strength level. In this embodiment, the patient's muscle strength is initially assessed as level 3, meeting the conditions for automatic device assessment. Therefore, automatic device assessment is used for muscle strength evaluation. The UR5 robotic arm is controlled to move the patient's affected limb to complete preset standard movements such as antigravity abduction. Mechanical data is collected in real time by a six-dimensional force sensor integrated into the robot's end effector. The system algorithm automatically analyzes and outputs a muscle strength score of level 3. After confirmation by the rehabilitation physician, the assessment results are input into the system. Subsequently, the system automatically matches an active training mode. The patient performs repeated training using virtual reality-based "anywhere door" exercises in the selected mode.
[0080] Step 5: The patient rotates or pulls the door handle longitudinally. The door handle's rotation angle is collected by an angle sensor. The door cannot be opened by any means before rotating to a preset angle. After exceeding this angle, the door handle can be pushed or pulled to open the door. This angle can be adjusted according to the patient's condition. When used in conjunction with the UR5 robot, the door material varies depending on the robotic arm's resistance / assistance, providing the patient with different sensory feedback.
[0081] In this embodiment of the invention, after the door is opened, different pre-prepared panoramic virtual scenes will be randomly presented in the virtual reality, such as instantly moving from indoors to outer space, adding fun to the door-opening action and increasing the patient's enthusiasm for training.
[0082] Step 6: The patient performs repeated training, which consists of eight sets of the same pattern of training, 30 times per set, with a 1-minute rest between each set, for a total training time of about 15 minutes.
[0083] In this embodiment of the invention, after training is completed, the rehabilitation therapist assesses the training effect based on muscle strength level and dynamically adjusts the rehabilitation training content accordingly. The system automatically generates a training report, which includes quantitative data such as completion rate, average force, joint range of motion curve, and fatigue index, providing an objective basis for adjusting the rehabilitation plan.
[0084] Correspondingly, see Figure 2 The present invention provides a personalized rehabilitation training system for patients with different muscle strengths, including four modes: passive training mode (robotic arm provides mirror assistance), non-resistance training mode (robotic arm does not provide force), active training mode (robotic arm provides low resistance), and resistance training mode (robotic arm provides high resistance). In the virtual reality program, four doors with different appearances correspond to these modes. Patients can choose doors of varying difficulty based on their own affected side's muscle strength level for repeated training. Each task is timed.
[0085] To achieve the above method, this embodiment provides a virtual reality-based rehabilitation training system for patients with upper limb motor disorders following stroke, comprising:
[0086] The training mode determination module includes a muscle strength analysis program and a training mode selection unit, which are used to determine the patient's muscle strength level based on the data provided by the force sensor and determine the appropriate training mode.
[0087] The virtual hand simulation module includes a limb spatial positioning submodule, an anti-occlusion unit, a first-person image module, an URScript program, and a door handle unit;
[0088] The Any Door Rehabilitation Training Module includes a passive mirror training submodule, a non-resistance training submodule, an active training submodule, and a resistance training submodule. These submodules provide mirror assistance, no force, low resistance, and high resistance respectively through the UR5 robotic arm. Based on the four door opening methods generated in the virtual reality environment, the module guides the patient to repeatedly open the door by holding the door handle on the robotic arm. The patient also interacts with the virtual door using the UR5 control program. After the virtual door is opened, it randomly generates content to interact with the patient, increasing the fun of the rehabilitation process.
[0089] The safety module, based on the foundation of upper limb rehabilitation training, models the human arm according to the normal range of motion characteristics of the shoulder, elbow, and wrist joints, and determines the range of motion for training to prevent accidental damage to joints and muscles during training.
[0090] See Figure 3The limb spatial localization submodule is implemented using Azure Kinect DK. The Azure Kinect DK depth camera uses amplitude modulated continuous wave (AMCW) time difference for ranging based on the Time-of-Flight (ToF) principle. It projects modulated light from the near-infrared spectrum onto the scene, recording the indirect time measurement of the light's propagation from the camera to the scene and back. These measurements are then processed to generate a depth map. After image registration between the depth image obtained from the depth camera and the color image obtained from the RGB camera, the coordinates of a pixel in the color image in the camera coordinate system can be determined.
[0091] The wrist positioning method further indirectly obtains its spatial coordinates in the camera coordinate system by detecting highly reliable ArUco tags. An ArUco tag is a square marker consisting of a black border and a matrix pattern containing a binary identifier (ID).
[0092] The ArUco label recognition steps are as follows: First, candidate labels are detected. The image is binarized using an adaptive threshold. Contours are extracted from the binarized image to find square shapes that can be used as candidate labels. Then, after detecting candidate labels, their internal encoding is analyzed to verify whether they are genuine labels. Perspective transformation is applied to obtain a standardized label image. The Otsu algorithm is used to binarize the standardized image. The label image is divided into different cells according to the label size and border size. The number of black and white pixels in each cell is calculated to determine its position value. Finally, the image is analyzed to determine the label ID.
[0093] To reduce occlusion issues caused by ArUco tags rotating during use, a cube-shaped training model was designed. Each surface of the model has a 5cm x 5cm groove for easy attachment of visual positioning tags. Six 5cm x 5cm ArUco tags were printed and attached to the model surface with the square grooves in a specific order. The attachment order of the model and ArUco tags is as follows: Figure 4 As shown.
[0094] Since each face of the model has an ArUco label, as long as one label is not occluded during use, the recognition program can obtain the coordinates of its four corner points in the pixel coordinate system by recognizing the label, and then obtain the coordinates of the label's center point in the pixel coordinate system by calculating the center value. Finally, it passes the point cloud transformation function of Azure Kinect DK to obtain the three-dimensional spatial coordinates of the point in the camera coordinate system.
[0095] In this embodiment, the visual label model created using the above method has four states when moving within the camera's field of view: no model detected, no label found; model detected, 1 label found; model detected, 2 labels found; model detected, 3 labels found. The first situation mainly occurs when the model moves too fast or is completely occluded. In this case, the visual label cannot be detected, and the system keeps the robotic arm stationary. When only 1 label is detected in the field of view, the midpoint value of that label is used as the tracking point for the movement trajectory of the healthy limb. When 2-3 labels are detected in the field of view, the size of the area enclosed by the four corner points of each label is determined, and the midpoint of the label with the larger pixel area is taken as the visual label recognition point.
[0096] In Unity3D, the first-person perspective module is used to simulate a virtual first-person character. Its main object is a 3D camera representing the eyes of the virtual form, with coordinates matching the center coordinates of the eyebrows and eyes on a head-mounted display in a virtual reality device. The virtual hand is attached to the main object, and its displayed and retrieved coordinates in Unity3D are offset coordinates relative to the main object.
[0097] In this embodiment, the coordinates (in the camera coordinate system) obtained by Azure Kinect DK are processed and mapped to the VR human-view controller coordinate system. The depth camera of Azure Kinect DK draws the coordinates of 24 human skeleton points in the camera coordinate system. Only the four coordinates of WristRight / WristLeft and HandRight / HandLeft on both sides need to be transferred to Unity3D.
[0098] The relative coordinates of the human head position and HandRight / HandLeft position can also be obtained in the camera coordinate system of Azure Kinect DK. The HandRight / HandLeft positions in the 3D coordinate system with the head as the origin can then be calculated and output. Create a new empty object in the person view controller of Unity3D. Use the Kinect SDK to obtain the calculated coordinates and assign them to the transform value of the empty object. This empty object becomes the top-level object of the virtual door and is designated as the door handle. All virtual door models and scripts are child objects of this empty object, sharing the coordinate system. The spatial coordinates of the door handle in Unity3D are consistent with the HandRight / HandLeft coordinates when the patient grasps the door handle in the Unity3D mapping coordinates.
[0099] The URScript program enables mirror control of the robot by sending a URScript program to the UR5. In this embodiment, the `movel((x,y,z,rx,ry,rz),a,v)` function is used to send motion commands to the UR5, where `x`, `y`, and `z` are the three-dimensional spatial positions of the UR5 end effector relative to the base, `rx`, `ry`, and `rz` are rotation parameters (set to constant values in this embodiment), and `a` and `v` are acceleration and velocity parameters, respectively (acceleration is set to 0.1 m / s², and velocity is dynamically calculated based on the required straight-line distance for each movement, with a maximum of 0.05 m / s). The control script program is sent to port 30003 of the UR5 via the Socket interface to control its linear movement towards the target point. Simultaneously, real-time data returned from port 30003 of the UR5 is received to obtain robot feedback information and monitor the UR5's operational status.
[0100] The door handle unit utilizes 3D printing technology to create various door handle types, including ball-type, lever-type, and car door handles. An angle sensor is installed on the rotatable door handle, which is then fixed to the UR5 robotic arm with screws. During training, the appropriate door-opening motion and corresponding door handle are selected based on the muscle groups to be trained. The patient grips the door handle and is secured by a wrist strap.
[0101] Correspondingly, see Figure 5 There are four ways to open the door: push the door directly, slide the door horizontally, push the door upward, and push the door after turning the door handle (the latter requires two operations).
[0102] Correspondingly, see Figure 6 The passive mirror training scenario is shown in the figure.
[0103] Correspondingly, see Figure 7 The impedance-free training scenario is shown in the figure.
[0104] Correspondingly, see Figure 8 The active training and resistance training scenarios are shown in the figure.
[0105] In this embodiment of the invention, safety measures are implemented through a limiting module and a force control module. Based on the fundamentals of upper limb rehabilitation training, the limiting module models the human arm according to the characteristics of the shoulder joint training range, elbow joint flexion range, and wrist joint range of motion, determining an appropriate training range. Based on the coordinates of four important joint nodes—HandRight / HandLeft, WristRight / WristLeft, ElbowRight / ElbowLeft, and ShoulderRight / ShoulderLeft—with the center of the eyebrows and eyes as the origin, the horizontal eye-viewing direction as the positive X-axis, and the vertical upward direction as the positive Y-axis, it is stipulated that the X-axis coordinates of nodes one, two, and three must not be less than that of node four, the Y-coordinate of node three must not be negative, and the X-axis coordinates of nodes one and two must not be less than that of node three. Furthermore, because nodes one and two are close together and difficult to control their angles during training, increasing the risk of injury, they are uniformly set to maintain a constant relative position, with the wrist joint fixed to the door handle via a wrist strap.
[0106] The force control module automatically reverts to the previous training mode if the patient fails to move the robotic arm after exerting force continuously for 10 seconds during non-resistance training, active training, and resistance training. If the patient fails to move the robotic arm after exerting force again for 10 seconds, the training program is immediately stopped.
[0107] This invention allows patients to perform various door-opening and closing exercises in a virtual reality environment, mobilizing the synergistic and antagonistic movements of different muscle groups in the upper limbs. This effectively improves muscle strength and joint range of motion, and prevents and improves muscle adhesions. Since opening doors is an important daily activity, this invention also includes random interactive content after the virtual door is opened, enhancing patients' daily living abilities while greatly increasing the enjoyment of rehabilitation therapy and patient compliance. Furthermore, this invention provides two muscle strength assessment methods: clinical assessment input and automatic device assessment. Patients can flexibly choose according to their specific situation, reducing the burden on rehabilitation physicians while improving the objectivity and accuracy of assessments. Considering the different rehabilitation needs of patients with varying muscle strength, the robotic arm's resistance sensing and settings are more precise, facilitating gradual rehabilitation, better measuring patients' recovery levels, and improving the efficiency of rehabilitation therapy. In addition, a dual safety module is incorporated to prevent accidental injury to patients during rehabilitation.
[0108] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the scope of protection of the present invention in any way, and all technical solutions obtained by equivalent substitution or other means fall within the scope of protection of the present invention. Parts not covered in this invention are the same as or can be implemented using existing technology.
Claims
1. A rehabilitation training method for stroke patients with upper limb motor dysfunction based on virtual reality, characterized in that, Includes the following steps: Step 1: Assess the patient's current muscle strength; this includes clinical assessment input and automated device assessment; the clinical assessment input is directly entered after the rehabilitation physician has completed the assessment, while for patients with muscle strength ≥2, the automated device assessment is completed by the force sensor on the robotic arm; Step 2: Select the training mode according to the patient's muscle strength level. The training modes include passive training mode, non-resistance mode, active training mode and resistance mode. Step 3: After selecting a training mode, various virtual doors are randomly generated, guiding the patient to use the robotic arm to operate the virtual doors in the system; after the patient opens the virtual door, the content behind the door is randomly generated for the patient to interact with; the patient trains to the training goal in the selected mode. Step 4: After the training is completed, assess the training effect based on the patient's post-rehabilitation muscle strength level, and formulate the content of the next rehabilitation training based on the effect.
2. The rehabilitation training method for patients with upper limb motor disorders after stroke based on virtual reality according to claim 1, characterized in that, Step 1 includes: If clinical assessment input is performed: the rehabilitation physician uses the MMT method to assess the patient's upper limb muscle strength level and manually inputs the assessment results, and the system drives the rehabilitation according to the selected mode; If the device performs an automatic assessment: the patient's muscle strength level needs to be ≥2. The patient uses the affected limb to pull the robotic arm to complete the preset anti-gravity abduction movement. The six-dimensional force sensor integrated into the end of the robot collects mechanical data in real time, and the system automatically analyzes and outputs a muscle strength score. The rehabilitation mode is automatically selected based on the output muscle strength level.
3. The rehabilitation training method for patients with upper limb motor disorders after stroke based on virtual reality according to claim 1, characterized in that, Step 2 includes: If the patient's muscle strength grade is ≤2, the training mode selected is the passive training mode; If the patient's muscle strength grade is 3, the training mode selected is the non-resistance mode; If the patient's muscle strength grade is 4, or if the patient can complete 15 sets of non-resistance mode tasks continuously, the training mode selected is active training mode. If the patient's muscle strength level is 5, or if the patient can complete 15 sets of active training tasks consecutively, the training mode selected is resistance training.
4. The rehabilitation training method for patients with upper limb motor disorders after stroke based on virtual reality according to claim 1, characterized in that, In step 3, if the selected training mode is passive training mode, the following steps are performed: Step 301a: Turn on the camera and pre-establish a spatial mapping relationship between the door handle on the robotic arm and the door handle on the virtual door generated by the Any Door program; Step 302a: The patient places both hands on the door handles of the two robotic arms respectively, and pulls the door handle on the unaffected robotic arm with the unaffected hand, causing the robotic arm to open the door. Step 303a: The camera captures the movement of the healthy side and sends the movement trajectory of the healthy side to the control console, which drives the virtual door on the healthy side to move. At the same time, the robotic arm on the affected side also drives the affected hand to perform mirror movement. The virtual door on the affected side opens synchronously with the robotic arm on the affected side. The arbitrary door program randomly generates the content behind the door for the patient to interact with. Then the robotic arm drives the affected limb to reset, completing one training session. Step 304a: Repeat the above training process. The training goal is to complete eight sets of training, with 30 repetitions per set and a 1-minute rest between sets. If the selected training mode is the no-impedance mode, perform the following steps: Step 301b: Turn on the camera and pre-establish a spatial mapping relationship between the door handle on the robotic arm and the door handle on the virtual door generated by the Any Door program; Step 302b: The patient places the affected hand on the door handle of the robotic arm on the affected side and pulls the door handle on the robotic arm with the affected hand, causing the robotic arm to open the door. Step 303b: The camera captures the movement of the affected side and sends the movement trajectory of the affected side to the control console, which drives the virtual door on the affected side to move. The arbitrary door program randomly generates the content behind the door for interaction with the patient. Step 304b: Repeat the above training process. The training goal is to complete eight sets of training, with 30 repetitions per set and a 1-minute rest between sets.
5. The rehabilitation training method for patients with upper limb motor disorders after stroke based on virtual reality according to claim 1, characterized in that, In step 3, if the selected training mode is active training mode, the following steps are performed: Step 301c: Turn on the camera and pre-establish a spatial mapping relationship between the door handle on the robotic arm and the door handle on the virtual door generated by the Any Door program; Step 302c: The patient places the affected hand on the door handle of the robotic arm on the affected side and pulls the door handle on the robotic arm with the affected hand. The robotic arm provides a certain resistance according to the patient's condition, and the patient overcomes the resistance of the robotic arm to open the door. Step 303c: The camera captures the movement of the affected side and sends the movement trajectory of the affected side to the control console, which moves the virtual door on the affected side. The arbitrary door program randomly generates the content behind the door and interacts with the patient. The patient then drives the robotic arm to reset, completing one training session. Step 304c: Repeat the above training process. The training goal is to complete eight sets of training, with 30 repetitions per set and a 1-minute rest between sets. If the selected training mode is resisted mode, perform the following steps: Step 301d: Turn on the camera and pre-establish a spatial mapping relationship between the door handle on the robotic arm and the door handle on the virtual door generated by the Any Door program; Step 302d: The patient places the affected hand on the door handle of the robotic arm on the affected side and pulls the door handle on the robotic arm with the affected hand. The robotic arm provides sufficient resistance, and the patient overcomes the resistance of the robotic arm to open the door. Step 303d: The camera captures the movement of the affected side and sends the movement trajectory of the affected side to the control console, which moves the virtual door on the affected side. The arbitrary door program randomly generates the content behind the door and interacts with the patient. The patient then drives the robotic arm to reset, completing one training session. Step 304d: Repeat the above training process. The training goal is to complete eight sets of training, 30 repetitions per set, with a 1-minute rest between each set. If the patient can complete 15 sets of resistance training consecutively, no further training is required.
6. The rehabilitation training method for patients with upper limb motor disorders after stroke based on virtual reality according to claim 1, characterized in that, Step 4 includes: If the patient's muscle strength improves after training and they are able to complete the current training mode, then try the next level of training mode at the start of the next training session. If a patient needs targeted training for certain upper limb muscle groups, then the next training session should only include a specific door-opening movement, such as lateral pulling, longitudinal pulling, rotation, or translation, rather than random door-opening movements.
7. A virtual reality-based, arbitrary-door rehabilitation training system for stroke patients with upper limb motor dysfunction, characterized in that, include: The training mode determination module includes a muscle strength analysis unit and a training mode selection unit, which are used to determine the patient's muscle strength level based on the data provided by the force sensor and determine the appropriate training mode. The virtual hand simulation module includes a limb spatial positioning submodule, an anti-occlusion unit, a first-person image module, an URScript program unit, and a door handle unit; The Any Door Rehabilitation Training Module includes a passive mirror training submodule, a non-resistance training submodule, an active training submodule, and a resistance training submodule. These submodules are used to provide mirror assistance, no force, low resistance, and high resistance respectively through the UR5 robotic arm. Based on the four door opening methods generated in the virtual reality environment, the module guides the patient to repeatedly open the door by holding the door handle on the robotic arm. The patient also interacts with the virtual door using the UR5 control system. After the virtual door is opened, random content is generated to interact with the patient. The safety module, based on the foundation of upper limb rehabilitation training, models the human arm according to the normal range of motion characteristics of the shoulder, elbow, and wrist joints, and determines the range of motion for training to prevent accidental damage to joints and muscles during training.
8. A virtual reality-based rehabilitation training system for stroke patients with upper limb motor dysfunction, as described in claim 7, is characterized in that... In the limb spatial positioning submodule, the spatial coordinate positioning of the patient's limb is achieved through AzureKinect DK, and the patient's wrist is marked with ArUco tags. The spatial coordinate position of the human wrist is indirectly obtained by detecting the ArUco tags. In the anti-occlusion unit, a cube training model is used. Each surface of the model has a 5cm×5cm groove, and six ArUco tags are pasted on the groove in a certain order. When only one tag is detected in the field of view, the midpoint value of the tag is used as the tracking point for the movement trajectory of the healthy limb. When two to three tags are detected in the field of view, the size of the area enclosed by the four corner points of each tag is determined, and the midpoint of the tag with the larger pixel area is taken as the visual tag recognition point. If no tag is detected in the field of view, the control module keeps the robotic arm stationary. In the first-person image module, after obtaining the spatial coordinates of the patient's limbs, the spatial coordinates are processed in the camera coordinate system and mapped to the VR first-person controller coordinate system; Then, a first-person character is simulated in this coordinate system as the user's virtual form; The URScript program unit is used to control the movement of the UR5 robotic arm. This unit uses the moveel((x,y,z,rx,ry,rz),a,v) function to send motion commands to the UR5. The parameters x,y,z are the three-dimensional spatial positions of the UR5 end relative to the base, rx,ry,rz are rotation parameters, which are set to constant values, a is the acceleration, and v is the velocity parameter. The velocity parameter is dynamically calculated based on the straight-line distance to be moved each time, and the maximum value does not exceed 0.05m / s. In the door handle unit, various door handles are made using 3D printing technology, and angle sensors are installed on the rotatable door handles, which are then fixed to the UR5 robotic arm. During training, the appropriate door opening motion and corresponding door handle are selected according to the muscle groups to be exercised, and the patient holds the door handle and is fixed by a wrist strap.
9. A virtual reality-based rehabilitation training system for stroke patients with upper limb motor dysfunction, characterized in that, The passive mirror training submodule includes an "anywhere door" practice module, a virtual scene submodule, and a mirror mapping module; the impedance-free training submodule includes an "anywhere door" practice module, a virtual scene submodule, and an impedance-free motion module; the active training submodule includes an "anywhere door" practice module, a virtual scene submodule, and a partially resistance motion module; the resistance training submodule includes an "anywhere door" practice module, a virtual scene submodule, and a resistance motion module; wherein: The Any Door Practice Module is used to simulate an indoor environment in a virtual display environment. The virtual door is located at the only connection point between all rooms. Collision structures are set on both the door handle and the door surface. Users interact with the door handle using virtual hands. The door handle collects the rotation angle of the door handle through an angle sensor. Before rotating to a certain angle, the door cannot be opened by any means. After exceeding a certain angle, the door handle can be pushed or pulled to open the door. The virtual scene submodule is used to randomly present different pre-prepared VR virtual panoramas in virtual reality after the door is opened, adding fun to the action of opening the door and increasing the patient's enthusiasm for training. The mirror mapping module is used to actively adjust the position of the robotic arm until the end handle and the virtual door handle are in the same relative spatial position, so as to ensure that when the patient pulls the end handle of the UR5 and when the UR5 moves the patient's hand, the virtual door also moves accordingly. The impedance-free motion module is used to actively adjust the position of the robotic arm until the end handle and the virtual door handle are in the same relative spatial position, ensuring that the virtual door moves when the patient pulls the UR5 end handle. The partial resistance motion module is used to actively adjust the position of the robotic arm until the end handle and the virtual door handle are in the same relative spatial position, ensuring that when the patient pulls the end handle of the UR5, the virtual door also moves accordingly. The robotic arm provides a certain resistance according to the patient's condition, and the patient overcomes the resistance of the robotic arm to open the door. The resistance motion module is used to actively adjust the position of the robotic arm until the end handle and the virtual door handle are in the same relative spatial position, ensuring that when the patient pulls the end handle of the UR5, the virtual door also moves, and the robotic arm provides sufficient resistance, allowing the patient to overcome the resistance of the robotic arm to open the door.
10. A virtual reality-based rehabilitation training system for stroke patients with upper limb motor dysfunction, characterized in that, The security module includes: The limiting module, based on the coordinates of four important joint nodes—HandRight / HandLeft, WristRight / WristLeft, ElbowRight / ElbowLeft, and ShoulderRight / ShoulderLeft—with the center of the eyebrows and eyes as the origin, the horizontal gaze direction as the positive X-axis, and the vertical upward direction as the positive Y-axis, stipulates that the X-axis coordinates of node one, node two, and node three must not be less than that of node four, the Y-coordinate of node three must not be negative, and the X-axis coordinates of node one and node two must not be less than that of node three. At the same time, nodes one and two are uniformly set to have an unchanged relative position. The force control module automatically reverts to the previous training mode if the patient exerts force for 10 consecutive seconds without moving the robotic arm. If the patient exerts force again for 10 seconds without moving the robotic arm, the training program is immediately stopped.
