1 Introduction

Minimally Invasive Surgery (MIS) has become a common practice in many surgical procedures (Palep 2009), bringing numerous benefits to patients. In recent years, numerous studies have attempted to integrate Artificial Intelligence (AI) technologies into MIS, with the aspiration of gradually achieving surgical automation (Attanasio et al. 2021). Among these efforts, two key technologies stand out: robot-assisted surgery (RAS) and computer-assisted surgery (CAS) (Rivas-Blanco et al. 2021). RAS (Palep 2009) is dedicated to addressing issues such as limited field of view, restricted tactile sensation, and constrained instrument movement. On the other hand, CAS primarily aims to assist surgeons during operations through AI-related technologies such as machine learning (Landaeta-Quinones et al. 2018).

The interest in surgical robots is undeniable when considering the substantial economic efforts made by major global economies to promote this market. It is projected that during the forecast period from 2019 to 2029, the market will grow at a compound annual growth rate of 10.7%, reaching a market size of $15.43 billion by 2029 (Kassahun et al. 2016). In the academic realm, the scientific community has also shown great enthusiasm. Over the past few decades, thousands of publications have been released, and numerous projects have been established to drive the development of this field (Battaglia et al. 2021).

CAS techniques hold significant potential in supporting a wide range of routine surgical activities. By offering clinical decision-making assistance, facilitating report generation, and enabling data annotation, it has spurred extensive research within the medical computer vision community. Research in AI-assisted MIS has actively explored instrument detection (Richa et al. 2011; Sznitman et al. 2014; Vardazaryan et al. 2018; Sznitman et al. 2018; Hajj et al. 2018; Jin et al. 2018), instrument segmentation (Attia et al. 2017; Su et al. 201), and instrument classification (Zia et al. 2023; Jaafari et al. 2021), driven by advances in convolutional neural networks (CNNs) (O’shea and Nash 2015). While early work predominantly focused on spatial feature extraction for instrument detection (Kitaguchi et al. 2022; Varghese et al. 2024), later efforts integrated temporal modeling to enable AI systems to understand the full surgical workflow. This shift is exemplified by studies on surgical instrument tracking and phase recognition (Twinanda et al. 2016; Zisimopoulos et al. 2018), which aim to bridge low-level instrument analysis with higher-level procedural context—a critical step toward advancing surgical autonomy.

With the advent of camera-based capture of surgical activities, a vast amount of data has become accessible for in-depth analysis. Surgical instrument tracking is essentially a multi-object tracking (MOT) challenge (Bouget et al. 2017). It requires the accurate modeling of the trajectories of all surgical instruments throughout an entire surgical video sequence, which is crucial for understanding and analyzing instrument-tissue interactions. Therefore, surgical instrument tracking requires not only spatial feature modeling for localization and classification, but more critically demands accurate instrument ID recognition to minimize misidentification errors. This necessitates a joint modeling approach that integrates both temporal information and spatial features to enable consistent instrument tracking throughout the surgical procedure (Bouget et al. 2017; Zhao et al. 2019).

Although there are still many CNN-based tracking algorithms, these algorithms usually cannot dynamically update the details of the surgical video, and may cause surgical instrument ID mismatch or target loss due to light changes, soft tissue deformation or occlusion. In addition, the current tracking algorithms only have specific surgical type tracking algorithms, and there is no unified tracking data set and tracking method framework for multiple surgical types and surgical instruments.

Table 1 Public available released surgical datasets

