Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# Deep learning to diagnose Hashimoto’s thyroiditis from sonographic images

## Abstract

Hashimoto’s thyroiditis (HT) is the main cause of hypothyroidism. We develop a deep learning model called HTNet for diagnosis of HT by training on 106,513 thyroid ultrasound images from 17,934 patients and test its performance on 5051 patients from 2 datasets of static images and 1 dataset of video data. HTNet achieves an area under the receiver operating curve (AUC) of 0.905 (95% CI: 0.894 to 0.915), 0.888 (0.836–0.939) and 0.895 (0.862–0.927). HTNet exceeds radiologists’ performance on accuracy (83.2% versus 79.8%; binomial test, p < 0.001) and sensitivity (82.6% versus 68.1%; p < 0.001). By integrating serologic markers with imaging data, the performance of HTNet was significantly and marginally improved on the video (AUC, 0.949 versus 0.888; DeLong’s test, p = 0.004) and static-image (AUC, 0.914 versus 0.901; p = 0.08) testing sets, respectively. HTNet may be helpful as a tool for the management of HT.

## Introduction

Hashimoto’s thyroiditis (HT) is a chronic autoimmune thyroid disease and the main cause of hypothyroidism and goiter1,2. It is prevalent in 20–30% of patients and 8–9 times more frequent in female versus male2,3. HT is most frequent in women aged between 30 and 50 but can occur in all ages2. HT accounts for 79.1% of total thyroiditis4. The pathogenesis of HT can be attributed to the interaction between genetic and environmental factors. Genetic susceptibility associated with HT includes genetic polymorphisms in major histocompatibility, immunoregulatory, thyroid-specific, and thyroid peroxidase antibody synthesis genes, whereas environmental factors include iodine intake, selenium, vitamin D, smoking, alcohol consumption, viral infection, and gut microbiota1,2,5. Patients with HT are typically presented with hypothyroidism, goiter, and increased thyroid peroxidase antibody level5. The key pathogenic features of HT are lymphocytic infiltration and fibrotic transformation of the thyroid gland5. The ultrasonographic manifestations of HT include hypoechogenicity, pseudonodule, and inhomogeneous parenchyma6. The former is attributed to the infiltration of inflammatory cell into the thyroid gland, whereas the latter two are due to fibroplastic proliferation6. The association between HT and thyroid nodule malignancy remains controversial. For example, there are studies that reported an increased risk association between HT and incidence of thyroid lymphoma and papillary thyroid cancer7,8, especially thyroid microcarcinoma9. Paparodis et al. reported that the increased risk of HT with differentiated thyroid cancer was only observed in euthyroid individuals and those with partially functional thyroid gland but not in fully hypothyroid subjects10. Grani et al. reported that the prevalence of thyroid nodule malignancy in patients with HT is not different from patients without HT11. Castagna et al. found that the association of HT with increased thyroid cancer is only observed in surgical series but not in cytological series12.

The symptoms of HT may not be overt as it progresses very slowly over years13. The clinical symptoms for patients with HT are chronic fatigue, nervousness, irritability, depression, and reduced exercise endurance3,13. The diagnosis of HT takes into account symptoms of hypothyroidism, presence of goiter, laboratory testing of thyroid-stimulating hormone (TSH), thyroid hormone (T4) level, antibody of thyroid peroxidase (anti-TPO), and thyroglobulin (anti-Tg)2,13. High serologic concentrations of anti-TPO and anti-Tg were reported to present in 90% and 20–30% of patients with HT14.

