Next Article in Journal
Non-Coding RNAs Derived from Extracellular Vesicles Promote Pre-Metastatic Niche Formation and Tumor Distant Metastasis
Next Article in Special Issue
Tissue Classification of Breast Cancer by Hyperspectral Unmixing
Previous Article in Journal
The Role of Exosomes in Epithelial–to-Mesenchymal Transition and Cell Functional Properties in Head and Neck Cancer
Previous Article in Special Issue
Hyperspectral Imaging in Major Hepatectomies: Preliminary Results from the Ex-Machyna Trial
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Impact of Pre- and Post-Processing Steps for Supervised Classification of Colorectal Cancer in Hyperspectral Images

1
Center for Scalable Data Analytics and Artificial Intelligence (ScaDS.AI), 04105 Leipzig, Germany
2
Innovation Center Computer-Assisted Surgery (ICCAS), University of Leipzig, 04103 Leipzig, Germany
3
Faculty of Engineering and Health, University of Applied Sciences and Arts, 37085 Göttingen, Germany
4
Department of Visceral, Transplant, Thoracic and Vascular Surgery, University Hospital of Leipzig, 04103 Leipzig, Germany
5
Department of Electrical, Mechanical and Industrial Engineering, Anhalt University of Applied Sciences, 06366 Köthen, Germany
*
Author to whom correspondence should be addressed.
Cancers 2023, 15(7), 2157; https://doi.org/10.3390/cancers15072157
Submission received: 23 February 2023 / Revised: 23 March 2023 / Accepted: 30 March 2023 / Published: 5 April 2023

Abstract

:

Simple Summary

One of the most important and hardest tasks during cancer diagnostics and operations is to differentiate between cancerous and non-malignant tissues. It is important to detect and remove all cancerous cells, but at the same time cut as little as possible non-malignant tissue. That is why there is now a high demand for methods that will help to recognize margins of cancer. One non-invasive, new and promising method is hyperspectral imaging (HSI) with the use of machine learning (ML). However, the output of the ML models is usually fuzzy, especially when pixel-wise classification methods are used. This research shows that, (1) the impact of particular pre-processing techniques on the performance of tissue recognition depends on the ML model used and its architecture and could be explained by the wavelengths emphasized by the models, and (2) that the application of post-processing can strongly improve performance (both sensitivity and specificity) and the ability to easily differentiate between tissue types.

Abstract

Background: Recent studies have shown that hyperspectral imaging (HSI) combined with neural networks can detect colorectal cancer. Usually, different pre-processing techniques (e.g., wavelength selection and scaling, smoothing, denoising) are analyzed in detail to achieve a well-trained network. The impact of post-processing was studied less. Methods: We tested the following methods: (1) Two pre-processing techniques (Standardization and Normalization), with (2) Two 3D-CNN models: Inception-based and RemoteSensing (RS)-based, with (3) Two post-processing algorithms based on median filter: one applies a median filter to a raw predictions map, the other applies the filter to the predictions map after adopting a discrimination threshold. These approaches were evaluated on a dataset that contains ex vivo hyperspectral (HS) colorectal cancer records of 56 patients. Results: (1) Inception-based models perform better than RS-based, with the best results being 92% sensitivity and 94% specificity; (2) Inception-based models perform better with Normalization, RS-based with Standardization; (3) Our outcomes show that the post-processing step improves sensitivity and specificity by 6.6% in total. It was also found that both post-processing algorithms have the same effect, and this behavior was explained. Conclusion: HSI combined with tissue classification algorithms is a promising diagnostic approach whose performance can be additionally improved by the application of the right combination of pre- and post-processing.

1. Introduction

The leading causes of death worldwide are cancer diseases. It is expected that in year 2040 cancer-related deaths will rise to 16.4 million cases [1], whereby colorectal cancer (CRC) is the third most common carcinoma worldwide [2]. To decrease the mortality from cancer, early detection plays a key role [3]. A novel tool which can be used during the preoperative diagnostic stage to detect cancer regions, and after cancer removal to ensure tumor-free resection margins, would be a breakthrough to achieve healthful oncological results.
Hyperspectral imaging (HSI) offers these opportunities. It is a contactless, contrast-free, and non-invasive optical imaging technique [4]. Furthermore, the technology can be implemented into flexible endoscopes in order to allow a so-called optical biopsy [5], rigid endoscopes to assist the surgeons during minimal invasive procedures [6] as well as microscopes to analyze resected tissues [7]. In several research areas, HSI has shown its great potential to discriminate between several tissue structures by analyzing the tissue–light interactions, measured as specific spectral signatures, allowing tissue perfusion assessment [8,9] and tissue differentiation [10,11]. HSI has been successfully evaluated to detect skin cancer [12,13,14], gastric cancer [15], oral cancer [16], breast cancer [17], brain cancer [18,19,20,21,22], head and neck cancer [23], as well as colorectal cancer [24] in humans. In these previous works, approaches such as support vector machines (SVMs), random forest (RF), and logistic regression (LR) as well as deep learning networks were used to analyze the hyperspectral (HS) image data. SVMs have been evaluated to classify resectates of esophagogastric and colorectal cancers [25]. Convolutional neuronal networks (CNN) were used to classify ex vivo and in vivo colorectal cancer [25], esophagogastric cancer [25], brain [26], head and neck tumors [27], and thyroid and salivary tumors [28].
Although these methods provided successful results, the transfer into the clinical setup is limited by the fact that the images resulting from training show noise and high inhomogeneity. Furthermore, a high performance of the models is needed for medical image assistant systems; however, such a high performance has mostly not yet been achieved.
Solution of these problems can be found in the remote sensing (RS) area where HSI plays an important role in detecting objects. Several approaches to improve artificial networks were considered, such as testing different pre-processing steps (e.g., Standardization, Min-Max) [26,28], architectures (e.g., inception-based CNNs [28], DNN [29], also in combination with squeeze-and-excitation networks [30], and ResNet-based CNNs [31]), and post-processing [32].
In particular, post-processing is often used to optimize a raw pixelwise classification map, using various methods, e.g., using guidance images for edge-preserving, as part of a group of strategies used to better define the boundaries of classification objects, remove outliers, and refine classification results. In particular, Edge Preserving Filtering (EPF) [33] has been shown to improve the classification accuracy significantly. Another approach is the use of a Markov Random Field (MRF) [34].
The aim of our study is to analyze the potential of pre-processing and post-processing methods to improve the classification results of HSI-based artificial neuronal networks. Therefore, pre-processing techniques (Standardization and Normalization) and 3D-CNN models as well as post-processing algorithms based on a median filter were tested by using HS data of ex vivo colorectal cancers.

2. Materials and Methods

2.1. Patient Data

