Medical operation behavior quality evaluation method based on continuous learning and related equipment

By optimizing reading and writing decisions through hierarchical memory trees and latent dynamic models, a continuous learning method was developed, which solved the fine-grained problem in the assessment of medical and nursing operations, achieved efficient stage-level assessment and knowledge utilization, and avoided knowledge interference and forgetting.

CN123182289APending Publication Date: 2026-11-27SOUTHERN MEDICAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies lack fine-grained, phased assessment methods for evaluating healthcare procedures, and there are problems of knowledge interference and catastrophic forgetting during continuous learning.

Method used

We employ a continuous learning method based on hierarchical memory trees, constructing hierarchical memory trees through stage segmentation and visual encoding. We then combine this with a latent dynamics model to optimize read and write decisions, achieving explicit separation between cross-stage knowledge sharing and local knowledge storage. Furthermore, we optimize read and write decisions through a particle reinforcement learning mechanism to avoid knowledge interference and forgetting.

Benefits of technology

It enables fine-grained assessment of medical and nursing procedures, improves the efficiency of knowledge utilization, avoids knowledge interference and catastrophic forgetting, and provides efficient scoring feedback at each stage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182289A_ABST
    Figure CN123182289A_ABST
Patent Text Reader

Abstract

The application discloses a medical operation behavior quality evaluation method based on continuous learning and related equipment, relates to the technical field of operation scoring, and obtains medical operation behavior data, performs stage segmentation and visual coding on the medical operation behavior data, and obtains stage-level visual representations of each stage. A hierarchical memory tree is constructed with the stage-level visual representations, read-write decisions of the hierarchical memory tree are optimized based on reinforcement learning, and corresponding knowledge features are read from the hierarchical memory tree through the optimized read-write decisions. According to the read features and the stage-level visual representations, predicted scores of each stage are obtained through a regressor, the predicted scores of each stage are accumulated, and the score corresponding to the medical operation behavior data is obtained. The root decision of the local root particle with the highest effect is used as the optimized read-write decision, so that each read-write step is evaluated in advance, and the knowledge utilization efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of operational scoring technology, and in particular to a method and related equipment for evaluating the quality of medical and nursing operational behaviors based on continuous learning. Background Technology

[0002] Action Quality Assessment (AQA) aims to provide objective quality scores for skill movements in videos by analyzing the videos themselves. It has significant application value in sports competitions, skills training, and healthcare skill assessment. In healthcare skill assessment, whether it's surgical procedures (such as minimally invasive surgeries like laparoscopic cholecystectomy), traditional Chinese medicine procedures (such as cupping, acupuncture, and massage), clinical nursing (such as aseptic injections, intravenous punctures, and wound dressing changes), or rehabilitation training (such as range of motion training and gait and balance training), the operational process can be divided into multiple ordered sub-action stages according to procedural phases. The assessment criteria for different stages differ, and in reality, only overall video-level scores are usually available, lacking stage-level expert scores. Therefore, there is an urgent need for objective, fine-grained, and automated skill assessment methods. Most related AQA methods map the entire video to a single score, relying on static learning using a fixed training set. However, in procedural skills assessments of long videos, the process is usually divided into multiple ordered procedural stages, with different assessment criteria for each stage. The overall score should be able to be broken down into each stage to provide fine-grained feedback.

[0003] The methods in the related technologies have the following limitations: First, fine-grained evaluation for each stage usually requires stage-level annotation, while real datasets usually only provide video-level total score annotations, lacking stage-level ground truth supervision; Second, when the model learns continuously in stages, the knowledge learned in the early stages needs to be retained and reused in the later stages, but different stages require different evaluation criteria. The flat memory management structure cannot support both globally shared knowledge and stage-specific local knowledge during continuous training, which can easily lead to mutual interference of knowledge and catastrophic forgetting problems. Summary of the Invention

[0004] The main objective of this application is to propose a method and related equipment for evaluating the quality of medical and nursing operational behaviors based on continuous learning, in order to solve the problems in the background art.

[0005] To achieve the above objectives, this application proposes a method for evaluating the quality of medical and nursing operational behaviors based on continuous learning, the method comprising: Acquire medical and nursing operation behavior data, perform stage segmentation and visual encoding on the medical and nursing operation behavior data, and obtain stage-level visual representations of each stage. A hierarchical memory tree is constructed based on the stage-level visual representation. The read and write decisions of the hierarchical memory tree are optimized by a pre-trained latent dynamic model. The corresponding knowledge features are then read from the hierarchical memory tree based on the optimized read and write decisions. Based on the readout features and the stage-level visual representation, the predicted scores for each stage are obtained through a regressor mapping. The predicted scores for each stage are then accumulated to obtain the scores corresponding to the medical and nursing operation behavior data. The hierarchical memory tree is continuously learned based on the optimized read / write decisions.

[0006] In some embodiments, the step of segmenting and visually encoding the medical and nursing operation behavior data to obtain stage-level visual representations of each stage specifically includes: The data on medical and nursing procedures were divided into video segments according to stages; The video segment is used to extract features to obtain segment-level features; The fragment-level features are divided into stage phase intervals according to time sequence; The segment-level features are subjected to average pooling to obtain phase interval features; Average pooling is performed on the phase interval features to obtain a stage-level visual representation.

[0007] In some embodiments, the hierarchical memory tree includes global nodes and stage nodes, and after constructing the hierarchical memory tree with the stage-level visual representation, it further includes: Initialize the global node as a learnable global knowledge entry; For each completed stage, initialize the corresponding stage node as a learnable stage knowledge item; At the start of a phase, additional working phase nodes are instantiated, and attention is calculated based on the phase-level vision, global nodes, phase nodes, and working phase nodes to obtain global readout features and phase readout features. The stage-level visual representations are transformed using a multilayer perceptron to obtain global write candidates and stage write candidates.

[0008] In some embodiments, optimizing the read / write decisions of the hierarchical memory tree using a pre-trained latent dynamic model specifically includes: Obtain the read / write actions of the current read / write decision, wherein the read / write actions include read allocation and write allocation; The observation vector, composed of the stage-level visual representation, global readout features, stage readout features, global write candidates, stage write candidates, and video-specific temporal context, is used as the input to the policy network. The policy network outputs the scalar mean of read allocation and the scalar mean of write allocation; the read allocation is a probability allocation of global read weight and stage read weight, and the write allocation is a probability allocation of global write weight and stage write weight. Select read candidate sets and write candidate sets that match the scalar mean from the discrete candidate library, respectively; Construct a local root particle based on the read candidate set and the write candidate set; The read / write decisions of each local root particle are applied to the virtual tree, and the short-term effects of each local root particle in the virtual tree are inferred through a pre-trained latent dynamics model. The root decision of the local root particle with the highest effect is selected as the optimized read / write decision, where the root decision is the read / write decision corresponding to the root node of the virtual tree.

[0009] In some embodiments, the deduction of the short-term effects of each local root particle in the virtual tree through a pre-trained latent dynamics model specifically includes: A virtual tree is constructed, and for each local root particle, the potential dynamics model is used to extrapolate layer by layer to obtain fusion readout and fusion write candidates. The fused readout and fused write candidates are input into the latent dynamics model to predict the next layer of potential knowledge state; The policy network is re-evaluated and the candidates are expanded at each non-leaf node, so that the virtual tree contains multiple leaf trajectories; On the extended nodes of the virtual tree, local rewards are calculated based on the predicted next-layer potential knowledge state, fusion read and fusion write candidates, and trajectory rewards are accumulated along the leaf trajectory. The maximum value of all trajectory rewards in each local root particle is taken as the short-term effect.

