Surgical skill assessment method and device based on video, equipment and medium
By using the spatial interaction module and temporal interaction module of the graph convolution network in the surgical video, the target detection and tracking of the surgical video is carried out, and the spatiotemporal model of the instrument and tissue is established, which solves the problem of accuracy and objectivity of surgical skill assessment in the existing technology. Sexual issues, achieving an efficient and automated assessment process.
Patent Information
- Application Number
- CN202410728952.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technology makes it difficult to accurately and objectively assess surgical skills, especially for complex surgeries such as strabismus surgery. The assessment process is time-consuming, labor-intensive, and subject to subjective bias.
The spatial interaction module and temporal interaction module based on graph convolution network are used to detect and track targets in surgical video frames, establish a spatiotemporal model between instruments and tissues, and realize surgical skill assessment.
It improves the accuracy and standardization of surgical skill assessment, enables fast, frequent, and automated evaluation and feedback, and reduces subjective bias.
Smart Images

Figure CN118609020A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a video-based surgical skill assessment method and device, electronic device, and computer-readable storage medium. Background Art
[0002] Understanding expert surgical operations is the cornerstone of ophthalmologists' learning, and accurately and objectively evaluating doctors' surgical skills is an accelerator of ophthalmologists' learning. At present, the evaluation of skill learning in surgical education mainly relies on the experience of expert doctors, and guidance is achieved through language expression and evaluation. However, "skilled and advanced surgical skills" are difficult to understand and quickly pass on through language, and each doctor's understanding or learning ability or method is different.
[0003] In the related art, for a certain surgical video (such as a strabismus surgery video), expert doctors usually evaluate the doctor's surgical process, tissue processing or efficiency based on a surgical skill rating scale. However, such an evaluation is difficult to frequently, organized and uniformly standardize the feedback of the performance and operation details of the entire surgical process. It is not only time-consuming and laborious, but also the scoring is likely to be subjective or biased. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a video-based surgical skill assessment method and device, electronic device, and storage medium, which improves the standardization and accuracy of surgical skill assessment.
[0005] To achieve the above objectives, a first aspect of an embodiment of the present application proposes a video-based surgical skill assessment method, the method comprising:
[0006] Performing target detection on each of the plurality of video frames of the surgical video to obtain a plurality of initial detection frames and bleeding amounts, each of the initial detection frames indicating a tissue object or an instrument object;
[0007] Using a spatial interaction module based on a graph convolutional network, adjusting the initial detection frame of each video frame to obtain a target detection frame;
[0008] Tracking the target detection frames in the plurality of video frames to obtain an initial detection frame tracking trajectory, wherein the initial detection frame tracking trajectory includes an initial tissue object tracking trajectory and an initial instrument object tracking trajectory;
[0009] Using a temporal interaction module based on a graph convolutional network, the initial tissue object tracking trajectory and the initial instrument object tracking trajectory are adjusted respectively to obtain a target tissue object tracking trajectory and a target instrument object tracking trajectory;
[0010] A surgical skill assessment is performed based on the bleeding volume, the target tissue object tracking trajectory, and the target instrument object tracking trajectory of the plurality of video frames.
[0011] Optionally, the using a spatial interaction module based on a graph convolutional network to adjust the initial detection frame of each video frame to obtain a target detection frame includes:
[0012] For each of the video frames, an organization node and an instrument node in a graph network are created respectively according to an initial detection frame for indicating the organization object and an initial detection frame for indicating the instrument object, and the frame information corresponding to the organization object is used as a node feature of the organization node, and the frame information corresponding to the instrument object is used as a node feature of the instrument node; wherein the frame information includes appearance information and position information;
[0013] creating edges in the graph network for the organization node and the device node, and using the interaction between the organization object and the device object as edge features of the edges;
[0014] Multi-scale neighborhood reasoning is performed on the graph network through a graph convolutional network to obtain the target detection frame.
[0015] Optionally, taking the interaction between the tissue object and the instrument object as the edge feature of the edge includes:
[0016] Calculating a graph weight between the organization node and the instrument node according to the node feature of the organization node and the node feature of the instrument node, wherein the graph weight represents the interaction between the organization object and the instrument object;
[0017] Predicting a surgical action according to the node features of the tissue node and the node features of the instrument node;
[0018] An edge feature of the edge is determined according to the graph weight and the surgical action.
[0019] Optionally, the using of a graph convolutional network-based temporal interaction module to adjust the initial tissue object tracking trajectory and the initial instrument object tracking trajectory respectively to obtain a target tissue object tracking trajectory and a target instrument object tracking trajectory comprises:
[0020] Recording two adjacent video frames as a first video frame and a second video frame;
[0021] Generate a first node in the graph neural network according to the target detection frame in the first video frame, and determine a node feature of the first node according to appearance information of the target detection frame;
[0022] Generate a second node in the graph neural network according to the target detection frame in the second video frame, and determine a node feature of the second node according to appearance information of the target detection frame;
[0023] Calculating a first connection degree between the first node and the second node according to the node feature of the first node and the node feature of the second node;
[0024] If the first connectivity indicates that the first node is connected to the second node, a first identifier corresponding to the target detection frame of the first node is assigned to the target detection frame of the second node, and an initial detection frame tracking trajectory corresponding to the first identifier is updated to obtain a target detection frame tracking trajectory, where the target detection frame tracking trajectory is the target tissue object tracking trajectory or the target instrument object tracking trajectory;
[0025] If the first connectivity characterizes that the first node and the second node are not connected, the initial detection frame trajectory corresponding to the first identifier is added to the lost trajectory pool, a second identifier is assigned to the detection frame of the second node, and the target detection frame tracking trajectory corresponding to the second identifier is recorded.
[0026] Optionally, calculating the first degree of connectivity between the first node and the second node according to the node feature of the first node and the node feature of the second node includes:
[0027] According to the node features of the first node and the node features of the second node, respectively calculate the appearance similarity, the spatial distance, and the bounding box intersection-over-combination ratio;
[0028] Determining edge features corresponding to the first node and the second node according to the appearance similarity, the spatial distance, and the border intersection-to-merge ratio;
[0029] The first connectivity is calculated based on the edge features.
[0030] Optionally, after calculating the first degree of connectivity between the first node and the second node according to the node feature of the first node and the node feature of the second node, the method further includes:
[0031] If the first connectivity indicates that the first node is not connected to the second node, and the lost track pool is not empty, obtaining a lost detection box tracking track from the lost track pool, where the lost detection box tracking track indicates a detection box of a video frame before the first video frame corresponding to a lost identifier;
[0032] Perform node recovery according to the detection box corresponding to the lost identifier to obtain the lost node in the graph neural network;
[0033] Calculating a second degree of connectivity between the lost node and the second node according to the node feature of the lost node and the node feature of the second node;
[0034] If the second connectivity indicates that the lost node is connected to the second node, the lost identifier is assigned to the detection box corresponding to the second node, the lost detection box trajectory corresponding to the lost identifier is updated to obtain the target detection box trajectory, and the lost detection box trajectory corresponding to the lost identifier is deleted from the lost trajectory pool.
[0035] Optionally, before acquiring the lost detection box trajectory from the lost trajectory pool, the method further includes:
[0036] Determine the video frame where the last detection frame corresponding to the lost identifier in the lost track pool is located as the end video frame;
[0037] Calculating the number of frames between the end video frame and the first video frame;
[0038] If the number of frames is greater than or equal to a preset number threshold, the lost detection frame trajectory corresponding to the lost identifier is deleted from the lost trajectory pool.
[0039] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a video-based surgical skill assessment device, the device comprising:
[0040] A detection unit, configured to perform target detection on each of the plurality of video frames of the surgical video to obtain a plurality of initial detection frames and bleeding amounts, wherein each of the initial detection frames indicates a tissue object or an instrument object;
[0041] A spatial interaction unit, configured to adjust the initial detection frame of each video frame by using a spatial interaction module based on a graph convolutional network to obtain a target detection frame;
[0042] A tracking unit, configured to track the target detection frames in the plurality of video frames to obtain an initial detection frame tracking trajectory, wherein the initial detection frame tracking trajectory includes an initial tissue object tracking trajectory and an initial instrument object tracking trajectory;
[0043] A timing interaction unit, configured to adjust the initial tissue object tracking trajectory and the initial instrument object tracking trajectory respectively by using a timing interaction module based on a graph convolutional network, so as to obtain a target tissue object tracking trajectory and a target instrument object tracking trajectory;
[0044] An evaluation unit is used to evaluate the surgical skills based on the bleeding volume, the target tissue object tracking trajectory and the target instrument object tracking trajectory of the plurality of video frames.
[0045] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0046] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, the method described in the first aspect is implemented.
[0047] The present application proposes a video-based surgical skill assessment method and device, electronic device, and computer-readable storage medium. After the video frame is detected to obtain the initial detection frame, the spatial interaction module based on the graph convolution network is used to adjust the initial detection frame to obtain the target detection frame, which can improve the accuracy of detecting tissue objects and instrument objects. After the target detection frame is tracked to obtain the initial detection frame tracking trajectory, the temporal interaction module based on the graph convolution network is used to adjust the initial detection frame tracking trajectory, and the target tissue object tracking trajectory and the target instrument object tracking trajectory can be obtained, thereby optimizing the tracking trajectory. It can be seen that the spatial interaction module and the temporal interaction module introduced in the present application are equivalent to introducing the detection and reasoning of the relationship between the instrument and the tissue to realize the understanding of the surgical scene, so as to explore the potential interaction space, aggregate the spatial and temporal information between frames, and establish a spatiotemporal model between the instrument and the tissue, which is conducive to better target detection and tracking. Finally, the surgical skill assessment is performed based on the amount of bleeding, the target tissue object tracking trajectory, and the target instrument object tracking trajectory according to multiple video frames. The present application not only realizes the standardization of surgical skill assessment, but also improves the accuracy of surgical skill assessment. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is an optional flow chart of the video-based surgical skill assessment method provided in an embodiment of the present application;
[0049] Figure 2 is an overall framework diagram of a video-based surgical skill assessment method according to an embodiment of the present application;
[0050] Figure 3 yes Figure 1 Flowchart of step 102;
[0051] Figure 4 yes Figure 1 A flowchart of step 104;
[0052] Figure 5 yes Figure 1 Another flow chart of step 104;
[0053] Figure 6 is an example flow chart of a video-based surgical skill assessment method provided in an embodiment of the present application;
[0054] Figure 7 A schematic diagram of the structure of a video-based surgical skill assessment device provided in an embodiment of the present application;
[0055] Figure 8 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0057] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0059] First, some nouns involved in this application are analyzed:
[0060] Artificial intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. AI is a branch of computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing and expert systems. AI can simulate the information process of human consciousness and thinking. AI is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0061] Back propagation: The general principle of back propagation is: input the training set data into the input layer of the neural network, pass through the hidden layer of the neural network, and finally reach the output layer of the neural network and output the result; since there is an error between the output result of the neural network and the actual result, the error between the estimated value and the actual value is calculated, and the error is backpropagated from the output layer to the hidden layer until it propagates to the input layer; in the process of back propagation, the values of various parameters are adjusted according to the error; the above process is continuously iterated until convergence.
[0062] At present, there are ophthalmic surgery simulation systems that simulate eyeballs or ex vivo animal eyes to shorten the doctor's learning and training cycle, and are mainly used in cataract surgery. However, strabismus surgery is a complex surgery, which is reflected in the different causes, types, and degrees of strabismus. In the design of the surgical volume, it is necessary to fully consider many factors such as its physiological anatomy, morphological position, nerve innervation, length of the eye axis, and refractive state. The operation of strabismus surgery will be different. At the same time, there is currently a lack of training and evaluation systems for novice doctors who have just started to perform real human eye surgery but have not yet performed completely independent surgery. Novice doctors mainly rely on observing the operations of expert doctors or relying on the intermittent language expressions of experts for learning or evaluation. This unstandardized and inefficient way of imparting clinical experience and surgical technical operations is one of the reasons for extending the doctor's learning and training cycle.
[0063] Accurately and objectively understanding surgical operations is the cornerstone of ophthalmologists' learning, and accurately and objectively evaluating doctors' surgical skills is an accelerator of ophthalmologists' learning. At present, the evaluation of skill learning in surgical education mainly relies on the experience of expert doctors, and guidance is achieved through language expression and evaluation. However, "skilled and advanced surgical skills" are difficult to understand and quickly pass on through language, and each doctor's understanding or learning ability or method is different. For a certain surgical video, expert doctors usually evaluate the doctor's surgical process, tissue processing or efficiency based on the surgical skill rating scale, but it is difficult to frequently, organized, and uniformly standardize feedback on the performance and operation details of the entire operation. It is not only time-consuming, laborious, and the scoring is likely to be subjective or biased.
[0064] In order to solve the above problems, the embodiment of the present application proposes to combine artificial intelligence algorithms to understand and analyze the scenes of surgical videos (instruments, tissues, surgical movements, etc.) in multiple dimensions and then conduct surgical skill assessment. It can seamlessly process a large amount of doctors' surgeries or training data (videos, images, etc.) to achieve fast, frequent, automated and repeatable evaluation and feedback.
[0065] The video-based surgical skill assessment method of the embodiment of the present application can be executed by the server alone, or by the terminal alone, or by the terminal and the server together. In addition, the video-based surgical skill assessment method provided in the embodiment of the present application can also be software running on the server. The server can be configured as an independent physical server, or as a server cluster or distributed system consisting of multiple physical servers, or as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements a video-based surgical skill assessment method, etc., but is not limited to the above forms.
[0066] The embodiments of the present application provide a video-based surgical skill assessment method, a video-based surgical skill assessment device, an electronic device, and a computer-readable storage medium, which are specifically illustrated by the following embodiments. First, the video-based surgical skill assessment method in the embodiments of the present application is described.
[0067] See also Figure 1 According to one embodiment of the present application, a video-based surgical skills assessment method includes:
[0068] Step 101, performing target detection on each of a plurality of video frames of a surgical video to obtain a plurality of initial detection frames and bleeding amounts, each initial detection frame indicating a tissue object or an instrument object;
[0069] Step 102, using a spatial interaction module based on a graph convolutional network, adjusting the initial detection frame of each video frame to obtain a target detection frame;
[0070] Step 103, tracking the target detection frames in the multiple video frames to obtain an initial detection frame tracking trajectory, where the initial detection frame tracking trajectory includes an initial tissue object tracking trajectory and an initial instrument object tracking trajectory;
[0071] Step 104, using a graph convolutional network-based temporal interaction module, respectively adjusting the initial tissue object tracking trajectory and the initial instrument object tracking trajectory to obtain a target tissue object tracking trajectory and a target instrument object tracking trajectory;
[0072] Step 105 , performing surgical skill assessment based on the bleeding volume, target tissue object tracking trajectory, and target instrument object tracking trajectory of multiple video frames.
[0073] Reference Figure 2 , Figure 2 It is an overall framework diagram of the video-based surgical skill assessment method according to an embodiment of the present application.
[0074] Figure 2 The leftmost part of is a plurality of video frames of the surgical video in step 101. Object detection includes instrument detection and tissue detection. Figure 2 By using the detection model (YOLOX model) to perform device detection on the video frame, an initial detection frame for indicating the device object can be obtained; by using the detection model (YOLOX model) to perform tissue detection on the video frame, an initial detection frame for indicating the tissue object can be obtained.
[0075] Step 102 is performed on the initial detection frame. Figure 2 By using the GCN-based spatial interaction module to interact the initial detection frame for indicating the instrument object and the initial detection frame for indicating the tissue object at the spatial level, a more accurate target detection frame can be output. Each target detection frame indicates a tissue object or an instrument object.
[0076] Execute step 103 for the target detection frame. Figure 2 , by tracking the target detection box used to indicate the tissue object using the tracking model (SGT model), the initial tissue object tracking trajectory can be obtained; by tracking the target detection box used to indicate the tissue object using the tracking model (SGT model), the initial tissue object tracking trajectory can be obtained.
[0077] Step 104 is performed on the initial tissue object tracking trajectory and the initial instrument object tracking trajectory. Figure 2 By using the GCN-based temporal interaction module to interact with the initial tissue object tracking trajectory and the initial instrument object tracking trajectory at the temporal level, a target tissue object tracking trajectory and a target instrument object tracking trajectory with higher accuracy can be output. The target tissue object tracking trajectory includes the detection results of tissue objects identified as the same in multiple video frames. The target instrument object tracking trajectory includes the detection results of instrument objects identified as the same in multiple video frames.
[0078] Finally, step 105 is executed. Through the deep learning network of the first two stages (detection stage and tracking stage), the tracking trajectories of instruments and tissues in the surgical video, that is, the motion features and relationship features of the instruments and tissues, can be obtained. In one embodiment, a new skill evaluation model can be trained based on the convolutional neural network model and the established surgical video data set using the extracted features. The skill evaluation model should be based on the evaluation criteria given by the expert team, by obtaining the specific features of the instruments and tissues, and comparing and learning with the expert skill operations, identifying the factors that affect the expert evaluation skills in the surgical video, and tracking detailed operations (such as abnormal trajectories of instruments, surgical tissue bleeding, etc.), to predict and evaluate good and poor surgical skills, and realize the automation of surgical skill evaluation.
[0079] The benefit of the above steps 101 to 105 is that surgical skills can be effectively evaluated based on videos with high accuracy.
[0080] In one embodiment, referring to Figure 2 , there is a detection loss function Loss detection And the tracking loss function L A Two loss functions. The detection model and the tracking model can be back-propagated through the detection loss function and the tracking loss function to achieve model optimization. detection The calculation process is shown in formula (1).
[0081] Loss detection =L cls +L reg Formula (1)
[0082] In formula (1), the detection loss function Loss detection For label assignment, mainly composed of bounding box loss L reg and the class loss L cls composition.
[0083] L teg = -log(IoU(B gt ,B pred )) Formula (2)
[0084] In formula (2), for the bounding box loss L reg , can be calculated using IoU Loss, where B gt is the coordinate position of the real box, B pred is the coordinate position of the predicted box.
[0085]
[0086] In formula (3), for the category loss L cls , can be calculated using BCE Loss, where t i is the true label value, p i is the predicted label value, n is the total number of frames, and i is the i-th frame.
[0087] In the tracking model, a sparse graph of the graph network can be constructed to associate data in time series, so there will be associated loss:
[0088] L A =w edge L edge +w node L node Formula (4)
[0089] In formula (4), wedge and w node is the weight coefficient. In constructing a sparse graph, the edge and node scores can be output as edge scores (ES) and node scores (NS) respectively, and the edge loss L is calculated based on these scores. edge and node loss L node :
[0090]
[0091]
[0092] Among them, N E+ is the number of GT edges with at least one positive endpoint, E is the set of edges in G, FL is the focal loss, t1→t2 is the direction of the edge, and ES i,j is the connection node n i and n j The side of the side score, ey i,j is the connection node n i and n j GT label of the edge, ny i is node n i GT label,ny j Yes j GT label. It is the node where GT is positive at time t2, NS J is node n j The node score.
[0093] In step 101, the surgical video is an image data recording the actual surgical process, which is usually used for medical education, training, learning and research of surgical techniques. The surgical video shows the entire process of the surgical operation, including surgical preparation, operation steps, perioperative care and other contents. There are many ways to obtain the surgical video. For example, the surgical process can be recorded by a video acquisition device (camera, etc.) to obtain the surgical video. For another example, the surgical video can be obtained from a local or external database, or the surgical video can be downloaded from the Internet, etc.
[0094] Surgical videos usually include a large number of video frames, the specific number of which depends on the frame rate (Frames persecond, FPS) of the video and the recording duration. Video frame rate refers to the number of static images displayed in the video per second. During medical surgery, in order to record the surgical details and operation steps more finely, a higher frame rate is usually selected for recording. Typical surgical video frame rates can be 24 frames / second, 30 frames / second or even higher 60 frames / second. If a surgical video is recorded for 30 minutes, the number of video frames it contains can range from tens of thousands to hundreds of thousands, depending on the frame rate. Each video frame in the surgical video is a transient static image. When multiple video frames are played continuously at a high rate, a dynamic video picture is formed. When these video frames are played continuously, they can accurately record every detail of the surgical operation, which is helpful for surgical skill assessment.
[0095] In one embodiment, target detection includes tissue detection, instrument detection and bleeding volume detection, and step 101 includes: performing tissue detection on each video frame to obtain an initial detection frame for indicating tissue; performing instrument detection on each video frame to obtain an initial detection frame for indicating instrument; performing bleeding volume detection on each video frame to obtain bleeding volume. A first target detection model can be used to perform tissue detection and instrument detection on each video frame respectively to obtain an initial detection frame for indicating tissue and an initial detection frame for indicating instrument. The first target detection model is a neural network model, such as a YOLOX model. A second target detection model can be used to perform bleeding volume detection on each video frame to obtain bleeding volume. The second target detection model is a neural network model, such as a U-net model.
[0096] In one embodiment, step 101 includes: performing global average pooling processing on each video frame through a pooling layer to obtain global features of multiple channels; performing local cross-channel interaction processing on the global features of multiple channels through a one-dimensional convolution layer to obtain interaction features of multiple channels; performing nonlinear activation processing on the interaction features of multiple channels through an activation function layer to obtain weights of multiple channels; multiplying the weights of multiple channels with corresponding elements of the video frame to update the video frame; performing detection frame prediction on each updated video frame to obtain multiple initial detection frames; optimizing the position of the initial detection frame through graph convolution, and optimizing the size of the initial detection frame through frame merging; classifying each initial detection frame to obtain an initial detection frame for indicating a tissue object or an initial detection frame for indicating an instrument object.
[0097] In the target detection stage, this embodiment uses YOLOX with better performance as the baseline, and predicts the target position and type (instrument or tissue) through classification and regression. In order to improve the detection accuracy of surgical scenes, especially tissues, instrument and tissue detection and tracking will be separated. In the YOLOX_FPN stage, this embodiment introduces the ECA (Efficient Channel Attention) mechanism, which assists in the screening of features through channel interaction, which helps to optimize the generated feature map and improve the confidence of the model in identifying the existence of objects. The ECA mechanism first performs a global average pooling operation on the input feature map to obtain the global features of each channel; then a one-dimensional convolutional layer is used to realize local cross-channel interaction, thereby extracting the dependencies between channels, and then after the Sigmoid activation function, the weights of each channel are obtained; finally, the obtained channel attention weights are multiplied by the corresponding elements of the original input feature map (video frame) to obtain the final output feature map (updated video frame), thereby recalibrating the weights of each channel and effectively improving the feature expression capability. In YOLOX_Head, this embodiment uses graph convolution (GraphConv) and box merging (Box Merge) to optimize the position and size of the prediction box, and solve the problem of inaccurate detection box from a spatial perspective. This embodiment can improve the accuracy of target detection.
[0098] In one embodiment, when performing target detection, an improved Faster R-CNN model can be used to identify devices and tissues in each video frame, and combined with a spatiotemporal attention layer (STAL), the performance of target detection can be effectively improved by simultaneously aggregating spatial and temporal information between frames.
[0099] In step 102, the interaction module based on the graph convolutional network (including the spatial interaction module based on GCN and the temporal interaction module based on GCN) introduces the detection and reasoning of the relationship between the instrument and the tissue to realize the understanding of the surgical scene, so as to mine the potential interaction space, aggregate the spatial and temporal information between frames, and establish a spatiotemporal model between the instrument and the tissue, which is conducive to better target detection and tracking.
[0100] In one embodiment, referring to Figure 3 , step 102 comprises:
[0101] Step 301, for each video frame, create an organization node and an instrument node in a graph network according to an initial detection frame for indicating an organization object and an initial detection frame for indicating an instrument object, respectively, and use the frame information corresponding to the organization object as a node feature of the organization node, and use the frame information corresponding to the instrument object as a node feature of the instrument node; wherein the frame information includes appearance information and position information;
[0102] Step 302, creating edges in a graph network for the organization node and the device node, and using the interaction between the organization object and the device object as the edge feature of the edge;
[0103] Step 303: Perform multi-scale neighborhood reasoning on the graph network through the graph convolutional network to obtain the target detection frame.
[0104] Specifically, in the spatial interaction module, the relationship between the five-tuple reasoning instrument and the tissue can be introduced, and the instrument and tissue are respectively used as instrument nodes and tissue nodes in the graph network. The appearance information, position information and other information of the instrument tissue are extracted from the surgical video as node features. The interaction between the surgical instrument and the tissue is used as the edge feature of the edge for intra-frame connection, and a graph network (also called a sparse graph) is constructed in the intra-frame space. Then, a graph convolutional network (GCN) is used to process the sparse graph, considering the proximity and interaction between the instrument and the tissue in space, and multi-scale neighborhood reasoning is performed. The overlap between the candidate frames and the confidence can be used for weighted fusion to optimize the initial detection frame position and obtain the target detection frame. This embodiment can optimize the detection frame, thereby helping to improve the accuracy of surgical skill assessment.
[0105] In one embodiment, step 302 includes: calculating the graph weight between the tissue node and the instrument node based on the node characteristics of the tissue node and the node characteristics of the instrument node, the graph weight representing the interaction between the tissue object and the instrument object; predicting the surgical action based on the node characteristics of the tissue node and the node characteristics of the instrument node; and determining the edge characteristics of the edge based on the graph weight and the surgical action.
[0106] Specifically, the present embodiment can introduce a graph-based quintuple prediction layer (GQPL) for inferring the relationship between instruments and tissues and predicting the corresponding surgical actions. Specifically, the node features of the detected tissue nodes and the node features of the instrument nodes are sent to GQPL. The graph-based quintuple prediction layer follows the framework of the message passing neural network (MPNN) and uses the detected instruments and tissues as nodes in the graph network. The graph weights between the nodes are calculated, and the graph weights represent the relationship between the instruments and tissues. The node features can also be refined through message passing and update processes (for example, the frame information of the tissue object of the previous video frame of the video frame and the frame information of the instrument object update the node features corresponding to the video frame). The updated features are read out through a fully connected layer to predict the surgical actions between the node pairs (instrument nodes and tissue nodes). Surgical actions refer to the specific operations, technical steps or actions performed by doctors, nurses or other medical team members during the operation. Surgical actions may include incisions, measurements, cutting, suturing, etc.
[0107] In step 103, the initial detection frame tracking trajectory refers to the trajectory formed by the detection frames indicating the same object (tissue or instrument) in multiple video frames. The initial detection frame tracking trajectory includes the initial tissue object tracking trajectory and the initial instrument object tracking trajectory. For example, if tissue A appears in 10 video frames, then tissue A in the 10 video frames can form an initial tissue object tracking trajectory corresponding to tissue A. For another example, if instrument B appears in 10 video frames, then instrument B in the 10 video frames can form an initial instrument object tracking trajectory corresponding to instrument B. This embodiment can use a graph network to construct a temporal connection between targets, construct a sparse graph (SG) for tracking, optimize the association method of the detection frame, perform trajectory repair, and optimize the tracking robustness in time.
[0108] In step 104, this embodiment introduces a GCN-based temporal interaction module for tracking and updating. The temporal interaction module is to associate the detection frames of consecutive frames. The temporal interaction module extracts the detection frames and features of two adjacent frames (the first video frame and the second video frame), takes the detection frame as a node, and the appearance information of the detection frame as the node feature. It combines the appearance similarity (cosine distance) and the spatial relationship (such as spatial distance, border I oU, etc.) as the edge feature of the two node connection to iteratively update, and obtain the first connectivity between the nodes. The connection relationship can also be matched by the Hungarian algorithm. When a detection frame tracking trajectory is not inter-frame propagated through connection prediction within a certain number of frames, the detection frame tracking trajectory is added to the lost trajectory pool and continuously tracked for a certain number of frames. If the number of frames is greater than or equal to the preset number threshold, the lost detection frame trajectory corresponding to the lost identifier is deleted from the lost trajectory pool. For the new trajectory, if there are nodes in the previous and next frames that remain connected, they are assigned unique identifiers. The temporal interaction module realizes the effective recovery of missed detection between consecutive frames and handles problems such as occlusion during surgery. Based on this, step 104 may include the following embodiments.
[0109] In one embodiment, referring to Figure 4 , step 104 comprises:
[0110] Step 401, recording two adjacent video frames as a first video frame and a second video frame;
[0111] Step 402, generating a first node in the graph neural network according to the target detection frame in the first video frame, and determining a node feature of the first node according to appearance information of the detection frame;
[0112] Step 403, generating a second node in the graph neural network according to the target detection frame in the second video frame, and determining a node feature of the second node according to the appearance information of the detection frame;
[0113] Step 404, calculating a first connection degree between the first node and the second node according to the node feature of the first node and the node feature of the second node;
[0114] Step 405: if the first connectivity indicates that the first node and the second node are connected, a first identifier corresponding to the detection frame of the first node is assigned to the detection frame of the second node, and an initial detection frame tracking trajectory corresponding to the first identifier is updated to obtain a target detection frame tracking trajectory, where the target detection frame tracking trajectory is a target tissue object tracking trajectory or a target device object tracking trajectory;
[0115] Step 406: If the first connectivity characterizes that there is no connection between the first node and the second node, the initial detection frame trajectory corresponding to the first identifier is added to the lost trajectory pool, the second identifier is assigned to the detection frame of the second node, and the target detection frame tracking trajectory corresponding to the second identifier is recorded.
[0116] The benefit of the embodiment of step 401 to step 406 is that trajectory tracking can be achieved accurately.
[0117] In one embodiment, step 404 includes: calculating the appearance similarity, spatial distance, and border intersection-to-combination ratio based on the node features of the first node and the node features of the second node respectively; determining the edge features corresponding to the first node and the second node based on the appearance similarity, spatial distance, and border intersection-to-combination ratio; and calculating the first connectivity based on the edge features.
[0118] In one embodiment, referring to Figure 5 , after step 404, step 104 further includes:
[0119] Step 501: if the first connectivity indicates that there is no connection between the first node and the second node, and the lost track pool is not empty, then obtaining a lost detection frame tracking track from the lost track pool, where the lost detection frame tracking track indicates a detection frame of a video frame before the first video frame corresponding to a lost identifier;
[0120] Step 502, recovering nodes according to the detection box corresponding to the lost identifier to obtain the lost nodes in the graph neural network;
[0121] Step 503, calculating a second connectivity between the lost node and the second node according to the node feature of the lost node and the node feature of the second node;
[0122] Step 504: if the second connectivity indicates that the lost node is connected to the second node, a lost identifier is assigned to the detection box corresponding to the second node, the lost detection box trajectory corresponding to the lost identifier is updated to obtain the target detection box trajectory, and the lost detection box trajectory corresponding to the lost identifier is deleted from the lost trajectory pool.
[0123] It should be noted that this embodiment proposes an innovative interaction module (the above-mentioned spatial interaction module and temporal interaction module) to establish an association relationship between the instrument and the tissue to help improve the detection accuracy and tracking robustness. In actual experiments, under the same model, the detection accuracy of general instruments is higher and the tracking is more stable, while the detection and tracking effect of tissues is not ideal due to environmental similarity and intraoperative deformation. Therefore, the interaction module provided in this embodiment focuses on optimizing the detection and tracking position of the tissue through the relatively precise position of the instrument, combined with the potential interaction relationship between the instrument and the tissue, to achieve "instrument-guided" tracking and improve tracking accuracy.
[0124] Reference Figure 6 , a video-based surgical skills assessment method may include the following implementation steps:
[0125] (1) Acquisition stage: Acquire multiple video frames in the surgical video.
[0126] (2) Object detection stage: tissue detection, instrument detection and bleeding volume detection are performed on each video frame to obtain an initial detection frame for indicating the tissue object, an initial detection frame for indicating the instrument object, and the bleeding volume.
[0127] (3) Tissue-device tracking stage: The initial detection frame is tracked based on the tissue-device correlation mechanism to obtain the target tissue object tracking trajectory and the target device object tracking trajectory. The tissue-device correlation mechanism includes the GCN-based spatial interaction module and the GCN-based temporal interaction module mentioned above.
[0128] (4) Evaluation phase: Parameters such as trajectory smoothness (such as the smoothness of the target tissue object tracking trajectory and the smoothness of the target instrument object tracking trajectory), trajectory curvature, target corner, bleeding volume, correlation (such as surgical action), instrument position, and tissue position are input into the aggregation function to evaluate the surgical skills and obtain the skill score.
[0129] (5) Output stage: Output the skill score to the human-computer interaction interface.
[0130] It should be noted that in step (3), parameters such as surgical actions (including incision, measurement, cutting and suturing), tracking ID, time and confidence are involved. The surgical actions have been described above and will not be repeated here. Tracking ID means that each detected object will be assigned a unique tracking ID (such as the first identifier and the second identifier mentioned above). When two detection boxes remain connected in consecutive frames, they will share the same tracking ID to achieve continuous tracking. The duration of each object (tissue object or instrument object) is also tracked. If a trajectory is not propagated between frames through connection prediction within a certain number of frames, it will be added to the lost trajectory pool and continue to track for a certain number of frames. This helps long-term tracking and recovery after the object temporarily disappears, helping the model decide when to start and end tracking of an object. Confidence is measured by the foreground confidence score of the detection box. This score reflects whether the detection box truly represents the object, which can be used to evaluate the reliability of the detection result and decide whether to use the detection box for tracking or recovery of the trajectory. Detection boxes with high confidence will be used for tracking, while detection boxes with low confidence may be ignored or used to recover lost tracks.
[0131] See also Figure 7 The embodiment of the present application also provides a video-based surgical skill assessment device, which can implement the above-mentioned video-based surgical skill assessment method. Figure 7 The module structure block diagram of the video-based surgical skill assessment device provided in the embodiment of the present application includes:
[0132] A detection unit 701 is used to perform target detection on each of the multiple video frames of the surgical video to obtain multiple initial detection frames and bleeding amounts, each initial detection frame indicating a tissue object or an instrument object;
[0133] A spatial interaction unit 702 is used to adjust the initial detection frame of each video frame by using a spatial interaction module based on a graph convolutional network to obtain a target detection frame;
[0134] A tracking unit 703 is used to track the target detection frame in multiple video frames to obtain an initial detection frame tracking trajectory, where the initial detection frame tracking trajectory includes an initial tissue object tracking trajectory and an initial instrument object tracking trajectory;
[0135] A time sequence interaction unit 704 is used to adjust the initial tissue object tracking trajectory and the initial instrument object tracking trajectory respectively by using a time sequence interaction module based on a graph convolutional network to obtain a target tissue object tracking trajectory and a target instrument object tracking trajectory;
[0136] The evaluation unit 705 is used to evaluate the surgical skills according to the bleeding volume, target tissue object tracking trajectory and target instrument object tracking trajectory of multiple video frames.
[0137] It should be noted that the specific implementation of the video-based surgical skill assessment device is basically the same as the specific implementation example of the above-mentioned video-based surgical skill assessment method, and will not be repeated here.
[0138] The embodiment of the present application also provides an electronic device, which includes: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and when the program is executed by the processor, the above-mentioned video-based surgical skill assessment method is realized. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0139] See also Figure 8 , Figure 8 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0140] The processor 801 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0141] The memory 802 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 802, and the processor 801 calls and executes the video-based surgical skill assessment method of the embodiment of this application;
[0142] Input / output interface 803, used to implement information input and output;
[0143] The communication interface 804 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0144] A bus 805 that transmits information between the various components of the device (e.g., the processor 801, the memory 802, the input / output interface 803, and the communication interface 804);
[0145] The processor 801 , the memory 802 , the input / output interface 803 and the communication interface 804 are connected to each other in communication within the device via a bus 805 .
[0146] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned video-based surgical skills assessment method.
[0147] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0148] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0149] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0150] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0151] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0152] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0153] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0154] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0155] If the integrated unit is implemented in the form of 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 the present application is essentially 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, and the computer software product is stored in a storage medium, including multiple instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0156] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A video-based surgical skills assessment method, characterized in that: The method comprises: Performing target detection on each of the plurality of video frames of the surgical video to obtain a plurality of initial detection frames and bleeding amounts, each of the initial detection frames indicating a tissue object or an instrument object; Using a spatial interaction module based on a graph convolutional network, adjusting the initial detection frame of each video frame to obtain a target detection frame; Tracking the target detection frames in the plurality of video frames to obtain an initial detection frame tracking trajectory, wherein the initial detection frame tracking trajectory includes an initial tissue object tracking trajectory and an initial instrument object tracking trajectory; Using a temporal interaction module based on a graph convolutional network, the initial tissue object tracking trajectory and the initial instrument object tracking trajectory are adjusted respectively to obtain a target tissue object tracking trajectory and a target instrument object tracking trajectory; A surgical skill assessment is performed based on the bleeding volume, the target tissue object tracking trajectory, and the target instrument object tracking trajectory of the plurality of video frames.
2. The method according to claim 1, characterized in that The method of adjusting the initial detection frame of each video frame by using a spatial interaction module based on a graph convolutional network to obtain a target detection frame includes: For each of the video frames, an organization node and an instrument node in a graph network are created respectively according to an initial detection frame for indicating the organization object and an initial detection frame for indicating the instrument object, and the frame information corresponding to the organization object is used as a node feature of the organization node, and the frame information corresponding to the instrument object is used as a node feature of the instrument node; wherein the frame information includes appearance information and position information; creating edges in the graph network for the organization node and the device node, and using the interaction between the organization object and the device object as edge features of the edges; Multi-scale neighborhood reasoning is performed on the graph network through a graph convolutional network to obtain the target detection frame.
3. The method according to claim 2, characterized in that The using the interaction between the tissue object and the instrument object as the edge feature of the edge comprises: Calculating a graph weight between the organization node and the instrument node according to the node feature of the organization node and the node feature of the instrument node, wherein the graph weight represents the interaction between the organization object and the instrument object; Predicting a surgical action according to the node features of the tissue node and the node features of the instrument node; An edge feature of the edge is determined according to the graph weight and the surgical action.
4. The method according to any one of claims 1 to 3, characterized in that: The method uses a time sequence interaction module based on a graph convolutional network to adjust the initial tissue object tracking trajectory and the initial instrument object tracking trajectory respectively to obtain a target tissue object tracking trajectory and a target instrument object tracking trajectory, including: Recording two adjacent video frames as a first video frame and a second video frame; Generate a first node in the graph neural network according to the target detection frame in the first video frame, and determine a node feature of the first node according to appearance information of the target detection frame; Generate a second node in the graph neural network according to the target detection frame in the second video frame, and determine a node feature of the second node according to appearance information of the target detection frame; Calculating a first connection degree between the first node and the second node according to the node feature of the first node and the node feature of the second node; If the first connectivity indicates that the first node is connected to the second node, a first identifier corresponding to the target detection frame of the first node is assigned to the target detection frame of the second node, and an initial detection frame tracking trajectory corresponding to the first identifier is updated to obtain a target detection frame tracking trajectory, where the target detection frame tracking trajectory is the target tissue object tracking trajectory or the target instrument object tracking trajectory; If the first connectivity characterizes that the first node and the second node are not connected, the initial detection frame trajectory corresponding to the first identifier is added to the lost trajectory pool, a second identifier is assigned to the detection frame of the second node, and the target detection frame tracking trajectory corresponding to the second identifier is recorded.
5. The method according to any one of claim 4, characterized in that: The calculating the first connection degree between the first node and the second node according to the node feature of the first node and the node feature of the second node includes: According to the node features of the first node and the node features of the second node, respectively calculate the appearance similarity, the spatial distance, and the bounding box intersection-over-combination ratio; Determining edge features corresponding to the first node and the second node according to the appearance similarity, the spatial distance, and the border intersection-to-merge ratio; The first connectivity is calculated based on the edge features.
6. The method according to claim 4, characterized in that After calculating the first connection degree between the first node and the second node according to the node feature of the first node and the node feature of the second node, the method further includes: If the first connectivity indicates that the first node is not connected to the second node, and the lost track pool is not empty, obtaining a lost detection box tracking track from the lost track pool, where the lost detection box tracking track indicates a detection box of a video frame before the first video frame corresponding to a lost identifier; Perform node recovery according to the detection box corresponding to the lost identifier to obtain the lost node in the graph neural network; Calculating a second degree of connectivity between the lost node and the second node according to the node feature of the lost node and the node feature of the second node; If the second connectivity indicates that the lost node is connected to the second node, the lost identifier is assigned to the detection box corresponding to the second node, the lost detection box trajectory corresponding to the lost identifier is updated to obtain the target detection box trajectory, and the lost detection box trajectory corresponding to the lost identifier is deleted from the lost trajectory pool.
7. The method according to claim 6, characterized in that Before acquiring the lost detection frame trajectory from the lost trajectory pool, the method further includes: Determine the video frame where the last detection frame corresponding to the lost identifier in the lost track pool is located as the end video frame; Calculating the number of frames between the end video frame and the first video frame; If the number of frames is greater than or equal to a preset number threshold, the lost detection frame trajectory corresponding to the lost identifier is deleted from the lost trajectory pool.
8. A video-based surgical skill assessment device, characterized in that: The device comprises: A detection unit, configured to perform target detection on each of the plurality of video frames of the surgical video to obtain a plurality of initial detection frames and bleeding amounts, wherein each of the initial detection frames indicates a tissue object or an instrument object; A spatial interaction unit, configured to adjust the initial detection frame of each video frame by using a spatial interaction module based on a graph convolutional network to obtain a target detection frame; A tracking unit, configured to track the target detection frames in the plurality of video frames to obtain an initial detection frame tracking trajectory, wherein the initial detection frame tracking trajectory includes an initial tissue object tracking trajectory and an initial instrument object tracking trajectory; A timing interaction unit, configured to adjust the initial tissue object tracking trajectory and the initial instrument object tracking trajectory respectively by using a timing interaction module based on a graph convolutional network, so as to obtain a target tissue object tracking trajectory and a target instrument object tracking trajectory; An evaluation unit is used to evaluate the surgical skills based on the bleeding volume, the target tissue object tracking trajectory and the target instrument object tracking trajectory of the plurality of video frames.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