To acquire the HS image data of resected colorectal tissue, the commercial push-broom TIVITA® Tissue device (Diaspective Vision GmbH, Am Salzhaff-Pepelow, Germany) was used. The HS camera is set at 50 cm from the tissue. All side lights were turned off. The HS images were taken during the first 5 min after resection, and approximately 10 s were needed for each image. The output datacubes are of shape (480, 640, 100) (height, width, and the spectral axis). The spectral axis corresponds to the range 500–1000 nm with step 5 nm.
We have HS datacubes of 56 patients that were annotated by experienced pathologists and surgeons using comparison with histopathological slides. Not all pixels in the datacube are labeled. Each record of the patient contains a HS cube and an image (here: mask) with ground truth labels. Examples of masks with an explanation of colors are depicted in Figure 1. In this work we used only the purple and yellow labels (non-malignant and cancerous tissues). Thus, our task is a binary classification problem. Moreover, it is important to mention that the dataset is highly imbalanced: about 10 non-malignant to 1 cancerous tissue. In total, there are 477,670 cancerous pixels and 4,537,769 non-malignant pixels.
The study was approved by the local ethics committee of the medical Faculty of the University of Leipzig (026/18-ek), the study was also registered at Clinicaltrials.gov (NCT04230603) (accessed on 18 July 2021).

2.2. Pre-Processing

To eliminate the influence of natural spectral differences from patient to patient, we used two spectral scaling methods: Standardization and Normalization (equations are presented in Table 1). Figure 2 presents spectra examples before and after pre-processing techniques.

2.3. Supervised Binary Classification

2.3.1. Architecture 1: 3D-CNN with Inception Architecture

The first architecture that was tried is presented in Figure 3, left. It is based on one block of the Inception architecture [35]. The Inception architecture has a lot of advantages; among them is the simultaneous use of several kernel sizes (1, 3, 5) and the use of spatial information from all of them through concatenation. Additionally, concatenation decreases the chances for vanishing gradients. For all convolutions, the “same” padding preserves the shapes for concatenation after each block.

2.3.2. Architecture 2: RS-Based 3D-CNN

The second 3D-CNN architecture is based on modification D (which showed the best results) from Ben Hamida et al. [36] and is presented on Figure 3 right. Models from Ben Hamida et al. were successfully trained and evaluated on remote sensing HS images. That is why we will use the abbreviation “RS-based” for the second architecture. Another reason to use this architecture was that it has already shown good results on our data (Collins et al. [25] and Martinez-Vega et al. [26]). The main idea of this architecture is that it uses 3D convolutions followed by 1D convolutions. In the current modification, pooling layers are replaced with convolution layers with stride 2. Another important idea is that convolution layers are followed only by one fully-connected layer with the number of neurons being the number of classes. This configuration was chosen because, as discussed in Ben Hamida et al., the “width” of the network (number of neurons in fully-connected layers or number of filters for convolution layers) has to be comparable with the “depth” of network (number of layers).

2.3.3. Training Parameters

The main parameters for training are given in Table 2.
As our dataset is imbalanced (Section 2.1), class weights were used in all models to force the network to pay more attention to cancerous samples. For each class, its weight is calculated as:
c l a s s   w e i g h t x = t o t a l   n u m b e r   o f   s a m p l e s n u m b e r   o f   s a m p l e s   o f   c l a s s   X
Moreover, sample weights were tried in one model to address the problem that different patients have different sizes of annotated areas and therefore are not evenly represented in the dataset. For each sample, its weight was calculated as:
s a m p l e   w e i g h t x , y = t o t a l   n u m b e r   o f   s a m p l e s n u m b e r   o f   s a m p l e s   o f   c l a s s   X   o f   p a t i e n t   Y
All models were trained with Python (3.7.4), Tensorflow (2.4.0) and Keras (2.3) on the University Leipzig cluster with AMD EPYC 32 core processor CPU and 2 RXT2080TI GPUs.

2.3.4. Thresholding

Classification models typically return the probability of the sample to belong to a class (in our case, cancerous). In the case of binary classification, a decision is needed. That is why a thresholding step is needed to transform the probability values into binary values, 0 or 1. If the probability is lower than this threshold, the sample is considered non-malignant tissue; if it is higher, it is considered cancerous.

2.3.5. Choosing the Best Threshold

The need of thresholding raises the question of choosing an optimal threshold that maximizes the evaluation metrics. The method based on the ROC AUC curve is popular to calculate the optimal threshold and is based on balancing the FPR (false positives rate) and the TPR (true positives rate). There is also a method based on PRC (precision recall curve), which balances precision and recall. We chose another method, based on balancing sensitivity and specificity, which are the most used metrics in the medical field.
We implemented an algorithm to obtain automatically the optimal threshold value. Increasing the threshold decreases sensitivity and increases specificity (description of metrics in Section 2.5.2). The point of intersection of both curves provides the optimal threshold value (red point in Figure 4). For this example, the intersection point is at the threshold ~0.2, with both sensitivity and specificity at ~0.89.
We consider the threshold at the intersection point as the optimal one for two reasons:
  • A threshold where sensitivity and specificity have similar values allows for easier comparison between different models: both sensitivity and specificity are either better or worse.
  • This approach allows balancing between false negatives and false positives.

2.4. Post-Processing

2.4.1. Definitions

“Raw”: the adjective “raw” in this work is used to designate the “pure” state of an object (e.g., probabilities, predictions map) before the application of any post-processing steps.
The connection between sample and pixel. A sample in ML is an input vector to the network. Each sample is created from a labeled pixel and its neighbors. For our models, the size of the sample is 5 pixels, 5 pixels, and 92 spectral channels.

2.4.2. Using Median Filter (MF)

Figure 5 is an example of how the median filter works. Initially, the window size must be defined (on Figure 5 the size is 3: green square). The first step is to pick the window (green square) of chosen size (3) for the chosen pixel (“0” in blue border). The second step is to sort elements in the window (green vector in the middle) and determine the median (in this example, also 22). The last action is to set this value to the corresponding pixel (with the same position as in the original array) in the output array. Odd median filter sizes allow centering the window around the chosen pixel, preserving symmetry and avoiding potential shifts in results.
The advantage of MF is that it does not pass (filter out) outliers (values that are too different from the median). That is why the median filter works very well for denoising, especially to get rid of salt-and-pepper noise, as shown in Figure 6.
Prediction maps for three randomly chosen patients are presented in Figure 7. The predictions are very fuzzy, with pixels of both classes interspersed, especially in the border areas; inclusions look remarkably similar to salt-and-pepper noise. That is why it was decided to use the median filter.

2.4.3. Post-Processing Methods: The Plain Algorithm (AP) and the Algorithm with Threshold (AWT)

We implemented two post-processing algorithms: the plain algorithm (AP) and the algorithm with threshold (AWT). A pipeline of both is presented in Figure 8.
AP in general consists of one step: The application of MF to the raw probability map.
AWT adds an additional step between the raw probability maps and MF: thresholding (Section 2.3.4). The main characteristic of thresholding can be seen in Figure 8. While a raw probability map contains intermediate values between 0 and 1 (shades of green), after thresholding only discrete values 0 and 1 remain.
The optimal post-processing parameters, MF size and threshold, are automatically computed using the algorithm presented in Section 2.4.4. The post-processing step is evaluated by comparing the metrics (Section 2.5.2) with the baseline metrics obtained without post-processing (Section 2.3.5).

