Evaluating surgical skills from kinematic data using convolutional neural networks

Evaluating surgical skills from kinematic data using convolutional neural networks

Hassan Ismail Fawaz IRIMAS, Université de Haute-Alsace, 68100 Mulhouse, France
11email: {first-name}.{last-name}@uha.fr
   Germain Forestier IRIMAS, Université de Haute-Alsace, 68100 Mulhouse, France
11email: {first-name}.{last-name}@uha.fr
   Jonathan Weber IRIMAS, Université de Haute-Alsace, 68100 Mulhouse, France
11email: {first-name}.{last-name}@uha.fr
  
Lhassane Idoumghar
IRIMAS, Université de Haute-Alsace, 68100 Mulhouse, France
11email: {first-name}.{last-name}@uha.fr
   Pierre-Alain Muller IRIMAS, Université de Haute-Alsace, 68100 Mulhouse, France
11email: {first-name}.{last-name}@uha.fr
Abstract

The need for automatic surgical skills assessment is increasing, especially because manual feedback from senior surgeons observing junior surgeons is prone to subjectivity and time consuming. Thus, automating surgical skills evaluation is a very important step towards improving surgical practice. In this paper, we designed a Convolutional Neural Network (CNN) to evaluate surgeon skills by extracting patterns in the surgeon motions performed in robotic surgery. The proposed method is validated on the JIGSAWS dataset and achieved very competitive results with 100% accuracy on the suturing and needle passing tasks. While we leveraged from the CNN’s efficiency, we also managed to mitigate its black-box effect using class activation map. This feature allows our method to automatically highlight which parts of the surgical task influenced the skill prediction and can be used to explain the classification and to provide personalized feedback to the trainee.

Keywords:
kinematic data, RMIS, deep learning, CNN

1 Introduction

Over the past one hundred years, the classical training program of Dr. William Halsted has governed surgical training in different parts of the world [polavarapu2013100]. His teaching philosophy of “see one, do one, teach one” is still one of the most practiced methods to this day [ahmidi2017a]. The idea is that the trainee could become an expert surgeon by watching and assisting in mentored surgeries [polavarapu2013100]. These training methods, although broadly used, lack of an objective surgical skill evaluation technique [kassahun2016surgical]. Conventional surgical skill assessment is currently based on checklists that are filled by an expert surgeon observing the surgery [tedesco2008simulation]. In an attempt to evaluate surgical skills without relying on an expert’s opinion, Objective Structured Assessment of Technical Skills (OSATS) has been proposed and is used in clinical practice [niitsu2013using]. Unfortunately, this type of observational evaluation is still prone to several external and subjective variables: the checklists’ development process, the inter-rater reliability and the evaluator bias [hatala2015constructing].

Other studies showed that a strong relationship exists between the postoperative outcomes and the technical skill of a surgeon [bridgewater2003surgeon]. This type of approach suffers from the fact that a surgery’s outcome also depends on the patient’s physiological characteristics [kassahun2016surgical]. In addition, acquiring such type of data is very difficult, which makes these skill evaluation methods difficult to apply for surgical training. Recent advances in surgical robotics such as the da Vinci surgical robot (Intuitive Surgical Inc. Sunnyvale, CA) enabled the collection of motion and video data from different surgical activities. Hence, an alternative for checklists and outcome-based methods is to extract, from these motion data, global movement features such as the surgical task’s time completion, speed, curvature, motion smoothness and other holistic features [fard2018automated, zia2017automated, kassahun2016surgical]. Although most of these methods are efficient, it is not clear how they could be used to provide a detailed and constructive feedback for the trainee to go beyond the simple classification into a category (i.e. novice, expert, etc.). This is problematic as studies [islam2016affordable] showed that feedback on medical practice allows surgeons to improve their performance and reach higher skill levels.