Artificial intelligence has attracted attention in the optical diagnosis of thyroid diseases. In a previous study, we developed a deep-learning model for optical diagnosis of thyroid cancer, in which the developed deep-learning model achieved comparable sensitivity and improved specificity in the diagnosis of thyroid cancer as compared with skilled radiologists15. Kim et al. evaluated the diagnostic performance of histogram analysis in the diagnosis of HT16. They used the grayscale features of thyroid images from histogram analysis and consensus interpretation of radiologists to develop a diagnostic model for HT. The developed models achieved an area under the curve ranging from 0.555 to 0.65416. Acharya et al. achieved an accuracy of 80% in the diagnosis of HT with 100 normal and 100 HT-affected ultrasound thyroid images via analyzing grayscale features such as texture, Gabor wavelet, entropy, etc.17. In a later study, Acharya et al. tested an ensembled model with four classifiers developed with grayscale features extracted from 526 ultrasound images in the diagnosis of HT, achieving an accuracy of 84.6%18. However, all these studies are limited by sample size and lack of external verification.

The purpose of this study is to develop a deep-learning model HTNet as a triage tool for automatic diagnosis of HT. We used pathological examination as the gold-standard diagnosis of HT in the development of HTNet. All subjects in the training and testing sets have pathological examination reports. HTNet was developed with by far the largest number of samples and comprehensively evaluated on internal- and external-testing sets.

## Results

### Data characteristics

Between January 1, 2012, and December 15, 2017, 106,513 images from 17,934 individuals obtained from Tianjin Cancer Hospital were used as a training set after excluding 13,304 images that were not captured on the thyroid gland. The training set consisted of 6143 individuals (37,424 images) affected by HT and 11,791 controls (69,089 images). The first internal-testing set consisted of 48,803 images from 4303 individuals obtained from Tianjin Cancer Hospital between January 1, 2018, and March 28, 2019, after excluding 7655 images not captured on the thyroid gland. The second internal-testing set consisted of 185 videos from 185 individuals obtained from Tianjin Cancer Hospital collected between April 1, 2021, and May 10, 2021. The external-testing set consisted of 5304 images from 563 individuals obtained from Weihai Municipal Hospital. The baseline characteristics of the training set and three testing sets are shown in Table 1. In the training set, 34.3% (6143/17,934) of individuals were affected by HT. HT is 10 times more prevalent in female versus male. Among six serologic markers examined, Tg is lower in patients with HT than those without HT, whereas anti-Tg and anti-TPO were higher in patients with HT versus those without HT. A baseline characteristics table summarizing the clinical features of training and testing sets is provided in Table 1. A flowchart depicting the procedures to develop HTNet is provided in Fig. 1.

### Performance of HTNet by integrating serologic markers with imaging data

In routine clinical practice, the diagnosis of HT was made by taking into account ultrasonographic features and laboratory testing of serologic markers such as TSH, anti-TPO, Tg, anti-Tg, T3, and T4. The performance of HTNet was improved by integrating serologic markers with thyroid imaging data (Fig. 3). For the element-wise summation scheme, in a subset of patients (30.0%, 945/4303) from the first internal-testing set with serologic markers, we observed that the AUC was improved from 0.901(0.880–0.923) to 0.914 (0.894–0.935), accuracy from 0.861 (0.838–0.883) to 0.877 (0.855–0.897) and sensitivity from 0.765 (0.709–0.815) to 0.830 (0.779–0.873); whereas specificities were comparable (0.896 versus 0.899). In the second internal-testing set, AUC was improved from 0.888 (0.836–0.939) to 0.949 (0.918–0.980), accuracy from 0.832 (0.771–0.883) to 0.892 (0.838–0.933), sensitivity from 0.846 (0.719–0.931) to 0.923 (0.815–0.979) and specificity from 0.827 (0.752–0.887) to 0.880 (0.812–0.930). The classification metrics achieved by HTNet with multimodal inputs via element-wise summation are shown in Table 3. Meanwhile, we found that vector concatenation scheme achieved comparable classification performance as element-wise summation on static-image set [AUC, 0.916 (0.896–0.936) versus 0.914 (0.894–0.835), p = 0.585] and video stream set [AUC, 0.948 (0.917–0.979) versus 0.949 (0.918–0.980), p = 0.766] (Supplementary Fig. 4). In addition, we observed that HTNet achieved better classification performance as compared with the random forest classifier developed with serologic markers. The ROC curve and classification metrics of the random forest classifier were provided in (Supplementary Fig. 5 and Supplementary Table 1).

