# A novel method to predict the haemoglobin concentration after kidney transplantation based on machine learning: prediction model establishment and method optimization

**Authors:** Songping He, Xiangxi Li, Fangyu Peng, Jiazhi Liao, Xia Lu, Hui Guo, Xin Tan, Yanyan Chen

PMC · DOI: 10.1186/s12911-025-03060-1 · BMC Medical Informatics and Decision Making · 2025-07-08

## TL;DR

This paper presents a machine learning model to predict hemoglobin levels after kidney transplants, helping doctors assess patient risk more accurately.

## Contribution

A novel machine learning model optimized with error-correcting output codes for predicting post-transplant hemoglobin levels is developed.

## Key findings

- A K-nearest neighbor and multilayer perceptron imputation method outperforms standard techniques for handling missing data.
- Optimized extreme gradient boosting achieved the highest prediction accuracy of 87.22% for hemoglobin concentration classification.
- Error-correcting output codes improved the performance of tree-based machine learning models.

## Abstract

Anaemia is a common complication after kidney transplantation, and the haemoglobin concentration is one of the main criteria for identifying anaemia. Moreover, artificial intelligence methods have developed rapidly in recent years, are widely used in the medical field and have achieved good results.

To optimize the process of constructing a clinical prediction model based on machine learning and improve related technologies. A classification prediction model for the haemoglobin concentration after kidney transplantation was constructed.

Real-world data from 854 kidney transplant patients in a Grade A tertiary hospital were retrospectively extracted. An imputation method combining the K-nearest neighbour algorithm and multilayer perceptron was used to fill in missing values in the dataset. Recursive feature elimination and extreme gradient boosting were used to rank and screen the importance of patient features and reduce the dimensionality of the features. Before the classification prediction model was established, the number of classification categories was determined first, and the optimal ideal cluster was approximated by the ideal cluster under each classification number and the similarity between the ideal cluster and the actual cluster. Finally, five kinds of machine learning methods, random forest, extreme gradient boosting, light gradient boosting machine, linear support vector classifier and support vector machine, were used to establish classification prediction models, and error-correcting output codes were used to optimize each model. A classification prediction model for abnormal haemoglobin concentrations after kidney transplantation was constructed, and the prediction effect was verified.

The imputation method combining the K-nearest neighbour algorithm and multilayer perceptron has a better effect on the imputation of missing values than do the commonly used imputation methods. Among the machine learning methods used for modelling, the prediction results of the tree model are improved to a certain degree after the error-correcting output code optimization. The final model with the best effect is optimized extreme gradient boosting, and the prediction accuracies before and after model optimization are 85.98% and 87.22%, respectively.

The accuracy of the machine learning classification prediction model established by the optimized modelling method and process reached 87.22%, which can assist doctors in preoperative risk prediction.

The online version contains supplementary material available at 10.1186/s12911-025-03060-1.

## Full-text entities

- **Diseases:** Anaemia (MESH:D000743), abnormal haemoglobin (MESH:D000014)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12236034/full.md

## Figures

7 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12236034/full.md

## References

3 references — full list in the complete paper: https://tomesphere.com/paper/PMC12236034/full.md

---
Source: https://tomesphere.com/paper/PMC12236034