[0010] In some embodiments, prior to extrapolating the short-term effects of each local root particle in the virtual tree using a pre-trained latent dynamics model, the method further includes: Add expert annotations to the medical and nursing operation behavior data; The stage-level visual representation and expert annotations are used for allocation processing to obtain stage pseudo-labels; The potential dynamics model is iteratively trained using multiple loss functions, and the short-term effects of each local root particle in the virtual tree are inferred from the jointly trained potential dynamics model. The root decision of the local root particle with the highest effect is selected as the training read and write decision, and the corresponding training knowledge features are read from the hierarchical memory tree through the training read and write decision; Based on the training knowledge features and the stage-level visual representation, the training scores for each stage are obtained through a regressor mapping. The total prediction loss is calculated based on the training scores of each stage and the pseudo-labels of each stage. When the total prediction loss is less than a preset threshold, the iterative training of the dynamic model is stopped.

[0011] In some embodiments, calculating the total prediction loss based on the training scores of each stage and the stage pseudo-labels specifically includes: The mean squared error between the stage prediction score and the stage pseudo-label is used as the stage prediction loss. The advantage function with gradient truncation is calculated using the batch baseline to evaluate the effect of the local root particle. The negative value of the product of the advantage function and the log-likelihood of the policy network on the optimized read / write decision is averaged over the batch to obtain the policy gradient loss. The value function loss is obtained by regressing the output of the value function estimator on the potential state of the local root particle to the cutoff value of the local root particle effect. Freeze the master model, and use the forward output of the freezing strategy to fit the real current stage potential state of the potential model to obtain the dynamic calibration loss. For each solidified memory tree entry, the knowledge prototype is used as a stage representation and readout for score response probing, and the mean square error between the knowledge prototype and the score response anchor recorded when the entry is solidified is weighted according to the importance of solidification to obtain the anchor response loss. The KL divergence between the current response and the policy response anchor of the read / write policy is weighted according to the fixed importance to obtain the policy routing consistency loss; In the final task, the sum of all cached deterministic predictions from previous stages, the sum of predictions from the current stage, and the mean squared error of expert annotations are used as the video-level calibration loss. The total prediction loss is obtained by weighted summing of the stage prediction loss, policy gradient loss, value function loss, dynamic calibration loss, anchoring response loss, policy routing consistency loss, and video-level calibration loss.

[0012] In some embodiments, the step of assigning pseudo-labels based on the stage-level visual representation and expert annotations specifically includes: The stage-level visual representations are arranged in sequence to obtain a stage representation sequence; A trained scorer is obtained, and a sensitivity analysis method is used to calculate the path integral gradient of the scorer along the linear interpolation path from the reference sequence to the stage characterization sequence. The path sensitivity of each stage is obtained based on the path integral gradient. The scoring contribution coefficient for each stage is calculated based on the inner product of the path sensitivity and the corresponding stage representation. After preprocessing the scoring contribution coefficient, the stage weight is obtained. The stage weight is then multiplied by the expert annotation to obtain the stage pseudo-label.

[0013] To achieve the above objectives, another aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0014] To achieve the above objectives, another aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0015] The embodiments of this application include at least the following beneficial effects: This application provides a method and related equipment for evaluating the quality of medical and nursing operation behavior based on continuous learning. This application uses a pseudo-label generation mechanism based on stage contribution to accurately allocate expert annotations to each stage and strictly conservatively constrain the total score, so that pseudo-labels for stage-level supervision can be obtained by relying solely on video-level expert annotations. By introducing a hierarchical memory tree structure containing global nodes and stage nodes, cross-stage shared knowledge and stage-specific knowledge are explicitly separated and stored, avoiding mutual interference between the two types of knowledge in flattened memory. The read and write decisions of the memory tree are optimized through a particle-based reinforcement learning mechanism. The short-term effects of candidate decisions are evaluated by combining virtual tree expansion and potential dynamics models. The root decision of the local root particle with the highest effect is submitted, so that each read and write step is evaluated in advance, which improves the efficiency of knowledge utilization. Through a task-level integration mechanism based on eligibility scores and a protection update rule regulated by importance, only high-quality proposals supported by sufficient samples are promoted to long-term storage, and high-usage entries are protected to mitigate catastrophic forgetting. Attached Figure Description

[0016] Figure 1 This is a flowchart of the method for evaluating the quality of medical and nursing operation behaviors based on continuous learning, provided in the embodiments of this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit it. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.

[0018] It is understood that the terms “first,” “second,” etc., used in this application may be used herein to describe various concepts, but unless otherwise stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if,” “when,” or “in response to a determination” as used herein may be interpreted as “when…” or “when…” or “in response to a determination.”

[0019] As used in this application, the terms "at least one", "multiple", "each", "any", etc., "at least one" includes one, two or more, "multiple" includes two or more, "each" refers to each of the corresponding multiples, and "any" refers to any one of the multiples.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0021] Before providing a detailed description of the embodiments of this application, some of the nouns and terms involved in the embodiments of this application will be explained first. The nouns and terms involved in the embodiments of this application are subject to the following interpretations.

[0022] 1. AQA (Action Quality Assessment): Objectively scoring the quality of an action based on a video. 2. I3D (Inflated 3D ConvNet): An inflated 3D convolutional network, used in video action recognition models to expand 2D convolutions to 3D and capture spatiotemporal features. 3. MemoryTree: A learnable memory structure that hierarchically organizes global and stage-specific knowledge. 4. PRL (Particle-based Reinforcement Learning) is a reinforcement learning method that selects decisions by constructing local decision particles near the policy mean and extrapolating them on a virtual tree. 5. KCLD (Knowledge-space Conditioned Latent Dynamics): A potential state transition module based on read content and write candidates. 6. Virtual Tree: A temporary extended structure used within the PRL for prospective evaluation of candidate read / write allocations. It is discarded after the root decision is committed. 7. MLP (Multilayer Perceptron); 8. Phase Bin: The phase interval divides the variable-length phase into a fixed number of ordered intervals in the time dimension.

[0023] 9. Continual Learning: The model learns new tasks sequentially according to the task order, while retaining and reusing the knowledge learned from previous tasks without catastrophic forgetting; in this application, each procedural stage corresponds to a continuous task, constituting a staged continuous learning.

[0024] 10. TOP-K: Selects the top K scores.

[0025] refer to Figure 1 As shown in the embodiments of this application, a method for evaluating the quality of medical and nursing operational behaviors based on continuous learning is provided, wherein the method includes: S101: Acquire medical and nursing operation behavior data, perform stage segmentation and visual encoding on the medical and nursing operation behavior data, and obtain stage-level visual representations of each stage. S102: Construct a hierarchical memory tree using stage-level visual representations, optimize the reading and writing decisions of the hierarchical memory tree using a pre-trained latent dynamic model, and extract the corresponding knowledge features from the hierarchical memory tree using the optimized reading and writing decisions; The next potential knowledge state is predicted based on the read and write candidates corresponding to the optimized read and write decisions; the prediction score for the current stage is obtained by a regressor from the read features corresponding to the submitted read and write decisions and the stage-level visual representation. S103: Based on the readout features and stage-level visual representations, the predicted scores for each stage are obtained through a regressor mapping. The predicted scores for each stage are accumulated and processed to obtain the scores corresponding to the medical and nursing operation behavior data. S104: Perform continuous learning operations on the hierarchical memory tree based on the optimized read / write decisions.