## Discussions

In this study, we showed that HTNet developed with thyroid ultrasound images could achieve high performance in the diagnosis of HT on three independent testing sets from real-world settings encompassing static images and video streams. Its performance was further improved by integrating ultrasound video stream with serologic markers. HTNet was developed by far with the largest number of patients that were examined by several different types of ultrasound equipment and all patients have pathological examination as gold standard for the diagnosis of HT. The result showed that HTNet could achieve better performance as compared with ultrasound radiologists (Fig. 2, left and middle panels). HTNet may be helpful as a triage tool for the identification of HT at no extra cost. However, there is implicit cost related to the application of HTNet in clinical settings. For instance, extra time for software engineering and additional long-term maintenance are required once it was implemented clinically. This expertise is often not available in rural hospitals with scarce resources.

An accurate diagnosis of HT would be helpful for monitoring the progression of the disease and tailoring treatment regimen. Thyroid ultrasound provides a convenient and affordable way to manage thyroiditis. However, the sonographic features of HT are extremely variable and indistinguishable from the other thyroid diseases20. Meanwhile, interpretation of ultrasound images is often subjective, irreproducible, and operator-dependent. To address this concern, three previous studies16,17,18 proposed a computer-aided diagnostic technique that uses quantitative sonographic features and machine learning algorithm to help the diagnosis of HT, in the hope of providing objective and reproducible interpretation results. Kim et al. observed that the interobserver agreement rate was varying substantially16. Although they demonstrated the advantages of computer-aided diagnosis of HT, these studies were limited by small number of samples and lacked external verification16,17,18. Recently, Zhao et al. reported robust performance of an ensembled CAD-HT model via ensembling convolutional neural network models in the diagnosis of HT21. They found that their best model outperformed radiologists, which is consistent with our findings. Although serological markers were considered by Zhao et al., the serological markers were used to stratify individuals into different subgroups but not combined with the imaging data. Compared with these previous studies, we included by far the largest number of samples in the training set (17,934 patients) and testing sets (5051 patients). Given that hypothyroidism is mainly caused by HT, deep-learning models applied to sonographic images could provide a convenient and noninvasive method for frequently monitoring the cause of this disease. This strategy could be helpful for tailoring treatment options and delaying thyroid failure. Besides sonographic images, there are serological markers that are routinely tested in clinical settings. A deep-learning model that can take different data modalities as input is helpful for data integration and has the potential to improve diagnostic performance. The performance of HTNet was evaluated on multiple different data modalities such as static images, video stream, and combination of serological markers and imaging data. In contrast to the use of texture features manually selected by experts16,17,18, both HTNet and CAD-HT could provide an end-to-end diagnostic classification of HT directly from the raw input pixels of ultrasound images. In addition, HTNet can further take into account serological markers. However, real-time integration of sonographic images and serologic markers requires the availability of the latter. In clinical settings, there are often delays in obtaining serologic markers, thus preventing simultaneous integration of video stream and serologic markers. However, for individuals that did serologic testing ahead of sonographic examination, it is possible to integrate serologic markers during sonographic examination to obtain better diagnostic result.

Apart from the sonographic features, the levels of serologic markers such as TSH, anti-TPO, Tg, anti-Tg, T3, and T4 are helpful and routinely used in clinical practice for the diagnosis of HT and the other thyroiditis4. In this study, we devised a two-branched deep-learning architecture that is able to process ultrasound images and serologic markers simultaneously. Our results demonstrated that the performance of HTNet was improved considerably by integrating ultrasound images with serologic markers in the diagnosis of HT on the video testing set, whereas the improvement on the static-image testing set is marginal. The design of this two-branched deep-learning architecture is flexible in that it can be easily expanded to integrate the other types of heterogeneous data, thus making the integration of multimodal data types efficient. In the training set, the serological markers are not available for all individuals; therefore, the feature of serological markers is underrepresented and the performance of HTNet is speculatively under-estimated.