In this work, a unified surgical instrument tracking framework, named UVTracking, is proposed to address the challenges of multi-instrument tracking under diverse and complex surgical scenarios. By integrating hierarchical feature attention, graph neural networks, and a novel identity correction strategy, this framework significantly improves robustness and ID consistency in surgical environments. The main contributions of this work are summarized as follows:

  1. 1)

    A novel unified vision-based framework is proposed for tracking multiple surgical instruments across various procedures, including cholecystectomy, nephrectomy, and prostatectomy. To our knowledge, this is the first end-to-end solution integrating detection, tracking, and surgical scene correction specifically designed for diverse, real-world surgical settings.

  2. 2)

    A hierarchical feature convolutional attention (HFCA) module is introduced into the detection pipeline. This module aggregates multi-scale visual context and re-weights input features via attention maps, enabling the model to extract discriminative representations under challenging conditions such as occlusion and illumination changes.

  3. 3)

    A dual-branch graph neural network (GNN)-based tracker is developed to simultaneously model spatial appearance and temporal motion similarity. It performs real-time iterative identity association across frames, significantly improving IDF1 and reducing identity switches in multi-object tracking tasks.

  4. 4)

    A surgery scenario correction (SSC) algorithm is designed to address identity ambiguity by constraining object ID overflows and reassigning IDs based on spatio-temporal consistency. This plug-and-play algorithm reduces ID switches obviously when applied to existing popular trackers and enhances the applicability of the system in real clinical scenarios.

  5. 5)

    A new large-scale surgical tracking dataset, MIXsurg, is released. It includes diverse surgical procedures and follows the MOT tracking format, with expert-guided annotations. This dataset enables benchmarking of complex surgical instrument tracking and facilitates future research in surgical AI.

2 Related work

2.1 Datasets

Deep learning methods often fail to fully leverage most surgical datasets as only a tiny portion of these datasets are spatially annotated with localization information. Consequently, most of the research tasks can only be explored and tested on a minuscule fraction of the entire dataset. The process of creating spatial annotations, such as defining region boundaries and generating pixel-level masks, is undeniably laborious and time-consuming. In contrast, generating binary annotations that merely indicate the presence of a surgical instrument demands significantly less effort. Therefore, finding ways to utilize this type of information for surgical instruments tracking has emerged as an intriguing research topic (Nwoye et al. 2019).

As shown in Table 1, the annotations of most datasets contain some information about instruments, such as location, stage, and segmentation. These are mainly made for basic tasks such as detection, segmentation, and stage recognition. These datasets are difficult to use for tracking tasks. The annotations required for tracking tasks require not only basic instruments location information such as coordinates, but also information such as the id of each instrument to identify the unique instrument. Recent work, such as the CholecTrack20 dataset (Nwoye et al. 2025) published in the CVPR in the table, is a dataset dedicated to tracking multiple surgical instruments for laparoscopic tasks. Although this dataset is well labeled, it still lacks the diversity of different surgical scenarios and cannot be unified.

Moreover, attempts to fuse multiple surgical scenarios into a single surgical tracking dataset are even rarer. This scarcity presents a significant gap in the field, as integrating diverse surgical scenarios could potentially enhance the comprehensiveness and generalizability of surgical tracking models, enabling them to perform more effectively in real-world, complex surgical environments.

2.1.1 Tracking algorithm

In the past, extensive research has primarily focused on the detection of surgical instruments (Twinanda et al. 2016; Zisimopoulos et al. 2018; Richa et al. 2011; Sznitman et al. 2014; Vardazaryan et al. 2018; Sznitman et al. 2018; Hajj et al. 2018; Jin et al. 2018). However, relatively fewer studies have explored the tasks of localization (Vardazaryan et al. 2018; Jin et al. 2018; Rieke et al. 2016) and tracking (Richa et al. 2011; Sznitman et al. 2018, 2012) especially in a manner that leverages the temporal continuity inherent in video data. Many existing approaches rely solely on frame-level spatial information and neglect sequential modeling, which is crucial for achieving consistent and robust instrument tracking across time. This limitation hampers the accurate association of instrument identities between frames, particularly in the presence of occlusions or fast movements.

This disparity can be attributed to the fact that, traditionally, most localization tasks, as well as tracking tasks, have been addressed through fully supervised methods. These methods rely on spatially annotated datasets [19]. Moreover, due to the scarcity of surgical tracking datasets and the requirement for detailed annotations, there are very few methods for multi-surgical instrument tracking. Some methods have attempted to use weakly supervised learning for surgical instrument tracking (Nwoye et al. 2019). The performance on datasets of non-complex surgical scenes is relatively good, but it has not yet been tested on datasets of surgical scenes with more occlusions and multiple surgical types.

