Dual-modal upper limb exoskeleton rehabilitation training system based on generative model
Through a dual-modal upper limb exoskeleton rehabilitation training system based on a generative model, user motion data is acquired in real time and intention prediction and interaction status evaluation are performed, which solves the problems of insufficient training effect and safety in existing technologies and achieves more efficient rehabilitation training effects.
Patent Information
- Application Number
- CN202411493846.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2044-10-24
AI Technical Summary
Existing upper limb exoskeleton rehabilitation training systems fail to accurately predict patients' movement intentions and ignore individual differences, resulting in insufficient training effectiveness and safety.
A dual-modal upper limb exoskeleton rehabilitation training system based on a generative model is used to obtain user motion data through a motion collector, and a diffusion model is used to predict intentions and evaluate interaction states, dynamically adjusting the training trajectory to suit the patient's specific needs.
It improves the autonomy and safety of rehabilitation training, ensures the optimization and real-time limitation of each training, and significantly improves the rehabilitation effect and patient training experience.
Smart Images

Figure CN119454398B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of rehabilitation equipment, and specifically relates to a dual-modal upper limb exoskeleton rehabilitation training system based on a generative model and a training method, device, storage medium, equipment and computer program product of a diffusion model. Background Art
[0002] During the rehabilitation process, patients wear exoskeleton devices and perform repeated rehabilitation exercises with the help of the exoskeleton, which helps speed up recovery and restore upper limb function.
[0003] Currently, several upper-limb exoskeleton designs and algorithms have been developed for rehabilitation training. Most of these solutions simply replicate the motion trajectory of the healthy side onto the affected side, or employ fixed, pre-set motion trajectories to drive rehabilitation exercises on the affected side. While these approaches have facilitated patient recovery to some extent, they often neglect intelligent prediction of the patient's movement intent and optimization of human-machine interaction, failing to fully consider the individual patient's rehabilitation needs.
[0004] First, fixed trajectories lack flexibility and are unable to adapt to individual patient differences. Second, simply replicating the movements of the healthy side cannot fully reflect the rehabilitation needs and status of the affected side. Most importantly, existing solutions fail to accurately predict the patient's movement intentions and cannot intelligently assess the state of human-computer interaction, limiting the effectiveness and safety of rehabilitation training. Summary of the Invention
[0005] The present application aims to provide a dual-modal upper limb exoskeleton rehabilitation training system based on a generative model and a training method, apparatus, storage medium, equipment and computer program product of a diffusion model, which at least solves the problem of insufficient training autonomy and safety of rehabilitation personnel due to the need to pre-set training trajectories.
[0006] In a first aspect, embodiments of the present application disclose a bimodal upper limb exoskeleton rehabilitation training system based on a generative model, comprising an exoskeleton, a motion collector, and a motion intention predictor;
[0007] The exoskeleton is configured to drive a first body part of a user so as to enable passive movement of the first body part within at least one spatial degree of freedom;
[0008] The motion collector is used to obtain motion data of the user; the motion data is used to characterize the motion of a second body part of the user; the second body part is all or part of the body parts of the user other than the first body part;
[0009] The movement intention predictor is used to input the movement data into a first diffusion model to obtain a movement trajectory of the passive movement, so that the movement path of the first body part during passive movement matches the movement trajectory.
[0010] In a second aspect, the embodiments of the present application further disclose a bimodal upper limb exoskeleton rehabilitation training system based on a generative model, comprising an exoskeleton, a motion collector, a motion intention predictor, an interaction collector, an interaction state evaluator, and an interaction state optimizer;
[0011] The exoskeleton is configured to drive a first body part of a user so as to enable passive movement of the first body part within at least one spatial degree of freedom;
[0012] The motion collector is used to obtain motion data of the user; the motion data is used to characterize the motion of a second body part of the user; the second body part is all or part of the body parts of the user other than the first body part;
[0013] The movement intention predictor is configured to input the movement data into a first diffusion model to obtain a movement trajectory of the passive movement, so that a movement path of the first body part during the passive movement matches the movement trajectory;
[0014] The interaction collector is used to obtain interaction data when the first body part is driven; the interaction data is used to represent the mechanical feedback of the first body part to the exoskeleton during the process of the first body part being driven by the exoskeleton;
[0015] The interaction state evaluator is used to input the interaction data into an evaluation model to obtain an interaction evaluation value for the passive movement; the interaction evaluation value is positively correlated with the difference between the interaction data and the preset interaction statistical data;
[0016] The interaction state optimizer is configured to adjust the motion trajectory determined by the motion intention predictor according to the interaction evaluation value, so as to reduce the interaction evaluation value.
[0017] In a third aspect, the present application also discloses a dual-modal upper limb exoskeleton rehabilitation training system based on a generative model, comprising an exoskeleton, a motion collector, a motion intention predictor, an interaction collector, an interaction state evaluator, and an interaction state optimizer;
[0018] The exoskeleton is configured to drive a first body part of a user so as to enable passive movement of the first body part within at least one spatial degree of freedom;
[0019] The motion collector is used to obtain motion data of the user; the motion data is used to characterize the motion of a second body part of the user; the second body part is all or part of the body parts of the user other than the first body part;
[0020] The movement intention predictor is configured to input the movement data into a first diffusion model to obtain a movement trajectory of the passive movement, so that a movement path of the first body part during the passive movement matches the movement trajectory;
[0021] The interaction collector is used to obtain interaction data when the first body part is driven; the interaction data is used to represent the mechanical feedback of the first body part to the exoskeleton during the process of the first body part being driven by the exoskeleton;
[0022] The interaction state evaluator is used to input the interaction data into an evaluation model to obtain an interaction evaluation value for the passive motion; the interaction evaluation value is positively correlated with the difference between the interaction data and the preset interaction statistical data; the interaction state evaluator is specifically used to: input the interaction data into a second diffusion model to obtain interaction prediction data of the interaction data; and determine the value of the second-order moment of the interaction data and the interaction prediction data as the interaction evaluation value;
[0023] The interaction state optimizer is configured to adjust the motion trajectory determined by the motion intention predictor according to the interaction evaluation value, so as to reduce the interaction evaluation value.
[0024] In a fourth aspect, an embodiment of the present application further discloses a diffusion model training method, the training method being used to train the first diffusion model in the dual-modal upper limb exoskeleton rehabilitation training system based on the generative model as described in the first aspect, the training method comprising:
[0025] Constructing a first training set; the first training set includes motion training data; the motion training data is used to characterize the motion of a second body part of a pre-screened user; the second body part is all or part of the user's body parts other than the first body part; the first body part is the body part used to be driven by the exoskeleton;
[0026] Randomly adding a noise to the motion training data as an initial predicted motion training input feature;
[0027] Denoising the predicted motion training input features using a first diffusion model to be trained to obtain predicted motion training output features of the motion training data;
[0028] Updating the motion training output feature to the new motion training input feature, and returning to the step of denoising the predicted motion training input feature by the first diffusion model to be trained to obtain the predicted motion training output feature of the motion training data, and determining the first training function value of the first diffusion model according to a preset first training function formula after reaching a preset first training iteration number; the first training loop iteration number is used to record the number of executions of denoising the predicted motion training input feature by the first diffusion model to be trained to obtain the predicted motion training output feature of the motion training data;
[0029] When the first training function value is less than a preset first training threshold, the trained first diffusion model is obtained.
[0030] In a fifth aspect, an embodiment of the present application further discloses a diffusion model training method, which is used to train the second diffusion model in the dual-modal upper limb exoskeleton rehabilitation training system based on the generative model as described in the third aspect, and the training method includes:
[0031] Constructing a second training set; the second training set includes interactive training data; the interactive training data is used to represent the mechanical feedback of a first body part of a pre-screened user to the exoskeleton during a process in which the first body part is driven by the exoskeleton;
[0032] Randomly adding a noise to the interactive training data as an initial prediction interactive training input feature;
[0033] Denoising the predicted interactive training input features using a second diffusion model to be trained to obtain predicted interactive training output features of the interactive training data;
[0034] Updating the interactive training output feature to the new interactive training input feature, and returning to the step of denoising the predicted interactive training input feature using the second diffusion model to be trained to obtain the predicted interactive training output feature of the interactive training data, and determining the second training function value of the second diffusion model according to a preset second training function formula after reaching a preset second training iteration number; the second training loop iteration number is used to record the number of executions of denoising the predicted interactive training input feature using the second diffusion model to be trained to obtain the predicted interactive training output feature of the interactive training data;
[0035] When the second training function value is less than a preset second training threshold, the trained second diffusion model is obtained.
[0036] In a sixth aspect, an embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the fourth aspect or the fifth aspect are implemented.
[0037] In the seventh aspect, an embodiment of the present application further discloses an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method described in the fourth aspect or the fifth aspect.
[0038] In an eighth aspect, an embodiment of the present application further discloses a computer program product, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the fourth aspect or the fifth aspect are implemented.
[0039] In summary, in the embodiment of the present application, by introducing a motion collector, the system can obtain the user's motion data in real time, and use the diffusion model to analyze this data to predict intentions, and replace the preset trajectory with the generated trajectory, so that the device can be dynamically adjusted according to the patient's specific situation, thereby better adapting to the rehabilitation needs of patients with different degrees of impairment, and improving rehabilitation effects and training autonomy. This method optimizes and limits each training session in real time, and makes smarter decisions based on the real-time status of the rehabilitator. Therefore, the method based on the embodiment of the present application effectively solves the problems of insufficient autonomy and safety of rehabilitation training in the prior art through intelligent motion intention prediction and trajectory adjustment, and significantly improves the rehabilitation effect and patient training experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0041] Figure 1 This is a block diagram of a dual-modal upper limb exoskeleton rehabilitation training system based on a generative model provided in an embodiment of the present application;
[0042] Figure 2 This is a block diagram of another dual-modal upper limb exoskeleton rehabilitation training system based on a generative model provided in an embodiment of the present application;
[0043] Figure 3 is an overall diagram of the exoskeleton in an embodiment of the present application;
[0044] Figure 4This is a partial diagram of the exoskeleton in the embodiment of the present application;
[0045] Figure 5 is another partial diagram of the exoskeleton in an embodiment of the present application;
[0046] Figure 6 is another partial diagram of the exoskeleton in the embodiment of the present application;
[0047] Figure 7 A specific flow chart for obtaining a motion trajectory under an embodiment of the present application;
[0048] Figure 8 A specific flow chart for determining an interaction evaluation value under an embodiment of the present application;
[0049] Figure 9 This is a flowchart of the steps of a diffusion model training method provided in an embodiment of the present application;
[0050] Figure 10 A specific flow chart of training the first diffusion model under an embodiment of the present application;
[0051] Figure 11 This is a flowchart of another method for training a diffusion model provided in an embodiment of the present application;
[0052] Figure 12 A specific flow chart of training the second diffusion model under an embodiment of the present application;
[0053] Figure 13 Schematic diagram of a diffusion model training device provided in an embodiment of the present application;
[0054] Figure 14 Schematic diagram of another diffusion model training device provided in an embodiment of the present application;
[0055] Figure 15 is a block diagram of an electronic device provided in an embodiment of the present application;
[0056] Figure 16 is a block diagram of another electronic device provided in an embodiment of the present application;
[0057] Among them, 2011-rotation component; 2012-flexion and extension component. DETAILED DESCRIPTION
[0058] The following describes exemplary embodiments of the present application in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0059] Figure 1 The present invention provides a dual-modal upper limb exoskeleton rehabilitation training system 10 based on a generative model, comprising an exoskeleton 101, a motion collector 102, and a motion intention predictor 103, wherein:
[0060] The exoskeleton 101 is configured to drive a first body part of a user so that the first body part moves passively within at least one spatial degree of freedom.
[0061] In some embodiments of the present application, exoskeleton 101 is a key component used for rehabilitation training. Its primary function is to actuate a first body part (e.g., an arm) of the user, enabling passive movement within at least one degree of freedom in space. Exoskeleton 101 includes multiple motors and sensors, enabling precise motion control and feedback. By utilizing these motors, exoskeleton 101 can simulate natural motion trajectories, helping patients regain normal motor skills.
[0062] During rehabilitation training, the exoskeleton 101 uses the motion collector 102 to collect the user's motion data. This data is used to assess the user's motion status and adjust training strategies. Motion data includes information such as the user's joint angles, velocity, and acceleration. Based on this data, the exoskeleton 101 can adjust the user's motion trajectory in real time to ensure safety and effectiveness during training.
[0063] The motion collector 102 is used to obtain the user's motion data.
[0064] The motion data is used to characterize the motion of a second body part of the user; the second body part is all or part of the body part of the user other than the first body part.
[0065] In some embodiments of the present application, the motion collector 102 is used to obtain motion data of the user and use this data to characterize the motion of a second body part of the user. The second body part refers to all or part of the user's body parts other than the first body part driven by the exoskeleton. For example, in upper limb rehabilitation training, the first body part may be the user's arm, while the second body part may include the shoulder, elbow, or hand.
[0066] The motion collector 102 typically includes a variety of sensors, such as accelerometers, gyroscopes, and displacement sensors, which can detect and record the user's motion trajectory, speed, acceleration, and other data in real time. This data is transmitted to the control system for analysis and adjustment of rehabilitation training strategies to better suit the user's specific situation and rehabilitation needs.
[0067] The movement intention predictor 103 is configured to input the movement data into the first diffusion model to obtain a movement trajectory of the passive movement, so that the movement path of the first body part during the passive movement matches the movement trajectory.
[0068] In some embodiments of the present application, the primary function of the movement intention predictor 103 is to input the acquired movement data into the first diffusion model to predict the user's likely passive movement trajectory during rehabilitation training. This function relies on generative modeling technology, particularly the diffusion model, which can process complex movement data and accurately predict trajectories.
[0069] The motion intention predictor 103 first receives motion data from the motion collector 102. This data includes the movement of the user's second body part (e.g., shoulder, elbow, etc.). The motion intention predictor 103 then inputs this data into a pre-trained first diffusion model. By analyzing this data, the diffusion model generates a short future motion trajectory that reflects the user's motion intention.
[0070] Figure 2 Another dual-modal upper limb exoskeleton rehabilitation training system 20 based on a generative model provided in an embodiment of the present application includes an exoskeleton 201, a motion collector 202, a motion intention predictor 203, an interaction collector 204, an interaction state evaluator 205, and an interaction state optimizer 206, wherein:
[0071] The exoskeleton 201 is configured to drive a first body part of a user so that the first body part moves passively within at least one spatial degree of freedom.
[0072] The system modules shown in this embodiment have been explained in the system module 101 and will not be repeated here.
[0073] Optional, such as Figure 3 As shown, exoskeleton 201 includes a rotation component 2011 and / or a flexion-extension component 2012 .
[0074] The rotating component 2011 is used to drive the first body part of the user to perform rotational motion along a rotation axis corresponding to the rotating component.
[0075] like Figure 4 、 Figure 5 As shown, the curved arrow in the figure indicates the rotational direction of rotation assembly 2011. In a specific embodiment of the present application, rotation assembly 2011 is a key component of exoskeleton 201. Its primary function is to drive a first body part of the user (e.g., wrist) to rotate along a rotation axis corresponding to the rotation assembly. This rotational motion enables the user's joints to move more naturally and flexibly, thereby enhancing the effectiveness of rehabilitation training.
[0076] Specifically, the rotational assembly 2011 can be driven by a motor equipped with sensors, which can provide precise control and feedback. The motor is used to generate a rotational force, causing the user's first body part to move along a specified rotational axis. The sensor is used to detect data such as the user's rotation angle, speed, and acceleration, and transmit this data to the control system for real-time adjustment and optimization.
[0077] The flexion and extension component 2012 is used to drive the first body part of the user to perform flexion and extension movements according to the flexion and extension direction corresponding to the flexion and extension component.
[0078] like Figure 4 、 Figure 6 As shown, the straight arrows in the figure indicate the flexion and extension directions of flexion and extension assembly 2012. In one embodiment of the present application, flexion and extension assembly 2012 is another important component of exoskeleton 201. Its primary function is to drive a first body part of the user (e.g., an arm) to flex and extend in the direction corresponding to the flexion and extension assembly. This flexion and extension movement allows the user's joints to extend and bend naturally, thereby promoting the effectiveness of rehabilitation training.
[0079] Specifically, the flexion and extension assembly 2012 can be driven by a motor equipped with sensors, which can provide precise motion control and real-time feedback. The motor is used to generate a flexion and extension force, causing the user's first body part to move along a predetermined flexion and extension direction. The sensor is used to detect data such as the user's flexion and extension angle, speed, and acceleration, and transmit this data to the control system for real-time adjustment and optimization.
[0080] The motion collector 202 is used to obtain the user's motion data.
[0081] The motion data is used to characterize the motion of a second body part of the user; the second body part is all or part of the body part of the user other than the first body part.
[0082] The system modules shown in this embodiment have been described in the system module 102 and will not be repeated here.
[0083] The movement intention predictor 203 is configured to input the movement data into the first diffusion model to obtain a movement trajectory of the passive movement, so that the movement path of the first body part during the passive movement matches the movement trajectory.
[0084] The system modules shown in this embodiment have been explained in the system module 103 and will not be repeated here.
[0085] Optionally, the movement intention predictor 203 implements the process of inputting the movement data into the first diffusion model to obtain the movement trajectory of the passive movement, so that the movement path of the first body part during the passive movement matches the movement trajectory by the following steps:
[0086] Step 2031 : Generate motion features of passive motion according to motion data, and randomly generate a noise as an initial predicted motion input feature.
[0087] In some embodiments of the present application, the intention predictor will generate motion features of passive motion based on motion data, and randomly generate a noise as the initial predicted motion input feature. Motion features are a quantitative description of the user's actual motion situation, including multiple parameters such as joint angles, speeds, and accelerations. The purpose of generating motion features is to provide basic data for subsequent diffusion model analysis. For example, first, the system can obtain the user's motion data from the motion collector, which includes information such as the user's joint angles, speeds, and accelerations. Then, the system processes this data and generates corresponding motion features. These motion features reflect the user's motion state within a specific time period. In addition, the system also randomly generates a noise as the initial predicted motion input feature. This noise is used to simulate the uncertainty and randomness in the motion data and provide initial input conditions for the diffusion model.
[0088] For example, in upper limb rehabilitation training, a motion collector records the user's arm motion data, including information such as joint angle, velocity, and acceleration. Suppose the motion data at a certain moment is as follows: joint angle: 30 degrees, velocity: 0.5 m / s, acceleration: 0.2 m / s². The system processes this data and generates the corresponding motion features: motion features: {joint angle: 30 degrees, velocity: 0.5 m / s, acceleration: 0.2 m / s²}. The system then randomly generates a noise feature, such as {joint angle: 3 degrees, velocity: 0.05 m / s, acceleration: 0.02 m / s²}. This noise serves as the initial predicted motion input feature and is fed into the diffusion model along with the motion features for subsequent motion trajectory prediction and optimization.
[0089] Step 2032: De-noise the predicted motion input features using the first diffusion model to obtain predicted motion output features of the passive motion, and modify the predicted motion output features using the motion features.
[0090] In some embodiments of the present application, the motion intention predictor 203 denoises the predicted motion input features through the first diffusion model to obtain the predicted motion output features of the passive motion, and corrects the predicted motion output features through the motion features. The denoising process is to eliminate the noise and uncertainty in the predicted motion input features so that the output features are more accurate and reliable. In the specific operation, the predicted motion input features generated in step 2031 need to be input into the first diffusion model first, and the input features need to be denoised to gradually reduce the noise components therein. The denoised output features are the predicted motion output features of the passive motion. After the denoising process, these output features also need to be compared and corrected with the actual motion features to ensure their accuracy and rationality. The corrected predicted motion output features are used for further motion trajectory generation and optimization.
[0091] For example, assume that the initial predicted motion input features generated in step 2031 are as follows: predicted joint angle: 33 degrees (including noise), predicted velocity: 0.55 m / s (including noise), predicted acceleration: 0.22 m / s² (including noise). Suppose that, after denoising using the first diffusion model, the following predicted motion output features are obtained: denoised predicted joint angle: 30 degrees, denoised predicted velocity: 0.5 m / s², denoised predicted acceleration: 0.2 m / s². These predicted motion output features are then compared with the actual motion features (e.g., 30 degrees, 0.5 m / s², 0.2 m / s²) and corrected to ensure the accuracy of the output features. The final corrected predicted motion output features are used in the next step of motion trajectory generation.
[0092] Step 2033 , when the number of first loop iterations is less than or equal to the preset first loop iteration threshold, the corrected predicted motion output feature is updated as a new predicted motion input feature, and the process returns to step 2032 .
[0093] The first loop iteration number is used to record the execution times of step 2032 .
[0094] In some embodiments of the present application, the motion intention predictor 203 will update the corrected predicted motion output features to new predicted motion input features when the number of first loop iterations is less than or equal to a preset first loop iteration threshold, and return to step 2032 to continue denoising. The first loop iteration number here is used to record the number of executions of step 2032 to ensure that the model gradually eliminates noise and optimizes the predicted features after a sufficient number of iterations. In specific operations, when the number of first loop iterations is less than or equal to a preset threshold, the system will use the corrected predicted motion output features as new predicted motion input features, re-input them into the first diffusion model, and perform denoising and correction again. This cycle will continue until the number of iterations reaches a preset threshold. Through multiple iterations, the system can gradually optimize the predicted motion output features and improve the accuracy and reliability of the prediction.
[0095] For example, assume that the preset first loop iteration threshold is 10 times. After the initial predicted motion input features undergo a denoising and correction process, the generated predicted motion output features are as follows: Corrected predicted joint angle: 29 degrees, Corrected predicted velocity: 0.48 m / s, Corrected predicted acceleration: 0.19 m / s². At this time, the system detects that the number of first loop iterations is 1, which is less than the preset threshold of 10. Therefore, the system updates the corrected predicted motion output features to new predicted motion input features and re-inputs them into the first diffusion model for a second denoising and correction process. This process is repeated until the number of first loop iterations reaches 10 to ensure that the model has undergone sufficient iterative optimization. Through this cyclic iterative process, the system can gradually eliminate the noise in the predicted motion features and obtain more accurate and reliable motion trajectory prediction results.
[0096] Step 2034 : When the first loop iteration number is greater than the first loop iteration threshold, the corrected predicted motion output feature is determined as the predicted feature of the motion trajectory of the passive motion, and the motion trajectory is generated according to the predicted feature.
[0097] In some embodiments of the present application, the motion intention predictor 203 will determine the corrected predicted motion output feature as the predicted feature of the motion trajectory of the passive motion when the number of first loop iterations is greater than the first loop iteration threshold, and generate the final motion trajectory based on the predicted feature. At this point, after multiple iterative processes, the predicted motion output feature has been fully denoised and optimized, and can accurately reflect the user's motion intention and state. In specific operations, when the number of first loop iterations exceeds the preset threshold, the system will no longer perform further iterative processing, but will determine the predicted motion output feature after the last correction as the final predicted feature. Based on these predicted features, the system generates the user's passive motion trajectory. The generated motion trajectory is used to guide the exoskeleton device to drive the user's first body part for rehabilitation training, ensuring the accuracy and effectiveness of the movement during the training process.
[0098] For example, assume that the first loop iteration threshold is 10 times. After the 11th iteration, the predicted motion output features obtained by the system are as follows: corrected predicted joint angle: 30 degrees, corrected predicted speed: 0.5 m / s, corrected predicted acceleration: 0.2 m / s². At this time, the number of iterations of the first loop is 11, which exceeds the preset threshold of 10. The system determines the above-mentioned corrected predicted motion output features as the final motion trajectory prediction features. Based on these prediction features, the system generates the user's final motion trajectory to ensure that the exoskeleton device drives the user's arm to move at an angle of 30 degrees, a speed of 0.5 m / s and an acceleration of 0.2 m / s² during rehabilitation training. Through this processing, the system can generate a motion trajectory suitable for the user's rehabilitation training on the basis of ensuring the accuracy of the predicted motion output features, thereby improving the effect and accuracy of the training.
[0099] like Figure 7 As shown, a complete process of obtaining a motion trajectory is obtained based on the process of the above embodiment. For details, refer to the following process:
[0100] S1: Obtain the initial motion input features by generating a random noise and start the iterative process of executing the motion input features; S2: Encode the motion data to obtain the motion features for correction; S3: Correct the motion input features obtained in each iterative process by obtaining the motion features obtained in step S2; S4: Obtain the final motion trajectory after satisfying the number of iterations of the first loop.
[0101] The interaction collector 204 is used to obtain interaction data when the first body part is driven.
[0102] The interaction data is used to characterize the mechanical feedback of the first body part to the exoskeleton during the process in which the first body part is driven by the exoskeleton.
[0103] In some embodiments of the present application, the primary function of the interaction collector 204 is to capture interaction data when a first body part is driven by an exoskeleton. This interaction data is used to characterize the mechanical feedback provided by the first body part to the exoskeleton during the exoskeleton's activation. This feedback data helps the system understand the interaction between the user and the exoskeleton and make necessary adjustments to optimize the effectiveness of rehabilitation training.
[0104] During operation, the interaction collector 204 uses multiple built-in sensors (such as force sensors and pressure sensors) to monitor and record the user's mechanical feedback in real time. For example, when the user's arm is driven by the exoskeleton, the interaction collector 204 can detect the magnitude and direction of the force exerted by the arm on the exoskeleton. This data is transmitted to the interaction state evaluator 205 for further analysis and evaluation.
[0105] Optionally, the interaction collector 204 includes a sensor 2041 and an encoder 2042;
[0106] The sensor 2041 is used to obtain a mechanical feedback value of the first body part to the exoskeleton and / or a spatial data value of the exoskeleton driving when the first body part is driven by the exoskeleton.
[0107] In some embodiments of the present application, the rotating component 2041 is a core component in the interactive collector 204, and its main function is to obtain the mechanical feedback value of the first body part to the exoskeleton and / or the spatial data value of the exoskeleton driving during the exoskeleton driving process. The mechanical feedback value refers to the magnitude and direction of the force generated by the user's body part when driven by the exoskeleton. These values reflect the user's mechanical response state. The spatial data value refers to the displacement, velocity, acceleration and other data experienced by the exoskeleton during the driving process. These data help to describe the motion trajectory of the exoskeleton in space. In actual operation, the rotating component 2041 monitors the user's mechanical feedback and the motion state of the exoskeleton in real time through a variety of built-in sensors, such as force sensors and position sensors. The data obtained by the sensors will be further processed and analyzed to optimize the rehabilitation training process and ensure the safety and effectiveness of the training.
[0108] The encoder 2042 is configured to generate interaction data based on the mechanical feedback value and / or the spatial data value.
[0109] In some embodiments of the present application, the main function of the encoder 2042 is to generate interactive data based on mechanical feedback values and / or spatial data values. The mechanical feedback values reflect the magnitude and direction of the force generated by the user's body parts when driven by the exoskeleton, while the spatial data values describe the parameters such as displacement, velocity and acceleration experienced by the exoskeleton during movement. The encoder 2042 generates the interactive data required by the system by encoding and processing these data to further analyze and optimize the rehabilitation training process. In specific operation, the encoder 2042 receives the mechanical feedback values and spatial data values from the rotating component 2041. These data are first pre-processed, such as removing noise and outliers, and then the encoder 2042 converts them into a standardized interactive data format to facilitate subsequent evaluation and optimization of the system. The generated interactive data may include detailed information such as the user's mechanical response at a specific time point and the motion state of the exoskeleton.
[0110] The interaction state evaluator 205 is used to input the interaction data into the evaluation model to obtain an interaction evaluation value for the passive motion.
[0111] Among them, the interaction evaluation value is positively correlated with the difference between the interaction data and the preset interaction statistics.
[0112] In some embodiments of the present application, the primary function of the interaction state evaluator 205 is to input interaction data into an evaluation model to obtain an interaction evaluation value for passive motion. The interaction evaluation value measures the degree of difference between the user's first body part, when driven by the exoskeleton, and preset interaction statistics. This evaluation allows for real-time understanding of the interaction state between the user and the exoskeleton, providing a basis for further optimization of the system.
[0113] In actual operation, the interaction state evaluator 205 receives interaction data from the interaction collector 204. This data includes information such as the user's mechanical feedback and motion response. The evaluation model processes and analyzes this data to generate an interaction evaluation value. This evaluation value reflects the difference between the user's current interaction state and the standard statistical data of healthy people. The higher the interaction evaluation value, the greater the difference between the current interaction state and the ideal state.
[0114] Optionally, the interaction state evaluator 205 implements the process of inputting the interaction data into the evaluation model to obtain the interaction evaluation value of the passive motion through the following steps:
[0115] Step 2051: Input the interaction data into the second diffusion model to obtain interaction prediction data of the interaction data.
[0116] In some embodiments of the present application, the interaction state evaluator 205 inputs the interaction data into the second diffusion model to obtain interaction prediction data of the interaction data. Interaction data refers to the mechanical feedback generated by the body parts of the user to the exoskeleton device when the user uses the exoskeleton device for rehabilitation training. The second diffusion model is a generation model based on probability and random processes, which can process complex interaction data and make predictions. In specific operations, the interaction data generated by the user during the training process is first collected. These data include information such as the force and displacement exerted by the user's body parts on the exoskeleton. Then, these data are input into the pre-trained second diffusion model. The model generates corresponding interaction prediction data through multiple iterative calculations of the input data. These prediction data reflect the interactive mechanical feedback that the user may generate under the same conditions under ideal circumstances.
[0117] For example, during upper limb rehabilitation training, the interaction collector records the force and displacement data applied by the user's arm to the exoskeleton. For example, the interaction data at a certain moment might be as follows: force: 5 Newtons, displacement: 2 cm. This interaction data is fed into the second diffusion model, and after multiple iterations, the model generates the following interaction prediction data: predicted force: 5.2 Newtons, predicted displacement: 2.1 cm. This interaction prediction data is used in subsequent interaction state evaluation and optimization processes to ensure the accuracy and effectiveness of rehabilitation training.
[0118] Optionally, step 2051 includes the following sub-steps:
[0119] Sub-step 20511, randomly adding a noise to the interaction data as an initial predicted interaction input feature;
[0120] In some embodiments of the present application, a noise is randomly added to the interaction data as an initial prediction interaction input feature. By introducing random noise, the diversity and complexity of the data can be increased, thereby enhancing the generalization ability of the model so that it can perform well when faced with different types of interaction data. This process simulates various disturbances and uncertainties that may occur in actual use, helping the model to learn in a more complex environment. In specific operations, the system first obtains the original interaction data, which includes the mechanical feedback of the first body part to the exoskeleton during the user's use of the exoskeleton device. Then, the system randomly generates a noise for each set of interaction data, for example, the noise can be generated according to a normal distribution, and added to the original data. These noises can be random values of different intensities and distributions set according to the characteristics of the data and training requirements.
[0121] For example, in upper limb rehabilitation training, suppose the original interaction data at a certain moment is: interaction force: 6 Newtons, displacement: 2.5 cm. The system randomly generates noise, for example, the noise can be: interaction force + 0.3 Newtons, displacement + 0.1 cm. The noise is added to the original interaction data to obtain the initial predicted interaction input features: predicted interaction force: 6.3 Newtons, predicted displacement: 2.6 cm. By introducing these random noises, the model can learn in a more complex and diverse training environment, improving its predictive ability and adaptability in practical applications.
[0122] Sub-step 20512: De-noise the predicted interaction input features using the second diffusion model to obtain predicted interaction output features of the interaction data.
[0123] In some embodiments of the present application, the predicted interaction input features are denoised by a second diffusion model to obtain predicted interaction output features of the interaction data. The denoising process is to reduce the noise components in the predicted interaction input features so that the output features are more accurate and reliable. The second diffusion model performs multiple iterative calculations on the input features to gradually eliminate the noise and generate clearer and more realistic interaction features. In the specific operation, the initial predicted interaction input features generated in sub-step 20511 are first input into the second diffusion model. The diffusion model uses a step-by-step denoising method to reduce the noise components in each iteration and extract more realistic interaction features. After multiple iterations, the output features finally generated by the model are the predicted interaction output features of the interaction data.
[0124] For example, suppose in substep 20511, the initial predicted interaction input features are: predicted interaction force: 6.3 Newtons, predicted displacement: 2.6 cm. These initial features are input into the second diffusion model for denoising. After several iterations, the model gradually eliminates the noise components, and the final predicted interaction output features generated are: denoised predicted interaction force: 6 Newtons, denoised predicted displacement: 2.5 cm. These denoised output features more accurately reflect the actual interaction state, providing a reliable data foundation for subsequent training and optimization. Through this process, the second diffusion model can effectively extract useful interaction features from noisy data, improving the accuracy and reliability of interaction state prediction.
[0125] Sub-step 20513, when the number of second loop iterations is less than or equal to the preset second loop iteration threshold, updates the predicted interaction output feature to the new predicted interaction input feature, and returns to sub-step 20512.
[0126] The second loop iteration count is used to record the number of times sub-step 20512 is executed.
[0127] In some embodiments of the present application, when the number of second loop iterations is less than or equal to a preset second loop iteration threshold, the predicted interaction output feature is updated to a new predicted interaction input feature, and the process returns to sub-step 20512 to continue denoising. This iterative process is intended to gradually eliminate noise and make the predicted interaction output feature more accurate. In specific operations, after each iteration, the system will use the denoised predicted interaction output feature as the input feature for the next iteration, and continue to perform denoising and correction processing until the preset number of iterations is reached. The second loop iteration number is used to record the number of executions of sub-step 20512 to ensure that the model has been fully iteratively optimized.
[0128] For example, assume the preset second loop iteration threshold is 10 times. In each iteration, the system updates the latest predicted interaction output features to new predicted interaction input features and re-inputs them into the second diffusion model for denoising. After 10 iterations, the system stops the iteration process and proceeds to the next step based on the latest predicted interaction output features. Through this iterative optimization process, the second diffusion model can gradually improve its prediction accuracy of user interaction status, ensuring the effectiveness of interaction status assessment and rehabilitation training.
[0129] Sub-step 20514, when the second loop iteration number is greater than the second loop iteration threshold, determines the predicted interaction output feature as the interaction prediction data.
[0130] In some embodiments of the present application, when the number of second loop iterations is greater than a preset second loop iteration threshold, the predicted interaction output feature is determined as interaction prediction data. Through this process, the system can ensure that the model has undergone sufficient iterative optimization so that the final prediction feature has high accuracy and reliability. In specific operation, when the system detects that the number of second loop iterations has exceeded the preset iteration threshold, further iterative processing will be stopped. At this time, the predicted interaction output feature generated by the latest iteration is determined as the final interaction prediction data. These interaction prediction data will be used for subsequent evaluation and optimization to help the system achieve more accurate interaction state prediction and rehabilitation training.
[0131] For example, suppose the preset second loop iteration threshold is 10. After several iterations, the system records the number of second loop iterations as 11. Because the number of second loop iterations exceeds the preset threshold of 10, the system stops further iterative processing and determines the predicted interaction output features generated by the most recent iteration as the interaction prediction data. This finalized interaction prediction data will be used for subsequent interaction status assessment and rehabilitation training optimization, ensuring that the system can provide accurate and reliable predictions in actual applications, improving the effectiveness of rehabilitation training and user experience.
[0132] Step 2052: Determine the value of the second-order moment of the interaction data and the interaction prediction data as the interaction evaluation value.
[0133] In some embodiments of the present application, the interaction state evaluator 205 determines the value of the second moment of the interaction data and the interaction prediction data as the interaction evaluation value. The second-order moment is a measurement method in statistics, which is used to describe the degree of discreteness of the data distribution. Here, the second-order moment is used to evaluate the degree of difference between the actual interaction data and the predicted interaction data, and then quantify the actual interaction state of the user. In the specific operation, the second-order moment of the interaction data and the interaction prediction data is first calculated. The second-order moment refers to the average value of the square difference of the data relative to its mean. By calculating the second-order moment of the interaction data and the interaction prediction data, an interaction evaluation value can be obtained. The higher the evaluation value, the greater the gap between the user's actual interaction state and the predicted state; the lower the evaluation value, the smaller the gap between the two.
[0134] For example, in upper limb rehabilitation training, assume the following interaction data and predicted interaction data at a certain moment: interaction data: force = 5 Newtons, displacement = 2 cm; interaction predicted data: force = 5.2 Newtons, displacement = 2.1 cm. Next, calculate the second-order moments of these data. First, calculate their difference: force difference = (5 - 5.2) = -0.2 Newtons, displacement difference = (2 - 2.1) = 0.1 cm. Then, the second-order moment = 0.2² + 0.1² = 0.05, thus obtaining the interaction evaluation value. This interaction evaluation value is used to measure the current user interaction status and provide a basis for system optimization and adjustment.
[0135] like Figure 8 FIG. 1 is a complete process of determining an interaction evaluation value based on the process of the above embodiment. Specifically, refer to the following process:
[0136] M1: Add a random noise to the interaction data to obtain the initial predicted interaction input features; M2: Starting from the initial predicted interaction input features, execute the iterative process of predicted interaction features; M3: After meeting the second loop iteration number, use the final predicted interaction output features to obtain the final interaction evaluation value.
[0137] The interaction state optimizer 206 is configured to adjust the motion trajectory determined by the motion intention predictor according to the interaction evaluation value, so as to reduce the interaction evaluation value.
[0138] In some embodiments of the present application, the primary function of the interaction state optimizer 206 is to adjust the motion trajectory determined by the motion intention predictor based on the interaction evaluation value to ensure that the interaction evaluation value tends to decrease. The interaction evaluation value reflects the difference between the current interaction state between the user and the exoskeleton and the ideal state. By optimizing this value, the system can improve the quality and effectiveness of the rehabilitation training process.
[0139] During operation, the interaction state optimizer 206 receives the interaction evaluation value from the interaction state evaluator 205. If the evaluation value is high, it indicates that there is a significant gap between the current interaction state and the preset standard. Based on this evaluation value, the interaction state optimizer 206 adjusts the motion trajectory generated by the motion intention predictor 203. Adjustments include modifying the path, speed, and force distribution of the motion trajectory to ensure that the user's rehabilitation training is more tailored to their actual needs.
[0140] Optionally, the interaction state optimizer 206 adjusts the motion trajectory determined by the motion intention predictor according to the interaction evaluation value to reduce the interaction evaluation value through the following steps:
[0141] Step 2061 : Using the interaction evaluation value and the motion trajectory determined by the motion intention predictor as the initial boundary, solving a preset optimization equation to obtain an optimized motion trajectory, and determining the optimized motion trajectory as the adjusted motion trajectory.
[0142] In some embodiments of the present application, the interaction state optimizer 206 uses the interaction evaluation value and the motion trajectory determined by the motion intention predictor as the initial boundary, solves the preset optimization equation to obtain the optimized trajectory of the motion trajectory, and determines the optimized trajectory as the adjusted motion trajectory. This step dynamically adjusts the motion trajectory through the solution process of the optimization equation to ensure that the interaction state is improved, thereby reducing the interaction evaluation value. In the specific operation, the interaction evaluation value generated by the interaction state evaluator 205 and the motion trajectory generated by the motion intention predictor 203 are first used as input parameters and set as the initial boundary of the optimization equation. The optimization equation solves the optimized motion trajectory that can minimize the interaction evaluation value according to the preset objective function. This optimization process takes into account the user's actual motor ability and needs, ensuring that the adjusted motion trajectory meets the rehabilitation training goals without causing excessive mechanical feedback or fatigue.
[0143] For example, assuming that the interaction evaluation value generated by the interaction state evaluator 205 is 0.55, and the initial motion trajectory generated by the motion intention predictor 203 is as follows: joint angle: 25 degrees, speed: 0.4 m / s, acceleration: 0.15 m / s², the optimization equation set by the system aims to minimize the interaction evaluation value and ensure that the motion trajectory is within a safe range. By solving the optimization equation, the system obtains the following optimized motion trajectory: optimized joint angle: 28 degrees, optimized speed: 0.45 m / s, optimized acceleration: 0.18 m / s². This optimized trajectory will replace the initial motion trajectory as the adjusted motion trajectory and be applied to the exoskeleton device to drive the user's first body part for rehabilitation training. This optimization adjustment ensures the user's comfort and safety during the training process, while improving the effect of rehabilitation training.
[0144] Preferably, in some further embodiments of the present application, the optimization equation in step 2061 may be: ;
[0145] Among them, q d represents the expected trajectory; q r represents the reference trajectory; t represents the current time step, N p represents the prediction time step, i is the representative element of the time step; Q and R both represent diagonal positive definite matrices; I represents the identity matrix; x d For q d and q d The composite vector composed of the rate of change of ; Δt represents the time interval; f represents the function that generates s, that is, s=f(xd); u d Indicates q d acceleration; τ e represents the interaction torque between the user and the exoskeleton; K a represents the impedance stiffness between the user and the exoskeleton; C a represents the damping coefficient between the user and the exoskeleton, X represents the trajectory space, and U represents the acceleration space.
[0146] The optimization process simultaneously considers the deviation between the desired and reference trajectories, the squared acceleration, and the cumulative error, achieving multi-objective optimization and enabling more comprehensive optimization of all aspects of rehabilitation training. Matrix operations also simplify complex computational processes and improve efficiency. This is particularly important for real-time adjustment of the exoskeleton's trajectory. By also accounting for time variables, dynamic adjustments can be made, enabling the exoskeleton to respond to the patient's actual needs in real time, providing more personalized and precise rehabilitation training. Incorporating the interaction torque between the user and the exoskeleton into the calculation allows for better assessment and optimization of human-machine interaction, enhancing the safety and effectiveness of rehabilitation training. Parameters such as impedance stiffness and damping coefficient are incorporated into the calculation process. By adjusting these parameters, the mechanical properties between the exoskeleton and the user can be precisely controlled, further improving rehabilitation outcomes. By optimizing the equations, trajectory deviation, acceleration, and cumulative error can be minimized, resulting in an optimized trajectory. This allows the exoskeleton to better drive the patient through rehabilitation training, achieving more precise and efficient training results.
[0147] Figure 9 This embodiment provides a diffusion model training method for training the first diffusion model in the dual-modal upper limb exoskeleton rehabilitation training system based on the generative model mentioned in the above embodiment, specifically comprising the following steps:
[0148] Step 301: construct a first training set.
[0149] The first training set includes motion training data; the motion training data is used to characterize the motion of a second body part of a pre-screened user; the second body part is all or part of the user's body parts other than the first body part; and the first body part is the body part used to be driven by the exoskeleton.
[0150] In some embodiments of the present application, a first training set is constructed, which includes motion training data. The motion training data is used to characterize the motion of a second body part of a pre-screened user. The second body part refers to all or part of the user's body parts other than the first body part. The first body part is the body part that is driven by the exoskeleton. For example, in upper limb rehabilitation training, the first body part is typically the user's arm, while the second body part may include the shoulder, elbow, or hand. The process of constructing the training set typically includes collecting, organizing, and labeling data. First, motion data of the second body part is collected from the pre-screened users. This data can be obtained through various sensors (such as accelerometers, gyroscopes, etc.). Next, this data is organized and labeled to ensure that each data point accurately represents the user's motion. Finally, the processed data is compiled into a training set for use in training the first diffusion model.
[0151] For example, in an upper limb rehabilitation training program, researchers collected arm (secondary body part) motion data from 20 pre-screened users. This data included changes in arm joint angles, time series data, arm velocity and acceleration, and other time series data. After organizing and annotating this data, they constructed the first training set. This training set was used to train the first diffusion model, enabling it to better predict the motion trajectories of different users and adapt to the rehabilitation needs of varying impairment levels. Through this training, the system can improve prediction accuracy and rehabilitation outcomes, ensuring more personalized and efficient rehabilitation training for patients.
[0152] Step 302: randomly add a noise to the motion training data as an initial predicted motion training input feature.
[0153] In some embodiments of the present application, a noise is randomly added to the motion training data as the initial predicted motion training input feature. The purpose of this process is to enhance the generalization ability of the model by introducing randomness and uncertainty, so that it can show good prediction results when faced with different types of motion data. In specific operation, the system first obtains the motion training data constructed in step 301. Then, the system randomly adds a noise to each set of motion data. The size and distribution of the noise can be set according to the data characteristics and training requirements. For example, the noise can be made to conform to a normal distribution. By adding noise, various disturbances and abnormal situations that may occur during actual motion can be simulated, so that the model can be trained in a more diverse data environment.
[0154] For example, suppose the motion training dataset contains the following original motion data: joint angle: 30 degrees, speed: 0.5 m / s, acceleration: 0.2 m / s². The system randomly generates a noise, such as: joint angle +2 degrees, speed -0.05 m / s, acceleration +0.02 m / s². The noise is added to the original motion data to obtain the initial predicted motion training input features: predicted joint angle 32 degrees, predicted speed 0.45 m / s, predicted acceleration 0.22 m / s². By introducing such random noise, the model can learn in a more diverse and uncertain training environment, thereby improving its prediction and adaptability in real application scenarios.
[0155] Step 303 : Denoise the predicted motion training input features using the first diffusion model to be trained to obtain predicted motion training output features of the motion training data, and correct the motion training output features using the motion training data.
[0156] In some embodiments of the present application, the predicted motion training input features are subjected to a denoising process by a first diffusion model to be trained to obtain predicted motion training output features for motion training data. The denoising process is intended to reduce the noise components in the predicted motion training input features, making the output features more accurate and reliable. The diffusion model performs multiple iterative calculations on the input features, gradually eliminating noise and generating clearer and more accurate motion features. In specific operation, the initial predicted motion training input features generated in step 302 are first input into the first diffusion model. The diffusion model uses a step-by-step denoising method to reduce the noise components in each iteration and extract more realistic motion features. After multiple iterations, the output features ultimately generated by the model are the predicted motion training output features for motion training data.
[0157] For example, suppose in step 302, the initial predicted motion training input features are: predicted joint angle 32 degrees, predicted velocity 0.45 m / s, and predicted acceleration 0.22 m / s². These initial features are input into the first diffusion model for denoising. After several iterations, the model gradually eliminates the noise components, and the final predicted motion training output features generated are: denoised predicted joint angle: 30 degrees, denoised predicted velocity: 0.5 m / s, and denoised predicted acceleration: 0.2 m / s².
[0158] In step 304, the corrected motion training output feature is updated as a new motion training input feature, and the process returns to step 303. After reaching a preset first training iteration number, a first training function value of the first diffusion model is determined according to a preset first training function formula.
[0159] The number of iterations of the first training cycle is used to record the number of executions of step 303 .
[0160] In some embodiments of the present application, the motion training output features will be updated to new motion training input features, and the process returns to step 303 to continue denoising. This loop process stops after reaching the preset first number of training iterations. After reaching the number of iterations, the system determines the first training function value of the first diffusion model according to the preset first training function formula. The number of training loop iterations is used to record the number of executions of step 303 to ensure that the model has undergone sufficient iterative optimization. In specific operations, after each iteration, the system will use the denoised motion training output features as the input features of the next iteration, and continuously perform denoising and correction processing until the preset number of training iterations is reached. Then, the system calculates the training function value of the model based on the training function formula. This value reflects the performance and convergence of the model on a specific training set.
[0161] For example, assume the preset number of first training iterations is 10. In each iteration, the system updates the latest motion training output features as new predicted motion training input features and re-inputs them into the first diffusion model for denoising. After 10 iterations, the system calculates the training function value of the first diffusion model according to the preset training function formula.
[0162] Step 305 : When the first training function value is less than a preset first training threshold, a trained first diffusion model is obtained.
[0163] In some embodiments of the present application, a trained first diffusion model will be obtained when the first training function value is less than a preset first training threshold. The training function value is used to measure the performance of the model during the training process, and the threshold is the standard for judging whether the model has achieved the expected performance. If the training function value is lower than the preset threshold, it means that the model has converged and performed well, and the training can be stopped to obtain the final model. In specific operation, after the system calculates the training function value of the first diffusion model, it will be compared with the preset training threshold. If the training function value is less than the threshold, it means that the error of the model on the training data has dropped to an acceptable range, the training process can be ended, and the model is ready to be applied to actual rehabilitation training scenarios. If the training function value does not reach the preset threshold, the system may need to adjust the model parameters or increase the number of training iterations until the model achieves the expected performance.
[0164] For example, suppose the preset first training threshold is 0.01. After multiple iterations, the system calculates the training function value of the first diffusion model as follows: Training function value: 0.008. Since the training function value 0.008 is less than the preset threshold 0.01, the system determines that the model has reached the expected performance standard and the training process can be stopped. At this point, the trained first diffusion model is considered to have good predictive ability and can be used in actual rehabilitation training to help patients predict movement intentions and optimize trajectories, thereby improving rehabilitation effects. Through such a judgment and optimization mechanism, the reliability and effectiveness of the model in practical applications are ensured.
[0165] like Figure 10 FIG. 1 shows a complete process of training a first diffusion model based on the process of the above embodiment. Specifically, refer to the following process:
[0166] R1: Obtain undiffused motion training data from the first training set and start the iterative process of executing motion training input features; R2: Encode the historical motion data to obtain motion training features for correction; R3: Correct the motion training input features obtained in each iteration process by obtaining the motion training features through step R2; R4: After meeting the first number of training iterations, obtain the first diffusion model that completes the training.
[0167] Figure 11 Another diffusion model training method provided in an embodiment of the present application is used to train the second diffusion model in the dual-modal upper limb exoskeleton rehabilitation training system based on the generative model mentioned in the above embodiment, including the following steps:
[0168] Step 401: construct a second training set.
[0169] The second training set includes interactive training data; the interactive training data is used to characterize the mechanical feedback of the first body part of the pre-screened user to the exoskeleton during the process in which the first body part is driven by the exoskeleton.
[0170] In some embodiments of the present application, a second training set is constructed, comprising interactive training data. This interactive training data is used to characterize the mechanical feedback provided by a pre-screened user's first body part to the exoskeleton while being driven by the exoskeleton. The first body part refers to the user's primary moving part, such as an arm or leg. Mechanical feedback refers to the force and response data applied by that body part to the exoskeleton during rehabilitation training. This data is important for evaluating and optimizing human-machine interaction. The process of constructing the second training set typically includes the following steps: data collection, data preprocessing, and data annotation. First, mechanical feedback data from the first body part of the pre-screened user during rehabilitation training using the exoskeleton device is collected. This data can be acquired using devices such as force sensors and position sensors. Next, the collected data is preprocessed, for example, to remove noise and outliers to ensure data accuracy and reliability. Finally, the preprocessed data is annotated and organized to form a structured training set for use in training the second diffusion model.
[0171] For example, in an upper limb rehabilitation training program, researchers collected mechanical feedback data from the arms (the primary body part) of 20 pre-screened users. This data included time series data on the force applied by the user's arm at different points in time, and time series data on the displacement feedback the arm gave to the exoskeleton during movement. After preprocessing and annotating this mechanical feedback and displacement data, a second training set was constructed. This training set was used to train a second diffusion model, enabling it to better predict and evaluate the user's interaction status during rehabilitation training, improving the effectiveness of human-computer interaction and the accuracy of rehabilitation training. Through this training, the system can more intelligently adapt to the user's individual needs, achieving a more effective rehabilitation process.
[0172] Step 402: randomly add a noise to the interactive training data as an initial prediction interactive training input feature.
[0173] In some embodiments of the present application, a noise is randomly added to the interactive training data as the initial predictive interactive training input feature. By introducing random noise, the generalization ability of the model can be enhanced so that it can show good prediction results when faced with different types of interactive data. This process simulates various uncertainties and disturbances that may occur in the actual training process, helping the model to learn in a more complex environment. In specific operations, the system first obtains the interactive training data constructed in step 401. Then, the system randomly adds noise to each set of interactive training data, for example, the noise can be normally distributed. The size and distribution of the noise can be set according to the characteristics of the data and the training requirements. By adding these random elements, the training data is more diversified, providing a rich learning scenario for the model.
[0174] For example, suppose the interaction training dataset contains the following original data: interaction force: 5 Newtons, displacement: 2 cm. The system randomly generates noise, such as noise: interaction force +0.5 Newtons, displacement -0.2 cm. The noise is added to the original interaction training data to obtain the initial predicted interaction training input features: predicted interaction force: 5.5 Newtons, predicted displacement: 1.8 cm. By adding these random noises, the model can learn in a more diverse and uncertain training environment, thereby improving its predictive ability and adaptability in practical applications.
[0175] Step 403: De-noise the predicted interactive training input features using the second diffusion model to be trained to obtain predicted interactive training output features of the interactive training data.
[0176] In some embodiments of the present application, the predicted interactive training input features are denoised by the second diffusion model to be trained to obtain predicted interactive training output features of the interactive training data. The denoising process is to reduce the noise components in the predicted interactive training input features so that the output features are more accurate and reliable. The second diffusion model performs multiple iterative calculations on the input features to gradually eliminate the noise and generate clearer and more accurate interactive features. In the specific operation, the initial predicted interactive training input features generated in step 402 are first input into the second diffusion model. The diffusion model adopts a step-by-step denoising method to reduce the noise components in each iteration and extract more realistic interactive features. After multiple iterations, the output features finally generated by the model are the predicted interactive training output features of the interactive training data.
[0177] For example, assume that in step 402, the initial predicted interaction training input features are: predicted interaction force: 5.5 Newtons, predicted displacement: 1.8 cm. These initial features are input into the second diffusion model for denoising. After several iterations, the model gradually eliminates the noise components, and the final predicted interaction training output features generated are: denoised predicted interaction force: 5 Newtons, denoised predicted displacement: 2 cm. These denoised output features more accurately reflect the actual interaction situation, providing a reliable data foundation for subsequent training and optimization. Through this process, the second diffusion model can effectively extract useful interaction features from noisy data, improving the accuracy and reliability of interaction state prediction.
[0178] In step 404, the interactive training output feature is updated to a new interactive training input feature, and the process returns to step 403. After reaching a preset second training iteration number, a second training function value of the second diffusion model is determined according to a preset second training function formula.
[0179] The second training loop iteration number is used to record the execution times of step 403 .
[0180] In some embodiments of the present application, the interactive training output features will be updated to new interactive training input features, and the process returns to step 403 to continue denoising. This loop process stops after reaching the preset second number of training iterations. After reaching the number of iterations, the system determines the second training function value of the second diffusion model according to the preset second training function formula. The second training loop iteration number is used to record the number of executions of step 403 to ensure that the model has undergone sufficient iterative optimization. In specific operations, after each iteration, the system will use the denoised interactive training output features as the input features of the next iteration, and continuously perform denoising and correction processing until the preset number of training iterations is reached. Then, the system calculates the training function value of the model based on the training function formula. This value reflects the performance and convergence of the model on a specific training set.
[0181] For example, assume the preset number of second training iterations is 10. In each iteration, the system updates the most recent interactive training output features as new predicted interactive training input features and re-inputs them into the second diffusion model for denoising. After 10 iterations, the system calculates the training function value of the second diffusion model according to the preset training function formula.
[0182] Step 405 : When the second training function value is less than a preset second training threshold, a trained second diffusion model is obtained.
[0183] In some embodiments of the present application, a trained second diffusion model will be obtained when the second training function value is less than a preset second training threshold. The training function value is used to measure the performance of the model during the training process, and the threshold is the standard for judging whether the model has achieved the expected performance. If the training function value is lower than the preset threshold, it means that the model has converged and performed well, and the training can be stopped to obtain the final model. In specific operation, after the system calculates the training function value of the second diffusion model, it will be compared with the preset training threshold. If the training function value is less than the threshold, it means that the error of the model on the training data has dropped to an acceptable range, the training process can be ended, and the model is ready to be applied to actual rehabilitation training scenarios. If the training function value does not reach the preset threshold, the system may need to adjust the model parameters or increase the number of training iterations until the model achieves the expected performance.
[0184] For example, suppose the preset second training threshold is 0.02. After multiple iterations, the system calculates the training function value of the second diffusion model to be 0.015. Since the training function value 0.015 is less than the preset threshold of 0.02, the system determines that the model has reached the expected performance standard and the training process can be stopped. At this point, the trained second diffusion model is considered to have good predictive capabilities and can be used in actual rehabilitation training to help users predict movement intentions and evaluate interaction status, thereby improving rehabilitation effects. Through such a judgment and optimization mechanism, the reliability and effectiveness of the model in practical applications are ensured.
[0185] like Figure 12 FIG. 1 shows a complete process of training a second diffusion model based on the process of the above embodiment. Specifically, refer to the following process:
[0186] N1: Add a random noise to the interactive training data to obtain the initial predicted interactive input features, and start from the initial predicted interactive input features to perform the iterative process of predicting interactive features; N2: After meeting the second number of training iterations, obtain the second diffusion model that has completed training.
[0187] like Figure 13 FIG. 5 shows a diffusion model training device 50 disclosed in an embodiment of the present application, which is used to train the first diffusion model in the dual-modal upper limb exoskeleton rehabilitation training system based on the generative model disclosed in the above embodiment, specifically including:
[0188] A first training set module 501 is configured to construct a first training set; the first training set includes motion training data; the motion training data is configured to characterize the motion of a second body part of a pre-screened user; the second body part is all or part of the user's body parts other than the first body part; the first body part is the body part driven by the exoskeleton;
[0189] A first noise module 502 is configured to randomly add noise to the motion training data as an initial predicted motion training input feature;
[0190] A first execution module 503 is configured to denoise the predicted motion training input features using a first diffusion model to be trained to obtain predicted motion training output features of the motion training data, and correct the motion training output features using the motion training data;
[0191] The first iteration module 504 is configured to update the corrected motion training output features to new motion training input features, and return to the step of denoising the predicted motion training input features using the first diffusion model to be trained to obtain predicted motion training output features of the motion training data. After reaching a preset first training iteration number, the first training function value of the first diffusion model is determined according to a preset first training function formula. The first training loop iteration number is used to record the number of times the predicted motion training input features are denoised using the first diffusion model to be trained to obtain predicted motion training output features of the motion training data.
[0192] The first model module 505 is configured to obtain a trained first diffusion model when the first training function value is less than a preset first training threshold.
[0193] like Figure 14 FIG. 6 shows a diffusion model training device 60 disclosed in an embodiment of the present application, which is used to train the second diffusion model in the dual-modal upper limb exoskeleton rehabilitation training system based on the generative model disclosed in the above embodiment, specifically including:
[0194] The second training set module 601 is used to construct a second training set; the second training set includes interactive training data; the interactive training data is used to represent the mechanical feedback of the first body part of the pre-screened user to the exoskeleton during the process of the first body part being driven by the exoskeleton;
[0195] The second noise module 602 is used to randomly add noise to the interactive training data as an initial prediction interactive training input feature;
[0196] A second execution module 603 is configured to denoise the predicted interactive training input features using a second diffusion model to be trained to obtain predicted interactive training output features of the interactive training data;
[0197] The second iteration module 604 is configured to update the interactive training output feature to a new interactive training input feature, and return to the step of denoising the predicted interactive training input feature using the second diffusion model to be trained to obtain the predicted interactive training output feature of the interactive training data. After reaching a preset second training iteration number, the second training function value of the second diffusion model is determined according to a preset second training function formula. The second training loop iteration number is used to record the number of times the predicted interactive training input feature is denoised using the second diffusion model to be trained to obtain the predicted interactive training output feature of the interactive training data.
[0198] The second model module 605 is configured to obtain a trained second diffusion model when the second training function value is less than a preset second training threshold.
[0199] In summary, in the embodiment of the present application, by introducing a motion collector, the system can obtain the user's motion data in real time, and use the diffusion model to analyze this data to predict intentions, and replace the preset trajectory with the generated trajectory, so that the device can be dynamically adjusted according to the patient's specific situation, thereby better adapting to the rehabilitation needs of patients with different degrees of impairment, and improving rehabilitation effects and training autonomy. This method optimizes and limits each training session in real time, and makes smarter decisions based on the real-time status of the rehabilitator. Therefore, the method based on the embodiment of the present application effectively solves the problems of insufficient autonomy and safety of rehabilitation training in the prior art through intelligent motion intention prediction and trajectory adjustment, and significantly improves the rehabilitation effect and patient training experience.
[0200] The present application also provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements the various processes of the aforementioned embodiment of the diffusion model training method and achieves the same technical effects. To avoid repetition, the details are omitted here. The computer-readable storage medium may be, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0201] Figure 15 7 is a block diagram of an electronic device 700 provided in an embodiment of the present application. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0202] Reference Figure 15, electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .
[0203] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-described diffusion model training method. In addition, the processing component 702 may include one or more modules to facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
[0204] The memory 704 is used to store various types of data to support operations on the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, multimedia, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0205] The power supply component 706 provides power to the various components of the electronic device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 700.
[0206] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, it may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensors can not only sense the demarcation of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, the multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When the electronic device 700 is in an operating mode, such as a capture mode or a multimedia mode, the front-facing camera and / or the rear-facing camera can receive external multimedia data. Each front-facing camera and the rear-facing camera can have a fixed optical lens system or have focal length and optical zoom capabilities.
[0207] The audio component 710 is used to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC) that receives external audio signals when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, or a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0208] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to, a home button, volume buttons, a start button, and a lock button.
[0209] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 700, the relative positioning of components, such as the display and keypad of the electronic device 700. The sensor assembly 714 can also detect changes in the position of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and temperature changes of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0210] The communication component 716 is used to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 7G), or a combination thereof. In an exemplary embodiment, the communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0211] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement the diffusion model training method provided in the embodiments of the present application.
[0212] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions. The instructions are executable by the processor 720 of the electronic device 700 to implement the above-described diffusion model training method. For example, the non-transitory storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, or the like.
[0213] Figure 16 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 can be provided as a server. Figure 16 Electronic device 800 includes a processing component 822, which further includes one or more processors, and memory resources represented by memory 832 for storing instructions executable by processing component 822, such as applications. The applications stored in memory 832 may include one or more modules, each corresponding to a set of instructions. In addition, processing component 822 is configured to execute instructions to perform the diffusion model training method provided in embodiments of the present application.
[0214] The electronic device 800 may further include a power supply component 826 configured to perform power management of the electronic device 800, a wired or wireless network interface 850 configured to connect the electronic device 800 to a network, and an input / output (I / O) interface 858. The electronic device 800 may operate based on an operating system stored in the memory 832, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0215] Those skilled in the art will readily recognize other embodiments of the present application after considering the specification and practicing the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary means in the art not disclosed herein. The description and examples are to be considered merely as exemplary, with the true scope and spirit of the present application being indicated by the following claims. Those skilled in the art will readily recognize that any combination of the above-described embodiments is feasible, and therefore any combination of the above-described embodiments is an embodiment of the present application. However, due to space limitations, this specification does not detail each of these embodiments. It should be noted that the above-described embodiments illustrate rather than limit the present application, and those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The use of the words first, second, etc. does not imply any order. These words may be interpreted as names.
Claims
1. A dual-modal upper limb exoskeleton rehabilitation training system based on generative model, characterized in that: Includes exoskeleton, motion collector and motion intention predictor; The exoskeleton is configured to drive a first body part of a user so as to enable passive movement of the first body part within at least one spatial degree of freedom; The motion collector is used to obtain motion data of the user; the motion data is used to characterize the motion of a second body part of the user; the second body part is all or part of the body parts of the user other than the first body part; The movement intention predictor is configured to input the movement data into a first diffusion model to obtain a movement trajectory of the passive movement, so that a movement path of the first body part during the passive movement matches the movement trajectory; The movement intention predictor is specifically used to: generating a motion feature of the passive motion according to the motion data, and randomly generating a noise as an initial predicted motion input feature; Denoising the predicted motion input feature using the first diffusion model to obtain a predicted motion output feature of the passive motion, and correcting the predicted motion output feature using the motion feature; When the number of first loop iterations is less than or equal to a preset first loop iteration threshold, the corrected predicted motion output feature is updated as the new predicted motion input feature, and the process returns to the step of denoising the predicted motion input feature using the first diffusion model to obtain the predicted motion output feature of the passive motion, and correcting the predicted motion output feature using the motion feature; the first loop iteration number is used to record the number of executions of denoising the predicted motion input feature using the first diffusion model to obtain the predicted motion output feature of the passive motion, and correcting the predicted motion output feature using the motion feature; When the first loop iteration number is greater than the first loop iteration threshold, the corrected predicted motion output feature is determined as the predicted feature of the motion trajectory of the passive motion, and the motion trajectory is generated according to the predicted feature.
2. The system according to claim 1, wherein The system further comprises: Interaction collector, interaction state evaluator and interaction state optimizer; The interaction collector is used to obtain interaction data when the first body part is driven; the interaction data is used to represent the mechanical feedback of the first body part to the exoskeleton during the process of the first body part being driven by the exoskeleton; The interaction state evaluator is used to input the interaction data into an evaluation model to obtain an interaction evaluation value for the passive movement; the interaction evaluation value is positively correlated with the difference between the interaction data and the preset interaction statistical data; The interaction state optimizer is configured to adjust the motion trajectory determined by the motion intention predictor according to the interaction evaluation value, so as to reduce the interaction evaluation value.
3. The system according to claim 2, wherein: The interaction state evaluator is specifically used for: Inputting the interaction data into a second diffusion model to obtain interaction prediction data of the interaction data; A value of the second-order moment of the interaction data and the interaction prediction data is determined as the interaction evaluation value.
4. The system according to claim 3, wherein: Inputting the interaction data into a second diffusion model to obtain interaction prediction data of the interaction data includes: Randomly adding noise to the interaction data as an initial predicted interaction input feature; Denoising the predicted interaction input features using the second diffusion model to obtain predicted interaction output features of the interaction data; If the second loop iteration number is less than or equal to a preset second loop iteration threshold, the predicted interaction output feature is updated to the new predicted interaction input feature, and the process returns to the step of denoising the predicted interaction input feature using the second diffusion model to obtain the predicted interaction output feature of the interaction data; the second loop iteration number is used to record the number of executions of denoising the predicted interaction input feature using the second diffusion model to obtain the predicted interaction output feature of the interaction data; When the second loop iteration number is greater than the second loop iteration threshold, the predicted interaction output feature is determined as the interaction prediction data.
5. The system according to claim 2, wherein: The interaction state optimizer is specifically used for: Using the interaction evaluation value and the motion trajectory determined by the motion intention predictor as an initial boundary, solving a preset optimization equation to obtain an optimized trajectory of the motion trajectory, and determining the optimized trajectory as the adjusted motion trajectory; The optimization equation is: ; Among them, q d represents the expected trajectory; q r represents the reference trajectory; t represents the current time step, N p represents the prediction time step, i is the representative element of the time step; Q and R both represent diagonal positive definite matrices; I represents the identity matrix; x d For q d and q d The composite vector composed of the rate of change of ; Δt represents the time interval; f represents the function that generates s; u d Indicates q d acceleration; τ e K represents the interaction torque between the user and the exoskeleton; a represents the impedance stiffness between the user and the exoskeleton; C a represents the damping coefficient between the user and the exoskeleton, X represents the trajectory space, and U represents the acceleration space.
6. A method for training a diffusion model, characterized in that: The training method is used to train the first diffusion model in the dual-modal upper limb exoskeleton rehabilitation training system based on the generative model according to any one of claims 1 to 5, and the training method comprises: Constructing a first training set; the first training set includes motion training data; the motion training data is used to characterize the motion of a second body part of a pre-screened user; the second body part is all or part of the user's body parts other than the first body part; the first body part is the body part used to be driven by the exoskeleton; Randomly adding a noise to the motion training data as an initial predicted motion training input feature; Denoising the predicted motion training input features using a first diffusion model to be trained to obtain predicted motion training output features of the motion training data, and correcting the motion training output features using the motion training data; Updating the corrected motion training output feature as the new motion training input feature, and returning to the step of denoising the predicted motion training input feature using the first diffusion model to be trained to obtain the predicted motion training output feature of the motion training data, and determining the first training function value of the first diffusion model according to a preset first training function formula after reaching a preset first training iteration number; the first training loop iteration number is used to record the number of executions of denoising the predicted motion training input feature using the first diffusion model to be trained to obtain the predicted motion training output feature of the motion training data; When the first training function value is less than a preset first training threshold, the trained first diffusion model is obtained.
7. A method for training a diffusion model, characterized in that: The training method is used to train the second diffusion model in the dual-modal upper limb exoskeleton rehabilitation training system based on the generative model as claimed in claim 3 or 4, and the training method includes: Constructing a second training set; the second training set includes interactive training data; the interactive training data is used to represent the mechanical feedback of a first body part of a pre-screened user to the exoskeleton during a process in which the first body part is driven by the exoskeleton; Randomly adding a noise to the interactive training data as an initial prediction interactive training input feature; Denoising the predicted interactive training input features using a second diffusion model to be trained to obtain predicted interactive training output features of the interactive training data; Updating the interactive training output feature to the new interactive training input feature, and returning to the step of denoising the predicted interactive training input feature using the second diffusion model to be trained to obtain the predicted interactive training output feature of the interactive training data, and determining the second training function value of the second diffusion model according to a preset second training function formula after reaching a preset second training iteration number; the second training loop iteration number is used to record the number of executions of denoising the predicted interactive training input feature using the second diffusion model to be trained to obtain the predicted interactive training output feature of the interactive training data; When the second training function value is less than a preset second training threshold, the trained second diffusion model is obtained.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the diffusion model training method according to claim 6 or 7 are implemented.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the method for training a diffusion model according to claim 6 or 7 when executed by the processor.
Citation Information
Patent Citations
Method for monitoring temperatures of tissues around active implantation object and magnetic resonance imaging system
CN106667487A
Finger joint rehabilitation training device
CN110801372A