Our study has several limitations. Firstly, it is a retrospective study by nature, and the diagnostic performance of this AI system needs further investigation in prospective clinical trials. Secondly, the grade of HT was not available from the pathological examination report, therefore, we were not able to perform HT grading. Thirdly, the pathological examination reports did not have the diagnostic results for the other thyroiditis except HT, thus we were not able to perform diagnosis for the other thyroiditis such as Graves’ disease, subacute, postpartum, sporadic, and suppurative thyroiditis.

HT is the most prevalent thyroiditis and can lead to thyroid failure, reducing the quality of life. The very slow progress of HT enables a long period of time for the management of HT. There are no unique symptoms associated with HT and people with HT may not have any symptoms at the early onset, which makes early diagnosis of HT difficult. Deep-learning models applied to sonographic images could provide a convenient and noninvasive method for frequently monitoring the cause of HT. This strategy could be helpful for tailoring treatment options and delaying thyroid failure. Although the serologic markers such as anti-TPO and anti-Tg are frequently used in the diagnosis of autoimmune thyroid disease, their fluctuations are indeed associated with HT but are not a very sensitive predictor of HT4. The insensitivity of serologic markers in the diagnosis of HT was also demonstrated in our study (Supplementary Fig. 5). The deep-learning model developed in our study could provide a triage tool for automatic diagnosis of HT, especially in community hospitals or rural areas of China where medical resources are scarce. In addition, HTNet can also provide a second opinion that would be helpful in decision making in routine clinical practice.

The results of our study could provide improved efficiency and accuracy in a convenient way without extra cost for diagnosis of HT, especially in community hospitals where there is insufficient radiological imaging interpretation expertise. In summary, we presented a deep-learning model that could perform an automatic diagnosis of HT. Its diagnostic performance was tested on three independent testing sets. The high performance of this deep-learning model warrants further investigation in prospective clinical trials.

## Methods

### Study design and participants

We developed HTNet to diagnose HT from thyroid ultrasound images. We trained and tested this deep-learning model using thyroid ultrasound images retrospectively collected from Tianjin Cancer Hospital and Weihai Municipal Hospital. The static images extracted from the imaging database at Tianjin Cancer Hospital between January 1, 2012, and December 15, 2017, were used as a training set, static images between January 1, 2018, and March 28, 2019, as the first internal-testing set, and video data between April 1, 2021, and May 10, 2021, as the second internal-testing set. The static images from Weihai Municipal Hospital between January 1, 2017, and March 25, 2018, were used as an external-testing set. All patients in the training set and testing sets underwent pathological examination. Pathological examination reports were provided by the pathology department at Tianjin Cancer Hospital. Radiologists’ diagnosis of HT was determined from the radiologic text report. The ground truth for HT diagnosis was determined from the pathological examination report. This study was approved by the institutional review board (IRB) of Tianjin Cancer Hospital. Informed consent was exempted by the IRB because of the retrospective nature of this study. We confirmed that our research complies with the original consent of the IRB given in the treatment of these data.

### Image acquisition and preprocessing

The static images retrieved from thyroid imaging databases were in JPEG format and videos in AVI format. For a given individual, images from the entire lobe, transverse, and longitudinal view were selected by ultrasound radiologists. The ultrasound equipment from manufacturers such as Philips, Toshiba, Canon, and GE Health were used in these two hospitals to generate ultrasound images and videos. The procedures in the construction of our dataset are straightforward. We retrieved all thyroid ultrasound images from the imaging database. We linked the ultrasound image data with pathological data via the examination identity of the individual. We did not label the images and videos by annotation tool as our study is to perform diagnosis rather than lesion detection. This large dataset was made possible by a number of 16 radiologists over a long period of 10 years. In routine clinical practice, thyroid ultrasound examination was performed by one senior radiologist (≥10 years of clinical experience) and one junior radiologist (<10 years) for each individual. We excluded images that were not obtained for the thyroid gland.