[0026] The continuous learning in this application can be understood as: Obtain the skill operation video currently awaiting evaluation; The skill operation video is segmented and visually encoded to obtain the stage-level visual representation of each procedural stage. The stage-level visual representation is input into the pre-trained model, and the read and write decisions of the hierarchical memory tree are optimized through particle-based reinforcement learning to obtain the submitted read and write decisions. Based on the read allocation in the submitted read and write decisions, knowledge features are read from the corresponding nodes of the hierarchical memory tree. The knowledge features and stage-level visual representations are mapped by a regressor to obtain the prediction quality score of each procedural stage. The prediction quality scores of each stage are accumulated to obtain the video-level total score of the current video. Based on the write allocation in the submitted read / write decision, the knowledge increment of the current video is written into the corresponding node of the hierarchical memory tree, and the effective update rate is controlled by the solidified importance adjustment, so that high-usage items can obtain a smaller update amplitude to protect solidified knowledge. For the next skill demonstration video to be evaluated, repeat the above steps to achieve continuous online learning.

[0027] Specifically, the medical and nursing operation behavior data in this application are laparoscopic surgery videos or videos of medical and nursing operation skills such as traditional Chinese medicine. When the skill operation video is a laparoscopic cholecystectomy video, the procedural stages include initial preparation, calomel triangle dissection, clamping and cutting, gallbladder bed dissection, specimen removal, and final hemostasis and closure. The video-level expert label is the video-level skill quality score obtained based on the laparoscopic surgery skill assessment standard, or the video-level total score obtained by integrating scores from multiple skill dimensions. When the skills operation video is a traditional Chinese medicine cupping operation video, the procedural stages include the preparation stage, ignition and cupping, observation with the cups in place, and removal and cleaning up. The video-level expert annotation is the total video-level score obtained based on the traditional Chinese medicine clinical skills operation scoring standard. When the skills operation video is a clinical nursing operation video, the procedural stages include pre-operation preparation and verification, disinfection and puncture, drug administration, fixation and observation, and cleaning up and recording. The video-level expert annotation is the total video-level score obtained based on the clinical nursing operation scoring standard. When the skill operation video is a rehabilitation training operation video, the procedural stages include assessment and postural preparation, passive activity or stretching, active assisted training, resistance or functional training, and relaxation and feedback. The video-level expert annotation is based on the video-level score obtained from the rehabilitation training operation scoring criteria.

[0028] Specifically, the medical and nursing operation behavior data in step S101 is video data. This application represents a set of long video skill operation datasets as follows: ,in For the i-th video, Video-level motion quality scores are provided by human experts.

[0029] Each video is divided into K ordered sub-action stages along the time dimension according to procedural phases, denoted as follows: ,in This represents the input at the t-th stage. The invention describes long-video skills assessment as a staged continuous learning problem: the model receives data in a stage-by-stage order, with the t-th stage corresponding to the t-th consecutive task, that is, each stage corresponds to one task.

[0030] Specifically, in step S101, the medical and nursing operational behavior data is segmented and visually encoded to obtain stage-level visual representations for each stage, including: For the i-th video In the t-th stage, the stage is divided into a variable number of short video segments. ; Using I3D encoder Feature extraction is performed on each short video segment to obtain segment-level features; To handle variable-length phases, the segment-level features are divided into R ordered phase intervals according to time sequence, denoted as... For the set of fragment indices assigned to the r-th phase interval, average pooling is performed on the fragment-level features within each phase interval to obtain the phase interval features; Average pooling is performed on the R phase interval features to obtain a fixed-dimensional stage-level visual representation.

[0031] Specifically, the formulas involved in step S101 include:

[0032]

[0033]

[0034] in, These are fragment-level features; For I3D encoder; The number of segments; This represents the number of phase intervals in the stage. This is the set of segment indices assigned to the phase interval of the r-th stage; Features of the phase interval; For stage-level visual representation; As a visual encoder, it maps variable-length stage segments to fixed-dimensional stage representations. It is a short video clip.

[0035] Furthermore, this application employs a staged continuous learning approach, classifying the t-th stage of all videos as the t-th consecutive task. Each consecutive task is sequentially input into the model for training according to the stage order, with the t-th stage corresponding to the t-th consecutive task. Video-level expert annotations are only reintroduced into the training objective in the form of video-level calibration loss on the last consecutive task.

[0036] Specifically, after constructing the hierarchical memory tree using stage-level visual representations in step S102, the process also includes: A hierarchical memory tree is constructed using stage-level visual representations, where the hierarchical memory tree includes global nodes and stage nodes; Initialize global nodes for A learnable global knowledge entry, which is used to continuously retain globally shared knowledge across stages; For each completed stage k, initialize the corresponding stage node. for Each stage knowledge entry is a learnable stage knowledge entry, which is used to store evaluation cues for that procedural stage.

[0037] At the start of t tasks or phases, additional work phase nodes are instantiated. The work phase nodes include Each learnable slot participates in the read and write interactions of the current task; At the beginning of the phase, the visual representation of the phase level. With global nodes Attention calculations are performed to obtain global readout features. Stage-level visual representation With all completed phase nodes and current working phase nodes Concatenation is used to perform attention calculations to obtain stage readout features. ; The stage-level visual representations are passed through a multilayer perceptron with two independent parameters. and Perform the transformation to obtain global write candidates. and stage writing candidate .

[0038] Each video additionally maintains a video-specific temporal context. Used to summarize information about the stages that the video has completed before the current task, the temporal context is initialized to a zero vector and updated by a learnable recursive updater after each task.

[0039] Specifically, global readout features The expression is: ; in For global readout features, (.) represents the attention mechanism. As a visual feature, This is the global prototype set.

[0040] Specifically, stage readout features The expression is: ; in For global readout features, (.) represents the attention meter mechanism. As a visual feature, This is the global prototype set.

[0041] Specifically, write global candidates The expression is: ; in Write a global mapping function.

[0042] Specifically, write candidates in stages. The expression is: ; in Write a mapping function for the stage.

[0043] in, This represents a scaled dot product attention with the first parameter being the query and the second parameter being the key and value. To obtain the global node at the start of the t-th task; This represents the stage node at the start of the t-th task; and Write candidate generator networks with two independent parameters.

[0044] In some embodiments, the optimization of read / write decisions by the ground particle enhancement in step S102 specifically includes: Obtain the current read / write decision and the read / write actions, which include read allocation and write allocation; The policy network is input with stage-level visual representations, global readout features, stage readout features, global write candidates, stage write candidates, and video-specific temporal context. The policy network outputs the scalar mean of read allocation and the scalar mean of write allocation; read allocation is a probability allocation of global read weight and stage read weight, and write allocation is a probability allocation of global write weight and stage write weight. The reading and writing actions are represented as follows: ,in For read allocation of global reads and phase reads, Write assignments are made for global write candidates and stage write candidates; each assignment is parameterized by a single scalar in [0,1], and the sum of the weights of the two branches is 1, where Assign a vector for reading. For global reading weights, Write weights for each stage. To write the allocation vector, Write weights globally. Write weights for each stage.

[0045] With observation vector Input strategy The strategy outputs the probability distribution of reading and writing scalars, and its mean is denoted as . The corresponding stage allocation is by , Given; among which For stage-level visual representation, The content read out for global memory. The content read out for stage memory, Write candidates for the whole system. Write candidates for each stage. For timing context.