Table 2 Specific information of the MIXsurg dataset
Fig. 1
Fig. 1
Full size image

A unified tracking framework for tracking surgical instruments in complex scenarios with multiple surgical types. There are four core components. Part A is the production process of the multi-surgery complex scene tracking dataset (MIXsurg); Part B describes the detector part of the convolutional attention mechanism that integrates multi-scale features; Part C is the tracker part. We use the GNN architecture to iteratively update related nodes in real time according to the temporal relationship and capture the global relationship that changes over time. Part D is the SSC algorithm, which is used to limit the object id. This method can effectively reduce the switch id and make the object id more in line with the current surgical scenario

3 MIXsurg dataset

3.1 Dataset introduction

The MIXSurg dataset, a remarkable addition to the field of surgical data research, is structured as a tracking dataset in the widely-recognized MOT format. This format not only ensures compatibility with a variety of tracking algorithms but also facilitates seamless integration into existing research pipelines.

MIXSurg houses a rich collection of surgical scene video data, which is sourced from an extensive range of surgical scenarios. These scenarios span across different surgical specialties, such as laparoscopic surgeries, porcine procedures, Cholecystectomy procedures, and Nephrectomy. Moreover, the dataset includes video data from highly complex and variable-environment surgical settings. For instance, some of the recordings are taken under challenging lighting conditions, or in operating rooms with a large number of medical staff and equipment, which adds to the realism and complexity of the data. The specific types of surgical scenarios and the corresponding frame number details are meticulously tabulated in Table 2, providing researchers with a clear overview of the data composition.

One of the unique features of the MIXSurg dataset is that it incorporates the information of the detection dataset. This integration allows flexible conversion between the two datasets. As a result, researchers can utilize this characteristic to train detectors more effectively. By leveraging the tracking data for detection-related tasks, the performance of the detectors can be enhanced, leading to more accurate object detection in surgical scenes.

The creation of the MIXSurg dataset follows a rigorous and well-defined process, as depicted in Part A of Fig. 1. The annotation work was carried out under the close supervision of professional clinicians from Renji Hospital, Shanghai Jiao Tong University. These clinicians, with their in-depth knowledge of surgical procedures and anatomical structures, provided invaluable guidance. The annotators, all of whom possess a solid background in artificial intelligence research, were first trained comprehensively on the annotation guidelines. After the initial annotation, a meticulous review process was implemented. In case any misannotated areas were identified, professional physicians were called in to conduct a secondary annotation. This two-step quality-control mechanism ensures the high accuracy and reliability of the dataset.

In the MIXSurg dataset, surgical instruments are systematically categorized into six main types: the grasper, which is used for grasping and holding tissues; the bipolar, mainly for cauterizing blood vessels and tissues; the hook, often employed for dissecting and separating tissues; the scissors, for cutting tissues precisely; the clipper, designed to clip and seal blood vessels; and the irrigator, used for flushing and cleaning the surgical field. This clear-cut categorization enables researchers to study and analyze the usage patterns and movement trajectories of different surgical instruments more efficiently.

3.2 Dataset enhancement

Notably, substantial class imbalance exists in multi-stage surgical scenarios, where the occurrence frequencies of different surgical instruments vary dramatically across procedural phases. For instance, the Grasper is the most frequently observed instrument, appearing more than 15,000 times in the dataset, whereas instruments such as the irrigator may occur only a few hundred times.

To address this imbalance during training, we adopted a two-stage data enhancement strategy tailored to the characteristics of the dataset. In Enhancement Stage I, no additional augmentation was applied to the most frequent class, Grasper; instead, the remaining instrument categories were automatically supplemented by selecting additional samples from the chole_real_dr (Yoon et al. 2021) dataset to increase the number of underrepresented instruments.

Subsequently, two experienced medical professionals manually curated and incorporated challenging cases exhibiting blood occlusion, illumination artifacts, and soft tissue deformation to further enhance data diversity. In Enhancement Stage II, we applied Class-aware Augmentation, Mosaic and MixUp, and Copy-Paste techniques to further mitigate class imbalance. During this stage, a third medical expert randomly evaluated a subset of annotations to ensure inter-annotator agreement. The results of the two-stage dataset enhancement process are illustrated in Fig. 2.