### Development of the deep-learning classification model

We used the residual network22 for image classification. The prominent feature of residual connection is its shortcut connection that feeds the representation from preceding layers to the next layers via element-wise summation. The identity mapping via shortcut connection makes possible training very deep network without increasing training error. We trained classification network to predict HT by finetuning the classification model that we developed in our previous study15. The ground truth labels of HT used to train model were determined from pathological reports. We trained this model for 90 epochs by stochastic gradient descent optimizer and an initial learning rate of 0.001, momentum of 0.9, weight decay of 1.0e–4, and a minibatch of 32. The learning rate was decayed by 0.1 at the 30th and 60th epoch, respectively. We applied on-the-fly data augmentations such as random resize and crop, random horizontal flipping, random color jittering, and random erasing during training. Single-crop was used during evaluation. The classification model was developed with PyTorch (version 1.7.1) and torchvision (version 0.8.2).

### Integration of images with serologic markers in deep-learning classification model

In addition, we devised a deep-learning model that can make predictions by taking sonographic images and serologic markers obtained from laboratory testing as input. The serologic markers include TSH, anti-TPO, Tg, anti-Tg, T3, and T4. This multimodality deep-learning model consists of two parallel branches: a residual network aforementioned without the last fully connected layer and a feed-forward neural network. The residual network branch takes image as input and output a vector F = {f1, f2, …, f2048} as the representation of the input image. The feed-forward neural network branch takes the abundance of serologic markers as input and output a vector G = {g1, g2, …, g2048} as the learned feature of the input serologic markers. The element-wise summation of F and G was taken as the integrated multimodal feature H = F + G. Vector concatenation is an alternative method for integrating F and G, namely H = [F, G]. In this study, we investigated the performance of both element-wise summation and vector concatenation. A fully connected layer takes H as input and was used as the final classifier for prediction. We initialized the residual branch with the deep-learning model trained on the images aforementioned and froze their parameters. This multimodality model was trained with stochastic gradient descent for 30 epochs with a learning rate of 0.0001, momentum of 0.9 and weight decay of 1.0e–4, and a minibatch of 32. Data augmentation for images was applied exactly the same as aforementioned. We applied dropout as data augmentation for serologic markers.

### Development of traditional machine learning classification model

We employed the random forest algorithm23 implemented in R package randomForest24 to build a classifier to identify HT with the levels of six serologic markers such as TSH, anti-TPO, Tg, anti-Tg, T3, and T4. This random forest classifier was trained with 1712 samples and tested on 1130 samples. The 1712 samples were overlapped with people in the training set of ultrasound images and the later 1130 samples were overlapped with the internal-testing sets of the ultrasound images.

### Calculation of metastatic risk score

For each individual in testing set, we combined the predicted probabilities of each image or each frame of the video for that individual to calculate a score to measure the risk of HT. Specifically, for a given individual, we denoted n as the total number of images available from that individual, $${{{{{\boldsymbol{p}}}}}}=[{p}_{1},{p}_{2},\ldots ,{p}_{n}]$$ as the probabilities of these n images being predicted HT. The risk score of HT $$\theta$$ was calculated as the average of $${{{{{\boldsymbol{p}}}}}}$$. $$\theta$$ was used to evaluate the performance of HTNet by comparing it with the true labels obtained from pathological examination reports.

We extracted the diagnosis of HT from radiologic text reports.

### Visual explanation

We used Grad-CAM algorithm19 to highlight the image area that most influences the decision made by HTNet.

### Statistical analysis