[0046] From the discrete candidate library Selecting from and closest to One as a candidate for reading Select the average of the global write weights. closest to One as a candidate to write, constituting Local root particles Local mesh construction ensures that particles are determined consistently across different iterations. in The number of local root particles, To determine the number of candidates to select, To write the number of candidates selected, For the first A local root particle, For the read allocation of the m-th local root particle, This is the write allocation for the m-th local root particle.

[0047] Stage-level visual representation root state Construct a virtual tree and analyze each root-to-leaf trajectory. , fusion reading ,in, For fusion readout, For fusion function, For global reading weights, For stage reading weights, Read out for global memory. Read out for the stage of memory.

[0048] Fusion writing candidate ,in Write candidates for fusion. To write the fusion function, Write weights globally. Write weights for each stage. Write candidates for the whole system. Write candidates for each stage.

[0049] The underlying assumed state, as derived from the underlying dynamic model, is as follows: ; in This represents the next level of potential knowledge state. For the potential dynamic model, This represents the current layer's potential knowledge state. To integrate reading, Write candidates for fusion. For timing context.

[0050] Re-evaluate the strategy at each non-leaf node And select Expanding the read and write candidates makes the entire tree have Local root particles and Leaf trajectory; The latent dynamics module (KCLD) in this application is a learnable latent state transition network. (Parameters are) The term "knowledge space" in its name indicates that the transfer takes place on a potential knowledge state, and "condition" indicates that the transfer is conditional on the actual read / write content of each candidate read / write decision. "Latent dynamics" means that it predicts the evolution of knowledge states. Specifically, its input includes the current potential knowledge state. fused reads obtained by candidate read allocation fusion The fused write candidates obtained by fusion of candidate write allocation and video-specific temporal context The output is the next layer of potential knowledge state. Its function is to predict, without actually rewriting the hierarchical memory tree, how the knowledge state will evolve if a candidate read / write decision is adopted, thus providing a basis for the forward evaluation of the virtual tree. This module does not impose additional dynamic constraints; its only training constraint is the latent state calibration loss. That is, to minimize the error between the potential state predicted in a single step and the actual current stage characteristics, so that the prediction does not deviate too much from the current knowledge state.

[0051] The local phase reward on each expansion node is ; in For localized phase rewards, For the regressor in the continuous learning model (different from the one used in the pseudo-label generation stage) ); Rewards for each leaf trajectory ,in For value estimator, and As a weighting factor, This represents the next level of potential knowledge state. Rate the target. As the weight of the stage reward, For state value estimator, The effect of the root particle m on the maximum value of the leaf trajectory reward of its descendants is: ; in This is a local root particle effect. This is the set of leaf trajectories of the descendants of the local root particle. The reward for each leaf trajectory.

[0052] Select the local root particle with the highest effect As the submitted root particle, As the submitted read / write decision (i.e., the read / write decision optimized by the virtual tree look-ahead evaluation), among which The optimal local root particle index. This represents the total number of local root particles. This is a local root particle effect.

[0053] Submit the read allocation corresponding to the fused read. The stage-level visual representation is input into the regressor to obtain the predicted score for the current stage. ; Submitted write allocation For subsequent task-level integration, among which For the merged output after submission, For the global read weight after submission, The stage weights after submission. Read out for global memory. Read out for stage memory, For stage visual representation.

[0054] The potential states of each trajectory in the virtual tree Read and write root decisions are discarded immediately after being committed and do not enter persistent storage; root decisions refer to the read and write decisions corresponding to the root node (level 0) of the virtual tree, that is, the read and write decisions that are committed after look-ahead evaluation and actually apply to the hierarchical memory tree; read and write decisions corresponding to deeper nodes in the virtual tree are only used for look-ahead evaluation and are discarded along with the virtual tree after the root decisions are committed.

[0055] In some embodiments, the potential dynamic model By using read content and write candidates as conditional inputs, rather than just read / write assignments, the potential transitions reflect the actual consequences of read / write interactions in the knowledge space. The virtual tree is not a persistent memory structure, but rather an internal look-ahead mechanism used by particle-based reinforcement learning to evaluate candidate read / write assignments before submitting a root decision.

[0056] Furthermore, after optimizing the read / write decision, this application also includes task integration and updating of the hierarchical memory tree, specifically: Calculate the task-level qualification score, where the global branch is: ; in For global branches, Let i be the effect term of the i-th sample in task t. These are the effect term weighting coefficients. The consistency term weighting coefficient. For the i-th sample, the global branch consistency term in task t. This is the weighting coefficient for the novelty term. For the novelty term of the i-th sample in the global branch of task t This is the global private penalty coefficient. This is the penalty term for the global branch of task t for the i-th sample.

[0057] The phase branches are: ; in For stage branches, Let i be the effect term of the i-th sample in task t. These are the effect term weighting coefficients. The consistency term weighting coefficient. Let i be the consistency term for the i-th sample in the stage branch of task t. This is the weighting coefficient for the novelty term. For the novelty term of the i-th sample in the stage branch of task t For the stage-specific private penalty coefficient, This is the penalty term for the i-th sample in the stage branch of task t.

[0058] Among the effect terms The consistency term is obtained by normalizing the submitted particle effect to the mean and variance within the task and then applying the Sigmoid function. and Novelty items measure the similarity to the mean of task-level proposals. and Measure the degree of difference from the most similar existing prototype; penalty term for global branches. Measuring similarity to the mean of the video temporal context to block private information, and a penalty term for stage branches. Measure similarity to the most similar global prototype to avoid global redundancy; The average qualification score at the task level is used as a threshold to form a qualified set. Top-K selection is performed within the qualified set to obtain the final selection set. The write candidates in the selection set are then aggregated by Softmax weighting according to their qualification scores to obtain the integrated knowledge at the task level. Each solidified memory tree entry stores a knowledge prototype. Branch identity , solidify importance Rating response anchor and read / write strategy response anchor Solidify the importance Based on historical cumulative reading attention usage, after maximum normalization and sharpening coefficient The control is obtained by a power transformation; the rating response anchor and the read / write policy response anchor are frozen at the end of the task and are only used for the goal of memory retention loss, and do not participate in prediction; For each branch, find nodes that integrate knowledge. The most similar entry is used as the update target. Use protected effective update rate Perform weighted fusion update ; in For the i-th knowledge prototype, To normalize the cosine similarity, Index of maximum value The base update rate is taken as the pruning mean of the eligibility scores within the selected set. To protect strength; high-usage entries thus receive a lower effective update rate and are therefore protected, mitigating catastrophic forgetting. For the selected prototype The importance of solidification For the selected prototype, For the i-th selected knowledge prototype, Update for assignment.

[0059] New solidification stage nodes Integrating knowledge through stage branches Write the work phase node according to the above rules. The most similar slots are formed, the rest Each slot is retained as the corresponding working slot state after the current task training; thereafter, the working phase node is frozen and upgraded to a solidified phase node; The video-specific temporal context is conveyed through a two-layer ReLU multilayer perceptron. renew: ; in, Let be the temporal context vector of the i-th sample at the next time step. For a learnable recursive updater, The gradient truncation operator prevents updates to the temporal context from backpropagating to the visual encoder; deterministic real-world stage prediction. The cached state is used for final video-level calibration; the latent state in the virtual tree is discarded immediately after the root decision is committed. Let be the old time-series context vector of the i-th sample at the current time t.