Fig. 2
Fig. 2
Full size image

A diagram comparing the number of surgical instrument types in the MIXsurg dataset with the number of surgical instrument types after two-stage enhancement.

4 Methods

4.1 Overview

This study was conducted under the joint guidance of physicians at Renji Hospital, Shanghai Jiao Tong University. This section introduces a novel and unified tracking framework designed for tracking surgical instruments in complicated multi-surgical type scenarios.

The framework, as shown in Fig. 1, is comprised of four main components. The first component involves the creation of the MIXsurg dataset, which is essential for developing and evaluating the tracking framework in complex multi-surgical scenarios. Next, the framework includes a hierarchical feature convolutional attention detector, which represents an enhancement over current state-of-the-art detectors. This detector is developed through a process of selective comparative filtering and the integration of creative modules.

Additionally, the framework features a Tracker Component that utilizes a GNN architecture. This architecture enables real-time iterative updating of relevant nodes based on temporal relationships, thereby capturing the evolving global relationships over time.

The final component of the framework is the SSC algorithm. This algorithm addresses the issue of object IDs exceeding the expected number of the same type of surgical instruments in the current frame. By effectively reducing identity switches, the SSC algorithm ensures that object IDs are more accurately aligned with the current surgical scenario, enhancing the framework’s applicability and effectiveness in complex surgical environments.

Fig. 3
Fig. 3
Full size image

For the Backbone, Neck, and Head components, the basic model architecture of YOLOv11 (Khanam and Hussain 2024) is adopted as the baseline. To ensure accuracy while enhancing feature representation, the HFCA module is integrated, where depth-wise convolution (DWC) with a kernel size of k1 \(\times \) k2 (denoted as DWC, k1 \(\times \) k2) is employed. Hierarchical features are extracted through convolutions and subsequently utilized as attention weights to re-weight the input of the HFCA module

4.2 Detector: lightweight build, hierarchical feature brilliance

As the Detection component that processes images first, it holds crucial importance. During the surgical procedure, due to frequent occlusions, the resulting illumination changes caused by occlusions, as well as various alterations such as color changes of surgical instruments due to bleeding, detection becomes particularly vital. Therefore, in the initial design, we expected the model to achieve high accuracy and capture features at multiple scales. Eventually, we adopted Yolov11 (Khanam and Hussain 2024) as the baseline. On this basis, considering the particularity of the surgical scenario, we integrated multi-scale attention mechanism modules to assist the model in better feature extraction. The specific model architecture is shown in Fig. 3.

4.3 Multi-object detector

In the realm of object detection, the Yolo series has long been at the forefront. Currently, the two most advanced trackers are Yolov10 (Wang et al. 2024), released in May 2024, and Yolov11 (Khanam and Hussain 2024), which emerged in September of the same year. Yolov10, with its cutting-edge features, has demonstrated remarkable performance in various scenarios, especially in terms of high-speed detection and accurate localization. Yolov11, since its release, has also attracted significant attention for its enhanced capabilities. To determine the performance and accuracy of our tracker, we conducted rigorous selection experiments. After comparing the performance of different models, especially Yolov10 and Yolov11, under various parameter settings, we chose Yolov11 as the baseline. We explored the accuracy and response time of the model with different parameter amounts. The specific experimental details and data are elaborated in the "Detection Model Selection" section within the "Experiments" part of this paper.

Fig. 4
Fig. 4
Full size image

Our tracker model processes two consecutive frames, t-1 and t, along with the objects from frames and detections. For instance, if there are four objects in frame t-1 and three detections in frame t, the model extracts and processes their features through graph networks. This step enables the model to infer relationships and track object movements across frames. The subsequent data association matches these objects with the new detections, and any missing detections are addressed to ensure continuous tracking. The output is the updated tracking results for each object

4.4 Hierarchical feature convolutional attention module

