Logo
J Kermanshah Univ Med Sci

Image Credit:J Kermanshah Univ Med Sci

Automatic Diagnosis of Thyromegaly by Using Ultrasound Measurements Based on Artificial Neural Network

Author(s):
Farhad NaleiniFarhad NaleiniFarhad Naleini ORCID1, Vahab DehlaghiVahab DehlaghiVahab Dehlaghi ORCID2, Sahar SorooriSahar Soroori1, Meysam Siyah MansooryMeysam Siyah MansooryMeysam Siyah Mansoory ORCID2,*
1Department of Radiology, School of Medicine, Kermanshah University of Medical Sciences (KUMS), Kermanshah, Iran
2Department of Biomedical Engineering, School of Medicine, Kermanshah University of Medical Sciences (KUMS), Kermanshah, Iran


Journal of Kermanshah University of Medical Sciences:Vol. 29, issue 1; e148301
Published online:Jan 25, 2025
Article type:Research Article
Received:May 05, 2024
Accepted:Jan 08, 2025
How to Cite:Farhad NaleiniVahab DehlaghiSahar SorooriMeysam Siyah MansooryAutomatic Diagnosis of Thyromegaly by Using Ultrasound Measurements Based on Artificial Neural Network.J Kermanshah Univ Med Sci.29(1):e148301.https://doi.org/10.5812/jkums-148301.

Abstract

Background:

The thyroid size increases in some diseases of this gland, which is known as goiter or thyromegaly. Thyromegaly is more prevalent in women than men. Thyroid ultrasound is a non-invasive, inexpensive, and safe method for assessing thyroid disorders. Length, width (W), and height measuring of the thyroid lobes and volume is a time-consuming process.

Objectives:

The object of the present study was to offer a rapid artificial neural network (ANN) system for automatic detection of thyromegaly and to investigate the relationship between thyroid dimensions and its volume.

Methods:

The thyroid dimensions including longitudinal (L) diameter, anterior-posterior or depth (AP) diameter, W diameter, and AP diameter of isthmus were measured among 131 individuals, assigned to thyromegaly and normal groups during the years 2018 and 2019. Proposed ANN system containing of one hidden layer, 3 neurons, and one output for representing the presence of thyromegaly was created by MATALB software.

Results:

The implementation of the neural network showed that the use of the measured parameters of the right lobe is able to detect thyromegaly with an accuracy of 94.74, and the isthmus information does not increase the accuracy of the network very much. Also, "width of the right lobe" is the most appropriate parameter and the isthmus thickness was the least important parameter for automatic detection of thyromegaly.

Conclusions:

Artificial neural network as a decision-support system can be useful in reducing measurement error while performing ultrasound in detection of thyromegaly and also reducing time of diagnostic processes

1. Background

The thyroid gland is located in front of the trachea and consists of two lobes connected by a narrow tissue (isthmus). The thyroid hormone is very important in regulating metabolism (1). Thyroid volume increases in many diseases of this gland, which is known as thyromegaly or goiter (2). Measurement of the gland size is essential for assessing the need for surgery, calculating the therapeutic dose with radioactive iodine, and examining the treatment response.

Unlike clinical examination, ultrasound is a method of accurately calculating the thyroid volume (1). Determining the thyroid size is a fundamental variable in describing and detecting the disease, and standard ultrasound is mentioned in every report (1).

To evaluate the thyroid size, linear parameters of length, width (W), and thickness (depth) can be used, or its volume can be calculated through the mathematical calculation (length × W × depth × 0.529) (1).

Some authors believe that among the linear measurement parameters, the AP diameter (thickness) of the thyroid lobes is more accurate in detection of thyromegaly and can be used in this regard (1). On the other hand, thyroid volume depends on a person's anthropometric and racial characteristics (1).

Also, all thyroid dimensions don’t increase equally in thyromegaly. There have been very few studies on which of the thyroid dimeters is most affected by thyromegaly. Attempts were made in the present study to use an artificial neural network (ANN) to determine which of the thyroid dimensions was the most accurate measure of its volume and whether measurement of AP diameter, as a thyromegaly measure suggested by some researchers, is true or not in patients studied in the present study.

Artificial neural network systems have acknowledged distinct consideration because of their capability to learn complex issues with the aptitude to preserve accuracy, even in the lack of some data (3-6). Many studies have been performed using an ANN to help physicians diagnose various diseases and classify the types of diseases by using ultrasound (7-9).

