Rehabilitation scheme generation method and device based on lower limb rehabilitation apparatus
By matching and adjusting the patient's initial non-standard scale and the standard non-standard scale, and using a large language model to generate a rehabilitation plan, it solves the problem of low efficiency in formulating treatment plans in the medical rehabilitation field, achieves automated and accurate generation of rehabilitation plans, and improves treatment efficiency. Effect.
Patent Information
- Application Number
- CN202410551369.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2024-09-20
AI Technical Summary
The formulation of treatment plans in the field of medical rehabilitation is inefficient, resulting in fluctuating treatment effects. It relies on doctor experience and lacks automated and accurate plan generation methods.
By obtaining the initial non-standard scale of the target patient and matching it with the preset standard non-standard scale, calculating the similarity of the disease level, dynamically adjusting the scale parameter weights, using a large language model to generate a patient-specific rehabilitation plan, and executing it in combination with lower limb rehabilitation equipment.
It realizes the automatic generation of appropriate treatment plans without doctor's intervention, accurately matches treatment plans, improves the recovery effect, and reduces the difficulty of treatment plan formulation and manual errors.
Smart Images

Figure CN118675689A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of large language models based on medical record knowledge graphs, and in particular to a method and device for generating a rehabilitation program based on lower limb rehabilitation equipment. Background Art
[0002] In the field of medical rehabilitation, doctors need to develop different treatment plans for different patients, and the basic conditions of different patients may be very different, which requires doctors to analyze the conditions of different patients one by one and develop corresponding treatment plans for them. Obviously, this will take a long time, and the treatment effect of the treatment plan depends largely on the doctor's experience and work status, and the quality of the treatment plan obtained usually fluctuates greatly.
[0003] Currently, no effective solution has been proposed for the problem of low efficiency in formulating treatment plans in the prior art. Summary of the invention
[0004] Based on this, it is necessary to provide a method and device for generating a rehabilitation program based on lower limb rehabilitation equipment to address the above technical problems.
[0005] In a first aspect, the present application provides a method for generating a rehabilitation program based on a lower limb rehabilitation device. The method comprises:
[0006] Acquire an initial non-standard scale corresponding to the target patient; wherein the initial non-standard scale expresses the initial condition of the target patient in a quantitative form, and the initial non-standard scale includes at least one condition magnitude of a preset scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device;
[0007] Matching the initial non-standard scale with the preset standard non-standard scale, calculating the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determining a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan;
[0008] A rehabilitation plan corresponding to the target patient is generated based on all target treatment plans, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation equipment.
[0009] In one embodiment, determining a target non-scalar table matching the initial non-scalar table from the standard non-scalar table according to the similarity calculation result includes:
[0010] Mapping the initial non-scalar table and the standard non-scalar table into word vector form; wherein the vectorized initial non-scalar table includes type parameter information corresponding to the table parameters;
[0011] The similarity between the type parameter information of the initial non-scalar table and the standard non-scalar table is calculated to obtain the similarity results between all standard non-scalar tables and the initial non-scalar table, and the standard non-scalar table with a similarity greater than a preset similarity threshold is used as the target non-scalar table.
[0012] In one embodiment, the initial non-standard scale and the preset standard non-standard scale are matched, and the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale is calculated one by one, including:
[0013] Obtaining scale parameter weights corresponding to scale parameters one by one;
[0014] The initial non-standard scale and the standard non-standard scale are matched, and the standard similarity calculation result is obtained according to the similarity of the disease magnitude in the initial non-standard scale and the standard non-standard scale, as well as the scale parameter weights.
[0015] In one embodiment, obtaining the scale parameter weight includes:
[0016] Determining a treatment cycle for a target patient, wherein the treatment cycle includes at least one treatment period;
[0017] Based on the severity of the disease corresponding to each treatment period, the scale parameter weights are dynamically adjusted.
[0018] In one embodiment, obtaining the scale parameter weights corresponding to the scale parameters one by one includes:
[0019] Obtaining historical treatment information of historical patients, wherein the historical treatment information includes historical treatment plans, pre-treatment condition scales, and post-treatment condition scales, and the pre-treatment condition scales and post-treatment condition scales both include historical condition magnitudes of scale parameters corresponding to the historical patients;
[0020] The historical treatment information is input into the fully trained target model. Based on the similarity of the historical disease magnitude between the pre-treatment disease scale and the post-treatment disease scale, the correlation between the historical treatment plan and the scale parameters is calculated, and the scale parameter weights are obtained based on the correlation.
[0021] In one embodiment, generating a rehabilitation program corresponding to a target patient based on all target treatment programs includes:
[0022] Based on the acquired large language model and rehabilitation program template, combined with all target treatment plans, the final treatment plan corresponding to the target patient is obtained, where the final treatment plan includes a lower limb rehabilitation plan and rehabilitation condition analysis results.
[0023] In one embodiment, the rehabilitation condition analysis result includes a condition description based on the knowledge graph, and constructing the condition description based on the knowledge graph includes:
[0024] All standard non-scalar scales are vectorized, and the patient corresponding to each standard non-scalar scale is taken as a node, wherein each node carries the corresponding standard non-scalar scale;
[0025] Calculate the similarity between standard non-scalar scales, connect the nodes whose similarity is less than the preset historical similarity threshold, and obtain the knowledge graph database;
[0026] The final treatment plan and target non-standard scale are visualized based on the knowledge graph database.
[0027] In a second aspect, the present application also provides a device for generating a lower limb rehabilitation program. The device comprises:
[0028] An acquisition module, configured to acquire an initial non-standard scale corresponding to a target patient; wherein the initial non-standard scale expresses an initial condition of the target patient in a quantitative form, the initial condition including a condition magnitude of at least one preset scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device;
[0029] A calculation module is used to match the initial non-standard scale with a preset standard non-standard scale, calculate the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determine a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan;
[0030] A generation module is used to generate a rehabilitation plan corresponding to a target patient based on all target treatment plans, wherein the rehabilitation plan is executed by a corresponding lower limb rehabilitation device.
[0031] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0032] Acquire an initial non-standard scale corresponding to the target patient; wherein the initial non-standard scale expresses the initial condition of the target patient in a quantitative form, the initial condition includes a condition magnitude of at least one preset scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device;
[0033] Matching the initial non-standard scale with the preset standard non-standard scale, calculating the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determining a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan;
[0034] A rehabilitation plan corresponding to the target patient is generated based on all target treatment plans, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation equipment.
[0035] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0036] Acquire an initial non-standard scale corresponding to the target patient; wherein the initial non-standard scale expresses the initial condition of the target patient in a quantitative form, the initial condition includes a condition magnitude of at least one preset scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device;
[0037] Matching the initial non-standard scale with the preset standard non-standard scale, calculating the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determining a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan;
[0038] A rehabilitation plan corresponding to the target patient is generated based on all target treatment plans, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation equipment.
[0039] The above-mentioned method and device for generating a rehabilitation plan based on a lower limb rehabilitation device match a preset standard non-standard scale with an initial non-standard scale corresponding to a target patient, calculate the similarity of the magnitude of the condition in the initial non-standard scale and the standard non-standard scale one by one, and determine the target non-standard scale that matches the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan; finally, a rehabilitation plan corresponding to the target patient is generated based on all target treatment plans, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation device. Unlike the prior art, the present application can automatically generate a suitable treatment plan without the intervention of a doctor or relevant technical personnel. Moreover, the present application can quantitatively evaluate the condition of the target patient, so as to accurately match the most appropriate treatment plan according to the evaluation results. It should be noted that the scale parameters in the non-standard scale are highly correlated with the lower limb rehabilitation device. After the rehabilitation plan is generated, the rehabilitation plan can be executed by the corresponding lower limb rehabilitation device, which effectively improves the rehabilitation effect of the target patient. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram of a method for generating a rehabilitation program in one embodiment;
[0041] Figure 2 A partial visualization schematic diagram of an embodiment;
[0042] Figure 3 A schematic diagram of a flow chart of a method for generating a rehabilitation program in a preferred embodiment;
[0043] Figure 4 It is a structural block diagram of a rehabilitation program generating device in one embodiment;
[0044] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0046] In one embodiment, Figure 1 As shown, a method for generating a rehabilitation program based on a lower limb rehabilitation device is provided, comprising:
[0047] Step S110, obtaining an initial non-standard scale corresponding to the target patient; wherein the initial non-standard scale expresses the initial condition of the target patient in a quantitative form, and the initial non-standard scale includes at least one preset scale parameter of the condition magnitude, and the scale parameter corresponds to at least one lower limb rehabilitation device.
[0048] Among them, the above-mentioned initial non-standard scale is usually used in the evaluation stage before the target patient undergoes the next stage of treatment. In some embodiments, as the target patient's condition improves, the treatment plan will be updated accordingly, and the basis for updating the treatment plan at each stage is the above-mentioned initial non-standard scale. Different from the prior art in this field, the initial non-standard scale in this application describes the initial condition of the target patient before treatment in an accurate quantitative form, and comprehensively quantifies the condition of the target patient, laying the foundation for the subsequent accurate matching based on the non-standard scale and the formulation of the rehabilitation plan. The initial non-standard scale usually includes a variety of scale parameters, each of which corresponds to a specific disease level, wherein the scale parameters include but are not limited to patient basic information, clinical diagnosis, and evaluation before and after treatment. It is used to comprehensively evaluate the target patient, and each aspect includes a more specific evaluation, such as the pre-treatment evaluation includes: left iliopsoas muscle, right iliopsoas muscle, right hamstring muscle, etc. muscle strength evaluation, and each evaluation corresponds to the target patient's disease level, such as the left iliopsoas muscle can be set to level 1 according to the actual situation, and the right iliopsoas muscle can be set to level 2 according to the actual situation, etc.
[0049] In this embodiment, different types of lower limb rehabilitation equipment generally act on different muscles (groups), so the formulation of subsequent rehabilitation programs needs to refer to the lower limb rehabilitation equipment corresponding to the scale parameters. In some embodiments, one scale parameter may correspond to one lower limb rehabilitation equipment, that is, the rehabilitation program including the scale parameter type needs to be executed by the corresponding type of lower limb rehabilitation equipment; or multiple scale parameters may correspond to one lower limb rehabilitation equipment, that is, the lower limb rehabilitation equipment can simultaneously realize rehabilitation training for muscle groups corresponding to multiple scale parameters; or one scale parameter may correspond to multiple lower limb rehabilitation equipment, etc., which will not be elaborated here.
[0050] Step S120, matching the initial non-standard scale with the preset standard non-standard scale, calculating the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determining a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan.
[0051] Among them, the standard non-standard scale can be a scale that records the medical conditions of patients who have been cured in the past, and, similar to the initial non-standard scale, the standard non-standard scale also includes multiple scale parameters and their corresponding disease magnitudes. The categories of scale parameters covered by the standard non-standard scale are similar or the same as those of the initial non-standard scale. Among them, the standard non-standard scale can be obtained through the case library of a hospital or rehabilitation institution, or case data can be crawled on the Internet based on keywords, etc. After obtaining the initial non-standard scale of the target patient, the initial non-standard scale is matched with the above-mentioned standard non-standard scale, that is, the similarity is calculated by the initial non-standard scale and the disease magnitude in the standard non-standard scale. It can be understood that since the scale parameters in the initial non-standard scale and the standard non-standard scale correspond to their specific disease magnitudes, in this embodiment, a more accurate similarity calculation result can be achieved through precise disease magnitudes, wherein the similarity calculation method includes but is not limited to algorithms such as word2vec, or is based on a well-trained large language model, and the key information given is used to retrieve cases with higher similarity in the standard non-standard scale to obtain the above-mentioned target non-standard scale. Through the above method, one or more target non-standard scales with the highest similarity can be selected, wherein the target non-standard scale includes the corresponding target treatment plan.
[0052] Step S130, generating a rehabilitation plan corresponding to the target patient based on all target treatment plans, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation equipment.
[0053] Among them, a rehabilitation plan corresponding to the target patient is generated according to all the above target treatment plans. The rehabilitation plan for the target patient can be combined with all the target treatment plans, or the rehabilitation plan can be generated by relevant doctors or technicians with reference to the above target treatment plans. Furthermore, the above rehabilitation plan is executed by the corresponding lower limb rehabilitation device, which can be a lower limb exoskeleton, etc.
[0054] Through steps S110 to S130, by matching the initial non-standard scale including comprehensive quantifiable scale with the preset standard non-standard scale, the target non-standard scale is selected by calculating the similarity between the initial non-standard scale and the disease magnitude in the standard non-standard scale, and a rehabilitation plan for the target patient is generated according to the target treatment plan corresponding to the target non-standard scale, and is executed by the corresponding lower limb rehabilitation device. The rehabilitation plan generation method in this application is completely different from the existing plan generation method, and gets rid of the shortcoming that the generation of the existing rehabilitation plan is relatively vague, and can achieve accurate non-standard scale matching, thereby generating a more suitable rehabilitation plan. In addition, the present application is applied to the field of lower limb rehabilitation, and the corresponding rehabilitation plan is executed by the lower limb rehabilitation device, and the lower limb rehabilitation device corresponds to the scale parameters in the non-standard scale. The relevant doctors or professionals can have a very intuitive judgment on the selection of the lower limb rehabilitation device and the formulation of the rehabilitation plan based on the lower limb rehabilitation device according to the disease magnitude in the non-standard scale, which effectively improves the rehabilitation effect on the basis of reducing the difficulty of formulating / perfecting the rehabilitation plan.
[0055] In one embodiment, the method further comprises:
[0056] Mapping the initial non-scalar table and the standard non-scalar table into word vector form; wherein the vectorized initial non-scalar table includes type parameter information corresponding to the table parameters;
[0057] The similarity between the type parameter information of the initial non-scalar table and the standard non-scalar table is calculated to obtain the similarity results between all standard non-scalar tables and the initial non-scalar table, and the standard non-scalar table with a similarity greater than a preset similarity threshold is used as the target non-scalar table.
[0058] Specifically, this embodiment provides a method for matching an initial non-scalar scale with a standard non-scalar scale. First, the initial non-scalar scale and all the standard non-scalar scales are mapped into word vector forms, wherein, since each non-scalar scale includes multiple scale parameters, the vectorized initial non-scalar scale includes type parameter information corresponding to the scale parameters. According to the similarity between the type parameter information of the initial non-scalar scale and the standard non-scalar scale, the similarity result is calculated. Among them, the similarity calculation method includes but is not limited to word2vec, etc., and the similarity threshold is usually set to 70%. In actual applications, there may be multiple sets of target non-scalar scales with similarities above the similarity threshold. At this time, in order to ensure calculation efficiency, three or so target non-scalar scales with the highest similarity are usually selected. Through the similarity calculation method in this embodiment, it is not affected by other scale parameters, and a more accurate matching result is obtained through precise disease magnitude.
[0059] In one embodiment, the method further comprises:
[0060] Obtaining scale parameter weights corresponding to scale parameters one by one;
[0061] The initial non-standard scale and the standard non-standard scale are matched, and the standard similarity calculation result is obtained according to the similarity of the disease magnitude in the initial non-standard scale and the standard non-standard scale, as well as the scale parameter weights.
[0062] Specifically, the present embodiment also includes scale parameter weights corresponding to the scale parameters one by one. In the present embodiment, due to the different conditions of different target patients, the weights of different scale parameters are also different. For example, if some patients have the main lesion in the left leg, the scale parameter weight for the left leg should be increased to indicate that the rehabilitation focus is on the left leg, and rehabilitation training should be carried out through lower limb rehabilitation equipment mainly for the left leg. If some patients have the main lesion in the right leg, the scale parameter weight for the right leg should be increased to indicate that the rehabilitation focus is on the right leg, and rehabilitation training should be carried out through lower limb rehabilitation equipment mainly for the right leg. Therefore, in the present embodiment, in order to increase the accuracy of scale matching, the calculation of scale parameter weights should be added during the matching calculation to obtain a more accurate standard similarity calculation result.
[0063] In one embodiment, the method further comprises:
[0064] Determining a treatment cycle for a target patient, wherein the treatment cycle includes at least one treatment period;
[0065] Based on the severity of the disease corresponding to each treatment period, the scale parameter weights are dynamically adjusted.
[0066] Specifically, during the rehabilitation training, the overall trend of the target patient's health status should be improved. Therefore, it is necessary to dynamically adjust the scale parameter weights throughout the target patient's treatment cycle to highlight the rehabilitation focus of different treatment stages. The treatment cycle as a whole can be divided into multiple treatment periods, which can be determined by referring to the treatment plan in the target non-standard scale, or manually divided and adjusted by relevant medical personnel or technical personnel.
[0067] Since the health status of patients in each treatment period is different, in this embodiment, it is necessary to detect the disease level of different treatment periods and dynamically adjust the scale parameter weight according to the disease level of different treatment periods, wherein the adjustment of the scale parameter weight can be manually adjusted by relevant technical personnel or medical personnel according to the disease level, or the scale parameter weight can be automatically adjusted by a preset algorithm, the preset algorithm includes but is not limited to a well-trained deep learning model, or automatically adjust the weight by detecting the difference between the disease level and the preset standard level, or automatically adjust the scale parameter weight by detecting the change in the disease level corresponding to each treatment stage, etc. Through this embodiment, it can be achieved that the scale parameter weight is dynamically adjusted for different treatment periods, so as to achieve better treatment effects, and a more accurate target non-standard scale can also be matched according to the adjusted parameter weight.
[0068] In one embodiment, the method further comprises:
[0069] Obtaining historical treatment information of historical patients, wherein the historical treatment information includes historical treatment plans, pre-treatment condition scales, and post-treatment condition scales, and the pre-treatment condition scales and post-treatment condition scales both include historical condition magnitudes of scale parameters corresponding to the historical patients;
[0070] The historical treatment information is input into the fully trained target model. Based on the similarity of the historical disease magnitude between the pre-treatment disease scale and the post-treatment disease scale, the correlation between the historical treatment plan and the scale parameters is calculated, and the scale parameter weights are obtained based on the correlation.
[0071] Specifically, the above-mentioned post-treatment condition scale corresponds to the pre-treatment condition scale. The post-treatment condition scale should be obtained by detecting the condition of the target patient after one or more treatment periods, and the types of scale parameters of the pre-treatment condition scale and the post-treatment condition scale should be the same or similar, and the pre-treatment condition scale and the post-treatment condition scale should both include the detected historical condition levels corresponding to the scale parameters, and the historical condition levels include the condition levels corresponding to the pre-treatment condition scale and the condition levels corresponding to the post-treatment condition scale.
[0072] In some embodiments, the target model may be LLaMA 2 (Large Language Model 2), BERT (Bidirectional Encoder Representation from Transformers), ChatGLM3 (Chat General Language Model 3), etc. The target model calculates the correlation between the historical treatment plan and the scale parameters based on the similarity of the historical disease magnitude between the disease scale before treatment and the disease scale after treatment, and obtains the scale parameter weight based on the correlation, wherein the method for determining the correlation between the historical treatment plan and the scale parameter includes, but is not limited to, comparing the similarity between the disease scale before treatment and the disease scale after treatment according to one or more lesion areas (such as the left gluteus medius, the right triceps surae, etc.) targeted in the historical treatment plan; if it is detected that the disease magnitude after treatment of the lesion area is better than the disease magnitude before treatment after treatment, it means that the treatment is effective, and the scale parameter weight can be further adjusted more accurately through a preset mapping relationship between the degree of improvement after treatment and the parameter weight. Furthermore, the training method of the target model is to fine-tune the target model, and the methods used include but are not limited to fine-tuning technologies such as LoRA (Low-Rank Adaptation of Large Language Models) and P-Tuning V2 (PromptTuning). The data for fine-tuning training comes from a preset scale, and its parameters are adjusted to a training set. The training set includes a mapping relationship between the similarity of the disease scale before and after treatment and the scale parameter weight. The mapping relationship is usually obtained by summarizing historical treatment information. The training parameters selected are that the length of the natural language instruction can be set to 128, the learning rate can be set to 0.002, and the training batch size can be set to 1. Through this embodiment, the scale parameter weight can be automatically adjusted based on the well-trained target model, thereby greatly reducing the workload of relevant technical personnel or medical personnel, and eliminating the impact of human errors. The method of adjusting the scale parameter weight based on the target model is also more accurate, and the rehabilitation plan for the target patient obtained can also achieve better rehabilitation effects.
[0073] In one embodiment, the method further comprises:
[0074] Based on the acquired large language model and rehabilitation program template, combined with all target treatment plans, the final treatment plan corresponding to the target patient is obtained, where the final treatment plan includes a lower limb rehabilitation plan and rehabilitation condition analysis results.
[0075] Specifically, this embodiment provides a method for generating a final treatment plan. The above-mentioned rehabilitation plan template can refer to FAC (Functional Ability Scale), berg (Berg Balance Scale), etc., and the rehabilitation plan template and all matched target treatment plans are input into the large language model to obtain the above-mentioned final treatment plan. The determination method of the above-mentioned large language model includes first determining the base model of the large language model. Preferably, ChatGLM2-6B can be selected, and then the large language model is adjusted through medical knowledge, scientific and technological knowledge, and related medical resources, and a guided logical dialogue is added to it to fine-tune the large language model. Preferably, P-Tuning V2 can be used for fine-tuning to obtain a large language model for medical treatment. The above-mentioned final treatment plan mainly includes two parts, which are the lower limb rehabilitation plan and the rehabilitation condition analysis results. The lower limb rehabilitation plan is obtained by summarizing the target treatment plan. The summarization method can be manually participated by relevant technical personnel or medical personnel, or completed by the large language model. For example, multiple plans can be merged according to an appropriate proportion through a preset large language model. The above-mentioned rehabilitation condition analysis results include, but are not limited to, the expected effects corresponding to the treatment plan, explanation of the treatment plan, specific conditions of the patients, case evidence, etc.
[0076] Through this embodiment, a final treatment plan with higher readability can be obtained, and in order to facilitate patient understanding and improve patient cooperation, a corresponding rehabilitation condition analysis result is provided for the final treatment plan, thereby achieving a better rehabilitation effect.
[0077] In one embodiment, the method further comprises:
[0078] All standard non-scalar scales are vectorized, and the patient corresponding to each standard non-scalar scale is taken as a node, wherein each node carries the corresponding standard non-scalar scale;
[0079] Calculate the similarity between standard non-scalar scales, connect the nodes whose similarity is less than the preset historical similarity threshold, and obtain the knowledge graph database;
[0080] The final treatment plan and target non-standard scale are visualized based on the knowledge graph database.
[0081] Specifically, this embodiment provides a visualization method. Figure 2 FIG. 1 is a partial visualization diagram of an embodiment. The knowledge graph is composed of nodes and lines between nodes. Each node corresponds to a patient. Figure 2Liu X, Shen X, and Zhao X are shown in the figure, and each node carries the standard non-standard scale corresponding to the patient. For all standard non-standard scales, their similarities are calculated pairwise, and the nodes with similarities less than the similarity threshold are connected by edges, where the similarity threshold can be set to 70%, thereby completing the construction of the knowledge graph database. The target non-standard scale corresponding to the final treatment plan is selected, and the target non-standard scale and the final treatment plan are visualized on the basis of the knowledge graph database.
[0082] This embodiment also provides a preferred embodiment of a method for generating a rehabilitation program based on a lower limb rehabilitation device. Figure 3 A schematic diagram of a process for generating a rehabilitation plan in an embodiment.
[0083] First, a large number of existing cases are obtained, and the above-mentioned standard non-standard scale is obtained based on the integration of the existing cases. Each standard non-standard scale corresponds to a patient, and the corresponding treatment plan is recorded in the standard non-standard scale. When integrating the existing cases, it includes but is not limited to establishing a corresponding relationship between the magnitude of the patient's condition before and after treatment. For example, the patient's left lower limb muscle strength level 3 before use corresponds to the patient's left lower limb muscle strength level 4 after use. The following table is a schematic diagram of part of the content of the standard non-standard scale:
[0084]
[0085] Among them, the above content can be filled in after evaluation by relevant technical personnel or medical personnel.
[0086] A knowledge graph database is established based on the standard non-scalar scale and the corresponding patients, with nodes corresponding to patients one by one, and each node carries the corresponding standard non-scalar scale.
[0087] Then, the obtained initial non-standard scale of the target patient is matched with the above-mentioned standard non-standard scale, wherein the initial non-standard scale can be directly matched with all standard non-standard scales, or a target non-standard scale with a high similarity to the initial non-standard scale can be queried from the above-mentioned knowledge graph database through a large language model. Each target non-standard scale includes its corresponding target treatment plan. In some embodiments, a description of the relationship between the target non-standard scale and the initial non-standard scale is also provided, including the similarity between the two, the comparison of clinical diagnosis between the target non-standard scale and the initial non-standard scale, the comparison between the target non-standard scale and the initial non-standard scale before treatment, and the comparison of treatment goals between the target non-standard scale and the initial non-standard scale.
[0088] All target treatment plans and preset rehabilitation plan templates are input into a well-trained large language model, and all target treatment plans are combined to obtain a final treatment plan corresponding to the target patient, which includes a lower limb rehabilitation plan and rehabilitation condition analysis results. Among them, the method for determining the above-mentioned large language model includes first determining the base model of the large language model. Preferably, ChatGLM2-6B can be selected, and then the large language model is adjusted through medical knowledge, scientific and technological knowledge, and related medical resources, and a guided logical dialogue is added to it to fine-tune the large language model. Preferably, P-Tuning V2 can be used for fine-tuning to obtain a large language model for medical purposes. Further, in some embodiments, the above-mentioned rehabilitation condition analysis results include the expected effect corresponding to the treatment plan, the explanation of the treatment plan, the reference of related cases, the support of case supporting data, etc. Specifically, the expected effect is the treatment effect that can be achieved with a high probability based on the treatment plan. The prediction of the treatment effect can be obtained by analysis by relevant technical personnel or medical personnel, or can be predicted by the rehabilitation effect of similar patients; the above-mentioned relevant case references are usually other patients with similar conditions to the target patient corresponding to the matched target non-standard scale. By explaining the health status, treatment effect, and treatment plan of the patient to the target patient, the target patient can be effectively helped to understand the rehabilitation situation and effect, and the target patient can be more cooperative with the development of rehabilitation treatment, and the negative psychology of the target patient can also be reduced; the above-mentioned case supporting data support is realized by the rehabilitation effect of real related patients. In summary, the above-mentioned rehabilitation condition analysis results can be manually produced by relevant technical personnel, or generated by the above-mentioned large language model, so that the target patient can better understand his own condition, rehabilitation treatment plan, etc., and effectively improve the cooperation of the target patient.
[0089] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0090] Based on the same inventive concept, the embodiment of the present application also provides a device for generating a rehabilitation program based on a lower limb rehabilitation device for implementing the above-mentioned method for generating a rehabilitation program based on a lower limb rehabilitation device. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more embodiments of the device for generating a rehabilitation program based on a lower limb rehabilitation device provided below can be referred to the limitations of the method for generating a rehabilitation program based on a lower limb rehabilitation device above, and will not be repeated here.
[0091] In one embodiment, Figure 4 As shown, a rehabilitation program generation device based on a lower limb rehabilitation device is provided, comprising: an acquisition module 41, a calculation module 42 and a generation module 43, wherein:
[0092] An acquisition module 41 is used to acquire an initial non-standard scale corresponding to the target patient; wherein the initial non-standard scale expresses the initial condition of the target patient in a quantitative form, and the initial condition includes a condition magnitude of at least one preset scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device;
[0093] A calculation module 42 is used to match the initial non-standard scale with a preset standard non-standard scale, calculate the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determine a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan;
[0094] The generation module 43 is used to generate a rehabilitation plan corresponding to the target patient based on all target treatment plans, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation equipment.
[0095] Specifically, the acquisition module 41 acquires an initial non-standard scale corresponding to the target patient, which expresses the initial condition of the target patient in a quantitative form, and the initial condition includes the condition magnitude of at least one scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device; the acquisition module 41 sends the acquired initial non-standard scale to the calculation module 42, and the calculation module 42 matches the initial non-standard scale with the standard non-standard scale, calculates the similarity between the two, and determines the target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan; the calculation module 42 sends the target treatment plan to the generation module 43, and the generation module 43 generates a rehabilitation plan corresponding to the target patient based on the target treatment plan, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation device.
[0096] Each module in the above-mentioned lower limb rehabilitation program generation device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0097] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to the generation of a lower limb rehabilitation program. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating a lower limb rehabilitation program is implemented.
[0098] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0099] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0100] Acquire an initial non-standard scale corresponding to the target patient; wherein the initial non-standard scale expresses the initial condition of the target patient in a quantitative form, and the initial non-standard scale includes at least one condition magnitude of a preset scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device;
[0101] Matching the initial non-standard scale with the preset standard non-standard scale, calculating the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determining a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan;
[0102] A rehabilitation plan corresponding to the target patient is generated based on all target treatment plans, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation equipment.
[0103] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0104] Acquire an initial non-standard scale corresponding to the target patient; wherein the initial non-standard scale expresses the initial condition of the target patient in a quantitative form, and the initial non-standard scale includes at least one condition magnitude of a preset scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device;
[0105] Matching the initial non-standard scale with the preset standard non-standard scale, calculating the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determining a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan;
[0106] A rehabilitation plan corresponding to the target patient is generated based on all target treatment plans, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation equipment.
[0107] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0109] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0110] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for generating a rehabilitation program based on lower limb rehabilitation equipment. It is characterized in that The method comprises: Acquire an initial non-standard scale corresponding to the target patient; wherein the initial non-standard scale expresses the initial condition of the target patient in a quantitative form, and the initial non-standard scale includes at least one condition magnitude of a preset scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device; Matching the initial non-standard scale with a preset standard non-standard scale, calculating the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determining a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan; A rehabilitation plan corresponding to the target patient is generated based on all the target treatment plans, wherein the rehabilitation plan is executed by the corresponding lower limb rehabilitation equipment.
2. The method according to claim 1, It is characterized in that The step of determining a target non-scalar table that matches the initial non-scalar table from the standard non-scalar table according to the similarity calculation result includes: Mapping the initial non-scalar table and the standard non-scalar table into word vector form; wherein the vectorized initial non-scalar table includes type parameter information corresponding to the table parameters; The similarity between the type parameter information of the initial non-scalar table and the standard non-scalar table is calculated to obtain the similarity results between all the standard non-scalar tables and the initial non-scalar table, and the standard non-scalar table whose similarity is greater than a preset similarity threshold is used as the target non-scalar table.
3. The method according to claim 1, It is characterized in that The matching of the initial non-standard scale with the preset standard non-standard scale and calculating the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale in a one-to-one correspondence includes: Obtaining scale parameter weights corresponding one-to-one to the scale parameters; The initial non-standard scale and the standard non-standard scale are matched, and a standard similarity calculation result is obtained according to the similarity of the disease magnitude in the initial non-standard scale and the standard non-standard scale, and the scale parameter weight.
4. The method according to claim 3, It is characterized in that Obtaining the scale parameter weights includes: Determining a treatment cycle of the target patient, wherein the treatment cycle includes at least one treatment period; The scale parameter weights are dynamically adjusted based on the disease severity level corresponding to each treatment period.
5. The method according to claim 3, It is characterized in that The obtaining of the scale parameter weights corresponding to the scale parameters one by one includes: Acquiring historical treatment information of historical patients, wherein the historical treatment information includes historical treatment plans, a pre-treatment condition scale, and a post-treatment condition scale, wherein the pre-treatment condition scale and the post-treatment condition scale both include historical condition magnitudes of the scale parameters corresponding to the historical patients; The historical treatment information is input into a fully trained target model, and based on the similarity of the historical disease magnitude between the pre-treatment disease scale and the post-treatment disease scale, the correlation between the historical treatment plan and the scale parameters is calculated, and the scale parameter weight is obtained based on the correlation.
6. The method according to claim 1, It is characterized in that The step of generating a rehabilitation plan corresponding to the target patient based on all the target treatment plans comprises: Based on the acquired large language model and rehabilitation program template, combined with all the target treatment programs, a final treatment program corresponding to the target patient is obtained, wherein the final treatment program includes a lower limb rehabilitation program and rehabilitation condition analysis results.
7. The method according to claim 6, It is characterized in that The rehabilitation condition analysis result includes a condition description based on the knowledge graph, and constructing the condition description based on the knowledge graph includes: Performing vectorization processing on all the standard non-scalar scales, taking the patient corresponding to each standard non-scalar scale as a node, wherein each node carries the corresponding standard non-scalar scale; Calculate the similarity between the standard non-scalar scales, connect the nodes whose similarity is less than a preset historical similarity threshold, and obtain a knowledge graph database; The final treatment plan and the target non-standard scale are visualized based on the knowledge graph database.
8. A device for generating a lower limb rehabilitation program, It is characterized in that The device comprises: An acquisition module, configured to acquire an initial non-standard scale corresponding to a target patient; wherein the initial non-standard scale expresses the initial condition of the target patient in a quantitative form, the initial condition includes a condition magnitude of at least one preset scale parameter, and the scale parameter corresponds to at least one lower limb rehabilitation device; A calculation module, used for matching the initial non-standard scale with a preset standard non-standard scale, calculating the similarity of the disease magnitudes in the initial non-standard scale and the standard non-standard scale one by one, and determining a target non-standard scale matching the initial non-standard scale from the standard non-standard scale according to the similarity calculation result, wherein the target non-standard scale includes a target treatment plan; A generation module is used to generate a rehabilitation plan corresponding to the target patient based on all the target treatment plans, wherein the rehabilitation plan is executed by a corresponding lower limb rehabilitation device.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Emotional interaction regulation and control strategy generation method and device for rehabilitation training
CN120032791A
An emotional interaction regulation strategy generation method and device for rehabilitation training
CN120032791B
system
JP2026155619A