We used ROC curve, accuracy, sensitivity, specificity, positive predictive value (PPV), and negative predictive value (NPV) to measure the performance of HTNet and random forest classifier. The ROC curve was created by plotting sensitivity against specificity. The 95% confidence intervals for accuracy, sensitivity, specificity, PPV, and NPV were calculated by Clopper–Pearson method25. We plotted the ROC curve and calculated AUC with R package pROC (version 1.10.0). Statistical analysis was conducted with R software (version 4.0.3) and caret package (version 6.0-78). Random forest classifier23 was built with randomForest package24 (version 4.6-14).

### Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.

## Data availability

Restrictions are applied to the whole imaging and serologic data of the training and testing sets, which are used with institutional permission via IRB approval for the current study, and thus are not publicly available due to patient privacy obligations. All data supporting the findings of this study are available on requests for non-commercial and academic purposes from the corresponding author X.L. (lixiangchun@tmu.edu.cn) within 10 working days.

## Code availability

The code used to train and evaluate the model is available on GitHub (https://github.com/lixiangchun/AIplus/tree/master/HTNet).

## References

1. Liontiris, M. I. & Mazokopakis, E. E. A concise review of Hashimoto thyroiditis (HT) and the importance of iodine, selenium, vitamin D and gluten on the autoimmunity and dietary management of HT patients.Points that need more investigation. Hell. J. Nucl. Med. 20, 51–56 (2017).

2. Pearce, E. N., Farwell, A. P. & Braverman, L. E. Thyroiditis. N. Engl. J. Med. 348, 2646–2655 (2003).

3. Ragusa, F. et al. Hashimotos’ thyroiditis: epidemiology, pathogenesis, clinic and therapy. Best. Pract. Res Clin. Endocrinol. Metab. 33, 101367 (2019).

4. Pedersen, O. M. et al. The value of ultrasonography in predicting autoimmune thyroid disease. Thyroid 10, 251–259 (2000).

5. Sweeney, L. B., Stewart, C. & Gaitonde, D. Y. Thyroiditis: an integrated approach. Am. Fam. Physician 90, 389–396 (2014).

6. Wu, G., Zou, D., Cai, H. & Liu, Y. Ultrasonography in the diagnosis of Hashimoto’s thyroiditis. Front Biosci. (Landmark Ed.) 21, 1006–1012 (2016).

7. Resende de Paiva, C., Grønhøj, C., Feldt-Rasmussen, U. & von Buchwald, C. Association between Hashimoto’s thyroiditis and thyroid cancer in 64,628 patients. Front Oncol. 7, 53 (2017).

8. Holm, L.-E., Blomgren, H. & Löwhagen, T. Cancer risks in patients with chronic lymphocytic thyroiditis. N. Engl. J. Med. 312, 601–604 (1985).

9. Uhliarova, B. & Hajtman, A. Hashimoto’s thyroiditis – an independent risk factor for papillary carcinoma. Braz. J. Otorhinolaryngol. 84, 729–735 (2018).

10. Paparodis, R., Imam, S., Todorova-Koteva, K., Staii, A. & Jaume, J. C. Hashimoto’s thyroiditis pathology and risk for thyroid cancer. Thyroid 24, 1107–1114 (2014).

11. Grani, G. et al. Thyroid autoimmunity and risk of malignancy in thyroid nodules submitted to fine‐needle aspiration cytology. Head Neck 37, 260–264 (2015).

12. Castagna, M. G. et al. Nodules in autoimmune thyroiditis are associated with increased risk of thyroid cancer in surgical series but not in cytological series: evidence for selection bias. J. Clin. Endocrinol. Metab. 99, 3193–3198 (2014).

13. American Thyroid Association. Hashimoto’s Thyroiditis Brochure. American Thyroid Association https://www.thyroid.org/wp-content/uploads/patients/brochures/Hashimoto_Thyroiditis.pdf (2019).

14. Singer, P. A. Thyroiditis. Acute, subacute, and chronic. Med Clin. North Am. 75, 61–77 (1991).

15. Li, X. et al. Diagnosis of thyroid cancer using deep convolutional neural network models applied to sonographic images: a retrospective, multicohort, diagnostic study. Lancet Oncol. 20, 193–201 (2019).

16. Kim, G. R. et al. Evaluation of underlying lymphocytic thyroiditis with histogram analysis using grayscale ultrasound images. J. Ultrasound Med. 35, 519–526 (2016).

17. Acharya, U. R. et al. Diagnosis of Hashimoto’s thyroiditis in ultrasound using tissue characterization and pixel classification. Proc. Inst. Mech. Eng. H. 227, 788–798 (2013).

18. Acharya, U. R. et al. Computer-aided diagnostic system for detection of Hashimoto thyroiditis on ultrasound images from a Polish population. J. Ultrasound Med. 33, 245–253 (2014).

19. Selvaraju, R. R. et al. Grad-cam: visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision 618–626 (2017).

20. Anderson, L. et al. Hashimoto thyroiditis: part 1, sonographic analysis of the nodular form of Hashimoto thyroiditis. Am. J. Roentgenol. 195, 208 (2010).

21. Zhao, W. et al. Convolutional neural network-based computer-assisted diagnosis of Hashimoto’s thyroiditis on ultrasound. J. Clin. Endocrinol. Metab. 107, 953–963 (2022).

22. He, K., Zhang, X., Ren, S. & Sun, J. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) 770–778 (IEEE, 2016). https://doi.org/10.1109/CVPR.2016.90