However, no study has specifically investigated the relationship between thyroid dimensions and thyromegaly and determining the most important dimension of the thyroid by using ANN. Artificial neural network can determine which ultrasound measurement of the thyroid dimension can be a better estimate for measuring the thyroid volume by knowing which dimensions increase the most in thyromegaly, which accelerate the ultrasound process.

2. Objectives

Considering the need for a decision-making and decision-support systems to help radiologists in order to diagnosing thyromegaly, in this study an ANN-based system was established for automated diagnosing and detecting thyromegaly and find the most important dimension of thyroid size. The results of the proposed ANN-based diagnostic system can be effective in accelerating thyroid diseases diagnosis.

3. Methods

3.1. Participants and Data Collection

The present study is a descriptive-analytical study that began at Imam Reza Hospital in Kermanshah, Iran after being approved by the Ethics Committee of Kermanshah University of Medical Sciences (IR.KUSM.REC.1398.1013). The study population included all patients who referred to the hospital's ultrasound department between 2018 and 2019 at the request of an endocrinologist and underwent diagnostic examinations for thyromegaly. Individuals with normal ultrasound findings were considered as the control group according to the ultrasound standards, and those who were diagnosed with thyromegaly (as widely disseminated thyroid) were considered as the experimental group. Exclusion criteria included history of thyroid surgery, unspecified thyroid margin or any of the dimensions of the thyroid, presence of a huge mass or a very large cyst in a way that it is not possible to measure a clear thyroid volume, or lack of consent for participation in the study. The resident and the radiology professor gave full explanations about the project to eligible patients and they entered the project if they were willing to dos and after completing the informed consent form. At this stage, in the supine position, all patients underwent gray-scale ultrasound evaluation using a surface probe (16 MHz multifunction) of the Samsung Ws80 ultrasound device equipped with 4 active probes, minimum and maximum penetration depth of 2 to 30 cm and automatic imaging capability in B mode and Doppler mode.

Thyroid dimensions including longitudinal (L), anterior-posterior or depth (AP), and W diameter and isthmus thickness were measured and calculated and recorded along with the volume (10). Then, the thyroid volume was calculated using (W × height × depth × 0.52) formula and individuals whose thyroid volume was higher than 11.6 mL in men and 11.1 mL in women based on Nafisi Moghadam et al.'s study, were considered as patient with thyromegaly (11).

The recorded measurements of the two groups, along with the demographic information of the subjects (Table 1), were entered into Excel software based on the main objectives of the research and with the cooperation of all authors of the present article. The sample size formula was calculated by statistics specialist. The data were then analyzed using the MATLAB R2016b neural network toolbox in order to automatically detect the thyromegaly as well as to find the most important the measured ultrasound dimension.

Table 1.Demographic Characteristics of the Subjects a
VariablesCaseControlP-Value
Gender (female/male)11/585/57-
Age41.99 ± 12.2537.6 ± 13.320.065
Height165.86 ± 6.97164.13 ± 7.0160.207
Weight73.14 ± 12.5165.65 ± 10.120.000
BMI26.65 ± 3.9624.39 ± 3.660.000

Demographic Characteristics of the Subjects a

3.2. Neural Network Design

Multi-layer perceptron (MLP) neural network were used in the present study (12). Multi-layer perceptron can differentiate data that is not linearly separable. The mechanism of learning of neural networks used in the present study was based on the concept of decreasing gradient. To teach this type of network, the law of back- propagation is commonly used, which has different algorithms. Levenberg-marquardet and scaled conjugated gradient algorithms were used in the current study (13).

Neurons number in the input layer was equal to the thyroid measured parameters. The number of hidden layers should be as small as possible. This parameter depends on the complexity of the problem and the number of dependent variables. It has been proven that each function can be approximated with a maximum of three hidden layers. There is no universal instruction for choosing the number of these layers. It can be said that most of the networks used have one, two, and three hidden layers, and networks with four layers and above have been rarely used (14). In the present study, the value of this variable is once considered 1 and 2 at another time. Although there are many experimental rules that can be used to select the number of intermediate layer neurons, the trial-and-error method is the best solution for determining the number of neurons in most cases. In order to increase the performance of proposed ANN system in the present study, the neurons number in hidden layers of the ANN system ranged from 1 to 70 and the network performance was considered for the remaining network topology with changed numbers of neurons in the hidden layer. Lastly the current assembly was selected with advanced performance topology (15).

Since there were two outputs (proportional to the presence or absence of thyromegaly), two neurons were considered in the output layer. Concerning neural networks and the implementation of its practical concepts, another parameter is the transfer function.