2.4.4. Finding Optimal Parameters of Post-Processing and Estimation of the Performance Improvement

Before starting this section, it is important to mention that every calculation of metrics needs a thresholding first (Section 2.3.4), because to calculate metrics, we need labels (0 or 1), not probabilities. Therefore, in AP there is the thresholding step too, but hidden in the “Calculate metrics” step in Figure 8. That is why for both AWT and AP we have to optimize both MF size and threshold. The more detailed description could be found in Appendix B.
Algorithm 1 shows the finding optimal parameters of post-processing. In the algorithm, sensitivity is defined as sens and specificity as spec. The equation numbers are in brackets.
Algorithm 1. Finding optimal parameters of post-processing.
Inputs:
   sensbaseline, specbaseline(Section 2.3.5)
   MF_sizes_to_test
   thresholds_to_test
Initialize:
   improvementsi,j ← 0, where i = 1, …, length(MF_sizes_to_test)
               j = 1, …, length(thresholds_to_test)
Result: optimal MF size mopt, optimal threshold size topt
for each m in MF_sizes_to_test do
   for each t in thresholds_to_test do
      apply MF size m and threshold t to prediction maps
      calculate sensm,t and specm,t
      improvementspecspecm,t – specbaseline(3)
      improvementsenssensm,t – sensbaseline(4)
      if improvementsens > 0 and improvementspec > 0 then
         improvementm,timprovementspec + improvementsens(5)
      end if
   end for
end for
mopt, toptargmax(improvements)(6)

2.5. Evaluation

2.5.1. Leave-K-Out-Cross-Validation (LKOCV)

Figure 9 presents a cross-validation. To obtain maximally honest results for a patient (Patient X), at first we exclude this patient fully from the training process. Then, we shuffle samples from other patients and divide samples into a train dataset (90%) and a validation dataset (10%). Then, final metrics are calculated on excluded Patient X with the model that was not trained with the Patient X. Therefore, because the dataset includes the HS images of 56 patients, to evaluate one architecture we need 56 trainings (cross-validation steps) and 56 models, respectively, one for each patient. However, excluding only one patient per training is too time-consuming, so sometimes we exclude four patients at once (in this case, leave-four-out-cross-validation).

2.5.2. Metrics

Abbreviations that are used in this section are presented in Table 3.
Used metrics and corresponding formulas are shown in Table 4.
These metrics were chosen because the dataset is imbalanced.

2.6. Models

Table 5 presents the models. In order to speed training time, in most models we used every third sample from train and validation sets. Thus, a model is a combination of pre-processing, neural network architecture, cross-validation and whether every third sample was used noted with “x” in corresponding columns. In order to provide honest cross-validation we fully exclude one or four patients from the training process, as described in Section 2.5.1.
Model names are constructed as:
  • “Architecture_” +
  • “Pre-processing_” +
  • “NumberOfExcludedPatients_” +
  • “T(rue)/F(alse)” if every third sample was used.
Reductions that were used:
  • “Inc” for inception-based models;
  • “RS” for RS-based models;
  • “Norm” for Normalization pre-processing;
  • “Stan” for Standardization pre-processing.

3. Results

3.1. Baseline Results (before Any Post-Processing)

Baseline results can be seen in Table 6. The “Threshold” column presents thresholds obtained as described in Section 2.3.5. All metrics are presented as mean values over all patients. The best value for each metric is in bold.
From the table we observe the following facts:
  • Inception-based models perform better than RS-based ones. The best three models in Table 6 are inception-based.
  • Inception-based networks work better with Normalization (model Inc_Norm_4_T clearly better than model Inc_Stan_1_T and other inception models even despite the fact that model Inc_Stan_1_T uses the most complete set of data) and RS-based models with Standardization (models RS_Stan_4_T and RS_Stan_4_T + SW are better than model RS_Norm_4_T).
To understand the reasons for this, we extracted the key wavelengths of each model, i.e., the wavelengths that the most affect the output of the inception-based and RS-based models (Figure 10). The detailed considerations about key wavelengths are presented in Discussion. The algorithm we used for extracting them is presented in Appendix A.
3.
Moreover, we noticed that the thresholds are very low (below 0.05) for models that use Standardization as pre-processing, unlike those that use Normalization, for which raw thresholds show regular values (Table 6).
As will be discussed in the Discussion, low thresholds with Standardization rely on probability distribution of wavelengths (Figure 11).
4.
Excluding one patient gives better results than excluding four patients, which is the expected behavior, because in the case of one patient there is more training data.

3.2. Post-Processing Results (AWP and AP)

It was found that AWT and AP produce the same quantitative results (metrics), because as presented in Appendix B the thresholding operation and MF are commutative.
Table 7 contains optimal post-processing parameters (“MF size” and “Threshold”) for every model with all corresponding metrics after post-processing. Columns “MF size” and “Threshold” are calculated from Equation (6) in Algorithm 1. All metrics are presented as mean values over all patients. The best value for each metric is in bold. The two-tailed paired t-test was performed for all metrics to understand if differences between metrics with and without post-processing are significant.
Table 8 contains improvements for the same corresponding optimal post-processing MF size and threshold from Table 7. Columns “Improvement Specificity” and “Improvement Sensitivity” as described in Equations (3) and (4) in Algorithm 1, respectively. Column “Improvement” as described in Equation (5).

3.3. Visual Results

Figure 12 and Figure 13 present visual results for two patients for all models with the corresponding optimal parameters (yellow for cancerous and purple for non-malignant pixels). Additionally, error maps are presented before and after post-processing: misclassified pixels are shown in red. It is important to mention that the error maps are shown only for regions of images that were annotated by experts.
Figure 14 depicts how different MF sizes and thresholds affect the output binary probability map. In the upper left corner is the original raw prediction map from the neural network. In the upper right corner is the ground truth mask. Images are ordered by MF size vertically, and by threshold horizontally. As it can be seen in each row, with an increasing threshold less area is recognized as cancerous, which is expected behavior, because fewer pixels fall under condition that the pixel’s probability is more than the threshold. Vertically, it can be seen that with increasing MF size, the detected areas are more packed, less fuzzy and less interspersed. All images in the figures are shown for model Inc_Norm_4_T.
Figure 15 depicts how different MF sizes affect the output probability map. Each row corresponds to one patient. From left to right in each row: raw prediction map from the network, predictions after the application of the MF (with sizes 5, 25, 51), and ground truth. As can be seen, with increasing MF size the recognized areas are more packed.

4. Discussion