[0060] Furthermore, the following formula is involved in the task integration and updating of the hierarchical memory tree: ; in This is the normalized cosine similarity function, with an output range of [0,1]. For any two vectors of the same dimension, This is a transpose.

[0061]

[0062] in Write the candidate vector for the global branch after weight adjustment for the i-th sample under task t. Write the candidate vector for the i-th sample in task t after weight adjustment in the stage branch. Adjust the weights for the global branches. Adjust the weights corresponding to the stage branches. Write candidate vectors for the original global branch. Write candidate vectors for the original stage branches.

[0063]

[0064] in The task qualification score for the global branch. These are the weighting coefficients for the effect term. For the effect term, The weighting coefficients for the consistency terms. For consistency items in the global branch, The weighting coefficients for the novelty term, For the novelty item of the global branch, The weighting coefficient for the private penalty term. This is a penalty specific to global branches.

[0065]

[0066] in The task qualification score for each stage branch. These are the weighting coefficients for the effect term. For the effect term, The weighting coefficients for the consistency terms. For consistency items in phase branches, The weighting coefficients for the novelty term, For the novelty term of the stage branch, The weighting coefficient for the private penalty term. This is a specific penalty for a particular stage branch.

[0067] ; in For the effect term, (.) is the sigmoid function, which outputs (0,1). To submit the original effect values ​​of the particles, For all U within task t The mean, For all U within task t standard deviation is the numerical stability constant.

[0068] ; in Let be the mean of all write candidates for branch b on task t. Let be the total number of samples in task t. For the i-th sample in the branch Write the candidate vector on.

[0069] ; in This is the consistency term for branch b (measuring the similarity between individual candidates and the task mean). (.) represents the normalized cosine similarity. For the i-th sample in the branch Write candidate vectors on, This is the consistency term for branch b.

[0070]

[0071] in For the novelty term of branch b, This represents the number of prototypes of branch b in the memory node. Let be: the set of prototypes of branch b in the memory node of the previous task (t-1). To obtain the maximum similarity between the candidate and all historical prototypes, b ∈ {g, s}: indicates that the formula applies to both global and stage branches.

[0072]

[0073] in For the penalty item of the global branch, Candidates for writing to the global branch. Let be the temporal context mean vector of task t.

[0074]

[0075] in The penalty item for the stage branch, This represents the number of prototypes in the global memory node. Write the candidate vectors for the stage branches. : The set of prototypes of the previous task in the global branch (matrix, each column is a prototype). To obtain the maximum similarity between the candidate and all global prototypes.

[0076]

[0077] in For a qualified set, For the final selection set, Select the number of Top-K values ​​for branch b. For qualifying scores, Let t be the total number of samples for task t. Let be the eligibility score of the j-th sample on task t and branch b.

[0078]

[0079] in For branch b on task t Integrate knowledge (weighted aggregate vectors). For the final selection set, These are the Softmax weighting coefficients. For the original candidate vector, It is an exponential function. Let be the eligibility score of the j-th sample on task t and branch b.

[0080]

[0081] in The importance of solidifying target e, Let e ​​be the cumulative mean attention for target e. The maximum cumulative attention among all fixed goals. For a set of fixed tasks, The importance sharpening factor (temperature parameter). is the numerical stability constant.

[0082]

[0083] in For the prototype index that is most similar to the currently integrated knowledge, Let j be the knowledge prototype vector. Integrate knowledge vectors for the current task. The index with the highest similarity is selected.

[0084]

[0085] in To effectively update the learning rate, Update the learning rate based on the data. To protect the strength coefficient (0~1). To solidify the importance of the selected prototype.

[0086]

[0087] For the selected knowledge prototype (before / after update) For assignment update operations, For effective learning rate, To integrate knowledge vectors.

[0088] ; in Let be the temporal context vector of the i-th sample at the next time step (t+1). For a learnable recursive updater, (·): Gradient cutoff operator (stop-gradient, prevents backpropagation). Let be the visual features of the i-th sample at time t. This is the temporal context vector at the current time t.

[0089] Furthermore, before obtaining the optimized read / write decision, this application also includes pre-training the potential dynamics model, specifically as follows: Add expert annotations to medical staff operational behavior data; The pseudo-labels for each stage are obtained by assigning them based on stage-level visual representations and expert annotations. The dynamic model is iteratively trained using multiple loss functions, and the short-term effects of each local root particle in the virtual tree are inferred through the jointly trained potential dynamic model. The root decision of the local root particle with the highest effect is selected as the training read and write decision, and the corresponding training knowledge features are read from the hierarchical memory tree through the training read and write decision; Based on the knowledge features used in training and the stage-level visual representations, the training scores for each stage are obtained through a regressor mapping. The total prediction loss is calculated based on the training scores and pseudo-labels of each stage. When the total prediction loss is less than a preset threshold, the iterative training of the dynamic model is stopped.

[0090] Furthermore, pre-training the potential dynamics model also includes: The mean squared error between the stage prediction score and the stage pseudo-label is used as the stage prediction loss. The advantage function with gradient cutoff is calculated using the batch baseline to determine the effect of the submitted particles. The negative value of the product of the advantage function and the log-likelihood of the policy network on the submission decision is averaged over the batch to obtain the policy gradient loss. The value function loss is obtained by regressing the output of the value function estimator on the first-level potential state of the submitted local root particle to the cutoff value of the submitted particle effect. The master model is frozen during the periodic calibration step, and the forward output of the freezing strategy is used to train the knowledge space conditional latent dynamics module to fit the real current stage latent state, thus obtaining the dynamic calibration loss. For each solidified memory tree entry, its knowledge prototype is used as a stage representation and readout for rating response probing. The mean square error between the prototype and the rating response anchor recorded when the entry is solidified is weighted according to the solidification importance to obtain the anchoring response loss. The KL divergence between the current response of the read / write strategy and the strategy response anchor of the entry is weighted according to the solidification importance to obtain the strategy routing consistency loss. The anchoring response loss and the strategy routing consistency loss together constitute the memory retention loss. In the final task, the mean square error of the sum of all previous stage cached deterministic predictions, the sum of the current stage predictions, and the video-level expert annotations is used as the video-level calibration loss. The principal objective is obtained by weighted summation of stage prediction loss, policy gradient loss, value function loss, memory retention loss, and video-level calibration loss. The dynamic calibration loss independently optimizes the underlying dynamic model on the periodic calibration steps.

[0091] Specifically, in this application, the model is jointly trained based on multiple loss functions, and training alternates between main-stage training and periodic dynamic calibration: during main training, the knowledge space conditional latent dynamic modules are frozen. Specifically, the total loss in this application includes: Predicted loss for each stage: ; in, For phased loss prediction, For batch-level baseline, For predictive scoring; These are pseudo-labels for different stages.

[0092] Policy gradient loss: Consider the standard policy gradient objective. Its gradient ; In this invention example, the reward for the submitted root decision is a particle effect. And candidate decision From deterministic local networks rather than from The sampling is therefore done using a particle-guided approach, leveraging its truncation advantage to pull the strategy towards the direction of the submitted particles: ; ; in For the dominant function, (.) is the gradient truncation operator. For optimal particle effect, For batch-level baseline, For policy gradient loss, For batch-level baseline, For policy networks, For the submitted or optimized read / write decision, This is the observation vector.

