Introduction
Thyroid diseases are common disorders worldwide. Various studies have shown their high prevalence in different countries. The timely diagnosis of these diseases and their control can prevent their progress and reduce their consequences. The use of appropriate methods based on artificial intelligence and learning machine algorithms can be useful to make a correct diagnosis in medical cases. The use of smart techniques can provide results that show the factors of various diseases, and based on these results, physicians can act to prevent the disease. Extracting knowledge from massive amounts of data using learning models can lead to the identification of laws governing diseases and provide valuable information to health professionals to identify the causes of diseases, diagnose, predict, and treat patients according to environmental factors. In this research, we aim to use learning models based on artificial neural network (ANN) to predict thyroid diseases.
Methods
This is an applied survey study that was conducted in 2022. The data of more than 400 patients referred to Imam Reza Hospital in Lar County, Iran from 2021 to 2022 were examined. The proposed method is a hybrid algorithm resulting from the combination of particle swarm optimization (PSO) algorithm and ANN. The process includes three main phases. First, the dataset of thyroid patients is used for pre-processing. In this phase, the input dataset are normalized, and incomplete records are removed from the data set. Then, the normalized dataset enters the second phase for clustering and data labeling. In this phase, the K-means algorithm is used to create clusters in the PSO algorithm. Then, the clusters enter the PSO algorithm to find the optimal clusters. After performing the optimization operation by the PSO algorithm, the optimal clusters containing two clusters of healthy people and patients (labeled datasets) are entered into the next phase as output. In the third phase, the labeled input dataset enters the neural network model designed for the learning process of the intelligent model. The neural network used in this phase was the feed-forward neural network with one input layer, 20 hidden layers, and one output layer. After the training of the intelligent model, this model was used to distinguish people with thyroid diseases from healthy people.
Results
The proposed model was trained on a dataset with 400 samples, including 300 people with thyroid diseases and 100 healthy people. The regression coefficient (R) value of the proposed model in three modes of training, validation, and test was 0.98, 0.97 and 0.95, respectively. The area under the ROC curve was 0.98, and the error rate was 0.004. The results of the proposed method were compared with previous methods based on accuracy. According to
Table 1, the proposed model was able to predict thyroid disease with 96% accuracy, compared to previous methods.
Conclusion
In this study, an intelligent method based on PSO algorithm and ANN was presented for distinguishing patients with thyroid diseases from healthy people. The proposed model’s goal was to improve the process of thyroid disease detection. The main part this model was ANN which tried to find the hidden patterns of patients compared to healthy people by using the labeled datasets. Since the way the ANN works depends on how its structure is defined, we used the PSO algorithm is proposed.
Ethical Considerations
Compliance with ethical guidelines
This study has ethical approval from the Islamic Azad University of Estahban Branch (Code: IR.IAUESTAHBAN.REC.1401.023).
Funding
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
Conflicts of interest
The authors declared no conflict of interest.