In this study, "hyperbolic sigmoid tangent" activation function was use because it lead to faster convergence (16).

In order to solve the overfitting problem (17), the solution was to stop the learning process early in the network configuration stage using accreditation data. Early stopping is a method to improve the generality of the network. This method consists of dividing the general data set into three sets of learning or teaching, testing and determining validity or validation instead of using only the first two sets of training and testing. Therefore, a total of 70%, 15%, and 15% of the data were used for training, validation, and testing for proposed ANN system (18).

The proposed ANN system was designed in the MATLAB ver. 2016. To evaluate proposed ANN system with the greatest performance, different networks and different topology were trained and the performance of these networks were obtained. To assess the proposed ANN system, confusion matrix was used and accuracy, sensitivity and specificity were calculated. The processing speed on a Sony VAIO F series laptop was approximately 5 minutes.

4. Results

The present research has used a neural network, with a hidden layer and 3 neurons to assess the measured characteristics of a person's thyroid (Figure 1). Initially, measured thyroid characteristics were divided into training and experimental categories and a total of 110 primary data were used for training and 19 final data were also used for testing the neural network.

Neural network, with a hidden layer and 3 neurons
Figure 1.

Neural network, with a hidden layer and 3 neurons

Then, in order to find the significance of each characteristic, regression analysis was performed, the results of which are revealed in Table 2. Finally, the characteristics of the right and isthmus lobes, the right lobe, the left lobe, and the isthmus and the left lobe were considered to be the input of the neural network, which are shown in Table 3.

Table 2.Importance of Measured Thyroid Characteristics
VariablesSpecifications (R-Value)
Width of the right lobe0.68
Depth of right lobe0.62
Length of the right lobe0.61
Volume of the right lobe0.59
Width of the left lobe0.54
Depth of left lobe0.57
Length of the left lobe0.56
Volume of the left lobe0.49
Total thyroid volume0.56
Isthmus0.35

Importance of Measured Thyroid Characteristics

Table 3.Results of Using Neural Network for Each of the Thyroid Characteristics Measured
VariablesCharacteristics of Two Lobes and IsthmusCharacteristics of the Right LobeCharacteristics of the Right Lobe and IsthmusCharacteristics of the Left LobeCharacteristics of the Left Lobe and Isthmus
Percentage of training accuracy98.1889.0985.4584.5582.73
Percentage of test accuracy10094.7494.7484.2173.68

Results of Using Neural Network for Each of the Thyroid Characteristics Measured

As can be observed in Table 2, "width of the right lobe" is the most appropriate characteristic for detecting thyromegaly and "isthmus" is the least important one. Also, in general, the length, W and depth of the right lobe are more suitable characteristics for detecting thyromegaly as compared to those of the left lobe.

As can be observed in the Table 3, the accuracy of the network where all the characteristics are used is better than the rest. However, in general, use of the characteristics of the right lobe produces a relatively good accuracy, and isthmus information does not increase network accuracy very much. Therefore, it seems that there is no need to the isthmus parameter in determining the thyromegaly.

Therefore, the parameters can be ranked as follows based on their quality: (1) Characteristics of right lobe; (2) characteristics of left lobe; (3) characteristic of isthmus.

5. Discussion

The present study was performed on 131 patients referring to Imam Reza Hospital in Kermanshah in 2019. The patients included 87.8% women and 12.2% men in the 14 - 70 years group who referred to the ultrasound section for thyroid examination. The aim of the present study was to investigate the relationship between thyroid volume and the size of its lobes, as well as the isthmus diameter in people with thyromegaly (or goiter) through an artificial network. Based on the results, right lobe is able to detect thyromegaly with an accuracy of 94.74, and the isthmus information does not increase the accuracy of the network very much.

Of the patients enrolled to the project, 52.7% had thyromegaly based on the criteria suggested by Nafisi Moghadam et al.'s study conducted in Yazd. According to this study, which was performed on 314 people during the years 2003 - 2005, the mean thyroid volume was 9.08 ± 2.49 in men and 7.93 ± 3.2 in women (11). The neural network analysis showed that the highest correlation between the measured parameters (dimensions of each lobe and AP diameter of the isthmus) and thyroid volume in people with thyromegaly is related to the W of the right lobe (R = 0.924, P > 0.0001)

Overall, our results revealed that the dimensions of the right lobe are more suitable characteristics for detecting thyromegaly as compared to those of the left lobe, which may be due to the fact that the volume of the right thyroid lobe is relatively larger than the left one.