[0093] Value function loss: ; ; in For value function loss, To submit the potential state of the local root particle at level 1 of the virtual tree, To submit the optimal particle effect; For smoothing Regression loss, For value estimator, For the potential dynamic model, To submit the fusion readout of the local root particles (i.e., the optimized readout). To submit fusion write candidates for local root particles, For video-specific temporal context, This is a stage-level visual representation.

[0094] Dynamic calibration loss: During the periodic calibration step, the master model is frozen, and the forward output using the freezing strategy obtains the deterministic readouts, write candidates, and temporal context required by the module. This ensures that the module's predicted potential state for the current stage is consistent with the true potential representation for the current stage. match: ; in For kinetic calibration loss, For a valid subset of samples, Predicting states for KCLD For stage-level visual representation, This is a visual representation of gradient truncation.

[0095] in The set of samples available in the previous time series context; when the current time series context is unavailable. The construction is zero.

[0096] Memory retention loss: The set of all solidified memory tree entries prior to task t; when t=1 If it is an empty set, the memory retention loss is zero; Anchoring response loss: ; in To anchor the response loss, For a set of fixed entries, For items that have been fixed, As a rating response anchor, This serves as the anchor for the gradient phase.

[0097] It is Simultaneously serving as a stage representation and readout, and in the identity of entry branches. The current response is obtained by scoring the response probe with the temporal context set to zero; for Gradient cutoff prevents the solidified prototype from being pulled by the main training; Policy routing consistency loss: ; in For policy routing consistency loss, For a set of fixed entries, The current strategy response, As a strategy response anchor, For gradient-trimmed policy anchors, Let KL divergence be the distance between the two policy distributions.

[0098] Video-level calibration loss: On the Kth task, sum the cached deterministic predictions from all previous stages and sum the predictions from the current stage, aligning with the video-level expert score.

[0099] in For video-level calibration loss, Let K be the sample set for the Kth task. Index for the last task. For the current forecasting phase, Annotated by experts For historical stage prediction of caching, (.) is the gradient truncation operator.

[0100] Predictions from previous stages are cached after each task’s deterministic actual update and reused in video-level calibration without participating in backpropagation; latent states in the virtual tree never enter the cache or accumulate in video-level predictions.

[0101] The primary training objective for the t-th task is the weighted sum of the losses. The expression is: ; in , , , , , For the weighting factor; The indicator function. In the main phase training, the regressor, memory tree read / write proposal module, read / write strategy, value estimator, and memory retention term are all generated by... During optimization, the latent dynamics module of the knowledge space condition remains frozen; during the periodic calibration step, the master model remains frozen, and only the [other components] are [processed / adjusted]. Update the module.

[0102] In some embodiments, after the model training is completed, the input skill operation video is divided into multiple procedural stages: stage-level visual representations are extracted for each stage. Attention readout is performed between the fixed global nodes and the completed stage nodes to obtain... and ; through particle-based reinforcement learning strategies The average value is used to make a root decision submission, and the submitted read is allocated to the corresponding fused read. The stage-level visual representation is input into the regressor to obtain the prediction quality score for that stage. Once all stages have been observed, the video-level prediction score is obtained by accumulating the actual predictions for each stage: ; in For video-level predictive scoring, The total number of stages, The stage prediction score can be used as the overall evaluation result of long video skill operation.

[0103] Furthermore, before training the latent dynamics model, the process includes assigning pseudo-labels based on stage-level visual representations and expert annotations. The acquisition of these stage-level anti-counterfeiting labels includes: The stage-level visual representations are arranged sequentially to obtain the stage representation sequence. and define the stage aggregation operation. ,in and For visual feature vectors, the length at time K is... This is a staged aggregation operation.

[0104] Train a video-level scorer used only in step S300. It performs regression on the stage aggregation representation and optimizes it with video-level expert rating as the target. The regression loss used is Among them, video-level scorer It does not belong to the subsequent continuous learning model, among which The total number of samples, To predict the score, Annotated by experts.

[0105] The trained scorer, using a reference-interpolation sensitivity analysis method, follows the reference sequence. Stage characterization sequence The linear interpolation path is used to calculate the path integral gradient of the scorer, and the path sensitivity of each stage is obtained based on the path integral gradient, where the reference sequence... This is a zero vector sequence, corresponding to the reference state where stage information is missing; The scoring contribution coefficient for each stage is calculated based on the inner product of path sensitivity and the corresponding stage representation. After preprocessing the scoring contribution coefficients, the stage weights are obtained. Multiplying these stage weights by the expert annotations yields the stage pseudo-labels. The preprocessing includes: The stage weights are obtained by uniform prior mixing and precise normalization of the scoring contribution coefficients. The stage weights are then multiplied by the video-level expert annotations to obtain the stage pseudo-labels. The sum of the stage weights is constructed to be exactly 1; therefore, the sum of all stage pseudo-labels is exactly equal to the video-level expert annotations. The pseudo-label generation process strictly conservatively constrains the video-level total score. Stage pseudo-labels are generated and fixed once before the start of the entire continuous learning process and are not updated during memory tree optimization. These stage pseudo-labels serve as stage-level supervision targets for subsequent stage-based continuous learning: firstly, they are used for stage prediction loss, ensuring that the prediction scores for each stage approximate the corresponding stage pseudo-labels; secondly, they are used for local reward calculation in particle-based reinforcement learning (using negative pseudo-label prediction errors as rewards). Therefore, the stage pseudo-labels generated above are precisely the supervision signals for stage-based continuous learning training using hierarchical memory trees and particle-based reinforcement learning under video-level annotation conditions.

[0106] Furthermore, the following formula is involved in obtaining the anti-counterfeiting label: ; in This indicates that the video-level rating predicts the rating. For video-level rating, This is a staged aggregation operation. This is a stage-characterized sequence.

[0107] ; in For video-level regression loss, To the total number of training video samples, For video indexing, Predict ratings for video-level ratings. Annotated by experts.

[0108] ; in For the sequence on the interpolation path, As a reference sequence, For the observation sequence, These are the interpolation step size coefficients. For the interpolation step index, This represents the total number of interpolation steps.

[0109] ; in For path average sensitivity, For gradient operators, For video-level rating, The sequence is on the interpolation path.

[0110] ; in As the contribution coefficient to the score, For the observation phase characterization, This is a reference stage characterization.

[0111] ; in For unnormalized allocations, The prior coefficients are uniform. The absolute value of the contribution coefficient. For stage index, This represents the total number of stages.

[0112] ; in For stage weights, This is the normalized allocation.

[0113] ; in These are pseudo-labels for different stages. Annotated by experts.

[0114] ; in This serves as a pseudo-label for the overall stage.

[0115] The present application will be described below with reference to specific embodiments: Scenario 1: Specific application of the embodiments of this application in the evaluation of laparoscopic cholecystectomy. In a specific application scenario, the skill operation video is a laparoscopic cholecystectomy surgery video. The video can be taken from publicly available laparoscopic cholecystectomy surgery datasets (such as the HeiChole dataset) or from similar surgical videos collected by medical institutions. The HeiChole dataset contains laparoscopic cholecystectomy videos from multiple surgical centers and provides annotations for surgical stages, instruments, actions, and skill-related information. Specifically, the annotations include surgical stages, surgical actions, surgical instruments, and multiple skill / difficulty-related dimensions. The skill annotations are not a single video-level total score, but rather a multi-dimensional scoring format referencing a modified version of the Global Operative Assessment of Laparoscopic Skills (GOALS), with each dimension typically labeled from 1 to 5 points. In self-collected data from medical institutions, surgical experts can also score the complete surgical video using the same skill assessment criteria across multiple dimensions.

