Artificial intelligence for predicting interstitial fibrosis and tubular atrophy using diagnostic ultrasound imaging and biomarkers
•,,,,,,,,.
...
Abstract
Background Chronic kidney disease (CKD) is a global health concern characterised by irreversible renal damage that is often assessed using invasive renal biopsy. Accurate evaluation of interstitial fibrosis and tubular atrophy (IFTA) is crucial for CKD management. This study aimed to leverage machine learning (ML) models to predict IFTA using a combination of ultrasonography (US) images and patient biomarkers.
Methods We retrospectively collected US images and biomarkers from 632 patients with CKD across three hospitals. The data were subjected to pre-processing, exclusion of sub-optimal images, and feature extraction using a dual-path convolutional neural network. Various ML models, including XGBoost, random forest and logistic regression, were trained and validated using fivefold cross-validation.
Results The dataset was divided into training and test datasets. For image-level IFTA classification, the best performance was achieved by combining US image features and patient biomarkers, with logistic regression yielding an area under the receiver operating characteristic curve (AUROC) of 99%. At the patient level, logistic regression combining US image features and biomarkers provided an AUROC of 96%. Models trained solely on US image features or biomarkers also exhibited high performance, with AUROC exceeding 80%.
Conclusion Our artificial intelligence-based approach to IFTA classification demonstrated high accuracy and AUROC across various ML models. By leveraging patient biomarkers alone, this method offers a non-invasive and robust tool for early CKD assessment, demonstrating that biomarkers alone may suffice for accurate predictions without the added complexity of image-derived features.
What is already known on this topic
Chronic kidney disease (CKD) is a significant global health issue, with accurate evaluation of interstitial fibrosis and tubular atrophy (IFTA) being essential for its management, typically requiring invasive renal biopsy.
What this study adds
This study demonstrates that combining ultrasonography (US) images and patient biomarkers using machine learning (ML) models can accurately predict IFTA non-invasively, achieving high area under the receiver operating characteristic curve values with logistic regression models.
How this study might affect research, practice or policy
The findings suggest that an ML-based approach integrating US images and biomarkers can serve as a non-invasive, reliable tool for early CKD assessment, potentially enhancing clinical decision-making and patient outcomes while reducing the need for invasive procedures.
Introduction
Chronic kidney disease (CKD) causes significant morbidity and mortality worldwide, with global prevalence rates of 9.1% and 697.5 million cases.1 It is characterised by irreversible damage to the renal tissue, which can ultimately lead to end-stage kidney disease, resulting in a substantial economic burden.2 A previous study showed that accurate assessment of renal interstitial fibrosis and tubular atrophy (IFTA) is crucial for diagnosing and managing CKD.3 IFTA severity is conventionally assessed through renal biopsy, which remains the gold standard for obtaining detailed histopathological information. This procedure provides direct visualisation and quantification of IFTA but is time-consuming and subject to inter-observer variability. Additionally, renal biopsy is an invasive procedure, making it unsuitable for all patients.4
Medical ultrasonography (US) is a crucial diagnostic tool for kidney or ureteral structural diseases, which measures imaging parameters that provide vital information regarding renal function. Previous studies have explored different parameters such as kidney size, cortical thickness and cortical echogenicity to estimate changes in estimated glomerular filtration rate (eGFR).5–12 A previous study revealed a significant positive correlation between eGFR and the mean renal length (r=0.66) and mean cortical thickness (r=0.85).5 Additionally, changes in the texture of the renal tissue on US images can also suggest changes in renal function. Nevertheless, interpreting US images of the kidney requires extensive training for clinicians, and the results may lack objectivity due to subjectivity.
Recently, artificial intelligence (AI) has emerged as a promising tool for predicting pathological results by leveraging data acquired through non-invasive methods.13 14 Deep learning using convolutional neural networks (CNNs) has also demonstrated good performance in the analysis of medical US images. In a previous study, CNNs were used to grade the severity of inflammation in the long head of the bicep tendon.15 Moreover, one study relied on CNNs and consecutive comprehensive non-stress echocardiography to predict cardiac function in patients to better understand ageing and prevent cardiovascular diseases.16 Similarly, a deep-learning algorithm using kidney US images of a single centre accurately quantified IFTA with 90% accuracy, indicating its potential as a non-invasive first-line investigation for kidney-disease assessment.17 However, there is a lack of studies conducted across multiple medical centres in leveraging AI for predicting pathological results through non-invasive data acquisition methods.
Our research aimed to leverage AI to predict the stage of IFTA using a combination of demographic data, laboratory results and renal US images across diverse medical centres. Specifically, we focused on five key clinical biomarkers: age, sex, eGFR, serum albumin and kidney size. Renal US provides a non-invasive and readily available imaging modality that can capture detailed structural information regarding the kidneys. We compared three approaches: using only biomarkers, relying solely on US images and integrating both modalities for a comprehensive analysis.
Methods
Datasets
The dataset used in this study was retrospectively obtained from Taipei Medical University Hospital, Taipei Municipal Wanfang Hospital and Taipei Medical University Shuang Ho Hospital. Patients who underwent pre-biopsy US examination in the past 10 years were included in the study. Renal ultrasound images obtained within 3 months before or after the renal biopsy, and the renal pathology reports closest to the biopsy date, were collected for each patient. The Joint Institutional Review Board Committee of Taipei Medical University (TMU-JIRB) approved the study (no. N202008034). Patient consent was waived by the permit of TMU-JIRB due to practical problems that most of the patients were lost to follow-up.
Patient selection
The data on key patient biomarkers including creatinine levels, age, sex and urine protein levels were extracted from our database. Additionally, the kidney size was obtained from US reports. We excluded images of patients with diabetic nephropathy to prevent inaccurate identification of US image features due to enlarged kidneys.18 19 The IFTA can be stratified into four individual stages.20 A previous study showed that an IFTA of >25% is an indicator of progression to end-stage renal disease.21 Hence, we used the combined IFTA stages to express the degree of renal damage, which ranged from 0 to 3. We divided the data into two groups: scores 0 and 1 were classified as the mild group and scores 2 and 3 were classified as the severe group, making the dataset a binary classification. A total of 632 patients with 6029 images were included.
Development of IFTA-classification pipeline
The development of the AI model involved four independent steps: (1) US image pre-processing, (2) sub-optimal image exclusion, (3) US image feature extraction and (4) ML-based IFTA classification with internal and independent validation. The detailed pipeline is shown in figure 1.
Overall classification pipeline F2048 represents a 2048-dimension feature vector from the feature extractor and BM5 represents five key biomarkers. DPCNN, dual-path convolutional neural network; IFTA, interstitial fibrosis and tubular atrophy; ML, machine learning; ROI, region of interest.
US image pre-processing
We used a Mask R-CNN to extract the kidney region to eliminate background interference from the muscles, adipose tissue, liver, spleen and bowel during IFTA prediction.22 We manually marked the kidney region in 2000 images (1800 for training and 200 for testing) for Mask R-CNN training.
Sub-optimal image or incomplete data exclusion
Based on previous studies,18 19 we excluded all US images from patients diagnosed with diabetic nephropathy because this condition can cause the kidneys to appear unusually large and functionally enhanced, potentially misleading our image feature extractor. Additionally, we removed images with significant artefacts such as prominent acoustic shadows or incorrect segmentations, as well as those in which the kidneys were not completely captured. Patients with incomplete IFTA data were excluded. After these exclusions, the remaining dataset consisted of 1895 images from 266 patients.
US image features extractor
This training was conducted at the image level after data augmentation. The augmentation methods included rotation between −25° and 25°, horizontal flip, vertical shift, gamma correction, Gaussian blur, brightness adjustment and contrast-limited adaptive histogram equalisation,23 expanding the image dataset to 36 339 images. We trained a classification model using a dual-path convolutional neural network (DPCNN) on US images, which was well suited for US image classification tasks in a previous study.24 The trained DPCNN model was then used as a feature extractor to generate a 2048-dimensional vector for each US image.
IFTA severity classification
ML-based IFTA classification
To classify the severity of the IFTA, we employed advanced ML models such as extreme gradient boosting (XGBoost),25 random forest26 and light gradient boosting machine (LightGBM).27 Ensemble methods were also implemented. We used a greedy search to find the best ML model and deployed fivefold cross-validation and averaged the evaluation results on the test set.
These models were trained on three different types of input:
Patient biomarkers: the data on five key patient biomarkers, including age, sex, eGFR, serum albumin and kidney size from US reports.
US image features: the 2048-dimensional vectors were extracted from the US images using the trained DPCNN model.
Combined inputs: a combination of five patient biomarkers and US image features were employed.
By leveraging these diverse inputs, we aimed to enhance the performance and robustness of the IFTA-severity classification. The scripts were implemented using Python 3.6 (Python Software Foundation) and executed on a system equipped with an RTX 2080 Ti Graphics Processing Unit.
Statistical analysis
To assess the differences in biomarkers among groups with different IFTA severity levels, we used independent t-test for continuous variables and two-sided Pearson χ2 test for categorical variables. The model performance was evaluated using several metrics: accuracy, precision, recall (sensitivity), F1 score (calculated as the harmonic mean of precision and recall) and area under the receiver operating characteristic curve (AUROC), which measures the ability of the model to discriminate between classes across all threshold values. To compare the AUROC between different models or groups, we applied the DeLong test,28 a non-parametric method, to assess the statistical significance of the difference between two AUROC values.
Results
Study participants
A total of 266 patients were included in the study after applying the aforementioned exclusion criteria. We initially partitioned 60 patients with complete US images to serve as an independent test set to validate subsequent models. The data of the remaining 206 patients were used to train the image feature extractor. Patients with incomplete biomarkers were excluded from both the training and test sets. After the exclusion, 171 and 52 patients with complete US images and biomarker data were respectively used to train and to test the ML models. Detailed statistical information of the dataset for ML models is provided in table 1.
Table 1
•
Characteristics of the study groups
Classification using eGFR
We used eGFR alone as the baseline classification. The eGFR values were normalised and used for filtering. The optimal threshold for eGFR was determined by identifying the value that maximised accuracy. The threshold of 40.7 mL/min/1.73 m2 yielded the highest accuracy at 0.865. The confusion matrix and AUROC for using eGFR as the threshold are illustrated in figure 2. These results served as a baseline for further analyses.
(A) The confusion matrix of using eGFR to classify IFTA. B. The AUROC plot of using eGFR to classify IFTA. AUROC, area under the receiver operating characteristic curve; eGFR, estimated glomerular filtration rate; IFTA, interstitial fibrosis and tubular atrophy.
Kidney Segmentation
Mask R-CNN model was used to perform kidney segmentation using a dataset of 200 images. For images containing intact kidneys, the model demonstrated performance comparable to that of manual annotation. Specifically, the model achieved an Intersection over Union of 0.904 and a Dice coefficient of 0.949, indicating high accuracy and reliability in segmenting kidney structures.
Feature extraction
For feature extraction, the DPCNN was trained on a dataset of 1456 images over 100 epochs, and the model with the lowest validation loss was selected as the feature extractor. This approach ensured that the extracted features were robust and representative of the underlying data.
Image-level IFTA classification
When using only US image features, the XGBoost model achieved the best performance with an accuracy of 76%, a precision of 72%, a recall of 63%, an F1 score of 67% and an AUROC of 91%. Combining US image features with patient biomarkers, the logistic regression model performed best, yielding an accuracy of 93%, a precision of 98%, a recall of 85%, an F1 score of 91% and an AUROC of 99%. Detailed results are presented in tables 2 and 3 and online supplemental tables 1–9. Furthermore, based on the DeLong test, the models using the combined image and biomarker features showed statistically significant improvements over those using only image features.
Table 2
•
Image-level and patient-level evaluation metrics of XGBoost
Table 3
•
Image-level and patient-level evaluation metrics of logistic regression.
Patient-level IFTA classification
For patient-level classification, the predicted classes of all images from the same patient were averaged with a threshold of 0.5 used to determine the final classification. Using US image features alone, the logistic regression model produced the best results, with an accuracy of 81%, a precision of 100%, a recall of 62%, an F1 score of 76% and an AUROC of 93%. Using patient biomarkers alone, the LightGBM model achieved the highest performance, with an accuracy of 90%, a precision of 100%, a recall of 81%, an F1 score of 89%, and an AUROC of 95% and AUROC of 94.97%. When combining both US image features and patient biomarkers, the logistic regression model provided the best results, with an accuracy of 88%, a precision of 92%, a recall of 85%, an F1 score of 88% and an AUROC of 96%. Based on the DeLong test, the models combining image features with biomarkers did not show statistically significant improvements over those using biomarkers alone.
Discussion
The development and validation of our AI algorithm involved a multistep process to ensure robustness and accuracy for both image-level and patient-level classifications. The use of biomarkers alone yielded optimal results in our analyses, demonstrating that the structural insights from imaging did not significantly enhance predictive accuracy. The use of fivefold cross-validation helped minimise bias and optimise model performance, leading to high accuracy and AUROC scores across various classifiers.
Previous studies investigated the correlation between renal US images and IFTA scores.29 These studies found that sonographic parameters such as kidney length, echogenicity and parenchymal thickness demonstrated only weak-to-moderate relationships with interstitial fibrosis or tubular atrophy, with the highest Spearman correlation coefficient reaching 0.35. In another study, researchers proposed an AI model to predict IFTA scores based on renal US images.17 The UNet architecture was employed for US image segmentation, and the VGG19 and XGBoost models were used for feature extraction and image classification, respectively. The prediction model achieved a performance ranging from 0.8037 to 0.8927 in terms of accuracy, precision, recall and F1 score. However, this study relied on retrospective data from a single centre.
One of the major strengths of our study is the comprehensive dataset, which included a large number of images from a diverse patient cohort across multiple hospitals, enhancing the generalisability of our model. Additionally, our approach combines the analysis of US images with patient biomarkers to provide a valuable layer of information that improves the predictive power of our models. This method demonstrated a robust performance across various ML techniques, consistently achieving an AUROC >90%. While it cannot entirely substitute human interpretation and clinical expertise, it can serve as a valuable tool for assisting less-experienced physicians in providing accurate interpretations. Future research should focus on investigating the long-term impact and cost-effectiveness of this technology, as well as exploring effective ways to integrate it into existing clinical practices.
Despite these promising results, our study has several limitations. First, the retrospective nature of the study may have introduced biases related to data collection and patient selection, which may have affected the generalisability of our findings. Second, the exclusion of patients with diabetic nephropathy, while necessary to avoid misleading the model, may limit the applicability of our results to a broader population, particularly those with comorbid conditions. Third, the manual review process for image quality is subject to human error and variability, which can affect the consistency of the data used for training and validation. Fourth, while our model demonstrated high performance, with AUROC >90% in the independent test set, it needs to be validated in external cohorts to confirm its robustness and generalisability beyond the studied population. Fifth, the lack of standardised pathology guidelines across hospitals in our country posed a significant limitation. As each pathology department follows different guidelines, detailed parameters such as IFTA foci density could not be consistently obtained or included in this study. Finally, follow-up data were not available in our study to assess the model’s capacity to predict long-term outcomes such as end-stage kidney disease (ESKD). Future studies should include follow-up information to evaluate the model’s potential for predicting ESKD and its broader clinical utility.
Conclusions
Our study presents a robust AI-based approach for IFTA classification that relies on patient biomarkers alone, demonstrating that image features do not significantly enhance predictive performance. The model demonstrated high performance across various ML techniques, consistently achieving AUROC >90%. This method, based on biomarkers alone and developed using a comprehensive dataset from multiple hospitals, has the potential to enhance early determination of IFTA without biopsy, avoiding unnecessary complexity from image features. Future studies should focus on validating the performance of the model in external cohorts to ensure its generalisability and applicability to diverse clinical environments.
Contributors: YCL is responsible for the overall content (as guarantor). Conceptualisation: YCL and CCS. Data curation: CMZ, CYC, YCL and CCS. Methodology: TWC, CYT, YCL and CCS. Formal analysis: CYT, ZYT and CCS. Funding acquisition: YCL and CCS. Supervision: YCL, CTL, MSW and CCS. Writing—original draft: TWC. Writing—review and editing: TWC, CYT, YCL and CCS. No, I have not used AI.
Funding: Funded by the National Science and Technology Council of Taiwan, supporting this work through Grant No. 111-2221-E-011-020-MY2 and 113-2221-E-011-021-MY3, the National Taiwan University of Science and Technology, and Taipei Medical University through Grant No. TMU-NTUST-111-08.
Competing interests: None declared.
Provenance and peer review: Not commissioned; externally peer reviewed.
Supplemental material: This content has been supplied by the author(s). It has not been vetted by BMJ Publishing Group Limited (BMJ) and may not have been peer-reviewed. Any opinions or recommendations discussed are solely those of the author(s) and are not endorsed by BMJ. BMJ disclaims all liability and responsibility arising from any reliance placed on the content. Where the content includes any translated material, BMJ does not warrant the accuracy and reliability of the translations (including but not limited to local regulations, clinical guidelines, terminology, drug names and drug dosages), and is not responsible for any error and/or omissions arising from translation and adaptation or otherwise.
Data availability statement
Data are available upon reasonable request.
Ethics statements
Patient consent for publication:
Not applicable.
Ethics approval:
The Joint Institutional Review Board Committee of Taipei Medical University (TMU-JIRB) approved the study (no. N202008034).
Acknowledgements
The authors extend their appreciation to the National Science and Technology Council of Taiwan for funding and supporting this work through Grant No. 111-2221-E-011-020-MY2 and 113-2221-E-011-021-MY3, the National Taiwan University of Science and Technology, and Taipei Medical University through Grant No. TMU-NTUST-111-08.
Carney EF. The impact of chronic kidney disease on global health. Nat Rev Nephrol2020; 16.
Risdon RA, Sloper JC, De Wardener HE, et al. Relationship between renal function and histological changes found in renal-biopsy specimens from patients with persistent glomerular nephritis. Lancet1968; 2:363–6.
Lucisano G, Comi N, Pelagi E, et al. Can renal sonography be a reliable diagnostic tool in the assessment of chronic kidney disease? J Ultrasound Med2015; 34:299–306.
Korkmaz M, Aras B, Güneyli S, et al. Clinical significance of renal cortical thickness in patients with chronic kidney disease. Ultrasonography2018; 37:50–4.
Mustafiz M, Rahman MM, Islam MS, et al. Correlation of ultrasonographically determined renal cortical thickness and renal length with estimated glomerular filtration rate in chronic kidney disease patients. Bangladesh Med Res Counc Bull2013; 39:91–2.
Mansoor A, Ramzan A. Evaluation of the Best Gray-Scale Ultrasonography Parameter for Assessment of Renal Function in CKD Patients: A Meta-Analysis of Literature Published in the Last 10 years. European Congress of Radiology-ECR2015;
Takata T, Koda M, Sugihara T, et al. Left Renal Cortical Thickness Measured by Ultrasound Can Predict Early Progression of Chronic Kidney Disease. Nephron2016; 132:25–32.
Beland MD, Walle NL, Machan JT, et al. Renal cortical thickness measured at ultrasound: is it better than renal length as an indicator of renal function in chronic kidney disease? AJR Am J Roentgenol2010; 195:W146–9.
Singh A, Gupta K, Chander R, et al. Sonographic grading of renal cortical echogenicity and raised serum creatinine in patients with chronic kidney disease. Jemds2016; 5:2279–86.
Yamashita SR, Atzingen AC von, Iared W, et al. Value of renal cortical thickness as a predictor of renal function impairment in chronic renal disease patients. Radiol Bras2015; 48:12–6.
Liang L, Han X, Zhou N, et al. Ultrasound for Preoperatively Predicting Pathology Grade, Complete Cytoreduction Possibility, and Survival Outcomes of Pseudomyxoma Peritonei. Front Oncol2021; 11.
Lin B-S, Chen J-L, Tu Y-H, et al. Using Deep Learning in Ultrasound Imaging of Bicipital Peritendinous Effusion to Grade Inflammation Severity. IEEE J Biomed Health Inform2020; 24:1037–45.
Athavale AM, Hart PD, Itteera M, et al. Development and Validation of a Deep Learning Model to Quantify Interstitial Fibrosis and Tubular Atrophy From Kidney Ultrasonography Images. JAMA Netw Open2021; 4.
Derchi LE, Martinoli C, Saffioti S, et al. Ultrasonographic imaging and Doppler analysis of renal changes in non-insulin-dependent diabetes mellitus. Acad Radiol1994; 1:100–5.
Sethi S, D’Agati VD, Nast CC, et al. A proposal for standardized grading of chronic changes in native kidney biopsy specimens. Kidney Int2017; 91:787–9.
DeLong ER, DeLong DM, Clarke-Pearson DL, et al. Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach. Biometrics1988; 44:837–45.