As illustrated in Fig. 3, the HFCA encompasses three key components. Firstly, there is a depth-wise convolution employed to aggregate local information. This operation effectively extracts the fine-grained details within a local receptive field. Secondly, multi-branch depth-wise strip convolutions are utilized to capture multi-scale context. By operating at different scales, these convolutions can capture both global and local semantic information, which is crucial for understanding complex visual scenes. Finally, a 1×1 convolution is incorporated to model the relationships between different channels. This step enables the model to learn the interdependencies among feature channels and recalibrate the feature representations. The output of the 1×1 convolution is directly utilized as attention weights to re-weigh the input of HFCA. Mathematically, our HFCA can be expressed as:

$$\begin{aligned} G_i = \text {DWC - Conv}_i(F), \quad \forall i \in \{0, 1, 2, 3\} \end{aligned}$$
(1)

where F is the input feature map to the HFCA module. \(\text {DWC-Conv}_i\) represents the i-th DWC branch with potentially different kernel shapes (e.g., \(5 \times 5\), \(1 \times 7\)) to capture multi-scale local features. \(G_i\) is the output of the i-th DWC-Conv branch applied to F.

$$\begin{aligned} H = \sum _{i=0}^{3} G_i \end{aligned}$$
(2)

where H is the summation of all \(G_i\) outputs, aggregating features from multiple scales. \(\text {Conv}_{1\times 1}\) is a \(1\times 1\) convolution that blends channels and models inter-channel dependencies.

The attention map Att plays a crucial role in re-weighting the input features, ensuring that the model focuses on the most relevant parts of the feature map. The attention map is derived from the aggregated features at multiple scales, where each scale captures both local and global information crucial for understanding complex visual contexts in surgical scenarios. Mathematically, the attention map Att can be expressed as:

$$\begin{aligned} Att = \text {Conv}_{1\times 1}(H) \end{aligned}$$
(3)

where \(\text {Att}\) is the attention map derived from H after the \(1\times 1\) convolution.

$$\begin{aligned} Out = Att \otimes F \end{aligned}$$
(4)

where \(\otimes \) denotes element-wise multiplication. \(\text {Out}\) is the re-weighted output feature map where the attention map is applied to the input F.

4.5 Tracking algorithm

4.5.1 Feature extraction

As shown in Fig. 4, the initial step in our tracker’s implementation involves the extraction of features that are critical for distinguishing and tracking multiple objects over time. We utilize a CNN to extract appearance features from each object, while motion features are derived from the analysis of positional changes and velocities captured in sequential video frames. This dual-feature approach ensures robust tracking even under varying conditions such as occlusion or rapid movement.

4.5.2 GNN building

Inspired by three GNN works by Zhang et al. (2023); Li et al. (2020); Wang et al. (2021), we construct a sophisticated graph network. This network forms the backbone of our tracking system, where objects are represented as nodes and their relationships—dictated by appearance and motion similarities—are depicted as edges. We develop two separate networks: one focusing on appearance and the other on motion. These networks operate in parallel to process and analyze the respective features, ensuring comprehensive understanding and tracking of each object across frames.

4.5.3 Data association

Data association is a critical component of our implementation. It involves the task of linking detections of the same object across different frames to maintain a consistent identity. For this purpose, we employ the Hungarian algorithm (Kuhn 1955), a combinatorial optimization algorithm that effectively pairs detections in a manner that minimizes overall cost, thereby optimizing the tracking process across the video sequence.

4.5.4 Dynamic updating mechanism and missing tracking handling

An essential aspect of our tracker is its dynamic updating mechanism. As new data becomes available or when changes occur in the scene, such as objects entering or leaving the frame, our system updates the nodes, edges, and global variables within the graph network. This iterative updating process is key to adapting to new objects and changing conditions, ensuring the tracker remains accurate and efficient throughout its operation.

However, one of the challenges in multiple object tracking is dealing with missing detections, often caused by occlusion or detection failures. To address this, our system incorporates strategies like Single Object Tracking (SOT) and a detection recovery mechanism. These methods estimate the positions of objects when they are not explicitly detected, allowing the system to maintain continuity in object tracks and ensuring reliable tracking performance even in less-than-ideal conditions.