We get the best results using inception-based model Inc_Norm_4_T with corresponding sensitivity and specificity: 92% and 94%. In a previous study [25] performed on the exact same patient dataset (56 patients), the sensitivity and specificity were 86% and 95%. Therefore, we achieved a very good improvement in sensitivity with an acceptable loss in specificity and more balanced performance. The most important reason for this is post-processing, which improves sensitivity and specificity by 4.0–6.6% in total. Other reasons could be: (1) use of 3D convolution networks that are very well suited for the hyperspectral nature of data; (2) use of inception-based networks that concatenate useful spectral information simultaneously from different kernel sizes; (3) use of Normalization pre-processing for inception-based models (its importance will be explained further in the text).
We calculated mean sensitivity and specificity using Inc_Norm_4_T for the same reduced patient dataset (12 patients) that was used in Martinez-Vega et al. [26] and got sensitivity of 99.5% and specificity of 94%. The corresponding best values from Martinez-Vega et al. were 86% and 87%. As we can see, there is a big improvement, but this improvement also could rely on the fact that models in the Martinez-Vega et al. were trained only on 12 patients, which again emphasizes that a larger dataset contributes to better scores.
The presented post-processing algorithms (AP and AWT) produce the same quantitative results, but AP is slighly faster to visualize (no need for additional thresholding) and much faster during the calculating of optimal parameters. That is why we recommend using AP. Additionaly, judging by the visual results in Figure 12, Figure 13, Figure 14 and Figure 15, images following AP convey more information because probability can be inferred, which can be useful in real clinical use cases.
Inception-based networks work better then RS-based networks. The likely reason is branching. Inception-based networks concatenate filters simultaneously after several kernel sizes, so different spatial wavelengths can be obtained and used in the next layers. Another reason is that one of the branches in inception-based architectures uses kernel size 5. In RS-based architectures, the maximal kernel size is 3. As discovered in [37], larger sample sizes perform better. Probably it can be also applicable to kernel sizes. In future research we will explore higher kernel sizes, more branches, and stack several inception blocks. The other reason why inception-based models perform better than RS-based models is that inception-based models have ~11 times more training parameters. Additionally, inception-based networks do not perform better in all HSI applications, which seems to be dataset-dependent. For example, ResNet-18 had a higher accuracy than inception-v3 in the case of HSI-based harmful algal bloom detection [31].
Lack of preliminary analysis (checking if probability distributions is normal) before applying Standardization can cause probability shifts and, as a result, a low discrimination threshold, as we can see on models that use Standardization (Table 6). Traditionally, an activation function of the last layer in binary classification neural networks is a sigmoid function. It converts a raw value from the network to a probability. If the value from the network is large and negative, then the probability will be close to 0. If thresholds are so low, it means that most probabilities are very close to 0, which in turn implies large negative output values from the network. In Figure 2 it can be seen that most spectral values after Standardization are in the range (−3, 1), so most values seen by the networks are negative. We suppose that this particular situation creates an imbalance that causes more negative values and a lot of near-zero probabilities at the end. Figure 11 depicts probability distributions of some wavelengths. As can be seen, they are not normally distributed, especially at the beginning and end of the spectra. This can be a reason for the imbalance, because a precondition for using Standardization is that all wavelengths have to be normally distributed. This opens the next future research directions: (1) an exclusion of outliers before wavelength scaling and (2) application of the Min-Max scaler after Standardization. This would return a standardized spectrum, but in the range 0–1, which could level out the imbalance.
If post-processing is proven to improve performance on all models, it has a limitation: for every model we have to check different pre-processing techniques each time. For example, inception-based models work better with Normalization and RS-based models than with Standardization. This can be explained with Figure 10. In the figure, the most important wavelengths (key wavelengths) are marked with blue lines for inception-based models (left) and RS-based models (right), regardless of the type of preprocessing. It can be seen that inception-based key wavelengths are mostly at the beginning of the spectrum (550–650 nm), whereas after Standardization the differences between the cancerous and non-malignant spectrums are harder to distinguish. On the other hand, after Normalization, the difference between cancerous and non-malignant tissues in this area increases. The opposite situation is with RS-based models, whose key wavelengths are closer to the end of the spectrum (900–1000 nm), and here Standardization gives a better difference between non-malignant and cancerous tissues. There are several wavelengths that are significant for both architectures: 585, 605, 610, 670, 750, 875, 975 nm. They are similar but not identical to the salient features for thyroid tumors calculated using the grad-CAM algorithm [38]. In future work, it would be interesting to calculate the salient features using the grad-CAM algorithm and other approaches, and research why these exact wavelengths have such a strong influence. A very interesting direction of future work to address this point could be a preliminary training on smaller, but representative, dataset. In this case we would know more quickly what pre-processing technique is suitable for what model and important key wavelengths. Lastly, squeeze-and-excitation blocks [30] apply varying weight ratios to emphasize such target key features and eliminate unnecessary data, and methods based on this approach could also provide additional context on the topic.
F1-score for cancerous tissues and MCC have the highest statistical significance over all models (Table 7 and Table 8). This shows a good balancing ability of post-processing, which is especially important in imbalanced datasets.
In future work, we also plan to research more deeply the areas that were misclassified by all models. Such areas could be seen in Figure 12 and Figure 13. Probably, blood is a possible reason, because its spectrum is similar to that of cancerous tissues. Another reason could be light reflections.

5. Conclusions

It was shown that post-processing is an important part of the machine learning models with HSI and can improve the sum of its sensitivity and specificity by 6.6% in total. It was shown that adding thresholding before the median filter does not change the results, and therefore applying the median filter directly to the probabilities obtained from the neural network is preferable.
We found that inception-based 3D-CNN models perform better than RS-based ones, but that post-processing improves the results of both. We found that each type responds best to different types of pre-processing: Inception-based networks work better with Normalization and RS-based with Standardization. The reason for this is that each model works best with the corresponding pre-processing type that accentuates the differences in those wavelengths that affect the model’s performance the most.

Author Contributions

Conceptualization, M.T. and M.M.; methodology, M.T. and M.M.; software, M.T.; validation, M.T.; formal analysis, M.T. and M.M.; investigation, M.T.; resources, M.M. and C.C.; data curation, B.J.-W. and I.G.; writing—original draft preparation, M.T.; writing—review and editing, all authors; visualization, M.T.; supervision, M.M.; project administration, M.M.; funding acquisition, T.N. All authors have read and agreed to the published version of the manuscript.

Funding

The authors acknowledge the financial support by the Federal Ministry of Education and Research of Germany and by the Sächsische Staatsministerium für Wissenschaft Kultur und Tourismus in the program Center of Excellence for AI-research “Center for Scalable Data Analytics and Artificial Intelligence Dresden/Leipzig”, project identification number: ScaDS.AI.

Institutional Review Board Statement

The acquisition of the colon data of patients was approved by the local ethics committee of the medical faculty of the University of Leipzig (approval code: 026/18-ek, approval date: 22 February 2018), and the study was registered at Clinicaltrials.gov (NCT04226781) (accessed on 18 July 2021).

Informed Consent Statement

Written informed consent, including consent for publication, was obtained from all the patients.

Data Availability Statement

Data can be obtained upon request at the following e-mail: [email protected].

Acknowledgments

Computations for this work were done using resources of the Leipzig University Computing Centre.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Key Wavelengths Detection Algorithm