Tong and Rubenfeld investigated 256 patients with a large thyroid in the United States and concluded that as the thyroid grows, it extends upward, downward, and laterally, and the anterior posterior growth of the gland is relatively less affected (19). To justify their findings, they attributed the anterior posterior growth of the thyroid to the presence of a trachea behind the thyroid and anatomical limitations. However, their study was performed with a nuclear scan.

Rumack and Levine (1) mentioned that among the measured linear parameters of the thyroid, the AP diameter of lobes is the most accurate criterion for diagnosing thyromegaly, which is contradictory with the results of our study. This inconsistency can be because of racial, anthropometric, or regional differences in their studied population and the population of the present study, and further research is needed.

Suzuki et al. (20) showed in a study in Japan that the size of the right lobe was larger than the left lobe, which is consistent with the present study.

Kamran et al. (21) showed in a study in Karachi that there was no significant relationship between isthmus AP diameter and its volume.

The present study also showed the lowest correlation between isthmus volume and AP dimeter.

Although there have been relatively many studies on the relationship between thyroid size and demographic and regional characteristics, as well as height, weight, BMI, and body surface area characteristics, the correlation between thyroid size and volume has not been studied except in Tong and Rubenfeld (19), and Rumack and Levine’s studies (1).

The present study shows the need for further study of the relationship between thyroid dimensions and its volume in different populations. The limitations of the present study include the number of subjects, the hardware required, and the non-uniformity of the subjects. By increasing the number of features required for the neural network and better hardware, the accuracy and speed of detection and processing can be improved.

5.1. Conclusions

The results of this study using ANN system showed that W of the right lobe is the most suitable characteristic for detection of thyromegaly and isthmus is the least important characteristic. Also, in general, the length, W, and AP diameter of the right lobe have more suitable characteristics for diagnosing thyromegaly than those of the left lobe. Network accuracy is better than all others using all the characteristics. However, in general, using the characteristics of the right lobe produces a relatively good accuracy, and isthmus information does not increase network accuracy very much.

Footnotes