[0116] For laparoscopic cholecystectomy videos, the procedure can be divided into K=6 ordered procedural stages based on the surgical flow and phased operational goals. These stages correspond to: Stage 1: Initial preparation; Stage 2: Calo triangle dissection; Stage 3: Clamping and cutting; Stage 4: Gallbladder bed dissection; Stage 5: Specimen removal; and Stage 6: Final hemostasis and closure. The skill assessment cues differ for each stage: for example, the Calo triangle dissection stage focuses on surgical field exposure, anatomical structure identification, and tissue traction stability; the clamping and cutting stage focuses on clamp placement, clamping safety, and the integrity of the cutting operation; the gallbladder bed dissection stage focuses on the accuracy of the dissection layer, the precision of electrocoagulation, and the ability to avoid damage to adjacent tissues; and the final hemostasis and closure stage focuses on surgical field cleanliness, bleeding control, and the overall surgical completion status.

[0117] Global nodes are used to store general knowledge of laparoscopic procedures shared across stages, such as instrument holding stability, hand coordination, field of vision management, and tissue traction tension control; stage nodes store specific knowledge related to each procedural stage, such as anatomical identification clues corresponding to the Calo triangle anatomy and clamp positioning clues corresponding to clamping and cutting.

[0118] Since high-quality stage-level expert ratings are difficult to obtain in reality, this application utilizes video-level expert annotations to estimate the contribution of different procedural stages to the overall surgical quality and generate quality pseudo-labels for each stage accordingly. The video-level expert annotation scores can be obtained by integrating multiple skill dimension scores provided by the HeiChole dataset. Furthermore, this application applies normalization constraints to the contributions of each stage, ensuring that the sum of the pseudo-labels for each stage remains consistent with the total video-level skill score. This allows for fine-grained quality assessment of each procedural stage of laparoscopic cholecystectomy even in the absence of stage-level expert ratings, providing objective stage-level evidence for surgical resident training and skills feedback.

[0119] Scenario 2: Specific application of the embodiments of this application in the skill of cupping in traditional Chinese medicine. In another specific application scenario, the skills operation videos are teaching and assessment videos for traditional Chinese medicine cupping techniques. These videos can be taken from clinical practice skills operation videos used in regular assessments of traditional Chinese medicine physicians. The video-level expert annotations are scores given by senior traditional Chinese medicine physicians based on the traditional Chinese medicine clinical skills scoring standards.

[0120] For videos of traditional Chinese cupping procedures, the videos are divided into four sequential stages (K=4): Stage 1 is the preparation stage; Stage 2 is ignition and cupping; Stage 3 is cupping observation; and Stage 4 is cupping removal and cleanup. The assessment points for each stage differ significantly: for example, the preparation stage focuses on patient positioning, exposure of the treatment site, inspection of the cupping tools, and the safety of the operating environment; the ignition and cupping stage focuses on the standardization of the ignition action, control of the fire source, accuracy of the cupping position, and the ability to avoid scalding the patient; the cupping observation stage focuses on the stability of the cupping suction, appropriate negative pressure intensity, control of the cupping duration, and observation of the patient's skin reaction; and the cupping removal and cleanup stage focuses on the standardization of the cupping removal technique, skin condition inspection, cupping tool cleanup, and necessary post-operative instructions.

[0121] Global nodes are used to store general knowledge of TCM cupping that is shared across stages, such as aseptic operation standards, smooth doctor-patient communication, overall operation smoothness and time control; stage nodes store specific knowledge related to each procedural stage, such as clues about the fire intensity and tool control corresponding to the ignition preparation, and clues about the technique standards corresponding to removing the cups.

[0122] Since TCM (Traditional Chinese Medicine) skill assessments typically only provide video-level expert-annotated scores, lacking fine-grained scoring for each procedural stage, this application utilizes video-level expert-annotated scores to estimate the contribution of different procedural stages to the overall operational quality, generating pseudo-labels for each stage and strictly ensuring that the sum of the pseudo-labels for each stage equals the total video-level score. This mechanism enables this application to achieve fine-grained quality assessment of each procedural stage of TCM cupping procedures using only video-level expert annotations, and has significant application value in scenarios such as clinical skills training for TCM college students and standardized operational assessments for TCM physicians.

[0123] Scenario 3: Specific application of the embodiments of this application in clinical nursing operation skills In another specific application scenario, the skills operation videos are assessment videos for clinical nursing operations (such as aseptic injection, intravenous puncture, and wound dressing). The video-level expert annotations are the total video score given by senior nurses based on the clinical nursing operation scoring standards. The videos are divided into K=5 ordered stages: Stage 1 is pre-operation preparation and verification; Stage 2 is disinfection and puncture; Stage 3 is drug administration; Stage 4 is fixation and observation; and Stage 5 is organization and recording. The assessment cues differ between stages: the preparation and verification stage focuses on the implementation of verification procedures and the preparation of sterile supplies; the disinfection and puncture stage focuses on the standardization of disinfection and the success rate of the first puncture; the fixation and observation stage focuses on the stability of fixation and the observation of adverse reactions; and the organization and recording stage focuses on post-operation management and the completeness of records. Global nodes store cross-stage shared knowledge such as aseptic operation standards, doctor-patient communication, and overall operational fluency; stage nodes store stage-specific knowledge such as puncture techniques and drug administration verification. By using the total video-level nursing operation score to estimate the contribution of each procedural stage and generate stage pseudo-labels, and constraining the sum of each stage pseudo-label to equal the total video-level score, fine-grained stage quality assessment of nursing operations can be achieved even in the absence of stage-level scores.

[0124] Scenario 4: Specific application of the embodiments of this application in rehabilitation training skills In another specific application scenario, skill operation videos are rehabilitation training videos (e.g., hemiplegic upper limb rehabilitation, joint range of motion training, gait and balance training). The evaluated object can be the operation performed by a rehabilitation therapist or the training movements completed by the patient under guidance. The video-level expert annotation is the total video score given by the rehabilitation physician or therapist according to the rehabilitation training operation scoring criteria. The video is divided into K=5 ordered stages: Stage 1 is assessment and postural preparation, Stage 2 is passive movement or stretching, Stage 3 is active assisted training, Stage 4 is resistance or functional training, and Stage 5 is relaxation and feedback. The assessment cues differ in each stage: the passive movement stage focuses on the safety of joint range of motion and stretching force; the active assisted and resistance stage focuses on the standardization of movements, compensatory control, and appropriateness of training intensity; and the relaxation and feedback stage focuses on post-training treatment and patient feedback.

[0125] The four embodiments described above correspond to four typical procedural medical and nursing skills: surgical procedures, traditional Chinese medicine procedures, clinical nursing, and rehabilitation training. Surgical and traditional Chinese medicine procedures primarily assess the physician's skills, nursing procedures primarily assess the nurse's skills, and rehabilitation training assesses both the therapist's skills and the quality of the patient's movements during rehabilitation, thus covering all procedural medical and nursing skills. The method provided in this application has good applicability to all of the above-mentioned skills and can be extended to other medical and nursing skill assessment scenarios with similar procedural characteristics.

[0126] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0127] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0128] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0129] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0130] The methods provided in this application relate to the field of information technology. The methods provided in this application can be applied to terminals, servers, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or in-vehicle terminal, but is not limited to these. The server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network. The software can be an application implementing the method, but is not limited to the above forms.

