| Literature DB >> 36014286 |
Mohammed H Alali1,2, Arman Roohi1, Shaahin Angizi3, Jitender S Deogun1.
Abstract
Medical imaging is an essential data source that has been leveraged worldwide in healthcare systems. In pathology, histopathology images are used for cancer diagnosis, whereas these images are very complex and their analyses by pathologists require large amounts of time and effort. On the other hand, although convolutional neural networks (CNNs) have produced near-human results in image processing tasks, their processing time is becoming longer and they need higher computational power. In this paper, we implement a quantized ResNet model on two histopathology image datasets to optimize the inference power consumption. We analyze classification accuracy, energy estimation, and hardware utilization metrics to evaluate our method. First, the original RGB-colored images are utilized for the training phase, and then compression methods such as channel reduction and sparsity are applied. Our results show an accuracy increase of 6% from RGB on 32-bit (baseline) to the optimized representation of sparsity on RGB with a lower bit-width, i.e., <8:8>. For energy estimation on the used CNN model, we found that the energy used in RGB color mode with 32-bit is considerably higher than the other lower bit-width and compressed color modes. Moreover, we show that lower bit-width implementations yield higher resource utilization and a lower memory bottleneck ratio. This work is suitable for inference on energy-limited devices, which are increasingly being used in the Internet of Things (IoT) systems that facilitate healthcare systems.Entities:
Keywords: convolutional neural network; histopathology image analysis; low power classifier; quantization
Year: 2022 PMID: 36014286 PMCID: PMC9415388 DOI: 10.3390/mi13081364
Source DB: PubMed Journal: Micromachines (Basel) ISSN: 2072-666X Impact factor: 3.523
Figure 1Two sample images from each of the two datasets. (A) Images from PCam. (B) Images from MHIST, with one for each class.
The number of images in PCam dataset and their partitioning for training, validation, and testing. It is clear that this is a balanced dataset.
| Class | Train | Val | Test | Total |
|---|---|---|---|---|
| NonMetastasis (0) | 131,072 | 16,399 | 16,391 | 163,862 |
| Metastasis (1) | 131072 | 16369 | 16,377 | 163,818 |
| Total | 262,144 | 32,768 | 32,768 | 327,680 |
The number of images in MHIST dataset and their partitioning into training, validation, and testing. It is clear that this is not a balanced dataset. The HP class covers 69% of the dataset.
| Class | Train | Val | Test | Total |
|---|---|---|---|---|
| HP | 1545 | 155 | 462 | 2162 |
| SSA | 630 | 90 | 270 | 990 |
| Total | 2175 | 245 | 732 | 3152 |
Figure 2A sample image from the two datasets for each color mode. (A) RGB (original), (B) sparsity on RGB, (C) grayscale, (D) sparsity on grayscale.
Inference accuracy results of training ResNet20 with lower bit-width on weight (W-bits) and activation parameters (A-bits). The result is reported for each dataset with respect to each color mode.
| Dataset | Color Mode | W-Bits | A-Bits | Accuracy |
|---|---|---|---|---|
| PCam | RGB | 2 | 2 | 0.84 |
| PCam | RGB | 4 | 4 | 0.84 |
| PCam | RGB | 8 | 8 | 0.85 |
| PCam | Grayscale | 2 | 2 | 0.88 |
| PCam | Grayscale | 4 | 4 | 0.89 |
| PCam | Grayscale | 8 | 8 | 0.89 |
| PCam | Sp. on Grayscale | 2 | 2 | 0.88 |
| PCam | Sp. on Grayscale | 4 | 4 | 0.89 |
| PCam | Sp. on Grayscale | 8 | 8 | 0.90 |
| PCam | Sp. on RGB | 2 | 2 | 0.86 |
| PCam | Sp. on RGB | 4 | 4 | 0.84 |
| PCam | Sp. on RGB | 8 | 8 | 0.85 |
| MHIST | RGB | 2 | 2 | 0.74 |
| MHIST | RGB | 4 | 4 | 0.77 |
| MHIST | RGB | 8 | 8 | 0.77 |
| MHIST | Grayscale | 2 | 2 | 0.69 |
| MHIST | Grayscale | 4 | 4 | 0.77 |
| MHIST | Grayscale | 8 | 8 | 0.71 |
| MHIST | Sp. on Grayscale | 2 | 2 | 0.65 |
| MHIST | Sp. on Grayscale | 4 | 4 | 0.73 |
| MHIST | Sp. on Grayscale | 8 | 8 | 0.69 |
| MHIST | Sp. on RGB | 2 | 2 | 0.63 |
| MHIST | Sp. on RGB | 4 | 4 | 0.76 |
| MHIST | Sp. on RGB | 8 | 8 | 0.70 |
Inference accuracy results of 32-bit-width training and inference on ResNet20.
| Dataset | Color Mode | Accuracy |
|---|---|---|
| PCam | RGB | 0.84 |
| PCam | Grayscale | 0.89 |
| PCam | Sparsity on Grayscale | 0.90 |
| PCam | Sparsity on RGB | 0.83 |
| MHIST | RGB | 0.76 |
| MHIST | Grayscale | 0.73 |
| MHIST | Sparsity on Grayscale | 0.63 |
| MHIST | Sparsity on RGB | 0.69 |
Comparison of accuracy results with our previous [29].
| Dataset | Accuracy (Current) | Accuracy [ | <W:A> |
|---|---|---|---|
| PCam-rgb | 0.84 | 0.81 | <2:2> |
| PCam-gs | 0.88 | 0.86 | <2:2> |
| PCam-gs-sp | 0.88 | 0.84 | <2:2> |
| PCam-rgb-sp | 0.86 | 0.82 | <2:2> |
| MHIST-rgb | 0.77 | 0.66 | <8:8> |
| MHIST-gs | 0.71 | 0.66 | <8:8> |
| MHIST-gs-sp | 0.73 | 0.66 | <4:4> |
| MHIST-rgb-sp | 0.70 | 0.67 | <8:8> |
Figure 3Energy consumption for MHIST dataset, where each row and each column leveraged the same bit-width (e.g., (a–d)) and identical ResNet20 implementations (e.g., (a–m)), respectively.
Figure 4(a) The memory bottleneck ratio and (b) the resource utilization ratio.
Detailed results of the best configurations for each color mode: True positive (TP), true negative (TN), false positive (FP), false negative (FN), true positive rate (TPR), true negative rate (TNR), and accuracy. The Activation (A) and Weights (W) bit-width are shown. To have a fair comparison, the baseline method contains no quantization or further optimization. All results are normalized to the predicted value.
| Color Mode | TN | TP | FN | FP | TNR | TPR | Acc | <A:W> |
|---|---|---|---|---|---|---|---|---|
| PCam:RGB | 0.78 |
| 0.22 | 0.07 |
| 0.81 | 0.84 | <8:8> |
| PCam:GS | 0.86 |
| 0.14 | 0.07 |
| 0.87 | 0.89 | <4:4> |
| PCam:SP-RGB | 0.80 |
| 0.20 | 0.09 |
| 0.82 | 0.85 | <8:8> |
| PCam:SP-GS | 0.87 |
| 0.13 | 0.09 |
| 0.88 | 0.89 | <8:8> |
| PCam:RGB [baseline] | 0.78 |
| 0.22 | 0.07 |
| 0.81 | 0.84 | <32:32> |
| MHIST:RGB |
| 0.73 | 0.22 | 0.27 | 0.74 | 0.77 | 0.77 | <8:8> |
| MHIST:GS |
| 0.68 | 0.18 | 0.32 | 0.72 | 0.79 | 0.77 | <4:4> |
| MHIST:SP-RGB | 0.75 |
| 0.25 | 0.23 |
| 0.76 | 0.76 | <4:4> |
| MHIST:SP-GS |
| 0.65 | 0.23 | 0.35 | 0.69 | 0.74 | 0.73 | <4:4> |
| MHIST:RGB [baseline] |
| 0.63 | 0.11 | 0.37 | 0.71 | 0.86 | 0.76 | <32:32> |