Recently, a new field named Surgical Data Science [maier-hein2017surgical] has emerged thanks to the increasing access to large amounts of complex data which pertain to the patient, the staff and sensors for perceiving the patient and procedure related data such as videos and kinematic variables [gao2014jhu]. As an alternative to extracting global movement features, recent studies tend to break down surgical tasks into smaller segments called surgical gestures, manually before the training phase, and assess the performance of the surgical task based on the assessment of these gestures [lingling2012sparse]. Although these methods obtained very accurate and promising results in terms of surgical skill evaluation, they require a huge amount of labeled gestures for the training phase [lingling2012sparse]. We have identified two main limits in the existing approaches that classify a surgeon’s skill level based on the kinematic data. First is the lack of an interpretable result of skill evaluation usable by the trainee to achieve higher skill levels. Additionally current state of the art Hidden Markov Models require gesture boundaries that are pre-defined by human annotators which is time consuming and prone to inter-annotator reliability [vedula2016analysis].

1

time

channels

76-dimensional

kinematic

data

SR

SL

MR

ML

R

SR

SL

MR

8

8

8

8

8

layer-1

16

16

16

16

ML

MR

SL

SR

layer-2

32

layer-3

32

N

I

E

Surgical

skill

prediction

Convolution

Global Average Pooling

Fully-connected

Figure 1: The network architecture whose input is a surgical task with variable length l recorded by the four manipulators (ML: master left, MR: master right, SL: slave left, SR: slave right) of the da Vinci surgical system. The output is a surgical skill prediction (N: Novice, I: Intermediate and E: Expert).

In this paper, we propose a new architecture of Convolutional Neural Networks (CNN) dedicated to surgical skill evaluation (Figure 1). By using one dimensional filters over the kinematic data, we mitigate the need to pre-define sensitive and unreliable gesture boundaries. The original hierarchical structure of our deep learning model enables us to represent the gestures in latent low-level variables (first and second layers), as well as capturing global information related to the surgical skill level (third layer). To provide interpretable feedback, instead of using a final fully-connected layer like most traditional approaches [zhou2016learning], we place a Global Average Pooling (GAP) layer which enables us to benefit from the Class Activation Map [zhou2016learning] (CAM) to visualize which parts of the surgical task contributed the most to the surgical skill classification (Figure 4). We demonstrate the accuracy of our approach using a standardized experimental setup on the largest publicly available dataset for surgical data analysis: the JHU-ISI Gesture and Skill Assessment Working Set (JIGSAWS) [gao2014jhu]. The main contribution of our work is to show that deep learning can be used to understand the latent and complex structures of what constitutes a surgical skill, especially that there is still much to be learned on what is exactly a surgical skill [kassahun2016surgical].

2 Method

2.1 Dataset

We first present briefly the dataset used in this paper as we rely on features definition to describe our method. The JIGSAWS [gao2014jhu] dataset has been collected from eight right-handed subjects with three different skill levels (Novice (N), Intermediate (I) and Expert (E)) performing three different surgical tasks (suturing, needle passing and knot tying) using the da Vinci surgical system. Each subject performed five trials of each task. For each trial the kinematic and video data were recorded.

In our work, we only focused on kinematic data which are numeric variables of four manipulators: left and right masters (controlled directly by the subject’s hands) and left and right slaves (controlled indirectly by the subject via the master manipulators). These kinematic variables (76 in total) are captured at a frequency equal to 30 frames per second for each trial. We considered each trial as a multivariate time series (MTS) and designed a one dimensional CNN dedicated to learn automatically useful features for surgical skill classification.

2.2 Architecture

Our approach takes inspiration of the recent success of CNN for time series classification [wang2017time]. The proposed architecture (Figure 1) has been specifically designed to classify surgical skills using kinematic data. The input of the CNN is a MTS with variable length and 76 channels. The output layer contains the surgical skill level (N, I, E). Comparing to CNNs for image classification, where usually the network’s input has two dimensions (width and height) and 3 channels (RGB), our network’s input is a time series with one dimension (length of the surgical task) and 76 channels (the kinematic variables , etc.).

The main challenge we encountered when designing our network was the huge number of input channels (76) compared to the RGB channels (3) for the image classification task. Therefore, instead of applying the convolutions over the 76 channels, we proposed to carry out different convolutions for each cluster and sub-cluster of channels. In order to decide which channels should be grouped together, we used domain knowledge when clustering the channels.