[0131] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0132] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0133] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0134] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0135] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

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

[0137] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

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

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

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

[0141] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0142] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A method for evaluating the quality of medical and nursing procedures based on continuous learning, characterized in that, The method includes: Acquire medical and nursing operation behavior data, perform stage segmentation and visual encoding on the medical and nursing operation behavior data, and obtain stage-level visual representations of each stage. A hierarchical memory tree is constructed based on the stage-level visual representation. The read and write decisions of the hierarchical memory tree are optimized by a pre-trained latent dynamic model. The corresponding knowledge features are then read from the hierarchical memory tree based on the optimized read and write decisions. Based on the readout features and the stage-level visual representation, the predicted scores for each stage are obtained through a regressor mapping. The predicted scores for each stage are then accumulated to obtain the scores corresponding to the medical and nursing operation behavior data. The hierarchical memory tree is continuously learned based on the optimized read / write decisions.

2. The method for evaluating the quality of medical and nursing operational behaviors based on continuous learning according to claim 1, characterized in that, The process of segmenting and visually encoding the medical and nursing operational behavior data to obtain stage-level visual representations for each stage specifically includes: The data on medical and nursing procedures were divided into video segments according to stages; The video segment is used to extract features to obtain segment-level features; The fragment-level features are divided into stage phase intervals according to time sequence; The segment-level features are subjected to average pooling to obtain phase interval features; Average pooling is performed on the phase interval features to obtain a stage-level visual representation.

3. The method for evaluating the quality of medical and nursing operational behaviors based on continuous learning according to claim 1, characterized in that, The hierarchical memory tree includes global nodes and stage nodes. After constructing the hierarchical memory tree using the stage-level visual representation, it further includes: Initialize the global node as a learnable global knowledge entry; For each completed stage, initialize the corresponding stage node as a learnable stage knowledge item; At the start of a phase, additional working phase nodes are instantiated, and attention is calculated based on the phase-level vision, global nodes, phase nodes, and working phase nodes to obtain global readout features and phase readout features. The stage-level visual representations are transformed using a multilayer perceptron to obtain global write candidates and stage write candidates.

4. The method for evaluating the quality of medical and nursing operational behaviors based on continuous learning according to claim 3, characterized in that, The optimization of the read / write decisions of the hierarchical memory tree using a pre-trained latent dynamic model specifically includes: Obtain the read / write actions of the current read / write decision, wherein the read / write actions include read allocation and write allocation; The observation vector, composed of the stage-level visual representation, global readout features, stage readout features, global write candidates, stage write candidates, and video-specific temporal context, is used as the input to the policy network. The policy network outputs the scalar mean of read allocation and the scalar mean of write allocation; the read allocation is a probability allocation of global read weight and stage read weight, and the write allocation is a probability allocation of global write weight and stage write weight. Select read candidate sets and write candidate sets that match the scalar mean from the discrete candidate library, respectively; Construct a local root particle based on the read candidate set and the write candidate set; The read / write decisions of each local root particle are applied to the virtual tree, and the short-term effects of each local root particle in the virtual tree are inferred through a pre-trained latent dynamics model. The root decision of the local root particle with the highest effect is selected as the optimized read / write decision, where the root decision is the read / write decision corresponding to the root node of the virtual tree.

5. The method for evaluating the quality of medical and nursing operational behaviors based on continuous learning according to claim 4, characterized in that, The deduction of the short-term effects of each local root particle in the virtual tree through a pre-trained latent dynamics model specifically includes: A virtual tree is constructed, and for each local root particle, the potential dynamics model is used to extrapolate layer by layer to obtain fusion readout and fusion write candidates. The fused readout and fused write candidates are input into the latent dynamics model to predict the next layer of potential knowledge state; The policy network is re-evaluated and the candidates are expanded at each non-leaf node, so that the virtual tree contains multiple leaf trajectories; On the extended nodes of the virtual tree, local rewards are calculated based on the predicted next-layer potential knowledge state, fusion read and fusion write candidates, and trajectory rewards are accumulated along the leaf trajectory. The maximum value of all trajectory rewards in each local root particle is taken as the short-term effect.

6. The method for evaluating the quality of medical and nursing operational behaviors based on continuous learning according to claim 4, characterized in that, Before extrapolating the short-term effects of each local root particle in the virtual tree using a pre-trained latent dynamics model, the process also includes: Add expert annotations to the medical and nursing operation behavior data; The stage-level visual representation and expert annotations are used for allocation processing to obtain stage pseudo-labels; The potential dynamics model is iteratively trained using multiple loss functions, and the short-term effects of each local root particle in the virtual tree are inferred from the jointly trained potential dynamics model. The root decision of the local root particle with the highest effect is selected as the training read and write decision, and the corresponding training knowledge features are read from the hierarchical memory tree through the training read and write decision; Based on the training knowledge features and the stage-level visual representation, the training scores for each stage are obtained through a regressor mapping. The total prediction loss is calculated based on the training scores of each stage and the pseudo-labels of each stage. When the total prediction loss is less than a preset threshold, the iterative training of the dynamic model is stopped.

7. The method for evaluating the quality of medical and nursing operational behaviors based on continuous learning according to claim 6, characterized in that, The calculation of the total prediction loss based on the training scores and pseudo-labels of each stage specifically includes: The mean squared error between the stage prediction score and the stage pseudo-label is used as the stage prediction loss. The advantage function with gradient truncation is calculated using the batch baseline to evaluate the effect of the local root particle. The negative value of the product of the advantage function and the log-likelihood of the policy network on the optimized read / write decision is averaged over the batch to obtain the policy gradient loss. The value function loss is obtained by regressing the output of the value function estimator on the potential state of the local root particle to the cutoff value of the local root particle effect. Freeze the master model, and use the forward output of the freezing strategy to fit the real current stage potential state of the potential model to obtain the dynamic calibration loss. For each solidified memory tree entry, the knowledge prototype is used as a stage representation and readout for score response probing, and the mean square error between the knowledge prototype and the score response anchor recorded when the entry is solidified is weighted according to the importance of solidification to obtain the anchor response loss. The KL divergence between the current response and the policy response anchor of the read / write policy is weighted according to the fixed importance to obtain the policy routing consistency loss; In the final task, the sum of all cached deterministic predictions from previous stages, the sum of predictions from the current stage, and the mean squared error of expert annotations are used as the video-level calibration loss. The total prediction loss is obtained by weighted summing of the stage prediction loss, policy gradient loss, value function loss, dynamic calibration loss, anchoring response loss, policy routing consistency loss, and video-level calibration loss.

8. The method for evaluating the quality of medical and nursing operational behaviors based on continuous learning according to claim 7, characterized in that, The process of assigning pseudo-labels based on the stage-level visual representations and expert annotations specifically includes: The stage-level visual representations are arranged in sequence to obtain a stage representation sequence; A trained scorer is obtained, and a sensitivity analysis method is used to calculate the path integral gradient of the scorer along the linear interpolation path from the reference sequence to the stage characterization sequence. The path sensitivity of each stage is obtained based on the path integral gradient. The scoring contribution coefficient for each stage is calculated based on the inner product of the path sensitivity and the corresponding stage representation. After preprocessing the scoring contribution coefficient, the stage weight is obtained. The stage weight is then multiplied by the expert annotation to obtain the stage pseudo-label.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method according to any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 8.