23. Breiman, L. Random forests. Mach. Learn. 45, 5–32 (2001).

24. Liaw, A. & Wiener, M. Classification and regression by randomForest. R. N. 2, 18–22 (2002).

25. Newcombe, R. G. Two‐sided confidence intervals for the single proportion: comparison of seven methods. Stat. Med. 17, 857–872 (1998).

## Acknowledgements

This study was supported by the National Natural Science Foundation of China (82073287 to Q.Z., no. 31801117 to X.L., and 31900471 to M.Y.), National Key R&D Program of China (no. 2021YFC2500400 to K.C.), and Tianjin Municipal Health Commission Foundation (no. RC20027 to Y.L.). The funder had no role in the study’s conduct, design, data collection, interpretation or writing the report. The corresponding author had full access to all of the data and final responsibility to submit for publication.

## Author information

Authors

### Contributions

Q. Zhang, S. Zhang, Y. Pan, L. and Sun retrieved pathological reports. J. Li, J. Zhao, X. Wang, Y. Feng, Y. Zhao, Z. Zheng, X. Yang, L. Liu, C. Qin, K. Zhao, X. Liu, C. Li, L. Zhang, C. Yang, N. Zhuo, H. Zhang, J. Liu, J. Gao, X. Di, F. Meng, L. Zhang, H. Shen, Y. Li, M. Yang, Y. Yang, X. Xin, and X. Wei retrieved and collected the sonographic imaging data. Y. Qiao, X. Zhou, Y. Wang, Y. and Duan retrieved and collected serologic markers. L. Zhang, X. Wang, and F. Song provided feedback on the study. X. Li analyzed the data and developed the AI system. Q. Zhang, S. Zhang, and X. Li wrote the manuscript. X. Li, K. Chen, M. Gao, X. and Zheng supervised the study. X. Li and K. Chen revised the manuscript. All authors read and approve the submission of the manuscript.

### Corresponding authors

Correspondence to Kexin Chen or Xiangchun Li.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

## Peer review

### Peer review information

Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

Reprints and Permissions

Zhang, Q., Zhang, S., Pan, Y. et al. Deep learning to diagnose Hashimoto’s thyroiditis from sonographic images. Nat Commun 13, 3759 (2022). https://doi.org/10.1038/s41467-022-31449-3

• Accepted:

• Published:

• DOI: https://doi.org/10.1038/s41467-022-31449-3