To find key wavelengths a straight-forward approach was chosen, described in Figure A1. We create a sample with shapes (5, 5, 100), which is the standard shape of input arrays to our models, and fill it with zeros. For each candidate key wavelength, we pick a slice, and fill it with extreme values (1000). In Figure A1 the slice is in blue color. For each wavelength, we predict a probability with the corresponding sample. This probability shows to which extent the output is influenced by the wavelength.
This approach is simple and does not consider dependencies between wavelengths. This can be a subject of further study.
Figure A1. The main idea of key wavelengths discrimination.
Figure A1. The main idea of key wavelengths discrimination.
Cancers 15 02157 g0a1

Appendix B. Proof Why AP and AWT Give the Same Results

Appendix B.1. MF and Thresholding Are Commutative: Simple Example

In Figure A2 provided a very simple example how AWT and AP give the same results.
Figure A2. An example of the fact that MF and thresholding are commutative and therefore AWT and AP dives the same quantitative results.
Figure A2. An example of the fact that MF and thresholding are commutative and therefore AWT and AP dives the same quantitative results.
Cancers 15 02157 g0a2

Appendix B.2. Proof That MF and Thresholding Are Commutative

Both algorithms are based on MF. As can be seen in Figure 5, to find a median of an array, the window needs to be sorted first. Thus, sorting is the key operation of MF.
So, to prove that MF and thresholding are commutative we need to prove that sorting and thresholding are commutative.
Formally,
Theorem A1.
If a is bigger or equal then b before thresholding, then after thresholding a’ will be also bigger or equal to b’, where a’ and b’ are values after thresholding, where thresholding is defined as:
i f   a t h r e s h o l d   t h a n   a = A i f   a < t h r e s h o l d   t h a n   a = B i f   b t h r e s h o l d   t h a n   b = A i f   b < t h r e s h o l d   t h a n   b = B A > B
where A and B are new values after thresholding.
Proof of Theorem A1.
Let’s verify all possible combinations:
  • a > threshold and b > threshold. Then a′ = A, b′ = A.
    A = A => a′ >= b′. Satisfies the theorem.
  • a > threshold and b < threshold. Then a′ = A, b′ = B
    A > B => a′ >= b′. Satisfies the theorem.
  • a < threshold and b > threshold. Not possible, because in this case a < threshold < b => a < b, which contradicts the given conditions.
  • a < threshold and b < threshold. Then a′ = B, b′ = B.
    B = B => a′ >= b′. Satisfies the theorem.
  • a = b. Then a′ = b′. Satisfies the theorem.
All combinations either satisfy the theorem or are impossible. Theorem A1 is proven. □
Relying on the fact that the sorting is a key operation in MF and Theorem A1, thresholding and MF are commutative.

Appendix B.3. Detailed Description of AWT and AP

AWT per se consists of 4 steps, AP of 3 steps after getting raw probabilities, as shown in Figure A3. In brackets presented operation of “Calculate metrics” module, as described in Section 2.5.2. In black ovals are circled the commutative operations. After the defining of the commutative operations the only difference is circled in the green oval (one more thresholding operations). But if apply a threshold to the already thresholded array the resulting array will be the same. So, all operations are either commutative or don’t change the result. That’s why AP and AWT perform the same results.
Figure A3. The steps that formally constitute each post-processing algorithm.
Figure A3. The steps that formally constitute each post-processing algorithm.
Cancers 15 02157 g0a3