4.6 Surgery scenario correction algorithm

Algorithm 1
Algorithm 1
Full size image

Surgery Scenario Correction Algorithm.

In the context of surgical instrument tracking within procedural videos, the SSC algorithm plays a pivotal role in ensuring the accuracy and consistency of instrument instance tracking across frames. The algorithm addresses the common issue where the number of identical surgical instruments exceeds the permissible limit within a single frame.

The algorithm commences by initializing a sequence map (SeqMap), which meticulously records the object identifiers (IDs), positional data, categories, and the corresponding frame numbers for instances where the quantity of a particular instrument type does not surpass the defined threshold t.

Table 3 Performance of YOLOv10 with Varying Weights in Surgical Dataset Scenarios

Notably, The threshold t in the SSC algorithm denotes the maximum allowable number of instances for a given surgical instrument category within a single frame. The selection of t is not treated as a free hyper-parameter, but is instead determined by prior clinical knowledge and the physical constraints of minimally invasive surgical procedures. In practical surgical settings, the number of simultaneously visible instruments of the same type is strictly limited by trocar placement and surgical workflow, and rarely exceeds a small fixed number. Therefore, t is predefined for each instrument category according to dataset statistics and clinician guidance, and remains fixed during both training and inference.

As the algorithm processes each frame sequentially, it first extracts the detected objects and their respective categories. If the count of any instrument category exceeds the threshold t, the algorithm retrieves the last frame (last_f) from SeqMap where the count was within acceptable limits. Subsequent steps involve a detailed comparison of positional data between instruments in the current frame and those in last_f.

For each instrument exceeding the limit, the algorithm assigns the object ID from last_f to the closest matching instrument in the current frame based on spatial proximity, ensuring that no object ID is duplicated within the same frame. This strategy not only helps in maintaining continuity and consistency in object tracking but also ensures that the IDs align closely with their historical appearances, thus minimizing tracking errors.

Frames that comply with the instrument count limit are updated in the SeqMap for future reference. This methodical approach guarantees that each frame adheres to the set guidelines, thereby enhancing the reliability of the tracking system used in surgical scenario analyses.

5 Experiments

All inference speed evaluations are conducted on a single NVIDIA RTX 4090 GPU with an Intel Xeon Silver 4210 CPU and 128 GB RAM. The reported FPS is measured with batch size 1 using full-resolution input frames, and includes both detection and tracking stages unless otherwise specified. No model pruning, quantization, or hardware-specific acceleration such as TensorRT is applied, ensuring a fair assessment of the computational efficiency of the proposed framework.

5.1 Evaluation metrics

In the experiments, several key metrics are used to evaluate the performance of a tracking algorithm. These metrics measure different aspects of the tracker’s ability to correctly identify and maintain object identities across frames. The most commonly used evaluation metrics include MOTA, MOTP, ID Switches, IDF1, Precision, Recall, and mAP (mean Average Precision), with two variations: mAP50 and mAP50-90. The definitions of main important metrics are as follows:

MOTA is a widely used metric to evaluate the overall performance of a multi-object tracker. The formula for MOTA is given by:

$$\begin{aligned} \text {MOTA} = 1 - \frac{\sum _t (FN_t + FP_t + IDSW_t)}{\sum _t GT_t} \end{aligned}$$
(5)

where \(FN_t\) is the number of false negatives at time t, \(FP_t\) is the number of false positives at time t, \(IDSW_t\) is the number of ID switches at time t, \(GT_t\) is the number of ground truth objects at time t.

MOTP measures the precision of the tracking system by calculating the average distance between the predicted and the ground truth object locations. The formula for MOTP is:

$$\begin{aligned} \text {MOTP} = \frac{\sum _t \sum _i d_{i,t}}{\sum _t \text {TP}_t} \end{aligned}$$
(6)

where \(d_{i,t}\) is the Euclidean distance between the predicted position and the ground truth position for object i at time t, \(\text {TP}_t\) is the number of true positives at time t.