First we divide the 76 variables into four different clusters, such as each cluster contains the variables from one of the four manipulators: the and clusters correspond respectively to the four manipulators (ML: master left, MR: master right, SL: slave left and SR: slave right) of the da Vinci surgical system. Thus, each cluster contains 19 of the 76 total kinematic variables.

Next, each cluster of 19 variables is split into five different sub-clusters such as each sub-cluster contains variables that we hypothesize are highly correlated. For each cluster, the variables are grouped into five sub-clusters: sub-cluster with 3 variables for the Cartesian coordinates (); sub-cluster with 3 variables for the linear velocity (); sub-cluster with 3 variables for the rotational velocity (); sub-cluster with 9 variables for the rotation matrix R; sub-cluster with 1 variable for the gripper angular velocity ().

Figure 1 shows how the convolutions in the first layer are different for each sub-cluster of channels. Following the same reasoning, the convolutions in the second layer are different for each cluster of channels (ML, MR, SL and SR). However, in the third layer, the same convolutions are applied for all channels.

In order to reduce the number of parameters in our model and benefit from the CAM method [zhou2016learning], we replaced the fully-connected layer with a GAP operation after the third convolutional layer. This results in a summarized MTS that shrinks from a length to 1, while preserving the same number of channels in the third layer. As for the output layer, we use a fully-connected softmax layer with three neurons, one for each class (N, I, E).

Without any cross-validation, we choose to use filters at the first convolutional layer, then we increase the number of filters (by a factor of ), thus balancing the number of parameters for each layer while going deeper into the network. The Rectified Linear Unit (ReLU) activation function is employed for the three convolutional layers with a filter size of and a stride of .

2.3 Training & Testing

To train the network, we used the multinomial cross-entropy as our objective cost function. The network’s parameters were optimized using Adam [kingma2015adam]. Following [wang2017time], without any fine-tuning, the learning rate was set to and the exponential decay rates of the first and second moment estimates were set to and respectively. Each trial was used in a forward-pass followed by a back-propagation update of the weights which were initialized using Glorot’s uniform initialization [glorot2010understanding]. Before each training epoch, the train set was randomly shuffled. We trained the network for epochs, then by saving the model at each training epoch, we chose the one that minimized the objective cost function on a random (non-seen) split from the training set. Thus, we only validate the number of epochs since no extra-computation is needed to perform this step. Finally, to avoid overfitting, we added a regularization parameter equal to . Since we did not fine-tune the model’s hyper-parameters, the same network architecture with the same hyper-parameters was trained on each surgical task resulting in three different models111Our source code is available on https://germain-forestier.info/src/miccai2018/.

To evaluate our approach we adopted the standard benchmark configuration, Leave One Super Trial Out (LOSO) [ahmidi2017a]: for each iteration of cross-validation (five in total), one trial of each subject was left out for the test and the remaining trials were used for training.

2.4 Class Activation Map

By employing a GAP layer, we benefit from the CAM [zhou2016learning] method, which makes it possible to identify which regions of the surgical task contributed the most to a certain class identification. Let be the result of the third convolutional layer which is a MTS with channels (in our case is equal to 32 filters and denotes the time dimension). Let be the weight between the output neuron of class and the filter. Since a GAP layer is used, the input to the output neuron of class () and the CAM () can be defined as:

(1)

In order to avoid upsampling the CAM, we padded the input of each convolution with zeros, thus preserving the initial MTS length throughout the convolutions.

3 Results

3.1 Surgical skill classification

Table 1 reports the micro and macro measures (defined in [ahmidi2017a]) of four different methods for the surgeons’ skill classification of the three surgical tasks. For our approach (CNN), we report the average of 40 runs to eliminate any bias due to the random seed. From these results, it appears that the CNN method is much more accurate than the other approaches with 100% accuracy for the suturing and needle passing tasks. As for the knot tying task, we report 92.1% and 93.2% respectively for the micro and macro configurations. Indeed, for knot tying, the model is less accurate compared to the other two. This is due to the complexity of this task, which is in compliance with the results of the other approaches.