References

  1. Global Cancer Observatory. Available online: https://gco.iarc.fr (accessed on 29 March 2023).
  2. Bray, F.; Ferlay, J.; Soerjomataram, I.; Siegel, R.L.; Torre, L.A.; Jemal, A. Global cancer statistics 2018: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA Cancer J. Clin. 2018, 68, 394–424. [Google Scholar] [CrossRef] [Green Version]
  3. Winawer, S.J. The history of colorectal cancer screening: A personal perspective. Dig. Dis. Sci. 2015, 60, 596–608. [Google Scholar] [CrossRef] [PubMed]
  4. Barberio, M.; Benedicenti, S.; Pizzicannella, M.; Felli, E.; Collins, T.; Jansen-Winkeln, B.; Marescaux, J.; Viola, M.G.; Diana, M. Intraoperative Guidance Using Hyperspectral Imaging: A Review for Surgeons. Diagnostics 2021, 11, 2066. [Google Scholar] [CrossRef]
  5. Glover, B.; Teare, J.; Patel, N. The Status of Advanced Imaging Techniques for Optical Biopsy of Colonic Polyps. Clin. Transl. Gastroenterol. 2020, 11, e00130. [Google Scholar] [CrossRef] [PubMed]
  6. Pfahl, A.; Köhler, H.; Thomaßen, M.T.; Maktabi, M.; Bloße, A.M.; Mehdorn, M.; Lyros, O.; Moulla, Y.; Niebisch, S.; Jansen-Winkeln, B.; et al. Video: Clinical evaluation of a laparoscopic hyperspectral imaging system. Surg. Endosc. 2022, 10, 7794–7799. [Google Scholar] [CrossRef]
  7. Ortega, S.; Halicek, M.; Fabelo, H.; Callico, G.M.; Fei, B. Hyperspectral and multispectral imaging in digital and computational pathology: A systematic review [Invited]. Biomed Opt. Express. 2020, 11, 3195–3233. [Google Scholar] [CrossRef] [PubMed]
  8. Sucher, R.; Wagner, T.; Köhler, H.; Sucher, E.; Quice, H.; Recknagel, S.; Lederer, A.; Hau, H.M.; Rademacher, S.; Schneeberger, S.; et al. Hyperspectral Imaging (HSI) of Human Kidney Allografts. Ann. Surg. 2022, 276, e48–e55. [Google Scholar] [CrossRef]
  9. Hren, R.; Sersa, G.; Simoncic, U.; Milanic, M. Imaging perfusion changes in oncological clinical applications by hyperspectral imaging: A literature review. Radiol. Oncol. 2022, 56, 420–429. [Google Scholar] [CrossRef]
  10. Clancy, T.; Jones, G.; Maier-Hein, L.; Elson, D.S.; Stoyanov, D. Surgical spectral imaging. Med. Image Anal. 2020, 63, 101699. [Google Scholar] [CrossRef]
  11. Chalopin, C.; Nickel, F.; Pfahl, A.; Köhler, H.; Maktabi, M.; Thieme, R.; Sucher, R.; Jansen-Winkeln, B.; Studier-Fischer, A.; Seidlitz, S.; et al. Künstliche Intelligenz und hyperspektrale Bildgebung zur bildgestützten Assistenz in der minimal-invasiven Chirurgie [Artificial intelligence and hyperspectral imaging for image-guided assistance in minimally invasive surgery]. Chirurgie 2022, 93, 940–947. (In German) [Google Scholar] [CrossRef]
  12. Liu, L.; Qi, M.; Li, Y.; Liu, Y.; Liu, X.; Zhang, Z.; Qu, J. Staging of Skin Cancer Based on Hyperspectral Microscopic Imaging and Machine Learning. Biosensors 2022, 12, 790. [Google Scholar] [CrossRef] [PubMed]
  13. Aggarwal, S.L.P.; Papay, F.A. Applications of multispectral and hyperspectral imaging in dermatology. Exp. Dermatol. 2022, 31, 1128–1135. [Google Scholar] [CrossRef]
  14. Li, Y.; Xie Johansen, T.H.; Møllersen, K.; Ortega, S.; Fabelo, H.; Garcia, A.; Callico, G.M.; Godtliebsen, F. Recent Advances in Hyperspectral Imaging for Melanoma Detection. WIREs Comput. Stat. 2020, 12, e1465. [Google Scholar]
  15. Li, Y.; Xie, X.; Yang, X.; Guo, L.; Liu, Z.; Zhao, X.; Luo, Y.; Jia, W.; Huang, F.; Zhu, S.; et al. Diagnosis of early gastric cancer based on fluorescence hyperspectral imaging technology combined with partial-least-square discriminant analysis and support vector machine. J. Biophotonics 2019, 12, e201800324. [Google Scholar] [CrossRef] [PubMed]
  16. Jayanthi, J.L.; Nisha, G.U.; Manju, S.; Philip, E.K.; Jeemon, P.; Baiju, K.V.; Beena, V.T.; Subhash, N. Diffuse reflectance spectroscopy: Diagnostic accuracy of a non-invasive screening technique for early detection of malignant changes in the oral cavity. BMJ Open 2011, 1, e000071. [Google Scholar] [CrossRef] [Green Version]
  17. Aboughaleb, I.H.; Aref, M.H.; El-Sharkawy, Y.H. Hyperspectral imaging for diagnosis and detection of ex-vivo breast cancer. Photodiagnosis Photodyn. Ther. 2020, 31, 101922. [Google Scholar] [CrossRef]
  18. Martinez, B.; Leon, R.; Fabelo, H.; Ortega, S.; Piñeiro, J.F.; Szolna, A.; Hernandez, M.; Espino, C.; O’Shanahan, A.J.; Carrera, D.; et al. Most Relevant Spectral Bands Identification for Brain Cancer Detection Using Hyperspectral Imaging. Sensors 2019, 19, 5481. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  19. Leon, R.; Fabelo, H.; Ortega, S.; Piñeiro, J.F.; Szolna, A.; Hernandez, M.; Espino, C.; O’Shanahan, A.J.; Carrera, D.; Bisshopp, S.; et al. VNIR-NIR hyperspectral imaging fusion targeting intraoperative brain cancer detection. Sci. Rep. 2021, 11, 19696. [Google Scholar] [CrossRef]
  20. Fabelo, H.; Halicek, M.; Ortega, S.; Shahedi, M.; Szolna, A.; Piñeiro, J.F.; Sosa, C.; O’Shanahan, A.J.; Bisshopp, S.; Espino, C.; et al. Deep Learning-Based Framework for In Vivo Identification of Glioblastoma Tumor Using Hyperspectral Images of Human Brain. Sensors 2019, 19, 920. [Google Scholar] [CrossRef] [Green Version]
  21. Fabelo, H.; Ortega, S.; Lazcano, R.; Madroñal, D.; Callicó, G.M.; Juárez, E.; Salvador, R.; Bulters, D.; Bulstrode, H.; Szolna, A.; et al. An Intraoperative Visualization System Using Hyperspectral Imaging to Aid in Brain Tumor Delineation. Sensors 2018, 18, 430. [Google Scholar] [CrossRef] [Green Version]
  22. Giannoni, L.; Lange, F.; Tachtsidis, I. Hyperspectral Imaging Solutions for Brain Tissue Metabolic and Hemodynamic Monitoring: Past, Current and Future Developments. J. Opt. 2018, 20, 044009. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  23. Eggert, D.; Bengs, M.; Westermann, S.; Gessert, N.; Gerstner, A.O.H.; Mueller, N.A.; Bewarder, J.; Schlaefer, A.; Betz, C.; Laffers, W. In Vivo Detection of Head and Neck Tumors by Hyperspectral Imaging Combined with Deep Learning Methods. J. Biophotonics 2022, 15, e202100167. [Google Scholar] [CrossRef] [PubMed]
  24. Jansen-Winkeln, B.; Barberio, M.; Chalopin, C.; Schierle, K.; Diana, M.; Köhler, H.; Gockel, I.; Maktabi, M. Feedforward Artificial Neural Network-Based Colorectal Cancer Detection Using Hyperspectral Imaging: A Step towards Automatic Optical Biopsy. Cancers 2021, 13, 967. [Google Scholar] [CrossRef]
  25. Collins, T.; Maktabi, M.; Barberio, M.; Bencteux, V.; Jansen-Winkeln, B.; Chalopin, C.; Marescaux, J.; Hostettler, A.; Diana, M.; Gockel, I. Automatic Recognition of Colon and Esophagogastric Cancer with Machine Learning and Hyperspectral Imaging. Diagnostics 2021, 11, 1810. [Google Scholar] [CrossRef]
  26. Martinez-Vega, B.; Tkachenko, M.; Matkabi, M.; Ortega, S.; Fabelo, H.; Balea-Fernandez, F.; La Salvia, M.; Torti, E.; Leporati, F.; Callico, G.M.; et al. Evaluation of Preprocessing Methods on Independent Medical Hyperspectral Databases to Improve Analysis. Sensors 2022, 22, 8917. [Google Scholar] [CrossRef] [PubMed]
  27. Halicek, M.; Fabelo, H.; Ortega, S.; Little, J.V.; Wang, X.; Chen, A.Y.; Callico, G.M.; Myers, L.; Sumer, B.D.; Fei, B. Hyperspectral imaging for head and neck cancer detection: Specular glare and variance of the tumor margin in surgical specimens. J. Med. Imaging 2019, 6, 035004. [Google Scholar] [CrossRef]
  28. Halicek, M.; Dormer, J.D.; Little, J.V.; Chen, A.Y.; Fei, B. Tumor detection of the thyroid and salivary glands using hyperspectral imaging and deep learning. Biomed. Opt. Express. 2020, 11, 1383–1400. [Google Scholar] [CrossRef]
  29. Fabelo, H.; Halicek, M.; Ortega, S.; Szolna, A.; Morera, J.; Sarmiento, R.; Callico, G.M.; Fei, B. Surgical Aid Visualization System for Glioblastoma Tumor Identification based on Deep Learning and In-Vivo Hyperspectral Images of Human Patients. Proc. SPIE Int. Soc. Opt. Eng. 2019, 10951, 1095110. [Google Scholar] [CrossRef] [PubMed]
  30. Rajendran, T.; Prajoona Valsalan Amutharaj, J.; Jenifer, M.; Rinesh, S.; Charlyn Pushpa Latha, G.; Anitha, T. Hyperspectral Image Classification Model Using Squeeze and Excitation Network with Deep Learning. Comput. Intell. Neurosci. 2022, 4, 9430779. [Google Scholar] [CrossRef]
  31. Hong, S.M.; Baek, S.S.; Yun, D.; Kwon, Y.H.; Duan, H.; Pyo, J.; Cho, K.H. Monitoring the vertical distribution of HABs using hyperspectral imagery and deep learning models. Sci. Total Environ. 2021, 10, 148592. [Google Scholar] [CrossRef]
  32. Li, C.; Li, Z.; Liu, X.; Li, S. The Influence of Image Degradation on Hyperspectral Image Classification. Remote Sens. 2022, 14, 5199. [Google Scholar] [CrossRef]
  33. Kang, X.; Li, S.; Benediktsson, J.A. Spectral–Spatial Hyperspectral Image Classification with Edge-Preserving Filtering. IEEE Trans. Geosci. Remote Sens. 2014, 52, 2666–2677. [Google Scholar] [CrossRef]
  34. Tarabalka, Y.; Fauvel, M.; Chanussot, J.; Benediktsson, J.A. SVM- and MRF-Based Method for Accurate Classification of Hyperspectral Images. IEEE Geosci. Remote Sens. Lett. 2010, 7, 736–740. [Google Scholar] [CrossRef] [Green Version]
  35. Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA, 7–12 June 2015; pp. 1–9. [Google Scholar] [CrossRef]
  36. Ben Hamida, A.; Benoit, A.; Lambert, P.; Ben Amar, C. 3-D Deep Learning Approach for Remote Sensing Image Classification. IEEE Trans. Geosci. Remote Sens. 2018, 56, 4420–4434. [Google Scholar] [CrossRef] [Green Version]
  37. Seidlitz, S.; Sellner, J.; Odenthal, J.; Özdemir, B.; Studier-Fischer, A.; Knödler, S.; Ayala, L.; Adler, T.J.; Kenngott, H.G.; Tizabi, M.; et al. Robust deep learning-based semantic organ segmentation in hyperspectral images. Med. Image Anal. 2022, 80, 102488. [Google Scholar] [CrossRef] [PubMed]
  38. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar]