ID switches refer to the number of times a tracker erroneously switches the identity of an object across frames. The lower the number of ID switches, the better the tracker is at maintaining object identities. The formula for counting ID switches is:

$$\begin{aligned} \text {IDSW} = \sum _t \text {IDSW}_t \end{aligned}$$
(7)

where \(\text {IDSW}_t\) is the number of identity switches at time t.

Table 4 Performance of YOLOv11 with Varying Weights in Surgical Dataset Scenarios
Table 5 Performance of Yolov11 models
Table 6 Existing popular tracking methods
Table 7 Performance enhancement with HFCA module
Table 8 Tracking algorithm ablation experiments

5.2 Comparative experiments

5.2.1 Detection model selection

As elaborated in the Methods section, during the process of Detection model selection, we embarked on a comprehensive comparison of the performance of different parameter configurations of YOLOv10 and YOLOv11. To ensure the robustness and generalizability of our findings, we conducted experiments on two distinct datasets.

The first dataset, MIXsurg, is derived from our tracking dataset, which has been meticulously transformed into a detection-oriented dataset. This conversion allows us to evaluate the models’ performance in a context closely related to our original tracking task. The second dataset, chole_real_dr (Yoon et al. 2021), is specifically curated for the detection of different parts of surgical instruments. It offers a specialized scenario that mimics real-world surgical environments, providing a rigorous test for the models.

Table 9 Performance of various tracking models upon the addition of the SSC algorithm

After a series of in-depth experiments and thorough analyses, the results clearly indicate that YOLOv11 outperforms YOLOv10 significantly. The superior performance of YOLOv11 in terms of detection accuracy, precision, and recall on both datasets is evident. Therefore, based on these compelling results, we have chosen YOLOv11 as the baseline detector for our subsequent research and applications. This selection is expected to enhance the overall performance of our detection system and lay a solid foundation for more accurate and reliable object detection in surgical scenarios.Specific comparison results reference Tables 3 and 4.

5.2.2 Combination training

Subsequently, three model weights from different parameter settings of YOLOv11 were selected. These weights demonstrated outstanding performance in terms of Precision, Recall, and mAP respectively, and were then used to train the detector Baseline, as shown in Table 5.

To enhance the model’s detection ability for surgical instruments under various degrees of occlusion in different surgical scenarios, we designed a distinctive experimental training approach. Specifically, without additional annotations, we integrated the MIXsurg tracking dataset labeled by our team, which encompasses multiple surgical scenarios, and the chole_real (Yoon et al. 2021) public dataset (Yoon et al. 2021) for surgical instrument detection, which focuses on the annotation of different parts of surgical instruments. Then, the model was trained using this combined dataset.

The advantage of this training method is that the model can learn the features of different parts of various surgical instruments when they are occluded to different extents during the surgical process. As a result, the robustness, adaptability, and accuracy of the model are significantly improved. The results, as presented in Table 5, reveal that the YOLOv11-M model achieves remarkable performance metrics. It attains a precision of 0.826, a recall of 0.656, an mAP50 of 0.748, and an mAP50-90 of 0.486. Among the evaluated models, the YOLOv11-M exhibits the optimal performance.

5.2.3 Existing popular tracking methods

As shown in Table 6, we compare our tracking algorithm with two common existing popular frontier methods (Zhang et al. 2022; Aharon et al. 2022) and a existing popular surgical instrument tracking frontier method (Nwoye et al. 2019), and also prove that our model has significantly improved IDF1, Recall, MOTA, MOTP, and IDs (Identity Switch) after training, especially IDs, , recall, MOTA, MOTP, and IDs (Identity Switch) after training, especially IDs, reaching 48.30% in IDF1, 65.30% in Recall, 47.10% in MOTA, 54.90% in MOTP, and 72 IDs.

5.3 Ablation work

5.3.1 Detector

As presented in Table 7, when the baseline is incorporated into the detector and the model is enabled to capture multi-scale features, the model is trained on the MIXsurg dataset and the multi-surgical instrument part detection dataset chole_real_dr (Yoon et al. 2021) without the need for additional annotations. The overall performance of the trained model shows remarkable enhancement, with improvements observed in multiple key indicators such as precision, recall, mAP50, and mAP(50-90).