In [lingling2012sparse], the authors designed Sparse Hidden Markov Models (S-HMM) to evaluate the surgical skills. Although the latter method utilizes the gesture boundaries during the training phase, our approach achieves much higher accuracy while still providing the trainee with interpretable skill evaluation.

Approximate Entropy (ApEn) is used to extract features from each trial [zia2017automated], which are then fed to a nearest neighbor classifier. Although both methods (ApEn and CNN) achieve state of the art results with 100% accuracy for the suturing and needle passing surgical tasks, it is not clear how ApEn could be extended to provide feedback for the trainee. In addition, we hypothesize that by doing cross-validation and hyper-parameters fine tuning, we could squeeze higher accuracy from the CNN, especially for the knot tying task.

Finally, in [forestier2017discovering], the authors introduce a sliding window technique with a discretization method to transform the MTS into bag of words. Then, they build a vector for each class from the frequency of the words, which is compared to vectors of the MTS in the test set to identify the nearest neighbor with a cosine similarity metric. The authors emphasized the need to obtain interpretable surgical skill evaluation, which justified their relatively low accuracy. On contrast, our approach does not trade off accuracy for feedback: CNN is much more accurate and equally interpretable.

Method Suturing Needle Passing Knot Tying
Micro Macro Micro Macro Micro Macro
S-HMM [lingling2012sparse] 97.4 n/a 96.2 n/a 94.4 n/a
ApEn [zia2017automated] 100 n/a 100 n/a 99.9 n/a
Sax-Vsm [forestier2017discovering] 89.7 86.7 96.3 95.8 61.1 53.3
CNN (proposed) 100 100 100 100 92.1 93.2
Table 1: Surgical skill classification results (%)
(a) The last frame of subject (Novice) H’s fourth trial of the suturing task.
(b) Trial’s corresponding trajectory for the left master manipulator (best viewed in color).
Figure 4: Example of feedback using Class Activation Map (a video illustrating this feedback is available on https://germain-forestier.info/src/miccai2018/).

3.2 Feedback visualization

The CAM technique allows us to visualize which parts of the trial contributes the most to a certain skill classification. Patterns in movements could be understood by identifying for example discriminative behaviors specific to a novice or an expert. We can also pinpoint to the trainees their good/bad movements in order to improve themselves and achieve potentially higher skill levels.

Figure 4 gives an example on how to visualize the feedback for the trainee by constructing a heatmap from the CAM. A trial of a novice subject is studied: its last frame is shown in Figure (a)a and its corresponding heatmap is illustrated in Figure (b)b. In the latter, the model was able to detect which movements (red area) were the main reason behind subject H’s classification (as a novice). This feedback could be used to explain to a young surgeon which movements are classifying him/her as a novice and which ones are classifying another subject as an expert. Thus, the feedback could guide the novices into becoming experts.

4 Conclusion

In this paper, we presented a new method for classifying surgical skills. By designing a specific CNN, we achieved 100% accuracy, while providing interpretability that justifies a certain skill evaluation, which reduces the CNN’s black-box effect.

In our future work, due to the natural extension of CNNs to image classification, we aim at developing a unified CNN framework that uses both video and kinematic data to classify surgical skills accurately and to provide highly interpretable feedback for the trainee.

References

Comments 0
Request Comment
You are adding the first comment!
How to quickly get a good reply:
  • Give credit where it’s due by listing out the positive aspects of a paper before getting into which changes should be made.
  • Be specific in your critique, and provide supporting evidence with appropriate references to substantiate general statements.
  • Your comment should inspire ideas to flow and help the author improves the paper.

The better we are at sharing our knowledge with each other, the faster we move forward.
""
The feedback must be of minimum 40 characters and the title a minimum of 5 characters
   
Add comment
Cancel
Loading ...
202190
This is a comment super asjknd jkasnjk adsnkj
Upvote
Downvote
""
The feedback must be of minumum 40 characters
The feedback must be of minumum 40 characters
Submit
Cancel

You are asking your first question!
How to quickly get a good answer:
  • Keep your question short and to the point
  • Check for grammar or spelling errors.
  • Phrase it like a question
Test
Test description