Optimization of Transformer heart disease prediction model based on particle swarm optimization algorithm

Jingyuan Yi, Peiyang Yu, Tianyi Huang, Zeqiu Xu
12/3/2024
cs.AI

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Aiming at the latest particle swarm optimization algorithm, this paper proposes an improved Transformer model to improve the accuracy of heart disease prediction and provide a new algorithm idea. We first use three mainstream machine learning classification algorithms - decision tree, random forest and XGBoost, and then output the confusion matrix of these three models. The results showed that the random forest model had the best performance in predicting the classification of heart disease, with an accuracy of 92.2%. Then, we apply the Transformer model based on particle swarm optimization (PSO) algorithm to the same dataset for classification experiment. The results show that the classification accuracy of the model is as high as 96.5%, 4.3 percentage points higher than that of random forest, which verifies the effectiveness of PSO in optimizing Transformer model. From the above research, we can see that particle swarm optimization significantly improves Transformer performance in heart disease prediction. Improving the ability to predict heart disease is a global priority with benefits for all humankind. Accurate prediction can enhance public health, optimize medical resources, and reduce healthcare costs, leading to healthier populations and more productive societies worldwide. This advancement paves the way for more efficient health management and supports the foundation of a healthier, more resilient global community.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yi2024optimization,
  title  = {Optimization of Transformer heart disease prediction model based on particle swarm optimization algorithm},
  author = {Jingyuan Yi and Peiyang Yu and Tianyi Huang and Zeqiu Xu},
  year   = {2024},
  eprint = {2412.02801},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.02801v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.02801.svg)](https://codeofpaper.com/paper/2412.02801)

Discussion