Kidney stones, if left untreated, can lead to kidney pyelonephritis or renal failure in more serious cases; consequently, they may significantly affect the patient’s quality of life and also impose a major financial burden on the healthcare system. Prevention and treatment of patients with kidney stones mainly depend on the type of kidney stone and its composition (
29). Cystine stones, despite being rare, are associated with genetic defects causing cystinuria; consequently, treatment typically involves adequate hydration and urine alkalization (
3). Endoscopic methods are usually selected for cystine stone management, while uric acid stones may be prevented and treated by dietary modifications. In contrast, struvite stones are often associated with urinary tract infections, which require antibiotic treatments (
4); therefore, stone type determination is very important.
There are various common methods for the ex vivo analysis of kidney stones (
30). The DECT method with two different energy spectra can be used for in vivo characterization of the chemical composition of renal stones larger than 3 mm in size. Determination of the chemical structure of stones helps physicians treat them more effectively and facilitates the selection of treatment planning strategies (pharmaceutical treatment vs. surgery). However, DECT has some limitations, including increased patient radiation dose and the need for post-processing software systems of stone analysis (
31).
In this study, a classification method with high accuracy was proposed using a DL approach. The dataset was collected using surgically collected human kidney stones, which were analyzed using chemical procedures. The imaging procedure was performed using DECT and SECT modalities on a pseudo-human phantom. Four pre-trained networks were selected according to acceptable responses in medical experiments, and the Taguchi optimization method was designed. Among four networks, two networks, including GoogLeNet and VGG-19, were excluded from our study owing to their poor performance in 27 Taguchi tests. However, ResNet-50 and ResNet-18 were used for optimization and training of parameters based on their high accuracy and low error rate. Overall, GoogLeNet has fewer trainable parameters than ResNet-50 and ResNet-18; therefore, it plays an effective role in training. On the other hand, the performance of ResNet networks does not decrease despite deepening of the architecture compared to other architectural models. Also, computations become lighter, and the network training ability is improved.
The ResNet-50 and ResNet-18 were trained using 27 proposed tests of Taguchi method for each of the three energies. For 80 kVp, the highest training and validation accuracies of the ResNet-50 network were 94.7% and 94.6%, respectively, while at 120 and 135 kVp, the ResNet-18 network showed better performance. The training and validation accuracies of ResNet-18 at 120 kVp were 96% and 88.7%, respectively; the corresponding values were 93.75% and 84.12% for ResNet-18 at 135 kVp, respectively.
Data analysis indicated interesting results. The highest mean factor and SNR were obtained for the 15th, 26th, and 27th experiment numbers of the Taguchi analysis (
Table 5). The ranked hyperparameters of various energies indicated that the mini-batch is an effective parameter in the ResNet-50 performance, whereas in the 120-kV drop period at 135 kV, the type of solver plays a significant role in the training and validation trends (
Table 4). The network response depends on image features, which vary depending on their energy and HU properties. The ResNet-18 showed high accuracies and low loss values in the test and training procedures in ULD CT scan.
The SNR values of the Taguchi method are presented in
Figure 6. The optimized hyperparameters and the optimal arrangement determined and then adjusted for training nets, resulting the peak performance of networks at each energy level. According to the confusion matrix, at 80 kVp, the accuracy and sensitivity of the networks were the highest as compared to the other two energies evaluated. However, based on the analysis of variance, no significant difference was observed between other scores, including PPV, NPV, specificity, and F1-score for the three energy levels. Therefore, the results of this study clearly revealed that the networks could identify the type of stone based on single-energy images of the kidneys.
Generally, DECT is known as the gold standard for in vivo determination of the kidney stone type. In this modality, CT was performed using two different X-ray energies after an ULD CT scan used for the determination of stone location; consequently, high radiation doses were imposed on the patients. The results of this study showed that deep neural networks might be potentially beneficial tools for urologists to identify the type of stones and therefore, decide on the best possible therapeutic plan, either when these networks are used in an ULD CT scan or a conventional single-energy CT scan. The present results are consistent with the findings of a study by Fitri et al., who used a CNN network to classify urinary stones and reported a test accuracy of 0.9995 (
32). While their study used micro-CT images to classify kidney stones in a CNN network, we used CT images as inputs for our neural network, which can be potentially used in an in vivo setting in the future.
We were able to obtain a highly accurate automated method based on DL compared to previous studies. This study aimed to compare the efficacy of DECT and SECT imaging in stone classification, to present an optimized method for limiting the patient radiation dose, and to facilitate accurate stone type detection. Despite all these efforts, this study had some shortcomings. We did not evaluate mixed-composition stones due to their variability and small sample size, which was insufficient for proper network training. In our future research, we plan to use neural networks for urinary stone classification in real images of patients rather than using phantoms.
In conclusion, in this study, the feasibility of using artificial intelligence to identify the type and composition of kidney stones via ULD CT scan was examined. Different DL algorithms for the prediction of stone types were compared, and the hyperparameters were optimized to obtain high-performance networks. The results demonstrated the role of deep neural networks and the Taguchi optimization method in obtaining an optimized and accurate response. The high evaluation scores, shown in
Table 5, revealed that the DL-based algorithm could perform stone type classification at three CT energy levels, i.e., 80, 120, and 135 kVp. This automated method can be used to detect stone types via single-energy CT imaging or even ULD CT based on DL. It can be concluded that DL methods can overcome the limitations of DECT and be used for the analysis and classification of urinary stones and resolving the risk of high-dose radiation.