Notably, the speed in terms of preprocess and inference does not decline significantly. The preprocess speed is 0.6 ms and the inference speed is 4.6 ms. This outcome aligns precisely with our initial design expectations. That is, while ensuring an improvement in accuracy, the model can still respond promptly, and the speed does not become sluggish.

5.3.2 Tracking algorithm

Table 8 presents the ablation study of the tracking algorithm. In this study, we chose the graph neural network framework network as the baseline. When we selected YOLOv11 as the inference detector, we observed an increase in several key performance indicators. This indicates that YOLOv11 brings certain advantages to the tracking system, potentially due to its effective object detection capabilities.

Subsequently, after integrating the HFCA module, the feature extraction ability of the model was notably enhanced. As a result, significant improvements were achieved in indicators such as IDF1, recall, MOTA, and MOTP. The enhanced feature extraction allows the model to better capture the characteristics of the tracked objects, leading to more accurate tracking results.

Finally, when the SSC algorithm was added, it played a crucial role in object identity management. By restricting the object IDs and re-allocating incorrect IDs, the number of ID switches was significantly reduced. A lower number of ID switches implies a more stable and reliable tracking performance, as it indicates that the model can consistently assign the correct identities to the objects throughout the tracking process. Overall, each step of the ablation work contributes to the continuous improvement of the Tracker’s performance.

5.3.3 SSC algorithm

The SSC algorithm we have developed offers multiple advantages. Firstly, within our own tracking framework, it can effectively impose constraints on object IDs. This leads to more precise object ID identification and a notable reduction in ID switches. Secondly, it has a plug-and-play characteristic, enabling it to effectively constrain object IDs on other trackers as well.

We carried out experiments on botsort (Aharon et al. 2022), bytetrack (Zhang et al. 2022), and unsupervised learning trackers (Nwoye et al. 2019). As presented in Table 9, the final results demonstrate that upon the integration of SSC, the overall performance of each tracker has been remarkably enhanced in terms of MOTA, MOTP, and IDs.

6 Conclusion

This work presents a novel and pioneering unified tracking framework designed specifically for tracking multiple surgical instruments across diverse surgical scenarios, thereby making a significant contribution to the future of surgical automation. It offers a new solution to the existing challenges in surgical instrument tracking, such as an excessive number of object IDs, inadequate feature capture, and a shortage of tracking datasets.

Under the guidance of professional physicians, our team annotated surgical datasets from multiple scenarios by integrating medical engineering. We employed the most advanced detectors for training and incorporated a creative multi-scale convolutional attention mechanism. This integration has substantially enhanced the model’s learning ability and detection performance. As a result, the model can accurately detect and identify surgical instruments in surgeries with varying levels of complexity, degrees of occlusion, changes in lighting conditions, and different surgical types.

Simultaneously, to make our model more applicable to real-world clinical scenarios, we utilized the SSC algorithm to constrain object IDs and employed position distance estimation to reassign object IDs. Experiments have also verified the practical effectiveness of the SSC algorithm.

Looking ahead, we sincerely hope that more teams will engage in the innovative challenge of integrating surgery and AI. Although this work has achieved certain results, there are still some limitations that we aim to address in the future. For instance, our current dataset only encompasses a limited number of surgical types. We hope that hospitals and engineers can collaborate closely to develop and annotate large-scale datasets that cover a wide range of surgeries and adhere to medical gold standards. This will not only facilitate the further development of our framework but also contribute to the overall progress of surgical automation and the integration of AI in the medical field.

Although the proposed tracker incorporates a graph neural network, the associated computational overhead remains limited. This is because the GNN operates on a small and bounded graph, where each node corresponds to a detected surgical instrument instance. In practical minimally invasive surgical scenarios, the number of simultaneously visible instruments is inherently constrained, typically fewer than ten, resulting in a lightweight and sparse graph structure. Consequently, the computational complexity of the GNN-based data association is approximately linear with respect to the number of tracked objects per frame, and its runtime cost is negligible compared to the convolutional backbone of the detector.