References

  • 1.
    Rumack CM, Levine D. Diagnostic Ultrasound. 5 ed. Amsterdam, Netherlands: Elsevier; 2017.
  • 2.
    Patrunov YN, Sencha AN, Sencha EA, Peniaeva EI, Timofeyeva LA, Tukhbatullin MG. Ultrasound Image of the Normal Thyroid Gland. In: Sencha AN, Patrunov YN, editors. Thyroid Ultrasound. Berlin, Germany: Springer; 2019. p. 39-51. https://doi.org/10.1007/978-3-030-14451-7_2.
  • 3.
    Ma J, Wu F, Zhu J, Xu D, Kong D. A pre-trained convolutional neural network based method for thyroid nodule diagnosis. Ultrasonics. 2017;73:221-30. [PubMed ID: 27668999]. https://doi.org/10.1016/j.ultras.2016.09.011.
  • 4.
    Lee E, Ha H, Kim HJ, Moon HJ, Byon JH, Huh S, et al. Differentiation of thyroid nodules on US using features learned and extracted from various convolutional neural networks. Sci Rep. 2019;9(1):19854. [PubMed ID: 31882683]. [PubMed Central ID: PMC6934479]. https://doi.org/10.1038/s41598-019-56395-x.
  • 5.
    Li X, Zhang S, Zhang Q, Wei X, Pan Y, Zhao J, et al. Diagnosis of thyroid cancer using deep convolutional neural network models applied to sonographic images: a retrospective, multicohort, diagnostic study. Lancet Oncol. 2019;20(2):193-201. [PubMed ID: 30583848]. [PubMed Central ID: PMC7083202]. https://doi.org/10.1016/S1470-2045(18)30762-9.
  • 6.
    Borzooei S, Briganti G, Golparian M, Lechien JR, Tarokhian A. Machine learning for risk stratification of thyroid cancer patients: a 15-year cohort study. Eur Arch Otorhinolaryngol. 2024;281(4):2095-104. [PubMed ID: 37902840]. https://doi.org/10.1007/s00405-023-08299-w.
  • 7.
    Elhalawani H, Yang P, Abazeed M, Shah C, Mohamed ASR, Thomas CR, et al. Real-world applications of deep convolutional neural networks in diagnostic cancer imaging. Chin Clin Oncol. 2020;9(6):82. [PubMed ID: 32036673]. [PubMed Central ID: PMC7880057]. https://doi.org/10.21037/cco.2020.01.02.
  • 8.
    Verburg F, Reiners C. Sonographic diagnosis of thyroid cancer with support of AI. Nat Rev Endocrinol. 2019;15(6):319-21. [PubMed ID: 31024088]. https://doi.org/10.1038/s41574-019-0204-8.
  • 9.
    Liang X, Yu J, Liao J, Chen Z. Convolutional Neural Network for Breast and Thyroid Nodules Diagnosis in Ultrasound Imaging. Biomed Res Int. 2020;2020:9. [PubMed ID: 32420322]. [PubMed Central ID: PMC7199615]. https://doi.org/10.1155/2020/1763803.
  • 10.
    Salaam AJ, Danjem SM, Abdul S, Angba HA, Ibinaiye P. Determination of Normal Thyroid Gland Volume On Ultrasound In Normal Adults In Jos, North Central Nigeria. Int J Sci Res Pub. 2020;10(1):p9708. https://doi.org/10.29322/IJSRP.10.01.2020.p9708.
  • 11.
    Nafisi Moghadam R, Shajari A, Afkhami-Ardekani M. Influence of physiological factors on thyroid size determined by ultrasound. Acta Med Iran. 2011;49(5):302-4. [PubMed ID: 21713748].
  • 12.
    Yang Z, Zhang H, Sudjianto A, Zhang A. An Effective and Efficient Initialization Scheme for Training Multi-layer Feedforward Neural Networks. arXiv. 2020;Preprint.
  • 13.
    Batra D. Comparison Between Levenberg-Marquardt And Scaled Conjugate Gradient Training Algorithms For Image Compression Using MLP. Int J Image Process. 2014;8(6):412.
  • 14.
    Panchal G, Ganatra A, Kosta YP, Panchal D. Behaviour Analysis of Multilayer Perceptrons with Multiple Hidden Neurons and Hidden Layers. Int J Comput Theory Eng. 2011;3(2):332-7. https://doi.org/10.7763/ijcte.2011.V3.328.
  • 15.
    Boccato T, Ferrante M, Duggento A, Toschi N. Beyond multilayer perceptrons: Investigating complex topologies in neural networks. Neural Netw. 2024;171:215-28. [PubMed ID: 38096650]. https://doi.org/10.1016/j.neunet.2023.12.012.
  • 16.
    Cococcioni M, Rossi F, Ruffaldi E, Saponara S. A Fast Approximation of the Hyperbolic Tangent When Using Posit Numbers and Its Application to Deep Neural Networks. International Conference on Applications in Electronics Pervading Industry, Environment and Society. 2020//. 2020. p. 213-21.
  • 17.
    Ikuta K, Otsuka Y, Nakamura M. Overfitting of ANN-based Nonlinear Equalizer for Multilevel Signals in Optical Communication Systems. Opto-Electronics and Communications Conference. California, USA. 2020. p. 1-3.
  • 18.
    Roelofs R, Shankar V, Recht B, Fridovich-Keil S, Hardt M, Miller J, et al. A Meta-Analysis of Overfitting in Machine Learning. Adv Neural Inf Process Syst. 2019;32.
  • 19.
    Tong EC, Rubenfeld S. Scan measurements of normal and enlarged thyroid glands. Am J Roentgenol Radium Ther Nucl Med. 1972;115(4):706-8. [PubMed ID: 5054261]. https://doi.org/10.2214/ajr.115.4.706.
  • 20.
    Suzuki S, Midorikawa S, Fukushima T, Shimura H, Ohira T, Ohtsuru A, et al. Systematic determination of thyroid volume by ultrasound examination from infancy to adolescence in Japan: the Fukushima Health Management Survey. Endocr J. 2015;62(3):261-8. [PubMed ID: 25735879]. https://doi.org/10.1507/endocrj.EJ14-0478.
  • 21.
    Kamran M, Raza I, Mukhtair S, Bughio S, Waseem H. Positive Correlation of Thyroid Gland Volume with Isthmus Dimensions and with Anthropometric Parameters through a Cross Sectional Study on Karachi Population. J Adv Med Med Res. 2016;18(6):1-8. https://doi.org/10.9734/BJMMR/2016/29710.
comments

Leave a comment here


Crossmark
Crossmark
Checking
Share on
Cited by
Metrics

Purchasing Reprints

  • Copyright Clearance Center (CCC) handles bulk orders for article reprints for Brieflands. To place an order for reprints, please click here (   https://www.copyright.com/landing/reprintsinquiryform/ ). Clicking this link will bring you to a CCC request form where you can provide the details of your order. Once complete, please click the ‘Submit Request’ button and CCC’s Reprints Services team will generate a quote for your review.
Search Relations

Author(s):

Related Articles