Figure 1. Examples of masks with ground truth labels, where purple is non-malignant tissue, yellow is cancerous, and red is margin of cancerous tissue.
Figure 1. Examples of masks with ground truth labels, where purple is non-malignant tissue, yellow is cancerous, and red is margin of cancerous tissue.
Cancers 15 02157 g001
Figure 2. Examples of spectra before (left) and after pre-processing techniques (middle, right). Please note that y-axes have different scales. Non-malignant spectra are purple and cancerous are yellow.
Figure 2. Examples of spectra before (left) and after pre-processing techniques (middle, right). Please note that y-axes have different scales. Non-malignant spectra are purple and cancerous are yellow.
Cancers 15 02157 g002
Figure 3. Architectures that were used: Inception-based (left) and RS-based (right).
Figure 3. Architectures that were used: Inception-based (left) and RS-based (right).
Cancers 15 02157 g003
Figure 4. Sensitivity and specificity obtained for one of the implemented models. The red point is the intersection point of both curves and represents the optimal threshold value used to define the binary probability map.
Figure 4. Sensitivity and specificity obtained for one of the implemented models. The red point is the intersection point of both curves and represents the optimal threshold value used to define the binary probability map.
Cancers 15 02157 g004
Figure 5. Example of how the median filter works.
Figure 5. Example of how the median filter works.
Cancers 15 02157 g005
Figure 6. (a) Original image; (b) Original image with added salt-and-pepper noise; (c) Image B after the application of the median filter with window size 5.
Figure 6. (a) Original image; (b) Original image with added salt-and-pepper noise; (c) Image B after the application of the median filter with window size 5.
Cancers 15 02157 g006
Figure 7. Prediction map examples in the left column and ground truth annotated by physicians on the right side, with the correspondence between colors and output probabilities shown on the color bar. Yellow represents cancerous tissue, purple non-malignant tissue, and red the margin of the cancer.
Figure 7. Prediction map examples in the left column and ground truth annotated by physicians on the right side, with the correspondence between colors and output probabilities shown on the color bar. Yellow represents cancerous tissue, purple non-malignant tissue, and red the margin of the cancer.
Cancers 15 02157 g007
Figure 8. Pipeline with both post-processing algorithms. On the images, yellow is cancerous, purple is non-malignant. Color bars are added to the steps in which the maps contain uncertain pixels (shades of green).
Figure 8. Pipeline with both post-processing algorithms. On the images, yellow is cancerous, purple is non-malignant. Color bars are added to the steps in which the maps contain uncertain pixels (shades of green).
Cancers 15 02157 g008
Figure 9. How cross-validation works. P1–P56—patients.
Figure 9. How cross-validation works. P1–P56—patients.
Cancers 15 02157 g009
Figure 10. Blue lines specify the most important wavelengths (key wavelengths) for inception-based models (left column) and RS-based models (right). Spectrum of non-malignant tissues is plotted with purple color, cancerous with yellow. Please note that y axes have different scales.
Figure 10. Blue lines specify the most important wavelengths (key wavelengths) for inception-based models (left column) and RS-based models (right). Spectrum of non-malignant tissues is plotted with purple color, cancerous with yellow. Please note that y axes have different scales.
Cancers 15 02157 g010
Figure 11. Probability distribution of some of the wavelengths.
Figure 11. Probability distribution of some of the wavelengths.
Cancers 15 02157 g011
Figure 12. Visual results for one patient over all models with corresponding optimal parameters.
Figure 12. Visual results for one patient over all models with corresponding optimal parameters.
Cancers 15 02157 g012
Figure 13. Visual results for one patient over all models with corresponding optimal parameters.
Figure 13. Visual results for one patient over all models with corresponding optimal parameters.
Cancers 15 02157 g013
Figure 14. How different MF sizes and thresholds affect the output. Purple is non-malignant tissue, yellow is cancerous, red is cancerous margin, and shades of green are uncertain.
Figure 14. How different MF sizes and thresholds affect the output. Purple is non-malignant tissue, yellow is cancerous, red is cancerous margin, and shades of green are uncertain.
Cancers 15 02157 g014
Figure 15. How different MF sizes affect the output. Color scheme as in the previous figure.
Figure 15. How different MF sizes affect the output. Color scheme as in the previous figure.
Cancers 15 02157 g015
Table 1. Equations for used pre-processing techniques.
Table 1. Equations for used pre-processing techniques.
Standardization (Z-Score)Scaling to Unit Length (Normalization)
x = x x ¯ σ x = x | | x | |
σ —standard deviation x = a v e r a g e ( x ) ||x||—Euclidian length of x
x—original spectrum
x—scaled spectrum
Table 2. Training parameters.
Table 2. Training parameters.
Training Parameter NameValue
Epochs40
Batch size100
LossBinary cross entropy
OptimizerAdam with β1 = 0.9 and β2 = 0.99
Learning rate0.0001
Dropout0.1
ActivationReLU, except the last layer, where Sigmoid
Number of wavelengths92 (we exclude the first 8 values because they are very noisy)
Number of parameters in models393,633 (inception) and 27,156 (RS)
Shape of samples[5, 5]
Table 3. Abbreviations that are used in this subsection.
Table 3. Abbreviations that are used in this subsection.
AbbreviationDescriptionMeaning
TPTrue PositivesCancerous detected as cancerous
TNTrue NegativesNon-malignant tissue detected as non-malignant tissue
FPFalse PositivesNon-malignant tissue detected as cancerous
FNFalse NegativesCancerous detected as non-malignant tissue
Table 4. Metrics that were used.
Table 4. Metrics that were used.
MetricFormula/Description
Sensitivity (also known as recall) s e n s i t i v i t y = r e c a l l = T P T P + F N
Specificity s p e c i f i c i t y = T N T N + F P
F1-score (also known as Sørensen–Dice coefficient) F 1 = 2 · p r e c i s i o n · r e c a l l p r e c i s i o n + r e c a l l = 2 · T P 2 · T P + F P + F N ,
where p r e c i s i o n = T P T P + F P
AUCArea Under the Receiver Operating Characteristic Curve (ROC AUC)
MCC (Matthew correlation coefficient) M C C = T P · T N F P · F N ( T P + F P ) ( T P + F N ) ( T N + F P ) ( T N + F N )
Table 5. Models.
Table 5. Models.
NamePre-ProcessingArchitectureHow Many Patients Are Excluded for Cross-ValidationEvery Third
Sample
NormalizationStandardizationInceptionRS1 Patient4 Patients
Inc_Norm_4_Tx x xx
Inc_Stan_1_F xx x
Inc_Stan_4_T xx xx
RS_Stan_4_T x x xx
RS_Stan_4_T + SW 1 x x xx
RS_Norm_4_Tx x xx
Inc_Stan_1_T xx x x
1 Sample Weights (see Section 2.3.3). whether every third sample was used noted with “x” in corresponding columns.
Table 6. Baseline raw results, sorted by sensitivity (best to worst).
Table 6. Baseline raw results, sorted by sensitivity (best to worst).
NameThresholdAccuracySensitivitySpecificityF1-n 1F1-c 1AUCMCC
Inc_Norm_4_T0.21190.2 ± 1589.1 ± 1989.5 ± 1792.8 ± 1465.9 ± 2996.8 ± 1064.3 ± 30
Inc_Stan_1_F0.018989.2 ± 1488.5 ± 2188.2 ± 1592.5 ± 1160.8 ± 2995.7 ± 1359.7 ± 28
Inc_Stan_4_T0.045687.6 ± 1688 ± 2187.1 ± 1891.5 ± 1459 ± 2995.6 ± 1357.8 ± 30
RS_Stan_4_T0.036789 ± 1287.1 ± 2088.3 ± 1492.7 ± 961.4 ± 2895.5 ± 960.3 ± 27
RS_Stan_4_T + SW0.4587.1 ± 1887 ± 2186.1 ± 2090.5 ± 1559.1 ± 2995.2 ± 1057.4 ± 29
RS_Norm_4_T0.155688.1 ± 1686.8 ± 2287.5 ± 1891.6 ± 1362.6 ± 2994.9 ± 1061.4 ± 28
Inc_Stan_1_T0.045688.6 ± 1686.1 ± 2388 ± 1792 ± 1360.3 ± 3095.5 ± 1459.1 ± 29
1 n—non-malignant, c—cancerous.
Table 7. Optimal post-processing parameters, metrics after post-processing (both AWP and AP) and statistical differences in comparison with the baseline approach without post-processing. * means p ≤ 0.05, ** means p ≤ 0.01, *** means p ≤ 0.001. The smaller the p, the more intense the green color that was used.
Table 7. Optimal post-processing parameters, metrics after post-processing (both AWP and AP) and statistical differences in comparison with the baseline approach without post-processing. * means p ≤ 0.05, ** means p ≤ 0.01, *** means p ≤ 0.001. The smaller the p, the more intense the green color that was used.
NameMF SizeThresholdAccuracySensitivitySpecificityF1-n 1F1-c 2AUCMCC
Inc_Norm_4_T510.316694.2 ± 14 ***91.6 ± 22 *93.6 ± 16 ***95.3 ± 14 *78.4 ± 29 ***98.4 ± 9 ***76.6 ± 32 ***
Inc_Stan_1_F410.00991 ± 16 **92.6 ± 21 ***89.8 ± 18 **93.2 ± 1470.5 ± 31 ***97.2 ± 15 ***69.1 ± 32 ***
Inc_Stan_4_T510.019289.2 ± 20 *92.7 ± 21 ***88.4 ± 2291.5 ± 2068.8 ± 32 ***97.2 ± 15 **66.5 ± 38 ***
RS_Stan_4_T750.025192.8 ± 12 ***87.8 ± 2992.1 ± 14 ***95 ± 9 ***68.7 ± 34 *96.7 ± 1468.1 ± 33 *
RS_Stan_4_T + SW410.284288.1 ± 2190.5 ± 2386.7 ± 2490.1 ± 2167.3 ± 33 **96.9 ± 10 ***65.4 ± 35 **
RS_Norm_4_T410.151590.9 ± 17 ***90.5 ± 25 *90.1 ± 19 ***93.1 ± 14 ***71.9 ± 30 ***97.6 ± 7 **71.5 ± 30 ***
Inc_Stan_1_T510.016889.9 ± 19 *91.4 ± 23 ***88.7 ± 2191.9 ± 1869.1 ± 31 ***97.1 ± 15 ***67.6 ± 34 ***
1 F1-score for non-malignant class. 2 F1-score for cancerous class.
Table 8. Corresponding improvements for models.
Table 8. Corresponding improvements for models.
NameImprovement Sensitivity (Algorithm 1. Equation (4))Improvement Specificity (Algorithm 1. Equation (3))Improvement
(Algorithm 1. Equation (5))
Inc_Norm_4_T2.344.2926.638
Inc_Stan_1_F4.201.4865.689
Inc_Stan_4_T5.120.7965.925
RS_Stan_4_T0.024.3784.399
RS_Stan_4_T + SW3.870.1554.032
RS_Norm_4_T3.332.9056.241
Inc_Stan_1_T4.421.6416.065
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tkachenko, M.; Chalopin, C.; Jansen-Winkeln, B.; Neumuth, T.; Gockel, I.; Maktabi, M. Impact of Pre- and Post-Processing Steps for Supervised Classification of Colorectal Cancer in Hyperspectral Images. Cancers 2023, 15, 2157. https://doi.org/10.3390/cancers15072157

AMA Style

Tkachenko M, Chalopin C, Jansen-Winkeln B, Neumuth T, Gockel I, Maktabi M. Impact of Pre- and Post-Processing Steps for Supervised Classification of Colorectal Cancer in Hyperspectral Images. Cancers. 2023; 15(7):2157. https://doi.org/10.3390/cancers15072157

Chicago/Turabian Style

Tkachenko, Mariia, Claire Chalopin, Boris Jansen-Winkeln, Thomas Neumuth, Ines Gockel, and Marianne Maktabi. 2023. "Impact of Pre- and Post-Processing Steps for Supervised Classification of Colorectal Cancer in Hyperspectral Images" Cancers 15, no. 7: 2157. https://doi.org/10.3390/cancers15072157

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop